﻿html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1.0em;
    overscroll-behavior-y: auto;
    overscroll-behavior-x: none;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjtxNycwNSAxNjUuODEzIDUxLjQ4MzcgMjY2Lj6...==) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}


/* DataGridCPN Header / Toolbar Button Styling */

.grid-header-two-lines {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px; /* စာနှစ်ကြောင်းကြား */
    padding-top: 8px; /* အပေါ်နေရာလွတ် */
    padding-bottom: 8px; /* အောက်နေရာလွတ် */
    font-weight: 400;
}

.l7-grid-header {
    flex-wrap: wrap;
    gap: .85rem;
}

.l7-grid-actions {
    flex-wrap: wrap;
}

.l7-grid-btn {
    border: 1px solid transparent;
    color: #fff;
    font-weight: 600;
    border-radius: .65rem;
    padding: .44rem .85rem;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    box-shadow: 0 3px 10px rgba(13, 31, 53, 0.16);
    transition: all .2s ease;
}

.l7-grid-btn-create {
    background: linear-gradient(135deg, #0d8f8a, #0bb3a5);
    border-color: #087a75;
}

.l7-grid-btn-action {
    background: linear-gradient(135deg, #a32053, #d43673);
    border-color: #8d1a48;
}

.l7-grid-btn:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(13, 31, 53, 0.24);
}

.l7-grid-btn:active {
    transform: translateY(0);
}

.l7-grid-toolbar-host {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: .4rem;
}

.l7-grid-toolbar-host .dxbl-toolbar {
    background: linear-gradient(180deg, #f7faff 0%, #edf4ff 100%);
    border: 1px solid #d9e7ff;
    border-radius: .75rem;
    box-shadow: 0 3px 12px rgba(27, 110, 194, 0.1);
    padding: .2rem .35rem;
}

.l7-grid-toolbar-host .dxbl-toolbar .dxbl-btn {
    border-radius: .55rem;
    margin: 0 .1rem;
}

[data-bs-theme="dark"] .l7-grid-btn {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

[data-bs-theme="dark"] .l7-grid-btn-create {
    background: linear-gradient(135deg, #0b6f6b, #0a8b80);
    border-color: #0a6660;
}

[data-bs-theme="dark"] .l7-grid-btn-action {
    background: linear-gradient(135deg, #7f1740, #ab2558);
    border-color: #73133a;
}

[data-bs-theme="dark"] .l7-grid-toolbar-host .dxbl-toolbar {
    background: linear-gradient(180deg, #1f2937 0%, #19212d 100%);
    border-color: #2c3a4c;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
}

[data-bs-theme="dark"] .l7-grid-toolbar-host .dxbl-toolbar .dxbl-btn {
    color: #dbe9ff;
}

/* ============================================================================
   ✨ LUCKY 7 PETROLEUM - UNIFIED FIXED DARK MODE STYLES & TOKENS (v25.1.6)
   ============================================================================ */

[data-bs-theme="dark"] {
    /* Bootstrap Native Tokens Override */
    --bs-body-bg: #121212;
    --bs-body-color: #f8f9fa;
    --bs-tertiary-bg: #1e1e1e;
    --bs-body-color-rgb: 248, 249, 250;
    --bs-primary: #0d6efd;
    --bs-primary-rgb: 13, 110, 253;
    --bs-link-color: #8ab4ff;
    --bs-link-hover-color: #b3ceff;
    --bs-dropdown-bg: #1e1e1e;
    --bs-dropdown-color: #f8f9fa;
    --bs-dropdown-link-color: #f8f9fa;
    --bs-dropdown-link-hover-bg: #2b3a4a;
    --bs-dropdown-link-hover-color: #ffffff;
    --bs-dropdown-link-active-bg: #0d6efd;
    --bs-dropdown-link-active-color: #ffffff;
    /* L7 Custom Unified Theme Design Tokens */
    --l7-bg: #121212;
    --l7-surface: #1e1e1e;
    --l7-surface-2: #252525;
    --l7-border: #3d3d3d;
    --l7-border-dim: #2d2d2d;
    --l7-text: #f8f9fa;
    --l7-muted: #adb5bd;
    --l7-text-dim: #cfcfcf;
    --l7-primary: #0d6efd;
    --l7-hover: #2b3a4a;
}

    /* 🛡️ 1. Text, Labels & Headers Visibility */
    [data-bs-theme="dark"] label,
    [data-bs-theme="dark"] .form-label,
    [data-bs-theme="dark"] .col-form-label {
        color: #e4e6eb !important;
    }

    [data-bs-theme="dark"] .text-dark,
    [data-bs-theme="dark"] h1, [data-bs-theme="dark"] [focus], [data-bs-theme="dark"] h2,
    [data-bs-theme="dark"] h3, [data-bs-theme="dark"] h4, [data-bs-theme="dark"] h5, [data-bs-theme="dark"] h6 {
        color: var(--l7-text) !important;
    }

    [data-bs-theme="dark"] .text-muted,
    [data-bs-theme="dark"] .text-secondary,
    [data-bs-theme="dark"] .timeline-item .text-secondary {
        color: var(--l7-muted) !important;
    }

    /* 🛡️ 2. Core Inputs & DevExpress Editors (DxComboBox, DxDateEdit, TextEdit) */
    [data-bs-theme="dark"] .form-control,
    [data-bs-theme="dark"] .form-select,
    [data-bs-theme="dark"] input,
    [data-bs-theme="dark"] select,
    [data-bs-theme="dark"] textarea,
    [data-bs-theme="dark"] .dxbl-date-edit,
    [data-bs-theme="dark"] .dxbl-combobox,
    [data-bs-theme="dark"] .dxbl-combobox *,
    [data-bs-theme="dark"] [class*="dxbl-combobox"],
    [data-bs-theme="dark"] .dxbl-text-edit,
    [data-bs-theme="dark"] .dxbl-input-group,
    [data-bs-theme="dark"] .dxbl-input-wrapper input,
    [data-bs-theme="dark"] .dxbl-combobox input,
    [data-bs-theme="dark"] [class*="dxbl-text-edit"] input,
    [data-bs-theme="dark"] .dxbl-input-inner,
    [data-bs-theme="dark"] select.form-select {
        background-color: var(--l7-surface-2) !important;
        color: var(--l7-text) !important;
        border-color: var(--l7-border) !important;
        --dxbl-input-bg: var(--l7-surface-2) !important;
        --dxbl-input-color: var(--l7-text) !important;
        --dxbl-input-border-color: var(--l7-border) !important;
    }

        [data-bs-theme="dark"] .form-control:focus,
        [data-bs-theme="dark"] .form-select:focus {
            background-color: #2d2d2d !important;
            color: var(--l7-text) !important;
            border-color: var(--l7-primary) !important;
            box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
        }

    [data-bs-theme="dark"] .dxbl-input-wrapper,
    [data-bs-theme="dark"] .dxbl-input {
        background-color: transparent !important;
        color: var(--l7-text) !important;
    }

    /* မြန်မာ: Edit mode ထဲက ReadOnly PreOrder ComboBox ကို dark surface ပေါ်မှာတင်ထားသည်။ */
    [data-bs-theme="dark"] .l7-readonly-combobox,
    [data-bs-theme="dark"] .l7-readonly-combobox *,
    [data-bs-theme="dark"] .l7-readonly-combobox .dxbl-input-wrapper,
    [data-bs-theme="dark"] .l7-readonly-combobox .dxbl-input,
    [data-bs-theme="dark"] .l7-readonly-combobox .dxbl-input-inner,
    [data-bs-theme="dark"] .l7-readonly-combobox .dxbl-combobox-input,
    [data-bs-theme="dark"] .l7-readonly-combobox .dxbl-btn {
        background-color: var(--l7-surface-2) !important;
        background: var(--l7-surface-2) !important;
        color: var(--l7-text) !important;
        -webkit-text-fill-color: var(--l7-text) !important;
        border-color: var(--l7-border) !important;
        --dxbl-input-bg: var(--l7-surface-2) !important;
        --dxbl-input-color: var(--l7-text) !important;
        --dxbl-input-border-color: var(--l7-border) !important;
        opacity: 1 !important;
    }

    /* မြန်မာ: Sale detail row ထဲက PO Returned နဲ့ Sale Stock ကြားမှာ vertical splitter ပြထားသည်။ */
    .l7-sale-row-splitter {
        width: 1px;
        min-height: 100%;
        background-color: var(--l7-border);
        opacity: 0.9;
    }

    /* Read-only DevExpress editors: force dark surface in dark mode */
    [data-bs-theme="dark"] input[readonly],
    [data-bs-theme="dark"] textarea[readonly],
    [data-bs-theme="dark"] .form-control[readonly],
    [data-bs-theme="dark"] .dxbl-combobox[readonly],
    [data-bs-theme="dark"] .dxbl-combobox[aria-readonly="true"],
    [data-bs-theme="dark"] [class*="dxbl-combobox"][readonly],
    [data-bs-theme="dark"] [class*="dxbl-combobox"][aria-readonly="true"],
    [data-bs-theme="dark"] .dxbl-state-readonly,
    [data-bs-theme="dark"] .dxbl-combobox .dxbl-state-readonly,
    [data-bs-theme="dark"] .dxbl-text-edit input[readonly],
    [data-bs-theme="dark"] [class*="dxbl-text-edit"] input[readonly],
    [data-bs-theme="dark"] .dxbl-input input[readonly],
    [data-bs-theme="dark"] .dxbl-input-wrapper input[readonly],
    [data-bs-theme="dark"] .dxbl-combobox input[readonly],
    [data-bs-theme="dark"] .dxbl-combobox input[aria-readonly="true"],
    [data-bs-theme="dark"] .dxbl-combobox .dxbl-input-wrapper,
    [data-bs-theme="dark"] .dxbl-combobox .dxbl-input,
    [data-bs-theme="dark"] .dxbl-combobox .dxbl-input-inner,
    [data-bs-theme="dark"] [class*="dxbl-combobox"] .dxbl-input-wrapper,
    [data-bs-theme="dark"] [class*="dxbl-combobox"] .dxbl-input,
    [data-bs-theme="dark"] [class*="dxbl-combobox"] .dxbl-input-inner {
        background-color: var(--l7-surface-2) !important;
        color: var(--l7-text) !important;
        -webkit-text-fill-color: var(--l7-text) !important;
        opacity: 1 !important;
    }

    

    .dxbl-checkbox,
    .dxbs-checkbox,
    [class*="dxbl-check"],
    [class*="dxbs-check"],
    [role="checkbox"] {
        color: var(--l7-text) !important;
    }

    .dxbl-checkbox input[type="checkbox"],
    .dxbs-checkbox input[type="checkbox"],
    [class*="dxbl-check"] input[type="checkbox"],
    [class*="dxbs-check"] input[type="checkbox"],
    input[type="checkbox"] {
        appearance: auto;
        -webkit-appearance: auto;
        width: 1.05rem !important;
        height: 1.05rem !important;
        min-width: 1.05rem !important;
        min-height: 1.05rem !important;
        margin: 0 !important;
        flex-shrink: 0;
        opacity: 1 !important;
        accent-color: #22c55e !important;
        background-color: var(--l7-surface-2) !important;
        border: 1px solid var(--l7-border) !important;
        border-radius: 0.2rem;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    }

    .dxbl-checkbox input[type="checkbox"]:checked,
    .dxbs-checkbox input[type="checkbox"]:checked,
    [class*="dxbl-check"] input[type="checkbox"]:checked,
    [class*="dxbs-check"] input[type="checkbox"]:checked,
    input[type="checkbox"]:checked {
        accent-color: #22c55e !important;
        background-color: #22c55e !important;
        border-color: #86efac !important;
    }

    .dxbl-checkbox input[type="checkbox"]:not(:checked),
    .dxbs-checkbox input[type="checkbox"]:not(:checked),
    [class*="dxbl-check"] input[type="checkbox"]:not(:checked),
    [class*="dxbs-check"] input[type="checkbox"]:not(:checked),
    input[type="checkbox"]:not(:checked) {
        background-color: var(--l7-surface-2) !important;
        border-color: var(--l7-border) !important;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    }

    .dxbl-checkbox svg,
    .dxbs-checkbox svg,
    [class*="dxbl-check"] svg,
    [class*="dxbs-check"] svg,
    [role="checkbox"] svg {
        color: #ffffff !important;
        fill: currentColor !important;
    }

    [data-bs-theme="dark"] .dxbl-combobox .dxbl-btn,
    [data-bs-theme="dark"] [class*="dxbl-combobox"] .dxbl-btn,
    [data-bs-theme="dark"] .dxbl-date-edit .dxbl-btn,
    [data-bs-theme="dark"] [class*="dxbl-date-edit"] .dxbl-btn,
    [data-bs-theme="dark"] .dxbl-combobox [class*="btn"],
    [data-bs-theme="dark"] .dxbl-date-edit [class*="btn"] {
        background-color: var(--l7-surface-2) !important;
        color: var(--l7-text) !important;
        border-color: var(--l7-border) !important;
    }

    [data-bs-theme="dark"] .dxbl-combobox .dxbl-btn:hover,
    [data-bs-theme="dark"] [class*="dxbl-combobox"] .dxbl-btn:hover,
    [data-bs-theme="dark"] .dxbl-date-edit .dxbl-btn:hover,
    [data-bs-theme="dark"] [class*="dxbl-date-edit"] .dxbl-btn:hover {
        background-color: #2d2d2d !important;
        color: #ffffff !important;
        border-color: var(--l7-primary) !important;
    }

    [data-bs-theme="dark"] .dxbl-combobox .dxbl-btn svg,
    [data-bs-theme="dark"] [class*="dxbl-combobox"] .dxbl-btn svg,
    [data-bs-theme="dark"] .dxbl-date-edit .dxbl-btn svg,
    [data-bs-theme="dark"] [class*="dxbl-date-edit"] .dxbl-btn svg {
        fill: var(--l7-text) !important;
        color: var(--l7-text) !important;
    }

    [data-bs-theme="dark"] .input-group-text {
        background-color: #2d2d2d !important;
        color: #e4e6eb !important;
        border-color: var(--l7-border) !important;
    }

    /* 🛡️ 3. Cards & Structural Containers Layouts */
    [data-bs-theme="dark"] .card,
    [data-bs-theme="dark"] .card-body,
    [data-bs-theme="dark"] .dxbl-form-layout,
    [data-bs-theme="dark"] .dxbl-toolbar {
        background-color: var(--l7-surface) !important;
        color: #e4e6eb !important;
        border-color: var(--l7-border-dim) !important;
    }

    [data-bs-theme="dark"] .dxbl-form-layout .dxbl-fl-item,
    [data-bs-theme="dark"] .dxbl-form-layout [class*="dxbl-fl-item"],
    [data-bs-theme="dark"] .dxbl-form-layout .dxbl-fl-caption,
    [data-bs-theme="dark"] .dxbl-form-layout [class*="dxbl-fl-caption"],
    [data-bs-theme="dark"] .dxbl-form-layout .dxbl-fl-label,
    [data-bs-theme="dark"] .dxbl-form-layout [class*="dxbl-fl-label"],
    [data-bs-theme="dark"] .dxbl-form-layout .dxbl-fl-cpt,
    [data-bs-theme="dark"] .dxbl-form-layout [class*="dxbl-fl-cpt"] {
        background-color: transparent !important;
        color: var(--l7-text) !important;
        border-color: var(--l7-border-dim) !important;
    }

    [data-bs-theme="dark"] .dxbl-form-layout .dxbl-fl-caption *,
    [data-bs-theme="dark"] .dxbl-form-layout [class*="dxbl-fl-caption"] *,
    [data-bs-theme="dark"] .dxbl-form-layout .dxbl-fl-label *,
    [data-bs-theme="dark"] .dxbl-form-layout [class*="dxbl-fl-label"] *,
    [data-bs-theme="dark"] .dxbl-form-layout .dxbl-fl-cpt *,
    [data-bs-theme="dark"] .dxbl-form-layout [class*="dxbl-fl-cpt"] * {
        color: var(--l7-text) !important;
    }

    [data-bs-theme="dark"] .dxbl-form-layout .dxbl-fl-group,
    [data-bs-theme="dark"] .dxbl-form-layout [class*="dxbl-fl-group"],
    [data-bs-theme="dark"] .dxbl-form-layout fieldset,
    [data-bs-theme="dark"] .dxbl-form-layout legend {
        background-color: var(--l7-surface) !important;
        color: var(--l7-text) !important;
        border-color: var(--l7-border-dim) !important;
    }

    [data-bs-theme="dark"] .dxbl-form-layout {
        --dxbl-fl-group-bg: var(--l7-surface) !important;
        --dxbl-fl-group-color: var(--l7-text) !important;
        --dxbl-fl-group-border-color: var(--l7-border-dim) !important;
        --dxbl-fl-caption-color: var(--l7-text) !important;
    }

    [data-bs-theme="dark"] .dxbl-form-layout [class*="fl-group"],
    [data-bs-theme="dark"] .dxbl-form-layout [class*="fl-group"]::before,
    [data-bs-theme="dark"] .dxbl-form-layout [class*="fl-group"]::after,
    [data-bs-theme="dark"] .dxbl-form-layout [class*="form-layout-group"],
    [data-bs-theme="dark"] .dxbl-form-layout [class*="form-layout-group"]::before,
    [data-bs-theme="dark"] .dxbl-form-layout [class*="form-layout-group"]::after {
        background-color: var(--l7-surface) !important;
        border-color: var(--l7-border-dim) !important;
    }

    [data-bs-theme="dark"] .dxbl-form-layout .dxbl-fl-group-caption,
    [data-bs-theme="dark"] .dxbl-form-layout [class*="dxbl-fl-group-caption"],
    [data-bs-theme="dark"] .dxbl-form-layout [class*="fl-group-caption"],
    [data-bs-theme="dark"] .dxbl-form-layout [class*="form-layout-group-caption"],
    [data-bs-theme="dark"] .dxbl-form-layout .dxbl-fl-group-caption *,
    [data-bs-theme="dark"] .dxbl-form-layout [class*="dxbl-fl-group-caption"] *,
    [data-bs-theme="dark"] .dxbl-form-layout [class*="fl-group-caption"] *,
    [data-bs-theme="dark"] .dxbl-form-layout [class*="form-layout-group-caption"] *,
    [data-bs-theme="dark"] .dxbl-form-layout legend,
    [data-bs-theme="dark"] .dxbl-form-layout legend * {
        color: var(--l7-text) !important;
        background-color: transparent !important;
    }

    /* DevExpress FormLayout (dxbl-fl) explicit dark mode mapping */
    [data-bs-theme="dark"] .dxbl-fl {
        --dxbl-fl-bg: var(--l7-surface) !important;
        --dxbl-fl-color: var(--l7-text) !important;
        --dxbl-fl-border-color: var(--l7-border-dim) !important;
        --dxbl-fl-group-bg: var(--l7-surface) !important;
        --dxbl-fl-group-color: var(--l7-text) !important;
        --dxbl-fl-group-border-color: var(--l7-border-dim) !important;
        --dxbl-fl-caption-color: var(--l7-text) !important;
        background-color: var(--l7-surface) !important;
        color: var(--l7-text) !important;
    }

    [data-bs-theme="dark"] .dxbl-fl .dxbl-fl-group,
    [data-bs-theme="dark"] .dxbl-fl [class*="dxbl-fl-group"],
    [data-bs-theme="dark"] .dxbl-fl fieldset {
        background-color: var(--l7-surface) !important;
        border-color: var(--l7-border-dim) !important;
        color: var(--l7-text) !important;
    }

    [data-bs-theme="dark"] .dxbl-fl .dxbl-fl-group-caption,
    [data-bs-theme="dark"] .dxbl-fl [class*="dxbl-fl-group-caption"],
    [data-bs-theme="dark"] .dxbl-fl .dxbl-fl-cpt,
    [data-bs-theme="dark"] .dxbl-fl [class*="dxbl-fl-cpt"],
    [data-bs-theme="dark"] .dxbl-fl legend,
    [data-bs-theme="dark"] .dxbl-fl .dxbl-fl-caption,
    [data-bs-theme="dark"] .dxbl-fl [class*="dxbl-fl-caption"],
    [data-bs-theme="dark"] .dxbl-fl .dxbl-fl-label,
    [data-bs-theme="dark"] .dxbl-fl [class*="dxbl-fl-label"] {
        color: var(--l7-text) !important;
        background-color: transparent !important;
    }

    [data-bs-theme="dark"] .card-header:not([class*="bg-"]):not([class*="nss-card-header-"]),
    [data-bs-theme="dark"] .card-footer:not([class*="bg-"]):not([class*="nss-card-header-"]),
    [data-bs-theme="dark"] .timeline-item .card-header.bg-light {
        background-color: var(--l7-surface-2) !important;
        border-bottom: 1px solid var(--l7-border-dim) !important;
    }

    [data-bs-theme="dark"] div[class*="ListPageLayout"],
    [data-bs-theme="dark"] div[class*="grid-container"] {
        background-color: var(--l7-bg) !important;
    }

/* ============================================================================
   4. DevExpress Tabs
   ============================================================================ */
.dxbl-tabs,
.dxbl-tabs-content,
.dxbl-tab-content {
    --dxbl-tabs-bg: #ffffff !important;
}

[data-bs-theme="dark"] .dxbl-tabs,
[data-bs-theme="dark"] .dxbl-tabs-content,
[data-bs-theme="dark"] .dxbl-tab-content {
    background-color: var(--l7-surface-2) !important;
    --dxbl-tabs-bg: var(--l7-surface) !important;
}

[data-bs-theme="dark"] .dxbl-tabs ul[role="tablist"],
[data-bs-theme="dark"] .dxbl-tabs .nav-tabs {
    background-color: var(--l7-surface-2) !important;
    border-bottom: 1px solid var(--l7-border-dim) !important;
    box-shadow: none !important;
}

[data-bs-theme="dark"] .dxbl-tabs .nav-link span,
[data-bs-theme="dark"] .dxbl-tabs .dxbl-text {
    color: var(--l7-text-dim) !important;
}

@media (max-width: 576px) {
    .dxbl-tabs ul[role="tablist"],
    .dxbl-tabs .nav-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: .4rem;

        .l7-dashboard-text {
            font-size: 0.2rem !important;
        }
    }

    .dxbl-tabs ul[role="tablist"]::-webkit-scrollbar,
    .dxbl-tabs .nav-tabs::-webkit-scrollbar {
        display: none !important;
        height: 0 !important;
    }

    .dxbl-tabs .nav-item,
    .dxbl-tabs .dxbl-tab {
        flex: 0 0 auto !important;
    }

    .dxbl-tabs .nav-link,
    .dxbl-tabs .dxbl-text {
        white-space: nowrap !important;
        font-size: .9rem !important;
    }
}

/* ============================================================================
   🛡️ 5. DevExpress Grid Rows, Columns Header & Summary Alignment
   ============================================================================ */
[data-bs-theme="dark"] .dxbl-grid {
    background-color: var(--l7-surface) !important;
    color: #e4e6eb !important;
    border-color: var(--l7-border-dim) !important;
    --dxbl-grid-bg: var(--l7-surface) !important;
    --dxbl-grid-color: #e4e6eb !important;
    --dxbl-grid-border-color: var(--l7-border-dim) !important;
}

/*Grid Column Height Adjustment*/
.l7-grid-compact .dxbl-grid-header-row > th {
    padding-top: .8rem !important;
    padding-bottom: .8rem !important;
}

/* DxTabs ထဲက Grid ရဲ့ Cell Height မကျုံ့သွားစေရန် */
.tab-grid-fix .dxbl-grid-cell {
    min-height: 40px !important;
    line-height: 1.5 !important;
    display: table-cell;
    vertical-align: middle;
}

.l7-grid-compact .dxbl-grid-data-row > td,
.l7-grid-compact .dxbl-grid-alt-row > td {
    padding-top: .85rem !important;
    padding-bottom: .85rem !important;
}

.dxbl-tabs .l7-grid-compact .dxbl-grid-data-row > td,
.dxbl-tabs .l7-grid-compact .dxbl-grid-alt-row > td {
    padding-top: 1.15rem !important;
    padding-bottom: 1.15rem !important;
    line-height: 1.45 !important;
}

    [data-bs-theme="dark"] .dxbl-grid-header-row:not([class*="bg-"]):not([class*="nss-card-header-"]),
    [data-bs-theme="dark"] .dxbl-grid th:not([class*="bg-"]):not([class*="nss-card-header-"]),
    [data-bs-theme="dark"] .dxbl-grid .dxbl-grid-footer-box,
    [data-bs-theme="dark"] .dxbl-grid .dxbl-grid-summary-row,
    [data-bs-theme="dark"] .dxbl-grid tfoot,
    [data-bs-theme="dark"] .dxbl-grid .dxbl-grid-footer,
    [data-bs-theme="dark"] tfoot td {
        background-color: var(--l7-surface-2) !important;
        border-color: var(--l7-border) !important;
    }

    [data-bs-theme="dark"] .dxbl-grid th {
        color: #ffffff !important;
    }

    [data-bs-theme="dark"] .dxbl-grid .dxbl-grid-summary-item,
    [data-bs-theme="dark"] .dxbl-grid td[class*="summary"],
    [data-bs-theme="dark"] .dxbl-grid tfoot td {
        color: #ffc107 !important;
        font-weight: bold !important;
    }

    [data-bs-theme="dark"] .dxbl-grid .dxbl-grid-data-row {
        background-color: var(--l7-surface) !important;
    }

    [data-bs-theme="dark"] .dxbl-grid .dxbl-grid-alt-row {
        background-color: #202020 !important;
    }

    [data-bs-theme="dark"] .dxbl-grid .dxbl-grid-data-row:hover {
        background-color: var(--l7-hover) !important;
        color: #ffffff !important;
    }

    [data-bs-theme="dark"] .dxbl-grid .dxbl-grid-selected-row,
    [data-bs-theme="dark"] .dxbl-grid-selected-row {
        background-color: #16365c !important;
        color: #ffffff !important;
    }

        [data-bs-theme="dark"] .dxbl-grid .dxbl-grid-selected-row:hover {
            background-color: #1c4575 !important;
            color: #ffffff !important;
        }

/* 🛡️ 6. DevExpress Grid Data Pager & Page Size Combo */
[data-bs-theme="dark"] .dxbl-grid-pager,
[data-bs-theme="dark"] .dxbl-pager {
    background-color: var(--l7-surface-2) !important;
    border-top: 1px solid var(--l7-border) !important;
    color: var(--l7-text) !important;
}

    [data-bs-theme="dark"] .dxbl-pager button,
    [data-bs-theme="dark"] .dxbl-pager .dxbl-btn,
    [data-bs-theme="dark"] .dxbl-pager-page-btn,
    [data-bs-theme="dark"] .dxbl-pager-page-number {
        background-color: #333 !important;
        color: var(--l7-text) !important;
        border: 1px solid #4d4d4d !important;
    }

        [data-bs-theme="dark"] .dxbl-pager button:hover,
        [data-bs-theme="dark"] .dxbl-pager .dxbl-btn:hover,
        [data-bs-theme="dark"] .dxbl-pager-page-btn:hover {
            background-color: #444 !important;
            border-color: var(--l7-primary) !important;
            color: #ffffff !important;
        }

        [data-bs-theme="dark"] .dxbl-pager .dxbl-btn.dxbl-btn-active,
        [data-bs-theme="dark"] .dxbl-pager-page-number.dxbl-active,
        [data-bs-theme="dark"] .dxbl-pager button[aria-current="page"] {
            background-color: var(--l7-primary) !important;
            border-color: var(--l7-primary) !important;
            color: #ffffff !important;
            font-weight: 600;
        }

        [data-bs-theme="dark"] .dxbl-pager button:disabled,
        [data-bs-theme="dark"] .dxbl-pager .dxbl-btn:disabled {
            background-color: #1a1a1a !important;
            color: #666 !important;
            border-color: var(--l7-border-dim) !important;
            opacity: 0.6;
        }

    [data-bs-theme="dark"] .dxbl-pager input,
    [data-bs-theme="dark"] .dxbl-pager select,
    [data-bs-theme="dark"] .dxbl-pager .dxbl-input,
    [data-bs-theme="dark"] .dxbl-pager-page-size-selector,
    [data-bs-theme="dark"] .dxbl-pager-page-size-selector .dxbl-input,
    [data-bs-theme="dark"] .dxbl-pager-page-size-selector input,
    [data-bs-theme="dark"] .dxbl-pager-page-size-selector .dxbl-edit,
    [data-bs-theme="dark"] .dxbl-pager-page-size-selector select,
    [data-bs-theme="dark"] .dxbl-pager-page-size-selector .dxbl-btn,
    [data-bs-theme="dark"] .dxbl-pager-page-size-selector button {
        background-color: var(--l7-surface-2) !important;
        color: var(--l7-text) !important;
        border-color: var(--l7-border) !important;
    }

        [data-bs-theme="dark"] .dxbl-pager-page-size-selector select {
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
        }

/* ============================================================================
   🎨 [SOLID SOLUTION]: DXPOPUP, CALENDAR & DXCOMBOBOX SOLID COLOR FIXES
   ============================================================================ */
/* ⚪ NORMAL MODE (LIGHT MODE): Popup, Calendar နှင့် Dropdown အားလုံးကို အဖြူရောင်စစ်စစ်ပေးခြင်း */
.dxbl-popup-wrapper,
.dxbl-popup,
.dxbl-dropdown,
.dxbl-dropdown-window,
.dxbl-listbox,
.dxbl-list-box,
.dxbl-popup-content,
.dxbl-calendar,
.dxbl-calendar-element,
.modal-header,
.modal-body,
.modal-footer {
    background-color: #ffffff !important;
    color: #212529 !important;
}

/* ⚫ DARK MODE: Popup, Calendar နှင့် Dropdown အားလုံးကို အမည်းရောင်/ပြာမှောင်ရောင်ပေးခြင်း */
[data-bs-theme="dark"] .dxbl-popup-wrapper,
[data-bs-theme="dark"] .dxbl-popup,
[data-bs-theme="dark"] div[class*="dxbl-popup-wrapper"],
[data-bs-theme="dark"] div[class*="dxbl-popup"] {
    --dxbl-dropdown-bg: var(--l7-surface) !important;
    --dxbl-listbox-bg: var(--l7-surface) !important;
    --dxbl-popup-bg: var(--l7-surface) !important;
    --dxbl-popup-color: var(--l7-text) !important;
    background-color: var(--l7-surface) !important;
    color: var(--l7-text) !important;
}

[data-bs-theme="dark"] .dxbl-dropdown,
[data-bs-theme="dark"] .dxbl-dropdown-window,
[data-bs-theme="dark"] .dxbl-listbox,
[data-bs-theme="dark"] .dxbl-list-box,
[data-bs-theme="dark"] .dxbl-dropdown-menu,
[data-bs-theme="dark"] .dxbl-dropdown-list,
[data-bs-theme="dark"] [class*="dxbl-dropdown"],
[data-bs-theme="dark"] .dxbl-calendar,
[data-bs-theme="dark"] .dxbl-calendar-element,
[data-bs-theme="dark"] .dxbl-popup-wrapper .dxbl-dropdown-window,
[data-bs-theme="dark"] .dxbl-popup-wrapper .dxbl-list-box,
[data-bs-theme="dark"] .dxbl-popup .dxbl-popup-content,
[data-bs-theme="dark"] [class*="dxbl-popup-header"],
[data-bs-theme="dark"] [class*="dxbl-popup-footer"] {
    background-color: var(--l7-surface) !important;
    color: var(--l7-text) !important;
    border-color: var(--l7-border) !important;
}

    /* ✨ CALENDAR နေ့စွဲစာသားများ (Dark Mode တွင် အဖြူရောင်စစ်စစ် ထင်ရှားစေရန် ပြန်လည်ဖြည့်စွက်ချက်) */
    [data-bs-theme="dark"] .dxbl-calendar th,
    [data-bs-theme="dark"] .dxbl-calendar td,
    [data-bs-theme="dark"] .dxbl-calendar .dxbl-btn {
        background-color: transparent !important;
        color: var(--l7-surface2);
        border-color: var(--l7-primary) !important;
    }

    [data-bs-theme="dark"] .dxbl-calendar td[aria-current="date"],
    [data-bs-theme="dark"] .dxbl-calendar .dxbl-calendar-today,
    [data-bs-theme="dark"] .dxbl-calendar .dxbl-today,
    [data-bs-theme="dark"] .dxbl-calendar .dxbl-calendar-current-date,
    [data-bs-theme="dark"] .dxbl-calendar .dxbl-calendar-current-day {
        background-color: var(--l7-primary) !important;
        color: #ffffff !important;
        border-color: var(--l7-primary) !important;
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
    }

    [data-bs-theme="dark"] .dxbl-calendar td[aria-current="date"] .dxbl-btn,
    [data-bs-theme="dark"] .dxbl-calendar .dxbl-calendar-today .dxbl-btn,
    [data-bs-theme="dark"] .dxbl-calendar .dxbl-today .dxbl-btn,
    [data-bs-theme="dark"] .dxbl-calendar .dxbl-calendar-current-date .dxbl-btn,
    [data-bs-theme="dark"] .dxbl-calendar .dxbl-calendar-current-day .dxbl-btn {
        color: #ffffff !important;
        background-color: transparent !important;
    }



        [data-bs-theme="dark"] .dxbl-calendar .dxbl-btn:hover {
            background-color: transparent !important;
            box-shadow: inset 0 0 0 1px var(--l7-primary) !important;
        }




/* Popup Header/Footer UI (Dark Mode) */
[data-bs-theme="dark"] .dxbl-popup .modal-header,
[data-bs-theme="dark"] .dxbl-popup .modal-footer,
[data-bs-theme="dark"] .dxbl-popup div[class*="header"],
[data-bs-theme="dark"] .dxbl-popup div[class*="footer"] {
    background-color: var(--l7-surface-2) !important;
    color: var(--l7-text) !important;
    border-color: var(--l7-border-dim) !important;
}

[data-bs-theme="dark"] .dxbl-popup .modal-body,
[data-bs-theme="dark"] .dxbl-popup div[class*="body"],
[data-bs-theme="dark"] .dxbl-popup .dxbl-popup-body * {
    color: var(--l7-text) !important;
}

/* Shared Image Preview Modal (Dark Mode): force black shell/header/footer with readable text */
[data-bs-theme="dark"] .image-preview-modal-content {
    background-color: #000000 !important;
    color: #f8f9fa !important;
    border-color: #2b2b2b !important;
}

[data-bs-theme="dark"] .image-preview-modal-content .modal-header,
[data-bs-theme="dark"] .image-preview-modal-content .modal-footer {
    background-color: #000000 !important;
    color: #f8f9fa !important;
    border-color: #2b2b2b !important;
}

[data-bs-theme="dark"] .image-preview-modal-content .modal-body {
    background-color: #000000 !important;
    color: #f8f9fa !important;
}

[data-bs-theme="dark"] .image-preview-modal-content .modal-title,
[data-bs-theme="dark"] .image-preview-modal-content .text-muted {
    color: #f8f9fa !important;
}

[data-bs-theme="dark"] .image-preview-modal-content .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%) !important;
}

/* Dropdown Inner List Items Setting */
.dxbl-popup-wrapper .dxbl-list-box-item,
.dxbl-popup-wrapper .dxbl-listbox-item,
.dxbl-popup-wrapper .dxbl-list-item {
    color: inherit;
}

[data-bs-theme="dark"] .dxbl-listbox-item,
[data-bs-theme="dark"] .dxbl-list-item {
    background-color: var(--l7-surface) !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .dxbl-listbox,
[data-bs-theme="dark"] .dxbl-list-box,
[data-bs-theme="dark"] .dxbl-listbox ul,
[data-bs-theme="dark"] .dxbl-listbox ol,
[data-bs-theme="dark"] .dxbl-listbox li,
[data-bs-theme="dark"] .dxbl-dropdown-window .dropdown-menu,
[data-bs-theme="dark"] .dxbl-dropdown-window .dropdown-item,
[data-bs-theme="dark"] .dxbl-popup-wrapper .dropdown-menu,
[data-bs-theme="dark"] .dxbl-popup-wrapper .dropdown-item,
[data-bs-theme="dark"] .dxbl-listbox [class*="item-content"],
[data-bs-theme="dark"] .dxbl-listbox [class*="item-text"],
[data-bs-theme="dark"] .dxbl-listbox [class*="list-item"] {
    background-color: var(--l7-surface) !important;
    color: var(--l7-text) !important;
    border-color: var(--l7-border-dim) !important;
}

[data-bs-theme="dark"] .dxbl-listbox li:hover,
[data-bs-theme="dark"] .dxbl-listbox .dropdown-item:hover,
[data-bs-theme="dark"] .dxbl-listbox [class*="item-content"]:hover,
[data-bs-theme="dark"] .dxbl-listbox [class*="list-item"]:hover,
[data-bs-theme="dark"] .dxbl-dropdown-window .dropdown-item:hover,
[data-bs-theme="dark"] .dxbl-popup-wrapper .dropdown-item:hover {
    background-color: var(--l7-hover) !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .dxbl-listbox li[aria-selected="true"],
[data-bs-theme="dark"] .dxbl-listbox .dropdown-item.active,
[data-bs-theme="dark"] .dxbl-listbox [class*="active"],
[data-bs-theme="dark"] .dxbl-listbox [aria-selected="true"] {
    background-color: var(--l7-primary) !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .dxbl-dropdown .dxbl-list-editor,
[data-bs-theme="dark"] .dxbl-dropdown [class*="dxbl-list-editor"],
[data-bs-theme="dark"] .dxbl-listbox .dxbl-list-editor,
[data-bs-theme="dark"] .dxbl-popup-wrapper [class*="dxbl-list-editor"] {
    background-color: var(--l7-surface) !important;
    color: var(--l7-text) !important;
    border-color: var(--l7-border) !important;
}

[data-bs-theme="dark"] .dxbl-dropdown .dxbl-list-editor thead,
[data-bs-theme="dark"] .dxbl-dropdown .dxbl-list-editor th,
[data-bs-theme="dark"] .dxbl-dropdown [class*="dxbl-list-editor"] th,
[data-bs-theme="dark"] .dxbl-popup-wrapper [class*="dxbl-list-editor"] th {
    background-color: var(--l7-surface-2) !important;
    color: var(--l7-text) !important;
    border-color: var(--l7-border) !important;
}

[data-bs-theme="dark"] .dxbl-dropdown .dxbl-list-editor td,
[data-bs-theme="dark"] .dxbl-dropdown [class*="dxbl-list-editor"] td,
[data-bs-theme="dark"] .dxbl-popup-wrapper [class*="dxbl-list-editor"] td {
    background-color: var(--l7-surface) !important;
    color: var(--l7-text) !important;
    border-color: var(--l7-border-dim) !important;
}

[data-bs-theme="dark"] .dxbl-dropdown table,
[data-bs-theme="dark"] .dxbl-dropdown-window table,
[data-bs-theme="dark"] .dxbl-popup-wrapper table,
[data-bs-theme="dark"] .dxbl-dropdown [class*="list-editor"] table,
[data-bs-theme="dark"] .dxbl-dropdown [class*="dxbl-list"] table {
    --bs-table-bg: var(--l7-surface) !important;
    --bs-table-color: var(--l7-text) !important;
    --bs-table-striped-bg: #202020 !important;
    --bs-table-striped-color: var(--l7-text) !important;
    --bs-table-hover-bg: var(--l7-hover) !important;
    --bs-table-hover-color: #ffffff !important;
    background-color: var(--l7-surface) !important;
    color: var(--l7-text) !important;
    border-color: var(--l7-border-dim) !important;
}

[data-bs-theme="dark"] .dxbl-dropdown table tr,
[data-bs-theme="dark"] .dxbl-dropdown table th,
[data-bs-theme="dark"] .dxbl-dropdown table td,
[data-bs-theme="dark"] .dxbl-dropdown-window table tr,
[data-bs-theme="dark"] .dxbl-dropdown-window table th,
[data-bs-theme="dark"] .dxbl-dropdown-window table td,
[data-bs-theme="dark"] .dxbl-popup-wrapper table tr,
[data-bs-theme="dark"] .dxbl-popup-wrapper table th,
[data-bs-theme="dark"] .dxbl-popup-wrapper table td {
    background-color: var(--l7-surface) !important;
    color: var(--l7-text) !important;
    border-color: var(--l7-border-dim) !important;
}

[data-bs-theme="dark"] .dxbl-dropdown table thead th,
[data-bs-theme="dark"] .dxbl-dropdown-window table thead th,
[data-bs-theme="dark"] .dxbl-popup-wrapper table thead th {
    background-color: var(--l7-surface-2) !important;
    color: #ffffff !important;
    border-color: var(--l7-border) !important;
}

[data-bs-theme="dark"] .dxbl-dropdown table tbody tr:hover td,
[data-bs-theme="dark"] .dxbl-dropdown-window table tbody tr:hover td,
[data-bs-theme="dark"] .dxbl-dropdown table tbody tr.dxbl-active td,
[data-bs-theme="dark"] .dxbl-dropdown-window table tbody tr.dxbl-active td {
    background-color: var(--l7-hover) !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .dxbl-calendar table tbody td:hover,
[data-bs-theme="dark"] .dxbl-calendar table tbody td:hover .dxbl-btn {
    background-color: var(--l7-hover) !important;
    color: #ffffff !important;
    border-color: var(--l7-hover) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12) !important;
}

/* 🛡️ 7.1 Column Chooser Text Contrast (Dark Mode Toggle Case) */
[data-bs-theme="dark"] .dxbl-grid-column-chooser,
[data-bs-theme="dark"] [class*="column-chooser"],
[data-bs-theme="dark"] [class*="columnchooser"] {
    background-color: var(--l7-surface) !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .dxbl-grid-column-chooser .dxbl-listbox-item,
[data-bs-theme="dark"] .dxbl-grid-column-chooser .dxbl-list-item,
[data-bs-theme="dark"] [class*="column-chooser"] .dxbl-listbox-item,
[data-bs-theme="dark"] [class*="column-chooser"] .dxbl-list-item,
[data-bs-theme="dark"] [class*="columnchooser"] .dxbl-listbox-item,
[data-bs-theme="dark"] [class*="columnchooser"] .dxbl-list-item {
    background-color: var(--l7-surface) !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .dxbl-grid-column-chooser .dxbl-listbox-item:hover,
[data-bs-theme="dark"] .dxbl-grid-column-chooser .dxbl-list-item:hover,
[data-bs-theme="dark"] [class*="column-chooser"] .dxbl-listbox-item:hover,
[data-bs-theme="dark"] [class*="column-chooser"] .dxbl-list-item:hover,
[data-bs-theme="dark"] [class*="columnchooser"] .dxbl-listbox-item:hover,
[data-bs-theme="dark"] [class*="columnchooser"] .dxbl-list-item:hover {
    background-color: var(--l7-hover) !important;
    color: #ffffff !important;
}

/* 🛡️ 7.1 Column Chooser Checkbox Contrast (Dark Mode) */
[data-bs-theme="dark"] .dxbl-grid-column-chooser input[type="checkbox"],
[data-bs-theme="dark"] [class*="column-chooser"] input[type="checkbox"],
[data-bs-theme="dark"] [class*="columnchooser"] input[type="checkbox"] {
    appearance: auto;
    accent-color: #3b82f6 !important;
    background-color: #111827 !important;
    border: 1px solid #94a3b8 !important;
}

[data-bs-theme="dark"] .dxbl-grid-column-chooser input[type="checkbox"]:checked,
[data-bs-theme="dark"] [class*="column-chooser"] input[type="checkbox"]:checked,
[data-bs-theme="dark"] [class*="columnchooser"] input[type="checkbox"]:checked {
    background-color: #3b82f6 !important;
    border-color: #60a5fa !important;
}

    [data-bs-theme="dark"] .dxbl-listbox-item:hover,
    [data-bs-theme="dark"] .dxbl-list-item:hover {
        background-color: var(--l7-hover) !important;
        color: #ffffff !important;
    }

    [data-bs-theme="dark"] .dxbl-listbox-item.dxbl-active {
        background-color: var(--l7-primary) !important;
        color: var(--l7-text) !important;
    }

/* 🛡️ 7. Excel & Columns Icons Filter Visibility Setup */
[data-bs-theme="dark"] .dxbl-toolbar img,
[data-bs-theme="dark"] .dxbl-toolbar [class*="dxbl"] img,
[data-bs-theme="dark"] .dxbl-toolbar img[src*="icon"],
[data-bs-theme="dark"] .dxbl-toolbar img[src*="columns"],
[data-bs-theme="dark"] .dxbl-toolbar img[src*="excel"] {
    filter: invert(1) brightness(10) contrast(10) !important;
    width: auto !important;
    height: auto !important;
}

[data-bs-theme="dark"] .d-flex.justify-content-between.align-items-center.mb-2 {
    background-color: transparent !important;
    color: #ffffff !important;
}

/* 🛡️ 8. Close Button Highlight Style (Premium White Outline) */
[data-bs-theme="dark"] .card-header .btn-light,
[data-bs-theme="dark"] .card-header .btn-light.text-dark {
    background-color: transparent !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    transition: all 0.2s ease;
}

    [data-bs-theme="dark"] .card-header .btn-light:hover {
        background-color: rgba(255, 255, 255, 0.15) !important;
        color: #ffffff !important;
        border-color: #ffffff !important;
    }

/* ============================================================================
   ✨ GLOBAL CUSTOM FRAMEWORK APPS UI COMPONENTS STATE
   ============================================================================ */
.nav-icon {
    width: 28px;
    height: 28px;
    margin-right: 8px;
}

.ptr-container, .ptr-main {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
}

.dxbs-grid-row, .dxbs-grid-header-row {
    height: 170px;
}

.highlighted-item > td {
    background-color: #fffd98;
}

.dxbl-grid-selected-row {
    background-color: #98ffb7;
}

.thumbnail-responsive {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

/* Custom Action Buttons */
.nss-button-green {
    background-color: #ff3f13;
    color: white;
    font-weight: 500;
    font-size: 0.7rem;
    padding: 0.5rem;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.nss-button-blue {
    background-color: #b72576;
    color: white;
    font-weight: 500;
    font-size: 0.7rem;
    padding: 0.5rem;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.nss-button-edit {
    background-color: #1861ac;
    color: white;
    font-weight: 500;
    font-size: 0.7rem;
    padding: 0.5rem;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.nss-bg-orange {
    background-color: #89921c;
    color: #fff;
}

.nss-bg-red {
    background-color: red;
    color: #fff;
}

.nss-bg-green {
    background-color: #26b050;
    color: #fff;
}

.nss-bg-magenta {
    background-color: #6f0b63;
    color: #fff;
}

.nss-bg-gray.dx-texteditor .dx-texteditor-input {
    background-color: #6c757d !important;
    color: #ffffff !important;
    text-align: center;
    font-weight: bold;
}

.nss-bg-gray-input {
    background-color: #6c757d;
    color: white;
    text-align: center;
    font-weight: bold;
}

/* 🎨 DYNAMIC WORKFLOW CARDS CUSTOM NSS HEADERS */
.nss-card-header-pending, [data-bs-theme="dark"] .card .nss-card-header-pending, [data-bs-theme="dark"] .nss-card-header-pending {
    background-color: #1861ac !important;
    color: mistyrose !important;
}

.nss-card-header-approved, [data-bs-theme="dark"] .card .nss-card-header-approved, [data-bs-theme="dark"] .nss-card-header-approved {
    background-color: #007524 !important;
    color: mistyrose !important;
}

.nss-card-header-finished, [data-bs-theme="dark"] .card .nss-card-header-finished, [data-bs-theme="dark"] .nss-card-header-finished {
    background-color: #258cfb !important;
    color: mistyrose !important;
}

.nss-card-header-cancelled, [data-bs-theme="dark"] .card .nss-card-header-cancelled, [data-bs-theme="dark"] .nss-card-header-cancelled {
    background-color: #b32121 !important;
    color: mistyrose !important;
}

.card {
    border: 1px solid pink;
    padding-bottom: 3%;
}

/* Scroll To Top Setup */
.scroll-to-top-button {
    position: fixed !important;
    bottom: 30px;
    right: 30px;
    z-index: 9999 !important;
    width: 50px;
    height: 50px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease-in-out;
}

    .scroll-to-top-button i {
        font-size: 1.6rem;
    }

    .scroll-to-top-button:hover {
        transform: translateY(-5px) scale(1.1);
    }

@media (max-width: 994.98px) {
    .scroll-to-top-button {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Progress and SweetAlerts Config */
.swal2-timer-progress-bar {
    height: 10px !important;
    background-color: teal !important;
}

.swal2-title {
    font-size: 1.5rem !important;
}

.swal2-html-container {
    font-size: 1.1rem !important;
}

.swal2-styled {
    font-size: 0.9rem !important;
}

.swal2-icon {
    width: 5em !important;
    height: 5em !important;
    font-size: 0.8em !important;
}

/* Lines Layout hr setup */
.hr-text {
    display: flex;
    align-items: center;
    text-align: center;
    color: red;
}

    .hr-text::before, .hr-text::after {
        content: '';
        flex: auto;
        border-bottom: 1px solid #ff5d5d;
    }

/* L7 Animated Custom Spinner Ring */
.l7-master-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.l7-loader-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
}

.l7-logo-pulse {
    width: 70px;
    height: auto;
    z-index: 2;
    animation: l7-pulse 2s ease-in-out infinite;
}

.l7-spinner-ring {
    position: absolute;
    width: 110px;
    height: 110px;
    border: 4px solid rgba(0, 94, 162, 0.05);
    border-top: 4px solid #1b6ec2;
    border-radius: 50%;
    animation: l7-spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.l7-text-style {
    margin-top: 20px;
    font-family: 'Pyidaungsu', 'Segoe UI', Tahoma, sans-serif;
    color: #1b6ec2;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    animation: l7-fade 0.5s ease-in;
}

@keyframes l7-pulse {
    0%, 100% {
        transform: scale(0.85);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

@keyframes l7-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes l7-fade {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.l7-loading-panel .dxlp-text {
    display: none !important;
}

.print-preparing-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 19, 34, 0.55);
    backdrop-filter: blur(2px);
}

.print-preparing-card {
    min-width: 280px;
    max-width: 90vw;
    padding: 1.5rem 1.75rem;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Viewer Scrollbars Configuration */
.dxbl-scroll-viewer-scroll-bar, .dxbl-scroll-viewer-scroll-thumb {
    height: 0.5rem !important;
    transition: height 0.5s ease;
}

.dxbl-scroll-viewer-scroll-thumb {
    border-radius: 0.5rem !important;
    background-color: rgb(25, 2, 2) !important;
}

    .dxbl-scroll-viewer-scroll-bar:hover, .dxbl-scroll-viewer-scroll-bar:hover .dxbl-scroll-viewer-scroll-thumb, .dxbl-scroll-viewer-scroll-thumb:hover {
        height: 1.2rem !important;
    }

/* DevExpress Core Buttons & Spinner Overrides */
.dxbl-btn-primary {
    --dxbl-btn-bg: #0d6efd !important;
    --dxbl-btn-border-color: #0d6efd !important;
    --dxbl-btn-color: #fff !important;
    --dxbl-btn-hover-bg: #0b5ed7 !important;
    --dxbl-btn-hover-border-color: #0a58ca !important;
    --dxbl-btn-hover-color: #fff !important;
    --dxbl-btn-active-bg: #0a58ca !important;
    --dxbl-btn-active-border-color: #0a53be !important;
    --dxbl-btn-active-shadow: 0 0 0 0.25rem rgba(49, 132, 253, 0.5) !important;
}

.custom-large-spinner {
    width: 1.0rem !important;
    height: 1.0rem !important;
}

.nss-icon-wrapper svg {
    display: block;
    fill: currentColor;
}

/* Final forced dark-mode override for DevExpress dropdown list popups */
[data-bs-theme="dark"] .dxbl-dropdown-window,
[data-bs-theme="dark"] .dxbl-dropdown-menu,
[data-bs-theme="dark"] .dxbl-dropdown-list,
[data-bs-theme="dark"] .dxbl-listbox,
[data-bs-theme="dark"] .dxbl-list-box,
[data-bs-theme="dark"] .dxbs-dropdown-window,
[data-bs-theme="dark"] .dxbs-dropdown-menu,
[data-bs-theme="dark"] .dxbs-dropdown-list,
[data-bs-theme="dark"] .dxbs-listbox,
[data-bs-theme="dark"] .dxbs-list-box,
[data-bs-theme="dark"] .dxbl-popup-wrapper .dropdown-menu,
[data-bs-theme="dark"] .dxbl-popup-wrapper [class*="dropdown-menu"],
[data-bs-theme="dark"] .dxbl-popup-wrapper [class*="listbox"],
[data-bs-theme="dark"] .dxbs-popup-wrapper .dropdown-menu,
[data-bs-theme="dark"] .dxbs-popup-wrapper [class*="dropdown-menu"],
[data-bs-theme="dark"] .dxbs-popup-wrapper [class*="listbox"],
[data-bs-theme="dark"] [role="listbox"] {
    background-color: var(--l7-surface) !important;
    color: var(--l7-text) !important;
    border-color: var(--l7-border-dim) !important;
    --dxbl-listbox-bg: var(--l7-surface) !important;
    --dxbl-dropdown-bg: var(--l7-surface) !important;
    --dxbl-popup-bg: var(--l7-surface) !important;
    --dxbs-listbox-bg: var(--l7-surface) !important;
    --dxbs-dropdown-bg: var(--l7-surface) !important;
    --dxbs-popup-bg: var(--l7-surface) !important;
    --dxbl-listbox-item-selected-bg: var(--l7-primary) !important;
    --dxbl-listbox-item-hover-bg: var(--l7-hover) !important;
    --dxbl-listbox-item-color: var(--l7-text) !important;
    --dxbs-listbox-item-selected-bg: var(--l7-primary) !important;
    --dxbs-listbox-item-hover-bg: var(--l7-hover) !important;
    --dxbs-listbox-item-color: var(--l7-text) !important;
    --dxbl-listbox-item-selected-color: #ffffff !important;
    --dxbs-listbox-item-selected-color: #ffffff !important;
}

[data-bs-theme="dark"] .dxbl-dropdown-window .dropdown-item,
[data-bs-theme="dark"] .dxbl-dropdown-window .dxbl-listbox-item,
[data-bs-theme="dark"] .dxbl-dropdown-window .dxbl-list-item,
[data-bs-theme="dark"] .dxbs-dropdown-window .dropdown-item,
[data-bs-theme="dark"] .dxbs-dropdown-window .dxbs-listbox-item,
[data-bs-theme="dark"] .dxbs-dropdown-window .dxbs-list-item,
[data-bs-theme="dark"] .dxbl-listbox .dxbl-listbox-item,
[data-bs-theme="dark"] .dxbl-listbox .dxbl-list-item,
[data-bs-theme="dark"] .dxbl-list-box .dxbl-listbox-item,
[data-bs-theme="dark"] .dxbl-list-box .dxbl-list-item,
[data-bs-theme="dark"] .dxbs-listbox .dxbs-listbox-item,
[data-bs-theme="dark"] .dxbs-listbox .dxbs-list-item,
[data-bs-theme="dark"] .dxbs-list-box .dxbs-listbox-item,
[data-bs-theme="dark"] .dxbs-list-box .dxbs-list-item,
[data-bs-theme="dark"] .dxbl-popup-wrapper .dropdown-item,
[data-bs-theme="dark"] .dxbl-popup-wrapper [class*="list-item"],
[data-bs-theme="dark"] .dxbl-popup-wrapper [class*="listbox-item"],
[data-bs-theme="dark"] .dxbs-popup-wrapper .dropdown-item,
[data-bs-theme="dark"] .dxbs-popup-wrapper [class*="list-item"],
[data-bs-theme="dark"] .dxbs-popup-wrapper [class*="listbox-item"],
[data-bs-theme="dark"] [role="option"] {
    background-color: var(--l7-surface) !important;
    color: var(--l7-text) !important;
    border-color: var(--l7-border-dim) !important;
}

[data-bs-theme="dark"] .dxbl-dropdown-window .dropdown-item:hover,
[data-bs-theme="dark"] .dxbl-dropdown-window .dxbl-listbox-item:hover,
[data-bs-theme="dark"] .dxbl-dropdown-window .dxbl-list-item:hover,
[data-bs-theme="dark"] .dxbs-dropdown-window .dropdown-item:hover,
[data-bs-theme="dark"] .dxbs-dropdown-window .dxbs-listbox-item:hover,
[data-bs-theme="dark"] .dxbs-dropdown-window .dxbs-list-item:hover,
[data-bs-theme="dark"] .dxbl-listbox .dxbl-listbox-item:hover,
[data-bs-theme="dark"] .dxbl-listbox .dxbl-list-item:hover,
[data-bs-theme="dark"] .dxbl-popup-wrapper .dropdown-item:hover,
[data-bs-theme="dark"] .dxbl-popup-wrapper [class*="list-item"]:hover,
[data-bs-theme="dark"] .dxbs-listbox .dxbs-listbox-item:hover,
[data-bs-theme="dark"] .dxbs-listbox .dxbs-list-item:hover,
[data-bs-theme="dark"] .dxbs-popup-wrapper .dropdown-item:hover,
[data-bs-theme="dark"] .dxbs-popup-wrapper [class*="list-item"]:hover,
[data-bs-theme="dark"] [role="option"]:hover {
    background-color: var(--l7-hover) !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .dxbl-dropdown-window .dropdown-item.active,
[data-bs-theme="dark"] .dxbl-dropdown-window .dropdown-item:active,
[data-bs-theme="dark"] .dxbl-dropdown-window .dxbl-listbox-item.dxbl-active,
[data-bs-theme="dark"] .dxbl-dropdown-window .dxbl-list-item.dxbl-active,
[data-bs-theme="dark"] .dxbs-dropdown-window .dropdown-item.active,
[data-bs-theme="dark"] .dxbs-dropdown-window .dropdown-item:active,
[data-bs-theme="dark"] .dxbs-dropdown-window .dxbs-listbox-item.dxbs-active,
[data-bs-theme="dark"] .dxbs-dropdown-window .dxbs-list-item.dxbs-active,
[data-bs-theme="dark"] .dxbl-listbox .dxbl-listbox-item.dxbl-active,
[data-bs-theme="dark"] .dxbl-listbox .dxbl-list-item.dxbl-active,
[data-bs-theme="dark"] .dxbs-listbox .dxbs-listbox-item.dxbs-active,
[data-bs-theme="dark"] .dxbs-listbox .dxbs-list-item.dxbs-active,
[data-bs-theme="dark"] .dxbl-popup-wrapper [class*="list-item"].active,
[data-bs-theme="dark"] .dxbl-popup-wrapper [class*="list-item"][aria-selected="true"],
[data-bs-theme="dark"] .dxbs-popup-wrapper [class*="list-item"].active,
[data-bs-theme="dark"] .dxbs-popup-wrapper [class*="list-item"][aria-selected="true"],
[data-bs-theme="dark"] [role="option"][aria-selected="true"] {
    background-color: var(--l7-primary) !important;
    color: #ffffff !important;
}
