html, body {
    height: 100%;
}
app {
    display: block;
    height: 100%;
}
dx-license {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

.header-logo {
    flex-shrink: 0;
    background-color: #0B2A4A; /* visible logo color */

    -webkit-mask: url('../images/FlexaLogo.svg');
    mask: url('../images/FlexaLogo.svg');
   
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    width: 180px;
    height: 24px;
}

#blazor-error-ui {
    background: inherit;
    bottom: 0;
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 100001;
}


.hide-toolbar .nested-toolbar {
    display: none !important;
}
/*.dxbl-grid-header-row {
    display: none !important;
}*/

/* ===== FLEXA SPLASH (IMAGE + LOADING BAR) ===== */

.flexa-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    z-index: 99999;


    /*height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #ffffff;*/ /* light, clean */
} 

    /* Logo */

.flexa-splash img {
        width: 320px; /* increase width */
        max-width: 100%; /* responsive, will shrink on small screens */
        height: auto; /* maintain aspect ratio */
        margin-bottom: 28px; /* spacing from loading bar */
    }


/* Loading bar container */
.flexa-loading {
    width: 320px;
    height: 22px; /* thicker bar */
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

    /* Animated bar */
    .flexa-loading span {
        display: block;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, #2563eb, #38bdf8);
        transform: scaleX(0);
        transform-origin: left;
        animation: flexa-bar 1.6s linear infinite;
    }

/* Animation */
@keyframes flexa-bar {
    0% {
        transform: scaleX(0);
    }

    90% {
        transform: scaleX(1);
    }

    99.9% {
        transform: scaleX(1);
    }

    100% {
        transform: scaleX(0); /* instant jump */
    }


 
}
   .flexa-loading-text {
        margin-top: 10px; /* space above the text */
        padding-top: 8px; /* inner spacing from top */
        font-size: 18px; /* bigger text */
        font-weight: 500; /* slightly bolder (optional) */
     
    }

   /*header css*/
.header-text .dxbl-text-edit {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.header-text .dxbl-text-edit-input {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #222 !important;
    padding-left: 0 !important;
}
/*sub headers */
.subheader-text .dxbl-text-edit {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.subheader-text .dxbl-text-edit-input {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #666 !important;
    padding-left: 0 !important;
}


/*income statement razor classes*/


/* FONT (important) */
.pnl-report {
    font-family: "Segoe UI", Tahoma, sans-serif;
    background: #fff;
    padding: 20px;
    color: #222;
}

/* HEADER */
.report-header {
    text-align: center;
    margin-bottom: 20px;
}

    .report-header .title {
        font-size: 22px;
        font-weight: bold;
    }

    .report-header .subtitle {
        font-size: 13px;
        color: #666;
    }

/* TABLE */
.pnl-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

/* SECTION HEADER (colored bar) */
.section-row th {
    background: #2e7d32;
    color: white;
    text-align: left;
    padding: 8px;
    font-size: 15px;
}

/* COLUMN HEADER */
.column-header th {
    border-bottom: 2px solid #444;
    padding: 6px;
    font-weight: 600;
}

/* ROWS */
.pnl-table td {
    padding: 6px;
    border-bottom: 1px dotted #ccc;
}

/* ACCOUNT */
.account {
    padding-left: 10px;
}

/* AMOUNT */
.amount {
    text-align: right;
    font-family: "Courier New", monospace;
    min-width: 140px;
}

/* NEGATIVE VALUES */
.neg {
    color: #c62828;
}

/* TOTAL */
.total-row td {
    font-weight: bold;
    border-top: 2px solid #000;
    background: #f1f8e9;
}

/* GROSS PROFIT */
.highlight.gross {
    background: #ffe0b2;
    font-weight: bold;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

/* NET PROFIT */
.highlight.net {
    background: #ff7043;
    color: white;
    font-weight: bold;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    font-size: 16px;
}

/* FOOTER */
.report-footer {
    margin-top: 20px;
    text-align: right;
    font-size: 12px;
    color: #777;
}

.rtl-text-input {
    direction: rtl !important;
    text-align: right !important;
}

.ltr-text-input {
    direction: ltr !important;
    text-align: left !important;
}


/* =========================================
   Disable text selection in XAF Navigation
   ========================================= */


    .xaf-nav-item,
    .xaf-nav-item *,
    .xaf-navigation-link-click-area {
        user-select: none !important;
        -webkit-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
    }


/* =========================================
   Flexa - Comfortable XAF Grid
   ========================================= */

/* Normal rows */
.dxbl-grid-table tbody > tr > td {
    height: 32px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    vertical-align: middle !important;
}

    /* Make editable cells easy to hit */
    .dxbl-grid-table tbody > tr > td[data-edit-cell] {
        cursor: pointer;
    }

/* Editing row */
.dxbl-grid-table tbody > tr.dxbl-grid-edit-row > td {
    height: 32px !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

/* Selection checkbox cell */
.dxbl-grid-table tbody > tr > td.dxbl-grid-selection-cell {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

/* Command buttons */
.dxbl-grid-table tbody > tr > td.dxbl-grid-command-cell {
    padding-left: 6px !important;
    padding-right: 6px !important;
}





/** Compact layout*/




.dxbl-group-header {
    min-height: 38px !important;
    height: 38px !important;
    padding: 0 12px !important;
    display: flex !important;
    align-items: center !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-bottom: 1px solid #e1e6ef !important;
    box-sizing: border-box !important;
}

.dxbl-group-content {
    padding: 10px 14px !important;
    box-sizing: border-box !important;
}

label {
    font-weight: 500;
    color: #475569;
}

.dxbl-text-edit {
    border-radius: 6px !important;
}

.dxbl-text-edit:hover {
        border-color: #94a3b8 !important;
    }

.dxbl-text-edit:focus-within {
        border-color: #6366f1 !important;
        box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.12) !important;
    }

.dxbl-required-mark {
    color: #dc2626 !important;
}

textarea {
    min-height: 70px;
    border-radius: 6px !important;
    resize: vertical;
}


/* XAF Blazor Navigation */

.xaf-sidebar {
    flex: 0 0 var(--xaf-sidebar-width, 200px) !important;
    width: var(--xaf-sidebar-width, 200px) !important;
    min-width: 220px !important;
    max-width: 500px !important;
    position: relative;
}

.xaf-sidebar-resize-handle {
    position: absolute;
    top: 0;
    right: -3px;
    width: 6px;
    height: 100%;
    cursor: col-resize;
    z-index: 999999;
}

.xaf-sidebar-resize-handle:hover {
     background: rgba(0, 0, 0, 0.15);
   }

@media (max-width: 900px) {


    .modify-info {
        margin-bottom: 8px !important;
        border-radius: 6px !important;
    }

    .dxbl-group-content {
        padding: 8px 10px !important;
    }

    .dxbl-group-header {
        min-height: 36px !important;
        height: 36px !important;
        padding: 0 10px !important;
    }
}
