/* Universal Design Tokens & Scrollbar Hiding Across All Browsers & Controls */
:root,
.fl-theme-light {
    --fl-topbar-h: 72px;
    --fl-navy: #061B55;
    --fl-royal: #1565FF;
    --fl-sky: #23A8FF;
    --fl-teal: #16D3D1;
    --fl-slate: #6B7A99;
    --fl-border: #CBD5E1;
    --fl-border-soft: #E2E8F0;
    --fl-bg-app: #F8FAFC;
    --fl-bg-sidebar: #061B55;
    --fl-bg-surface: #FFFFFF;
    --fl-bg-surface-2: #F1F5F9;
    --fl-bg-topbar: #FFFFFF;
    --fl-font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --fl-font-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --fl-text-primary: #0F172A;
    --fl-text-secondary: #475569;
    --fl-text-muted: #94A3B8;
    --fl-sidebar-border: rgba(255, 255, 255, 0.08);
    /* Syncfusion SfProgressBar */
    --fl-progress-track: #E2E8F0;
    --fl-color-green: #16A34A;
    --fl-color-amber: #D97706;
    --fl-color-red: #DC2626;
    --fl-color-teal: #0D9488;
    --fl-color-blue: #1565FF;
    --fl-color-purple: #7C3AED;
}

html.fl-theme-dark,
html.fl-theme-dark body,
html.fl-theme-dark .fl-shell,
html.fl-theme-dark #fl-app-shell,
.fl-theme-dark {
    color-scheme: dark;
    --fl-topbar-h: 72px;
    --fl-bg-app: #01071B;
    --fl-bg-sidebar: #040C1C;
    --fl-bg-surface: #0F1B32;
    --fl-bg-surface-2: #142037;
    --fl-bg-topbar: #0F1B32;
    --fl-text-primary: #E2E8F0;
    --fl-text-secondary: #94A3B8;
    --fl-text-muted: #475569;
    --fl-border: #1C2D4A;
    --fl-border-soft: #152035;
    --fl-sidebar-border: rgba(255, 255, 255, 0.08);
    --fl-danger: #FF5C5C;
    --fl-danger-bg: rgba(239, 68, 68, 0.16);
    --fl-success: #22C55E;
    --fl-success-bg: rgba(34, 197, 94, 0.16);
    --fl-warning: #F59E0B;
    --fl-warning-bg: rgba(245, 158, 11, 0.16);
    --fl-info: #38BDF8;
    --fl-info-bg: rgba(56, 189, 248, 0.16);
    /* Syncfusion SfProgressBar */
    --fl-progress-track: #1C2D4A;
    --fl-color-green: #22C55E;
    --fl-color-amber: #F59E0B;
    --fl-color-red: #EF4444;
    --fl-color-teal: #14B8A6;
    --fl-color-blue: #60A5FA;
    --fl-color-purple: #A78BFA;
}

html.fl-theme-dark,
html.fl-theme-dark body,
html.fl-theme-dark .fl-shell,
html.fl-theme-dark #fl-app-shell {
    background-color: #080F20 !important;
    color: #E2E8F0 !important;
}

html.fl-theme-light,
html.fl-theme-light body,
html.fl-theme-light .fl-shell,
html.fl-theme-light #fl-app-shell {
    background-color: #F8FAFC !important;
    color: #0F172A !important;
}

/* â”€â”€â”€ Syncfusion Icon Font Aliases & Fallbacks â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.e-icons.e-shield:before {
    content: "\e7ff" !important;
    /* Security Lock / Role Authorization Glyph */
}

.e-icons.e-key:before {
    content: "\e753" !important;
    /* Key Glyph */
}

.e-icons.e-circle-dollar:before,
.e-icons.e-dollar:before {
    content: "\f2dc" !important;
    font-family: 'bootstrap-icons' !important;
    font-style: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    display: inline-block;
}

.e-icons.e-organization:before {
    content: "\e72b" !important;
    /* Diagram / Hierarchy Glyph */
}

.e-icons.e-tools:before {
    content: "\f5eb" !important;
    font-family: 'bootstrap-icons' !important;
    font-style: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    display: inline-block;
}

/* â”€â”€â”€ Global HTML / Body â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* â”€â”€â”€ Remove default focus outline from router navigation (FocusOnNavigate) â”€â”€â”€ */
h1:focus,
h1:focus-visible,
h2:focus,
h2:focus-visible,
h3:focus,
h3:focus-visible,
h4:focus,
h4:focus-visible,
[tabindex="-1"]:focus,
[tabindex="-1"]:focus-visible,
.fl-plan-title:focus,
.fl-plan-title:focus-visible,
.fl-step-heading:focus,
.fl-step-heading:focus-visible {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* â”€â”€â”€ DESKTOP (â‰¥ 857px) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (min-width: 857px) {
    .fl-sidebar {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        height: 100vh !important;
        z-index: 100 !important;
        transform: none !important;
        visibility: visible !important;
    }

    .fl-sidebar--expanded {
        width: 245px !important;
    }

    .fl-sidebar--collapsed {
        width: 64px !important;
    }

    .fl-main-wrapper--expanded {
        margin-left: 245px !important;
        width: calc(100% - 245px) !important;
    }

    .fl-main-wrapper--collapsed {
        margin-left: 64px !important;
        width: calc(100% - 64px) !important;
    }

    .fl-mobile-bottom-nav,
    .fl-sidebar-backdrop {
        display: none !important;
    }
}

/* â”€â”€â”€ MOBILE (â‰¤ 856px) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 856px) {

    /* Hide sidebar completely by default on mobile */
    .fl-sidebar,
    .fl-sidebar--collapsed,
    .fl-sidebar--expanded {
        width: 0px !important;
        min-width: 0px !important;
        max-width: 0px !important;
        transform: translateX(-100%) !important;
        visibility: hidden !important;
        display: none !important;
    }

    /* Open overlay drawer on mobile ONLY when fl-mobile-open is applied */
    .fl-sidebar.fl-mobile-open {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        height: auto !important;
        max-height: 100% !important;
        width: 255px !important;
        min-width: 255px !important;
        max-width: 255px !important;
        transform: translateX(0) !important;
        visibility: visible !important;
        z-index: 100000 !important;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35) !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        padding-bottom: max(16px, env(safe-area-inset-bottom, 16px)) !important;
    }

    .fl-sidebar.fl-mobile-open .fl-nav {
        flex: 1 1 0px !important;
        min-height: 0 !important;
        height: 100% !important;
        max-height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        padding: 4px 8px 0 8px !important;
        box-sizing: border-box !important;
    }

    .fl-sidebar.fl-mobile-open .fl-nav__scroll-body {
        flex: 1 1 0px !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 6px !important;
    }

    .fl-sidebar.fl-mobile-open .fl-nav__profile-container {
        flex: 0 0 auto !important;
        flex-shrink: 0 !important;
        margin-top: auto !important;
        padding-top: 8px !important;
        padding-bottom: 4px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
        background: var(--fl-bg-sidebar, #061B55) !important;
        z-index: 10 !important;
    }

    .fl-sidebar-backdrop {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(0, 0, 0, 0.5) !important;
        backdrop-filter: blur(2px) !important;
        z-index: 99999 !important;
    }

    .fl-main-wrapper,
    .fl-main-wrapper--expanded,
    .fl-main-wrapper--collapsed {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .fl-mobile-bottom-nav {
        display: flex !important;
    }
}

* {
    scrollbar-width: thin;
    scrollbar-color: #64748B #E2E8F0;
}

.fl-theme-dark,
.fl-theme-dark * {
    scrollbar-width: thin;
    scrollbar-color: #60A5FA #142037;
}

html,
body {
    min-height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: var(--fl-font-ui);
    overflow-x: hidden;
    scrollbar-width: thin;
}

a,
.btn-link {
    color: #1565FF;
}

.btn-primary {
    color: #fff;
    background-color: #1565FF;
    border-color: #1565FF;
}

.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 #1565FF;
}

/* â”€â”€ Global Form Switch & Checkbox Base (Light Theme & Defaults) â”€â”€ */
.form-check-label {
    cursor: pointer;
    user-select: none;
    color: var(--fl-text-primary, #0F172A);
}

.form-check-input {
    cursor: pointer;
}

.form-switch .form-check-input {
    cursor: pointer;
    background-color: #CBD5E1;
    border: 1px solid #94A3B8;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ffffff'/%3e%3c/svg%3e");
    transition: background-position .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
}

.form-switch .form-check-input:hover:not(:checked) {
    background-color: #94A3B8;
    border-color: #64748B;
}

.form-switch .form-check-input:checked {
    background-color: var(--fl-color-blue, #1565FF);
    border-color: var(--fl-color-blue, #1565FF);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ffffff'/%3e%3c/svg%3e");
}

.form-switch .form-check-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.input-group-text {
    background-color: var(--fl-bg-surface-2, #F1F5F9);
    border: 1px solid var(--fl-border, #CBD5E1);
    color: var(--fl-text-secondary, #475569);
    font-weight: 500;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SYNCFUSION COMPONENT OVERRIDES
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* SfCard */
.e-card.fl-highlight-card,
.e-card.fl-kpi-card,
.e-card.fl-empty-state {
    border-radius: 14px;
    background: var(--fl-bg-surface);
    border: 1px solid var(--fl-border-soft);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    overflow: visible;
}

.fl-theme-dark .e-card.fl-highlight-card,
.fl-theme-dark .e-card.fl-kpi-card,
.fl-theme-dark .e-card.fl-empty-state {
    background: var(--fl-bg-surface);
    border-color: var(--fl-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.e-card.fl-highlight-card .e-card-content {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.e-card.fl-kpi-card .e-card-content {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    padding: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.e-card.fl-empty-state .e-card-content {
    padding: 24px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   QUICK STATS SUMMARY CARDS (Universal Design for All List Pages)
   Used by Invoices, Quotations, Purchase Returns, etc.
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.fl-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.fl-stat-card {
    background: var(--fl-bg-surface, #ffffff);
    border: 1px solid var(--fl-border, #e2e8f0);
    border-radius: 12px;
    padding: 1.15rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fl-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.fl-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.fl-stat-icon--blue {
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
}

.fl-stat-icon--amber {
    background: rgba(217, 119, 6, 0.12);
    color: #d97706;
}

.fl-stat-icon--green {
    background: rgba(22, 163, 74, 0.12);
    color: #16a34a;
}

.fl-stat-icon--purple {
    background: rgba(147, 51, 234, 0.12);
    color: #9333ea;
}

.fl-stat-icon--teal {
    background: rgba(13, 148, 136, 0.12);
    color: #0d9488;
}

.fl-stat-icon--red {
    background: rgba(220, 38, 38, 0.12);
    color: #dc2626;
}

.fl-stat-content {
    display: flex;
    flex-direction: column;
}

.fl-stat-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--fl-text-secondary, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.025em;
    display: block;
    margin-bottom: 2px;
}

.fl-stat-value,
.fl-stat-val {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--fl-text-primary, #0f172a);
    margin: 0;
    line-height: 1.2;
}

/* â”€â”€ Dark Theme Overrides for Stats Cards â”€â”€ */
.fl-theme-dark .fl-stat-card,
html.fl-theme-dark .fl-stat-card {
    background: var(--fl-bg-surface, #0F1B32) !important;
    border-color: var(--fl-border, #1C2D4A) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.fl-theme-dark .fl-stat-card:hover,
html.fl-theme-dark .fl-stat-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45) !important;
}

.fl-theme-dark .fl-stat-label,
html.fl-theme-dark .fl-stat-label {
    color: var(--fl-text-secondary, #94A3B8) !important;
}

.fl-theme-dark .fl-stat-value,
.fl-theme-dark .fl-stat-val,
html.fl-theme-dark .fl-stat-value,
html.fl-theme-dark .fl-stat-val {
    color: var(--fl-text-primary, #E2E8F0) !important;
}

.fl-theme-dark .fl-stat-icon--blue,
html.fl-theme-dark .fl-stat-icon--blue {
    background: rgba(59, 130, 246, 0.2) !important;
    color: #60A5FA !important;
}

.fl-theme-dark .fl-stat-icon--amber,
html.fl-theme-dark .fl-stat-icon--amber {
    background: rgba(245, 158, 11, 0.2) !important;
    color: #FBBF24 !important;
}

.fl-theme-dark .fl-stat-icon--green,
html.fl-theme-dark .fl-stat-icon--green {
    background: rgba(34, 197, 94, 0.2) !important;
    color: #4ADE80 !important;
}

.fl-theme-dark .fl-stat-icon--purple,
html.fl-theme-dark .fl-stat-icon--purple {
    background: rgba(168, 85, 247, 0.2) !important;
    color: #C084FC !important;
}

.fl-theme-dark .fl-stat-icon--teal,
html.fl-theme-dark .fl-stat-icon--teal {
    background: rgba(20, 184, 166, 0.2) !important;
    color: #2DD4BF !important;
}

.fl-theme-dark .fl-stat-icon--red,
html.fl-theme-dark .fl-stat-icon--red {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #F87171 !important;
}

@media (max-width: 768px) {
    .fl-stats-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    .fl-stat-card {
        padding: 0.85rem 1rem !important;
        gap: 0.75rem !important;
    }

    .fl-stat-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.1rem !important;
    }

    .fl-stat-label {
        font-size: 0.75rem !important;
    }

    .fl-stat-value,
    .fl-stat-val {
        font-size: 1.15rem !important;
    }
}

@media (max-width: 480px) {
    .fl-stats-row {
        grid-template-columns: 1fr !important;
    }
}

/* SfProgressBar â€” class is on wrapper div, so use descendant selectors */
.fl-sf-progressbar {
    margin: 6px 0 0 0;
    width: 100%;
}

.fl-sf-progressbar .e-progressbar {
    background: transparent !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.fl-sf-progressbar .e-progressbar-linear-track {
    background: var(--fl-progress-track) !important;
    border-radius: 99px;
    height: 6px !important;
}

.fl-sf-progressbar .e-progressbar-linear-progress {
    border-radius: 99px;
    height: 6px !important;
    transition: width 0.6s ease;
}

/* SfChip */
.fl-chip-tag .e-chip-list,
.fl-chip-period .e-chip-list,
.fl-att-chip .e-chip-list {
    padding: 0;
    background: transparent !important;
}

.fl-chip-tag .e-chip {
    height: 22px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 99px;
    padding: 0 10px;
    border: none;
    cursor: default;
}

.fl-att-chip .e-chip {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    padding: 0 !important;
    border: none !important;
    cursor: default;
}

.fl-chip-period .e-chip {
    height: 26px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 99px;
    padding: 0 12px;
    background: var(--fl-bg-surface-2);
    color: var(--fl-text-secondary);
    border: 1px solid var(--fl-border);
    cursor: pointer;
}

.e-chip.fl-trend-badge--up,
.fl-chip-tag .fl-trend-badge--up {
    background: #DCFCE7 !important;
    color: #16A34A !important;
}

.e-chip.fl-trend-badge--down,
.fl-chip-tag .fl-trend-badge--down {
    background: #E2E8F0 !important;
    color: #475569 !important;
}

.e-chip.fl-trend-badge--danger,
.fl-chip-tag .fl-trend-badge--danger {
    background: #FEE2E2 !important;
    color: #DC2626 !important;
}

.fl-theme-dark .e-chip.fl-trend-badge--up,
.fl-theme-dark .fl-chip-tag .fl-trend-badge--up {
    background: rgba(34, 197, 94, 0.2) !important;
    color: #22C55E !important;
}

.fl-theme-dark .e-chip.fl-trend-badge--down,
.fl-theme-dark .fl-chip-tag .fl-trend-badge--down {
    background: rgba(148, 163, 184, 0.2) !important;
    color: #94A3B8 !important;
}

.fl-theme-dark .e-chip.fl-trend-badge--danger,
.fl-theme-dark .fl-chip-tag .fl-trend-badge--danger {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #EF4444 !important;
}

.fl-chip-tag .fl-chip--warning {
    background: #FEF3C7 !important;
    color: #D97706 !important;
}

.fl-chip-tag .fl-chip--success {
    background: #DCFCE7 !important;
    color: #16A34A !important;
}

.fl-chip-tag .fl-chip--info {
    background: #DBEAFE !important;
    color: #1565FF !important;
}

.fl-theme-dark .fl-chip-tag .fl-chip--warning {
    background: rgba(217, 119, 6, 0.2) !important;
    color: #F59E0B !important;
}

.fl-theme-dark .fl-chip-tag .fl-chip--success {
    background: rgba(34, 197, 94, 0.2) !important;
    color: #22C55E !important;
}

.fl-theme-dark .fl-chip-tag .fl-chip--info {
    background: rgba(96, 165, 250, 0.2) !important;
    color: #60A5FA !important;
}

.fl-att-chip .fl-att-chip--red {
    background: #FEE2E2 !important;
    color: #DC2626 !important;
}

.fl-att-chip .fl-att-chip--amber {
    background: #FEF3C7 !important;
    color: #D97706 !important;
}

.fl-att-chip .fl-att-chip--teal {
    background: #CCFBF1 !important;
    color: #0D9488 !important;
}

.fl-theme-dark .fl-att-chip .fl-att-chip--red {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #EF4444 !important;
}

.fl-theme-dark .fl-att-chip .fl-att-chip--amber {
    background: rgba(245, 158, 11, 0.2) !important;
    color: #F59E0B !important;
}

.fl-theme-dark .fl-att-chip .fl-att-chip--teal {
    background: rgba(20, 184, 166, 0.2) !important;
    color: #14B8A6 !important;
}

/* SfListView */
.fl-attention-listview.e-listview,
.fl-activity-listview.e-listview {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: hidden
}

.fl-attention-listview .e-list-item,
.fl-activity-listview .e-list-item {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    height: auto !important;
    min-height: unset !important
}

.fl-attention-listview .e-list-item:hover,
.fl-activity-listview .e-list-item:hover {
    background: var(--fl-bg-surface-2) !important;
    border-radius: 10px
}

.fl-attention-listview .e-list-item .e-text-content,
.fl-activity-listview .e-list-item .e-text-content {
    padding: 0 !important
}

/* Activity Feed Icons with Colored Outlines */
.fl-act-icon {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    flex-shrink: 0 !important;
}

.fl-act-icon .e-icons {
    font-size: 14px !important;
    line-height: 1 !important;
}

.fl-act-icon--blue {
    background: #EFF6FF !important;
    color: #1D4ED8 !important;
    border: 2px solid #3B82F6 !important;
}

.fl-act-icon--green {
    background: #ECFDF5 !important;
    color: #047857 !important;
    border: 2px solid #10B981 !important;
}

.fl-act-icon--teal {
    background: #F0FDFA !important;
    color: #0F766E !important;
    border: 2px solid #14B8A6 !important;
}

.fl-act-icon--amber {
    background: #FFFBEB !important;
    color: #B45309 !important;
    border: 2px solid #F59E0B !important;
}

.fl-act-icon--red {
    background: #FEF2F2 !important;
    color: #B91C1C !important;
    border: 2px solid #EF4444 !important;
}

.fl-act-icon--purple {
    background: #F5F3FF !important;
    color: #6D28D9 !important;
    border: 2px solid #8B5CF6 !important;
}

.fl-theme-dark .fl-act-icon--blue {
    background: rgba(37, 99, 235, 0.25) !important;
    color: #93C5FD !important;
    border: 2px solid #60A5FA !important;
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.35) !important;
}

.fl-theme-dark .fl-act-icon--green {
    background: rgba(16, 185, 129, 0.25) !important;
    color: #A7F3D0 !important;
    border: 2px solid #34D399 !important;
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.35) !important;
}

.fl-theme-dark .fl-act-icon--teal {
    background: rgba(20, 184, 166, 0.25) !important;
    color: #99F6E4 !important;
    border: 2px solid #2DD4BF !important;
    box-shadow: 0 0 10px rgba(45, 212, 191, 0.35) !important;
}

.fl-theme-dark .fl-act-icon--amber {
    background: rgba(245, 158, 11, 0.25) !important;
    color: #FDE68A !important;
    border: 2px solid #FBBF24 !important;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.35) !important;
}

.fl-theme-dark .fl-act-icon--red {
    background: rgba(239, 68, 68, 0.25) !important;
    color: #FECACA !important;
    border: 2px solid #F87171 !important;
    box-shadow: 0 0 10px rgba(248, 113, 113, 0.35) !important;
}

.fl-theme-dark .fl-act-icon--purple {
    background: rgba(139, 92, 246, 0.25) !important;
    color: #DDD6FE !important;
    border: 2px solid #A78BFA !important;
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.35) !important;
}

.fl-act-icon i,
.fl-act-icon div {
    color: inherit !important;
}

/* SfTextBox search blend */
.fl-search-input-sf.e-control-wrapper.e-input-group,
.fl-search-input-sf.e-input-group {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    flex: 1;
    min-width: 0
}

.fl-search-input-sf .e-input {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: var(--fl-text-primary);
    font-size: 14px;
    font-family: var(--fl-font-ui);
    padding: 0 !important
}

.fl-search-input-sf .e-input::placeholder {
    color: var(--fl-text-muted)
}

.fl-search-input-sf.e-input-group::before,
.fl-search-input-sf.e-input-group::after {
    display: none !important
}

/* SfButton Quick Create Tile */
.e-btn.fl-qc-tile {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 10px 4px !important;
    border-radius: 10px !important;
    background: var(--fl-bg-surface-2) !important;
    border: 1px solid var(--fl-border-soft) !important;
    color: var(--fl-text-primary) !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 68px !important;
    box-shadow: none !important;
    white-space: normal !important;
    word-break: break-word !important;
    text-align: center !important;
    line-height: 1.2 !important;
    transition: all 0.18s ease !important;
}

.e-btn.fl-qc-tile:hover {
    background: var(--fl-bg-surface) !important;
    box-shadow: 0 4px 14px rgba(21, 101, 255, 0.12) !important;
    transform: translateY(-2px) !important;
}

.fl-theme-dark .e-btn.fl-qc-tile {
    background: var(--fl-bg-surface-2) !important;
    border-color: var(--fl-border) !important;
}

.fl-theme-dark .e-btn.fl-qc-tile:hover {
    background: var(--fl-bg-surface) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
}

/* SfButton Date Range */
.e-btn.fl-dash-date-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 10px 18px !important;
    border-radius: 10px !important;
    background: var(--fl-bg-surface) !important;
    border: 1px solid var(--fl-border) !important;
    color: var(--fl-text-primary) !important;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    height: auto !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05) !important;
    align-self: flex-end !important;
    margin-top: auto !important
}

.fl-theme-dark .e-btn.fl-dash-date-btn {
    background: var(--fl-bg-surface) !important;
    border-color: var(--fl-border) !important
}

.fl-date-caret {
    font-size: 10px;
    opacity: 0.6;
    margin-left: 2px
}

/* SfBreadcrumb */
.fl-breadcrumb.e-breadcrumb {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 0 4px 0 !important
}

.fl-breadcrumb .e-breadcrumb-item .e-breadcrumb-text {
    color: var(--fl-text-muted);
    font-size: 12px
}

.fl-breadcrumb .e-breadcrumb-item:last-child .e-breadcrumb-text {
    color: var(--fl-text-secondary);
    font-weight: 500
}

.fl-breadcrumb .e-breadcrumb-separator {
    color: var(--fl-text-muted);
    font-size: 11px
}

/* SfListView NavMenu overrides */
.fl-sf-nav-listview.e-listview {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.fl-sf-nav-listview .e-list-item {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    height: auto !important;
    min-height: unset !important;
}

.fl-sf-nav-listview .e-list-item .e-text-content {
    padding: 0 !important;
}

.fl-sf-nav-listview .e-icons,
.fl-sf-nav-listview .fl-nav__icon {
    color: #FFFFFF !important;
    fill: #FFFFFF !important;
}

/* Shortcuts Section Container Box */
.fl-nav__shortcuts {
    margin: 16px 4px 8px !important;
    padding: 12px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
}

.fl-nav__shortcuts-label {
    display: block !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    color: rgba(255, 255, 255, 0.65) !important;
    text-transform: uppercase !important;
    padding: 2px 8px 6px 8px !important;
}

/* SfButton Shortcuts */
.e-btn.fl-shortcut-sf-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 7px 10px !important;
    background: transparent !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    text-transform: none !important;
    text-align: left !important;
    cursor: pointer !important;
}

.e-btn.fl-shortcut-sf-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #FFFFFF !important;
}

.e-btn.fl-shortcut-sf-btn .fl-shortcut-plus {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
}

.e-btn.fl-shortcut-sf-btn .fl-shortcut-label {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.85) !important;
}

.e-btn.fl-shortcut-sf-btn:hover .fl-shortcut-label {
    color: #FFFFFF !important;
}

/* SfButton Nav Profile */
.fl-nav__profile-container {
    position: sticky !important;
    bottom: 0 !important;
    margin-top: auto !important;
    padding-top: 10px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: var(--fl-bg-sidebar, #061946) !important;
    z-index: 10 !important;
}

.fl-avatar {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #1565FF 0%, #23A8FF 100%) !important;
    color: #FFFFFF !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 8px rgba(21, 101, 255, 0.35) !important;
}

.fl-avatar--sm {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    font-size: 11.5px !important;
}

/* â”€â”€â”€ Global FL Sidebar & NavMenu Structure â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-sidebar {
    display: flex !important;
    flex-direction: column !important;
    overflow: visible !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    box-sizing: border-box !important;
}

.fl-brand {
    flex: 0 0 var(--fl-topbar-h, 72px) !important;
    height: var(--fl-topbar-h, 72px) !important;
    box-sizing: border-box !important;
}

.fl-nav {
    flex: 1 1 0px !important;
    min-height: 0 !important;
    height: calc(100% - var(--fl-topbar-h, 72px)) !important;
    max-height: calc(100% - var(--fl-topbar-h, 72px)) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: visible !important;
    padding: 8px 10px 10px !important;
    box-sizing: border-box !important;
}

/* â”€â”€â”€ Business Type Dropdown Precision Icon Styling â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-bt-dropdown .e-input-group,
.fl-bt-dropdown.e-input-group {
    min-height: 42px;
    display: flex;
    align-items: center;
}

.fl-bt-value {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    line-height: 1;
    padding: 2px 0;
}

.fl-bt-value__icon-wrap {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    border-radius: 6px !important;
    background: rgba(37, 99, 235, 0.12) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.fl-bt-value__icon,
.fl-bt-value__icon-wrap i {
    font-size: 14px !important;
    color: #2563EB !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    width: 14px !important;
    height: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
}

.fl-bt-value__title {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--fl-text-primary, #0F172A);
    line-height: 1.2;
}

.fl-bt-value__subtitle {
    font-size: 0.8rem;
    color: var(--fl-text-secondary, #64748B);
    line-height: 1.2;
}

.fl-bt-item {
    display: flex;
    align-items: center;
    padding: 6px 4px;
    width: 100%;
}

.fl-bt-item__icon-wrap {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    border-radius: 8px !important;
    background: #EFF6FF !important;
    border: 1px solid #DBEAFE !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.fl-bt-item__icon,
.fl-bt-item__icon-wrap i {
    font-size: 18px !important;
    color: #2563EB !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
}

.fl-bt-item__icon::before,
.fl-bt-item__icon-wrap i::before,
.fl-bt-value__icon::before,
.fl-bt-value__icon-wrap i::before {
    display: inline-block !important;
    line-height: 1 !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    vertical-align: 0 !important;
}

.fl-bt-item__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    line-height: 1.25;
}

.fl-bt-item__title {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1E293B;
}

.fl-bt-item__subtitle {
    font-size: 0.75rem;
    color: #64748B;
    margin-top: 1px;
}

/* Dark mode for business type popup items */
html.fl-theme-dark .fl-bt-item__icon-wrap,
body.fl-theme-dark .fl-bt-item__icon-wrap,
.fl-theme-dark .fl-bt-item__icon-wrap {
    background: rgba(37, 99, 235, 0.18) !important;
    border-color: rgba(37, 99, 235, 0.35) !important;
}

html.fl-theme-dark .fl-bt-item__icon,
html.fl-theme-dark .fl-bt-item__icon-wrap i,
body.fl-theme-dark .fl-bt-item__icon,
.fl-theme-dark .fl-bt-item__icon {
    color: #60A5FA !important;
}

html.fl-theme-dark .fl-bt-item__title,
body.fl-theme-dark .fl-bt-item__title,
.fl-theme-dark .fl-bt-item__title {
    color: #F8FAFC !important;
}

html.fl-theme-dark .fl-bt-item__subtitle,
body.fl-theme-dark .fl-bt-item__subtitle,
.fl-theme-dark .fl-bt-item__subtitle {
    color: #94A3B8 !important;
}

.fl-nav__scroll-body {
    flex: 1 1 0px !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-bottom: 8px !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    -webkit-overflow-scrolling: touch !important;
}

.fl-nav__scroll-body::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.fl-nav__profile-container {
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    margin-top: auto !important;
    padding-top: 8px !important;
    padding-bottom: 6px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: var(--fl-bg-sidebar, #061B55) !important;
    z-index: 10 !important;
}

.fl-nav-profile-sf-btn,
.e-btn.fl-nav-profile-sf-btn {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    min-height: 48px !important;
    padding: 8px 10px !important;
    background: transparent !important;
    border: none !important;
    color: #FFFFFF !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    text-transform: none !important;
    text-align: left !important;
    cursor: pointer !important;
}

.fl-nav-profile-sf-btn:hover,
.e-btn.fl-nav-profile-sf-btn:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

.fl-nav__profile-info {
    display: flex !important;
    flex-direction: column !important;
    line-height: 1.2 !important;
    flex: 1 !important;
    overflow: hidden !important;
    text-align: left !important;
}

.fl-nav__profile-name {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #FFFFFF !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.fl-nav__profile-role {
    font-size: 11px !important;
    color: rgba(255, 255, 255, 0.5) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* â”€â”€â”€ Topbar Notification Badge â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-icon-btn-wrap {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.fl-badge,
.fl-badge--danger {
    position: absolute !important;
    top: -2px !important;
    right: -2px !important;
    min-width: 17px !important;
    height: 17px !important;
    padding: 0 4px !important;
    border-radius: 9999px !important;
    background-color: #F43F5E !important;
    color: #FFFFFF !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    font-family: 'Inter', -apple-system, sans-serif !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid #FFFFFF !important;
    box-shadow: 0 2px 6px rgba(244, 63, 94, 0.4) !important;
    line-height: 1 !important;
    pointer-events: none !important;
    z-index: 2 !important;
}

.fl-theme-dark .fl-badge,
body.fl-theme-dark .fl-badge,
.fl-theme-dark .fl-badge--danger,
body.fl-theme-dark .fl-badge--danger {
    background-color: #F43F5E !important;
    color: #FFFFFF !important;
    border-color: #07122D !important;
    box-shadow: 0 2px 8px rgba(244, 63, 94, 0.5) !important;
}

/* Force Uppercase text-transform on inputs */
.fl-uppercase-input input,
.fl-uppercase-input .e-input {
    text-transform: uppercase !important;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   BRAND KIT COMPONENT 9: TOAST MESSAGE (Exact Brandkit Spec)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.e-toast-container,
.e-toast-container.e-toast-top-right,
.e-toast-container.e-toast-top-left,
.e-toast-container.e-toast-bottom-right,
.e-toast-container.e-toast-bottom-left {
    z-index: 10000000 !important;
    top: 20px !important;
    right: 20px !important;
}

.e-toast-container .e-toast.fl-sf-toast,
.e-toast-container .e-toast.e-toast-success,
.e-toast-container .e-toast {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-left: 4.5px solid #3B82F6 !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.06) !important;
    padding: 14px 18px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    max-width: 440px !important;
}

.e-toast-container .e-toast.e-toast-danger {
    border-left: 4.5px solid #EF4444 !important;
}

.e-toast-container .e-toast.e-toast-danger .e-toast-icon-container {
    background: #EF4444 !important;
}

.e-toast-container .e-toast.e-toast-warning {
    border-left: 4.5px solid #F59E0B !important;
}

.e-toast-container .e-toast.e-toast-warning .e-toast-icon-container {
    background: #F59E0B !important;
}

.e-toast-container .e-toast.fl-sf-toast,
.e-toast-container .e-toast.e-toast-success {
    border-left: 4.5px solid #1FB874 !important;
}

.e-toast-container .e-toast.fl-sf-toast .e-toast-icon-container,
.e-toast-container .e-toast.e-toast-success .e-toast-icon-container {
    background: #1FB874 !important;
}

/* Icon Container â€” Round circle */
.e-toast-container .e-toast .e-toast-icon-container {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    border-radius: 50% !important;
    background: #3B82F6 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.e-toast-container .e-toast .e-toast-icon {
    color: #FFFFFF !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

/* Message Text Block */
.e-toast-container .e-toast .e-toast-message {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 1 1 auto !important;
}

/* Title */
.e-toast-container .e-toast .e-toast-title {
    color: #0F172A !important;
    font-family: 'Inter', -apple-system, sans-serif !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Content / Subtitle */
.e-toast-container .e-toast .e-toast-content {
    color: #64748B !important;
    font-family: 'Inter', -apple-system, sans-serif !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Close Icon */
.e-toast-container .e-toast .e-toast-close-icon {
    color: #94A3B8 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    margin-left: auto !important;
    transition: all 150ms ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 6px !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.e-toast-container .e-toast .e-toast-close-icon:hover {
    color: #0F172A !important;
    background: #F1F5F9 !important;
}

/* â”€â”€â”€ DARK THEME OVERRIDE (Brand Kit Dark Variant) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-theme-dark .e-toast-container .e-toast,
body.fl-theme-dark .e-toast-container .e-toast,
.e-toast-container.fl-theme-dark .e-toast {
    background: #07122D !important;
    border-color: #101E42 !important;
    border-left: 4.5px solid #1FB874 !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(31, 184, 116, 0.15) !important;
}

.fl-theme-dark .e-toast-container .e-toast .e-toast-title,
body.fl-theme-dark .e-toast-container .e-toast .e-toast-title {
    color: #FFFFFF !important;
}

.fl-theme-dark .e-toast-container .e-toast .e-toast-content,
body.fl-theme-dark .e-toast-container .e-toast .e-toast-content {
    color: #94A3B8 !important;
}

.fl-theme-dark .e-toast-container .e-toast .e-toast-close-icon:hover,
body.fl-theme-dark .e-toast-container .e-toast .e-toast-close-icon:hover {
    color: #FFFFFF !important;
}

/* â”€â”€â”€ Login Screen Dark Theme Mode (#01071B) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-empty-layout.fl-theme-dark,
.fl-auth-screen.fl-theme-dark,
.fl-theme-dark .fl-auth-screen,
.fl-theme-dark .fl-auth-form-wrap,
.fl-plan-screen.fl-theme-dark,
.fl-theme-dark .fl-plan-screen,
.fl-plan-page-wrapper.fl-theme-dark,
.fl-theme-dark .fl-plan-page-wrapper,
.fl-onboard-screen.fl-theme-dark,
.fl-theme-dark .fl-onboard-screen {
    background: #01071B !important;
    background-color: #01071B !important;
}

/* â”€â”€â”€ Circular Round Loading Spinner â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-round-spinner {
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    border: 2.2px solid rgba(255, 255, 255, 0.35) !important;
    border-top-color: #FFFFFF !important;
    border-radius: 50% !important;
    animation: fl-spin-smooth 0.75s linear infinite !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

@keyframes fl-spin-smooth {
    to {
        transform: rotate(360deg);
    }
}

/* â”€â”€â”€ Syncfusion DataGrid & Form Control Dark Theme Support â”€â”€â”€â”€â”€â”€â”€ */
.fl-theme-dark .e-grid,
body.fl-theme-dark .e-grid {
    background-color: #0F1B32 !important;
    border-color: #1C2D4A !important;
    color: #E2E8F0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

.fl-theme-dark .e-grid .e-gridheader,
body.fl-theme-dark .e-grid .e-gridheader {
    background-color: #142037 !important;
    border-bottom: 1px solid #1C2D4A !important;
}

.fl-theme-dark .e-grid .e-headercell,
.fl-theme-dark .e-grid .e-headercell .e-headertext,
body.fl-theme-dark .e-grid .e-headercell .e-headertext {
    background-color: #142037 !important;
    color: #94A3B8 !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border-color: #1C2D4A !important;
}

.fl-theme-dark .e-grid .e-rowcell,
body.fl-theme-dark .e-grid .e-rowcell {
    background-color: #0F1B32 !important;
    border-color: #1C2D4A !important;
    color: #FFFFFF !important;
    font-size: 13.5px !important;
}

.fl-theme-dark .e-grid .e-row:hover .e-rowcell,
body.fl-theme-dark .e-grid .e-row:hover .e-rowcell {
    background-color: #16243F !important;
}

.fl-theme-dark .e-grid .e-gridpager,
.fl-theme-dark .e-grid .e-pager,
body.fl-theme-dark .e-grid .e-pager,
.fl-theme-dark .e-pager {
    background-color: #0F1B32 !important;
    border-top: 1px solid #1C2D4A !important;
    color: #94A3B8 !important;
    padding: 10px 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

.fl-theme-dark .e-pager .e-pagercontainer,
body.fl-theme-dark .e-pager .e-pagercontainer,
.e-pager .e-pagercontainer {
    background-color: transparent !important;
    border: none !important;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
}

/* Numeric container must strictly keep items in a horizontal row */
.fl-theme-dark .e-pager .e-numericcontainer,
body.fl-theme-dark .e-pager .e-numericcontainer,
.e-pager .e-numericcontainer {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    width: auto !important;
    min-width: unset !important;
    margin: 0 4px !important;
}

/* Base button and item styles */
.fl-theme-dark .e-pager .e-numericitem,
.fl-theme-dark .e-pager a.e-link,
.fl-theme-dark .e-pager .e-firstpage,
.fl-theme-dark .e-pager .e-prevpage,
.fl-theme-dark .e-pager .e-nextpage,
.fl-theme-dark .e-pager .e-lastpage,
.fl-theme-dark .e-pager .e-pager-default,
.fl-theme-dark .e-pager .e-spacing,
body.fl-theme-dark .e-pager .e-numericitem,
body.fl-theme-dark .e-pager a.e-link,
body.fl-theme-dark .e-pager .e-firstpage,
body.fl-theme-dark .e-pager .e-prevpage,
body.fl-theme-dark .e-pager .e-nextpage,
body.fl-theme-dark .e-pager .e-lastpage,
body.fl-theme-dark .e-pager .e-pager-default,
body.fl-theme-dark .e-pager .e-spacing {
    background-color: #142037 !important;
    color: #E2E8F0 !important;
    border: 1px solid #1C2D4A !important;
    border-radius: 6px !important;
    min-width: 32px !important;
    width: 32px !important;
    height: 32px !important;
    line-height: 30px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.15s ease !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

/* Hover state on clickable buttons */
.fl-theme-dark .e-pager .e-numericitem:hover:not(.e-currentitem),
.fl-theme-dark .e-pager a.e-link:hover:not(.e-currentitem),
.fl-theme-dark .e-pager .e-firstpage:hover:not(.e-disable):not(.e-firstpagedisabled),
.fl-theme-dark .e-pager .e-prevpage:hover:not(.e-disable):not(.e-prevpagedisabled),
.fl-theme-dark .e-pager .e-nextpage:hover:not(.e-disable):not(.e-nextpagedisabled),
.fl-theme-dark .e-pager .e-lastpage:hover:not(.e-disable):not(.e-lastpagedisabled),
body.fl-theme-dark .e-pager .e-numericitem:hover:not(.e-currentitem),
body.fl-theme-dark .e-pager a.e-link:hover:not(.e-currentitem) {
    background-color: #1E2D4A !important;
    color: #FFFFFF !important;
    border-color: #2D4370 !important;
}

/* Active current page item */
.fl-theme-dark .e-pager .e-currentitem,
.fl-theme-dark .e-pager .e-numericitem.e-currentitem,
body.fl-theme-dark .e-pager .e-currentitem,
body.fl-theme-dark .e-pager .e-numericitem.e-currentitem {
    background: linear-gradient(135deg, #1565FF 0%, #0052CC 100%) !important;
    color: #FFFFFF !important;
    border-color: #1565FF !important;
    font-weight: 700 !important;
    box-shadow: 0 0 10px rgba(21, 101, 255, 0.45) !important;
}

/* Icons inside navigation arrows */
.fl-theme-dark .e-pager .e-icons,
body.fl-theme-dark .e-pager .e-icons {
    color: #94A3B8 !important;
    font-size: 12px !important;
}

/* Disabled arrows state */
.fl-theme-dark .e-pager .e-firstpagedisabled,
.fl-theme-dark .e-pager .e-prevpagedisabled,
.fl-theme-dark .e-pager .e-nextpagedisabled,
.fl-theme-dark .e-pager .e-lastpagedisabled,
.fl-theme-dark .e-pager .e-disable,
body.fl-theme-dark .e-pager .e-firstpagedisabled,
body.fl-theme-dark .e-pager .e-prevpagedisabled,
body.fl-theme-dark .e-pager .e-nextpagedisabled,
body.fl-theme-dark .e-pager .e-lastpagedisabled,
body.fl-theme-dark .e-pager .e-disable {
    background-color: #0A1329 !important;
    border-color: #152035 !important;
    opacity: 0.4 !important;
    cursor: not-allowed !important;
}

.fl-theme-dark .e-pager .e-firstpagedisabled .e-icons,
.fl-theme-dark .e-pager .e-prevpagedisabled .e-icons,
.fl-theme-dark .e-pager .e-nextpagedisabled .e-icons,
.fl-theme-dark .e-pager .e-lastpagedisabled .e-icons,
body.fl-theme-dark .e-pager .e-firstpagedisabled .e-icons,
body.fl-theme-dark .e-pager .e-prevpagedisabled .e-icons,
body.fl-theme-dark .e-pager .e-nextpagedisabled .e-icons,
body.fl-theme-dark .e-pager .e-lastpagedisabled .e-icons {
    color: #475569 !important;
}

/* Page Size dropdown inside pager */
.fl-theme-dark .e-pager .e-pagesizes,
body.fl-theme-dark .e-pager .e-pagesizes {
    display: inline-flex !important;
    align-items: center !important;
}

.fl-theme-dark .e-pager .e-pagesizes .e-input-group,
body.fl-theme-dark .e-pager .e-pagesizes .e-input-group {
    background-color: #0A1329 !important;
    border: 1px solid #1C2D4A !important;
    border-radius: 6px !important;
    height: 32px !important;
    color: #E2E8F0 !important;
}

.fl-theme-dark .e-pager .e-pagesizes .e-input,
body.fl-theme-dark .e-pager .e-pagesizes .e-input {
    color: #E2E8F0 !important;
    font-weight: 600 !important;
    font-size: 12.5px !important;
}

/* Pager right message bar text */
.fl-theme-dark .e-pager .e-parentmsgbar,
body.fl-theme-dark .e-pager .e-parentmsgbar {
    color: #94A3B8 !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
}

/* â”€â”€â”€ Syncfusion Inputs & Dropdowns in Dark Theme â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-theme-dark .e-input-group,
.fl-theme-dark .e-input-group.e-control-wrapper,
.fl-theme-dark .e-float-input,
.fl-theme-dark .e-float-input.e-control-wrapper,
.fl-theme-dark .e-textbox,
.fl-theme-dark .e-numerictextbox,
.fl-theme-dark .e-dropdownlist,
body.fl-theme-dark .e-input-group,
body.fl-theme-dark .e-input-group.e-control-wrapper {
    background-color: #0A1329 !important;
    border: 1px solid #1C2D4A !important;
    color: #FFFFFF !important;
    border-radius: 8px !important;
}

.fl-theme-dark .e-input-group:hover,
.fl-theme-dark .e-input-group.e-input-focus,
.fl-theme-dark .e-input-group.e-control-wrapper:hover,
.fl-theme-dark .e-input-group.e-control-wrapper.e-input-focus,
body.fl-theme-dark .e-input-group.e-input-focus {
    border-color: #1565FF !important;
    box-shadow: 0 0 0 1px #1565FF !important;
}

.fl-theme-dark .e-input-group input.e-input,
.fl-theme-dark .e-input-group textarea.e-input,
.fl-theme-dark .e-input,
body.fl-theme-dark .e-input-group input.e-input,
body.fl-theme-dark .e-input-group textarea.e-input {
    color: #FFFFFF !important;
    background: transparent !important;
    font-size: 13.5px !important;
}

.fl-theme-dark .e-input::placeholder,
.fl-theme-dark .e-input-group input::placeholder,
body.fl-theme-dark .e-input::placeholder {
    color: #64748B !important;
}

.fl-theme-dark .e-input-group-icon,
.fl-theme-dark .e-ddl-icon,
.fl-theme-dark .e-spin-up,
.fl-theme-dark .e-spin-down,
body.fl-theme-dark .e-input-group-icon,
body.fl-theme-dark .e-ddl-icon {
    color: #94A3B8 !important;
}

/* â”€â”€â”€ Syncfusion DropDown Popup Lists in Dark Theme â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-theme-dark .e-dropdownbase,
.fl-theme-dark .e-popup,
.fl-theme-dark .e-popup.e-ddl,
.fl-theme-dark .e-ddl.e-popup,
.fl-theme-dark .e-popup .e-list-parent,
.fl-theme-dark .e-popup .e-list-item,
.fl-theme-dark .e-dropdownbase .e-list-item,
body.fl-theme-dark .e-popup,
body.fl-theme-dark .e-dropdownbase,
body.fl-theme-dark .e-dropdownbase .e-list-item,
body.fl-theme-dark .e-popup .e-list-item {
    background-color: #0F1B32 !important;
    color: #E2E8F0 !important;
    border-color: #1C2D4A !important;
}

.fl-theme-dark .e-dropdownbase .e-list-item:hover,
.fl-theme-dark .e-dropdownbase .e-list-item.e-hover,
.fl-theme-dark .e-dropdownbase .e-list-item.e-active,
body.fl-theme-dark .e-dropdownbase .e-list-item:hover,
body.fl-theme-dark .e-dropdownbase .e-list-item.e-hover,
body.fl-theme-dark .e-dropdownbase .e-list-item.e-active {
    background-color: #1565FF !important;
    color: #FFFFFF !important;
}

.fl-theme-dark .e-popup .e-input-group,
body.fl-theme-dark .e-popup .e-input-group {
    background-color: #0A1329 !important;
    border-color: #1C2D4A !important;
}

/* â”€â”€â”€ Syncfusion Checkbox, Switch & Buttons â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-theme-dark .e-checkbox-wrapper .e-label,
body.fl-theme-dark .e-checkbox-wrapper .e-label {
    color: #E2E8F0 !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
}

.fl-theme-dark .e-checkbox-wrapper .e-frame,
body.fl-theme-dark .e-checkbox-wrapper .e-frame {
    background-color: #1A2C48 !important;
    border: 1.5px solid #4A6A96 !important;
    border-radius: 4px !important;
}

.fl-theme-dark .e-checkbox-wrapper:hover .e-frame,
body.fl-theme-dark .e-checkbox-wrapper:hover .e-frame {
    border-color: #60A5FA !important;
    background-color: #1E3356 !important;
}

.fl-theme-dark .e-checkbox-wrapper .e-check,
body.fl-theme-dark .e-checkbox-wrapper .e-check {
    background-color: #1565FF !important;
    border-color: #1565FF !important;
    color: #FFFFFF !important;
}

.fl-theme-dark .e-btn.e-outline,
body.fl-theme-dark .e-btn.e-outline,
.fl-theme-dark .fl-ocr-btn,
body.fl-theme-dark .fl-ocr-btn,
.fl-theme-dark .fl-scan-chit-btn,
body.fl-theme-dark .fl-scan-chit-btn {
    background-color: #0F1B32 !important;
    border: 1px solid #1C2D4A !important;
    color: #E2E8F0 !important;
}

.fl-theme-dark .e-btn.e-outline .e-btn-icon,
.fl-theme-dark .e-btn.e-outline .e-icons,
body.fl-theme-dark .e-btn.e-outline .e-btn-icon,
body.fl-theme-dark .e-btn.e-outline .e-icons,
.fl-theme-dark .fl-ocr-btn .e-btn-icon,
.fl-theme-dark .fl-ocr-btn i,
body.fl-theme-dark .fl-ocr-btn .e-btn-icon,
body.fl-theme-dark .fl-ocr-btn i,
.fl-theme-dark .fl-scan-chit-btn .e-btn-icon,
.fl-theme-dark .fl-scan-chit-btn i,
body.fl-theme-dark .fl-scan-chit-btn .e-btn-icon,
body.fl-theme-dark .fl-scan-chit-btn i {
    color: #60A5FA !important;
}

.fl-theme-dark .e-btn.e-outline:hover,
body.fl-theme-dark .e-btn.e-outline:hover,
.fl-theme-dark .fl-ocr-btn:hover,
body.fl-theme-dark .fl-ocr-btn:hover,
.fl-theme-dark .fl-scan-chit-btn:hover,
body.fl-theme-dark .fl-scan-chit-btn:hover {
    background-color: #16243F !important;
    border-color: #1565FF !important;
    color: #FFFFFF !important;
}

.fl-theme-dark .e-btn.e-flat,
body.fl-theme-dark .e-btn.e-flat {
    color: #E2E8F0 !important;
}

.fl-theme-dark .e-btn.e-flat .e-btn-icon,
.fl-theme-dark .e-btn.e-flat .e-icons,
body.fl-theme-dark .e-btn.e-flat .e-btn-icon,
body.fl-theme-dark .e-btn.e-flat .e-icons {
    color: #E2E8F0 !important;
}

/* â”€â”€â”€ Sidebar Toggle Button Dark & Light Mode (FL-FLBILL-211) â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-topbar__toggle,
.fl-topbar__toggle.e-btn,
button.fl-topbar__toggle {
    background: var(--fl-bg-surface-2, #F1F5F9) !important;
    background-color: var(--fl-bg-surface-2, #F1F5F9) !important;
    border: 1px solid var(--fl-border, #CBD5E1) !important;
    border-radius: var(--fl-radius-md, 8px) !important;
    color: var(--fl-text-primary, #0F172A) !important;
    box-shadow: none !important;
}

.fl-topbar__toggle .fl-topbar-icon,
.fl-topbar__toggle .e-icons,
.fl-topbar__toggle .e-btn-icon {
    color: var(--fl-text-primary, #0F172A) !important;
}

.fl-topbar__toggle:hover,
.fl-topbar__toggle.e-btn:hover,
button.fl-topbar__toggle:hover {
    background: var(--fl-royal, #1565FF) !important;
    background-color: var(--fl-royal, #1565FF) !important;
    border-color: var(--fl-royal, #1565FF) !important;
    color: #FFFFFF !important;
}

.fl-topbar__toggle:hover .fl-topbar-icon,
.fl-topbar__toggle:hover .e-icons,
.fl-topbar__toggle:hover .e-btn-icon {
    color: #FFFFFF !important;
}

.fl-theme-dark .fl-topbar__toggle,
.fl-theme-dark .fl-topbar__toggle.e-btn,
.fl-theme-dark button.fl-topbar__toggle,
html.fl-theme-dark .fl-topbar__toggle,
html.fl-theme-dark .fl-topbar__toggle.e-btn,
html.fl-theme-dark button.fl-topbar__toggle,
body.fl-theme-dark .fl-topbar__toggle,
body.fl-theme-dark .fl-topbar__toggle.e-btn,
body.fl-theme-dark button.fl-topbar__toggle {
    background: var(--fl-bg-surface-2, #142037) !important;
    background-color: var(--fl-bg-surface-2, #142037) !important;
    border: 1px solid var(--fl-border, #1C2D4A) !important;
    color: var(--fl-text-primary, #E2E8F0) !important;
}

.fl-theme-dark .fl-topbar__toggle .fl-topbar-icon,
.fl-theme-dark .fl-topbar__toggle .e-icons,
.fl-theme-dark .fl-topbar__toggle .e-btn-icon,
html.fl-theme-dark .fl-topbar__toggle .fl-topbar-icon,
html.fl-theme-dark .fl-topbar__toggle .e-icons,
html.fl-theme-dark .fl-topbar__toggle .e-btn-icon,
body.fl-theme-dark .fl-topbar__toggle .fl-topbar-icon,
body.fl-theme-dark .fl-topbar__toggle .e-icons,
body.fl-theme-dark .fl-topbar__toggle .e-btn-icon {
    color: var(--fl-text-primary, #E2E8F0) !important;
}

.fl-theme-dark .fl-topbar__toggle:hover,
.fl-theme-dark .fl-topbar__toggle.e-btn:hover,
.fl-theme-dark button.fl-topbar__toggle:hover,
html.fl-theme-dark .fl-topbar__toggle:hover,
html.fl-theme-dark .fl-topbar__toggle.e-btn:hover,
html.fl-theme-dark button.fl-topbar__toggle:hover,
body.fl-theme-dark .fl-topbar__toggle:hover,
body.fl-theme-dark .fl-topbar__toggle.e-btn:hover,
body.fl-theme-dark button.fl-topbar__toggle:hover {
    background: var(--fl-royal, #1565FF) !important;
    background-color: var(--fl-royal, #1565FF) !important;
    border-color: var(--fl-royal, #1565FF) !important;
    color: #FFFFFF !important;
}

.fl-theme-dark .fl-topbar__toggle:hover .fl-topbar-icon,
.fl-theme-dark .fl-topbar__toggle:hover .e-icons,
.fl-theme-dark .fl-topbar__toggle:hover .e-btn-icon,
html.fl-theme-dark .fl-topbar__toggle:hover .fl-topbar-icon,
html.fl-theme-dark .fl-topbar__toggle:hover .e-icons,
html.fl-theme-dark .fl-topbar__toggle:hover .e-btn-icon,
body.fl-theme-dark .fl-topbar__toggle:hover .fl-topbar-icon,
body.fl-theme-dark .fl-topbar__toggle:hover .e-icons,
body.fl-theme-dark .fl-topbar__toggle:hover .e-btn-icon {
    color: #FFFFFF !important;
}

/* â”€â”€â”€ FL Audit Tabs (Dark Mode & Light Mode Theme Support) â”€â”€â”€â”€â”€â”€â”€ */
.fl-tabs-card {
    background: #0F1B32;
    border: 1px solid #1C2D4A;
    border-radius: 10px;
    overflow: hidden;
}

.fl-theme-dark .fl-tabs-card,
body.fl-theme-dark .fl-tabs-card,
[data-theme="dark"] .fl-tabs-card {
    background: #0F1B32 !important;
    border-color: #1C2D4A !important;
}

.e-tab.fl-audit-tabs,
.fl-audit-tabs {
    border: none !important;
    background: transparent !important;
}

.e-tab.fl-audit-tabs .e-tab-header,
.fl-audit-tabs .e-tab-header {
    background: #142037 !important;
    border-bottom: 1px solid #1C2D4A !important;
    padding: 0 1rem !important;
    min-height: 52px !important;
    display: flex !important;
    align-items: center !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

.e-tab.fl-audit-tabs .e-tab-header .e-toolbar-item,
.fl-audit-tabs .e-tab-header .e-toolbar-item {
    background: transparent !important;
}

/* Inactive Tab Wrap (Default Dark Mode) */
.e-tab.fl-audit-tabs .e-tab-header .e-toolbar-item .e-tab-wrap,
.fl-audit-tabs .e-tab-header .e-toolbar-item .e-tab-wrap {
    height: 52px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 1.25rem !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    color: #94A3B8 !important;
    font-weight: 600 !important;
    background: transparent !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    cursor: pointer !important;
}

/* Inactive Tab Children */
.e-tab.fl-audit-tabs .e-tab-header .e-toolbar-item .e-tab-wrap *,
.fl-audit-tabs .e-tab-header .e-toolbar-item .e-tab-wrap *,
.fl-audit-tabs .fl-tab-header,
.fl-audit-tabs .fl-tab-icon,
.fl-audit-tabs .fl-tab-text {
    color: #94A3B8 !important;
    fill: #94A3B8 !important;
}

/* Inactive Tab Hover & Focus State */
.e-tab.fl-audit-tabs .e-tab-header .e-toolbar-item:hover,
.e-tab.fl-audit-tabs .e-tab-header .e-toolbar-item.e-hover,
.fl-audit-tabs .e-tab-header .e-toolbar-item:hover,
.fl-audit-tabs .e-tab-header .e-toolbar-item.e-hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

.e-tab.fl-audit-tabs .e-tab-header .e-toolbar-item:hover .e-tab-wrap,
.e-tab.fl-audit-tabs .e-tab-header .e-toolbar-item.e-hover .e-tab-wrap,
.e-tab.fl-audit-tabs .e-tab-header .e-toolbar-item .e-tab-wrap:hover,
.fl-audit-tabs .e-tab-header .e-toolbar-item:hover .e-tab-wrap,
.fl-audit-tabs .e-tab-header .e-toolbar-item.e-hover .e-tab-wrap,
.fl-audit-tabs .e-tab-header .e-toolbar-item .e-tab-wrap:hover {
    color: #FFFFFF !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.e-tab.fl-audit-tabs .e-tab-header .e-toolbar-item:hover .e-tab-wrap *,
.e-tab.fl-audit-tabs .e-tab-header .e-toolbar-item.e-hover .e-tab-wrap *,
.e-tab.fl-audit-tabs .e-tab-header .e-toolbar-item .e-tab-wrap:hover *,
.fl-audit-tabs .e-tab-header .e-toolbar-item:hover .e-tab-wrap *,
.fl-audit-tabs .e-tab-header .e-toolbar-item.e-hover .e-tab-wrap *,
.fl-audit-tabs .e-tab-header .e-toolbar-item .e-tab-wrap:hover * {
    color: #FFFFFF !important;
    fill: #FFFFFF !important;
}

/* Active Tab State (Dark Mode) */
.e-tab.fl-audit-tabs .e-tab-header .e-toolbar-item.e-active,
.fl-audit-tabs .e-tab-header .e-toolbar-item.e-active {
    background: transparent !important;
}

.e-tab.fl-audit-tabs .e-tab-header .e-toolbar-item.e-active .e-tab-wrap,
.fl-audit-tabs .e-tab-header .e-toolbar-item.e-active .e-tab-wrap {
    color: #38BDF8 !important;
    border-bottom: 2px solid #38BDF8 !important;
    background: transparent !important;
}

.e-tab.fl-audit-tabs .e-tab-header .e-toolbar-item.e-active .e-tab-wrap *,
.fl-audit-tabs .e-tab-header .e-toolbar-item.e-active .e-tab-wrap *,
.fl-audit-tabs .e-toolbar-item.e-active .fl-tab-icon,
.fl-audit-tabs .e-toolbar-item.e-active .fl-tab-text {
    color: #38BDF8 !important;
    fill: #38BDF8 !important;
}

.e-tab.fl-audit-tabs .e-tab-header .e-indicator,
.fl-audit-tabs .e-tab-header .e-indicator {
    background: #38BDF8 !important;
    border-color: #38BDF8 !important;
    height: 2px !important;
}

/* â”€â”€ Light Mode Tab Theme â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-theme-light .fl-tabs-card,
body.fl-theme-light .fl-tabs-card,
body.light-theme .fl-tabs-card,
[data-theme="light"] .fl-tabs-card {
    background: #FFFFFF !important;
    border-color: #E2E8F0 !important;
}

.fl-theme-light .e-tab.fl-audit-tabs .e-tab-header,
body.fl-theme-light .e-tab.fl-audit-tabs .e-tab-header,
body.light-theme .e-tab.fl-audit-tabs .e-tab-header,
[data-theme="light"] .e-tab.fl-audit-tabs .e-tab-header {
    background: #F8FAFC !important;
    border-bottom-color: #E2E8F0 !important;
}

.fl-theme-light .e-tab.fl-audit-tabs .e-tab-header .e-toolbar-item .e-tab-wrap,
body.fl-theme-light .e-tab.fl-audit-tabs .e-tab-header .e-toolbar-item .e-tab-wrap,
body.light-theme .e-tab.fl-audit-tabs .e-tab-header .e-toolbar-item .e-tab-wrap,
[data-theme="light"] .e-tab.fl-audit-tabs .e-tab-header .e-toolbar-item .e-tab-wrap {
    color: #64748B !important;
}

.fl-theme-light .e-tab.fl-audit-tabs .e-tab-header .e-toolbar-item .e-tab-wrap *,
body.fl-theme-light .e-tab.fl-audit-tabs .e-tab-header .e-toolbar-item .e-tab-wrap *,
body.light-theme .e-tab.fl-audit-tabs .e-tab-header .e-toolbar-item .e-tab-wrap *,
[data-theme="light"] .e-tab.fl-audit-tabs .e-tab-header .e-toolbar-item .e-tab-wrap * {
    color: #64748B !important;
}

.fl-theme-light .e-tab.fl-audit-tabs .e-tab-header .e-toolbar-item:hover .e-tab-wrap,
.fl-theme-light .e-tab.fl-audit-tabs .e-tab-header .e-toolbar-item.e-hover .e-tab-wrap,
body.fl-theme-light .e-tab.fl-audit-tabs .e-tab-header .e-toolbar-item:hover .e-tab-wrap,
body.light-theme .e-tab.fl-audit-tabs .e-tab-header .e-toolbar-item:hover .e-tab-wrap,
[data-theme="light"] .e-tab.fl-audit-tabs .e-tab-header .e-toolbar-item:hover .e-tab-wrap {
    color: #0F172A !important;
    background: rgba(0, 0, 0, 0.03) !important;
}

.fl-theme-light .e-tab.fl-audit-tabs .e-tab-header .e-toolbar-item:hover .e-tab-wrap *,
.fl-theme-light .e-tab.fl-audit-tabs .e-tab-header .e-toolbar-item.e-hover .e-tab-wrap *,
body.fl-theme-light .e-tab.fl-audit-tabs .e-tab-header .e-toolbar-item:hover .e-tab-wrap *,
body.light-theme .e-tab.fl-audit-tabs .e-tab-header .e-toolbar-item:hover .e-tab-wrap *,
[data-theme="light"] .e-tab.fl-audit-tabs .e-tab-header .e-toolbar-item:hover .e-tab-wrap * {
    color: #0F172A !important;
}

.fl-theme-light .e-tab.fl-audit-tabs .e-tab-header .e-toolbar-item.e-active .e-tab-wrap,
body.fl-theme-light .e-tab.fl-audit-tabs .e-tab-header .e-toolbar-item.e-active .e-tab-wrap,
body.light-theme .e-tab.fl-audit-tabs .e-tab-header .e-toolbar-item.e-active .e-tab-wrap,
[data-theme="light"] .e-tab.fl-audit-tabs .e-tab-header .e-toolbar-item.e-active .e-tab-wrap {
    color: #2563EB !important;
    border-bottom-color: #2563EB !important;
}

.fl-theme-light .e-tab.fl-audit-tabs .e-tab-header .e-toolbar-item.e-active .e-tab-wrap *,
body.fl-theme-light .e-tab.fl-audit-tabs .e-tab-header .e-toolbar-item.e-active .e-tab-wrap *,
body.light-theme .e-tab.fl-audit-tabs .e-tab-header .e-toolbar-item.e-active .e-tab-wrap *,
[data-theme="light"] .e-tab.fl-audit-tabs .e-tab-header .e-toolbar-item.e-active .e-tab-wrap * {
    color: #2563EB !important;
}

.fl-theme-light .e-tab.fl-audit-tabs .e-tab-header .e-indicator,
body.light-theme .e-tab.fl-audit-tabs .e-tab-header .e-indicator {
    background: #2563EB !important;
    border-color: #2563EB !important;
}

/* â”€â”€â”€ Global FL Action Buttons (View, Edit, Delete) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-action-btns {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.e-btn.fl-action-btn,
button.e-btn.fl-action-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    border-radius: 8px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    box-shadow: none !important;
    outline: none !important;
    transition: all 0.18s ease !important;
}

.e-btn.fl-action-btn:focus,
.e-btn.fl-action-btn:focus-visible,
.e-btn.fl-action-btn:active,
button.e-btn.fl-action-btn:focus,
button.e-btn.fl-action-btn:focus-visible,
button.e-btn.fl-action-btn:active,
.fl-action-btn:focus,
.fl-action-btn:focus-visible,
.fl-action-btn:active {
    outline: none !important;
    box-shadow: none !important;
}

html.fl-theme-dark .e-btn.fl-action-btn,
body.fl-theme-dark .e-btn.fl-action-btn,
.fl-theme-dark .e-btn.fl-action-btn,
html.fl-theme-dark button.e-btn.fl-action-btn,
body.fl-theme-dark button.e-btn.fl-action-btn,
.fl-theme-dark button.e-btn.fl-action-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #94A3B8 !important;
}

/* View Button: Cyan Accent */
.e-btn.fl-action-btn.fl-btn-view,
button.e-btn.fl-action-btn.fl-btn-view {
    background: rgba(56, 189, 248, 0.12) !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
    color: #38BDF8 !important;
}

.e-btn.fl-action-btn.fl-btn-view .e-btn-icon,
.e-btn.fl-action-btn.fl-btn-view .e-icons,
button.e-btn.fl-action-btn.fl-btn-view .e-btn-icon,
button.e-btn.fl-action-btn.fl-btn-view .e-icons {
    color: #38BDF8 !important;
    font-size: 14px !important;
}

.e-btn.fl-action-btn.fl-btn-view:hover,
button.e-btn.fl-action-btn.fl-btn-view:hover {
    background: #0284C7 !important;
    border-color: #0284C7 !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 12px rgba(2, 132, 199, 0.4) !important;
}

.e-btn.fl-action-btn.fl-btn-view:hover .e-btn-icon,
.e-btn.fl-action-btn.fl-btn-view:hover .e-icons,
button.e-btn.fl-action-btn.fl-btn-view:hover .e-btn-icon,
button.e-btn.fl-action-btn.fl-btn-view:hover .e-icons {
    color: #FFFFFF !important;
}

/* Edit Button: Amber Accent */
.e-btn.fl-action-btn.fl-btn-edit,
button.e-btn.fl-action-btn.fl-btn-edit {
    background: rgba(245, 158, 11, 0.12) !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    color: #FBBF24 !important;
}

.e-btn.fl-action-btn.fl-btn-edit .e-btn-icon,
.e-btn.fl-action-btn.fl-btn-edit .e-icons,
button.e-btn.fl-action-btn.fl-btn-edit .e-btn-icon,
button.e-btn.fl-action-btn.fl-btn-edit .e-icons {
    color: #FBBF24 !important;
    font-size: 14px !important;
}

.e-btn.fl-action-btn.fl-btn-edit:hover,
button.e-btn.fl-action-btn.fl-btn-edit:hover {
    background: #D97706 !important;
    border-color: #D97706 !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 12px rgba(217, 119, 6, 0.4) !important;
}

.e-btn.fl-action-btn.fl-btn-edit:hover .e-btn-icon,
.e-btn.fl-action-btn.fl-btn-edit:hover .e-icons,
button.e-btn.fl-action-btn.fl-btn-edit:hover .e-btn-icon,
button.e-btn.fl-action-btn.fl-btn-edit:hover .e-icons {
    color: #FFFFFF !important;
}

.e-btn.fl-action-btn.fl-btn-edit:focus,
.e-btn.fl-action-btn.fl-btn-edit:focus-visible,
button.e-btn.fl-action-btn.fl-btn-edit:focus,
button.e-btn.fl-action-btn.fl-btn-edit:focus-visible {
    background: rgba(245, 158, 11, 0.22) !important;
    border-color: rgba(245, 158, 11, 0.6) !important;
    color: #FBBF24 !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Status/Workflow Button: Purple/Violet Accent */
.e-btn.fl-action-btn.fl-btn-status,
button.e-btn.fl-action-btn.fl-btn-status {
    background: rgba(168, 85, 247, 0.12) !important;
    border: 1px solid rgba(168, 85, 247, 0.3) !important;
    color: #C084FC !important;
}

.e-btn.fl-action-btn.fl-btn-status .e-btn-icon,
.e-btn.fl-action-btn.fl-btn-status .e-icons,
button.e-btn.fl-action-btn.fl-btn-status .e-btn-icon,
button.e-btn.fl-action-btn.fl-btn-status .e-icons {
    color: #C084FC !important;
    font-size: 14px !important;
}

.e-btn.fl-action-btn.fl-btn-status:hover,
button.e-btn.fl-action-btn.fl-btn-status:hover {
    background: #9333EA !important;
    border-color: #9333EA !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 12px rgba(147, 51, 234, 0.4) !important;
}

.e-btn.fl-action-btn.fl-btn-status:hover .e-btn-icon,
.e-btn.fl-action-btn.fl-btn-status:hover .e-icons,
button.e-btn.fl-action-btn.fl-btn-status:hover .e-btn-icon,
button.e-btn.fl-action-btn.fl-btn-status:hover .e-icons {
    color: #FFFFFF !important;
}

/* Deactivate Button: Amber/Orange Warning Accent */
.e-btn.fl-action-btn.fl-btn-deactivate,
button.e-btn.fl-action-btn.fl-btn-deactivate {
    background: rgba(245, 158, 11, 0.12) !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    color: #F59E0B !important;
}

.e-btn.fl-action-btn.fl-btn-deactivate .e-btn-icon,
.e-btn.fl-action-btn.fl-btn-deactivate .e-icons,
button.e-btn.fl-action-btn.fl-btn-deactivate .e-btn-icon,
button.e-btn.fl-action-btn.fl-btn-deactivate .e-icons {
    color: #F59E0B !important;
    font-size: 14px !important;
}

.e-btn.fl-action-btn.fl-btn-deactivate:hover,
button.e-btn.fl-action-btn.fl-btn-deactivate:hover {
    background: #D97706 !important;
    border-color: #D97706 !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 12px rgba(217, 119, 6, 0.4) !important;
}

.e-btn.fl-action-btn.fl-btn-deactivate:hover .e-btn-icon,
.e-btn.fl-action-btn.fl-btn-deactivate:hover .e-icons,
button.e-btn.fl-action-btn.fl-btn-deactivate:hover .e-btn-icon,
button.e-btn.fl-action-btn.fl-btn-deactivate:hover .e-icons {
    color: #FFFFFF !important;
}

/* Activate Button: Emerald/Green Success Accent */
.e-btn.fl-action-btn.fl-btn-activate,
button.e-btn.fl-action-btn.fl-btn-activate {
    background: rgba(16, 185, 129, 0.12) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    color: #10B981 !important;
}

.e-btn.fl-action-btn.fl-btn-activate .e-btn-icon,
.e-btn.fl-action-btn.fl-btn-activate .e-icons,
button.e-btn.fl-action-btn.fl-btn-activate .e-btn-icon,
button.e-btn.fl-action-btn.fl-btn-activate .e-icons {
    color: #10B981 !important;
    font-size: 14px !important;
}

.e-btn.fl-action-btn.fl-btn-activate:hover,
button.e-btn.fl-action-btn.fl-btn-activate:hover {
    background: #059669 !important;
    border-color: #059669 !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 12px rgba(5, 150, 105, 0.4) !important;
}

.e-btn.fl-action-btn.fl-btn-activate:hover .e-btn-icon,
.e-btn.fl-action-btn.fl-btn-activate:hover .e-icons,
button.e-btn.fl-action-btn.fl-btn-activate:hover .e-btn-icon,
button.e-btn.fl-action-btn.fl-btn-activate:hover .e-icons {
    color: #FFFFFF !important;
}

/* Delete Button: Rose/Red Accent */
.e-btn.fl-action-btn.fl-btn-delete,
button.e-btn.fl-action-btn.fl-btn-delete {
    background: rgba(239, 68, 68, 0.12) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    color: #F87171 !important;
}

.e-btn.fl-action-btn.fl-btn-delete .e-btn-icon,
.e-btn.fl-action-btn.fl-btn-delete .e-icons,
button.e-btn.fl-action-btn.fl-btn-delete .e-btn-icon,
button.e-btn.fl-action-btn.fl-btn-delete .e-icons {
    color: #F87171 !important;
    font-size: 14px !important;
}

.e-btn.fl-action-btn.fl-btn-delete:hover,
button.e-btn.fl-action-btn.fl-btn-delete:hover {
    background: #DC2626 !important;
    border-color: #DC2626 !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 12px rgba(220, 38, 38, 0.4) !important;
}

.e-btn.fl-action-btn.fl-btn-delete:hover .e-btn-icon,
.e-btn.fl-action-btn.fl-btn-delete:hover .e-icons,
button.e-btn.fl-action-btn.fl-btn-delete:hover .e-btn-icon,
button.e-btn.fl-action-btn.fl-btn-delete:hover .e-icons {
    color: #FFFFFF !important;
}

.e-btn.fl-action-btn.fl-btn-delete:focus,
.e-btn.fl-action-btn.fl-btn-delete:focus-visible,
button.e-btn.fl-action-btn.fl-btn-delete:focus,
button.e-btn.fl-action-btn.fl-btn-delete:focus-visible {
    background: rgba(239, 68, 68, 0.22) !important;
    border-color: rgba(239, 68, 68, 0.6) !important;
    color: #F87171 !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Disabled Action Button Rule */
.e-btn.fl-action-btn:disabled,
.e-btn.fl-action-btn.e-disabled,
button.e-btn.fl-action-btn:disabled,
button.e-btn.fl-action-btn.e-disabled {
    opacity: 0.38 !important;
    cursor: not-allowed !important;
    background: rgba(148, 163, 184, 0.1) !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    color: var(--fl-text-secondary, #94A3B8) !important;
    transform: none !important;
    box-shadow: none !important;
}

.e-btn.fl-action-btn:disabled .e-btn-icon,
.e-btn.fl-action-btn:disabled .e-icons,
.e-btn.fl-action-btn.e-disabled .e-btn-icon,
.e-btn.fl-action-btn.e-disabled .e-icons,
button.e-btn.fl-action-btn:disabled .e-btn-icon,
button.e-btn.fl-action-btn:disabled .e-icons,
button.e-btn.fl-action-btn.e-disabled .e-btn-icon,
button.e-btn.fl-action-btn.e-disabled .e-icons {
    color: var(--fl-text-secondary, #94A3B8) !important;
}

.e-btn.fl-action-btn:disabled:hover,
.e-btn.fl-action-btn.e-disabled:hover,
button.e-btn.fl-action-btn:disabled:hover,
button.e-btn.fl-action-btn.e-disabled:hover {
    background: rgba(148, 163, 184, 0.1) !important;
    border-color: rgba(148, 163, 184, 0.2) !important;
    color: var(--fl-text-secondary, #94A3B8) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   FLBILL GLOBAL DESIGN SYSTEM & UNIVERSAL TYPOGRAPHY TOKENS
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Typography Hierarchy â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-page-title {
    font-family: var(--fl-font-display, 'Plus Jakarta Sans', sans-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--fl-text-primary);
    margin-bottom: 0.25rem;
    line-height: 1.25;
}

.fl-page-subtitle {
    font-family: var(--fl-font-ui, 'Inter', sans-serif);
    font-size: 0.9rem;
    color: var(--fl-text-secondary);
    margin-bottom: 0;
}

.fl-card-title {
    font-family: var(--fl-font-display, 'Plus Jakarta Sans', sans-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--fl-text-primary);
    margin: 0;
}

.fl-card-subtitle {
    font-family: var(--fl-font-ui, 'Inter', sans-serif);
    font-size: 0.82rem;
    color: var(--fl-text-secondary);
}

.fl-form-label {
    display: block;
    font-family: var(--fl-font-ui, 'Inter', sans-serif);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--fl-text-secondary);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.fl-form-label.required-field::after,
.required-field::after {
    content: "\00a0*";
    color: var(--fl-color-red, #DC2626);
    white-space: nowrap;
    display: inline;
}

.fl-field-hint {
    display: block;
    font-family: var(--fl-font-ui, 'Inter', sans-serif);
    font-size: 0.76rem;
    color: var(--fl-text-muted);
    margin-top: 0.3rem;
}

/* â”€â”€ Global Grid & Table Cell Typography â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-name-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    overflow: hidden;
    text-align: left !important;
}

.fl-name-main,
.fl-item-name,
.fl-cell-primary {
    font-family: var(--fl-font-ui, 'Inter', sans-serif);
    font-weight: 600;
    color: var(--fl-text-primary);
    font-size: 0.92rem;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    display: block !important;
    text-align: left !important;
}

.fl-cell-text,
.fl-phone-cell,
.fl-cell-phone,
.fl-email-cell,
.fl-cell-email,
.fl-location-text,
.fl-cell-location {
    font-family: var(--fl-font-ui, 'Inter', sans-serif);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--fl-text-primary);
    line-height: 1.4;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    display: block !important;
    text-align: left !important;
}

.fl-empty-text {
    color: var(--fl-text-muted);
}

.fl-code-link {
    font-family: 'JetBrains Mono', var(--fl-font-ui, 'Inter', sans-serif);
    font-weight: 700;
    color: var(--fl-color-blue, #1565FF);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.15s ease;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: inline-block !important;
    max-width: 100% !important;
    text-align: left !important;
}

.fl-code-link:hover {
    color: var(--fl-sky, #23A8FF);
    text-decoration: underline;
}

.fl-gstin-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--fl-text-muted);
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
}

/* â”€â”€ Syncfusion DataGrid Adaptive & Vertical Mode Alignment & Ellipsis â”€â”€ */
.e-grid .e-rowcell {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

/* On mobile / vertical layout: force start alignment on all column headers and cell values */
@media (max-width: 768px) {

    .e-grid .e-rowcell,
    .e-grid .e-rowcell .e-headertext,
    .e-grid .e-headercell,
    .e-grid .e-headercell .e-headertext,
    .e-grid .e-columnheader,
    .e-grid .e-vertical-header,
    .e-grid th.e-headercell,
    .e-grid td.e-rowcell {
        text-align: left !important;
        text-align: start !important;
        justify-content: flex-start !important;
    }

    .e-grid .fl-action-btns {
        justify-content: flex-start !important;
    }

    .e-grid .fl-status-active,
    .e-grid .fl-status-blocked,
    .e-grid .fl-status-inactive {
        margin: 0 !important;
        align-self: flex-start !important;
    }

    /* Hide the group drag area on mobile */
    .e-grid .e-groupdroparea {
        display: none !important;
    }

    /* Grid Toolbar & Search Field on Mobile */
    .e-grid .e-toolbar,
    .fl-themed-grid.e-grid .e-toolbar,
    .e-gridtoolbar {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding: 6px 8px !important;
        display: flex !important;
        align-items: center !important;
    }

    .e-grid .e-toolbar .e-toolbar-items,
    .fl-themed-grid.e-grid .e-toolbar .e-toolbar-items {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
        left: 0 !important;
        transform: none !important;
        margin: 0 !important;
    }

    .e-grid .e-toolbar .e-toolbar-item.e-search,
    .e-grid .e-toolbar .e-toolbar-item[id*="_search"] {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .e-grid .e-toolbar .e-searchdiv,
    .e-grid .e-toolbar .e-input-group.e-search-input,
    .e-grid .e-toolbar .e-input-group {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        margin: 0 !important;
    }

    .e-grid .e-toolbar input.e-search-input,
    .e-grid .e-toolbar input.e-input,
    .e-grid .e-toolbar .e-search-input input {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
        box-sizing: border-box !important;
        font-size: 0.875rem !important;
    }

    .e-grid .e-toolbar:has(.e-searchdiv) .e-hor-nav,
    .e-grid .e-toolbar:has(.e-search-input) .e-hor-nav,
    .e-grid .e-toolbar.e-search-active .e-hor-nav,
    .e-grid .e-toolbar.e-responsive-search .e-hor-nav {
        display: none !important;
    }
}

/* â”€â”€â”€ Syncfusion Filter Popups & Menus Boundary Constraints â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.e-grid .e-filter-popup,
.e-filter-popup,
.e-excelfilter,
.e-menu-popup {
    max-height: 380px !important;
    max-width: min(340px, 92vw) !important;
    overflow-y: auto !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
    z-index: 20000050 !important;
}

.e-dropdown-btn-popup,
.e-dropdown-popup,
.e-ddl.e-popup:not(.e-ddl-device-filter):not(.e-popup-full-page),
.e-popup.e-ddl:not(.e-ddl-device-filter):not(.e-popup-full-page),
.e-popup.e-dropdown-popup,
.e-autocomplete-popup,
.e-popup.e-autocomplete,
.e-combobox-popup,
.e-popup.e-combobox,
.e-multi-select-list-wrapper,
.e-popup.e-multi-select-list-wrapper,
.e-datepicker.e-popup,
.e-popup.e-datepicker,
.e-datetimepicker.e-popup,
.e-popup.e-datetimepicker,
.e-daterangepicker.e-popup,
.e-popup.e-daterangepicker,
.e-timepicker.e-popup,
.e-popup.e-timepicker,
.e-popup.e-popup-open:not(.e-dialog):not(.e-dlg-container):not(.e-ddl-device-filter):not(.e-popup-full-page) {
    max-height: 380px !important;
    overflow-y: auto !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
    z-index: 20000050 !important;
}

/* â”€â”€â”€ Syncfusion Adaptive Mobile Dialog (Full-width Bottom Sheet Modal on Mobile) â”€â”€â”€â”€ */
@media (max-width: 768px) {

    /* Mobile Device Filter DropDown Popup (e.g., All Suppliers / filterable dropdowns on mobile) */
    .e-ddl.e-popup.e-ddl-device-filter:not(.fl-pb-filter-ddl),
    .e-popup.e-ddl-device-filter:not(.fl-pb-filter-ddl),
    .e-ddl.e-popup.e-popup-full-page:not(.fl-pb-filter-ddl),
    .e-popup.e-popup-full-page:not(.fl-pb-filter-ddl),
    .e-dropdownbase.e-ddl-device-filter:not(.fl-pb-filter-ddl),
    .e-ddl-device-filter:not(.fl-pb-filter-ddl) {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 100vw !important;
        height: 100% !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        min-height: 100dvh !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        transform: none !important;
        z-index: 20000060 !important;
        box-sizing: border-box !important;
        background: var(--fl-bg-surface, #FFFFFF) !important;
        color: var(--fl-text-primary, #0F172A) !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .e-ddl.e-popup.e-ddl-device-filter .e-input-group,
    .e-popup.e-ddl-device-filter .e-input-group,
    .e-popup-full-page .e-input-group {
        border-radius: 0 !important;
        border: none !important;
        border-bottom: 1px solid var(--fl-border, #E2E8F0) !important;
        padding: 10px 14px !important;
        display: flex !important;
        align-items: center !important;
        background: var(--fl-bg-surface-2, #F8FAFC) !important;
        width: 100% !important;
        box-sizing: border-box !important;
        flex: 0 0 auto !important;
    }

    .e-ddl.e-popup.e-ddl-device-filter .e-input-group .e-back-icon,
    .e-popup.e-ddl-device-filter .e-input-group .e-back-icon,
    .e-popup-full-page .e-input-group .e-back-icon {
        font-size: 16px !important;
        color: var(--fl-text-primary, #0F172A) !important;
        cursor: pointer !important;
        padding: 4px 8px !important;
        margin-right: 8px !important;
    }

    .e-ddl.e-popup.e-ddl-device-filter .e-content,
    .e-popup.e-ddl-device-filter .e-content,
    .e-popup-full-page .e-content {
        flex: 1 1 auto !important;
        max-height: none !important;
        height: auto !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .e-ddl.e-popup.e-ddl-device-filter .e-list-item,
    .e-popup.e-ddl-device-filter .e-list-item,
    .e-popup-full-page .e-list-item {
        padding: 12px 16px !important;
        font-size: 14px !important;
        border-bottom: 1px solid var(--fl-border, #F1F5F9) !important;
    }

    /* Regular popups on mobile: prevent overflow */
    .e-popup.e-popup-open:not(.e-ddl-device-filter):not(.e-popup-full-page):not(.e-dialog):not(.e-dlg-container) {
        max-width: calc(100vw - 16px) !important;
        box-sizing: border-box !important;
    }

    /* Dark Mode for Mobile Device Filter DropDown */
    .fl-theme-dark .e-ddl.e-popup.e-ddl-device-filter,
    .fl-theme-dark .e-popup.e-ddl-device-filter,
    .fl-theme-dark .e-ddl.e-popup.e-popup-full-page,
    .fl-theme-dark .e-popup.e-popup-full-page,
    .fl-theme-dark .e-dropdownbase.e-ddl-device-filter,
    .fl-theme-dark .e-ddl-device-filter {
        background: var(--fl-bg-surface, #0F1B32) !important;
        color: var(--fl-text-primary, #E2E8F0) !important;
    }

    .fl-theme-dark .e-ddl.e-popup.e-ddl-device-filter .e-input-group,
    .fl-theme-dark .e-popup.e-ddl-device-filter .e-input-group,
    .fl-theme-dark .e-popup-full-page .e-input-group {
        background: var(--fl-bg-surface-2, #162544) !important;
        border-bottom: 1px solid var(--fl-border, #1C2D4A) !important;
    }

    .fl-theme-dark .e-ddl.e-popup.e-ddl-device-filter .e-input-group .e-back-icon,
    .fl-theme-dark .e-popup.e-ddl-device-filter .e-input-group .e-back-icon,
    .fl-theme-dark .e-popup-full-page .e-input-group .e-back-icon {
        color: var(--fl-text-primary, #E2E8F0) !important;
    }

    .fl-theme-dark .e-ddl.e-popup.e-ddl-device-filter .e-input-filter,
    .fl-theme-dark .e-popup.e-ddl-device-filter .e-input-filter,
    .fl-theme-dark .e-popup-full-page .e-input-filter {
        color: var(--fl-text-primary, #E2E8F0) !important;
        background: transparent !important;
    }

    .fl-theme-dark .e-ddl.e-popup.e-ddl-device-filter .e-list-item,
    .fl-theme-dark .e-popup.e-ddl-device-filter .e-list-item,
    .fl-theme-dark .e-popup-full-page .e-list-item {
        color: var(--fl-text-primary, #E2E8F0) !important;
        border-bottom-color: var(--fl-border, #1C2D4A) !important;
    }

    /* Modal Backdrop / Overlay */
    .e-dlg-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: rgba(15, 23, 42, 0.6) !important;
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
        z-index: 99990 !important;
        display: block !important;
        pointer-events: auto !important;
    }

    /* Modal Dialog Containers and Elements Must Sit ABOVE Overlay (z-index 99990) */
    .e-dlg-container,
    .e-dlg-container.e-dlg-center-center,
    .e-dlg-container:has(.e-dialog),
    .e-dlg-container:has(.fl-ocr-dialog),
    .e-dlg-container:has(.fl-review-dialog),
    .e-dlg-container:has(.custom-dialog),
    .e-dlg-container:has(.fl-dialog-dark),
    .fl-dialog-dark,
    .e-dialog {
        z-index: 100050 !important;
    }

    .fl-ocr-dialog.e-dialog,
    .fl-review-dialog.e-dialog,
    .custom-dialog.e-dialog,
    .e-dialog.fl-ocr-dialog,
    .e-dialog.fl-review-dialog {
        z-index: 100010 !important;
        pointer-events: auto !important;
    }

    .e-dialog.e-adaptive,
    .e-responsive-dialog,
    .e-adaptivedialog,
    .e-sortdialog,
    .e-filterdialog,
    .e-colchooserdialog,
    .e-bigger .e-responsive-dialog,
    .e-bigger.e-responsive-dialog {
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100vw !important;
        height: auto !important;
        max-height: 85vh !important;
        min-height: auto !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        background: var(--fl-bg-surface, #FFFFFF) !important;
        color: var(--fl-text-primary, #0F172A) !important;
        border-radius: 20px 20px 0 0 !important;
        border: 1px solid var(--fl-border, #E2E8F0) !important;
        border-bottom: none !important;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3) !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        z-index: 100050 !important;
        transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease !important;
    }

    /* Active dialog on top */
    .e-dialog.e-adaptive.e-popup-open,
    .e-responsive-dialog.e-popup-open {
        z-index: 100020 !important;
    }

    .e-dialog.e-adaptive .e-dlg-content,
    .e-responsive-dialog .e-dlg-content,
    .e-adaptivedialog .e-dlg-content {
        padding: 6px 16px 16px 16px !important;
        height: auto !important;
        max-height: calc(80vh - 54px) !important;
        flex: 0 1 auto !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
        width: 100% !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .e-bigger .e-responsive-dialog .e-dlg-header-content,
    .e-bigger.e-responsive-dialog .e-dlg-header-content,
    .e-dialog.e-adaptive .e-dlg-header-content,
    .e-responsive-dialog .e-dlg-header-content,
    .e-adaptivedialog .e-dlg-header-content {
        background: var(--fl-bg-surface-2, #F8FAFC) !important;
        border-bottom: 1px solid var(--fl-border, #E2E8F0) !important;
        padding: 12px 18px !important;
        border-radius: 20px 20px 0 0 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
        min-height: 54px !important;
        box-sizing: border-box !important;
        position: relative !important;
        flex-shrink: 0 !important;
    }

    .e-bigger .e-responsive-dialog .e-dlg-header-content .e-dlg-header,
    .e-bigger.e-responsive-dialog .e-dlg-header-content .e-dlg-header,
    .e-dialog.e-adaptive .e-dlg-header,
    .e-responsive-dialog .e-dlg-header,
    .e-adaptivedialog .e-dlg-header {
        order: 1 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        width: 100% !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
        overflow: visible !important;
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        color: var(--fl-text-primary, #0F172A) !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: left !important;
        line-height: 1.3 !important;
        gap: 10px !important;
        position: static !important;
    }

    /* Back button inside header on the left */
    .e-dialog.e-adaptive .e-res-back,
    .e-responsive-dialog .e-res-back,
    .e-dialog.e-adaptive .e-dlg-header .e-res-back,
    .e-responsive-dialog .e-dlg-header .e-res-back,
    .e-dialog.e-adaptive [class*="back"],
    .e-responsive-dialog [class*="back"] {
        order: -1 !important;
        margin-right: 6px !important;
        margin-left: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        border-radius: 8px !important;
        border: 1px solid var(--fl-border, #CBD5E1) !important;
        background: var(--fl-bg-surface, #FFFFFF) !important;
        color: var(--fl-text-primary, #0F172A) !important;
        cursor: pointer !important;
    }

    .e-bigger .e-responsive-dialog .e-dlg-header-content .e-dlg-header .e-res-custom-element,
    .e-bigger.e-responsive-dialog .e-dlg-header-content .e-dlg-header .e-res-custom-element,
    .e-responsive-dialog .e-dlg-header .e-res-custom-element,
    .e-dialog.e-adaptive .e-dlg-header .e-res-custom-element,
    .e-adaptivedialog .e-dlg-header .e-res-custom-element {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    /* Hide empty custom action elements or empty buttons in header */
    .e-dialog.e-adaptive .e-dlg-header button:empty,
    .e-responsive-dialog .e-dlg-header button:empty,
    .e-adaptivedialog .e-dlg-header button:empty,
    .e-dialog.e-adaptive .e-dlg-header a:empty,
    .e-responsive-dialog .e-dlg-header a:empty,
    .e-adaptivedialog .e-dlg-header a:empty,
    .e-dialog.e-adaptive .e-dlg-header .e-res-custom-element:empty,
    .e-responsive-dialog .e-dlg-header .e-res-custom-element:empty,
    /* FL-FLBILL-250: Mobile Column Chooser OK / Apply Button in Header */
    .e-colchooserdialog .e-dlg-header .e-res-custom-element,
    .e-responsive-dialog.e-colchooserdialog .e-dlg-header .e-res-custom-element {
        display: flex !important;
        visibility: visible !important;
        align-items: center !important;
        margin-left: auto !important;
        margin-right: 8px !important;
    }

    .e-colchooserdialog .e-dlg-header .e-res-apply-btn,
    .e-responsive-dialog.e-colchooserdialog .e-dlg-header .e-res-apply-btn,
    .e-colchooserdialog .e-dlg-header button.e-res-apply-btn,
    .e-responsive-dialog.e-colchooserdialog .e-dlg-header button.e-res-apply-btn {
        display: inline-flex !important;
        visibility: visible !important;
        align-items: center !important;
        justify-content: center !important;
        background: var(--fl-primary, #1565FF) !important;
        color: #FFFFFF !important;
        font-size: 0.85rem !important;
        font-weight: 600 !important;
        padding: 5px 16px !important;
        height: 32px !important;
        min-height: 32px !important;
        border-radius: 6px !important;
        border: none !important;
        cursor: pointer !important;
        box-shadow: 0 1px 3px rgba(21, 101, 255, 0.3) !important;
        line-height: 1 !important;
    }

    .fl-theme-dark .e-colchooserdialog .e-dlg-header .e-res-apply-btn,
    .fl-theme-dark .e-responsive-dialog.e-colchooserdialog .e-dlg-header .e-res-apply-btn,
    html.fl-theme-dark .e-colchooserdialog .e-dlg-header .e-res-apply-btn,
    body.fl-theme-dark .e-colchooserdialog .e-dlg-header .e-res-apply-btn {
        background: #2563EB !important;
        color: #FFFFFF !important;
    }

    /* Sort Dialog Clear Button with Clean Border (only when containing text) */
    .e-dialog.e-adaptive .e-dlg-header .e-clear-btn:not(:empty),
    .e-responsive-dialog .e-dlg-header .e-clear-btn:not(:empty),
    .e-dialog.e-adaptive .e-dlg-header .e-res-clear:not(:empty),
    .e-responsive-dialog .e-dlg-header .e-res-clear:not(:empty),
    .e-sortdialog .e-dlg-header .e-clear-btn:not(:empty),
    .e-sortdialog .e-dlg-header .e-res-clear:not(:empty),
    .e-responsive-dialog.e-sortdialog .e-dlg-header .e-clear-btn:not(:empty),
    .e-responsive-dialog.e-sortdialog .e-dlg-header .e-res-clear:not(:empty) {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 12.5px !important;
        font-weight: 600 !important;
        color: var(--fl-text-secondary, #475569) !important;
        background: var(--fl-bg-surface, #FFFFFF) !important;
        border: 1px solid var(--fl-border, #CBD5E1) !important;
        border-radius: 6px !important;
        padding: 3px 10px !important;
        margin: 0 !important;
        cursor: pointer !important;
        text-decoration: none !important;
        line-height: 1.2 !important;
        height: 28px !important;
        min-height: 28px !important;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
        box-sizing: border-box !important;
        transition: all 150ms ease !important;
    }

    .e-dialog.e-adaptive .e-dlg-header .e-clear-btn:active,
    .e-responsive-dialog .e-dlg-header .e-clear-btn:active {
        background: var(--fl-bg-surface-2, #F1F5F9) !important;
        transform: scale(0.96) !important;
    }

    .fl-theme-dark .e-dialog.e-adaptive .e-dlg-header .e-clear-btn,
    .fl-theme-dark .e-responsive-dialog .e-dlg-header .e-clear-btn {
        background: var(--fl-bg-surface-2, #1E293B) !important;
        border-color: #334155 !important;
        color: #94A3B8 !important;
    }

    /* Sort Dialog OK Button with Primary Border */
    .e-dialog.e-adaptive .e-dlg-header .e-apply-btn,
    .e-responsive-dialog .e-dlg-header .e-apply-btn,
    .e-dialog.e-adaptive .e-dlg-header .e-res-ok,
    .e-responsive-dialog .e-dlg-header .e-res-ok,
    .e-sortdialog .e-dlg-header .e-apply-btn,
    .e-sortdialog .e-dlg-header .e-res-ok,
    .e-responsive-dialog.e-sortdialog .e-dlg-header .e-apply-btn,
    .e-responsive-dialog.e-sortdialog .e-dlg-header .e-res-ok {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 12.5px !important;
        font-weight: 600 !important;
        color: #FFFFFF !important;
        background: var(--fl-royal, #2563EB) !important;
        border: 1px solid var(--fl-royal, #2563EB) !important;
        border-radius: 6px !important;
        padding: 3px 12px !important;
        margin: 0 !important;
        cursor: pointer !important;
        text-decoration: none !important;
        line-height: 1.2 !important;
        height: 28px !important;
        min-height: 28px !important;
        box-shadow: 0 1px 3px rgba(37, 99, 235, 0.25) !important;
        box-sizing: border-box !important;
        transition: all 150ms ease !important;
    }

    .e-dialog.e-adaptive .e-dlg-header .e-apply-btn:active,
    .e-responsive-dialog .e-dlg-header .e-apply-btn:active {
        background: #1D4ED8 !important;
        border-color: #1D4ED8 !important;
        transform: scale(0.96) !important;
    }

    /* Filter Dialog Header Custom Action Element (Hide when empty, show crisp icon when populated) */
    .e-filterdialog .e-dlg-header .e-res-custom-element:empty,
    .e-filterdialog .e-dlg-header .e-res-custom-element .e-btn:empty,
    .e-responsive-dialog.e-filterdialog .e-dlg-header .e-res-custom-element:empty,
    .e-responsive-dialog.e-filterdialog .e-dlg-header .e-res-custom-element .e-btn:empty,
    .e-dialog.e-adaptive .e-dlg-header .e-res-custom-element:empty,
    .e-dialog.e-adaptive .e-dlg-header .e-res-custom-element .e-btn:empty {
        display: none !important;
        border: none !important;
        background: transparent !important;
        width: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .e-dialog.e-adaptive .e-dlg-header .e-filter-icon,
    .e-responsive-dialog .e-dlg-header .e-filter-icon,
    .e-dialog.e-adaptive .e-dlg-header .e-resfilter,
    .e-responsive-dialog .e-dlg-header .e-resfilter,
    .e-filterdialog .e-dlg-header .e-filter-icon,
    .e-filterdialog .e-dlg-header .e-resfilter,
    .e-responsive-dialog.e-filterdialog .e-dlg-header .e-res-custom-element .e-btn:not(:empty),
    .e-dialog.e-adaptive.e-filterdialog .e-dlg-header .e-res-custom-element .e-btn:not(:empty),
    .e-filterdialog .e-dlg-header .e-res-custom-element .e-btn:not(:empty) {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 auto !important;
        margin: 0 !important;
        transform: none !important;
        vertical-align: middle !important;
        position: static !important;
        float: none !important;
        height: 28px !important;
        min-height: 28px !important;
        width: 32px !important;
        min-width: 32px !important;
        padding: 0 !important;
        border-radius: 6px !important;
        background: var(--fl-bg-surface-2, #F8FAFC) !important;
        border: 1px solid var(--fl-border, #CBD5E1) !important;
        color: var(--fl-royal, #2563EB) !important;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
        box-sizing: border-box !important;
        line-height: 1 !important;
        cursor: pointer !important;
    }

    .e-filterdialog .e-dlg-header .e-filter-icon *,
    .e-filterdialog .e-dlg-header .e-resfilter *,
    .e-filterdialog .e-dlg-header .e-res-custom-element .e-btn *,
    .e-filterdialog .e-dlg-header .e-icons,
    .e-filterdialog .e-dlg-header .e-btn-icon,
    .e-responsive-dialog.e-filterdialog .e-dlg-header .e-icons,
    .e-responsive-dialog.e-filterdialog .e-dlg-header .e-btn-icon {
        color: var(--fl-royal, #2563EB) !important;
        font-size: 15px !important;
        display: inline-block !important;
        line-height: 1 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .fl-theme-dark .e-filterdialog .e-dlg-header .e-filter-icon,
    .fl-theme-dark .e-filterdialog .e-dlg-header .e-resfilter,
    .fl-theme-dark .e-filterdialog .e-dlg-header .e-res-custom-element .e-btn,
    .fl-theme-dark .e-responsive-dialog.e-filterdialog .e-dlg-header .e-res-custom-element .e-btn {
        background: var(--fl-bg-surface-2, #1E293B) !important;
        border-color: #334155 !important;
        color: #38BDF8 !important;
    }

    .fl-theme-dark .e-filterdialog .e-dlg-header .e-icons,
    .fl-theme-dark .e-filterdialog .e-dlg-header .e-btn-icon,
    .fl-theme-dark .e-responsive-dialog.e-filterdialog .e-dlg-header .e-icons,
    .fl-theme-dark .e-responsive-dialog.e-filterdialog .e-dlg-header .e-btn-icon {
        color: #38BDF8 !important;
    }

    .e-bigger .e-responsive-dialog .e-dlg-header-content .e-dlg-closeicon-btn,
    .e-bigger.e-responsive-dialog .e-dlg-header-content .e-dlg-closeicon-btn,
    .e-dialog.e-adaptive .e-dlg-closeicon-btn,
    .e-responsive-dialog .e-dlg-closeicon-btn,
    .e-adaptivedialog .e-dlg-closeicon-btn {
        order: 3 !important;
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 8px !important;
        cursor: pointer !important;
        padding: 0 !important;
        margin: 0 0 0 auto !important;
        position: static !important;
        float: none !important;
        background: transparent !important;
        border: none !important;
        color: var(--fl-text-secondary, #64748B) !important;
        flex-shrink: 0 !important;
        flex: 0 0 auto !important;
    }

    .e-dialog.e-adaptive .e-dlg-content,
    .e-responsive-dialog .e-dlg-content,
    .e-adaptivedialog .e-dlg-content {
        padding: 6px 16px 16px 16px !important;
        height: auto !important;
        max-height: calc(80vh - 54px) !important;
        flex: 0 1 auto !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Adaptive Sort & Filter Dialog Column Rows */
    .e-dialog.e-adaptive .e-dlg-content .e-responsivecoldiv,
    .e-responsive-dialog .e-dlg-content .e-responsivecoldiv,
    .e-bigger .e-responsive-dialog .e-dlg-content .e-responsivecoldiv,
    .e-bigger.e-responsive-dialog .e-dlg-content .e-responsivecoldiv,
    .e-dialog.e-adaptive .Columndiv,
    .e-responsive-dialog .Columndiv,
    .e-dialog.e-adaptive .e-responsivefilterdiv,
    .e-responsive-dialog .e-responsivefilterdiv,
    .e-dialog.e-adaptive .e-cclist,
    .e-responsive-dialog .e-cclist,
    .e-dialog.e-adaptive .e-dlg-content .e-list-item,
    .e-responsive-dialog .e-dlg-content .e-list-item,
    .e-adaptivedialog .e-dlg-content .e-list-item {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 10px 10px !important;
        margin: 2px 0 !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        color: var(--fl-text-primary, #0F172A) !important;
        border-bottom: 1px solid var(--fl-border, #F1F5F9) !important;
        border-radius: 8px !important;
        text-align: left !important;
        text-indent: 0 !important;
        cursor: pointer !important;
        gap: 10px !important;
        min-height: 46px !important;
        transition: background-color 0.15s ease, color 0.15s ease !important;
    }

    /* Active filter card / selected column card styling in adaptive dialog */
    .e-dialog.e-adaptive .e-dlg-content .e-list-item.e-active,
    .e-responsive-dialog .e-dlg-content .e-list-item.e-active,
    .e-dialog.e-adaptive .e-responsivecoldiv.e-active,
    .e-responsive-dialog .e-responsivecoldiv.e-active,
    .e-dialog.e-adaptive .e-responsivefilterdiv.e-active,
    .e-responsive-dialog .e-responsivefilterdiv.e-active,
    .e-dialog.e-adaptive .Columndiv.e-active,
    .e-responsive-dialog .Columndiv.e-active {
        background: rgba(37, 99, 235, 0.08) !important;
        border: 1px solid rgba(37, 99, 235, 0.25) !important;
        border-radius: 10px !important;
        color: var(--fl-royal, #2563EB) !important;
        font-weight: 600 !important;
        padding: 10px 12px !important;
        box-sizing: border-box !important;
    }

    .fl-theme-dark .e-dialog.e-adaptive .e-dlg-content .e-list-item.e-active,
    .fl-theme-dark .e-responsive-dialog .e-dlg-content .e-list-item.e-active,
    .fl-theme-dark .e-dialog.e-adaptive .e-responsivecoldiv.e-active,
    .fl-theme-dark .e-responsive-dialog .e-responsivecoldiv.e-active,
    .fl-theme-dark .e-dialog.e-adaptive .e-responsivefilterdiv.e-active,
    .fl-theme-dark .e-responsive-dialog .e-responsivefilterdiv.e-active,
    .fl-theme-dark .e-dialog.e-adaptive .Columndiv.e-active,
    .fl-theme-dark .e-responsive-dialog .Columndiv.e-active {
        background: rgba(56, 189, 248, 0.12) !important;
        border-color: rgba(56, 189, 248, 0.3) !important;
        color: #38BDF8 !important;
    }

    .e-dialog.e-adaptive .e-dlg-content .e-list-item:hover,
    .e-responsive-dialog .e-dlg-content .e-list-item:hover,
    .e-dialog.e-adaptive .Columndiv:hover,
    .e-responsive-dialog .Columndiv:hover,
    .e-dialog.e-adaptive .e-responsivecoldiv:hover,
    .e-responsive-dialog .e-responsivecoldiv:hover {
        background-color: var(--fl-bg-surface-2, #F8FAFC) !important;
        color: var(--fl-royal, #2563EB) !important;
    }

    /* Left label text: never touches the right button, guaranteed margin */
    .e-dialog.e-adaptive .e-dlg-content .e-responsivecoldiv > span:not(.e-ressortbutton-parent):not(.e-ressortbutton),
    .e-responsive-dialog .e-dlg-content .e-responsivecoldiv > span:not(.e-ressortbutton-parent):not(.e-ressortbutton),
    .e-bigger .e-responsive-dialog .e-dlg-content .e-responsivecoldiv > span:not(.e-ressortbutton-parent):not(.e-ressortbutton),
    .e-bigger.e-responsive-dialog .e-dlg-content .e-responsivecoldiv > span:not(.e-ressortbutton-parent):not(.e-ressortbutton),
    .e-dialog.e-adaptive .e-dlg-content .e-list-text,
    .e-responsive-dialog .e-dlg-content .e-list-text,
    .e-dialog.e-adaptive .Columndiv > span:first-of-type,
    .e-responsive-dialog .Columndiv > span:first-of-type,
    .e-res-header-text {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        padding: 0 8px 0 0 !important;
        margin: 0 !important;
        font-size: 14.5px !important;
        text-align: left !important;
        text-indent: 0 !important;
        display: block !important;
        color: inherit !important;
        line-height: 1.35 !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
    }

    /* Filter icons inside column rows & cards */
    .e-dialog.e-adaptive .e-filterset,
    .e-responsive-dialog .e-filterset,
    .e-dialog.e-adaptive .e-filter-icon,
    .e-responsive-dialog .e-filter-icon,
    .e-dialog.e-adaptive .e-resfilter-icon,
    .e-responsive-dialog .e-resfilter-icon,
    .e-dialog.e-adaptive .e-res-icon.e-filterset {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
        min-height: 26px !important;
        border-radius: 6px !important;
        background: rgba(37, 99, 235, 0.1) !important;
        color: var(--fl-royal, #2563EB) !important;
        font-size: 13px !important;
        margin: 0 2px !important;
        flex: 0 0 auto !important;
    }

    .fl-theme-dark .e-dialog.e-adaptive .e-filterset,
    .fl-theme-dark .e-responsive-dialog .e-filterset,
    .fl-theme-dark .e-dialog.e-adaptive .e-filter-icon,
    .fl-theme-dark .e-responsive-dialog .e-filter-icon,
    .fl-theme-dark .e-dialog.e-adaptive .e-resfilter-icon,
    .fl-theme-dark .e-responsive-dialog .e-resfilter-icon,
    .fl-theme-dark .e-dialog.e-adaptive .e-res-icon.e-filterset {
        background: rgba(56, 189, 248, 0.15) !important;
        color: #38BDF8 !important;
    }

    /* Action icons inside the filter card: ensure right containment without horizontal clipping */
    .e-dialog.e-adaptive .Columndiv > *:last-child:not(:first-child),
    .e-responsive-dialog .Columndiv > *:last-child:not(:first-child),
    .e-dialog.e-adaptive .e-responsivecoldiv > *:last-child:not(:first-child),
    .e-responsive-dialog .e-responsivecoldiv > *:last-child:not(:first-child),
    .e-dialog.e-adaptive .e-responsivefilterdiv > *:last-child:not(:first-child),
    .e-responsive-dialog .e-responsivefilterdiv > *:last-child:not(:first-child),
    .e-dialog.e-adaptive .e-dlg-content .e-list-item > *:last-child:not(:first-child),
    .e-responsive-dialog .e-dlg-content .e-list-item > *:last-child:not(:first-child),
    .e-dialog.e-adaptive .e-dlg-content .e-ressortbutton-parent,
    .e-responsive-dialog .e-dlg-content .e-ressortbutton-parent,
    .e-bigger .e-responsive-dialog .e-dlg-content .e-ressortbutton-parent,
    .e-bigger.e-responsive-dialog .e-dlg-content .e-ressortbutton-parent,
    .e-dialog.e-adaptive [class*="order"],
    .e-responsive-dialog [class*="order"],
    .e-dialog.e-adaptive [class*="sort-val"],
    .e-responsive-dialog [class*="sort-val"] {
        float: none !important;
        margin: 0 0 0 auto !important;
        margin-right: 0 !important;
        flex: 0 0 auto !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        vertical-align: middle !important;
        gap: 6px !important;
        max-width: 45% !important;
    }

    /* Override Syncfusion's fixed 120px width on the sort button to a clean compact badge */
    .e-dialog.e-adaptive .e-dlg-content .e-ressortbutton-parent .e-ressortbutton,
    .e-responsive-dialog .e-dlg-content .e-ressortbutton-parent .e-ressortbutton,
    .e-bigger .e-responsive-dialog .e-dlg-content .e-ressortbutton-parent .e-ressortbutton,
    .e-bigger.e-responsive-dialog .e-dlg-content .e-ressortbutton-parent .e-ressortbutton,
    .e-dialog.e-adaptive .e-ressortbutton,
    .e-responsive-dialog .e-ressortbutton {
        width: auto !important;
        min-width: 76px !important;
        max-width: 110px !important;
        height: 30px !important;
        min-height: 30px !important;
        padding: 2px 10px !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        border-radius: 6px !important;
        box-sizing: border-box !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        margin: 0 !important;
        background: var(--fl-bg-surface-2, #F8FAFC) !important;
        border: 1px solid var(--fl-border, #CBD5E1) !important;
        color: var(--fl-text-secondary, #475569) !important;
        cursor: pointer !important;
    }

    .e-dialog.e-adaptive .e-ressortbutton:empty::before,
    .e-responsive-dialog .e-ressortbutton:empty::before,
    .e-dialog.e-adaptive .e-ressortbutton span:empty::before,
    .e-responsive-dialog .e-ressortbutton span:empty::before {
        content: "None" !important;
        color: var(--fl-text-secondary, #64748B) !important;
    }

    .fl-theme-dark .e-dialog.e-adaptive .e-dlg-content .e-ressortbutton-parent .e-ressortbutton,
    .fl-theme-dark .e-responsive-dialog .e-dlg-content .e-ressortbutton-parent .e-ressortbutton,
    .fl-theme-dark .e-dialog.e-adaptive .e-ressortbutton,
    .fl-theme-dark .e-responsive-dialog .e-ressortbutton {
        background: var(--fl-bg-surface-2, #162544) !important;
        border: 1px solid var(--fl-border, #1C2D4A) !important;
        color: var(--fl-text-secondary, #94A3B8) !important;
    }

    .fl-theme-dark .e-dialog.e-adaptive,
    .fl-theme-dark .e-responsive-dialog,
    .fl-theme-dark .e-adaptivedialog {
        background: var(--fl-bg-surface, #0F1B32) !important;
        color: var(--fl-text-primary, #E2E8F0) !important;
        border-color: var(--fl-border, #1C2D4A) !important;
    }

    .fl-theme-dark .e-dialog.e-adaptive .e-dlg-header-content,
    .fl-theme-dark .e-responsive-dialog .e-dlg-header-content,
    .fl-theme-dark .e-adaptivedialog .e-dlg-header-content {
        background: var(--fl-bg-surface-2, #142037) !important;
        border-bottom-color: var(--fl-border, #1C2D4A) !important;
    }

    .fl-theme-dark .e-dialog.e-adaptive .e-dlg-header,
    .fl-theme-dark .e-responsive-dialog .e-dlg-header,
    .fl-theme-dark .e-adaptivedialog .e-dlg-header {
        color: var(--fl-text-primary, #FFFFFF) !important;
    }

    .fl-theme-dark .e-dialog.e-adaptive .e-dlg-content .e-list-item,
    .fl-theme-dark .e-responsive-dialog .e-dlg-content .e-list-item,
    .fl-theme-dark .e-adaptivedialog .e-dlg-content .e-list-item,
    .fl-theme-dark .e-dialog.e-adaptive .Columndiv,
    .fl-theme-dark .e-responsive-dialog .Columndiv,
    .fl-theme-dark .e-dialog.e-adaptive .e-responsivecoldiv,
    .fl-theme-dark .e-responsive-dialog .e-responsivecoldiv {
        color: var(--fl-text-primary, #E2E8F0) !important;
        border-bottom-color: var(--fl-border, #1C2D4A) !important;
    }

    .fl-theme-dark .e-dialog.e-adaptive .e-dlg-content .e-list-item:hover,
    .fl-theme-dark .e-responsive-dialog .e-dlg-content .e-list-item:hover,
    .fl-theme-dark .e-dialog.e-adaptive .Columndiv:hover,
    .fl-theme-dark .e-responsive-dialog .Columndiv:hover {
        background-color: var(--fl-bg-surface-2, #142037) !important;
        color: #38BDF8 !important;
    }
}

/* â”€â”€ Universal Badges & Status Indicators â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-badge {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    font-family: var(--fl-font-ui, 'Inter', sans-serif);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-align: center;
}

.fl-status-active {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    background: rgba(22, 163, 74, 0.12);
    color: var(--fl-color-green, #16A34A);
    border: 1px solid rgba(22, 163, 74, 0.28);
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.8rem;
}

.fl-status-inactive {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    background: rgba(245, 165, 36, 0.15) !important;
    color: var(--fl-color-amber, #D97706) !important;
    border: 1px solid rgba(245, 165, 36, 0.32) !important;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.8rem;
}

.fl-theme-dark .fl-status-inactive {
    background: rgba(245, 158, 11, 0.18) !important;
    color: #FBBF24 !important;
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
}

.fl-status-blocked {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    background: rgba(220, 38, 38, 0.12);
    color: var(--fl-color-red, #DC2626);
    border: 1px solid rgba(220, 38, 38, 0.28);
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.8rem;
}

/* â”€â”€ Universal Container & Card Classes â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-page-container,
.fl-companies-container,
.fl-tenants-container,
.fl-branches-container,
.fl-users-container,
.fl-customers-container,
.fl-customer-page-container,
.fl-customer-detail-container,
.fl-purchase-container,
.fl-products-container,
.fl-product-page-container,
.fl-product-detail-container,
.fl-supplier-container,
.fl-services-container,
.fl-bill-page-container,
.fl-service-page-container,
.fl-quotations-container,
.fl-quotation-form-container,
.fl-quotation-detail-container,
.fl-suppliers-container,
.fl-supplier-page-container,
.fl-supplier-detail-container,
.fl-stock-container,
.fl-stock-page-container,
.fl-stock-detail-container,
.fl-invoices-container,
.fl-roles-container {
    padding: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.fl-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem !important;
}

.fl-card {
    background: var(--fl-bg-surface);
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--fl-border);
    margin-bottom: 1.25rem !important;
    overflow: visible;
}

.fl-toolbar-card {
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem !important;
}

.fl-toolbar-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr auto;
    gap: 1rem;
    align-items: center;
}

@media (max-width: 992px) {
    .fl-toolbar-grid {
        grid-template-columns: 1fr;
    }
}

.fl-grid-card {
    padding: 1.25rem;
    overflow: visible;
}

/* â”€â”€ Global Card Headers & Icon Highlights â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-card-header {
    padding: 1rem 1.25rem;
    background: var(--fl-bg-surface-2, #F8FAFC);
    border-bottom: 1px solid var(--fl-border, #E2E8F0);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.fl-header-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fl-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--fl-text-primary, #0F172A);
    margin: 0;
}

.fl-hl-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.fl-hl-bg--blue {
    background: rgba(37, 99, 235, 0.15);
    color: var(--fl-color-blue, #1565FF);
}

.fl-hl-bg--teal {
    background: rgba(13, 148, 136, 0.15);
    color: var(--fl-color-teal, #0D9488);
}

.fl-hl-bg--green {
    background: rgba(34, 197, 94, 0.15);
    color: var(--fl-color-green, #16A34A);
}

.fl-hl-bg--amber {
    background: rgba(245, 158, 11, 0.15);
    color: var(--fl-color-amber, #D97706);
}

/* â”€â”€ FLDataGrid Responsive Container & Internal Scrollbars â”€â”€ */
.fl-grid-responsive-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
    display: block !important;
}

.fl-themed-grid.e-grid {
    width: 100% !important;
    max-width: 100% !important;
    font-family: var(--fl-font-ui, 'Inter', sans-serif);
    background-color: var(--fl-bg-surface, #FFFFFF);
    border: 1px solid var(--fl-border, #E2E8F0);
    border-radius: 12px;
    overflow: hidden !important;
}

/* â”€â”€ Fixed Height & Permanently Visible Touch-Draggable X & Y Scrollbars â”€â”€ */
.fl-themed-grid.e-grid .e-gridheader,
.fl-themed-grid.e-grid .e-gridheader .e-headercontent,
.fl-themed-grid.e-grid .e-gridcontent {
    overflow: hidden !important;
}

.fl-themed-grid.e-grid .e-gridcontent .e-content,
.fl-themed-grid.e-grid .e-content {
    overflow-x: scroll !important;
    overflow-y: scroll !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-x pan-y !important;
    scrollbar-gutter: stable both-edges !important;
    scrollbar-width: auto !important;
    scrollbar-color: #334155 #E2E8F0 !important;
}

.fl-theme-dark .fl-themed-grid.e-grid .e-gridcontent .e-content,
.fl-theme-dark .fl-themed-grid.e-grid .e-content {
    scrollbar-color: #38BDF8 #0F172A !important;
}

/* WebKit Scrollbar Styling (Permanently Visible, Touch-Draggable on all devices) */
.fl-themed-grid.e-grid .e-gridcontent .e-content::-webkit-scrollbar,
.fl-themed-grid.e-grid .e-content::-webkit-scrollbar {
    width: 14px !important;
    height: 14px !important;
    display: block !important;
    -webkit-appearance: none !important;
}

.fl-themed-grid.e-grid .e-gridcontent .e-content::-webkit-scrollbar-track,
.fl-themed-grid.e-grid .e-content::-webkit-scrollbar-track {
    background: #E2E8F0 !important;
    border-radius: 8px !important;
    border: 1px solid #CBD5E1 !important;
    -webkit-appearance: none !important;
}

.fl-theme-dark .fl-themed-grid.e-grid .e-gridcontent .e-content::-webkit-scrollbar-track,
.fl-theme-dark .fl-themed-grid.e-grid .e-content::-webkit-scrollbar-track {
    background: #0F172A !important;
    border-radius: 8px !important;
    border: 1px solid #1E293B !important;
    -webkit-appearance: none !important;
}

.fl-themed-grid.e-grid .e-gridcontent .e-content::-webkit-scrollbar-thumb,
.fl-themed-grid.e-grid .e-content::-webkit-scrollbar-thumb {
    background: #334155 !important;
    border-radius: 8px !important;
    border: 2px solid #E2E8F0 !important;
    min-width: 44px !important;
    min-height: 44px !important;
    -webkit-appearance: none !important;
}

.fl-themed-grid.e-grid .e-gridcontent .e-content::-webkit-scrollbar-thumb:hover,
.fl-themed-grid.e-grid .e-content::-webkit-scrollbar-thumb:active {
    background: #0F172A !important;
}

.fl-theme-dark .fl-themed-grid.e-grid .e-gridcontent .e-content::-webkit-scrollbar-thumb,
.fl-theme-dark .fl-themed-grid.e-grid .e-content::-webkit-scrollbar-thumb {
    background: #38BDF8 !important;
    border-radius: 8px !important;
    border: 2px solid #0F172A !important;
    min-width: 44px !important;
    min-height: 44px !important;
    -webkit-appearance: none !important;
}

.fl-theme-dark .fl-themed-grid.e-grid .e-gridcontent .e-content::-webkit-scrollbar-thumb:hover,
.fl-theme-dark .fl-themed-grid.e-grid .e-content::-webkit-scrollbar-thumb:active {
    background: #7DD3FC !important;
}

.fl-themed-grid.e-grid .e-gridcontent .e-content::-webkit-scrollbar-corner,
.fl-themed-grid.e-grid .e-content::-webkit-scrollbar-corner {
    background: transparent !important;
    -webkit-appearance: none !important;
}

.fl-theme-dark .fl-themed-grid.e-grid .e-gridcontent::-webkit-scrollbar-corner,
.fl-theme-dark .fl-themed-grid.e-grid .e-gridcontent .e-content::-webkit-scrollbar-corner {
    background: #0F172A !important;
    -webkit-appearance: none !important;
}

.fl-themed-grid.e-grid .e-groupdroparea {
    background-color: var(--fl-bg-surface-2, #F8FAFC);
    border-bottom: 1px solid var(--fl-border, #E2E8F0);
    color: var(--fl-text-secondary, #64748B);
}

.fl-themed-grid.e-grid .e-groupcaption,
.fl-themed-grid.e-grid tr.e-groupcaptionrow,
.fl-themed-grid.e-grid td.e-groupcaption,
.fl-themed-grid.e-grid .e-groupcaptioncell {
    background-color: var(--fl-bg-surface-2, #F8FAFC) !important;
    border-color: var(--fl-border, #E2E8F0) !important;
    color: var(--fl-text-primary, #0F172A) !important;
    font-weight: 600 !important;
}

.fl-themed-grid.e-grid .e-grouptopleftcell,
.fl-themed-grid.e-grid .e-headerindentcell,
.fl-themed-grid.e-grid .e-gridheader .e-rowdragheader,
.fl-themed-grid.e-grid .e-gridheader .e-dragindentheadercell {
    background-color: var(--fl-bg-surface-2, #F8FAFC) !important;
    border-color: var(--fl-border, #E2E8F0) !important;
}

.fl-themed-grid.e-grid .e-toolbar {
    background-color: var(--fl-bg-surface, #FFFFFF);
    border-bottom: 1px solid var(--fl-border, #E2E8F0);
}

.fl-themed-grid.e-grid .e-gridheader {
    border-bottom: 1px solid var(--fl-border-soft, #E2E8F0);
}

.fl-themed-grid.e-grid .e-headercell {
    font-family: var(--fl-font-ui, 'Inter', sans-serif) !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: var(--fl-text-secondary, #64748B) !important;
    padding: 0.85rem 1rem !important;
}

.fl-themed-grid.e-grid .e-headercell .e-headertext,
.e-grid .e-headercell .e-headertext {
    font-family: var(--fl-font-ui, 'Inter', sans-serif) !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: var(--fl-text-secondary, #64748B) !important;
    white-space: normal !important;
    line-height: 1.3 !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
}

.fl-themed-grid.e-grid .e-rowcell {
    font-family: var(--fl-font-ui, 'Inter', sans-serif) !important;
    font-size: 0.9rem !important;
    color: var(--fl-text-primary, #0F172A) !important;
    padding: 0.85rem 1rem !important;
    vertical-align: middle !important;
}

.fl-themed-grid.e-grid .e-gridcontent .e-row:hover {
    background-color: var(--fl-bg-surface-2, rgba(241, 245, 249, 0.6)) !important;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   â”€â”€ SYNCFUSION DATAGRID DARK MODE PALETTE INTEGRATION â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.fl-theme-dark .fl-themed-grid.e-grid,
.fl-theme-dark .e-grid {
    background-color: var(--fl-bg-surface, #0F1B32) !important;
    border-color: var(--fl-border, #1C2D4A) !important;
    color: var(--fl-text-primary, #E2E8F0) !important;
}

/* 1. Grouping Drop Area, Group Caption Rows & Indents */
.fl-theme-dark .e-grid .e-groupdroparea {
    background-color: var(--fl-bg-surface-2, #142037) !important;
    border-color: var(--fl-border, #1C2D4A) !important;
    color: var(--fl-text-secondary, #94A3B8) !important;
}

.fl-theme-dark .e-grid .e-groupdroparea .e-groupheadertitle {
    color: var(--fl-text-secondary, #94A3B8) !important;
}

.fl-theme-dark .e-grid .e-groupdroparea .e-groupheadercell {
    background-color: var(--fl-bg-surface, #0F1B32) !important;
    border: 1px solid var(--fl-border, #1C2D4A) !important;
    color: var(--fl-text-primary, #E2E8F0) !important;
    border-radius: 6px !important;
}

/* Group Caption Row & Text */
.fl-theme-dark .e-grid .e-groupcaption,
.fl-theme-dark .e-grid tr.e-groupcaptionrow,
.fl-theme-dark .e-grid td.e-groupcaption,
.fl-theme-dark .e-grid .e-groupcaptioncell {
    background-color: var(--fl-bg-surface-2, #142037) !important;
    border-color: var(--fl-border, #1C2D4A) !important;
    color: var(--fl-text-primary, #E2E8F0) !important;
    font-weight: 600 !important;
}

/* Group & Drag Top-Left Header Indent Cells (Top-Left White Box Fix) */
.fl-theme-dark .e-grid .e-grouptopleftcell,
.fl-theme-dark .e-grid .e-headerindentcell,
.fl-theme-dark .e-grid .e-gridheader .e-rowdragheader,
.fl-theme-dark .e-grid .e-gridheader .e-dragindentheadercell {
    background-color: var(--fl-bg-surface-2, #142037) !important;
    border-color: var(--fl-border, #1C2D4A) !important;
}

/* Group Indent Cells and Chevron Expand/Collapse */
.fl-theme-dark .e-grid .e-indentcell,
.fl-theme-dark .e-grid .e-recordplusexpand,
.fl-theme-dark .e-grid .e-recordpluscollapse,
.fl-theme-dark .e-grid .e-groupcaption .e-recordplusexpand,
.fl-theme-dark .e-grid .e-groupcaption .e-recordpluscollapse {
    background-color: var(--fl-bg-surface-2, #142037) !important;
    border-color: var(--fl-border, #1C2D4A) !important;
    color: var(--fl-text-secondary, #94A3B8) !important;
}

.fl-theme-dark .e-grid .e-row .e-indentcell {
    background-color: var(--fl-bg-surface, #0F1B32) !important;
    border-color: var(--fl-border, #1C2D4A) !important;
}

.fl-theme-dark .e-grid .e-icon-grightarrow,
.fl-theme-dark .e-grid .e-icon-gdownarrow,
.fl-theme-dark .e-grid .e-icons {
    color: var(--fl-text-secondary, #94A3B8) !important;
}

/* 2. Toolbar & Search & Column Chooser */
.fl-theme-dark .e-grid .e-toolbar,
.fl-theme-dark .e-grid .e-toolbar-items {
    background-color: var(--fl-bg-surface, #0F1B32) !important;
    border-color: var(--fl-border, #1C2D4A) !important;
    color: var(--fl-text-primary, #E2E8F0) !important;
}

.fl-theme-dark .e-grid .e-toolbar .e-toolbar-item .e-tbar-btn,
.fl-theme-dark .e-grid .e-toolbar .e-tbar-btn {
    background: transparent !important;
    color: var(--fl-text-primary, #E2E8F0) !important;
    border-radius: 6px !important;
}

.fl-theme-dark .e-grid .e-toolbar .e-tbar-btn:hover {
    background-color: var(--fl-bg-surface-2, #142037) !important;
    color: #FFFFFF !important;
}

.fl-theme-dark .e-grid .e-toolbar .e-tbar-btn .e-tbar-btn-text,
.fl-theme-dark .e-grid .e-toolbar .e-tbar-btn .e-icons {
    color: var(--fl-text-primary, #E2E8F0) !important;
}

.fl-theme-dark .e-grid .e-toolbar .e-input-group,
.fl-theme-dark .e-grid .e-toolbar .e-input-group.e-control-wrapper {
    background-color: var(--fl-bg-surface-2, #142037) !important;
    border: 1px solid var(--fl-border, #1C2D4A) !important;
    color: var(--fl-text-primary, #E2E8F0) !important;
    border-radius: 8px !important;
}

.fl-theme-dark .e-grid .e-toolbar input.e-input,
.fl-theme-dark .e-grid .e-toolbar .e-input-group input.e-input {
    background-color: transparent !important;
    color: var(--fl-text-primary, #E2E8F0) !important;
}

.fl-theme-dark .e-grid .e-toolbar .e-input-group-icon {
    color: var(--fl-text-secondary, #94A3B8) !important;
}

/* 3. Row Drag & Drop Column and Handle Cells (Leftmost â ¿) */
.fl-theme-dark .e-grid .e-rowdragdrop,
.fl-theme-dark .e-grid .e-dragindentcell,
.fl-theme-dark .e-grid .e-rowdragdrop-header,
.fl-theme-dark .e-grid .e-dragindentheadercell,
.fl-theme-dark .e-grid .e-rowdragheader {
    background-color: var(--fl-bg-surface, #0F1B32) !important;
    border-color: var(--fl-border, #1C2D4A) !important;
    color: var(--fl-text-muted, #64748B) !important;
}

.fl-theme-dark .e-grid .e-gridheader .e-rowdragheader,
.fl-theme-dark .e-grid .e-gridheader .e-dragindentheadercell,
.fl-theme-dark .e-grid .e-gridheader .e-headercell {
    background-color: var(--fl-bg-surface-2, #142037) !important;
}

.fl-theme-dark .e-grid .e-rcursor {
    color: var(--fl-text-muted, #64748B) !important;
}

/* 4. Table Header Cells */
.fl-theme-dark .e-grid .e-gridheader,
.fl-theme-dark .e-grid .e-headercontent,
.fl-theme-dark .e-grid .e-headercell,
.fl-theme-dark .e-grid .e-columnheader {
    background-color: var(--fl-bg-surface-2, #142037) !important;
    border-color: var(--fl-border, #1C2D4A) !important;
    color: var(--fl-text-secondary, #94A3B8) !important;
}

.fl-theme-dark .e-grid .e-headercell .e-headertext {
    color: var(--fl-text-secondary, #94A3B8) !important;
}

.fl-theme-dark .e-grid .e-sortfilterdiv,
.fl-theme-dark .e-grid .e-filtericon,
.fl-theme-dark .e-grid .e-sortnumber {
    color: var(--fl-text-secondary, #94A3B8) !important;
}

/* 5. Table Rows & Cells */
.fl-theme-dark .e-grid .e-gridcontent,
.fl-theme-dark .e-grid .e-content,
.fl-theme-dark .e-grid .e-table,
.fl-theme-dark .e-grid .e-row {
    background-color: var(--fl-bg-surface, #0F1B32) !important;
    color: var(--fl-text-primary, #E2E8F0) !important;
}

.fl-theme-dark .e-grid .e-rowcell {
    background-color: var(--fl-bg-surface, #0F1B32) !important;
    border-bottom: 1px solid var(--fl-border, #1C2D4A) !important;
    border-color: var(--fl-border, #1C2D4A) !important;
    color: var(--fl-text-primary, #E2E8F0) !important;
}

.fl-theme-dark .e-grid .e-altrow,
.fl-theme-dark .e-grid .e-altrow .e-rowcell,
.fl-theme-dark .e-grid .e-altrow .e-rowdragdrop {
    background-color: rgba(20, 32, 55, 0.45) !important;
}

.fl-theme-dark .e-grid .e-gridcontent .e-row:hover,
.fl-theme-dark .e-grid .e-gridcontent .e-row:hover .e-rowcell,
.fl-theme-dark .e-grid .e-gridcontent .e-row:hover .e-rowdragdrop {
    background-color: var(--fl-bg-surface-2, #142037) !important;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   â”€â”€ COLUMN CHOOSER (e-ccdlg) â€” DESKTOP & MOBILE PROPER FIX
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•

   ARCHITECTURE (from Syncfusion Fluent2 source):
   DESKTOP: .e-grid .e-ccdlg (standalone popup anchored to Columns button)
     - .e-dlg-header-content  (title header)
     - .e-dlg-content         (margin: 40px 0 0; overflow: visible)
         - .e-main-div
             - .e-cc-searchdiv  (position: absolute; top: -41px)
             - .e-cc-contentdiv (height: 196px; overflow-y: auto)
                 - li.e-cclist  (each column row)
                     - label.e-cc  â† ACTUAL label class
   MOBILE: .e-bigger.e-responsive-dialog (outer dialog = "Choose Column" dialog)
     - .e-dlg-header-content  (title "Choose Column" is here)
     - .e-dlg-content
         - .e-mainfilterdiv
             - .e-ccdlg (inner column chooser component)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   â”€â”€ COLUMN CHOOSER (e-ccdlg) â€” DESKTOP & MOBILE PROPER FIX
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Container Popup Elevation & Positioning â”€â”€ */
.e-grid .e-ccdlg,
.e-grid-popup .e-ccdlg {
    z-index: 100050 !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.18) !important;
    border: 1px solid var(--fl-border, #E2E8F0) !important;
    background: var(--fl-bg-surface, #FFFFFF) !important;
    overflow: hidden !important;
}

/* â”€â”€ Main Layout: Keep search box in normal vertical flow above the list â”€â”€ */
.e-grid .e-ccdlg .e-main-div,
.e-grid-popup .e-ccdlg .e-main-div,
.e-responsive-dialog .e-ccdlg .e-main-div {
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Ensure inner e-dlg-content does not have negative margin or clip search â”€â”€ */
.e-grid .e-ccdlg .e-dlg-content,
.e-grid-popup .e-ccdlg .e-dlg-content,
.e-responsive-dialog .e-ccdlg .e-dlg-content {
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    max-height: none !important;
    border: none !important;
}

/* â”€â”€ Search Box Container (.e-cc-searchdiv): In-flow, properly spaced, non-clipped â”€â”€ */
.e-grid .e-ccdlg .e-cc-searchdiv,
.e-grid-popup .e-ccdlg .e-cc-searchdiv,
.e-responsive-dialog .e-ccdlg .e-cc-searchdiv {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    margin: 12px 14px 8px 14px !important;
    display: flex !important;
    align-items: center !important;
    width: calc(100% - 28px) !important;
    box-sizing: border-box !important;
    opacity: 1 !important;
    z-index: 10 !important;
    background: var(--fl-bg-surface-2, #F8FAFC) !important;
    border: 1px solid var(--fl-border, #CBD5E1) !important;
    border-radius: 8px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 10px !important;
    box-shadow: none !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.e-grid .e-ccdlg .e-cc-searchdiv:focus-within,
.e-grid-popup .e-ccdlg .e-cc-searchdiv:focus-within,
.e-responsive-dialog .e-ccdlg .e-cc-searchdiv:focus-within {
    border-color: var(--fl-primary, #2563EB) !important;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15) !important;
    background: var(--fl-bg-surface, #FFFFFF) !important;
}

/* Inner input group wrapper inside .e-cc-searchdiv */
.e-ccdlg .e-cc-searchdiv .e-input-group,
.e-ccdlg .e-cc-searchdiv .e-cc-searchinput {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Search input field */
.e-ccdlg .e-cc-searchdiv input.e-input,
.e-ccdlg .e-cc-searchdiv input.e-cc-searchbox,
.e-ccdlg .e-cc-searchdiv input.e-ccsearch,
.e-ccdlg .e-cc-searchdiv input {
    height: 100% !important;
    border: none !important;
    background: transparent !important;
    padding: 4px 8px !important;
    font-size: 0.875rem !important;
    color: var(--fl-text-primary, #0F172A) !important;
    box-shadow: none !important;
    outline: none !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

/* Search icon & clear button */
.e-ccdlg .e-cc-searchdiv .e-icons,
.e-ccdlg .e-cc-searchdiv .e-cc-searchicon,
.e-ccdlg .e-cc-searchdiv .e-ccsearch-icon {
    color: var(--fl-text-secondary, #64748B) !important;
    font-size: 15px !important;
    flex-shrink: 0 !important;
    float: none !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* â”€â”€ Content area containing the list of columns â”€â”€ */
.e-grid .e-ccdlg .e-cc-contentdiv,
.e-grid-popup .e-ccdlg .e-cc-contentdiv,
.e-responsive-dialog .e-ccdlg .e-cc-contentdiv {
    margin: 0 !important;
    padding: 4px 14px 8px 14px !important;
    min-height: 150px !important;
    max-height: 250px !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
}

.e-grid .e-ccdlg .e-ccul-ele,
.e-grid-popup .e-ccdlg .e-ccul-ele,
.e-responsive-dialog .e-ccdlg .e-ccul-ele {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Each column row in the list */
.e-grid .e-ccdlg li.e-cclist,
.e-grid-popup .e-ccdlg li.e-cclist,
.e-responsive-dialog .e-ccdlg li.e-cclist {
    display: flex !important;
    align-items: center !important;
    padding: 6px 4px !important;
    border-radius: 6px !important;
    transition: background-color 0.12s ease !important;
}

.e-grid .e-ccdlg li.e-cclist:hover,
.e-grid-popup .e-ccdlg li.e-cclist:hover,
.e-responsive-dialog .e-ccdlg li.e-cclist:hover {
    background-color: var(--fl-bg-surface-2, #F1F5F9) !important;
}

/* Column item checkbox wrapper */
.e-ccdlg .e-checkbox-wrapper {
    display: inline-flex !important;
    align-items: center !important;
    width: 100% !important;
}

/* Checkbox frame alignment */
.e-ccdlg .e-checkbox-wrapper .e-frame {
    margin-right: 8px !important;
    flex-shrink: 0 !important;
}

/* Column label text & Select All text */
.e-ccdlg .e-checkbox-wrapper .e-label,
.e-ccdlg li.e-cclist .e-label,
.e-ccdlg li.e-cclist label,
.e-ccdlg label.e-cc,
.e-ccdlg .e-cc-lab-name {
    color: var(--fl-text-primary, #0F172A) !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    font-family: var(--fl-font-ui, 'Inter', sans-serif) !important;
    cursor: pointer !important;
    user-select: none !important;
}

/* Guarantee "Select All" label text is ALWAYS shown even if span is empty */
li[id*="columnchooser_selectall"] .e-label:empty::before,
.e-cclist:has(.e-selectall) .e-label:empty::before,
#CustomersGrid_columnchooser_selectall .e-label:empty::before {
    content: "Select All" !important;
    color: var(--fl-text-primary, #0F172A) !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    font-family: var(--fl-font-ui, 'Inter', sans-serif) !important;
}

/* Column chooser footer buttons */
.e-grid .e-ccdlg .e-footer-content,
.e-grid-popup .e-ccdlg .e-footer-content,
.e-responsive-dialog .e-ccdlg .e-footer-content {
    background: var(--fl-bg-surface-2, #F8FAFC) !important;
    border-top: 1px solid var(--fl-border, #E2E8F0) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    padding: 0.65rem 1rem !important;
}

/* â”€â”€ MOBILE ADAPTIVE: Column Chooser inside .e-responsive-dialog â”€â”€ */
@media (max-width: 768px) {

    /* The outer responsive dialog wrapper */
    .e-bigger .e-responsive-dialog,
    .e-bigger.e-responsive-dialog,
    .e-responsive-dialog {
        z-index: 100200 !important;
        border-radius: 14px 14px 0 0 !important;
        overflow: hidden !important;
    }

    /* Dialog Header */
    .e-responsive-dialog .e-dlg-header-content,
    .e-bigger.e-responsive-dialog .e-dlg-header-content,
    .e-bigger .e-responsive-dialog .e-dlg-header-content {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 12px 16px !important;
        background: var(--fl-bg-surface-2, #F8FAFC) !important;
        border-bottom: 1px solid var(--fl-border, #E2E8F0) !important;
        min-height: 48px !important;
        box-sizing: border-box !important;
    }

    /* Header title "Choose Column" */
    .e-responsive-dialog .e-dlg-header,
    .e-bigger.e-responsive-dialog .e-dlg-header,
    .e-responsive-dialog .e-dlg-header .e-cc-title,
    .e-bigger.e-responsive-dialog .e-dlg-header .e-cc-title,
    .e-bigger .e-responsive-dialog .e-dlg-header .e-cc-title {
        color: var(--fl-text-primary, #0F172A) !important;
        font-size: 1.05rem !important;
        font-weight: 700 !important;
        font-family: var(--fl-font-ui, 'Inter', sans-serif) !important;
        display: flex !important;
        align-items: center !important;
        line-height: 1.25 !important;
        margin: 0 !important;
    }

    /* The outer .e-dlg-content that contains the inner .e-ccdlg */
    .e-bigger .e-responsive-dialog:has(.e-ccdlg) .e-dlg-content,
    .e-bigger.e-responsive-dialog:has(.e-ccdlg) .e-dlg-content,
    .e-responsive-dialog:has(.e-ccdlg) .e-dlg-content,
    .e-responsive-dialog .e-ccdlg .e-dlg-content {
        padding: 0 !important;
        max-height: calc(100vh - 180px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        box-sizing: border-box !important;
    }

    /* The inner .e-ccdlg */
    .e-responsive-dialog .e-mainfilterdiv .e-ccdlg,
    .e-responsive-dialog .e-dlg-content .e-ccdlg {
        width: 100% !important;
        height: auto !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        background: transparent !important;
    }

    /* Search Box in mobile view */
    .e-responsive-dialog .e-ccdlg .e-cc-searchdiv {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        margin: 12px 14px 6px 14px !important;
        width: calc(100% - 28px) !important;
        height: 42px !important;
        min-height: 42px !important;
        border-radius: 8px !important;
    }

    /* Column content area height in mobile */
    .e-responsive-dialog .e-ccdlg .e-cc-contentdiv {
        max-height: calc(100vh - 270px) !important;
        min-height: 160px !important;
        padding: 4px 14px 12px 14px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Touch-friendly row height in mobile */
    .e-responsive-dialog .e-ccdlg li.e-cclist {
        padding: 10px 6px !important;
        min-height: 44px !important;
    }

    .e-responsive-dialog .e-ccdlg .e-checkbox-wrapper .e-label,
    .e-responsive-dialog .e-ccdlg li.e-cclist .e-label,
    .e-responsive-dialog .e-ccdlg label.e-cc {
        font-size: 0.95rem !important;
    }

    li[id*="columnchooser_selectall"] .e-label:empty::before,
    .e-responsive-dialog .e-cclist:has(.e-selectall) .e-label:empty::before {
        font-size: 0.95rem !important;
    }
}


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   â”€â”€ ALL SYNCFUSION POPUPS, DIALOGS & OVERLAYS IN DARK MODE â”€â”€â”€â”€â”€â”€â”€â”€â”€
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* 1. All Dialogs & Column Chooser Dialog */
body:has(.fl-theme-dark) .e-dialog,
html.fl-theme-dark .e-dialog,
body.fl-theme-dark .e-dialog,
.fl-theme-dark .e-dialog,
body:has(.fl-theme-dark) .e-ccdlg,
html.fl-theme-dark .e-ccdlg,
body.fl-theme-dark .e-ccdlg,
.fl-theme-dark .e-ccdlg {
    background-color: var(--fl-bg-surface, #0F1B32) !important;
    border: 1px solid var(--fl-border, #1C2D4A) !important;
    border-radius: 12px !important;
    color: var(--fl-text-primary, #E2E8F0) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6) !important;
}

body:has(.fl-theme-dark) .e-dialog .e-dlg-header-content,
html.fl-theme-dark .e-dialog .e-dlg-header-content,
body.fl-theme-dark .e-dialog .e-dlg-header-content,
.fl-theme-dark .e-dialog .e-dlg-header-content {
    background-color: var(--fl-bg-surface-2, #142037) !important;
    border-bottom: 1px solid var(--fl-border, #1C2D4A) !important;
    padding: 1rem 1.25rem !important;
}

body:has(.fl-theme-dark) .e-dialog .e-dlg-header,
html.fl-theme-dark .e-dialog .e-dlg-header,
body.fl-theme-dark .e-dialog .e-dlg-header,
.fl-theme-dark .e-dialog .e-dlg-header,
body:has(.fl-theme-dark) .e-ccdlg .e-cc-title,
html.fl-theme-dark .e-ccdlg .e-cc-title,
body.fl-theme-dark .e-ccdlg .e-cc-title,
.fl-theme-dark .e-ccdlg .e-cc-title {
    color: var(--fl-text-primary, #E2E8F0) !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
}

body:has(.fl-theme-dark) .e-dialog .e-dlg-content,
html.fl-theme-dark .e-dialog .e-dlg-content,
body.fl-theme-dark .e-dialog .e-dlg-content,
.fl-theme-dark .e-dialog .e-dlg-content,
body:has(.fl-theme-dark) .e-ccdlg .e-cc-contentdiv,
html.fl-theme-dark .e-ccdlg .e-cc-contentdiv,
body.fl-theme-dark .e-ccdlg .e-cc-contentdiv,
.fl-theme-dark .e-ccdlg .e-cc-contentdiv {
    background-color: var(--fl-bg-surface, #0F1B32) !important;
    color: var(--fl-text-primary, #E2E8F0) !important;
}

/* Column Chooser Search Box */
body:has(.fl-theme-dark) .e-ccdlg .e-cc-searchdiv,
html.fl-theme-dark .e-ccdlg .e-cc-searchdiv,
body.fl-theme-dark .e-ccdlg .e-cc-searchdiv,
.fl-theme-dark .e-ccdlg .e-cc-searchdiv {
    background-color: var(--fl-bg-surface, #0F1B32) !important;
    border-bottom: 1px solid var(--fl-border, #1C2D4A) !important;
    padding: 0.75rem 1rem !important;
}

body:has(.fl-theme-dark) .e-ccdlg .e-input-group,
html.fl-theme-dark .e-ccdlg .e-input-group,
body.fl-theme-dark .e-ccdlg .e-input-group,
.fl-theme-dark .e-ccdlg .e-input-group {
    background-color: var(--fl-bg-surface-2, #142037) !important;
    border: 1px solid var(--fl-border, #1C2D4A) !important;
    border-radius: 8px !important;
    color: var(--fl-text-primary, #E2E8F0) !important;
}

body:has(.fl-theme-dark) .e-ccdlg input.e-input,
html.fl-theme-dark .e-ccdlg input.e-input,
body.fl-theme-dark .e-ccdlg input.e-input,
.fl-theme-dark .e-ccdlg input.e-input {
    color: var(--fl-text-primary, #E2E8F0) !important;
    background: transparent !important;
}

body:has(.fl-theme-dark) .e-ccdlg .e-input-group-icon,
html.fl-theme-dark .e-ccdlg .e-input-group-icon,
body.fl-theme-dark .e-ccdlg .e-input-group-icon,
.fl-theme-dark .e-ccdlg .e-input-group-icon {
    color: var(--fl-text-secondary, #94A3B8) !important;
}

/* Column Chooser Checkbox Items & Treeview */
body:has(.fl-theme-dark) .e-ccdlg .e-cclist,
html.fl-theme-dark .e-ccdlg .e-cclist,
body.fl-theme-dark .e-ccdlg .e-cclist,
.fl-theme-dark .e-ccdlg .e-cclist,
body:has(.fl-theme-dark) .e-ccdlg .e-treeview,
html.fl-theme-dark .e-ccdlg .e-treeview,
body.fl-theme-dark .e-ccdlg .e-treeview,
.fl-theme-dark .e-ccdlg .e-treeview,
body:has(.fl-theme-dark) .e-ccdlg .e-list-parent,
html.fl-theme-dark .e-ccdlg .e-list-parent,
body.fl-theme-dark .e-ccdlg .e-list-parent,
.fl-theme-dark .e-ccdlg .e-list-parent {
    background-color: var(--fl-bg-surface, #0F1B32) !important;
    color: var(--fl-text-primary, #E2E8F0) !important;
}

body:has(.fl-theme-dark) .e-ccdlg .e-list-item,
html.fl-theme-dark .e-ccdlg .e-list-item,
body.fl-theme-dark .e-ccdlg .e-list-item,
.fl-theme-dark .e-ccdlg .e-list-item,
body:has(.fl-theme-dark) .e-ccdlg .e-text-content,
html.fl-theme-dark .e-ccdlg .e-text-content,
body.fl-theme-dark .e-ccdlg .e-text-content,
.fl-theme-dark .e-ccdlg .e-text-content {
    background-color: transparent !important;
    color: var(--fl-text-primary, #E2E8F0) !important;
}

        body:has(.fl-theme-dark) .e-ccdlg .e-list-item:hover > .e-text-content,
        html.fl-theme-dark .e-ccdlg .e-list-item:hover > .e-text-content,
        body.fl-theme-dark .e-ccdlg .e-list-item:hover > .e-text-content,
        .fl-theme-dark .e-ccdlg .e-list-item:hover > .e-text-content {
    background-color: var(--fl-bg-surface-2, #142037) !important;
    border-radius: 6px !important;
}

body:has(.fl-theme-dark) .e-ccdlg .e-list-text,
html.fl-theme-dark .e-ccdlg .e-list-text,
body.fl-theme-dark .e-ccdlg .e-list-text,
.fl-theme-dark .e-ccdlg .e-list-text,
/* Correct Syncfusion Fluent2 column chooser label class */
body:has(.fl-theme-dark) .e-ccdlg label.e-cc,
html.fl-theme-dark .e-ccdlg label.e-cc,
body.fl-theme-dark .e-ccdlg label.e-cc,
.fl-theme-dark .e-ccdlg label.e-cc,
body:has(.fl-theme-dark) .e-ccdlg .e-cc-lab-name,
html.fl-theme-dark .e-ccdlg .e-cc-lab-name,
body.fl-theme-dark .e-ccdlg .e-cc-lab-name,
.fl-theme-dark .e-ccdlg .e-cc-lab-name,
body:has(.fl-theme-dark) .e-ccdlg .e-checkbox-wrapper .e-label,
html.fl-theme-dark .e-ccdlg .e-checkbox-wrapper .e-label,
body.fl-theme-dark .e-ccdlg .e-checkbox-wrapper .e-label,
.fl-theme-dark .e-ccdlg .e-checkbox-wrapper .e-label,
/* General checkbox labels in dark mode */
body:has(.fl-theme-dark) .e-checkbox-wrapper .e-label,
html.fl-theme-dark .e-checkbox-wrapper .e-label,
body.fl-theme-dark .e-checkbox-wrapper .e-label,
.fl-theme-dark .e-checkbox-wrapper .e-label {
    color: var(--fl-text-primary, #E2E8F0) !important;
}

/* Checkbox Frame & Tick in Dark Mode */
body:has(.fl-theme-dark) .e-checkbox-wrapper .e-frame,
html.fl-theme-dark .e-checkbox-wrapper .e-frame,
body.fl-theme-dark .e-checkbox-wrapper .e-frame,
.fl-theme-dark .e-checkbox-wrapper .e-frame {
    /* Brighter border so the unchecked box is clearly visible on dark surfaces */
    background-color: #1A2C48 !important;
    border: 1.5px solid #4A6A96 !important;
    border-radius: 4px !important;
}

/* Hover: lift border colour to the accent blue */
body:has(.fl-theme-dark) .e-checkbox-wrapper:hover .e-frame,
html.fl-theme-dark .e-checkbox-wrapper:hover .e-frame,
body.fl-theme-dark .e-checkbox-wrapper:hover .e-frame,
.fl-theme-dark .e-checkbox-wrapper:hover .e-frame {
    border-color: #60A5FA !important;
    background-color: #1E3356 !important;
}

/* Checked tick icon */
body:has(.fl-theme-dark) .e-checkbox-wrapper .e-check,
html.fl-theme-dark .e-checkbox-wrapper .e-check,
body.fl-theme-dark .e-checkbox-wrapper .e-check,
.fl-theme-dark .e-checkbox-wrapper .e-check {
    background-color: var(--fl-color-blue, #1565FF) !important;
    border-color: var(--fl-color-blue, #1565FF) !important;
    color: #FFFFFF !important;
}

/* Dialog Footer & Action Buttons */
body:has(.fl-theme-dark) .e-dialog .e-footer-content,
html.fl-theme-dark .e-dialog .e-footer-content,
body.fl-theme-dark .e-dialog .e-footer-content,
.fl-theme-dark .e-dialog .e-footer-content {
    background-color: var(--fl-bg-surface-2, #142037) !important;
    border-top: 1px solid var(--fl-border, #1C2D4A) !important;
    padding: 0.85rem 1.25rem !important;
}

body:has(.fl-theme-dark) .e-dialog .e-footer-content .e-btn,
html.fl-theme-dark .e-dialog .e-footer-content .e-btn,
body.fl-theme-dark .e-dialog .e-footer-content .e-btn,
.fl-theme-dark .e-dialog .e-footer-content .e-btn {
    border-radius: 8px !important;
    font-weight: 600 !important;
}

/* 2. Filter Popups, Excel Filter, Column Menu, Context Menu */
body:has(.fl-theme-dark) .e-filter-popup,
html.fl-theme-dark .e-filter-popup,
body.fl-theme-dark .e-filter-popup,
.fl-theme-dark .e-filter-popup,
body:has(.fl-theme-dark) .e-excel-filter,
html.fl-theme-dark .e-excel-filter,
body.fl-theme-dark .e-excel-filter,
.fl-theme-dark .e-excel-filter,
body:has(.fl-theme-dark) .e-columnmenu,
html.fl-theme-dark .e-columnmenu,
body.fl-theme-dark .e-columnmenu,
.fl-theme-dark .e-columnmenu,
body:has(.fl-theme-dark) .e-columnmenu ul,
html.fl-theme-dark .e-columnmenu ul,
body.fl-theme-dark .e-columnmenu ul,
.fl-theme-dark .e-columnmenu ul,
body:has(.fl-theme-dark) .e-contextmenu-wrapper,
html.fl-theme-dark .e-contextmenu-wrapper,
body.fl-theme-dark .e-contextmenu-wrapper,
.fl-theme-dark .e-contextmenu-wrapper,
body:has(.fl-theme-dark) .e-contextmenu-wrapper ul,
html.fl-theme-dark .e-contextmenu-wrapper ul,
body.fl-theme-dark .e-contextmenu-wrapper ul,
.fl-theme-dark .e-contextmenu-wrapper ul,
body:has(.fl-theme-dark) .e-contextmenu,
html.fl-theme-dark .e-contextmenu,
body.fl-theme-dark .e-contextmenu,
.fl-theme-dark .e-contextmenu,
body:has(.fl-theme-dark) .e-menu-parent,
html.fl-theme-dark .e-menu-parent,
body.fl-theme-dark .e-menu-parent,
.fl-theme-dark .e-menu-parent {
    background-color: var(--fl-bg-surface, #0F1B32) !important;
    border: 1px solid var(--fl-border, #1C2D4A) !important;
    border-radius: 10px !important;
    color: var(--fl-text-primary, #E2E8F0) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6) !important;
}

body:has(.fl-theme-dark) .e-columnmenu .e-menu-item,
html.fl-theme-dark .e-columnmenu .e-menu-item,
body.fl-theme-dark .e-columnmenu .e-menu-item,
.fl-theme-dark .e-columnmenu .e-menu-item,
body:has(.fl-theme-dark) .e-contextmenu-wrapper .e-menu-item,
html.fl-theme-dark .e-contextmenu-wrapper .e-menu-item,
body.fl-theme-dark .e-contextmenu-wrapper .e-menu-item,
.fl-theme-dark .e-contextmenu-wrapper .e-menu-item,
body:has(.fl-theme-dark) .e-contextmenu .e-menu-item,
html.fl-theme-dark .e-contextmenu .e-menu-item,
body.fl-theme-dark .e-contextmenu .e-menu-item,
.fl-theme-dark .e-contextmenu .e-menu-item,
body:has(.fl-theme-dark) .e-menu-parent .e-menu-item,
html.fl-theme-dark .e-menu-parent .e-menu-item,
body.fl-theme-dark .e-menu-parent .e-menu-item,
.fl-theme-dark .e-menu-parent .e-menu-item {
    color: var(--fl-text-primary, #E2E8F0) !important;
    background-color: transparent !important;
}

body:has(.fl-theme-dark) .e-columnmenu .e-menu-item .e-menu-text,
html.fl-theme-dark .e-columnmenu .e-menu-item .e-menu-text,
body.fl-theme-dark .e-columnmenu .e-menu-item .e-menu-text,
.fl-theme-dark .e-columnmenu .e-menu-item .e-menu-text,
body:has(.fl-theme-dark) .e-contextmenu .e-menu-item .e-menu-text,
html.fl-theme-dark .e-contextmenu .e-menu-item .e-menu-text,
body.fl-theme-dark .e-contextmenu .e-menu-item .e-menu-text,
.fl-theme-dark .e-contextmenu .e-menu-item .e-menu-text {
    color: var(--fl-text-primary, #E2E8F0) !important;
}

body:has(.fl-theme-dark) .e-columnmenu .e-menu-item .e-menu-icon,
html.fl-theme-dark .e-columnmenu .e-menu-item .e-menu-icon,
body.fl-theme-dark .e-columnmenu .e-menu-item .e-menu-icon,
.fl-theme-dark .e-columnmenu .e-menu-item .e-menu-icon,
body:has(.fl-theme-dark) .e-columnmenu .e-menu-item .e-icons,
html.fl-theme-dark .e-columnmenu .e-menu-item .e-icons,
body.fl-theme-dark .e-columnmenu .e-menu-item .e-icons,
.fl-theme-dark .e-columnmenu .e-menu-item .e-icons,
body:has(.fl-theme-dark) .e-contextmenu .e-menu-item .e-menu-icon,
html.fl-theme-dark .e-contextmenu .e-menu-item .e-menu-icon,
body.fl-theme-dark .e-contextmenu .e-menu-item .e-menu-icon,
.fl-theme-dark .e-contextmenu .e-menu-item .e-menu-icon {
    color: #94A3B8 !important;
}

body:has(.fl-theme-dark) .e-columnmenu .e-menu-item:hover,
html.fl-theme-dark .e-columnmenu .e-menu-item:hover,
body.fl-theme-dark .e-columnmenu .e-menu-item:hover,
.fl-theme-dark .e-columnmenu .e-menu-item:hover,
body:has(.fl-theme-dark) .e-columnmenu .e-menu-item.e-focused,
html.fl-theme-dark .e-columnmenu .e-menu-item.e-focused,
body.fl-theme-dark .e-columnmenu .e-menu-item.e-focused,
.fl-theme-dark .e-columnmenu .e-menu-item.e-focused,
body:has(.fl-theme-dark) .e-columnmenu .e-menu-item.e-selected,
html.fl-theme-dark .e-columnmenu .e-menu-item.e-selected,
body.fl-theme-dark .e-columnmenu .e-menu-item.e-selected,
.fl-theme-dark .e-columnmenu .e-menu-item.e-selected,
body:has(.fl-theme-dark) .e-contextmenu-wrapper .e-menu-item:hover,
html.fl-theme-dark .e-contextmenu-wrapper .e-menu-item:hover,
body.fl-theme-dark .e-contextmenu-wrapper .e-menu-item:hover,
.fl-theme-dark .e-contextmenu-wrapper .e-menu-item:hover,
body:has(.fl-theme-dark) .e-contextmenu-wrapper .e-menu-item.e-focused,
html.fl-theme-dark .e-contextmenu-wrapper .e-menu-item.e-focused,
body.fl-theme-dark .e-contextmenu-wrapper .e-menu-item.e-focused,
.fl-theme-dark .e-contextmenu-wrapper .e-menu-item.e-focused,
body:has(.fl-theme-dark) .e-contextmenu .e-menu-item:hover,
html.fl-theme-dark .e-contextmenu .e-menu-item:hover,
body.fl-theme-dark .e-contextmenu .e-menu-item:hover,
.fl-theme-dark .e-contextmenu .e-menu-item:hover,
body:has(.fl-theme-dark) .e-menu-parent .e-menu-item:hover,
html.fl-theme-dark .e-menu-parent .e-menu-item:hover,
body.fl-theme-dark .e-menu-parent .e-menu-item:hover,
.fl-theme-dark .e-menu-parent .e-menu-item:hover {
    background-color: var(--fl-bg-surface-2, #142037) !important;
    color: #FFFFFF !important;
}

body:has(.fl-theme-dark) .e-columnmenu .e-menu-item:hover .e-menu-text,
html.fl-theme-dark .e-columnmenu .e-menu-item:hover .e-menu-text,
.fl-theme-dark .e-columnmenu .e-menu-item:hover .e-menu-text,
body:has(.fl-theme-dark) .e-columnmenu .e-menu-item:hover .e-menu-icon,
html.fl-theme-dark .e-columnmenu .e-menu-item:hover .e-menu-icon,
.fl-theme-dark .e-columnmenu .e-menu-item:hover .e-menu-icon,
body:has(.fl-theme-dark) .e-columnmenu .e-menu-item.e-focused .e-menu-text,
html.fl-theme-dark .e-columnmenu .e-menu-item.e-focused .e-menu-text,
.fl-theme-dark .e-columnmenu .e-menu-item.e-focused .e-menu-text,
body:has(.fl-theme-dark) .e-columnmenu .e-menu-item.e-focused .e-menu-icon,
html.fl-theme-dark .e-columnmenu .e-menu-item.e-focused .e-menu-icon,
.fl-theme-dark .e-columnmenu .e-menu-item.e-focused .e-menu-icon {
    color: #FFFFFF !important;
}

body:has(.fl-theme-dark) .e-columnmenu .e-separator,
html.fl-theme-dark .e-columnmenu .e-separator,
body.fl-theme-dark .e-columnmenu .e-separator,
.fl-theme-dark .e-columnmenu .e-separator,
body:has(.fl-theme-dark) .e-contextmenu-wrapper .e-separator,
html.fl-theme-dark .e-contextmenu-wrapper .e-separator,
body.fl-theme-dark .e-contextmenu-wrapper .e-separator,
.fl-theme-dark .e-contextmenu-wrapper .e-separator {
    border-bottom: 1px solid var(--fl-border, #1C2D4A) !important;
    background-color: var(--fl-border, #1C2D4A) !important;
}

/* 2a. FL-FLBILL-259: Grid Filter Popups, Checkbox / Excel Filter "Select All" & Search in Dark Mode */
body:has(.fl-theme-dark) .e-filter-popup .e-ftrchk,
html.fl-theme-dark .e-filter-popup .e-ftrchk,
body.fl-theme-dark .e-filter-popup .e-ftrchk,
.fl-theme-dark .e-filter-popup .e-ftrchk,
body:has(.fl-theme-dark) .e-responsive-dialog .e-ftrchk,
html.fl-theme-dark .e-responsive-dialog .e-ftrchk,
body.fl-theme-dark .e-responsive-dialog .e-ftrchk,
.fl-theme-dark .e-responsive-dialog .e-ftrchk,
body:has(.fl-theme-dark) .e-excelfilter .e-ftrchk,
html.fl-theme-dark .e-excelfilter .e-ftrchk,
body.fl-theme-dark .e-excelfilter .e-ftrchk,
.fl-theme-dark .e-excelfilter .e-ftrchk,
body:has(.fl-theme-dark) .e-checkboxfilter .e-ftrchk,
html.fl-theme-dark .e-checkboxfilter .e-ftrchk,
body.fl-theme-dark .e-checkboxfilter .e-ftrchk,
.fl-theme-dark .e-checkboxfilter .e-ftrchk,
body:has(.fl-theme-dark) .e-grid-popup .e-ftrchk,
html.fl-theme-dark .e-grid-popup .e-ftrchk,
body.fl-theme-dark .e-grid-popup .e-ftrchk,
.fl-theme-dark .e-grid-popup .e-ftrchk,
body:has(.fl-theme-dark) .e-searchcontainer .e-ftrchk,
html.fl-theme-dark .e-searchcontainer .e-ftrchk,
body.fl-theme-dark .e-searchcontainer .e-ftrchk,
.fl-theme-dark .e-searchcontainer .e-ftrchk,
body:has(.fl-theme-dark) .e-ftrchk,
html.fl-theme-dark .e-ftrchk,
body.fl-theme-dark .e-ftrchk,
.fl-theme-dark .e-ftrchk {
    background-color: transparent !important;
    background: transparent !important;
    color: var(--fl-text-primary, #E2E8F0) !important;
    border-radius: 6px !important;
}

body:has(.fl-theme-dark) .e-ftrchk.e-chkfocus,
html.fl-theme-dark .e-ftrchk.e-chkfocus,
body.fl-theme-dark .e-ftrchk.e-chkfocus,
.fl-theme-dark .e-ftrchk.e-chkfocus,
body:has(.fl-theme-dark) .e-ftrchk:hover,
html.fl-theme-dark .e-ftrchk:hover,
body.fl-theme-dark .e-ftrchk:hover,
.fl-theme-dark .e-ftrchk:hover,
body:has(.fl-theme-dark) .e-grid-popup .e-ftrchk.e-chkfocus,
html.fl-theme-dark .e-grid-popup .e-ftrchk.e-chkfocus,
body.fl-theme-dark .e-grid-popup .e-ftrchk.e-chkfocus,
.fl-theme-dark .e-grid-popup .e-ftrchk.e-chkfocus,
body:has(.fl-theme-dark) .e-grid .e-ftrchk.e-chkfocus,
html.fl-theme-dark .e-grid .e-ftrchk.e-chkfocus,
body.fl-theme-dark .e-grid .e-ftrchk.e-chkfocus,
.fl-theme-dark .e-grid .e-ftrchk.e-chkfocus {
    background-color: var(--fl-bg-surface-2, #142037) !important;
    background: var(--fl-bg-surface-2, #142037) !important;
    color: #FFFFFF !important;
}

body:has(.fl-theme-dark) .e-ftrchk .e-checkboxfiltertext,
html.fl-theme-dark .e-ftrchk .e-checkboxfiltertext,
body.fl-theme-dark .e-ftrchk .e-checkboxfiltertext,
.fl-theme-dark .e-ftrchk .e-checkboxfiltertext,
body:has(.fl-theme-dark) .e-ftrchk label,
html.fl-theme-dark .e-ftrchk label,
body.fl-theme-dark .e-ftrchk label,
.fl-theme-dark .e-ftrchk label,
body:has(.fl-theme-dark) .e-ftrchk .e-label,
html.fl-theme-dark .e-ftrchk .e-label,
body.fl-theme-dark .e-ftrchk .e-label,
.fl-theme-dark .e-ftrchk .e-label {
    color: var(--fl-text-primary, #E2E8F0) !important;
}

body:has(.fl-theme-dark) .e-filter-popup .e-searchcontainer,
html.fl-theme-dark .e-filter-popup .e-searchcontainer,
body.fl-theme-dark .e-filter-popup .e-searchcontainer,
.fl-theme-dark .e-filter-popup .e-searchcontainer,
body:has(.fl-theme-dark) .e-responsive-dialog .e-searchcontainer,
html.fl-theme-dark .e-responsive-dialog .e-searchcontainer,
body.fl-theme-dark .e-responsive-dialog .e-searchcontainer,
.fl-theme-dark .e-responsive-dialog .e-searchcontainer,
body:has(.fl-theme-dark) .e-checkboxlist,
html.fl-theme-dark .e-checkboxlist,
body.fl-theme-dark .e-checkboxlist,
.fl-theme-dark .e-checkboxlist {
    background-color: var(--fl-bg-surface, #0F1B32) !important;
    background: var(--fl-bg-surface, #0F1B32) !important;
    color: var(--fl-text-primary, #E2E8F0) !important;
}

/* 2b. FL-FLBILL-260: Branch Badge Styling (Light & Dark Theme) */
.fl-branch-badge {
    display: inline-flex !important;
    align-items: center !important;
    max-width: 100% !important;
    background-color: var(--fl-bg-surface-2, #F1F5F9) !important;
    color: var(--fl-text-primary, #0F172A) !important;
    border: 1px solid var(--fl-border, #E2E8F0) !important;
    font-weight: 500 !important;
    border-radius: 6px !important;
    transition: all 0.15s ease !important;
}

.fl-branch-badge i {
    flex-shrink: 0 !important;
    color: var(--fl-color-blue, #2563EB) !important;
}

.fl-branch-text {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body:has(.fl-theme-dark) .fl-branch-badge,
html.fl-theme-dark .fl-branch-badge,
body.fl-theme-dark .fl-branch-badge,
.fl-theme-dark .fl-branch-badge {
    background-color: #142037 !important;
    background: #142037 !important;
    border: 1px solid #1C2D4A !important;
    color: #E2E8F0 !important;
}

body:has(.fl-theme-dark) .fl-branch-badge i,
html.fl-theme-dark .fl-branch-badge i,
body.fl-theme-dark .fl-branch-badge i,
.fl-theme-dark .fl-branch-badge i {
    color: #60A5FA !important;
}


/* 3. All Dropdown, Autocomplete, MultiSelect, Popup Lists */
body:has(.fl-theme-dark) .e-dropdownbase,
html.fl-theme-dark .e-dropdownbase,
body.fl-theme-dark .e-dropdownbase,
.fl-theme-dark .e-dropdownbase,
body:has(.fl-theme-dark) .e-popup.e-ddl,
html.fl-theme-dark .e-popup.e-ddl,
body.fl-theme-dark .e-popup.e-ddl,
.fl-theme-dark .e-popup.e-ddl {
    background-color: var(--fl-bg-surface, #0F1B32) !important;
    border: 1px solid var(--fl-border, #1C2D4A) !important;
    border-radius: 10px !important;
    color: var(--fl-text-primary, #E2E8F0) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6) !important;
}

body:has(.fl-theme-dark) .e-dropdownbase .e-list-item,
html.fl-theme-dark .e-dropdownbase .e-list-item,
body.fl-theme-dark .e-dropdownbase .e-list-item,
.fl-theme-dark .e-dropdownbase .e-list-item {
    color: var(--fl-text-primary, #E2E8F0) !important;
    background-color: transparent !important;
    padding: 0.55rem 0.85rem !important;
}

body:has(.fl-theme-dark) .e-dropdownbase .e-list-item:hover,
html.fl-theme-dark .e-dropdownbase .e-list-item:hover,
body.fl-theme-dark .e-dropdownbase .e-list-item:hover,
.fl-theme-dark .e-dropdownbase .e-list-item:hover,
body:has(.fl-theme-dark) .e-dropdownbase .e-list-item.e-active,
html.fl-theme-dark .e-dropdownbase .e-list-item.e-active,
body.fl-theme-dark .e-dropdownbase .e-list-item.e-active,
.fl-theme-dark .e-dropdownbase .e-list-item.e-active {
    background-color: var(--fl-bg-surface-2, #142037) !important;
    color: var(--fl-color-blue, #60A5FA) !important;
    font-weight: 600 !important;
}

/* 4. Calendar, DatePicker & TimePicker Popups */
.e-calendar .e-footer-container,
.e-datepicker .e-footer-container,
.e-datetimepicker .e-footer-container {
    background-color: var(--fl-bg-surface, #FFFFFF);
    border-top: 1px solid var(--fl-border-soft, #E2E8F0);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.e-calendar .e-footer-container .e-btn,
.e-calendar .e-footer-container .e-today,
.e-datepicker .e-footer-container .e-btn,
.e-datepicker .e-footer-container .e-today {
    color: var(--fl-color-blue, #1565FF);
    font-weight: 600;
}

body:has(.fl-theme-dark) .e-calendar,
html.fl-theme-dark .e-calendar,
body.fl-theme-dark .e-calendar,
.fl-theme-dark .e-calendar,
[data-theme="dark"] .e-calendar,
body:has(.fl-theme-dark) .e-datepicker.e-popup,
html.fl-theme-dark .e-datepicker.e-popup,
body.fl-theme-dark .e-datepicker.e-popup,
.fl-theme-dark .e-datepicker.e-popup,
[data-theme="dark"] .e-datepicker.e-popup,
body:has(.fl-theme-dark) .e-datepicker.e-popup-wrapper,
html.fl-theme-dark .e-datepicker.e-popup-wrapper,
body.fl-theme-dark .e-datepicker.e-popup-wrapper,
.fl-theme-dark .e-datepicker.e-popup-wrapper,
[data-theme="dark"] .e-datepicker.e-popup-wrapper,
body:has(.fl-theme-dark) .e-datepick-mob-popup-wrap .e-datepicker,
html.fl-theme-dark .e-datepick-mob-popup-wrap .e-datepicker,
body.fl-theme-dark .e-datepick-mob-popup-wrap .e-datepicker,
.fl-theme-dark .e-datepick-mob-popup-wrap .e-datepicker,
[data-theme="dark"] .e-datepick-mob-popup-wrap .e-datepicker,
body:has(.fl-theme-dark) .e-calendar.e-device,
html.fl-theme-dark .e-calendar.e-device,
body.fl-theme-dark .e-calendar.e-device,
.fl-theme-dark .e-calendar.e-device,
[data-theme="dark"] .e-calendar.e-device,
body:has(.fl-theme-dark) .e-datetimepicker.e-popup,
html.fl-theme-dark .e-datetimepicker.e-popup,
body.fl-theme-dark .e-datetimepicker.e-popup,
.fl-theme-dark .e-datetimepicker.e-popup,
[data-theme="dark"] .e-datetimepicker.e-popup,
body:has(.fl-theme-dark) .e-daterangepicker.e-popup,
html.fl-theme-dark .e-daterangepicker.e-popup,
body.fl-theme-dark .e-daterangepicker.e-popup,
.fl-theme-dark .e-daterangepicker.e-popup,
[data-theme="dark"] .e-daterangepicker.e-popup {
    background-color: var(--fl-bg-surface, #0F1B32) !important;
    background: var(--fl-bg-surface, #0F1B32) !important;
    border: 1px solid var(--fl-border, #1C2D4A) !important;
    color: var(--fl-text-primary, #E2E8F0) !important;
    border-radius: 12px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75) !important;
    overflow: hidden !important;
}

/* Mobile DatePicker Top Header (Year & Day/Month Banner) in Dark Theme */
body:has(.fl-theme-dark) .e-model-header,
html.fl-theme-dark .e-model-header,
body.fl-theme-dark .e-model-header,
.fl-theme-dark .e-model-header,
[data-theme="dark"] .e-model-header,
body:has(.fl-theme-dark) .e-datepicker .e-model-header,
html.fl-theme-dark .e-datepicker .e-model-header,
body.fl-theme-dark .e-datepicker .e-model-header,
.fl-theme-dark .e-datepicker .e-model-header,
[data-theme="dark"] .e-datepicker .e-model-header,
body:has(.fl-theme-dark) .e-calendar .e-model-header,
html.fl-theme-dark .e-calendar .e-model-header,
body.fl-theme-dark .e-calendar .e-model-header,
.fl-theme-dark .e-calendar .e-model-header,
[data-theme="dark"] .e-calendar .e-model-header,
body:has(.fl-theme-dark) .e-calendar.e-device .e-model-header,
html.fl-theme-dark .e-calendar.e-device .e-model-header,
body.fl-theme-dark .e-calendar.e-device .e-model-header,
.fl-theme-dark .e-calendar.e-device .e-model-header,
[data-theme="dark"] .e-calendar.e-device .e-model-header {
    background: var(--fl-bg-surface-2, #142037) !important;
    background-color: var(--fl-bg-surface-2, #142037) !important;
    color: var(--fl-text-primary, #F8FAFC) !important;
    border-bottom: 1px solid var(--fl-border, #1C2D4A) !important;
}

body:has(.fl-theme-dark) .e-model-header .e-model-year,
html.fl-theme-dark .e-model-header .e-model-year,
body.fl-theme-dark .e-model-header .e-model-year,
.fl-theme-dark .e-model-header .e-model-year,
[data-theme="dark"] .e-model-header .e-model-year {
    color: #94A3B8 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

body:has(.fl-theme-dark) .e-model-header .e-model-day,
html.fl-theme-dark .e-model-header .e-model-day,
body.fl-theme-dark .e-model-header .e-model-day,
.fl-theme-dark .e-model-header .e-model-day,
[data-theme="dark"] .e-model-header .e-model-day,
body:has(.fl-theme-dark) .e-model-header .e-model-month,
html.fl-theme-dark .e-model-header .e-model-month,
body.fl-theme-dark .e-model-header .e-model-month,
.fl-theme-dark .e-model-header .e-model-month,
[data-theme="dark"] .e-model-header .e-model-month,
body:has(.fl-theme-dark) .e-model-header .e-day-wrapper,
html.fl-theme-dark .e-model-header .e-day-wrapper,
body.fl-theme-dark .e-model-header .e-day-wrapper,
.fl-theme-dark .e-model-header .e-day-wrapper,
[data-theme="dark"] .e-model-header .e-day-wrapper {
    color: #F8FAFC !important;
    font-size: 20px !important;
    font-weight: 700 !important;
}

body:has(.fl-theme-dark) .e-model-header .e-popup-close,
html.fl-theme-dark .e-model-header .e-popup-close,
body.fl-theme-dark .e-model-header .e-popup-close,
.fl-theme-dark .e-model-header .e-popup-close,
[data-theme="dark"] .e-model-header .e-popup-close {
    color: #F8FAFC !important;
}

body:has(.fl-theme-dark) .e-model-header .e-today,
html.fl-theme-dark .e-model-header .e-today,
body.fl-theme-dark .e-model-header .e-today,
.fl-theme-dark .e-model-header .e-today,
[data-theme="dark"] .e-model-header .e-today {
    color: #38BDF8 !important;
}

/* Mobile Modal Backdrop in Dark Theme */
body:has(.fl-theme-dark) .e-datepicker.e-date-modal,
html.fl-theme-dark .e-datepicker.e-date-modal,
body.fl-theme-dark .e-datepicker.e-date-modal,
.fl-theme-dark .e-datepicker.e-date-modal,
[data-theme="dark"] .e-datepicker.e-date-modal {
    background-color: rgba(0, 0, 0, 0.75) !important;
    opacity: 0.75 !important;
}

/* DatePicker Input Wrapper & Elements across all module pages - Dark Theme */
html.fl-theme-dark .e-date-wrapper,
body.fl-theme-dark .e-date-wrapper,
.fl-theme-dark .e-date-wrapper,
html[data-theme="dark"] .e-date-wrapper,
body[data-theme="dark"] .e-date-wrapper,
html.fl-theme-dark .e-date-container,
body.fl-theme-dark .e-date-container,
.fl-theme-dark .e-date-container,
html[data-theme="dark"] .e-date-container,
body[data-theme="dark"] .e-date-container,
html.fl-theme-dark .fl-report-datepicker,
body.fl-theme-dark .fl-report-datepicker,
.fl-theme-dark .fl-report-datepicker,
html[data-theme="dark"] .fl-report-datepicker,
body[data-theme="dark"] .fl-report-datepicker {
    background-color: #0A1329 !important;
    background: #0A1329 !important;
    border: 1px solid #1C2D4A !important;
    color: #FFFFFF !important;
    border-radius: 8px !important;
}

html.fl-theme-dark .e-date-wrapper input.e-input,
body.fl-theme-dark .e-date-wrapper input.e-input,
.fl-theme-dark .e-date-wrapper input.e-input,
html[data-theme="dark"] .e-date-wrapper input.e-input,
body[data-theme="dark"] .e-date-wrapper input.e-input,
html.fl-theme-dark .fl-report-datepicker input.e-input,
body.fl-theme-dark .fl-report-datepicker input.e-input,
.fl-theme-dark .fl-report-datepicker input.e-input,
html[data-theme="dark"] .fl-report-datepicker input.e-input,
body[data-theme="dark"] .fl-report-datepicker input.e-input {
    background-color: transparent !important;
    background: transparent !important;
    color: #FFFFFF !important;
}

html.fl-theme-dark .e-date-wrapper .e-date-icon,
body.fl-theme-dark .e-date-wrapper .e-date-icon,
.fl-theme-dark .e-date-wrapper .e-date-icon,
html[data-theme="dark"] .e-date-wrapper .e-date-icon,
body[data-theme="dark"] .e-date-wrapper .e-date-icon,
html.fl-theme-dark .fl-report-datepicker .e-date-icon,
body.fl-theme-dark .fl-report-datepicker .e-date-icon,
.fl-theme-dark .fl-report-datepicker .e-date-icon,
html[data-theme="dark"] .fl-report-datepicker .e-date-icon,
body[data-theme="dark"] .fl-report-datepicker .e-date-icon {
    color: #94A3B8 !important;
}

html.fl-theme-dark .e-date-wrapper:hover,
body.fl-theme-dark .e-date-wrapper:hover,
.fl-theme-dark .e-date-wrapper:hover,
html[data-theme="dark"] .e-date-wrapper:hover,
body[data-theme="dark"] .e-date-wrapper:hover,
html.fl-theme-dark .fl-report-datepicker:hover,
body.fl-theme-dark .fl-report-datepicker:hover,
.fl-theme-dark .fl-report-datepicker:hover,
html[data-theme="dark"] .fl-report-datepicker:hover,
body[data-theme="dark"] .fl-report-datepicker:hover {
    border-color: #38BDF8 !important;
}

html.fl-theme-dark .e-date-wrapper.e-input-focus,
body.fl-theme-dark .e-date-wrapper.e-input-focus,
.fl-theme-dark .e-date-wrapper.e-input-focus,
html[data-theme="dark"] .e-date-wrapper.e-input-focus,
body[data-theme="dark"] .e-date-wrapper.e-input-focus,
html.fl-theme-dark .fl-report-datepicker.e-input-focus,
body.fl-theme-dark .fl-report-datepicker.e-input-focus,
.fl-theme-dark .fl-report-datepicker.e-input-focus,
html[data-theme="dark"] .fl-report-datepicker.e-input-focus,
body[data-theme="dark"] .fl-report-datepicker.e-input-focus {
    border-color: #1565FF !important;
    box-shadow: 0 0 0 1px #1565FF !important;
}

/* DatePicker Input Wrapper & Elements across all module pages - Light Theme */
html.fl-theme-light .e-date-wrapper,
body.fl-theme-light .e-date-wrapper,
.fl-theme-light .e-date-wrapper,
html[data-theme="light"] .e-date-wrapper,
body[data-theme="light"] .e-date-wrapper,
html.fl-theme-light .e-date-container,
body.fl-theme-light .e-date-container,
.fl-theme-light .e-date-container,
html[data-theme="light"] .e-date-container,
body[data-theme="light"] .e-date-container,
html.fl-theme-light .fl-report-datepicker,
body.fl-theme-light .fl-report-datepicker,
.fl-theme-light .fl-report-datepicker,
html[data-theme="light"] .fl-report-datepicker,
body[data-theme="light"] .fl-report-datepicker {
    background-color: #FFFFFF !important;
    background: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    color: #0F172A !important;
    border-radius: 8px !important;
}

html.fl-theme-light .e-date-wrapper input.e-input,
body.fl-theme-light .e-date-wrapper input.e-input,
.fl-theme-light .e-date-wrapper input.e-input,
html[data-theme="light"] .e-date-wrapper input.e-input,
body[data-theme="light"] .e-date-wrapper input.e-input,
html.fl-theme-light .fl-report-datepicker input.e-input,
body.fl-theme-light .fl-report-datepicker input.e-input,
.fl-theme-light .fl-report-datepicker input.e-input,
html[data-theme="light"] .fl-report-datepicker input.e-input,
body[data-theme="light"] .fl-report-datepicker input.e-input {
    background-color: transparent !important;
    background: transparent !important;
    color: #0F172A !important;
}

html.fl-theme-light .e-date-wrapper .e-date-icon,
body.fl-theme-light .e-date-wrapper .e-date-icon,
.fl-theme-light .e-date-wrapper .e-date-icon,
html[data-theme="light"] .e-date-wrapper .e-date-icon,
body[data-theme="light"] .e-date-wrapper .e-date-icon,
html.fl-theme-light .fl-report-datepicker .e-date-icon,
body.fl-theme-light .fl-report-datepicker .e-date-icon,
.fl-theme-light .fl-report-datepicker .e-date-icon,
html[data-theme="light"] .fl-report-datepicker .e-date-icon,
body[data-theme="light"] .fl-report-datepicker .e-date-icon {
    color: #64748B !important;
}

html.fl-theme-light .e-date-wrapper:hover,
body.fl-theme-light .e-date-wrapper:hover,
.fl-theme-light .e-date-wrapper:hover,
html[data-theme="light"] .e-date-wrapper:hover,
body[data-theme="light"] .e-date-wrapper:hover,
html.fl-theme-light .fl-report-datepicker:hover,
body.fl-theme-light .fl-report-datepicker:hover,
.fl-theme-light .fl-report-datepicker:hover,
html[data-theme="light"] .fl-report-datepicker:hover,
body[data-theme="light"] .fl-report-datepicker:hover {
    border-color: #94A3B8 !important;
}

html.fl-theme-light .e-date-wrapper.e-input-focus,
body.fl-theme-light .e-date-wrapper.e-input-focus,
.fl-theme-light .e-date-wrapper.e-input-focus,
html[data-theme="light"] .e-date-wrapper.e-input-focus,
body[data-theme="light"] .e-date-wrapper.e-input-focus,
html.fl-theme-light .fl-report-datepicker.e-input-focus,
body.fl-theme-light .fl-report-datepicker.e-input-focus,
.fl-theme-light .fl-report-datepicker.e-input-focus,
html[data-theme="light"] .fl-report-datepicker.e-input-focus,
body[data-theme="light"] .fl-report-datepicker.e-input-focus {
    border-color: #1565FF !important;
    box-shadow: 0 0 0 1px #1565FF !important;
}

body:has(.fl-theme-dark) .e-calendar .e-header,
html.fl-theme-dark .e-calendar .e-header,
body.fl-theme-dark .e-calendar .e-header,
.fl-theme-dark .e-calendar .e-header {
    background-color: var(--fl-bg-surface-2, #142037) !important;
    border-bottom: 1px solid var(--fl-border, #1C2D4A) !important;
    color: var(--fl-text-primary, #E2E8F0) !important;
}

body:has(.fl-theme-dark) .e-calendar .e-header .e-title,
html.fl-theme-dark .e-calendar .e-header .e-title,
body.fl-theme-dark .e-calendar .e-header .e-title,
.fl-theme-dark .e-calendar .e-header .e-title {
    color: #F8FAFC !important;
    font-weight: 600 !important;
    cursor: pointer;
}

body:has(.fl-theme-dark) .e-calendar .e-header .e-title:hover,
html.fl-theme-dark .e-calendar .e-header .e-title:hover,
body.fl-theme-dark .e-calendar .e-header .e-title:hover,
.fl-theme-dark .e-calendar .e-header .e-title:hover {
    color: #60A5FA !important;
}

/* Header Prev / Next Navigation Icons & Buttons */
body:has(.fl-theme-dark) .e-calendar .e-header .e-prev,
html.fl-theme-dark .e-calendar .e-header .e-prev,
body.fl-theme-dark .e-calendar .e-header .e-prev,
.fl-theme-dark .e-calendar .e-header .e-prev,
body:has(.fl-theme-dark) .e-calendar .e-header .e-next,
html.fl-theme-dark .e-calendar .e-header .e-next,
body.fl-theme-dark .e-calendar .e-header .e-next,
.fl-theme-dark .e-calendar .e-header .e-next,
body:has(.fl-theme-dark) .e-calendar .e-header button,
html.fl-theme-dark .e-calendar .e-header button,
body.fl-theme-dark .e-calendar .e-header button,
.fl-theme-dark .e-calendar .e-header button,
body:has(.fl-theme-dark) .e-calendar .e-header .e-icon-container button,
html.fl-theme-dark .e-calendar .e-header .e-icon-container button,
body.fl-theme-dark .e-calendar .e-header .e-icon-container button,
.fl-theme-dark .e-calendar .e-header .e-icon-container button {
    color: #F1F5F9 !important;
    background-color: transparent !important;
    border: none !important;
}

body:has(.fl-theme-dark) .e-calendar .e-header .e-prev .e-icons,
html.fl-theme-dark .e-calendar .e-header .e-prev .e-icons,
body.fl-theme-dark .e-calendar .e-header .e-prev .e-icons,
.fl-theme-dark .e-calendar .e-header .e-prev .e-icons,
body:has(.fl-theme-dark) .e-calendar .e-header .e-next .e-icons,
html.fl-theme-dark .e-calendar .e-header .e-next .e-icons,
body.fl-theme-dark .e-calendar .e-header .e-next .e-icons,
.fl-theme-dark .e-calendar .e-header .e-next .e-icons,
body:has(.fl-theme-dark) .e-calendar .e-header .e-prev-icon,
html.fl-theme-dark .e-calendar .e-header .e-prev-icon,
body.fl-theme-dark .e-calendar .e-header .e-prev-icon,
.fl-theme-dark .e-calendar .e-header .e-prev-icon,
body:has(.fl-theme-dark) .e-calendar .e-header .e-next-icon,
html.fl-theme-dark .e-calendar .e-header .e-next-icon,
body.fl-theme-dark .e-calendar .e-header .e-next-icon,
.fl-theme-dark .e-calendar .e-header .e-next-icon,
body:has(.fl-theme-dark) .e-calendar .e-header .e-icon-container span,
html.fl-theme-dark .e-calendar .e-header .e-icon-container span,
body.fl-theme-dark .e-calendar .e-header .e-icon-container span,
.fl-theme-dark .e-calendar .e-header .e-icon-container span {
    color: #F1F5F9 !important;
}

body:has(.fl-theme-dark) .e-calendar .e-header .e-prev:hover,
html.fl-theme-dark .e-calendar .e-header .e-prev:hover,
body.fl-theme-dark .e-calendar .e-header .e-prev:hover,
.fl-theme-dark .e-calendar .e-header .e-prev:hover,
body:has(.fl-theme-dark) .e-calendar .e-header .e-next:hover,
html.fl-theme-dark .e-calendar .e-header .e-next:hover,
body.fl-theme-dark .e-calendar .e-header .e-next:hover,
.fl-theme-dark .e-calendar .e-header .e-next:hover,
body:has(.fl-theme-dark) .e-calendar .e-header button:hover,
html.fl-theme-dark .e-calendar .e-header button:hover,
body.fl-theme-dark .e-calendar .e-header button:hover,
.fl-theme-dark .e-calendar .e-header button:hover {
    background-color: rgba(255, 255, 255, 0.12) !important;
    border-radius: 6px !important;
}

body:has(.fl-theme-dark) .e-calendar .e-header .e-prev.e-disabled,
html.fl-theme-dark .e-calendar .e-header .e-prev.e-disabled,
body.fl-theme-dark .e-calendar .e-header .e-prev.e-disabled,
.fl-theme-dark .e-calendar .e-header .e-prev.e-disabled,
body:has(.fl-theme-dark) .e-calendar .e-header .e-next.e-disabled,
html.fl-theme-dark .e-calendar .e-header .e-next.e-disabled,
body.fl-theme-dark .e-calendar .e-header .e-next.e-disabled,
.fl-theme-dark .e-calendar .e-header .e-next.e-disabled,
body:has(.fl-theme-dark) .e-calendar .e-header .e-disabled .e-icons,
html.fl-theme-dark .e-calendar .e-header .e-disabled .e-icons,
body.fl-theme-dark .e-calendar .e-header .e-disabled .e-icons,
.fl-theme-dark .e-calendar .e-header .e-disabled .e-icons {
    color: #475569 !important;
    opacity: 0.35 !important;
    cursor: not-allowed !important;
}

/* Day of week column headers (S M T W T F S) */
body:has(.fl-theme-dark) .e-calendar .e-content th,
html.fl-theme-dark .e-calendar .e-content th,
body.fl-theme-dark .e-calendar .e-content th,
.fl-theme-dark .e-calendar .e-content th,
body:has(.fl-theme-dark) .e-calendar .e-content th span,
html.fl-theme-dark .e-calendar .e-content th span,
body.fl-theme-dark .e-calendar .e-content th span,
.fl-theme-dark .e-calendar .e-content th span {
    color: #94A3B8 !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
}

/* Date numbers in calendar grid */
body:has(.fl-theme-dark) .e-calendar .e-content td.e-cell,
html.fl-theme-dark .e-calendar .e-content td.e-cell,
body.fl-theme-dark .e-calendar .e-content td.e-cell,
.fl-theme-dark .e-calendar .e-content td.e-cell,
body:has(.fl-theme-dark) .e-calendar .e-content td.e-cell span.e-day,
html.fl-theme-dark .e-calendar .e-content td.e-cell span.e-day,
body.fl-theme-dark .e-calendar .e-content td.e-cell span.e-day,
.fl-theme-dark .e-calendar .e-content td.e-cell span.e-day,
body:has(.fl-theme-dark) .e-calendar .e-content span.e-day,
html.fl-theme-dark .e-calendar .e-content span.e-day,
body.fl-theme-dark .e-calendar .e-content span.e-day,
.fl-theme-dark .e-calendar .e-content span.e-day,
body:has(.fl-theme-dark) .e-calendar .e-content td.e-weekend span.e-day,
html.fl-theme-dark .e-calendar .e-content td.e-weekend span.e-day,
body.fl-theme-dark .e-calendar .e-content td.e-weekend span.e-day,
.fl-theme-dark .e-calendar .e-content td.e-weekend span.e-day {
    color: #F8FAFC !important;
    font-weight: 500 !important;
}

/* Hovered date cell */
body:has(.fl-theme-dark) .e-calendar .e-content td.e-cell:hover,
html.fl-theme-dark .e-calendar .e-content td.e-cell:hover,
body.fl-theme-dark .e-calendar .e-content td.e-cell:hover,
.fl-theme-dark .e-calendar .e-content td.e-cell:hover {
    background-color: var(--fl-bg-surface-2, #142037) !important;
    border-radius: 8px !important;
}

body:has(.fl-theme-dark) .e-calendar .e-content td.e-cell:hover span.e-day,
html.fl-theme-dark .e-calendar .e-content td.e-cell:hover span.e-day,
body.fl-theme-dark .e-calendar .e-content td.e-cell:hover span.e-day,
.fl-theme-dark .e-calendar .e-content td.e-cell:hover span.e-day {
    background-color: rgba(59, 130, 246, 0.25) !important;
    color: #FFFFFF !important;
    border-radius: 8px !important;
}

/* Selected date cell */
body:has(.fl-theme-dark) .e-calendar .e-content td.e-selected span.e-day,
html.fl-theme-dark .e-calendar .e-content td.e-selected span.e-day,
body.fl-theme-dark .e-calendar .e-content td.e-selected span.e-day,
.fl-theme-dark .e-calendar .e-content td.e-selected span.e-day {
    background-color: var(--fl-color-blue, #1565FF) !important;
    color: #FFFFFF !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    border: none !important;
}

body:has(.fl-theme-dark) .e-calendar .e-content td.e-selected:hover span.e-day,
html.fl-theme-dark .e-calendar .e-content td.e-selected:hover span.e-day,
body.fl-theme-dark .e-calendar .e-content td.e-selected:hover span.e-day,
.fl-theme-dark .e-calendar .e-content td.e-selected:hover span.e-day {
    background-color: #2563EB !important;
    color: #FFFFFF !important;
}

/* Calendar & DatePicker Footer (Today Container) in Dark Theme */
body:has(.fl-theme-dark) .e-calendar .e-footer-container,
html.fl-theme-dark .e-calendar .e-footer-container,
body.fl-theme-dark .e-calendar .e-footer-container,
.fl-theme-dark .e-calendar .e-footer-container,
body:has(.fl-theme-dark) .e-datepicker .e-footer-container,
html.fl-theme-dark .e-datepicker .e-footer-container,
body.fl-theme-dark .e-datepicker .e-footer-container,
.fl-theme-dark .e-datepicker .e-footer-container,
body:has(.fl-theme-dark) .e-datetimepicker .e-footer-container,
html.fl-theme-dark .e-datetimepicker .e-footer-container,
body.fl-theme-dark .e-datetimepicker .e-footer-container,
.fl-theme-dark .e-datetimepicker .e-footer-container,
body:has(.fl-theme-dark) .e-daterangepicker .e-footer,
html.fl-theme-dark .e-daterangepicker .e-footer,
body.fl-theme-dark .e-daterangepicker .e-footer,
.fl-theme-dark .e-daterangepicker .e-footer {
    background-color: var(--fl-bg-surface, #0F1B32) !important;
    background: var(--fl-bg-surface, #0F1B32) !important;
    border-top: 1px solid var(--fl-border, #1C2D4A) !important;
    border-bottom-left-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
}

body:has(.fl-theme-dark) .e-calendar .e-footer-container .e-btn,
html.fl-theme-dark .e-calendar .e-footer-container .e-btn,
body.fl-theme-dark .e-calendar .e-footer-container .e-btn,
.fl-theme-dark .e-calendar .e-footer-container .e-btn,
body:has(.fl-theme-dark) .e-calendar .e-footer-container .e-today,
html.fl-theme-dark .e-calendar .e-footer-container .e-today,
body.fl-theme-dark .e-calendar .e-footer-container .e-today,
.fl-theme-dark .e-calendar .e-footer-container .e-today,
body:has(.fl-theme-dark) .e-datepicker .e-footer-container .e-btn,
html.fl-theme-dark .e-datepicker .e-footer-container .e-btn,
body.fl-theme-dark .e-datepicker .e-footer-container .e-btn,
.fl-theme-dark .e-datepicker .e-footer-container .e-btn,
body:has(.fl-theme-dark) .e-datepicker .e-footer-container .e-today,
html.fl-theme-dark .e-datepicker .e-footer-container .e-today,
body.fl-theme-dark .e-datepicker .e-footer-container .e-today,
.fl-theme-dark .e-datepicker .e-footer-container .e-today {
    background-color: transparent !important;
    background: transparent !important;
    color: #38BDF8 !important;
    font-weight: 600 !important;
    border: none !important;
    box-shadow: none !important;
}

body:has(.fl-theme-dark) .e-calendar .e-footer-container .e-btn:hover,
html.fl-theme-dark .e-calendar .e-footer-container .e-btn:hover,
body.fl-theme-dark .e-calendar .e-footer-container .e-btn:hover,
.fl-theme-dark .e-calendar .e-footer-container .e-btn:hover,
body:has(.fl-theme-dark) .e-calendar .e-footer-container .e-today:hover,
html.fl-theme-dark .e-calendar .e-footer-container .e-today:hover,
body.fl-theme-dark .e-calendar .e-footer-container .e-today:hover,
.fl-theme-dark .e-calendar .e-footer-container .e-today:hover,
body:has(.fl-theme-dark) .e-datepicker .e-footer-container .e-btn:hover,
html.fl-theme-dark .e-datepicker .e-footer-container .e-btn:hover,
body.fl-theme-dark .e-datepicker .e-footer-container .e-btn:hover,
.fl-theme-dark .e-datepicker .e-footer-container .e-btn:hover,
body:has(.fl-theme-dark) .e-datepicker .e-footer-container .e-today:hover,
html.fl-theme-dark .e-datepicker .e-footer-container .e-today:hover,
body.fl-theme-dark .e-datepicker .e-footer-container .e-today:hover,
.fl-theme-dark .e-datepicker .e-footer-container .e-today:hover {
    background-color: rgba(56, 189, 248, 0.15) !important;
    background: rgba(56, 189, 248, 0.15) !important;
    color: #7DD3FC !important;
    border-radius: 6px !important;
}

body:has(.fl-theme-dark) .e-calendar .e-footer-container .e-btn:disabled,
body:has(.fl-theme-dark) .e-calendar .e-footer-container .e-btn.e-disabled,
html.fl-theme-dark .e-calendar .e-footer-container .e-btn:disabled,
html.fl-theme-dark .e-calendar .e-footer-container .e-btn.e-disabled,
body.fl-theme-dark .e-calendar .e-footer-container .e-btn:disabled,
body.fl-theme-dark .e-calendar .e-footer-container .e-btn.e-disabled,
.fl-theme-dark .e-calendar .e-footer-container .e-btn:disabled,
.fl-theme-dark .e-calendar .e-footer-container .e-btn.e-disabled,
body:has(.fl-theme-dark) .e-datepicker .e-footer-container .e-btn:disabled,
body:has(.fl-theme-dark) .e-datepicker .e-footer-container .e-btn.e-disabled,
html.fl-theme-dark .e-datepicker .e-footer-container .e-btn:disabled,
html.fl-theme-dark .e-datepicker .e-footer-container .e-btn.e-disabled,
body.fl-theme-dark .e-datepicker .e-footer-container .e-btn:disabled,
body.fl-theme-dark .e-datepicker .e-footer-container .e-btn.e-disabled,
.fl-theme-dark .e-datepicker .e-footer-container .e-btn:disabled,
.fl-theme-dark .e-datepicker .e-footer-container .e-btn.e-disabled {
    background-color: transparent !important;
    background: transparent !important;
    color: #64748B !important;
    cursor: not-allowed !important;
    opacity: 0.5 !important;
}

/* Today cell indicator when not selected */
body:has(.fl-theme-dark) .e-calendar .e-content td.e-today:not(.e-selected) span.e-day,
html.fl-theme-dark .e-calendar .e-content td.e-today:not(.e-selected) span.e-day,
body.fl-theme-dark .e-calendar .e-content td.e-today:not(.e-selected) span.e-day,
.fl-theme-dark .e-calendar .e-content td.e-today:not(.e-selected) span.e-day {
    background-color: rgba(56, 189, 248, 0.15) !important;
    border: 1px solid #38BDF8 !important;
    color: #38BDF8 !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
}

/* Focused date indicator when not selected */
body:has(.fl-theme-dark) .e-calendar .e-content td.e-focused-date:not(.e-selected) span.e-day,
html.fl-theme-dark .e-calendar .e-content td.e-focused-date:not(.e-selected) span.e-day,
body.fl-theme-dark .e-calendar .e-content td.e-focused-date:not(.e-selected) span.e-day,
.fl-theme-dark .e-calendar .e-content td.e-focused-date:not(.e-selected) span.e-day,
body:has(.fl-theme-dark) .e-calendar .e-content td.e-state-focus:not(.e-selected) span.e-day,
html.fl-theme-dark .e-calendar .e-content td.e-state-focus:not(.e-selected) span.e-day,
body.fl-theme-dark .e-calendar .e-content td.e-state-focus:not(.e-selected) span.e-day,
.fl-theme-dark .e-calendar .e-content td.e-state-focus:not(.e-selected) span.e-day {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid #60A5FA !important;
    color: #FFFFFF !important;
    border-radius: 8px !important;
}

/* Other month days in Dark Theme */
body:has(.fl-theme-dark) .e-calendar .e-content td.e-other-month span.e-day,
html.fl-theme-dark .e-calendar .e-content td.e-other-month span.e-day,
body.fl-theme-dark .e-calendar .e-content td.e-other-month span.e-day,
.fl-theme-dark .e-calendar .e-content td.e-other-month span.e-day,
body:has(.fl-theme-dark) .e-calendar .e-content td.e-other-month.e-cell,
html.fl-theme-dark .e-calendar .e-content td.e-other-month.e-cell,
body.fl-theme-dark .e-calendar .e-content td.e-other-month.e-cell,
.fl-theme-dark .e-calendar .e-content td.e-other-month.e-cell {
    color: #64748B !important;
    opacity: 0.75 !important;
}

/* Year & Decade view in Dark Theme */
body:has(.fl-theme-dark) .e-calendar .e-content.e-year td.e-cell,
html.fl-theme-dark .e-calendar .e-content.e-year td.e-cell,
body.fl-theme-dark .e-calendar .e-content.e-year td.e-cell,
.fl-theme-dark .e-calendar .e-content.e-year td.e-cell,
body:has(.fl-theme-dark) .e-calendar .e-content.e-year td.e-cell span,
html.fl-theme-dark .e-calendar .e-content.e-year td.e-cell span,
body.fl-theme-dark .e-calendar .e-content.e-year td.e-cell span,
.fl-theme-dark .e-calendar .e-content.e-year td.e-cell span,
body:has(.fl-theme-dark) .e-calendar .e-content.e-decade td.e-cell,
html.fl-theme-dark .e-calendar .e-content.e-decade td.e-cell,
body.fl-theme-dark .e-calendar .e-content.e-decade td.e-cell,
.fl-theme-dark .e-calendar .e-content.e-decade td.e-cell,
body:has(.fl-theme-dark) .e-calendar .e-content.e-decade td.e-cell span,
html.fl-theme-dark .e-calendar .e-content.e-decade td.e-cell span,
body.fl-theme-dark .e-calendar .e-content.e-decade td.e-cell span,
.fl-theme-dark .e-calendar .e-content.e-decade td.e-cell span {
    color: #F8FAFC !important;
}

body:has(.fl-theme-dark) .e-calendar .e-content.e-year td.e-cell:hover,
html.fl-theme-dark .e-calendar .e-content.e-year td.e-cell:hover,
body.fl-theme-dark .e-calendar .e-content.e-year td.e-cell:hover,
.fl-theme-dark .e-calendar .e-content.e-year td.e-cell:hover,
body:has(.fl-theme-dark) .e-calendar .e-content.e-decade td.e-cell:hover,
html.fl-theme-dark .e-calendar .e-content.e-decade td.e-cell:hover,
body.fl-theme-dark .e-calendar .e-content.e-decade td.e-cell:hover,
.fl-theme-dark .e-calendar .e-content.e-decade td.e-cell:hover {
    background-color: var(--fl-bg-surface-2, #142037) !important;
    border-radius: 8px !important;
}

body:has(.fl-theme-dark) .e-calendar .e-content.e-year td.e-cell:hover span,
html.fl-theme-dark .e-calendar .e-content.e-year td.e-cell:hover span,
body.fl-theme-dark .e-calendar .e-content.e-year td.e-cell:hover span,
.fl-theme-dark .e-calendar .e-content.e-year td.e-cell:hover span,
body:has(.fl-theme-dark) .e-calendar .e-content.e-decade td.e-cell:hover span,
html.fl-theme-dark .e-calendar .e-content.e-decade td.e-cell:hover span,
body.fl-theme-dark .e-calendar .e-content.e-decade td.e-cell:hover span,
.fl-theme-dark .e-calendar .e-content.e-decade td.e-cell:hover span {
    color: #FFFFFF !important;
}

body:has(.fl-theme-dark) .e-calendar .e-content.e-year td.e-selected span,
html.fl-theme-dark .e-calendar .e-content.e-year td.e-selected span,
body.fl-theme-dark .e-calendar .e-content.e-year td.e-selected span,
.fl-theme-dark .e-calendar .e-content.e-year td.e-selected span,
body:has(.fl-theme-dark) .e-calendar .e-content.e-decade td.e-selected span,
html.fl-theme-dark .e-calendar .e-content.e-decade td.e-selected span,
body.fl-theme-dark .e-calendar .e-content.e-decade td.e-selected span,
.fl-theme-dark .e-calendar .e-content.e-decade td.e-selected span {
    background-color: var(--fl-color-blue, #1565FF) !important;
    color: #FFFFFF !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
}

/* â”€â”€ Breadcrumb Navigation â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.breadcrumb-trail {
    margin-bottom: 0.5rem;
}

.breadcrumb-link {
    color: var(--fl-color-blue, #1565FF);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: color 0.15s ease;
}

.breadcrumb-link:hover {
    color: var(--fl-sky, #23A8FF);
    text-decoration: underline;
}

/* â”€â”€ Detail Inspection Rows â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-info-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    padding: 0.75rem 0 !important;
    border-bottom: 1px solid var(--fl-border-soft, #EEF2F7) !important;
    font-size: 0.9rem !important;
    font-family: var(--fl-font-ui, 'Inter', sans-serif) !important;
    gap: 0.85rem !important;
}

.fl-info-row:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.fl-info-row:first-child {
    padding-top: 0 !important;
}

.fl-info-label {
    color: var(--fl-text-secondary, #475569) !important;
    font-weight: 500 !important;
    font-size: 0.85rem !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    line-height: 1.35 !important;
    flex: 0 1 auto !important;
    max-width: 58% !important;
    display: inline-flex !important;
    align-items: flex-start !important;
    gap: 0.45rem !important;
}

.fl-info-label i,
.fl-info-label .e-icons {
    flex-shrink: 0 !important;
    margin-top: 2px !important;
    line-height: 1 !important;
    font-size: 0.95rem !important;
}

.fl-info-val {
    color: var(--fl-text-primary, #0F172A) !important;
    font-weight: 500 !important;
    font-size: 0.88rem !important;
    text-align: right !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    line-height: 1.35 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.fl-code-badge {
    background: var(--fl-bg-surface-2);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: var(--fl-color-blue);
    font-size: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
}

.fl-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1565FF 0%, #23A8FF 100%);
    color: #FFFFFF;
    font-size: 1.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(21, 101, 255, 0.25);
    flex-shrink: 0;
}

/* â”€â”€ Universal Table Light/Dark Mode Contrast & Theme Safety â”€â”€ */
.table,
.fl-changes-table {
    --bs-table-bg: transparent !important;
    --bs-table-accent-bg: transparent !important;
    --bs-table-striped-bg: transparent !important;
    color: var(--fl-text-primary) !important;
}

    .table > :not(caption) > * > *,
    .fl-changes-table > :not(caption) > * > * {
    background-color: transparent !important;
    color: var(--fl-text-primary) !important;
    border-bottom-color: var(--fl-border-soft, rgba(255, 255, 255, 0.08)) !important;
}

.fl-theme-light .table thead.table-light,
.fl-theme-light .table tfoot.table-light {
    background-color: var(--fl-bg-surface-2, #F8FAFC) !important;
    color: var(--fl-text-secondary, #475569) !important;
}

.fl-theme-dark .table thead.table-light,
.fl-theme-dark .table tfoot.table-light,
.fl-theme-dark .table thead,
.fl-theme-dark .table tfoot {
    background-color: var(--fl-bg-surface-2, #142037) !important;
    color: var(--fl-text-secondary, #94A3B8) !important;
    border-color: var(--fl-border, #1C2D4A) !important;
}

.fl-theme-dark .table-hover > tbody > tr:hover > * {
    background-color: rgba(255, 255, 255, 0.03) !important;
}

.fl-theme-dark .bg-light {
    background-color: var(--fl-bg-surface-2, #142037) !important;
    color: var(--fl-text-primary, #F8FAFC) !important;
    border-color: var(--fl-border, #1C2D4A) !important;
}

.fl-theme-light .bg-light {
    background-color: var(--fl-bg-surface-2, #F8FAFC) !important;
    color: var(--fl-text-primary, #0F172A) !important;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   GLOBAL SYNCFUSION PAGER COMPACT STYLING (Rows per page | Count | Nav)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.e-grid .e-gridpager,
.e-gridpager.e-pager,
.e-fluent2 .e-grid .e-gridpager,
.e-fluent2 .e-pager,
.e-pager {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 1.5rem !important;
    padding: 0.75rem 1.25rem !important;
    border-top: 1px solid var(--fl-border) !important;
    background: transparent !important;
    width: 100% !important;
    box-sizing: border-box !important;
    float: none !important;
    clear: both !important;
}

/* 1. Page Size Selector (Rows per page: [10 v]) */
.e-grid .e-gridpager .e-pagesizes,
.e-pager .e-pagesizes,
.e-fluent2 .e-pager .e-pagesizes {
    order: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    flex-direction: row-reverse !important;
}

.e-pager .e-pagesizes .e-pagerdropdown,
.e-fluent2 .e-pager .e-pagesizes .e-pagerdropdown {
    margin: 0 !important;
    width: auto !important;
    min-width: 65px !important;
    float: none !important;
}

.e-pager .e-pagesizes .e-pagerdropdown .e-input-group,
.e-fluent2 .e-pager .e-pagesizes .e-pagerdropdown .e-input-group {
    background: var(--fl-bg-surface-2, #F1F5F9) !important;
    border: 1px solid var(--fl-border) !important;
    border-radius: 6px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 6px !important;
}

.fl-theme-dark .e-pager .e-pagesizes .e-pagerdropdown .e-input-group,
body.fl-theme-dark .e-pager .e-pagesizes .e-pagerdropdown .e-input-group {
    background: #142037 !important;
    border-color: #1C2D4A !important;
}

.e-pager .e-pagesizes .e-pagesize,
.e-fluent2 .e-pager .e-pagesizes .e-pagesize {
    font-family: var(--fl-font-ui, 'Inter', sans-serif) !important;
    font-size: 0 !important;
    color: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    position: relative !important;
    float: none !important;
}

.e-pager .e-pagesizes .e-pagesize::before,
.e-fluent2 .e-pager .e-pagesizes .e-pagesize::before {
    content: "Rows per page:" !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    color: var(--fl-text-secondary) !important;
    font-family: var(--fl-font-ui, 'Inter', sans-serif) !important;
    white-space: nowrap !important;
}

/* 2. Message Bar (1-10 of 127) */
.e-grid .e-gridpager .e-parentmsgbar,
.e-pager .e-parentmsgbar,
.e-fluent2 .e-pager .e-parentmsgbar {
    order: 2 !important;
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

.e-pager .e-pagermessage,
.e-fluent2 .e-pager .e-pagermessage {
    font-family: var(--fl-font-ui, 'Inter', sans-serif) !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    color: var(--fl-text-secondary) !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
}

/* 3. Navigation Controls (|< < > >|) */
.e-grid .e-gridpager .e-pagercontainer,
.e-pager .e-pagercontainer,
.e-fluent2 .e-pager .e-pagercontainer {
    order: 3 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    float: none !important;
    box-shadow: none !important;
}

/* HIDE NUMERIC CONTAINER (1, 2, 3, 4, 5, ..., current page, next page, prev page indicators) */
.e-gridpager .e-numericcontainer,
.e-pager .e-numericcontainer,
.e-fluent2 .e-pager .e-numericcontainer,
.e-pagercontainer .e-numericcontainer,
.e-numericcontainer,
.e-pager .e-numericitem,
.e-pager .e-currentitem,
.e-pager .e-np,
.e-pager .e-pp {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    font-size: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Navigation Icons First, Prev, Next, Last */
.e-pager .e-pagercontainer a,
.e-pager .e-pagercontainer div.e-first,
.e-pager .e-pagercontainer div.e-prev,
.e-pager .e-pagercontainer div.e-next,
.e-pager .e-pagercontainer div.e-last,
.e-fluent2 .e-pager .e-pagercontainer a,
.e-fluent2 .e-pager .e-pagercontainer div {
    border: none !important;
    background: transparent !important;
    border-radius: 6px !important;
    color: var(--fl-text-secondary) !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.15s ease !important;
    text-decoration: none !important;
    margin: 0 !important;
    font-size: 13px !important;
    box-shadow: none !important;
    outline: none !important;
}

.e-pager .e-pagercontainer a:hover:not(.e-disable):not(.e-disabled),
.e-pager .e-pagercontainer div:hover:not(.e-disable):not(.e-disabled) {
    background: rgba(21, 101, 255, 0.12) !important;
    color: var(--fl-color-blue, #1565FF) !important;
}

.fl-theme-dark .e-pager .e-pagercontainer a:hover:not(.e-disable):not(.e-disabled),
.fl-theme-dark .e-pager .e-pagercontainer div:hover:not(.e-disable):not(.e-disabled),
body.fl-theme-dark .e-pager .e-pagercontainer a:hover:not(.e-disable):not(.e-disabled),
body.fl-theme-dark .e-pager .e-pagercontainer div:hover:not(.e-disable):not(.e-disabled) {
    background: rgba(96, 165, 250, 0.15) !important;
    color: #60A5FA !important;
}

.e-pager .e-pagercontainer .e-disable,
.e-pager .e-pagercontainer .e-disabled,
.e-pager .e-pagercontainer a.e-disable,
.e-pager .e-pagercontainer a.e-disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* â”€â”€ Custom Dedicated Pager Layout (.fl-custom-pager) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.e-grid .e-gridpager,
.e-grid .e-pager,
.e-pager {
    width: 100% !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
}

.fl-custom-pager {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 1.5rem !important;
    padding: 0.85rem 1.25rem !important;
    border-top: 1px solid var(--fl-border) !important;
    background: transparent !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.fl-pager-meta-group {
    display: inline-flex;
    align-items: center;
    gap: 1.25rem;
    flex-shrink: 0;
}

.fl-pager-sizer {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.fl-pager-label {
    font-family: var(--fl-font-ui, 'Inter', sans-serif);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--fl-text-secondary);
    white-space: nowrap;
}

.fl-pager-dropdown .e-input-group {
    height: 32px !important;
    min-height: 32px !important;
    width: 78px !important;
    border-radius: 6px !important;
    background: var(--fl-bg-surface-2) !important;
    border: 1px solid var(--fl-border) !important;
}

.fl-pager-dropdown input.e-input,
.fl-pager-dropdown .e-input-group input.e-input,
.fl-pager-dropdown .e-dropdownbase .e-list-item {
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    padding-left: 10px !important;
    padding-right: 4px !important;
    text-overflow: clip !important;
}

.fl-pager-info {
    font-family: var(--fl-font-ui, 'Inter', sans-serif);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--fl-text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}

.fl-pager-nav-wrap {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

/* â”€â”€ Grouped Inseparable Navigation Bar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-pager-nav {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--fl-border);
    border-radius: 6px;
    overflow: hidden;
    background: var(--fl-bg-surface);
    white-space: nowrap;
    flex-shrink: 0;
}

.fl-pager-nav-btn {
    width: 32px;
    height: 30px;
    border: none;
    border-right: 1px solid var(--fl-border);
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--fl-text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
    outline: none;
}

.fl-pager-nav-btn:last-child {
    border-right: none;
}

.fl-pager-nav-btn svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fl-pager-nav-btn:hover:not(:disabled) {
    background: var(--fl-bg-surface-2);
    color: var(--fl-text-primary);
}

.fl-pager-nav-btn:disabled,
.fl-pager-nav-btn.disabled {
    opacity: 0.25;
    cursor: not-allowed;
    pointer-events: none;
}

/* â”€â”€ Responsive Screen Adjustments (Guaranteed Consistency) â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 768px) {
    .fl-custom-pager {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0.75rem !important;
        padding: 0.85rem 1rem !important;
        width: 100% !important;
    }

    /* Top Row: Rows per page & counter ALWAYS together on Row 1 */
    .fl-pager-meta-group {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        max-width: 340px !important;
        margin: 0 auto !important;
        gap: 0.75rem !important;
    }

    /* Bottom Row: Control buttons ALWAYS centered alone on Row 2 */
    .fl-pager-nav-wrap {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 auto !important;
        text-align: center !important;
    }

    /* â”€â”€ Universal Responsive Page Headers (Title on Top, Buttons Below) â”€â”€ */
    .fl-header-title-bar,
    .fl-form-page-header .fl-header-title-bar {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.85rem !important;
    }

    .fl-header-title-bar .fl-page-title {
        width: 100% !important;
        font-size: 1.4rem !important;
        line-height: 1.25 !important;
        margin: 0 !important;
    }

    .fl-header-actions {
        display: flex !important;
        width: 100% !important;
        gap: 0.5rem !important;
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
    }

    .fl-header-actions .e-btn,
    .fl-header-actions .btn {
        white-space: nowrap !important;
        min-width: fit-content !important;
        flex: 1 1 auto !important;
        height: 38px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0.45rem 0.85rem !important;
    }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   â”€â”€ SKELETON LOADER & SHIMMER SYSTEM â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

@keyframes fl-shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.fl-shimmer {
    background: linear-gradient(90deg, #E2E8F0 25%, #F8FAFC 50%, #E2E8F0 75%) !important;
    background-size: 200% 100% !important;
    animation: fl-shimmer 1.5s infinite ease-in-out !important;
    border-radius: 6px;
    display: inline-block;
}

html.fl-theme-dark .fl-shimmer,
body.fl-theme-dark .fl-shimmer,
.fl-theme-dark .fl-shimmer,
.fl-theme-dark .fl-page-skeleton .fl-shimmer,
html.fl-theme-dark .fl-page-skeleton .fl-shimmer,
.fl-theme-dark [class*="fl-sk-"],
html.fl-theme-dark [class*="fl-sk-"] {
    background: linear-gradient(90deg, #131F37 25%, #1E3050 50%, #131F37 75%) !important;
    background-size: 200% 100% !important;
}

/* â”€â”€ Full Application Loading Skeleton Layout â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-skeleton-app-shell {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: var(--fl-bg-app, #F8FAFC);
}

.fl-skeleton-sidebar {
    width: 260px;
    height: 100vh;
    background: var(--fl-bg-sidebar, #061B55);
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    flex-shrink: 0;
    border-right: 1px solid var(--fl-sidebar-border, rgba(255, 255, 255, 0.08));
}

.fl-sk-logo {
    width: 140px;
    height: 38px;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08) 25%, rgba(255, 255, 255, 0.18) 50%, rgba(255, 255, 255, 0.08) 75%) !important;
    background-size: 200% 100% !important;
    animation: fl-shimmer 1.5s infinite ease-in-out !important;
}

.fl-skeleton-nav {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1rem;
}

.fl-skeleton-nav-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.5rem 0.6rem;
    border-radius: 8px;
}

.fl-sk-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08) 25%, rgba(255, 255, 255, 0.18) 50%, rgba(255, 255, 255, 0.08) 75%) !important;
    background-size: 200% 100% !important;
    animation: fl-shimmer 1.5s infinite ease-in-out !important;
}

.fl-sk-nav-text {
    height: 14px;
    width: 110px;
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08) 25%, rgba(255, 255, 255, 0.18) 50%, rgba(255, 255, 255, 0.08) 75%) !important;
    background-size: 200% 100% !important;
    animation: fl-shimmer 1.5s infinite ease-in-out !important;
}

.fl-skeleton-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.fl-sk-avatar {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08) 25%, rgba(255, 255, 255, 0.18) 50%, rgba(255, 255, 255, 0.08) 75%) !important;
    background-size: 200% 100% !important;
    animation: fl-shimmer 1.5s infinite ease-in-out !important;
}

.fl-skeleton-user-meta {
    flex: 1;
}

.fl-skeleton-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100vh;
    overflow-y: auto;
}

.fl-skeleton-topbar {
    height: 72px;
    background: var(--fl-bg-topbar, #FFFFFF);
    border-bottom: 1px solid var(--fl-border, #E2E8F0);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.75rem;
    flex-shrink: 0;
}

.fl-sk-btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.fl-sk-search {
    width: 280px;
    height: 38px;
    border-radius: 8px;
}

.fl-sk-pill {
    width: 90px;
    height: 36px;
    border-radius: 8px;
}

.fl-sk-icon-round {
    width: 36px;
    height: 36px;
    border-radius: 99px;
}

.fl-sk-avatar-sm {
    width: 38px;
    height: 38px;
    border-radius: 99px;
}

.fl-skeleton-page-content {
    padding: 1.75rem;
    flex: 1;
}

.fl-skeleton-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.fl-sk-breadcrumb {
    width: 140px;
    height: 14px;
}

.fl-sk-title {
    width: 220px;
    height: 28px;
    border-radius: 6px;
}

.fl-sk-btn {
    width: 90px;
    height: 38px;
    border-radius: 8px;
}

.fl-sk-btn-primary {
    width: 150px;
    height: 38px;
    border-radius: 8px;
    background: linear-gradient(90deg, #1565FF 25%, #60A5FA 50%, #1565FF 75%) !important;
    background-size: 200% 100% !important;
    animation: fl-shimmer 1.5s infinite ease-in-out !important;
}

html.fl-theme-dark .fl-sk-btn-primary,
.fl-theme-dark .fl-sk-btn-primary {
    background: linear-gradient(90deg, #1E40AF 25%, #3B82F6 50%, #1E40AF 75%) !important;
}

.fl-skeleton-card {
    background: var(--fl-bg-surface, #FFFFFF);
    border: 1px solid var(--fl-border, #E2E8F0);
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

html.fl-theme-dark .fl-skeleton-card,
body.fl-theme-dark .fl-skeleton-card,
.fl-theme-dark .fl-skeleton-card {
    background: #0E1726 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
}

.fl-sk-text {
    height: 14px;
    border-radius: 4px;
}

.fl-sk-kpi-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.fl-sk-stat {
    width: 65%;
    height: 26px;
    border-radius: 6px;
}

.fl-sk-subtext {
    height: 12px;
    border-radius: 4px;
}

.fl-sk-table-search {
    width: 240px;
    height: 36px;
    border-radius: 8px;
}

.fl-sk-btn-sm {
    width: 80px;
    height: 36px;
    border-radius: 8px;
}

.fl-skeleton-table-header {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--fl-border, #E2E8F0);
}

html.fl-theme-dark .fl-skeleton-table-header,
.fl-theme-dark .fl-skeleton-table-header {
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

.fl-sk-th {
    height: 16px;
    border-radius: 4px;
}

.fl-skeleton-table-row {
    display: flex;
    gap: 1rem;
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--fl-border-soft, #EEF2F7);
    align-items: center;
}

html.fl-theme-dark .fl-skeleton-table-row,
.fl-theme-dark .fl-skeleton-table-row {
    border-bottom-color: rgba(255, 255, 255, 0.05) !important;
}

.fl-sk-td {
    height: 14px;
    border-radius: 4px;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   â”€â”€ MODERN BLAZOR RECONNECT MODAL & DIALOG â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

#components-reconnect-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    z-index: 999999 !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

#components-reconnect-modal.components-reconnect-show,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected {
    display: flex !important;
}

.components-reconnect-hide {
    display: none !important;
}

.fl-reconnect-dialog {
    background: var(--fl-bg-surface, #FFFFFF) !important;
    color: var(--fl-text-primary, #0F172A) !important;
    padding: 2.25rem 2.5rem !important;
    border-radius: 20px !important;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25) !important;
    border: 1px solid var(--fl-border, #E2E8F0) !important;
    max-width: 440px !important;
    width: 90% !important;
    text-align: center !important;
    animation: fl-modal-pop 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes fl-modal-pop {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(12px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.components-reconnecting,
.components-reconnect-failed,
.components-reconnect-rejected {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnecting {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

#components-reconnect-modal.components-reconnect-rejected .components-reconnect-rejected {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.fl-reconnect-icon-pulse {
    width: 52px;
    height: 52px;
    border-radius: 99px;
    background: rgba(21, 101, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.fl-reconnect-icon-failed {
    width: 52px;
    height: 52px;
    border-radius: 99px;
    background: rgba(239, 68, 68, 0.12);
    color: #EF4444;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.fl-reconnect-icon-rejected {
    width: 52px;
    height: 52px;
    border-radius: 99px;
    background: rgba(245, 158, 11, 0.12);
    color: #F59E0B;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.fl-reconnect-title {
    font-family: var(--fl-font-display, 'Plus Jakarta Sans', sans-serif);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.fl-reconnect-desc {
    font-size: 0.9rem;
    color: var(--fl-text-secondary, #64748B);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.fl-reconnect-bar {
    width: 100%;
    height: 6px;
    border-radius: 99px;
    margin-top: 0.5rem;
}

.fl-reconnect-btn {
    font-weight: 600;
    padding: 0.6rem 1.75rem;
    border-radius: 10px;
    min-width: 150px;
}

/* â”€â”€ Syncfusion SfDialog Reconnect & Offline Component Styling â”€â”€â”€ */
.fl-reconnect-sf-dialog.e-dialog {
    border-radius: 16px !important;
    overflow: hidden !important;
    border: 1px solid var(--fl-border, #1C2D4A) !important;
    background-color: var(--fl-bg-surface, #0F1B32) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75) !important;
}

.fl-reconnect-sf-dialog .e-dlg-content {
    background-color: var(--fl-bg-surface, #0F1B32) !important;
    padding: 1.5rem !important;
}

.fl-reconnect-dialog-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}




/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   UNIVERSAL STICKY SAVE HEADER (FOR ALL ADD & EDIT FORMS)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.fl-form-page-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 50 !important;
    background: var(--fl-bg-app, #F8FAFC) !important;
    padding: 1rem 0.75rem !important;
    margin-top: 0 !important;
    margin-bottom: 1.25rem !important;
    border-bottom: 1px solid var(--fl-border-soft, #EEF2F7) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

.fl-theme-dark .fl-form-page-header {
    background: var(--fl-bg-app, #080F20) !important;
    border-bottom-color: var(--fl-border, #1C2D4A) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45) !important;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   UNIVERSAL RESPONSIVE DIALOG & MODAL SYSTEM (MOBILE & DESKTOP)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.e-dialog.e-popup,
.fl-dialog-dark.e-dialog,
.custom-dialog.e-dialog {
    max-width: 94vw !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    border: 1px solid var(--fl-border, #E2E8F0) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18) !important;
}

/* Ensure standard dialogs adapt width gracefully for localized strings */
.e-dialog.e-popup:not(.fl-review-dialog):not(.fl-ocr-dialog):not(.fl-voucher-dialog):not(.fl-ocr-modal):not(.fl-ocr-review-modal):not(.fl-category-dialog):not(.fl-service-category-dialog):not(.fl-formula-dialog):not(.fl-attachment-dialog):not(.fl-receipt-preview-dialog):not(.fl-report-preview-dialog):not(.fl-product-search-dialog),
.fl-dialog-dark.e-dialog:not(.fl-review-dialog):not(.fl-ocr-dialog):not(.fl-voucher-dialog):not(.fl-ocr-modal):not(.fl-ocr-review-modal):not(.fl-category-dialog):not(.fl-service-category-dialog):not(.fl-formula-dialog):not(.fl-attachment-dialog):not(.fl-receipt-preview-dialog):not(.fl-report-preview-dialog):not(.fl-product-search-dialog),
.custom-dialog.e-dialog:not(.fl-review-dialog):not(.fl-ocr-dialog):not(.fl-voucher-dialog):not(.fl-ocr-modal):not(.fl-ocr-review-modal):not(.fl-category-dialog):not(.fl-service-category-dialog):not(.fl-formula-dialog):not(.fl-attachment-dialog):not(.fl-receipt-preview-dialog):not(.fl-report-preview-dialog):not(.fl-product-search-dialog) {
    min-width: min(480px, 94vw) !important;
    max-width: min(560px, 94vw) !important;
}

.e-dialog .e-dlg-header-content {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 0.85rem !important;
    padding: 1.15rem 1.25rem !important;
    border-bottom: 1px solid var(--fl-border, #E2E8F0) !important;
    position: relative !important;
    min-height: 52px !important;
    box-sizing: border-box !important;
}

.e-dialog .e-dlg-header-content .e-dlg-header,
.e-dialog .e-dlg-header {
    display: flex !important;
    align-items: flex-start !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    color: var(--fl-text-primary, #0F172A) !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
}

.e-dialog .e-dlg-header-content .e-dlg-closeicon-btn,
.e-dialog .e-dlg-closeicon-btn {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    float: none !important;
    margin: 2px 0 0 auto !important;
    order: 2 !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    color: var(--fl-text-secondary, #64748B) !important;
    flex-shrink: 0 !important;
    flex: 0 0 auto !important;
    box-shadow: none !important;
}

.fl-dialog-header {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.65rem !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: var(--fl-text-primary, #0F172A) !important;
    min-width: 0 !important;
    width: 100% !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    line-height: 1.35 !important;
}

.fl-dialog-header i,
.fl-dialog-header .e-icons {
    flex-shrink: 0 !important;
    margin-top: 2px !important;
    line-height: 1 !important;
}

.fl-dialog-header span,
.fl-dialog-header .fw-bold {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    line-height: 1.35 !important;
}

.e-dialog .e-dlg-content {
    padding: 1.25rem !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    line-height: 1.45 !important;
}

.fl-dialog-body p {
    margin-bottom: 0.5rem;
    color: var(--fl-text-primary, #0F172A);
    font-size: 0.95rem;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    line-height: 1.45 !important;
}

.fl-dialog-body .fl-dialog-subtext {
    font-size: 0.85rem;
    color: var(--fl-text-secondary, #64748B);
    margin-bottom: 0;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    line-height: 1.4 !important;
}

.e-dialog .e-footer-content {
    padding: 0.85rem 1.25rem !important;
    border-top: 1px solid var(--fl-border, #E2E8F0) !important;
    background: var(--fl-bg-surface-2, #F8FAFC) !important;
    display: block !important;
}

.fl-dialog-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
    width: 100% !important;
}

.fl-dialog-footer .e-btn {
    min-height: 38px !important;
    height: auto !important;
    padding: 0.45rem 1.25rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: normal !important;
    word-break: normal !important;
    line-height: 1.3 !important;
    margin: 0 !important;
}

/* â”€â”€ Standard Delete Dialog Content Styling â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.custom-dialog .fl-delete-dialog-body {
    display: flex;
    gap: 1.15rem;
    align-items: flex-start;
    padding: 0.5rem 0;
}

.custom-dialog .fl-delete-icon-box {
    font-size: 2.15rem;
    color: var(--fl-color-amber, #D97706);
    line-height: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.custom-dialog .fl-delete-info {
    flex: 1 1 auto;
    min-width: 0;
}

.custom-dialog .fl-delete-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--fl-text-primary, #0F172A);
    margin-bottom: 0.35rem;
    line-height: 1.35;
}

.custom-dialog .fl-delete-item-desc {
    color: var(--fl-text-secondary, #475569);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.custom-dialog .fl-delete-note {
    color: var(--fl-text-muted, #64748B);
    display: block;
    line-height: 1.4;
    font-size: 0.85rem;
}

html.fl-theme-dark .custom-dialog .fl-delete-title,
.fl-theme-dark .custom-dialog .fl-delete-title {
    color: #FFFFFF !important;
}

html.fl-theme-dark .custom-dialog .fl-delete-item-desc,
.fl-theme-dark .custom-dialog .fl-delete-item-desc {
    color: #CBD5E1 !important;
}

html.fl-theme-dark .custom-dialog .fl-delete-note,
.fl-theme-dark .custom-dialog .fl-delete-note {
    color: #94A3B8 !important;
}

html.fl-theme-dark .custom-dialog .fl-delete-icon-box,
.fl-theme-dark .custom-dialog .fl-delete-icon-box {
    color: #F59E0B !important;
}

@media (max-width: 768px) {

    .e-dialog.e-popup:not(.fl-review-dialog):not(.fl-ocr-dialog):not(.fl-voucher-dialog):not(.fl-ocr-modal):not(.fl-ocr-review-modal):not(.fl-receipt-preview-dialog):not(.fl-report-preview-dialog):not(.fl-product-search-dialog):not(.fl-category-dialog):not(.fl-service-category-dialog):not(.fl-formula-dialog):not(.fl-attachment-dialog):not(.e-adaptive):not(.e-responsive-dialog):not(.e-adaptivedialog):not(.e-sortdialog):not(.e-filterdialog):not(.e-colchooserdialog),
    .fl-dialog-dark.e-dialog:not(.fl-review-dialog):not(.fl-ocr-dialog):not(.fl-voucher-dialog):not(.fl-ocr-modal):not(.fl-ocr-review-modal):not(.fl-receipt-preview-dialog):not(.fl-report-preview-dialog):not(.fl-product-search-dialog):not(.fl-category-dialog):not(.fl-service-category-dialog):not(.fl-formula-dialog):not(.fl-attachment-dialog):not(.e-adaptive):not(.e-responsive-dialog):not(.e-adaptivedialog):not(.e-sortdialog):not(.e-filterdialog):not(.e-colchooserdialog),
    .custom-dialog.e-dialog:not(.fl-review-dialog):not(.fl-ocr-dialog):not(.fl-voucher-dialog):not(.fl-ocr-modal):not(.fl-ocr-review-modal):not(.fl-receipt-preview-dialog):not(.fl-report-preview-dialog):not(.fl-product-search-dialog):not(.fl-category-dialog):not(.fl-service-category-dialog):not(.fl-formula-dialog):not(.fl-attachment-dialog):not(.e-adaptive):not(.e-responsive-dialog):not(.e-adaptivedialog):not(.e-sortdialog):not(.e-filterdialog):not(.e-colchooserdialog) {
        width: 90vw !important;
        max-width: 400px !important;
        margin: 0 auto !important;
        border-radius: 14px !important;
    }

    .fl-review-dialog.e-dialog,
    .fl-ocr-dialog.e-dialog,
    .fl-voucher-dialog.e-dialog,
    .fl-ocr-modal.e-dialog,
    .fl-ocr-review-modal.e-dialog {
        width: 96vw !important;
        max-width: 96vw !important;
        margin: 0 auto !important;
        border-radius: 14px !important;
    }

    .e-dialog:not(.e-adaptive):not(.e-responsive-dialog):not(.e-adaptivedialog):not(.e-sortdialog):not(.e-filterdialog):not(.e-colchooserdialog):not(.fl-category-dialog) .e-dlg-header-content {
        padding: 1rem 1.15rem !important;
    }

    .e-dialog:not(.e-adaptive):not(.e-responsive-dialog):not(.e-adaptivedialog):not(.e-sortdialog):not(.e-filterdialog):not(.e-colchooserdialog):not(.fl-category-dialog) .e-dlg-content {
        padding: 1.15rem !important;
        max-height: 70vh !important;
        overflow-y: auto !important;
    }

    .e-dialog:not(.e-adaptive):not(.e-responsive-dialog):not(.e-adaptivedialog):not(.e-sortdialog):not(.e-filterdialog):not(.e-colchooserdialog):not(.fl-category-dialog) .e-footer-content {
        padding: 0.75rem 1rem !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: stretch !important;
        gap: 0.65rem !important;
        box-sizing: border-box !important;
    }

    .fl-dialog-footer {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: stretch !important;
        gap: 0.65rem !important;
        width: 100% !important;
    }

    .e-dialog .e-footer-content .e-btn,
    .fl-dialog-footer .e-btn {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        height: 42px !important;
        margin: 0 !important;
        font-size: 0.9rem !important;
    }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   OVERALL MOBILE RESPONSIVE SYSTEM (BREAKPOINT STRUCTURE)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€â”€ Tablet / Small Laptop: 769px to 1024px â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 1024px) {
    .fl-sticky-sidebar {
        position: static !important;
        margin-top: 1.25rem;
    }

    .fl-stats-row {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* â”€â”€â”€ Mobile Landscape & Portrait: <= 768px â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 768px) {

    /* Form & List Containers */
    .fl-form-page-container,
    .fl-quotation-form-container,
    .fl-customer-detail-container,
    .fl-customer-page-container,
    .fl-products-container,
    .fl-customers-container,
    .fl-quotations-container,
    .fl-users-container,
    .fl-roles-container,
    .fl-audit-container,
    .fl-profile-page-container {
        padding: 0.85rem 0.65rem 5.5rem 0.65rem !important;
    }

    /* Page Header & Actions */
    .fl-page-header,
    .fl-header-title-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.85rem !important;
    }

    .fl-header-actions,
    .fl-action-btn-row {
        width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }

    .fl-header-actions .e-btn,
    .fl-action-btn-row .e-btn,
    .fl-save-btn,
    .fl-cancel-btn {
        flex: 1 1 calc(50% - 0.25rem) !important;
        min-width: 120px !important;
        height: 42px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0.9rem !important;
        font-weight: 600 !important;
    }

    /* Toolbar Filter Cards */
    .fl-toolbar-card {
        padding: 0.85rem !important;
    }

    .fl-toolbar-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
        width: 100% !important;
    }

    .fl-search-wrap,
    .fl-filter-wrap,
    .fl-refresh-btn-wrap {
        width: 100% !important;
        min-width: 100% !important;
        flex: 1 1 100% !important;
    }

    .fl-refresh-btn-wrap .e-btn,
    .fl-refresh-btn {
        width: 100% !important;
        height: 40px !important;
        justify-content: center !important;
    }

    /* Touch Controls */
    .e-control-wrapper.e-ddl,
    .e-control-wrapper.e-combobox,
    .e-control-wrapper.e-autocomplete,
    .e-control-wrapper.e-datepicker,
    .e-control-wrapper.e-daterangepicker,
    .e-control-wrapper.e-numerictextbox,
    .e-control-wrapper.e-textbox {
        min-height: 42px !important;
    }

    /* Cards & Layout */
    .fl-card {
        margin-bottom: 1rem !important;
        border-radius: 12px !important;
    }

    .fl-card-header {
        padding: 0.85rem 1rem !important;
    }

    .fl-card-body {
        padding: 0.85rem 1rem !important;
    }

    /* Info rows inside view pages */
    .fl-info-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.25rem !important;
    }

    .fl-info-val {
        text-align: left !important;
        max-width: 100% !important;
    }

    /* Grid Touch-Scroll */
    /*.fl-grid-card {
        padding: 0.5rem !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .fl-themed-grid,
    .e-grid {
        min-width: 650px !important;
    }*/

    /* Pager Responsive */
    /*.e-gridpager,
    .e-pager {
        flex-direction: column !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 0.75rem 0.5rem !important;
    }*/

    /* Stats Row Responsive */
    .fl-stats-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
}

/* â”€â”€â”€ Small Mobile: <= 576px & <= 480px â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 576px) {
    .fl-stats-row {
        grid-template-columns: 1fr !important;
    }

    .fl-action-btn-row .e-btn,
    .fl-action-btn-row .fl-save-btn,
    .fl-action-btn-row .fl-cancel-btn,
    .fl-header-actions .fl-save-btn,
    .fl-header-actions .fl-cancel-btn {
        flex: 1 1 100% !important;
        width: 100% !important;
    }

    .fl-card-footer {
        flex-direction: column-reverse !important;
    }

    .fl-card-footer .e-btn {
        width: 100% !important;
    }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   FLBILL TOAST NOTIFICATION STYLING (SYNCFUSION SFTOAST)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.e-toast-container {
    z-index: 10000000 !important;
    padding: 16px !important;
}

.e-toast-container .e-toast {
    border-radius: 12px !important;
    border: 1px solid var(--fl-border, #E2E8F0) !important;
    background: var(--fl-bg-surface, #FFFFFF) !important;
    box-shadow: 0 12px 36px -4px rgba(0, 0, 0, 0.25), 0 4px 14px rgba(0, 0, 0, 0.12) !important;
    padding: 14px 16px !important;
    min-width: 320px !important;
    max-width: 440px !important;
    font-family: var(--fl-font-ui, 'Inter', sans-serif) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    backdrop-filter: blur(8px) !important;
}

.fl-theme-dark .e-toast-container .e-toast {
    background: rgba(15, 27, 50, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 16px 40px -4px rgba(0, 0, 0, 0.6), 0 6px 18px rgba(0, 0, 0, 0.4) !important;
}

.e-toast-container .e-toast .e-toast-message {
    padding-left: 8px !important;
}

.e-toast-container .e-toast .e-toast-title {
    font-family: var(--fl-font-display, 'Plus Jakarta Sans', sans-serif) !important;
    font-weight: 700 !important;
    font-size: 0.925rem !important;
    letter-spacing: -0.01em !important;
    color: var(--fl-text-primary, #0F172A) !important;
    margin-bottom: 3px !important;
}

.fl-theme-dark .e-toast-container .e-toast .e-toast-title {
    color: #F8FAFC !important;
}

.e-toast-container .e-toast .e-toast-content {
    font-size: 0.85rem !important;
    color: var(--fl-text-secondary, #475569) !important;
    line-height: 1.45 !important;
}

.fl-theme-dark .e-toast-container .e-toast .e-toast-content {
    color: #CBD5E1 !important;
}

.e-toast-container .e-toast .e-toast-close-icon {
    opacity: 0.6 !important;
    transition: opacity 0.15s ease !important;
    font-size: 14px !important;
}

.e-toast-container .e-toast .e-toast-close-icon:hover {
    opacity: 1 !important;
}

/* Success Toast */
.e-toast-container .e-toast.e-toast-success,
.e-toast-container .e-toast.fl-toast-success {
    border-left: 5px solid var(--fl-color-green, #16A34A) !important;
}

.e-toast-container .e-toast.e-toast-success .e-toast-icon,
.e-toast-container .e-toast.fl-toast-success .e-toast-icon {
    color: var(--fl-color-green, #16A34A) !important;
    font-size: 18px !important;
}

.e-toast-container .e-toast.e-toast-success .e-toast-progress,
.e-toast-container .e-toast.fl-toast-success .e-toast-progress {
    background-color: var(--fl-color-green, #16A34A) !important;
    height: 3px !important;
}

/* Danger / Error Toast */
.e-toast-container .e-toast.e-toast-danger,
.e-toast-container .e-toast.fl-toast-danger {
    border-left: 5px solid var(--fl-color-red, #DC2626) !important;
}

.e-toast-container .e-toast.e-toast-danger .e-toast-icon,
.e-toast-container .e-toast.fl-toast-danger .e-toast-icon {
    color: var(--fl-color-red, #DC2626) !important;
    font-size: 18px !important;
}

.e-toast-container .e-toast.e-toast-danger .e-toast-progress,
.e-toast-container .e-toast.fl-toast-danger .e-toast-progress {
    background-color: var(--fl-color-red, #DC2626) !important;
    height: 3px !important;
}

/* Warning Toast */
.e-toast-container .e-toast.e-toast-warning,
.e-toast-container .e-toast.fl-toast-warning {
    border-left: 5px solid var(--fl-color-amber, #D97706) !important;
}

.e-toast-container .e-toast.e-toast-warning .e-toast-icon,
.e-toast-container .e-toast.fl-toast-warning .e-toast-icon {
    color: var(--fl-color-amber, #D97706) !important;
    font-size: 18px !important;
}

.e-toast-container .e-toast.e-toast-warning .e-toast-progress,
.e-toast-container .e-toast.fl-toast-warning .e-toast-progress {
    background-color: var(--fl-color-amber, #D97706) !important;
    height: 3px !important;
}

/* Info Toast */
.e-toast-container .e-toast.e-toast-info,
.e-toast-container .e-toast.fl-toast-info {
    border-left: 5px solid var(--fl-royal, #1565FF) !important;
}

.e-toast-container .e-toast.e-toast-info .e-toast-icon,
.e-toast-container .e-toast.fl-toast-info .e-toast-icon {
    color: var(--fl-royal, #1565FF) !important;
    font-size: 18px !important;
}

.e-toast-container .e-toast.e-toast-info .e-toast-progress,
.e-toast-container .e-toast.fl-toast-info .e-toast-progress {
    background-color: var(--fl-royal, #1565FF) !important;
    height: 3px !important;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   UNIVERSAL FORM VALIDATION ERROR MESSAGE STYLING (VIVID RED)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.validation-message,
.fl-validation-error,
div.validation-message,
div.fl-validation-error,
span.validation-message,
span.fl-validation-error,
.fl-field-error,
label.e-error,
span.e-error,
div.e-error {
    color: #DC2626 !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    margin-top: 0.35rem !important;
    display: block !important;
    line-height: 1.3 !important;
}

.fl-theme-dark .validation-message,
.fl-theme-dark .fl-validation-error,
.fl-theme-dark div.validation-message,
.fl-theme-dark div.fl-validation-error,
.fl-theme-dark span.validation-message,
.fl-theme-dark span.fl-validation-error,
.fl-theme-dark .fl-field-error,
.fl-theme-dark label.e-error,
.fl-theme-dark span.e-error,
.fl-theme-dark div.e-error {
    color: #F87171 !important;
}

/* Input Text & Border Validation Styling */
.e-input-group input.e-input,
.e-input-group textarea.e-input,
.e-control-wrapper input.e-input,
.e-input-group.e-error input.e-input,
.e-control-wrapper.e-error input.e-input {
    color: var(--fl-text-primary, #0F172A) !important;
}

.fl-theme-dark .e-input-group input.e-input,
.fl-theme-dark .e-input-group textarea.e-input,
.fl-theme-dark .e-control-wrapper input.e-input,
.fl-theme-dark .e-input-group.e-error input.e-input,
.fl-theme-dark .e-control-wrapper.e-error input.e-input {
    color: var(--fl-text-primary, #F1F5F9) !important;
}

.e-input-group.e-error,
.e-control-wrapper.e-error,
.e-input-group.invalid,
.e-control-wrapper.invalid {
    border-color: #DC2626 !important;
}

.e-control-wrapper.e-ddl,
.e-control-wrapper.e-ddl.e-error,
.e-control-wrapper.e-ddl.invalid,
.e-ddl.e-input-group,
.e-ddl.e-input-group.e-error,
.e-ddl.e-input-group.invalid {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    box-sizing: border-box !important;
}

.required-field::after,
.fl-required::after {
    content: "\00a0*" !important;
    color: #DC2626 !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    display: inline !important;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   TOPBAR & PROFILE DROPDOWN FOREGROUND STACKING FIX
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.fl-topbar {
    position: relative !important;
    z-index: 2000 !important;
}

.fl-user-menu {
    position: relative !important;
    z-index: 2100 !important;
}

.fl-dropdown {
    position: absolute !important;
    z-index: 2200 !important;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SYNCFUSION TOOLTIP (SFTOOLTIP) HIGH-CONTRAST THEME STYLES
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.e-tooltip-wrap {
    border-radius: 6px !important;
    font-family: var(--fl-font-ui, 'Inter', sans-serif) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
    /* Ensure tooltips always appear above grids, sticky headers, dialogs */
    z-index: 100000 !important;
}

/* Action button tooltips must be even higher (above grid and modals) */
.fl-action-tooltip.e-tooltip-wrap {
    z-index: 100010 !important;
}

/* Tooltips inside Syncfusion grids must clear the grid overlay */
.e-grid .e-tooltip-wrap.e-popup-open {
    z-index: 100005 !important;
}

/* Default / Light Mode Tooltips */
.e-tooltip-wrap:not(.e-popup-open),
.e-tooltip-wrap.e-popup-close,
.e-tooltip-wrap:has(.e-tip-content:empty),
.e-tooltip-wrap .e-tip-content:empty {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.e-tooltip-wrap.e-popup-open,
.fl-theme-light .e-tooltip-wrap.e-popup-open,
body:not(.fl-theme-dark) .e-tooltip-wrap.e-popup-open {
    background-color: #0F172A !important;
    border: 1px solid #1E293B !important;
    color: #FFFFFF !important;
}

.e-tooltip-wrap .e-tip-content,
.fl-theme-light .e-tooltip-wrap .e-tip-content,
body:not(.fl-theme-dark) .e-tooltip-wrap .e-tip-content {
    color: #FFFFFF !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    padding: 5px 10px !important;
}

.e-tooltip-wrap .e-arrow-tip-inner,
.e-tooltip-wrap .e-arrow-tip-outer {
    color: #0F172A !important;
}

/* Dark Mode Tooltips (Bright White / Crisp Text against slate dark surface) */
.fl-theme-dark .e-tooltip-wrap.e-popup-open,
body.fl-theme-dark .e-tooltip-wrap.e-popup-open,
html.fl-theme-dark .e-tooltip-wrap.e-popup-open,
body:has(.fl-theme-dark) .e-tooltip-wrap.e-popup-open {
    background-color: #1E293B !important;
    border: 1px solid #334155 !important;
    color: #F8FAFC !important;
}

.fl-theme-dark .e-tooltip-wrap .e-tip-content,
body.fl-theme-dark .e-tooltip-wrap .e-tip-content,
html.fl-theme-dark .e-tooltip-wrap .e-tip-content,
body:has(.fl-theme-dark) .e-tooltip-wrap .e-tip-content {
    color: #FFFFFF !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 5px 10px !important;
}

.fl-theme-dark .e-tooltip-wrap .e-arrow-tip-inner,
.fl-theme-dark .e-tooltip-wrap .e-arrow-tip-outer,
body.fl-theme-dark .e-tooltip-wrap .e-arrow-tip-inner,
body.fl-theme-dark .e-tooltip-wrap .e-arrow-tip-outer,
html.fl-theme-dark .e-tooltip-wrap .e-arrow-tip-inner,
html.fl-theme-dark .e-tooltip-wrap .e-arrow-tip-outer {
    color: #1E293B !important;
}

/* â”€â”€ Truncated cell native title tooltips â€” make sure cursor shows pointer â”€â”€ */
[title]:not(button):not(a):not([role="button"]) {
    cursor: default;
}

/* â”€â”€â”€ Global Common Page Header (Consumed across all Edit/Add Pages) â”€â”€â”€ */
.fl-form-page-header {
    background: var(--fl-bg-surface, #FFFFFF);
    border-radius: 14px;
    border: 1px solid var(--fl-border, #E2E8F0);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    padding: 1.25rem 1.75rem;
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    width: calc(100% + 3rem);
    box-sizing: border-box;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.fl-theme-dark .fl-form-page-header {
    background: var(--fl-bg-surface, #0F1B32);
    border-color: var(--fl-border, #1C2D4A);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.breadcrumb-trail {
    margin-bottom: 0.5rem;
}

.breadcrumb-link {
    color: var(--fl-text-secondary, #94A3B8);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.15s ease;
    display: inline-flex;
    align-items: center;
}

.breadcrumb-link:hover {
    color: var(--fl-color-blue, #60A5FA);
}

.fl-header-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 1rem;
    flex-wrap: wrap;
}

.fl-header-title-bar .fl-page-title,
.fl-page-title {
    font-family: var(--fl-font-display, 'Plus Jakarta Sans', sans-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--fl-text-primary, #0F172A);
    margin: 0;
    line-height: 1.25;
    word-break: break-word;
}

.fl-theme-dark .fl-header-title-bar .fl-page-title,
.fl-theme-dark .fl-page-title {
    color: var(--fl-text-primary, #FFFFFF);
}

.fl-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.fl-header-actions .e-btn,
.fl-header-actions button {
    white-space: normal !important;
    word-break: normal !important;
    line-height: 1.3 !important;
    min-height: 36px !important;
    height: auto !important;
}

/* Global Syncfusion SfTab OCR Modal Dark Mode Fix */
.fl-ocr-sftab .e-tab-header .e-toolbar-item,
.fl-ocr-sftab .e-tab-header .e-toolbar-item .e-tab-wrap,
.fl-ocr-sftab .e-tab-header .e-toolbar-item .e-tab-text,
.fl-ocr-sftab .e-tab-header .e-toolbar-item .e-icons,
.fl-ocr-sftab .e-tab-header .e-toolbar-item * {
    color: #94A3B8 !important;
    font-weight: 600 !important;
}

.fl-ocr-sftab .e-tab-header .e-toolbar-item.e-active,
.fl-ocr-sftab .e-tab-header .e-toolbar-item.e-active .e-tab-wrap,
.fl-ocr-sftab .e-tab-header .e-toolbar-item.e-active .e-tab-text,
.fl-ocr-sftab .e-tab-header .e-toolbar-item.e-active .e-icons,
.fl-ocr-sftab .e-tab-header .e-toolbar-item.e-active * {
    color: #60A5FA !important;
    font-weight: 700 !important;
}

.fl-ocr-sftab .e-tab-header .e-toolbar-item:hover,
.fl-ocr-sftab .e-tab-header .e-toolbar-item:hover .e-tab-wrap,
.fl-ocr-sftab .e-tab-header .e-toolbar-item:hover .e-tab-text,
.fl-ocr-sftab .e-tab-header .e-toolbar-item:hover .e-icons,
.fl-ocr-sftab .e-tab-header .e-toolbar-item:hover * {
    color: #93C5FD !important;
}

.fl-ocr-sftab .e-tab-header .e-indicator {
    background: #60A5FA !important;
    height: 3px !important;
}

/* Global Syncfusion Dialog Close Button Dark Mode Fix */
.custom-dialog .e-dlg-closeicon-btn,
.fl-ocr-dialog .e-dlg-closeicon-btn,
.fl-review-dialog .e-dlg-closeicon-btn,
.e-dialog .e-dlg-closeicon-btn {
    background-color: transparent !important;
    border: none !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

.e-dialog .e-dlg-closeicon-btn .e-icons,
.e-dialog .e-dlg-closeicon-btn .e-btn-icon,
.e-dialog .e-dlg-closeicon-btn .e-icon-dlg-close {
    font-size: 14px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.custom-dialog .e-dlg-closeicon-btn:hover,
.fl-ocr-dialog .e-dlg-closeicon-btn:hover,
.fl-review-dialog .e-dlg-closeicon-btn:hover,
.e-dialog .e-dlg-closeicon-btn:hover,
.e-dialog .e-dlg-closeicon-btn:focus {
    background-color: var(--fl-bg-surface-2, rgba(0, 0, 0, 0.06)) !important;
    border-color: transparent !important;
    outline: none !important;
}

.custom-dialog .e-dlg-closeicon-btn,
.custom-dialog .e-dlg-closeicon-btn *,
.fl-ocr-dialog .e-dlg-closeicon-btn,
.fl-ocr-dialog .e-dlg-closeicon-btn *,
.fl-review-dialog .e-dlg-closeicon-btn,
.fl-review-dialog .e-dlg-closeicon-btn *,
.e-dialog .e-dlg-closeicon-btn,
.e-dialog .e-dlg-closeicon-btn * {
    color: var(--fl-text-secondary, #475569) !important;
    opacity: 1 !important;
    transition: color 0.15s ease, background-color 0.15s ease !important;
}

.custom-dialog .e-dlg-closeicon-btn:hover,
.custom-dialog .e-dlg-closeicon-btn:hover *,
.fl-ocr-dialog .e-dlg-closeicon-btn:hover,
.fl-ocr-dialog .e-dlg-closeicon-btn:hover *,
.fl-review-dialog .e-dlg-closeicon-btn:hover,
.fl-review-dialog .e-dlg-closeicon-btn:hover *,
.e-dialog .e-dlg-closeicon-btn:hover,
.e-dialog .e-dlg-closeicon-btn:hover * {
    color: var(--fl-text-primary, #0F172A) !important;
}

.fl-theme-dark .e-dialog .e-dlg-closeicon-btn,
.fl-theme-dark .e-dialog .e-dlg-closeicon-btn *,
html.fl-theme-dark .e-dialog .e-dlg-closeicon-btn,
html.fl-theme-dark .e-dialog .e-dlg-closeicon-btn * {
    color: var(--fl-text-secondary, #94A3B8) !important;
    opacity: 1 !important;
}

.fl-theme-dark .e-dialog .e-dlg-closeicon-btn:hover,
.fl-theme-dark .e-dialog .e-dlg-closeicon-btn:hover *,
html.fl-theme-dark .e-dialog .e-dlg-closeicon-btn:hover,
html.fl-theme-dark .e-dialog .e-dlg-closeicon-btn:hover * {
    color: #FFFFFF !important;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   OCR REVIEW EXTRACTED COLUMNS DIALOG (Global & Desktop View Styles)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.fl-review-dialog.e-dialog {
    border-radius: 12px !important;
    overflow: hidden !important;
}

.fl-review-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    border-radius: 8px !important;
    border: 1px solid var(--fl-border, #E2E8F0) !important;
    background-color: var(--fl-bg-surface, #FFFFFF) !important;
}

/* Grid Header & Drag handle */
.fl-review-th-inner {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
}

.fl-review-th-label {
    flex: 1 1 auto !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    color: var(--fl-text-primary, #0F172A) !important;
    font-weight: 700 !important;
    font-size: 0.8125rem !important;
}

.fl-review-drag-handle {
    cursor: grab !important;
    color: var(--fl-text-muted, #94A3B8) !important;
    font-size: 0.8125rem !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
}

/* Column Remove [x] button in header â€” clean, borderless, icon only */
.fl-review-col-remove,
button.fl-review-col-remove {
    appearance: none !important;
    -webkit-appearance: none !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    cursor: pointer !important;
    color: var(--fl-text-secondary, #94A3B8) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    border-radius: 4px !important;
    padding: 0 !important;
    font-size: 0.75rem !important;
    line-height: 1 !important;
    transition: all 0.15s ease !important;
}

.fl-review-col-remove:hover,
button.fl-review-col-remove:hover {
    color: #EF4444 !important;
    background-color: rgba(239, 68, 68, 0.12) !important;
    border: none !important;
    outline: none !important;
}

/* Review Input fields in desktop table view */
.fl-review-input,
input.fl-review-input {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 100% !important;
    min-width: 70px !important;
    border: 1px solid var(--fl-border, #CBD5E1) !important;
    border-radius: 6px !important;
    padding: 0.35rem 0.55rem !important;
    font-size: 0.8125rem !important;
    color: var(--fl-text-primary, #0F172A) !important;
    background-color: var(--fl-bg-surface, #FFFFFF) !important;
    box-sizing: border-box !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.fl-review-input:hover,
input.fl-review-input:hover,
.fl-review-input:focus,
input.fl-review-input:focus {
    border-color: var(--fl-color-blue, #1565FF) !important;
    background-color: var(--fl-bg-surface, #FFFFFF) !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(21, 101, 255, 0.15) !important;
}

.fl-review-input[readonly],
input.fl-review-input[readonly] {
    color: var(--fl-text-secondary, #64748B) !important;
    background-color: var(--fl-bg-surface-2, #F8FAFC) !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.fl-review-input-num {
    text-align: right !important;
    font-family: var(--bs-font-monospace, monospace) !important;
}

/* Row remove button */
.fl-review-remove-btn,
button.fl-review-remove-btn {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    border-radius: 6px !important;
    border: 1px solid var(--fl-border, #CBD5E1) !important;
    background-color: var(--fl-bg-surface-2, #F8FAFC) !important;
    color: var(--fl-text-secondary, #64748B) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 0.75rem !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    transition: all 0.15s ease !important;
}

.fl-review-remove-btn:hover,
button.fl-review-remove-btn:hover {
    background-color: rgba(239, 68, 68, 0.12) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
    color: #EF4444 !important;
}

/* Add Column button in table header */
.fl-review-add-col-btn,
button.fl-review-add-col-btn {
    appearance: none !important;
    -webkit-appearance: none !important;
    border: 1px dashed var(--fl-border, #CBD5E1) !important;
    background-color: var(--fl-bg-surface-2, #F8FAFC) !important;
    color: var(--fl-text-secondary, #64748B) !important;
    border-radius: 4px !important;
    width: 24px !important;
    height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    font-size: 0.75rem !important;
    transition: all 0.15s ease !important;
}

.fl-review-add-col-btn:hover,
button.fl-review-add-col-btn:hover {
    border-color: var(--fl-color-blue, #1565FF) !important;
    background-color: var(--fl-bg-surface, #FFFFFF) !important;
    color: var(--fl-color-blue, #1565FF) !important;
}

/* Syncfusion Grid internal overrides for OCR Review */
.fl-review-sfgrid.e-grid {
    background-color: var(--fl-bg-surface, #FFFFFF) !important;
    border: none !important;
}

.fl-review-sfgrid .e-gridheader,
.fl-review-sfgrid .e-headercell {
    background-color: var(--fl-bg-surface-2, #F8FAFC) !important;
    color: var(--fl-text-primary, #0F172A) !important;
    border-color: var(--fl-border, #E2E8F0) !important;
    font-weight: 700 !important;
    height: 42px !important;
}

.fl-review-sfgrid .e-rowcell {
    background-color: var(--fl-bg-surface, #FFFFFF) !important;
    color: var(--fl-text-primary, #0F172A) !important;
    border-color: var(--fl-border, #E2E8F0) !important;
    padding: 6px 8px !important;
}

.fl-review-sfgrid .e-gridheader .e-headercell:last-child,
.fl-review-sfgrid .e-rowcell:last-child {
    background: var(--fl-bg-surface-2, #F8FAFC) !important;
    text-align: center !important;
}

/* Dark Theme Overrides for OCR Review Dialog & Grid */
.fl-theme-dark .fl-review-dialog.e-dialog,
html.fl-theme-dark .fl-review-dialog.e-dialog {
    border-color: var(--fl-border, #1C2D4A) !important;
}

.fl-theme-dark .fl-review-table-wrap,
html.fl-theme-dark .fl-review-table-wrap {
    background-color: var(--fl-bg-surface, #0F1B32) !important;
    border-color: var(--fl-border, #1C2D4A) !important;
}

.fl-theme-dark .fl-review-sfgrid .e-gridheader,
.fl-theme-dark .fl-review-sfgrid .e-headercell,
html.fl-theme-dark .fl-review-sfgrid .e-gridheader,
html.fl-theme-dark .fl-review-sfgrid .e-headercell {
    background-color: var(--fl-bg-surface-2, #142037) !important;
    color: var(--fl-text-primary, #E2E8F0) !important;
    border-color: var(--fl-border, #1C2D4A) !important;
}

.fl-theme-dark .fl-review-th-label,
html.fl-theme-dark .fl-review-th-label {
    color: var(--fl-text-primary, #E2E8F0) !important;
}

.fl-theme-dark .fl-review-drag-handle,
html.fl-theme-dark .fl-review-drag-handle {
    color: var(--fl-text-secondary, #94A3B8) !important;
}

.fl-theme-dark .fl-review-col-remove,
html.fl-theme-dark .fl-review-col-remove,
.fl-theme-dark button.fl-review-col-remove,
html.fl-theme-dark button.fl-review-col-remove {
    color: var(--fl-text-secondary, #94A3B8) !important;
    background: transparent !important;
    background-color: transparent !important;
}

.fl-theme-dark .fl-review-col-remove:hover,
html.fl-theme-dark .fl-review-col-remove:hover,
.fl-theme-dark button.fl-review-col-remove:hover,
html.fl-theme-dark button.fl-review-col-remove:hover {
    color: #F87171 !important;
    background-color: rgba(239, 68, 68, 0.2) !important;
}

.fl-theme-dark .fl-review-sfgrid .e-rowcell,
html.fl-theme-dark .fl-review-sfgrid .e-rowcell {
    background-color: var(--fl-bg-surface, #0F1B32) !important;
    color: var(--fl-text-primary, #E2E8F0) !important;
    border-color: var(--fl-border, #1C2D4A) !important;
}

.fl-theme-dark .fl-review-input,
html.fl-theme-dark .fl-review-input,
.fl-theme-dark input.fl-review-input,
html.fl-theme-dark input.fl-review-input {
    background-color: var(--fl-bg-surface, #0F1B32) !important;
    color: var(--fl-text-primary, #E2E8F0) !important;
    border-color: var(--fl-border, #1C2D4A) !important;
}

.fl-theme-dark .fl-review-input:hover,
.fl-theme-dark .fl-review-input:focus,
html.fl-theme-dark .fl-review-input:hover,
html.fl-theme-dark .fl-review-input:focus,
.fl-theme-dark input.fl-review-input:hover,
.fl-theme-dark input.fl-review-input:focus,
html.fl-theme-dark input.fl-review-input:hover,
html.fl-theme-dark input.fl-review-input:focus {
    border-color: var(--fl-color-blue, #60A5FA) !important;
    background-color: var(--fl-bg-surface, #0F1B32) !important;
}

.fl-theme-dark .fl-review-input[readonly],
html.fl-theme-dark .fl-review-input[readonly],
.fl-theme-dark input.fl-review-input[readonly],
html.fl-theme-dark input.fl-review-input[readonly] {
    background-color: var(--fl-bg-surface-2, #142037) !important;
    color: var(--fl-text-secondary, #94A3B8) !important;
}

.fl-theme-dark .fl-review-remove-btn,
html.fl-theme-dark .fl-review-remove-btn,
.fl-theme-dark button.fl-review-remove-btn,
html.fl-theme-dark button.fl-review-remove-btn,
.fl-theme-dark .fl-review-add-col-btn,
html.fl-theme-dark .fl-review-add-col-btn,
.fl-theme-dark button.fl-review-add-col-btn,
html.fl-theme-dark button.fl-review-add-col-btn {
    background-color: var(--fl-bg-surface-2, #142037) !important;
    border-color: var(--fl-border, #1C2D4A) !important;
    color: var(--fl-text-secondary, #94A3B8) !important;
}

.fl-theme-dark .fl-review-sfgrid .e-gridheader .e-headercell:last-child,
.fl-theme-dark .fl-review-sfgrid .e-rowcell:last-child,
html.fl-theme-dark .fl-review-sfgrid .e-gridheader .e-headercell:last-child,
html.fl-theme-dark .fl-review-sfgrid .e-rowcell:last-child {
    background-color: var(--fl-bg-surface-2, #142037) !important;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   UNIVERSAL LIVE PREVIEW CARD & DETAILS LIST (Customer Reference Style)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.fl-sticky-sidebar {
    position: sticky;
    top: 10rem;
}

.fl-preview-card {
    border-top: 3px solid var(--fl-color-blue, #1565FF) !important;
}

.fl-preview-badge {
    background: rgba(37, 99, 235, 0.1) !important;
    color: var(--fl-color-blue, #1565FF) !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    padding: 0.2rem 0.55rem !important;
    border-radius: 6px !important;
}

.fl-preview-hero {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    padding-bottom: 1.25rem !important;
    border-bottom: 1px dashed var(--fl-border, #E2E8F0) !important;
    margin-bottom: 1.25rem !important;
}

.fl-preview-avatar {
    width: 52px !important;
    height: 52px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #1565FF, #23A8FF) !important;
    color: #FFFFFF !important;
    font-family: var(--fl-font-display, 'Plus Jakarta Sans', sans-serif) !important;
    font-weight: 800 !important;
    font-size: 1.2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    box-shadow: 0 4px 12px rgba(21, 101, 255, 0.25) !important;
}

.fl-preview-info {
    min-width: 0 !important;
    flex: 1 !important;
}

.fl-preview-name {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: var(--fl-text-primary, #0F172A) !important;
    margin: 0 0 0.4rem 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.fl-preview-meta {
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    flex-wrap: wrap !important;
}

.fl-pill-badge {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    padding: 0.15rem 0.45rem !important;
    border-radius: 4px !important;
}

.fl-pill-code {
    background: var(--fl-bg-surface-2, #F1F5F9) !important;
    color: var(--fl-text-secondary, #475569) !important;
    font-family: monospace !important;
}

.fl-pill-b2b {
    background: rgba(147, 51, 234, 0.12) !important;
    color: #9333EA !important;
}

.fl-pill-b2c {
    background: rgba(13, 148, 136, 0.12) !important;
    color: #0D9488 !important;
}

.fl-status-indicator {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    padding: 0.15rem 0.5rem !important;
    border-radius: 99px !important;
}

.fl-status-active {
    background: rgba(34, 197, 94, 0.15) !important;
    color: #16A34A !important;
}

.fl-status-inactive {
    background: rgba(245, 165, 36, 0.15) !important;
    color: #D97706 !important;
}

.fl-preview-details-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.9rem !important;
}

.fl-preview-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
}

.fl-preview-icon {
    font-size: 1.05rem !important;
    color: var(--fl-color-blue, #1565FF) !important;
    margin-top: 0.1rem !important;
    width: 1.25rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.fl-preview-item-content {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
}

.fl-preview-label {
    font-size: 0.74rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
    color: var(--fl-text-secondary, #64748B) !important;
}

.fl-preview-val {
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    color: var(--fl-text-primary, #0F172A) !important;
    word-break: break-word !important;
}

.fl-preview-totals-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 0.45rem !important;
}

.fl-preview-totals-row .tot-label {
    font-size: 0.82rem !important;
    color: var(--fl-text-secondary, #64748B) !important;
}

.fl-preview-totals-row .tot-value {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: var(--fl-text-primary, #0F172A) !important;
}

.fl-preview-grand-total {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-top: 0.65rem !important;
    margin-top: 0.5rem !important;
    border-top: 1px dashed var(--fl-border, #E2E8F0) !important;
}

.fl-preview-grand-total .tot-label {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: var(--fl-text-primary, #0F172A) !important;
}

.fl-preview-grand-total .tot-value {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: var(--fl-color-blue, #1565FF) !important;
}

/* Dark mode for Universal Live Preview */
.fl-theme-dark .fl-preview-hero,
html.fl-theme-dark .fl-preview-hero,
.fl-theme-dark .fl-preview-grand-total,
html.fl-theme-dark .fl-preview-grand-total {
    border-color: var(--fl-border, #1C2D4A) !important;
}

.fl-theme-dark .fl-preview-name,
html.fl-theme-dark .fl-preview-name,
.fl-theme-dark .fl-preview-val,
html.fl-theme-dark .fl-preview-val,
.fl-theme-dark .fl-preview-grand-total .tot-label,
html.fl-theme-dark .fl-preview-grand-total .tot-label,
.fl-theme-dark .fl-preview-totals-row .tot-value,
html.fl-theme-dark .fl-preview-totals-row .tot-value {
    color: var(--fl-text-primary, #E2E8F0) !important;
}

.fl-theme-dark .fl-preview-label,
html.fl-theme-dark .fl-preview-label,
.fl-theme-dark .fl-preview-totals-row .tot-label,
html.fl-theme-dark .fl-preview-totals-row .tot-label {
    color: var(--fl-text-secondary, #94A3B8) !important;
}

.fl-theme-dark .fl-preview-badge,
html.fl-theme-dark .fl-preview-badge {
    background: rgba(96, 165, 250, 0.15) !important;
    color: #60A5FA !important;
}

.fl-theme-dark .fl-preview-icon,
html.fl-theme-dark .fl-preview-icon {
    color: #60A5FA !important;
}

.fl-theme-dark .fl-pill-code,
html.fl-theme-dark .fl-pill-code {
    background: var(--fl-bg-surface-2, #142037) !important;
    color: var(--fl-text-secondary, #94A3B8) !important;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   PRINT ENGINE STYLES (A4 Purchase Voucher Printout)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
@media print {
    @page {
        size: A4 portrait;
        margin: 0;
    }

    html,
    body {
        background: #FFFFFF !important;
        color: #000000 !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
    }

    /* Hide UI Shell, Navigation Sidebar, Topbar, Modals, Overlays */
    .fl-shell,
    .fl-sidebar,
    .fl-sidebar-backdrop,
    .fl-topbar,
    .fl-main-wrapper,
    .e-dlg-container,
    .e-dlg-overlay,
    .e-dlg-header-content,
    .fl-voucher-no-print,
    .fl-voucher-toolbar,
    .e-dlg-closeicon-btn {
        display: none !important;
        visibility: hidden !important;
    }

    /* Target ONLY #fl-printable-voucher */
    body * {
        visibility: hidden !important;
    }

    #fl-printable-voucher,
    #fl-printable-voucher * {
        visibility: visible !important;
    }

    #fl-printable-voucher {
        display: block !important;
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 100% !important;
        margin: 0 !important;
        padding: 20px !important;
        background: #FFFFFF !important;
        color: #000000 !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        z-index: 99999999 !important;
    }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   Syncfusion Grid Native Pager Styling (Matching Doc Screenshot 2)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.fl-themed-grid .e-gridpager,
.fl-themed-grid .e-pager,
.e-grid .e-pager {
    background: var(--fl-bg-surface, #FFFFFF) !important;
    border-top: 1px solid var(--fl-border, #E2E8F0) !important;
    padding: 8px 16px !important;
    font-family: inherit !important;
}

.fl-themed-grid .e-pager .e-pagercontainer,
.e-grid .e-pager .e-pagercontainer {
    border: none !important;
    background: transparent !important;
}

.fl-themed-grid .e-pager .e-first,
.fl-themed-grid .e-pager .e-prev,
.fl-themed-grid .e-pager .e-next,
.fl-themed-grid .e-pager .e-last,
.fl-themed-grid .e-pager .e-numericitem {
    border-radius: 6px !important;
    border: none !important;
}

.fl-themed-grid .e-pager .e-parentmsgbar,
.e-grid .e-pager .e-parentmsgbar {
    font-weight: 500 !important;
    color: var(--fl-text-secondary, #475569) !important;
    font-size: 0.875rem !important;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   Surgical Hiding of Syncfusion Mobile Adaptive Duplicate Pager Buttons (.e-pager-default)
   Direct siblings of .e-pagercontainer inside .e-pager
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
    .fl-themed-grid .e-pager > div.e-pager-default,
    .fl-themed-grid .e-pager > div.e-mfirst,
    .fl-themed-grid .e-pager > div.e-mprev,
    .fl-themed-grid .e-pager > div.e-mnext,
    .fl-themed-grid .e-pager > div.e-mlast,
    .fl-themed-grid .e-pager > div.e-firstpage,
    .fl-themed-grid .e-pager > div.e-prevpage,
    .fl-themed-grid .e-pager > div.e-nextpage,
    .fl-themed-grid .e-pager > div.e-lastpage,
    .fl-themed-grid .e-pager > div[class*="e-mfirst"],
    .fl-themed-grid .e-pager > div[class*="e-mprev"],
    .fl-themed-grid .e-pager > div[class*="e-mnext"],
    .fl-themed-grid .e-pager > div[class*="e-mlast"],
    .e-grid .e-pager > div.e-pager-default,
    .e-grid .e-pager > div.e-mfirst,
    .e-grid .e-pager > div.e-mprev,
    .e-grid .e-pager > div.e-mnext,
    .e-grid .e-pager > div.e-mlast,
    .e-grid .e-pager > div.e-firstpage,
    .e-grid .e-pager > div.e-prevpage,
    .e-grid .e-pager > div.e-nextpage,
    .e-grid .e-pager > div.e-lastpage,
    .e-grid .e-pager > div[class*="e-mfirst"],
    .e-grid .e-pager > div[class*="e-mprev"],
    .e-grid .e-pager > div[class*="e-mnext"],
    .e-grid .e-pager > div[class*="e-mlast"] {
    display: none !important;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   Syncfusion DateRangePicker Mobile Responsive Fix
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
@media (max-width: 768px) {

    .e-daterangepicker.e-popup,
    .e-daterangepicker-popup,
    .e-popup.e-daterangepicker {
        max-width: calc(100vw - 20px) !important;
        width: calc(100vw - 20px) !important;
        left: 10px !important;
        right: 10px !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        border-radius: 12px !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25) !important;
    }

    .e-daterangepicker .e-range-container,
    .e-daterangepicker .e-calendar-container,
    .e-daterangepicker .e-custom-range {
        width: 100% !important;
        max-width: 100% !important;
        flex-direction: column !important;
        display: flex !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .e-daterangepicker .e-calendar-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
    }

    .e-daterangepicker .e-left-container,
    .e-daterangepicker .e-right-container,
    .e-daterangepicker .e-calendar {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        float: none !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .e-daterangepicker .e-calendar .e-content.e-month,
    .e-daterangepicker .e-calendar table {
        width: 100% !important;
        table-layout: fixed !important;
    }

    .e-daterangepicker .e-calendar table td,
    .e-daterangepicker .e-calendar table th {
        padding: 2px !important;
        text-align: center !important;
    }

    .e-daterangepicker .e-calendar table td span.e-day {
        width: 32px !important;
        height: 32px !important;
        line-height: 32px !important;
        margin: 0 auto !important;
        font-size: 0.82rem !important;
    }

    .e-daterangepicker .e-presets {
        width: 100% !important;
        max-width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid var(--fl-border, #E2E8F0) !important;
    }

    .e-daterangepicker .e-footer {
        width: 100% !important;
        display: flex !important;
        justify-content: flex-end !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
        padding: 0.5rem 0.75rem !important;
        box-sizing: border-box !important;
    }

    .e-daterangepicker .e-footer .e-btn {
        min-width: 80px !important;
    }

    .e-daterangepicker .e-header {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .e-daterangepicker .e-change-dates {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        box-sizing: border-box !important;
        padding: 0.5rem !important;
    }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   FLBILL GLOBAL TOAST NOTIFICATION (SFTOAST) ICON & BADGE STYLING
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.e-toast-container,
.fl-sf-toast.e-toast-container {
    z-index: 999999 !important;
}

.e-toast-container .e-toast,
.fl-sf-toast.e-toast-container .e-toast {
    border-radius: 12px !important;
    padding: 12px 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid var(--fl-border, #E2E8F0) !important;
    background-color: var(--fl-bg-surface, #FFFFFF) !important;
    font-family: var(--fl-font-ui, 'Inter', sans-serif) !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    min-width: 320px !important;
    max-width: 460px !important;
    margin-bottom: 10px !important;
}

.fl-theme-dark .e-toast-container .e-toast,
.fl-theme-dark .fl-sf-toast.e-toast-container .e-toast {
    background-color: #0F1B32 !important;
    border: 1px solid #1C2D4A !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important;
}

/* Left Accent Border Bars */
.e-toast-container .e-toast.e-toast-success,
.e-toast-container .e-toast.fl-toast-success {
    border-left: 5px solid #16A34A !important;
}

.e-toast-container .e-toast.e-toast-danger,
.e-toast-container .e-toast.fl-toast-danger {
    border-left: 5px solid #DC2626 !important;
}

.e-toast-container .e-toast.e-toast-warning,
.e-toast-container .e-toast.fl-toast-warning {
    border-left: 5px solid #D97706 !important;
}

.e-toast-container .e-toast.e-toast-info,
.e-toast-container .e-toast.fl-toast-info {
    border-left: 5px solid #1565FF !important;
}

/* Toast Icon Badge (Created / Updated / Deleted / etc.) */
.e-toast-container .e-toast .e-toast-icon,
.fl-sf-toast.e-toast-container .e-toast .e-toast-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.2rem !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    border-radius: 10px !important;
    margin-right: 12px !important;
    flex-shrink: 0 !important;
}

/* Success Icon Badge (Customer Created / Customer Updated) */
.e-toast-container .e-toast.e-toast-success .e-toast-icon,
.e-toast-container .e-toast.fl-toast-success .e-toast-icon {
    background: rgba(22, 163, 74, 0.15) !important;
    color: #16A34A !important;
}

.fl-theme-dark .e-toast-container .e-toast.e-toast-success .e-toast-icon,
.fl-theme-dark .e-toast-container .e-toast.fl-toast-success .e-toast-icon {
    background: rgba(34, 197, 94, 0.22) !important;
    color: #22C55E !important;
}

/* Danger / Error Icon Badge */
.e-toast-container .e-toast.e-toast-danger .e-toast-icon,
.e-toast-container .e-toast.fl-toast-danger .e-toast-icon {
    background: rgba(220, 38, 38, 0.15) !important;
    color: #DC2626 !important;
}

.fl-theme-dark .e-toast-container .e-toast.e-toast-danger .e-toast-icon,
.fl-theme-dark .e-toast-container .e-toast.fl-toast-danger .e-toast-icon {
    background: rgba(239, 68, 68, 0.22) !important;
    color: #EF4444 !important;
}

/* Warning Icon Badge */
.e-toast-container .e-toast.e-toast-warning .e-toast-icon,
.e-toast-container .e-toast.fl-toast-warning .e-toast-icon {
    background: rgba(217, 119, 6, 0.15) !important;
    color: #D97706 !important;
}

.fl-theme-dark .e-toast-container .e-toast.e-toast-warning .e-toast-icon,
.fl-theme-dark .e-toast-container .e-toast.fl-toast-warning .e-toast-icon {
    background: rgba(245, 158, 11, 0.22) !important;
    color: #F59E0B !important;
}

/* Info Icon Badge */
.e-toast-container .e-toast.e-toast-info .e-toast-icon,
.e-toast-container .e-toast.fl-toast-info .e-toast-icon {
    background: rgba(37, 99, 235, 0.15) !important;
    color: #1565FF !important;
}

.fl-theme-dark .e-toast-container .e-toast.e-toast-info .e-toast-icon,
.fl-theme-dark .e-toast-container .e-toast.fl-toast-info .e-toast-icon {
    background: rgba(96, 165, 250, 0.22) !important;
    color: #60A5FA !important;
}

/* Toast Message Body */
.e-toast-container .e-toast .e-toast-message {
    padding: 0 !important;
    flex: 1 1 auto !important;
}

.e-toast-container .e-toast .e-toast-title {
    font-family: var(--fl-font-display, 'Plus Jakarta Sans', sans-serif) !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    color: var(--fl-text-primary, #0F172A) !important;
    margin-bottom: 2px !important;
}

.fl-theme-dark .e-toast-container .e-toast .e-toast-title {
    color: #F8FAFC !important;
}

.e-toast-container .e-toast .e-toast-content {
    font-size: 0.85rem !important;
    color: var(--fl-text-secondary, #475569) !important;
    line-height: 1.4 !important;
}

.fl-theme-dark .e-toast-container .e-toast .e-toast-content {
    color: #94A3B8 !important;
}

/* Toast Close Button */
.e-toast-container .e-toast .e-toast-close-icon {
    color: var(--fl-text-secondary, #64748B) !important;
    font-size: 0.9rem !important;
}

/* â”€â”€ Global Product Dimensions Mobile Responsive Switch â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-desktop-dim-grid {
    display: block;
}

.fl-mobile-dim-cards {
    display: none;
}

@media (max-width: 768px) {
    .fl-desktop-dim-grid {
        display: none !important;
    }

    .fl-mobile-dim-cards {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
        width: 100% !important;
    }

    .fl-mobile-dim-card {
        background: var(--fl-bg-surface, #FFFFFF);
        border: 1px solid var(--fl-border, #E2E8F0);
        border-radius: 10px;
        padding: 0.85rem 1rem;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
    }

    .fl-theme-dark .fl-mobile-dim-card {
        background: #0F1B32;
        border: 1px solid #1C2D4A;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    }

    .fl-mobile-dim-card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid var(--fl-border-soft, #EEF2F7);
    }

    .fl-theme-dark .fl-mobile-dim-card-header {
        border-bottom: 1px solid #152035;
    }

    .fl-mobile-dim-idx-pill {
        font-weight: 700;
        font-size: 0.85rem;
        color: var(--fl-color-blue, #1565FF);
        background: rgba(21, 101, 255, 0.1);
        padding: 0.15rem 0.55rem;
        border-radius: 6px;
    }

    .fl-theme-dark .fl-mobile-dim-idx-pill {
        background: rgba(96, 165, 250, 0.15);
        color: #60A5FA;
    }

    .fl-mobile-dim-card-body {
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
    }

    .fl-mobile-dim-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.25rem 0;
        font-size: 0.86rem;
    }

    .fl-mobile-dim-total-row {
        align-items: center !important;
        padding-top: 0.4rem !important;
        margin-top: 0.25rem !important;
        border-top: 1px dashed var(--fl-border-soft, #EEF2F7) !important;
    }

    .fl-theme-dark .fl-mobile-dim-total-row {
        border-top: 1px dashed #152035 !important;
    }

    .fl-mobile-dim-label {
        color: var(--fl-text-secondary, #475569);
        font-weight: 500;
        font-size: 0.82rem;
        flex: 0 0 auto !important;
        max-width: 45% !important;
        line-height: 1.3 !important;
    }

    .fl-theme-dark .fl-mobile-dim-label {
        color: #94A3B8;
    }

    .fl-mobile-dim-val {
        color: var(--fl-text-primary, #0F172A);
        text-align: right;
    }

    .fl-theme-dark .fl-mobile-dim-val {
        color: #E2E8F0;
    }

    .fl-mobile-dim-badges {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        gap: 0.3rem !important;
        flex: 1 1 auto !important;
    }

    .fl-mobile-dim-badges .fl-dim-pill {
        white-space: nowrap !important;
        font-size: 0.76rem !important;
        padding: 0.15rem 0.5rem !important;
        background: var(--fl-bg-surface-2, #F1F5F9) !important;
        color: var(--fl-text-secondary, #475569) !important;
        border-radius: 5px !important;
        border: 1px solid var(--fl-border, #E2E8F0) !important;
        font-weight: 500 !important;
        display: inline-block !important;
        text-align: right !important;
    }

    .fl-theme-dark .fl-mobile-dim-badges .fl-dim-pill {
        background: #142037 !important;
        color: #94A3B8 !important;
        border-color: #1E293B !important;
    }

    .fl-mobile-dim-badges .fl-cft-pill,
    .fl-mobile-dim-row .fl-cft-pill,
    .fl-cft-pill {
        white-space: nowrap !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0.2rem 0.6rem !important;
        font-weight: 700 !important;
        font-size: 0.82rem !important;
        border-radius: 6px !important;
        background: var(--fl-color-blue, #1565FF) !important;
        color: #FFFFFF !important;
    }

    /* Form Page Header Action Buttons 50/50 Grid (Customer, Product, Quotation) */
    .fl-form-page-header .fl-header-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.6rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .fl-form-page-header .fl-header-actions .fl-cancel-btn,
    .fl-form-page-header .fl-header-actions button.fl-cancel-btn {
        width: 100% !important;
        min-width: 0 !important;
        height: 42px !important;
        font-weight: 600 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 0.5rem !important;
        border-radius: 8px !important;
    }

    .fl-form-page-header .fl-header-actions .fl-save-btn,
    .fl-form-page-header .fl-header-actions button.fl-save-btn {
        width: 100% !important;
        min-width: 0 !important;
        height: 42px !important;
        font-weight: 600 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 0.5rem !important;
        border-radius: 8px !important;
        white-space: nowrap !important;
    }

    /* List Pages Filter Toolbar Mobile 2-Column Grid (Customers, Products, Quotations) */
    .fl-toolbar-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.65rem !important;
        align-items: center !important;
    }

    .fl-search-wrap {
        grid-column: span 2 !important;
        width: 100% !important;
    }

    .fl-filter-wrap {
        width: 100% !important;
    }

    .fl-refresh-btn-wrap {
        grid-column: span 2 !important;
        width: 100% !important;
    }

    .fl-refresh-btn,
    .fl-refresh-btn-wrap .e-btn {
        width: 100% !important;
        height: 38px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
        font-weight: 500 !important;
    }

    /* Detail / View Page Header Action Buttons Grid (Customer Detail, Product Detail) */
    .fl-page-header:not(:has(.fl-add-btn)) .fl-header-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.6rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .fl-page-header:not(:has(.fl-add-btn)) .fl-header-actions .e-btn {
        width: 100% !important;
        min-width: 0 !important;
        height: 40px !important;
        white-space: nowrap !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0.85rem !important;
        padding: 0 0.5rem !important;
        border-radius: 8px !important;
    }

    .fl-page-header:not(:has(.fl-add-btn)) .fl-header-actions .e-btn:nth-child(3) {
        grid-column: span 2 !important;
    }

    /* List Pages: Multiple Action Buttons (e.g. Suppliers, Stock) - Show in next line side-by-side */
    .fl-page-header:has(.fl-header-actions > :nth-child(2)) {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
        margin-bottom: 1rem !important;
    }

    .fl-page-header:has(.fl-header-actions > :nth-child(2)) .fl-header-left {
        width: 100% !important;
    }

    .fl-page-header:has(.fl-header-actions > :nth-child(2)) .fl-header-actions {
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.5rem !important;
        flex-wrap: nowrap !important;
    }

    .fl-page-header:has(.fl-header-actions > :nth-child(2)) .fl-header-actions .e-btn,
    .fl-page-header:has(.fl-header-actions > :nth-child(2)) .fl-header-actions .btn,
    .fl-page-header:has(.fl-header-actions > :nth-child(2)) .fl-add-btn,
    .fl-page-header:has(.fl-header-actions > :nth-child(2)) .fl-refresh-btn {
        flex: 1 1 0px !important;
        width: auto !important;
        min-width: 0 !important;
        height: 38px !important;
        font-weight: 600 !important;
        font-size: 0.85rem !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 8px !important;
        white-space: nowrap !important;
        padding: 0 0.5rem !important;
        margin: 0 !important;
    }

    /* List Pages: Single Action Button (Customers, Products, Invoices, Quotations, Users, Roles, etc.) - Show on SAME LINE as Module Text */
    :not([class*="-detail-container"]) > .fl-page-header:not(:has(.fl-header-actions > :nth-child(2))) {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 0.75rem !important;
        margin-bottom: 1rem !important;
    }

        :not([class*="-detail-container"]) > .fl-page-header:not(:has(.fl-header-actions > :nth-child(2))) .fl-header-left {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: auto !important;
    }

        :not([class*="-detail-container"]) > .fl-page-header:not(:has(.fl-header-actions > :nth-child(2))) .fl-page-title {
        font-size: 1.35rem !important;
        line-height: 1.25 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

        :not([class*="-detail-container"]) > .fl-page-header:not(:has(.fl-header-actions > :nth-child(2))) .fl-header-actions {
        display: flex !important;
        flex: 0 0 auto !important;
        width: auto !important;
        justify-content: flex-end !important;
        align-items: center !important;
        gap: 0.5rem !important;
        margin: 0 !important;
        flex-wrap: nowrap !important;
    }

            :not([class*="-detail-container"]) > .fl-page-header:not(:has(.fl-header-actions > :nth-child(2))) .fl-header-actions .e-btn,
            :not([class*="-detail-container"]) > .fl-page-header:not(:has(.fl-header-actions > :nth-child(2))) .fl-header-actions .fl-add-btn,
            :not([class*="-detail-container"]) > .fl-page-header:not(:has(.fl-header-actions > :nth-child(2))) .fl-add-btn,
            :not([class*="-detail-container"]) > .fl-page-header:not(:has(.fl-header-actions > :nth-child(2))) button.fl-add-btn {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: unset !important;
        height: 38px !important;
        font-weight: 600 !important;
        font-size: 0.85rem !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 8px !important;
        white-space: nowrap !important;
        padding: 0 0.85rem !important;
        margin: 0 !important;
    }

    /* Detail Pages (Stock, Product, Customer, Bill, etc.): Always Stack Header & Actions on Mobile */
    [class*="-detail-container"] .fl-page-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
        margin-bottom: 1rem !important;
    }

    [class*="-detail-container"] .fl-page-header .fl-header-left {
        width: 100% !important;
        flex: 1 1 100% !important;
        min-width: 0 !important;
    }

    [class*="-detail-container"] .fl-page-header .fl-header-actions {
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.5rem !important;
        flex-wrap: nowrap !important;
        margin: 0 !important;
    }

    [class*="-detail-container"] .fl-page-header .fl-header-actions .e-btn,
    [class*="-detail-container"] .fl-page-header .fl-header-actions .btn,
    [class*="-detail-container"] .fl-page-header .fl-header-actions a,
    [class*="-detail-container"] .fl-page-header .fl-header-actions .fl-pb-btn {
        flex: 1 1 0px !important;
        width: 100% !important;
        min-width: 0 !important;
        height: 38px !important;
        font-weight: 600 !important;
        font-size: 0.85rem !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 8px !important;
        white-space: nowrap !important;
        padding: 0 0.5rem !important;
        margin: 0 !important;
    }

    .fl-purchase-container,
    .fl-bill-page-container,
    .fl-bill-detail-container,
    .fl-supplier-container,
    .fl-supplier-page-container,
    .fl-stock-container,
    .fl-stock-page-container,
    .fl-customers-container,
    .fl-products-container,
    .fl-pricelists-container,
    .fl-quotations-container,
    .fl-branches-container,
    .fl-companies-container,
    .fl-tenants-container,
    .fl-invoices-container,
    .fl-customer-page-container,
    .fl-pricelist-page-container,
    .fl-product-page-container,
    .fl-product-detail-container,
    .fl-customer-detail-container,
    .fl-pricelist-detail-container,
    .fl-quotation-form-container,
    .fl-quotation-detail-container {
        padding: 0.75rem 0 0.5rem 0 !important;
    }

    .fl-grid-card {
        margin-bottom: 0.5rem !important;
    }
}

/* ==========================================================================
   Pricing Management & Slabs Styling (Dark Mode Compatible)
   ========================================================================== */
.fl-pricelists-container,
.fl-pricelist-page-container,
.fl-pricelist-detail-container {
    padding: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.fl-scheme-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--bg-hover, rgba(0, 0, 0, 0.05));
    color: var(--text-primary, #1e293b);
}

.fl-scheme-markup {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.fl-scheme-discount {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.fl-group-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-secondary, #64748b);
    font-weight: 500;
}

.fl-count-tag {
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--text-primary, #1e293b);
}

.fl-date-cell {
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.fl-date-sep {
    color: var(--text-muted, #94a3b8);
    font-size: 0.75rem;
}

.fl-empty-items {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--text-muted, #64748b);
}

.fl-empty-icon {
    font-size: 2.5rem;
    opacity: 0.5;
    margin-bottom: 0.75rem;
    display: block;
}

.fl-simulator-card {
    background: var(--bg-surface-elevated, #f8fafc);
    border: 1px dashed var(--border-color, #cbd5e1);
}

.fl-sim-result {
    background: var(--bg-surface, #ffffff);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color, #e2e8f0);
}

.fl-sim-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--text-secondary, #475569);
}

.fl-sim-divider {
    height: 1px;
    background: var(--border-color, #e2e8f0);
    margin: 8px 0;
}

.fl-sim-total {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.fl-header-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-gradient, linear-gradient(135deg, #3b82f6, #1d4ed8));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* â”€â”€â”€ Global Table Row Vertical Alignment for Editable Tables â”€â”€â”€â”€ */
.fl-card .e-grid .e-rowcell,
.fl-desktop-timber-grid .e-grid .e-rowcell {
    vertical-align: middle !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

.fl-card .e-grid .e-rowcell .fl-validation-error,
.fl-desktop-timber-grid .e-grid .e-rowcell .fl-validation-error {
    font-size: 0.75rem !important;
    color: #DC2626 !important;
    font-weight: 500 !important;
    margin-top: 4px !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    line-height: 1.2 !important;
}



/* â”€â”€ Report Preview Modal (Contained, Solid Header/Footer, Smooth Horizontal Swipe) â”€â”€ */
.fl-report-preview-dialog.e-dialog,
.fl-report-preview-dialog.e-popup {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    width: min(880px, 94vw) !important;
    max-width: min(880px, 94vw) !important;
    max-height: 90vh !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    z-index: 100050 !important;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45) !important;
    display: flex !important;
    flex-direction: column !important;
}

.fl-report-preview-dialog .e-dlg-header-content {
    flex-shrink: 0 !important;
    z-index: 10 !important;
    position: relative !important;
    padding: 12px 16px !important;
    background: #FFFFFF !important;
    border-bottom: 1px solid var(--fl-border, #E2E8F0) !important;
}

.fl-report-preview-dialog .e-dlg-content {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 10px !important;
    max-height: calc(88vh - 125px) !important;
    background-color: #F8FAFC !important;
    box-sizing: border-box !important;
}

.fl-report-preview-dialog .fl-preview-body {
    width: 100% !important;
    overflow: hidden !important;
    padding: 0 !important;
    background: transparent !important;
}

.fl-report-preview-dialog .fl-sheet-preview-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
    display: block !important;
    padding: 6px 2px 14px 2px !important;
    box-sizing: border-box !important;
}

.fl-report-sheet-paper {
    min-width: 760px !important;
    width: 760px !important;
    margin: 0 auto !important;
    background-color: #FFFFFF !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #E2E8F0 !important;
    box-sizing: border-box !important;
}

.fl-report-preview-dialog .e-footer-content,
.fl-report-preview-dialog .fl-dialog-footer {
    flex-shrink: 0 !important;
    z-index: 10 !important;
    position: relative !important;
    padding: 10px 14px !important;
    background: #FFFFFF !important;
    border-top: 1px solid var(--fl-border, #E2E8F0) !important;
}

.fl-report-preview-dialog .e-btn-icon,
.fl-dialog-footer .e-btn-icon {
    margin-right: 6px !important;
}

/* Total Sales & Sales Master Report Footer Aggregate Labels */
.fl-total-sales-footer-label,
.fl-sales-footer-total-label {
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important;
    color: inherit !important;
}

/* Ensure Grid Summary Footer Cells are Right-Aligned with Header & Data Rows */
.fl-reports-container .e-grid .e-summarycell {
    box-sizing: border-box !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    padding: 8px 10px !important;
}

.fl-reports-container .e-grid td.e-summarycell.e-rightalign,
.fl-reports-container .e-grid td.e-summarycell[style*="text-align: right"],
.fl-reports-container .e-grid td.e-summarycell .text-end {
    text-align: right !important;
    justify-content: flex-end !important;
}

.fl-reports-container .e-grid .e-table,
.fl-reports-container .e-grid .e-summarytable {
    border-collapse: collapse !important;
    table-layout: fixed !important;
}

.fl-reports-container .e-grid .e-rowcell,
.fl-reports-container .e-grid .e-summarycell,
.fl-reports-container .e-grid .e-headercell {
    box-sizing: border-box !important;
}

@media (max-width: 576px) {
    .fl-report-preview-dialog.e-dialog,
    .fl-report-preview-dialog.e-popup {
        width: 96vw !important;
        max-width: 96vw !important;
        max-height: 94vh !important;
    }

    .fl-report-preview-dialog .fl-dialog-footer {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: stretch !important;
        gap: 8px !important;
        padding: 8px 10px !important;
    }

    .fl-report-preview-dialog .fl-dialog-footer .fl-cancel-btn {
        flex: 1 1 calc(50% - 4px) !important;
        min-width: 110px !important;
        justify-content: center !important;
    }

    .fl-report-preview-dialog .fl-dialog-footer .fl-btn-pdf {
        flex: 1 1 calc(50% - 4px) !important;
        min-width: 110px !important;
        justify-content: center !important;
    }

    .fl-report-preview-dialog .fl-dialog-footer .fl-save-btn {
        flex: 1 1 100% !important;
        width: 100% !important;
        justify-content: center !important;
    }
}

/* Dark Theme Overrides for Report Preview Dialog */
html.fl-theme-dark .fl-report-preview-dialog.e-dialog,
body.fl-theme-dark .fl-report-preview-dialog.e-dialog,
.fl-theme-dark .fl-report-preview-dialog.e-dialog {
    background-color: #0F172A !important;
    border: 1px solid #1C2D4A !important;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5) !important;
}

html.fl-theme-dark .fl-report-preview-dialog .e-dlg-header-content,
body.fl-theme-dark .fl-report-preview-dialog .e-dlg-header-content,
.fl-theme-dark .fl-report-preview-dialog .e-dlg-header-content {
    background-color: #142037 !important;
    border-bottom: 1px solid #1C2D4A !important;
    color: #F8FAFC !important;
}

html.fl-theme-dark .fl-report-preview-dialog .e-dlg-content,
body.fl-theme-dark .fl-report-preview-dialog .e-dlg-content,
.fl-theme-dark .fl-report-preview-dialog .e-dlg-content {
    background-color: #0B132B !important;
    color: #F8FAFC !important;
}

html.fl-theme-dark .fl-report-preview-dialog .e-footer-content,
body.fl-theme-dark .fl-report-preview-dialog .e-footer-content,
html.fl-theme-dark .fl-report-preview-dialog .fl-dialog-footer,
body.fl-theme-dark .fl-report-preview-dialog .fl-dialog-footer,
.fl-theme-dark .fl-report-preview-dialog .fl-dialog-footer {
    background-color: #142037 !important;
    border-top: 1px solid #1C2D4A !important;
}

html.fl-theme-dark .fl-report-preview-dialog .e-dlg-closeicon-btn .e-btn-icon,
body.fl-theme-dark .fl-report-preview-dialog .e-dlg-closeicon-btn .e-btn-icon,
.fl-theme-dark .fl-report-preview-dialog .e-dlg-closeicon-btn .e-btn-icon {
    color: #94A3B8 !important;
}

/* â”€â”€ Receipt & Document Preview Modal (Single Clean Scrollbar) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-receipt-preview-dialog.e-dialog,
.fl-receipt-preview-dialog.e-popup {
    max-width: 96vw !important;
    min-width: 320px !important;
}

.fl-receipt-preview-dialog .e-dlg-content {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 12px 16px !important;
    max-height: calc(88vh - 100px) !important;
}

.fl-receipt-preview-dialog .e-dlg-content::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.fl-receipt-preview-dialog .e-dlg-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.fl-receipt-preview-dialog .e-dlg-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.fl-receipt-preview-dialog .e-dlg-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.fl-receipt-preview-dialog .fl-preview-body,
.fl-receipt-preview-dialog .fl-thermal-receipt-wrapper,
.fl-receipt-preview-dialog .fl-receipt-paper-surface,
.fl-receipt-preview-dialog .fl-thermal-preview-wrap,
.fl-receipt-preview-dialog .fl-sheet-preview-wrap {
    overflow: visible !important;
    overflow-y: visible !important;
    overflow-x: visible !important;
    max-height: none !important;
}

.fl-receipt-preview-dialog .fl-preview-top-toolbar {
    position: sticky;
    top: -12px;
    z-index: 20;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    background: #fff !important;
}

/* â”€â”€ Thermal Tally Table Column Distribution (58mm & 80mm) â”€â”€ */
.thermal-tally-table .th-sl,
.thermal-tally-table .td-sl {
    text-align: left !important;
    width: 16px !important;
    white-space: nowrap !important;
    padding: 1.5px 2px 1.5px 0 !important;
}

.thermal-tally-table .th-dim,
.thermal-tally-table .td-dim {
    text-align: center !important;
    width: 24px !important;
    min-width: 20px !important;
    white-space: nowrap !important;
    padding: 1.5px 2px !important;
}

.thermal-tally-table .th-pcs,
.thermal-tally-table .td-pcs {
    text-align: right !important;
    width: 36px !important;
    white-space: nowrap !important;
    padding: 1.5px 3px !important;
}

.thermal-tally-table .th-calc,
.thermal-tally-table .td-calc {
    text-align: right !important;
    width: 50px !important;
    white-space: nowrap !important;
    padding: 1.5px 3px !important;
}

.thermal-tally-table .th-rate,
.thermal-tally-table .td-rate {
    text-align: right !important;
    width: 46px !important;
    white-space: nowrap !important;
    padding: 1.5px 3px !important;
}

.thermal-tally-table .th-amt,
.thermal-tally-table .td-amt {
    text-align: right !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    padding: 1.5px 2px !important;
}

/* 58mm Specific: tighter spacing so SL/W has no excess gap and AMT does not overflow */
.fl-thermal-58 .thermal-tally-table {
    font-size: 8px !important;
}

.fl-thermal-58 .thermal-tally-table .th-sl,
.fl-thermal-58 .thermal-tally-table .td-sl {
    width: 13px !important;
    padding: 1.5px 1px 1.5px 0 !important;
}

.fl-thermal-58 .thermal-tally-table .th-dim,
.fl-thermal-58 .thermal-tally-table .td-dim {
    width: 18px !important;
    min-width: 16px !important;
    padding: 1.5px 1px !important;
}

.fl-thermal-58 .thermal-tally-table .th-pcs,
.fl-thermal-58 .thermal-tally-table .td-pcs {
    width: 28px !important;
    padding: 1.5px 2px !important;
}

.fl-thermal-58 .thermal-tally-table .th-calc,
.fl-thermal-58 .thermal-tally-table .td-calc {
    width: 42px !important;
    padding: 1.5px 2px !important;
}

.fl-thermal-58 .thermal-tally-table .th-rate,
.fl-thermal-58 .thermal-tally-table .td-rate {
    width: 38px !important;
    padding: 1.5px 2px !important;
}

.fl-thermal-58 .thermal-tally-table .th-amt,
.fl-thermal-58 .thermal-tally-table .td-amt {
    font-weight: 700 !important;
    padding: 1.5px 1px !important;
}

/* â”€â”€ Responsive Action Button Text Utilities â”€â”€ */
.fl-btn-text-desktop,
.fl-btn-module {
    display: inline;
}

.fl-btn-text-mobile {
    display: none;
}

@media (max-width: 768px) {

    .fl-btn-text-desktop,
    .fl-btn-module {
        display: none !important;
    }

    .fl-btn-text-mobile {
        display: inline !important;
    }
}

/* â”€â”€ Universal Responsive Page Headers & Containers (Generous Left/Right Padding) â”€â”€ */
@media (max-width: 992px) {
    .fl-form-page-header {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        padding: 1rem 1.25rem !important;
        box-sizing: border-box !important;
        border-radius: 14px !important;
        border: 1px solid var(--fl-border, #E2E8F0) !important;
        margin-bottom: 1.25rem !important;
    }

    .fl-theme-dark .fl-form-page-header {
        background: var(--fl-bg-surface, #0F1B32) !important;
        border-color: var(--fl-border, #1C2D4A) !important;
    }

    .fl-page-header {
        padding: 0.5rem 0 !important;
        box-sizing: border-box !important;
    }

    /* Universal Mobile Edge-to-Edge Container Alignment (List, Form, and Add/Edit Pages) */
    .fl-stock-container,
    .fl-supplier-container,
    .fl-purchase-container,
    .fl-settings-page-container,
    .fl-stock-page-container,
    .fl-supplier-page-container,
    .fl-bill-page-container,
    .fl-customer-page-container,
    .fl-product-page-container,
    .fl-invoice-form-container,
    .fl-quotation-form-container,
    .fl-user-page-container,
    .fl-role-page-container,
    .fl-pricelist-page-container,
    .fl-profile-page-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .fl-stock-container .fl-page-header,
    .fl-supplier-container .fl-page-header,
    .fl-purchase-container .fl-page-header {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .fl-stock-container .fl-header-actions .fl-refresh-btn,
    .fl-supplier-container .fl-header-actions .fl-refresh-btn {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 0 !important;
        padding: 0 0.55rem !important;
        display: inline-flex !important;
    }

    .fl-stock-container .fl-header-actions .fl-refresh-btn span,
    .fl-supplier-container .fl-header-actions .fl-refresh-btn span {
        display: inline !important;
    }

    .breadcrumb-trail {
        margin-bottom: 0.4rem !important;
    }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   GLOBAL DARK MODE TEXT VISIBILITY & CONTRAST (SETTINGS & TOUR)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
html.fl-theme-dark .text-muted,
.fl-theme-dark .text-muted,
body.fl-theme-dark .text-muted {
    color: #94A3B8 !important;
}

html.fl-theme-dark .alert-info,
.fl-theme-dark .alert-info {
    background: rgba(6, 182, 212, 0.15) !important;
    border-color: rgba(6, 182, 212, 0.35) !important;
    color: #67E8F9 !important;
}

/* Settings Sub-Tabs in Dark Mode */
html.fl-theme-dark .fl-settings-tabs-nav,
.fl-theme-dark .fl-settings-tabs-nav {
    background: #142037 !important;
    border-color: #1E2D4A !important;
}

html.fl-theme-dark .fl-settings-tab-btn,
.fl-theme-dark .fl-settings-tab-btn {
    color: #94A3B8 !important;
}

html.fl-theme-dark .fl-settings-tab-btn:hover,
.fl-theme-dark .fl-settings-tab-btn:hover {
    color: #FFFFFF !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

html.fl-theme-dark .fl-settings-tab-btn.is-active,
.fl-theme-dark .fl-settings-tab-btn.is-active {
    color: #60A5FA !important;
    background: #0F1B32 !important;
    border-color: #1E2D4A !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
}

/* Settings Industry & Business Type Cards in Dark Mode */
html.fl-theme-dark .fl-industry-card,
.fl-theme-dark .fl-industry-card {
    background: #0F1B32 !important;
    border-color: #1E2D4A !important;
}

html.fl-theme-dark .fl-industry-card:hover,
.fl-theme-dark .fl-industry-card:hover {
    border-color: #3B82F6 !important;
}

html.fl-theme-dark .fl-industry-card.is-selected,
.fl-theme-dark .fl-industry-card.is-selected {
    background: #142037 !important;
    border-color: #3B82F6 !important;
}

html.fl-theme-dark .fl-industry-card__title,
.fl-theme-dark .fl-industry-card__title {
    color: #FFFFFF !important;
}

html.fl-theme-dark .fl-industry-card__desc,
.fl-theme-dark .fl-industry-card__desc,
html.fl-theme-dark .fl-industry-card p,
.fl-theme-dark .fl-industry-card p {
    color: #94A3B8 !important;
}

html.fl-theme-dark .fl-industry-card small,
.fl-theme-dark .fl-industry-card small {
    color: #CBD5E1 !important;
}

html.fl-theme-dark .fl-industry-tag,
.fl-theme-dark .fl-industry-tag {
    background: #1E293B !important;
    color: #94A3B8 !important;
    border-color: #334155 !important;
}

html.fl-theme-dark .fl-unlock-pill,
.fl-theme-dark .fl-unlock-pill {
    background: rgba(96, 165, 250, 0.15) !important;
    color: #60A5FA !important;
    border-color: rgba(96, 165, 250, 0.3) !important;
}

html.fl-theme-dark .fl-stock-callout,
.fl-theme-dark .fl-stock-callout,
html.fl-theme-dark .fl-profile-hero,
.fl-theme-dark .fl-profile-hero,
html.fl-theme-dark .fl-field-config-row,
.fl-theme-dark .fl-field-config-row {
    background: #142037 !important;
    background-color: #142037 !important;
    border-color: #1E2D4A !important;
}

html.fl-theme-light .fl-stock-callout,
body.fl-theme-light .fl-stock-callout,
.fl-theme-light .fl-stock-callout,
html.fl-theme-light .fl-profile-hero,
body.fl-theme-light .fl-profile-hero,
.fl-theme-light .fl-profile-hero,
html.fl-theme-light .fl-field-config-row,
body.fl-theme-light .fl-field-config-row,
.fl-theme-light .fl-field-config-row {
    background: #F8FAFC !important;
    background-color: #F8FAFC !important;
    border-color: #E2E8F0 !important;
}

html.fl-theme-dark .fl-stock-callout__title,
.fl-theme-dark .fl-stock-callout__title,
html.fl-theme-dark .fl-profile-hero__title,
.fl-theme-dark .fl-profile-hero__title,
html.fl-theme-dark .fl-field-name-title,
.fl-theme-dark .fl-field-name-title,
html.fl-theme-dark .fl-field-section-title,
.fl-theme-dark .fl-field-section-title,
html.fl-theme-dark .fl-toggle-label,
.fl-theme-dark .fl-toggle-label {
    color: #FFFFFF !important;
}

html.fl-theme-light .fl-stock-callout__title,
body.fl-theme-light .fl-stock-callout__title,
.fl-theme-light .fl-stock-callout__title,
html.fl-theme-light .fl-profile-hero__title,
body.fl-theme-light .fl-profile-hero__title,
.fl-theme-light .fl-profile-hero__title,
html.fl-theme-light .fl-field-name-title,
body.fl-theme-light .fl-field-name-title,
.fl-theme-light .fl-field-name-title,
html.fl-theme-light .fl-field-section-title,
body.fl-theme-light .fl-field-section-title,
.fl-theme-light .fl-field-section-title,
html.fl-theme-light .fl-toggle-label,
body.fl-theme-light .fl-toggle-label,
.fl-theme-light .fl-toggle-label {
    color: #0F172A !important;
}

html.fl-theme-dark .fl-stock-callout__desc,
.fl-theme-dark .fl-stock-callout__desc,
html.fl-theme-dark .fl-profile-hero__meta,
.fl-theme-dark .fl-profile-hero__meta,
html.fl-theme-dark .fl-field-section-desc,
.fl-theme-dark .fl-field-section-desc {
    color: #94A3B8 !important;
}

html.fl-theme-light .fl-stock-callout__desc,
body.fl-theme-light .fl-stock-callout__desc,
.fl-theme-light .fl-stock-callout__desc,
html.fl-theme-light .fl-profile-hero__meta,
body.fl-theme-light .fl-profile-hero__meta,
.fl-theme-light .fl-profile-hero__meta,
html.fl-theme-light .fl-field-section-desc,
body.fl-theme-light .fl-field-section-desc,
.fl-theme-light .fl-field-section-desc {
    color: #64748B !important;
}

html.fl-theme-dark .fl-badge-neutral,
.fl-theme-dark .fl-badge-neutral {
    background: rgba(148, 163, 184, 0.15) !important;
    color: #E2E8F0 !important;
    border-color: rgba(148, 163, 184, 0.3) !important;
}

html.fl-theme-dark .fl-badge-primary,
.fl-theme-dark .fl-badge-primary {
    background: rgba(37, 99, 235, 0.25) !important;
    color: #93C5FD !important;
    border-color: rgba(37, 99, 235, 0.45) !important;
}

html.fl-theme-dark .fl-badge-success,
.fl-theme-dark .fl-badge-success {
    background: rgba(34, 197, 94, 0.2) !important;
    color: #86EFAC !important;
    border-color: rgba(34, 197, 94, 0.4) !important;
}

html.fl-theme-dark .fl-capability-card,
.fl-theme-dark .fl-capability-card {
    background: #0F1B32 !important;
    border-color: #1E2D4A !important;
}

html.fl-theme-dark .fl-capability-card.is-active,
.fl-theme-dark .fl-capability-card.is-active {
    border-color: rgba(96, 165, 250, 0.45) !important;
}

html.fl-theme-dark .fl-capability-card__title,
.fl-theme-dark .fl-capability-card__title {
    color: #FFFFFF !important;
}

html.fl-theme-dark .fl-capability-card__desc,
.fl-theme-dark .fl-capability-card__desc {
    color: #94A3B8 !important;
}

html.fl-theme-dark .fl-filter-chip,
.fl-theme-dark .fl-filter-chip {
    background: #142037 !important;
    border-color: #1E2D4A !important;
    color: #94A3B8 !important;
}

html.fl-theme-dark .fl-filter-chip:hover,
.fl-theme-dark .fl-filter-chip:hover {
    color: #60A5FA !important;
    border-color: #3B82F6 !important;
}

html.fl-theme-dark .fl-filter-chip.is-active,
.fl-theme-dark .fl-filter-chip.is-active {
    background: #2563EB !important;
    color: #FFFFFF !important;
    border-color: #2563EB !important;
}

/* Tour Modal in Dark Mode */
html.fl-theme-dark .fl-tour-modal,
.fl-theme-dark .fl-tour-modal {
    background: #0F1B32 !important;
    border-color: #1E2D4A !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7) !important;
}

html.fl-theme-dark .fl-tour-header,
.fl-theme-dark .fl-tour-header,
html.fl-theme-dark .fl-tour-footer,
.fl-theme-dark .fl-tour-footer {
    background: #142037 !important;
    border-color: #1E2D4A !important;
}

html.fl-theme-dark .fl-tour-title,
.fl-theme-dark .fl-tour-title {
    color: #FFFFFF !important;
}

html.fl-theme-dark .fl-tour-desc,
.fl-theme-dark .fl-tour-desc,
html.fl-theme-dark .fl-tour-step-label-text,
.fl-theme-dark .fl-tour-step-label-text,
html.fl-theme-dark .fl-tour-close-btn,
.fl-theme-dark .fl-tour-close-btn {
    color: #94A3B8 !important;
}

html.fl-theme-dark .fl-tour-feature-item,
.fl-theme-dark .fl-tour-feature-item,
html.fl-theme-dark .fl-tour-mini-card,
.fl-theme-dark .fl-tour-mini-card {
    background: #142037 !important;
    border-color: #1E2D4A !important;
}

html.fl-theme-dark .fl-tour-feature-item:hover,
.fl-theme-dark .fl-tour-feature-item:hover,
html.fl-theme-dark .fl-tour-mini-card:hover,
.fl-theme-dark .fl-tour-mini-card:hover {
    background: #1E293B !important;
    border-color: #3B82F6 !important;
}

html.fl-theme-dark .fl-feature-text strong,
.fl-theme-dark .fl-feature-text strong,
html.fl-theme-dark .fl-tour-mini-card strong,
.fl-theme-dark .fl-tour-mini-card strong {
    color: #FFFFFF !important;
}

html.fl-theme-dark .fl-feature-text p,
.fl-theme-dark .fl-feature-text p,
html.fl-theme-dark .fl-tour-mini-card span,
.fl-theme-dark .fl-tour-mini-card span {
    color: #94A3B8 !important;
}

html.fl-theme-dark .fl-tour-tip-banner,
.fl-theme-dark .fl-tour-tip-banner {
    background: rgba(245, 158, 11, 0.15) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
    color: #FCD34D !important;
}


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   TOPBAR BRANCH SELECTOR & DROPDOWN STYLES (SYNCFUSION SFDROPDOWNBUTTON)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.fl-branch-wrap {
    display: inline-flex;
    align-items: center;
    position: relative;
    min-width: 250px;
    max-width: 360px;
    width: auto;
}

@media (max-width: 857px) {
    .fl-branch-wrap {
        min-width: 200px !important;
        max-width: 240px !important;
        flex-shrink: 0 !important;
    }
}

@media (max-width: 480px) {
    .fl-branch-wrap {
        min-width: 160px !important;
        max-width: 180px !important;
    }
}

/* Syncfusion SfDropDownList Selected Value Alignment */
.fl-branch-sf-ddl .fl-branch-ddl-val {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 0 4px !important;
    width: 100% !important;
    overflow: hidden !important;
    line-height: 1 !important;
}

.fl-branch-val-comp-icon {
    font-size: 13px !important;
    color: #3B82F6 !important;
    flex-shrink: 0 !important;
}

.fl-branch-val-comp {
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: #0F172A !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 130px !important;
}

.fl-branch-val-sep {
    font-size: 10px !important;
    color: #94A3B8 !important;
    flex-shrink: 0 !important;
    margin: 0 1px !important;
}

.fl-branch-val-branch-icon {
    font-size: 12px !important;
    color: #10B981 !important;
    flex-shrink: 0 !important;
}

.fl-branch-val-text {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 110px !important;
}

/* Syncfusion SfDropDownList Popup for Branch Selector */
.e-popup.e-ddl.fl-branch-sf-ddl,
.e-dropdownbase.fl-branch-sf-ddl {
    border-radius: 10px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #E2E8F0 !important;
    overflow: hidden !important;
}

.e-popup.e-ddl.fl-branch-sf-ddl .e-content,
.e-dropdownbase.fl-branch-sf-ddl .e-content {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

.e-popup.e-ddl.fl-branch-sf-ddl .e-list-item,
.e-dropdownbase.fl-branch-sf-ddl .e-list-item {
    padding: 6px 12px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: center !important;
    line-height: normal !important;
}

/* Group Headers (Light Mode) */
.e-popup.e-ddl.fl-branch-sf-ddl .e-list-group-item,
.e-dropdownbase.fl-branch-sf-ddl .e-list-group-item,
.e-popup.e-ddl .e-list-group-item,
.e-dropdownbase .e-list-group-item {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: #2563EB !important;
    background: #F1F5F9 !important;
    border-bottom: 1px solid #E2E8F0 !important;
    border-top: 1px solid #E2E8F0 !important;
    padding: 6px 14px !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

.fl-branch-ddl-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    line-height: normal !important;
    padding: 2px 0 !important;
}

.fl-branch-ddl-icon {
    font-size: 13px !important;
    color: #64748B !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.fl-branch-ddl-item--hq .fl-branch-ddl-icon {
    color: #F59E0B !important;
}

.fl-branch-ddl-name {
    flex: 1 1 auto !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #0F172A !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-width: 0 !important;
    line-height: normal !important;
}

.fl-branch-check-icon {
    font-size: 13px !important;
    font-weight: bold !important;
    color: #3B82F6 !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
}

.fl-branch-ddl-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
    height: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    line-height: 1 !important;
    padding: 0 6px !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    letter-spacing: 0.4px !important;
    background: rgba(37, 99, 235, 0.1) !important;
    color: #2563EB !important;
    border: 1px solid rgba(37, 99, 235, 0.2) !important;
    border-radius: 4px !important;
    flex-shrink: 0 !important;
    text-align: center !important;
    box-sizing: border-box !important;
    margin-left: 6px !important;
}

.fl-branch-val-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
    height: 16px !important;
    min-height: 16px !important;
    max-height: 16px !important;
    line-height: 1 !important;
    padding: 0 5px !important;
    font-size: 8.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.4px !important;
    background: #2563EB !important;
    color: #FFFFFF !important;
    border-radius: 3px !important;
    flex-shrink: 0 !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

.fl-branch-ddl-footer {
    padding: 8px 12px !important;
    border-top: 1px solid #E2E8F0 !important;
    display: flex !important;
    gap: 8px !important;
    background: #F8FAFC !important;
    overflow: hidden !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.fl-branch-action-btn {
    flex: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 6px 10px !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    color: #2563EB !important;
    background: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 150ms ease !important;
    white-space: nowrap !important;
}

.fl-branch-action-btn:hover {
    background: #EFF6FF !important;
    border-color: #3B82F6 !important;
    color: #1D4ED8 !important;
}

/* Dark Theme Dropdown Support */
.fl-theme-dark .e-popup.e-ddl.fl-branch-sf-ddl,
.fl-theme-dark .e-dropdownbase.fl-branch-sf-ddl,
.fl-theme-dark .e-popup.e-ddl,
.fl-theme-dark .e-dropdownbase {
    background: #0F172A !important;
    border-color: #1E293B !important;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.5) !important;
}

.fl-theme-dark .fl-branch-val-comp {
    color: #F8FAFC !important;
}

.fl-theme-dark .fl-branch-val-text {
    color: #94A3B8 !important;
}

.fl-theme-dark .fl-branch-ddl-name {
    color: #F1F5F9 !important;
}

.fl-theme-dark .fl-branch-ddl-badge {
    background: rgba(59, 130, 246, 0.2) !important;
    color: #60A5FA !important;
    border-color: rgba(59, 130, 246, 0.35) !important;
}

.fl-theme-dark .fl-branch-val-badge {
    background: #2563EB !important;
    color: #FFFFFF !important;
}

.fl-theme-dark .fl-branch-ddl-footer {
    background: #0B132B !important;
    border-color: #1E293B !important;
}

.fl-theme-dark .fl-branch-action-btn {
    background: #1E293B !important;
    border-color: #334155 !important;
    color: #93C5FD !important;
}

.fl-theme-dark .fl-branch-action-btn:hover {
    background: #2563EB !important;
    border-color: #3B82F6 !important;
    color: #FFFFFF !important;
}

.fl-theme-dark .e-popup.e-ddl.fl-branch-sf-ddl .e-list-group-item,
.fl-theme-dark .e-dropdownbase.fl-branch-sf-ddl .e-list-group-item,
.fl-theme-dark .e-popup.e-ddl .e-list-group-item,
.fl-theme-dark .e-dropdownbase .e-list-group-item,
.fl-theme-dark .e-list-group-item {
    background: #0B132B !important;
    color: #60A5FA !important;
    border-color: #1E293B !important;
}

.fl-theme-dark .e-popup.e-ddl.fl-branch-sf-ddl .e-list-item:hover,
.fl-theme-dark .e-dropdownbase.fl-branch-sf-ddl .e-list-item:hover {
    background: rgba(59, 130, 246, 0.15) !important;
}

.fl-theme-dark .e-popup.e-ddl.fl-branch-sf-ddl .e-list-item.e-active,
.fl-theme-dark .e-dropdownbase.fl-branch-sf-ddl .e-list-item.e-active {
    background: rgba(59, 130, 246, 0.25) !important;
}

.fl-branch-sf-btn.e-dropdown-btn {
    height: 36px !important;
    border-radius: 20px !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    padding: 0 14px !important;
    font-family: var(--fl-font-ui, 'Inter', sans-serif) !important;
    border: 1px solid #E2E8F0 !important;
    background: #F8FAFC !important;
    color: #1E293B !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.fl-theme-dark .fl-branch-sf-btn.e-dropdown-btn {
    background: rgba(30, 41, 59, 0.7) !important;
    border-color: #334155 !important;
    color: #F1F5F9 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

.fl-branch-sf-btn.e-dropdown-btn:hover {
    border-color: #3B82F6 !important;
    background: #EFF6FF !important;
    color: #1D4ED8 !important;
}

.fl-theme-dark .fl-branch-sf-btn.e-dropdown-btn:hover {
    border-color: #60A5FA !important;
    background: rgba(59, 130, 246, 0.15) !important;
    color: #93C5FD !important;
}

.fl-theme-dark .fl-branch-btn:hover,
.fl-theme-dark .fl-branch-btn.active {
    border-color: #60A5FA;
    background: rgba(59, 130, 246, 0.15);
    color: #93C5FD;
}

.fl-branch-icon {
    display: flex;
    align-items: center;
    color: #3B82F6;
}

.fl-theme-dark .fl-branch-icon {
    color: #60A5FA;
}

.fl-branch-text {
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fl-branch-caret {
    transition: transform 0.2s ease;
    opacity: 0.7;
}

.fl-branch-caret--up {
    transform: rotate(180deg);
}

.fl-branch-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 280px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    z-index: 1100;
    padding: 8px 0;
    animation: flSlideDown 0.18s ease-out;
}

.fl-theme-dark .fl-branch-dropdown {
    background: #0F172A;
    border-color: #334155;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.5);
}

.fl-branch-dropdown__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    border-bottom: 1px solid #F1F5F9;
}

.fl-theme-dark .fl-branch-dropdown__header {
    border-bottom-color: #1E293B;
}

.fl-branch-dropdown__title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #64748B;
    text-transform: uppercase;
}

.fl-branch-dropdown__list {
    max-height: 260px;
    overflow-y: auto;
    padding: 4px 0;
}

.fl-branch-dropdown__item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 16px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}

.fl-branch-dropdown__item:hover {
    background: #F8FAFC;
}

.fl-theme-dark .fl-branch-dropdown__item:hover {
    background: #1E293B;
}

.fl-branch-dropdown__item.selected {
    background: #EFF6FF;
}

.fl-theme-dark .fl-branch-dropdown__item.selected {
    background: rgba(59, 130, 246, 0.12);
}

.fl-branch-item-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.fl-branch-item-content {
    flex: 1;
    min-width: 0;
}

.fl-branch-item-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1E293B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fl-theme-dark .fl-branch-item-name {
    color: #F8FAFC;
}

.fl-branch-item-desc {
    font-size: 0.75rem;
    color: #64748B;
    margin-top: 1px;
}

.fl-theme-dark .fl-branch-item-desc {
    color: #94A3B8;
}

.fl-branch-check {
    font-size: 0.9rem;
    font-weight: 700;
    color: #3B82F6;
}

.fl-branch-dropdown__footer {
    padding: 6px 12px;
    border-top: 1px solid #F1F5F9;
    margin-top: 4px;
}

.fl-theme-dark .fl-branch-dropdown__footer {
    border-top-color: #1E293B;
}

.fl-branch-dropdown__action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #3B82F6;
    background: transparent;
    border: 1px dashed #BFDBFE;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.fl-branch-dropdown__action-btn:hover {
    background: #EFF6FF;
    border-color: #3B82F6;
}

.fl-theme-dark .fl-branch-dropdown__action-btn {
    color: #60A5FA;
    border-color: #1E3A8A;
}

.fl-theme-dark .fl-branch-dropdown__action-btn:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: #60A5FA;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
/*  SuperAdmin & Platform Administration Dark Theme Adaptations          */
/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Universal Dark Theme Text-Dark Override Safeguard â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-theme-dark .text-dark,
html.fl-theme-dark .text-dark,
.fl-theme-dark span.text-dark,
.fl-theme-dark div.text-dark,
.fl-theme-dark p.text-dark,
.fl-theme-dark a.text-dark,
.fl-theme-dark strong.text-dark {
    color: var(--fl-text-primary, #E2E8F0) !important;
}

.fl-theme-dark .text-muted,
html.fl-theme-dark .text-muted {
    color: #94A3B8 !important;
}

.fl-theme-dark .text-secondary,
html.fl-theme-dark .text-secondary {
    color: #94A3B8 !important;
}

/* â”€â”€ Topbar SuperAdmin Plan Pill Dark Theme â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-theme-dark .fl-plan-pill-superadmin,
html.fl-theme-dark .fl-plan-pill-superadmin {
    background: rgba(59, 130, 246, 0.2) !important;
    color: #60A5FA !important;
    border: 1px solid rgba(96, 165, 250, 0.5) !important;
}

.fl-theme-dark .fl-plan-pill-superadmin:hover,
html.fl-theme-dark .fl-plan-pill-superadmin:hover {
    background: rgba(59, 130, 246, 0.35) !important;
    color: #FFFFFF !important;
    border-color: #93C5FD !important;
}

/* â”€â”€ Topbar Custom Plan Pill Teal Styling â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-plan-pill-custom {
    background: rgba(13, 148, 136, 0.12) !important;
    color: #0D9488 !important;
    border: 1px solid rgba(13, 148, 136, 0.35) !important;
}

.fl-plan-pill-custom:hover {
    background: rgba(13, 148, 136, 0.22) !important;
    border-color: #0D9488 !important;
    color: #0F766E !important;
}

.fl-theme-dark .fl-plan-pill-custom,
html.fl-theme-dark .fl-plan-pill-custom {
    background: rgba(20, 184, 166, 0.2) !important;
    color: #2DD4BF !important;
    border: 1px solid rgba(45, 212, 191, 0.45) !important;
}

.fl-theme-dark .fl-plan-pill-custom:hover,
html.fl-theme-dark .fl-plan-pill-custom:hover {
    background: rgba(20, 184, 166, 0.32) !important;
    border-color: #2DD4BF !important;
    color: #5EEAD4 !important;
}

/* â”€â”€ Licensing & Plans Dark Theme Badges & Text (Bugs 2, 3, 4) â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-theme-dark .fl-stat-sub,
html.fl-theme-dark .fl-stat-sub {
    color: #94A3B8 !important;
}

.fl-theme-dark .fl-badge-trial,
html.fl-theme-dark .fl-badge-trial {
    background: rgba(148, 163, 184, 0.2) !important;
    color: #F1F5F9 !important;
    border: 1px solid rgba(148, 163, 184, 0.4) !important;
}

/* â”€â”€ MODULE & FEATURE Pills Dark Theme (Bug 3 Fix) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-theme-dark .fl-badge-module-pill,
html.fl-theme-dark .fl-badge-module-pill,
body.fl-theme-dark .fl-badge-module-pill,
body:has(.fl-theme-dark) .fl-badge-module-pill,
.e-dialog.fl-theme-dark .fl-badge-module-pill,
body.fl-theme-dark .fl-custom-dialog .fl-badge-module-pill,
html.fl-theme-dark .fl-custom-dialog .fl-badge-module-pill {
    background: rgba(37, 99, 235, 0.25) !important;
    color: #60A5FA !important;
    border: 1px solid rgba(96, 165, 250, 0.4) !important;
}

.fl-theme-dark .fl-badge-feature-pill,
html.fl-theme-dark .fl-badge-feature-pill,
body.fl-theme-dark .fl-badge-feature-pill,
body:has(.fl-theme-dark) .fl-badge-feature-pill,
.e-dialog.fl-theme-dark .fl-badge-feature-pill,
body.fl-theme-dark .fl-custom-dialog .fl-badge-feature-pill,
html.fl-theme-dark .fl-custom-dialog .fl-badge-feature-pill {
    background: rgba(217, 119, 6, 0.25) !important;
    color: #FBBF24 !important;
    border: 1px solid rgba(251, 191, 36, 0.4) !important;
}

/* â”€â”€ Plan Version Snapshot Summary Card in Light Theme â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-version-summary-card,
.e-dialog.fl-theme-light .fl-version-summary-card,
.fl-theme-light .fl-version-summary-card {
    background-color: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    color: #1E293B !important;
}

.fl-change-reason-text,
.e-dialog.fl-theme-light .fl-change-reason-text,
.fl-theme-light .fl-change-reason-text {
    color: #334155 !important;
}

.fl-version-price,
.fl-version-val,
.e-dialog.fl-theme-light .fl-version-price,
.e-dialog.fl-theme-light .fl-version-val,
.fl-theme-light .fl-version-price,
.fl-theme-light .fl-version-val {
    color: #0F172A !important;
}

.fl-modal-subheading,
.fl-diff-item-name,
.fl-roster-feature-active,
.e-dialog.fl-theme-light .fl-modal-subheading,
.e-dialog.fl-theme-light .fl-diff-item-name,
.e-dialog.fl-theme-light .fl-roster-feature-active,
.fl-theme-light .fl-modal-subheading,
.fl-theme-light .fl-diff-item-name,
.fl-theme-light .fl-roster-feature-active {
    color: #0F172A !important;
}

.fl-quota-diff-badge,
.e-dialog.fl-theme-light .fl-quota-diff-badge,
.fl-theme-light .fl-quota-diff-badge {
    background-color: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    color: #1E293B !important;
}

.fl-roster-box,
.e-dialog.fl-theme-light .fl-roster-box,
.fl-theme-light .fl-roster-box {
    background-color: #F8FAFC !important;
    border-color: #E2E8F0 !important;
}

/* â”€â”€ Plan Version Snapshot Summary Card in Dark Theme (Bug 2 Fix) â”€â”€â”€â”€ */
.fl-theme-dark .fl-version-summary-card,
html.fl-theme-dark .fl-version-summary-card,
body.fl-theme-dark .fl-version-summary-card,
body.fl-theme-dark .fl-custom-dialog .fl-version-summary-card,
html.fl-theme-dark .fl-custom-dialog .fl-version-summary-card,
.fl-theme-dark .e-dialog .fl-version-summary-card,
.e-dialog.fl-theme-dark .fl-version-summary-card {
    background-color: #142037 !important;
    border-color: #1C2D4A !important;
    color: #E2E8F0 !important;
}

.fl-theme-dark .fl-change-reason-text,
html.fl-theme-dark .fl-change-reason-text,
body.fl-theme-dark .fl-change-reason-text,
body.fl-theme-dark .fl-custom-dialog .fl-change-reason-text,
html.fl-theme-dark .fl-custom-dialog .fl-change-reason-text,
.fl-theme-dark .e-dialog .fl-change-reason-text,
.e-dialog.fl-theme-dark .fl-change-reason-text {
    color: #E2E8F0 !important;
}

.fl-theme-dark .fl-version-price,
.fl-theme-dark .fl-version-val,
html.fl-theme-dark .fl-version-price,
html.fl-theme-dark .fl-version-val,
body.fl-theme-dark .fl-version-price,
body.fl-theme-dark .fl-version-val,
body.fl-theme-dark .fl-custom-dialog .fl-version-price,
body.fl-theme-dark .fl-custom-dialog .fl-version-val,
html.fl-theme-dark .fl-custom-dialog .fl-version-price,
html.fl-theme-dark .fl-custom-dialog .fl-version-val,
.fl-theme-dark .e-dialog .fl-version-price,
.fl-theme-dark .e-dialog .fl-version-val,
.e-dialog.fl-theme-dark .fl-version-price,
.e-dialog.fl-theme-dark .fl-version-val {
    color: #FFFFFF !important;
}

.fl-theme-dark .fl-modal-subheading,
.fl-theme-dark .fl-diff-item-name,
.fl-theme-dark .fl-roster-feature-active,
html.fl-theme-dark .fl-modal-subheading,
html.fl-theme-dark .fl-diff-item-name,
html.fl-theme-dark .fl-roster-feature-active,
body.fl-theme-dark .fl-modal-subheading,
body.fl-theme-dark .fl-diff-item-name,
body.fl-theme-dark .fl-roster-feature-active,
body.fl-theme-dark .fl-custom-dialog .fl-modal-subheading,
body.fl-theme-dark .fl-custom-dialog .fl-diff-item-name,
body.fl-theme-dark .fl-custom-dialog .fl-roster-feature-active,
html.fl-theme-dark .fl-custom-dialog .fl-modal-subheading,
html.fl-theme-dark .fl-custom-dialog .fl-diff-item-name,
html.fl-theme-dark .fl-custom-dialog .fl-roster-feature-active,
.fl-theme-dark .e-dialog .fl-modal-subheading,
.fl-theme-dark .e-dialog .fl-diff-item-name,
.fl-theme-dark .e-dialog .fl-roster-feature-active,
.e-dialog.fl-theme-dark .fl-modal-subheading,
.e-dialog.fl-theme-dark .fl-diff-item-name,
.e-dialog.fl-theme-dark .fl-roster-feature-active {
    color: #FFFFFF !important;
}

.fl-theme-dark .fl-quota-diff-badge,
html.fl-theme-dark .fl-quota-diff-badge,
body.fl-theme-dark .fl-quota-diff-badge,
body.fl-theme-dark .fl-custom-dialog .fl-quota-diff-badge,
html.fl-theme-dark .fl-custom-dialog .fl-quota-diff-badge,
.fl-theme-dark .e-dialog .fl-quota-diff-badge,
.e-dialog.fl-theme-dark .fl-quota-diff-badge {
    background-color: #142037 !important;
    border-color: #1C2D4A !important;
    color: #E2E8F0 !important;
}

.fl-theme-dark .fl-roster-box,
html.fl-theme-dark .fl-roster-box,
body.fl-theme-dark .fl-roster-box,
body.fl-theme-dark .fl-custom-dialog .fl-roster-box,
html.fl-theme-dark .fl-custom-dialog .fl-roster-box,
.fl-theme-dark .e-dialog .fl-roster-box,
.e-dialog.fl-theme-dark .fl-roster-box {
    background-color: #0F1B32 !important;
    border-color: #1C2D4A !important;
}

/* â”€â”€ Universal Disabled Button Dark Theme Override (Bug 1 Fix) â”€â”€â”€â”€â”€â”€ */
.fl-theme-dark .e-btn:disabled,
.fl-theme-dark .e-btn.e-disabled,
.fl-theme-dark button:disabled,
html.fl-theme-dark .e-btn:disabled,
html.fl-theme-dark .e-btn.e-disabled,
html.fl-theme-dark button:disabled,
body.fl-theme-dark .e-btn:disabled,
body.fl-theme-dark .e-btn.e-disabled,
body.fl-theme-dark button:disabled,
body:has(.fl-theme-dark) .e-btn:disabled,
body:has(.fl-theme-dark) .e-btn.e-disabled,
body:has(.fl-theme-dark) button:disabled {
    background-color: rgba(255, 255, 255, 0.08) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.35) !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

.fl-theme-dark .e-btn:disabled .e-btn-icon,
.fl-theme-dark .e-btn:disabled .e-icons,
.fl-theme-dark .e-btn.e-disabled .e-btn-icon,
.fl-theme-dark .e-btn.e-disabled .e-icons,
html.fl-theme-dark .e-btn:disabled .e-btn-icon,
html.fl-theme-dark .e-btn:disabled .e-icons,
html.fl-theme-dark .e-btn.e-disabled .e-btn-icon,
html.fl-theme-dark .e-btn.e-disabled .e-icons,
body.fl-theme-dark .e-btn:disabled .e-btn-icon,
body.fl-theme-dark .e-btn:disabled .e-icons,
body.fl-theme-dark .e-btn.e-disabled .e-btn-icon,
body.fl-theme-dark .e-btn.e-disabled .e-icons,
body:has(.fl-theme-dark) .e-btn:disabled .e-btn-icon,
body:has(.fl-theme-dark) .e-btn:disabled .e-icons,
body:has(.fl-theme-dark) .e-btn.e-disabled .e-btn-icon,
body:has(.fl-theme-dark) .e-btn.e-disabled .e-icons {
    color: rgba(255, 255, 255, 0.35) !important;
}

/* â”€â”€ Billing Cycle Toggle Switch in Dark Theme (Bug 5 Fix) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-theme-dark .fl-switch-btn,
html.fl-theme-dark .fl-switch-btn,
body.fl-theme-dark .fl-switch-btn,
body:has(.fl-theme-dark) .fl-switch-btn {
    background-color: #1E293B !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

.fl-theme-dark .fl-switch-btn.checked,
html.fl-theme-dark .fl-switch-btn.checked,
body.fl-theme-dark .fl-switch-btn.checked,
body:has(.fl-theme-dark) .fl-switch-btn.checked {
    background-color: #2563EB !important;
    border-color: #2563EB !important;
}

.fl-theme-dark .fl-switch-thumb,
html.fl-theme-dark .fl-switch-thumb,
body.fl-theme-dark .fl-switch-thumb,
body:has(.fl-theme-dark) .fl-switch-thumb {
    background-color: #FFFFFF !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45) !important;
}

/* â”€â”€ Form Controls & Modal Inputs in Dark Theme (Bug 4 Fix) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-theme-dark .form-control,
html.fl-theme-dark .form-control,
body.fl-theme-dark .form-control,
body:has(.fl-theme-dark) .form-control,
.fl-theme-dark .fl-modal-input,
html.fl-theme-dark .fl-modal-input,
body.fl-theme-dark .fl-modal-input,
body:has(.fl-theme-dark) .fl-modal-input,
.fl-theme-dark .e-dialog .form-control,
.fl-theme-dark .e-dialog .fl-modal-input,
body.fl-theme-dark .fl-custom-dialog .form-control,
body.fl-theme-dark .fl-custom-dialog .fl-modal-input,
html.fl-theme-dark .fl-custom-dialog .form-control,
html.fl-theme-dark .fl-custom-dialog .fl-modal-input {
    background-color: #0A1329 !important;
    border: 1px solid #1C2D4A !important;
    color: #FFFFFF !important;
}

.fl-theme-dark .form-control:focus,
html.fl-theme-dark .form-control:focus,
body.fl-theme-dark .form-control:focus,
body:has(.fl-theme-dark) .form-control:focus,
.fl-theme-dark .fl-modal-input:focus,
html.fl-theme-dark .fl-modal-input:focus,
body.fl-theme-dark .fl-modal-input:focus,
body:has(.fl-theme-dark) .fl-modal-input:focus,
.fl-theme-dark .e-dialog .form-control:focus,
.fl-theme-dark .e-dialog .fl-modal-input:focus,
body.fl-theme-dark .fl-custom-dialog .form-control:focus,
body.fl-theme-dark .fl-custom-dialog .fl-modal-input:focus,
html.fl-theme-dark .fl-custom-dialog .form-control:focus,
html.fl-theme-dark .fl-custom-dialog .fl-modal-input:focus {
    background-color: #0D1B3A !important;
    border-color: #1565FF !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 0 2px rgba(21, 101, 255, 0.25) !important;
}

.fl-theme-dark .fl-modal-plan-box,
html.fl-theme-dark .fl-modal-plan-box,
body.fl-theme-dark .fl-modal-plan-box,
.fl-theme-dark .e-dialog .fl-modal-plan-box,
body.fl-theme-dark .fl-custom-dialog .fl-modal-plan-box,
html.fl-theme-dark .fl-custom-dialog .fl-modal-plan-box {
    background-color: #142037 !important;
    border-color: #1C2D4A !important;
}

.fl-theme-dark .fl-modal-plan-title,
html.fl-theme-dark .fl-modal-plan-title,
body.fl-theme-dark .fl-modal-plan-title,
.fl-theme-dark .e-dialog .fl-modal-plan-title,
body.fl-theme-dark .fl-custom-dialog .fl-modal-plan-title,
html.fl-theme-dark .fl-custom-dialog .fl-modal-plan-title {
    color: #FFFFFF !important;
}

/* â”€â”€ Universal Grid Empty State Styling (Products, Customers, etc.) â”€ */
.fl-empty-state {
    text-align: center;
    padding: 3.5rem 1rem !important;
}

.fl-empty-icon-wrap {
    margin-bottom: 0.85rem !important;
}

.fl-empty-state .fl-empty-icon-wrap .e-icons,
.fl-empty-folder-icon {
    font-size: 2.75rem !important;
    color: #64748B !important;
    display: inline-block !important;
}

.fl-empty-state .fl-empty-icon-wrap .e-icons.e-user:before,
.fl-empty-state .fl-empty-icon-wrap .e-icons.e-folder:before {
    content: "\e83c" !important;
}

.fl-empty-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.35rem !important;
    color: #0F172A !important;
}

.fl-empty-sub {
    color: #475569 !important;
    font-size: 0.9rem !important;
}

.fl-theme-dark .fl-empty-title,
html.fl-theme-dark .fl-empty-title,
.fl-theme-dark .fl-empty-state h3,
.fl-theme-dark .fl-empty-state h4,
.fl-theme-dark .fl-empty-state h5,
html.fl-theme-dark .fl-empty-state h3,
html.fl-theme-dark .fl-empty-state h4,
html.fl-theme-dark .fl-empty-state h5 {
    color: #F8FAFC !important;
}

.fl-theme-dark .fl-empty-sub,
html.fl-theme-dark .fl-empty-sub,
.fl-theme-dark .fl-empty-state p,
html.fl-theme-dark .fl-empty-state p {
    color: #94A3B8 !important;
}

.fl-theme-dark .fl-empty-folder-icon,
html.fl-theme-dark .fl-empty-folder-icon,
.fl-theme-dark .fl-empty-state .fl-empty-icon,
html.fl-theme-dark .fl-empty-state .fl-empty-icon,
.fl-theme-dark .fl-empty-state i,
html.fl-theme-dark .fl-empty-state i {
    color: #64748B !important;
}

/* Universal Empty State Action Button â€” Exact Match in Dark & Light Modes */
.fl-empty-state .e-btn,
.fl-empty-state .e-btn.e-primary,
.fl-empty-state .e-btn.e-outline,
.fl-empty-state .e-css.e-btn,
.fl-empty-state button {
    background-color: #1565FF !important;
    background: #1565FF !important;
    border: 1px solid #1565FF !important;
    border-color: #1565FF !important;
    color: #FFFFFF !important;
    font-weight: 500 !important;
    border-radius: 6px !important;
    padding: 0.45rem 1rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.35rem !important;
    box-shadow: 0 1px 3px rgba(21, 101, 255, 0.3) !important;
    transition: all 0.15s ease-in-out !important;
    cursor: pointer !important;
    text-decoration: none !important;
    margin-top: 0.5rem !important;
}

.fl-empty-state .e-btn:hover,
.fl-empty-state .e-btn.e-primary:hover,
.fl-empty-state .e-btn.e-outline:hover,
.fl-empty-state .e-css.e-btn:hover,
.fl-empty-state button:hover {
    background-color: #0052CC !important;
    background: #0052CC !important;
    border-color: #0052CC !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 6px rgba(21, 101, 255, 0.45) !important;
}

.fl-empty-state .e-btn *,
.fl-empty-state .e-btn.e-primary *,
.fl-empty-state .e-btn.e-outline *,
.fl-empty-state .e-btn .e-icons,
.fl-empty-state .e-btn .e-btn-icon,
.fl-empty-state .e-btn span,
.fl-empty-state button * {
    color: #FFFFFF !important;
}

/* Dark mode consistency */
html.fl-theme-dark .fl-empty-state .e-btn,
body.fl-theme-dark .fl-empty-state .e-btn,
.fl-theme-dark .fl-empty-state .e-btn,
html.fl-theme-dark .fl-empty-state .e-btn.e-outline,
body.fl-theme-dark .fl-empty-state .e-btn.e-outline,
.fl-theme-dark .fl-empty-state .e-btn.e-outline,
html.fl-theme-dark .fl-empty-state .e-btn.e-primary,
body.fl-theme-dark .fl-empty-state .e-btn.e-primary,
.fl-theme-dark .fl-empty-state .e-btn.e-primary {
    background-color: #1565FF !important;
    background: #1565FF !important;
    border: 1px solid #1565FF !important;
    border-color: #1565FF !important;
    color: #FFFFFF !important;
    box-shadow: 0 1px 4px rgba(21, 101, 255, 0.35) !important;
}

html.fl-theme-dark .fl-empty-state .e-btn:hover,
body.fl-theme-dark .fl-empty-state .e-btn:hover,
.fl-theme-dark .fl-empty-state .e-btn:hover,
html.fl-theme-dark .fl-empty-state .e-btn.e-outline:hover,
body.fl-theme-dark .fl-empty-state .e-btn.e-outline:hover,
.fl-theme-dark .fl-empty-state .e-btn.e-outline:hover,
html.fl-theme-dark .fl-empty-state .e-btn.e-primary:hover,
body.fl-theme-dark .fl-empty-state .e-btn.e-primary:hover,
.fl-theme-dark .fl-empty-state .e-btn.e-primary:hover {
    background-color: #0052CC !important;
    background: #0052CC !important;
    border-color: #0052CC !important;
    color: #FFFFFF !important;
    box-shadow: 0 3px 8px rgba(21, 101, 255, 0.5) !important;
}

html.fl-theme-dark .fl-empty-state .e-btn *,
body.fl-theme-dark .fl-empty-state .e-btn *,
.fl-theme-dark .fl-empty-state .e-btn * {
    color: #FFFFFF !important;
}

/* Light mode consistency */
html.fl-theme-light .fl-empty-state .e-btn,
body.fl-theme-light .fl-empty-state .e-btn,
.fl-theme-light .fl-empty-state .e-btn,
html.fl-theme-light .fl-empty-state .e-btn.e-outline,
body.fl-theme-light .fl-empty-state .e-btn.e-outline,
.fl-theme-light .fl-empty-state .e-btn.e-outline,
html.fl-theme-light .fl-empty-state .e-btn.e-primary,
body.fl-theme-light .fl-empty-state .e-btn.e-primary,
.fl-theme-light .fl-empty-state .e-btn.e-primary {
    background-color: #1565FF !important;
    background: #1565FF !important;
    border: 1px solid #1565FF !important;
    border-color: #1565FF !important;
    color: #FFFFFF !important;
    box-shadow: 0 1px 3px rgba(21, 101, 255, 0.25) !important;
}

html.fl-theme-light .fl-empty-state .e-btn:hover,
body.fl-theme-light .fl-empty-state .e-btn:hover,
.fl-theme-light .fl-empty-state .e-btn:hover {
    background-color: #0052CC !important;
    background: #0052CC !important;
    border-color: #0052CC !important;
    color: #FFFFFF !important;
}

html.fl-theme-light .fl-empty-state .e-btn *,
body.fl-theme-light .fl-empty-state .e-btn *,
.fl-theme-light .fl-empty-state .e-btn * {
    color: #FFFFFF !important;
}

/* â”€â”€ Settings & Form Input Hint/Help Text Dark Theme (Bug 2) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-theme-dark .fl-input-hint,
html.fl-theme-dark .fl-input-hint {
    color: #94A3B8 !important;
}

/* â”€â”€ Universal Dark Theme Input & Dropdown Placeholder Contrast (Bug 5) â”€ */
.fl-theme-dark input::placeholder,
.fl-theme-dark textarea::placeholder,
.fl-theme-dark .form-control::placeholder,
.fl-theme-dark .e-input::placeholder,
.fl-theme-dark .e-input-group input::placeholder,
.fl-theme-dark .e-input-group.e-control-wrapper input::placeholder,
.fl-theme-dark .e-ddl input::placeholder,
.fl-theme-dark .e-dropdownlist input::placeholder,
.fl-theme-dark span.e-placeholder,
.fl-theme-dark .e-placeholder,
html.fl-theme-dark input::placeholder,
html.fl-theme-dark textarea::placeholder,
html.fl-theme-dark .form-control::placeholder,
html.fl-theme-dark .e-input::placeholder,
html.fl-theme-dark .e-input-group input::placeholder,
html.fl-theme-dark .e-input-group.e-control-wrapper input::placeholder,
html.fl-theme-dark .e-ddl input::placeholder,
html.fl-theme-dark .e-dropdownlist input::placeholder,
html.fl-theme-dark span.e-placeholder,
html.fl-theme-dark .e-placeholder {
    color: #94A3B8 !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #94A3B8 !important;
}

/* â”€â”€ Read-only Box & Disabled Form Controls â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-readonly-box {
    background-color: var(--fl-bg-surface-2, #F1F5F9);
    color: var(--fl-text-primary, #0F172A);
    border: 1px solid var(--fl-border, #CBD5E1);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    min-height: 38px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.fl-theme-dark .fl-readonly-box,
.fl-theme-dark .form-control.fl-readonly-box,
.fl-theme-dark .form-control[readonly],
.fl-theme-dark .form-control:disabled {
    background-color: var(--fl-bg-surface-2, #142037) !important;
    color: var(--fl-text-primary, #E2E8F0) !important;
    border-color: var(--fl-border, #1C2D4A) !important;
}

/* â”€â”€ Syncfusion Dialogs & Modal Popups in Dark Theme â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-theme-dark .e-dialog,
.fl-theme-dark .e-dialog .e-dlg-header-content,
.fl-theme-dark .e-dialog .e-dlg-content,
.fl-theme-dark .e-dialog .e-footer-content,
.fl-theme-dark .e-popup.e-dialog {
    background-color: var(--fl-bg-surface, #0F1B32) !important;
    color: var(--fl-text-primary, #E2E8F0) !important;
    border-color: var(--fl-border, #1C2D4A) !important;
}

.fl-theme-dark .e-dialog .e-dlg-header,
.fl-theme-dark .e-dialog .e-dlg-header * {
    color: var(--fl-text-primary, #E2E8F0) !important;
    font-weight: 700;
}

.fl-theme-dark .e-dialog .e-dlg-closeicon-btn {
    color: var(--fl-text-secondary, #94A3B8) !important;
}

.fl-theme-dark .e-dialog .e-dlg-closeicon-btn:hover {
    background-color: var(--fl-bg-surface-2, #142037) !important;
    color: var(--fl-text-primary, #E2E8F0) !important;
}

/* â”€â”€ Modal Dialog Tables in Dark Theme â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-dialog-table-wrap {
    background-color: var(--fl-bg-surface, #0F1B32);
    border-color: var(--fl-border, #1C2D4A) !important;
}

.fl-theme-dark .fl-dialog-table,
.fl-theme-dark .table {
    --bs-table-bg: var(--fl-bg-surface, #0F1B32) !important;
    --bs-table-color: var(--fl-text-primary, #E2E8F0) !important;
    --bs-table-hover-bg: var(--fl-bg-surface-2, #142037) !important;
    --bs-table-border-color: var(--fl-border, #1C2D4A) !important;
    color: var(--fl-text-primary, #E2E8F0) !important;
}

.fl-theme-dark .table thead,
.fl-theme-dark .table th,
.fl-theme-dark .fl-dialog-table thead,
.fl-theme-dark .fl-dialog-table th,
.fl-theme-dark .table-light,
.fl-theme-dark .table-light th {
    background-color: var(--fl-bg-surface-2, #142037) !important;
    color: var(--fl-text-secondary, #94A3B8) !important;
    border-bottom: 1px solid var(--fl-border, #1C2D4A) !important;
}

.fl-theme-dark .table td,
.fl-theme-dark .fl-dialog-table td {
    color: var(--fl-text-primary, #E2E8F0) !important;
    border-bottom: 1px solid var(--fl-border, #1C2D4A) !important;
}

/* â”€â”€ Subtle Badges in Dark Theme â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-theme-dark .badge.bg-secondary-subtle {
    background-color: rgba(148, 163, 184, 0.15) !important;
    color: #94A3B8 !important;
    border-color: rgba(148, 163, 184, 0.25) !important;
}

.fl-theme-dark .badge.bg-primary-subtle {
    background-color: rgba(37, 99, 235, 0.2) !important;
    color: #60A5FA !important;
    border-color: rgba(37, 99, 235, 0.35) !important;
}

.fl-theme-dark .badge.bg-success-subtle {
    background-color: rgba(34, 197, 94, 0.2) !important;
    color: #4ADE80 !important;
    border-color: rgba(34, 197, 94, 0.35) !important;
}

.fl-theme-dark .badge.bg-warning-subtle {
    background-color: rgba(245, 158, 11, 0.2) !important;
    color: #FBBF24 !important;
    border-color: rgba(245, 158, 11, 0.35) !important;
}

.fl-theme-dark .badge.bg-danger-subtle {
    background-color: rgba(239, 68, 68, 0.2) !important;
    color: #F87171 !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
}

.fl-theme-dark .badge.bg-info-subtle {
    background-color: rgba(6, 182, 212, 0.2) !important;
    color: #38BDF8 !important;
    border-color: rgba(6, 182, 212, 0.35) !important;
}

/* â”€â”€ Global Dropdown Height Normalization â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* Ensure all Syncfusion dropdowns (SfDropDownList, SfComboBox, etc.) match text inputs (32px) across all Add/Edit pages */
.e-control-wrapper.e-ddl,
.e-ddl.e-input-group,
.e-input-group.e-ddl,
.e-input-group.e-control-wrapper.e-ddl,
.e-control-wrapper.e-combobox,
.e-combobox.e-input-group,
.e-control-wrapper.e-autocomplete,
.e-autocomplete.e-input-group {
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
}

.e-control-wrapper.e-ddl input.e-input,
.e-ddl.e-input-group input.e-input,
.e-input-group.e-ddl input.e-input,
.e-control-wrapper.e-combobox input.e-input,
.e-combobox.e-input-group input.e-input,
.e-control-wrapper.e-autocomplete input.e-input,
.e-autocomplete.e-input-group input.e-input {
    height: 100% !important;
    min-height: unset !important;
    max-height: 100% !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 30px !important;
    box-sizing: border-box !important;
    font-size: 0.88rem !important;
}

.e-control-wrapper.e-ddl .e-input-group-icon,
.e-ddl.e-input-group .e-input-group-icon,
.e-input-group.e-ddl .e-input-group-icon,
.e-control-wrapper.e-ddl .e-ddl-icon,
.e-ddl.e-input-group .e-ddl-icon,
.e-ddl-icon {
    height: 100% !important;
    min-height: unset !important;
    max-height: 100% !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
}

.e-control-wrapper.e-ddl .e-clear-icon.e-clear-icon-hide,
.e-ddl.e-input-group .e-clear-icon.e-clear-icon-hide,
.e-clear-icon.e-clear-icon-hide {
    display: none !important;
}

.e-control-wrapper.e-ddl .e-clear-icon:not(.e-clear-icon-hide),
.e-ddl.e-input-group .e-clear-icon:not(.e-clear-icon-hide) {
    height: 100% !important;
    min-height: unset !important;
    max-height: 100% !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
}

/* â”€â”€â”€ Global Syncfusion Dialog Responsiveness & Mobile Optimizations â”€â”€â”€â”€â”€â”€â”€ */
.e-dialog.fl-responsive-dialog,
.fl-responsive-dialog.e-dialog {
    max-width: calc(100vw - 1.5rem) !important;
    border-radius: 14px !important;
}

/* Prevent dialog header title from truncating with ellipsis; wrap cleanly */
.e-dialog.fl-responsive-dialog .e-dlg-header-content,
.fl-responsive-dialog .e-dlg-header-content {
    padding: 1.1rem 1.25rem 0.85rem 1.25rem !important;
    position: relative !important;
}

.e-dialog.fl-responsive-dialog .e-dlg-header,
.fl-responsive-dialog .e-dlg-header,
.e-dialog.fl-responsive-dialog .e-dlg-header *,
.fl-responsive-dialog .e-dlg-header * {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    line-height: 1.35 !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    padding-right: 2.25rem !important;
}

/* Responsive dialog content scrolling */
.e-dialog.fl-responsive-dialog .e-dlg-content,
.fl-responsive-dialog .e-dlg-content {
    max-height: calc(85vh - 120px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

@media (max-width: 576px) {

    .e-dialog.fl-responsive-dialog,
    .fl-responsive-dialog.e-dialog {
        width: calc(100vw - 1rem) !important;
        max-width: calc(100vw - 1rem) !important;
        margin: 0.5rem auto !important;
    }

    .e-dialog.fl-responsive-dialog .e-dlg-header-content,
    .fl-responsive-dialog .e-dlg-header-content {
        padding: 1rem 1rem 0.75rem 1rem !important;
    }

    .e-dialog.fl-responsive-dialog .e-dlg-header,
    .fl-responsive-dialog .e-dlg-header {
        font-size: 1.02rem !important;
    }

    .e-dialog.fl-responsive-dialog .e-dlg-content,
    .fl-responsive-dialog .e-dlg-content {
        padding: 0.75rem !important;
    }

    /* Dialog Footer Buttons: 1x2 side-by-side on responsive screens */
    .e-dialog.fl-responsive-dialog .e-footer-content,
    .fl-responsive-dialog .e-footer-content,
    .e-dialog .e-footer-content {
        padding: 0.75rem !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: stretch !important;
        gap: 0.65rem !important;
        box-sizing: border-box !important;
    }

    .e-dialog.fl-responsive-dialog .e-footer-content .fl-save-btn,
    .e-dialog.fl-responsive-dialog .e-footer-content .fl-cancel-btn,
    .e-dialog.fl-responsive-dialog .e-footer-content .e-btn,
    .fl-responsive-dialog .e-footer-content .fl-save-btn,
    .fl-responsive-dialog .e-footer-content .fl-cancel-btn,
    .fl-responsive-dialog .e-footer-content .e-btn,
    .e-dialog .e-footer-content .fl-save-btn,
    .e-dialog .e-footer-content .fl-cancel-btn,
    .e-dialog .e-footer-content .e-btn {
        flex: 1 1 0 !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        margin: 0 !important;
        height: 42px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
        font-size: clamp(0.78rem, 3vw, 0.86rem) !important;
        font-weight: 600 !important;
        padding: 0 0.5rem !important;
        box-sizing: border-box !important;
    }

    .e-dialog.fl-responsive-dialog .e-footer-content .e-btn span,
    .fl-responsive-dialog .e-footer-content .e-btn span,
    .e-dialog .e-footer-content .e-btn span {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    /* Companies Dialog Table Mobile Fit */
    .fl-dialog-table-wrap {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        margin-bottom: 0 !important;
    }

    .fl-dialog-table {
        min-width: 100% !important;
        font-size: 0.84rem !important;
    }

    .fl-dialog-table th,
    .fl-dialog-table td {
        padding: 0.55rem 0.45rem !important;
    }
}

/* â”€â”€ Standard Page Container Padding â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-company-page-container {
    padding: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .fl-company-page-container {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .fl-company-page-container {
        padding: 0.5rem 0.4rem;
    }
}

/* â”€â”€ Global Grid Content Ellipsis Truncation (Users, Companies, Tenants, etc.) â”€â”€ */
.fl-cell-truncate-wrap {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.fl-text-truncate,
.fl-company-name,
.fl-tenant-text,
.fl-code-link.fl-text-truncate,
span.fl-text-truncate,
a.fl-text-truncate,
small.fl-text-truncate,
div.fl-text-truncate {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.fl-cat-pill.fl-text-truncate,
.fl-cat-pill {
    display: inline-block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
}

@media (max-width: 768px) {

    .fl-cell-truncate-wrap,
    .fl-text-truncate,
    .fl-company-name,
    .fl-tenant-text,
    .fl-code-link.fl-text-truncate,
    span.fl-text-truncate,
    a.fl-text-truncate,
    small.fl-text-truncate,
    div.fl-text-truncate {
        max-width: 200px !important;
    }
}

@media (max-width: 480px) {

    .fl-cell-truncate-wrap,
    .fl-text-truncate,
    .fl-company-name,
    .fl-tenant-text,
    .fl-code-link.fl-text-truncate,
    span.fl-text-truncate,
    a.fl-text-truncate,
    small.fl-text-truncate,
    div.fl-text-truncate {
        max-width: 170px !important;
    }
}

/* â”€â”€ User Avatar & Account Cell in Grids (Strict Horizontal Alignment) â”€â”€ */
.fl-user-cell {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.75rem !important;
    min-width: 0 !important;
}

.fl-user-avatar {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #1565FF 0%, #0052CC 100%) !important;
    color: #FFFFFF !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 8px rgba(21, 101, 255, 0.35) !important;
}

.fl-user-info {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
}

.fl-user-email {
    color: var(--fl-text-secondary, #64748B) !important;
    font-size: 0.8rem !important;
}

/* â”€â”€ Global Blazor Form Validation Reset (Prevents green outline on valid fields) â”€â”€ */
.valid.modified:not([type=checkbox]),
.e-control-wrapper.valid,
.e-input-group.valid,
input.valid,
textarea.valid,
select.valid {
    outline: none !important;
}

.text-purple {
    color: #8b5cf6 !important;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   FLBILL â€” GLOBAL BUSINESS TYPE & MULTILINE DROPDOWN POPUP STYLING
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.e-popup.e-ddl,
.e-dropdownbase {
    font-family: inherit !important;
}

.e-popup.e-ddl {
    border-radius: 12px !important;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.16), 0 4px 12px rgba(15, 23, 42, 0.08) !important;
    border: 1px solid #E2E8F0 !important;
    background: #FFFFFF !important;
}

.fl-product-dialog.e-dialog,
.fl-product-dialog .e-dlg-content {
    overflow: visible !important;
}

.e-popup.e-ddl .e-content {
    padding: 6px !important;
}

.e-popup.e-ddl .e-list-parent {
    padding: 0 !important;
    margin: 0 !important;
}

/* Base item allowing multiline content */
.e-popup.e-ddl .e-list-item,
.e-dropdownbase .e-list-item {
    border-radius: 8px !important;
    margin-bottom: 3px !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
    cursor: pointer !important;
}

/* For multiline templates like Business Type */
.e-popup.e-ddl .e-list-item:has(.fl-biztype-ddl-item),
.e-dropdownbase .e-list-item:has(.fl-biztype-ddl-item),
.e-popup.e-ddl .e-list-item .fl-biztype-ddl-item,
.e-dropdownbase .e-list-item .fl-biztype-ddl-item {
    height: auto !important;
    min-height: 54px !important;
    line-height: normal !important;
    white-space: normal !important;
}

.e-popup.e-ddl .e-list-item:has(.fl-biztype-ddl-item),
.e-dropdownbase .e-list-item:has(.fl-biztype-ddl-item) {
    padding: 8px 12px !important;
}

.fl-biztype-ddl-item {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    width: 100% !important;
    text-align: left !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    padding: 4px 0 !important;
}

.fl-biztype-ddl-title {
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    color: #0F172A !important;
    line-height: 1.35 !important;
}

.fl-biztype-ddl-desc {
    font-size: 0.80rem !important;
    font-weight: 400 !important;
    color: #64748B !important;
    line-height: 1.4 !important;
    white-space: normal !important;
}

/* Light mode hover & active states */
.e-popup.e-ddl .e-list-item:hover,
.e-popup.e-ddl .e-list-item.e-hover,
.e-dropdownbase .e-list-item:hover,
.e-dropdownbase .e-list-item.e-hover {
    background-color: #F1F5F9 !important;
    color: #0F172A !important;
}

.e-popup.e-ddl .e-list-item.e-active,
.e-dropdownbase .e-list-item.e-active {
    background-color: #EFF6FF !important;
    color: #1565FF !important;
}

.e-popup.e-ddl .e-list-item.e-active .fl-biztype-ddl-title,
.e-dropdownbase .e-list-item.e-active .fl-biztype-ddl-title {
    color: #1565FF !important;
}

.e-popup.e-ddl .e-list-item.e-active .fl-biztype-ddl-desc,
.e-dropdownbase .e-list-item.e-active .fl-biztype-ddl-desc {
    color: #3B82F6 !important;
}

/* â”€â”€ Dark Mode Dropdown Popups (Fully Opaque) â”€â”€ */
html.fl-theme-dark .e-popup.e-ddl,
body:has(.fl-theme-dark) .e-popup.e-ddl,
.fl-theme-dark .e-popup.e-ddl,
body.fl-theme-dark .e-popup.e-ddl,
html.fl-theme-dark .e-dropdownbase,
body:has(.fl-theme-dark) .e-dropdownbase,
.fl-theme-dark .e-dropdownbase,
body.fl-theme-dark .e-dropdownbase,
html.fl-theme-dark .e-popup.e-ddl .e-content,
body.fl-theme-dark .e-popup.e-ddl .e-content,
.fl-theme-dark .e-popup.e-ddl .e-content,
html.fl-theme-dark .e-popup.e-ddl ul.e-list-parent,
body.fl-theme-dark .e-popup.e-ddl ul.e-list-parent,
.fl-theme-dark .e-popup.e-ddl ul.e-list-parent {
    opacity: 1 !important;
    background: #0F1B32 !important;
    background-color: #0F1B32 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.7) !important;
    color: #F8FAFC !important;
}

html.fl-theme-dark .e-popup.e-ddl .fl-biztype-ddl-title,
body:has(.fl-theme-dark) .e-popup.e-ddl .fl-biztype-ddl-title,
.fl-theme-dark .e-popup.e-ddl .fl-biztype-ddl-title,
body.fl-theme-dark .e-popup.e-ddl .fl-biztype-ddl-title,
body:has(.fl-theme-dark) .fl-biztype-ddl-title,
.fl-theme-dark .fl-biztype-ddl-title,
body.fl-theme-dark .fl-biztype-ddl-title {
    color: #F8FAFC !important;
}

html.fl-theme-dark .e-popup.e-ddl .fl-biztype-ddl-desc,
body:has(.fl-theme-dark) .e-popup.e-ddl .fl-biztype-ddl-desc,
.fl-theme-dark .e-popup.e-ddl .fl-biztype-ddl-desc,
body.fl-theme-dark .e-popup.e-ddl .fl-biztype-ddl-desc,
body:has(.fl-theme-dark) .fl-biztype-ddl-desc,
.fl-theme-dark .fl-biztype-ddl-desc,
body.fl-theme-dark .fl-biztype-ddl-desc {
    color: #94A3B8 !important;
}

html.fl-theme-dark .e-popup.e-ddl .e-list-item,
body.fl-theme-dark .e-popup.e-ddl .e-list-item,
.fl-theme-dark .e-popup.e-ddl .e-list-item {
    background-color: #0F1B32 !important;
    color: #F8FAFC !important;
    opacity: 1 !important;
}

html.fl-theme-dark .e-popup.e-ddl .e-list-item:hover,
html.fl-theme-dark .e-popup.e-ddl .e-list-item.e-hover,
body:has(.fl-theme-dark) .e-popup.e-ddl .e-list-item:hover,
body:has(.fl-theme-dark) .e-popup.e-ddl .e-list-item.e-hover,
.fl-theme-dark .e-popup.e-ddl .e-list-item:hover,
.fl-theme-dark .e-popup.e-ddl .e-list-item.e-hover,
body:has(.fl-theme-dark) .e-dropdownbase .e-list-item:hover,
body:has(.fl-theme-dark) .e-dropdownbase .e-list-item.e-hover,
.fl-theme-dark .e-dropdownbase .e-list-item:hover,
.fl-theme-dark .e-dropdownbase .e-list-item.e-hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #FFFFFF !important;
}

html.fl-theme-dark .e-popup.e-ddl .e-list-item.e-active,
body:has(.fl-theme-dark) .e-popup.e-ddl .e-list-item.e-active,
.fl-theme-dark .e-popup.e-ddl .e-list-item.e-active,
body:has(.fl-theme-dark) .e-dropdownbase .e-list-item.e-active,
.fl-theme-dark .e-dropdownbase .e-list-item.e-active {
    background-color: rgba(21, 101, 255, 0.28) !important;
    color: #60A5FA !important;
}

body:has(.fl-theme-dark) .e-popup.e-ddl .e-list-item.e-active .fl-biztype-ddl-title,
.fl-theme-dark .e-popup.e-ddl .e-list-item.e-active .fl-biztype-ddl-title {
    color: #93C5FD !important;
}

body:has(.fl-theme-dark) .e-popup.e-ddl .e-list-item.e-active .fl-biztype-ddl-desc,
.fl-theme-dark .e-popup.e-ddl .e-list-item.e-active .fl-biztype-ddl-desc {
    color: #BFDBFE !important;
}

/* â”€â”€ Global Dark Mode Support for Glass Cards & Subscription Matrix â”€â”€ */
.fl-theme-dark .fl-glass-card,
body.fl-theme-dark .fl-glass-card,
html.fl-theme-dark .fl-glass-card,
#fl-app-shell.fl-theme-dark .fl-glass-card {
    background: linear-gradient(165deg, rgba(14, 23, 48, 0.88) 0%, rgba(8, 14, 30, 0.96) 100%) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.10) !important;
    backdrop-filter: blur(28px) !important;
    -webkit-backdrop-filter: blur(28px) !important;
    box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
}

.fl-theme-dark .fl-glass-card.featured,
body.fl-theme-dark .fl-glass-card.featured,
html.fl-theme-dark .fl-glass-card.featured,
#fl-app-shell.fl-theme-dark .fl-glass-card.featured {
    border: 2px solid #3B82F6 !important;
    box-shadow: 0 28px 64px -10px rgba(37, 99, 235, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
}

.fl-theme-dark .fl-glass-title,
body.fl-theme-dark .fl-glass-title,
html.fl-theme-dark .fl-glass-title,
#fl-app-shell.fl-theme-dark .fl-glass-title,
.fl-theme-dark .fl-plan-title,
body.fl-theme-dark .fl-plan-title,
html.fl-theme-dark .fl-plan-title,
#fl-app-shell.fl-theme-dark .fl-plan-title {
    color: #FFFFFF !important;
}

.fl-theme-dark .fl-glass-desc,
body.fl-theme-dark .fl-glass-desc,
html.fl-theme-dark .fl-glass-desc,
#fl-app-shell.fl-theme-dark .fl-glass-desc,
.fl-theme-dark .fl-plan-subtitle,
body.fl-theme-dark .fl-plan-subtitle,
html.fl-theme-dark .fl-plan-subtitle,
#fl-app-shell.fl-theme-dark .fl-plan-subtitle {
    color: #94A3B8 !important;
}

.fl-theme-dark .fl-price-sym,
.fl-theme-dark .fl-price-num,
body.fl-theme-dark .fl-price-sym,
body.fl-theme-dark .fl-price-num,
html.fl-theme-dark .fl-price-sym,
html.fl-theme-dark .fl-price-num,
#fl-app-shell.fl-theme-dark .fl-price-sym,
#fl-app-shell.fl-theme-dark .fl-price-num {
    color: #FFFFFF !important;
}

.fl-theme-dark .fl-spec-line,
body.fl-theme-dark .fl-spec-line,
html.fl-theme-dark .fl-spec-line,
#fl-app-shell.fl-theme-dark .fl-spec-line {
    color: #CBD5E1 !important;
}

.fl-theme-dark .fl-feature-item,
body.fl-theme-dark .fl-feature-item,
html.fl-theme-dark .fl-feature-item,
#fl-app-shell.fl-theme-dark .fl-feature-item {
    color: #CBD5E1 !important;
}

.fl-theme-dark .fl-billing-toggle-wrap,
body.fl-theme-dark .fl-billing-toggle-wrap,
html.fl-theme-dark .fl-billing-toggle-wrap,
#fl-app-shell.fl-theme-dark .fl-billing-toggle-wrap {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.fl-theme-dark .fl-billing-period-label.active,
body.fl-theme-dark .fl-billing-period-label.active,
html.fl-theme-dark .fl-billing-period-label.active,
#fl-app-shell.fl-theme-dark .fl-billing-period-label.active {
    color: #FFFFFF !important;
}

.fl-theme-dark .fl-level-badge,
body.fl-theme-dark .fl-level-badge,
html.fl-theme-dark .fl-level-badge,
#fl-app-shell.fl-theme-dark .fl-level-badge {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
    color: #E2E8F0 !important;
}

.fl-theme-dark .fl-level-badge.elite-badge,
body.fl-theme-dark .fl-level-badge.elite-badge,
html.fl-theme-dark .fl-level-badge.elite-badge,
#fl-app-shell.fl-theme-dark .fl-level-badge.elite-badge {
    background: rgba(59, 130, 246, 0.22) !important;
    border-color: rgba(59, 130, 246, 0.50) !important;
    color: #60A5FA !important;
}

/* â”€â”€â”€ Global Workspace Popover Dark Theme Overrides â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
html.fl-theme-dark .fl-workspace-popover,
body.fl-theme-dark .fl-workspace-popover,
.fl-theme-dark .fl-workspace-popover,
#fl-app-shell.fl-theme-dark .fl-workspace-popover,
.fl-workspace-popover--dark {
    --fl-wsp-bg: #0F172A !important;
    --fl-wsp-border: rgba(255, 255, 255, 0.16) !important;
    --fl-wsp-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 4px 16px rgba(0, 0, 0, 0.5) !important;
    --fl-wsp-header-bg: #0B132B !important;
    --fl-wsp-header-border: rgba(255, 255, 255, 0.08) !important;
    --fl-wsp-title-color: #FFFFFF !important;
    --fl-wsp-subtitle-color: rgba(255, 255, 255, 0.6) !important;
    --fl-wsp-search-bg: #0B132B !important;
    --fl-wsp-search-border: rgba(255, 255, 255, 0.08) !important;
    --fl-wsp-input-bg: #1E293B !important;
    --fl-wsp-input-border: rgba(255, 255, 255, 0.18) !important;
    --fl-wsp-input-color: #FFFFFF !important;
    --fl-wsp-input-placeholder: rgba(255, 255, 255, 0.45) !important;
    --fl-wsp-group-color: rgba(255, 255, 255, 0.5) !important;
    --fl-wsp-item-hover: rgba(255, 255, 255, 0.08) !important;
    --fl-wsp-item-sel-bg: rgba(37, 99, 235, 0.25) !important;
    --fl-wsp-item-sel-border: rgba(59, 130, 246, 0.5) !important;
    --fl-wsp-icon-wrap-bg: rgba(255, 255, 255, 0.08) !important;
    --fl-wsp-icon-color: #93C5FD !important;
    --fl-wsp-item-name: #FFFFFF !important;
    --fl-wsp-item-sub: rgba(255, 255, 255, 0.5) !important;
    --fl-wsp-check-color: #60A5FA !important;
    --fl-wsp-empty-color: rgba(255, 255, 255, 0.5) !important;
    --fl-wsp-footer-bg: #0B132B !important;
    --fl-wsp-footer-border: rgba(255, 255, 255, 0.08) !important;
    --fl-wsp-btn-color: rgba(255, 255, 255, 0.8) !important;
    --fl-wsp-btn-hover-bg: rgba(255, 255, 255, 0.1) !important;
    --fl-wsp-btn-hover-color: #FFFFFF !important;
    --fl-wsp-btn-icon: #60A5FA !important;
    background: #0F172A !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    color: #FFFFFF !important;
}

html.fl-theme-dark .fl-workspace-popover .fl-workspace-popover__header,
body.fl-theme-dark .fl-workspace-popover .fl-workspace-popover__header,
.fl-theme-dark .fl-workspace-popover .fl-workspace-popover__header,
#fl-app-shell.fl-theme-dark .fl-workspace-popover .fl-workspace-popover__header,
.fl-workspace-popover--dark .fl-workspace-popover__header {
    background: #0B132B !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html.fl-theme-dark .fl-workspace-popover .fl-workspace-popover__title,
body.fl-theme-dark .fl-workspace-popover .fl-workspace-popover__title,
.fl-theme-dark .fl-workspace-popover .fl-workspace-popover__title,
#fl-app-shell.fl-theme-dark .fl-workspace-popover .fl-workspace-popover__title,
.fl-workspace-popover--dark .fl-workspace-popover__title {
    color: #FFFFFF !important;
}

html.fl-theme-dark .fl-workspace-popover .fl-workspace-popover__subtitle,
body.fl-theme-dark .fl-workspace-popover .fl-workspace-popover__subtitle,
.fl-theme-dark .fl-workspace-popover .fl-workspace-popover__subtitle,
#fl-app-shell.fl-theme-dark .fl-workspace-popover .fl-workspace-popover__subtitle,
.fl-workspace-popover--dark .fl-workspace-popover__subtitle {
    color: rgba(255, 255, 255, 0.6) !important;
}

html.fl-theme-dark .fl-workspace-popover .fl-workspace-popover__search,
body.fl-theme-dark .fl-workspace-popover .fl-workspace-popover__search,
.fl-theme-dark .fl-workspace-popover .fl-workspace-popover__search,
#fl-app-shell.fl-theme-dark .fl-workspace-popover .fl-workspace-popover__search,
.fl-workspace-popover--dark .fl-workspace-popover__search {
    background: #0B132B !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html.fl-theme-dark .fl-workspace-popover .fl-workspace-search-input,
body.fl-theme-dark .fl-workspace-popover .fl-workspace-search-input,
.fl-theme-dark .fl-workspace-popover .fl-workspace-search-input,
#fl-app-shell.fl-theme-dark .fl-workspace-popover .fl-workspace-search-input,
.fl-workspace-popover--dark .fl-workspace-search-input {
    background: #1E293B !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #FFFFFF !important;
}

html.fl-theme-dark .fl-workspace-popover .fl-workspace-search-input::placeholder,
body.fl-theme-dark .fl-workspace-popover .fl-workspace-search-input::placeholder,
.fl-theme-dark .fl-workspace-popover .fl-workspace-search-input::placeholder,
#fl-app-shell.fl-theme-dark .fl-workspace-popover .fl-workspace-search-input::placeholder,
.fl-workspace-popover--dark .fl-workspace-search-input::placeholder {
    color: rgba(255, 255, 255, 0.45) !important;
}

html.fl-theme-dark .fl-workspace-popover .fl-workspace-group-header,
body.fl-theme-dark .fl-workspace-popover .fl-workspace-group-header,
.fl-theme-dark .fl-workspace-popover .fl-workspace-group-header,
#fl-app-shell.fl-theme-dark .fl-workspace-popover .fl-workspace-group-header,
.fl-workspace-popover--dark .fl-workspace-group-header {
    color: rgba(255, 255, 255, 0.5) !important;
}

html.fl-theme-dark .fl-workspace-popover .fl-workspace-item,
body.fl-theme-dark .fl-workspace-popover .fl-workspace-item,
.fl-theme-dark .fl-workspace-popover .fl-workspace-item,
#fl-app-shell.fl-theme-dark .fl-workspace-popover .fl-workspace-item,
.fl-workspace-popover--dark .fl-workspace-item {
    color: #FFFFFF !important;
}

html.fl-theme-dark .fl-workspace-popover .fl-workspace-item:hover,
body.fl-theme-dark .fl-workspace-popover .fl-workspace-item:hover,
.fl-theme-dark .fl-workspace-popover .fl-workspace-item:hover,
#fl-app-shell.fl-theme-dark .fl-workspace-popover .fl-workspace-item:hover,
.fl-workspace-popover--dark .fl-workspace-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

html.fl-theme-dark .fl-workspace-popover .fl-workspace-item--selected,
body.fl-theme-dark .fl-workspace-popover .fl-workspace-item--selected,
.fl-theme-dark .fl-workspace-popover .fl-workspace-item--selected,
#fl-app-shell.fl-theme-dark .fl-workspace-popover .fl-workspace-item--selected,
.fl-workspace-popover--dark .fl-workspace-item--selected {
    background: rgba(37, 99, 235, 0.25) !important;
    border: 1px solid rgba(59, 130, 246, 0.45) !important;
}

html.fl-theme-dark .fl-workspace-popover .fl-workspace-item__name,
body.fl-theme-dark .fl-workspace-popover .fl-workspace-item__name,
.fl-theme-dark .fl-workspace-popover .fl-workspace-item__name,
#fl-app-shell.fl-theme-dark .fl-workspace-popover .fl-workspace-item__name,
.fl-workspace-popover--dark .fl-workspace-item__name {
    color: #FFFFFF !important;
}

html.fl-theme-dark .fl-workspace-popover .fl-workspace-item__sub,
body.fl-theme-dark .fl-workspace-popover .fl-workspace-item__sub,
.fl-theme-dark .fl-workspace-popover .fl-workspace-item__sub,
#fl-app-shell.fl-theme-dark .fl-workspace-popover .fl-workspace-item__sub,
.fl-workspace-popover--dark .fl-workspace-item__sub {
    color: rgba(255, 255, 255, 0.5) !important;
}

html.fl-theme-dark .fl-workspace-popover .fl-workspace-popover__footer,
body.fl-theme-dark .fl-workspace-popover .fl-workspace-popover__footer,
.fl-theme-dark .fl-workspace-popover .fl-workspace-popover__footer,
#fl-app-shell.fl-theme-dark .fl-workspace-popover .fl-workspace-popover__footer,
.fl-workspace-popover--dark .fl-workspace-popover__footer {
    background: #0B132B !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html.fl-theme-dark .fl-workspace-popover .fl-workspace-action-btn,
body.fl-theme-dark .fl-workspace-popover .fl-workspace-action-btn,
.fl-theme-dark .fl-workspace-popover .fl-workspace-action-btn,
#fl-app-shell.fl-theme-dark .fl-workspace-popover .fl-workspace-action-btn,
.fl-workspace-popover--dark .fl-workspace-action-btn {
    color: rgba(255, 255, 255, 0.8) !important;
}

html.fl-theme-dark .fl-workspace-popover .fl-workspace-action-btn:hover,
body.fl-theme-dark .fl-workspace-popover .fl-workspace-action-btn:hover,
.fl-theme-dark .fl-workspace-popover .fl-workspace-action-btn:hover,
#fl-app-shell.fl-theme-dark .fl-workspace-popover .fl-workspace-action-btn:hover,
.fl-workspace-popover--dark .fl-workspace-action-btn:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #60A5FA !important;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   HIGH-CONTRAST BADGES & QUOTA INDICATORS (Accessible & Legible)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* Universal Warning Badge Text Contrast:
   Ensures text on warning/yellow background is always dark, sharp, and readable */
.badge.bg-warning,
.badge.bg-warning.text-dark,
.badge.text-bg-warning,
.badge[class*="bg-warning"] {
    background-color: #F59E0B !important;
    color: #0F172A !important;
    border: 1px solid #D97706 !important;
    font-weight: 750 !important;
}

.badge.bg-warning *,
.badge.bg-warning i,
.badge.bg-warning .e-icons,
.badge.bg-warning .bi,
.badge[class*="bg-warning"] *,
.badge[class*="bg-warning"] i,
.badge[class*="bg-warning"] .e-icons,
.badge[class*="bg-warning"] .bi {
    color: #0F172A !important;
}

/* Dark mode specific enforcement for warning badges */
html.fl-theme-dark .badge.bg-warning,
body.fl-theme-dark .badge.bg-warning,
.fl-theme-dark .badge.bg-warning,
#fl-app-shell.fl-theme-dark .badge.bg-warning {
    background-color: #F59E0B !important;
    color: #0B132B !important;
    border: 1px solid #FBBF24 !important;
    font-weight: 800 !important;
}

html.fl-theme-dark .badge.bg-warning *,
body.fl-theme-dark .badge.bg-warning *,
.fl-theme-dark .badge.bg-warning *,
#fl-app-shell.fl-theme-dark .badge.bg-warning * {
    color: #0B132B !important;
}

/* Quota Indicators (Companies, Users, Branches, Devices) */
.fl-quota-indicator {
    display: inline-flex !important;
    align-items: center !important;
}

.fl-quota-indicator .badge {
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    padding: 0.45rem 0.85rem !important;
    border-radius: 8px !important;
    line-height: 1.3 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.fl-quota-indicator .badge.bg-warning,
.fl-quota-indicator .badge.bg-warning.text-dark {
    background-color: #F59E0B !important;
    color: #0F172A !important;
    border: 1px solid #D97706 !important;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25) !important;
}

.fl-quota-indicator .badge.bg-warning i,
.fl-quota-indicator .badge.bg-warning .e-icons,
.fl-quota-indicator .badge.bg-warning .bi {
    color: #0F172A !important;
    font-size: 0.9rem !important;
}

/* Light mode normal quota badge */
html.fl-theme-light .fl-quota-indicator .badge.bg-light,
body.fl-theme-light .fl-quota-indicator .badge.bg-light,
.fl-quota-indicator .badge.bg-light {
    background-color: #F1F5F9 !important;
    color: #1E293B !important;
    border: 1px solid #CBD5E1 !important;
    font-weight: 600 !important;
}

html.fl-theme-light .fl-quota-indicator .badge.bg-light i,
.fl-quota-indicator .badge.bg-light i {
    color: #475569 !important;
}

/* Dark mode normal quota badge */
html.fl-theme-dark .fl-quota-indicator .badge.bg-light,
body.fl-theme-dark .fl-quota-indicator .badge.bg-light,
.fl-theme-dark .fl-quota-indicator .badge.bg-light {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #E2E8F0 !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    font-weight: 600 !important;
}

html.fl-theme-dark .fl-quota-indicator .badge.bg-light i,
body.fl-theme-dark .fl-quota-indicator .badge.bg-light i,
.fl-theme-dark .fl-quota-indicator .badge.bg-light i {
    color: #94A3B8 !important;
}

/* Dark mode warning quota badge */
html.fl-theme-dark .fl-quota-indicator .badge.bg-warning,
body.fl-theme-dark .fl-quota-indicator .badge.bg-warning,
.fl-theme-dark .fl-quota-indicator .badge.bg-warning {
    background-color: #F59E0B !important;
    color: #0B132B !important;
    border: 1px solid #FBBF24 !important;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.35) !important;
    font-weight: 800 !important;
}

html.fl-theme-dark .fl-quota-indicator .badge.bg-warning i,
body.fl-theme-dark .fl-quota-indicator .badge.bg-warning i,
.fl-theme-dark .fl-quota-indicator .badge.bg-warning i {
    color: #0B132B !important;
}

/* Subtle warning badges (e.g. products, attribute editor, settings modal) */
.badge.bg-warning-subtle {
    background-color: #FEF3C7 !important;
    color: #78350F !important;
    border: 1px solid #FCD34D !important;
    font-weight: 700 !important;
}

html.fl-theme-dark .badge.bg-warning-subtle,
body.fl-theme-dark .badge.bg-warning-subtle,
.fl-theme-dark .badge.bg-warning-subtle {
    background-color: rgba(245, 158, 11, 0.22) !important;
    color: #FDE68A !important;
    border: 1px solid rgba(245, 158, 11, 0.45) !important;
    font-weight: 700 !important;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   HQ BADGE (Head Office Badge in Popover & Sidebar & Grid)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.fl-workspace-hq-badge,
.badge.fl-hq-badge {
    background: #FEF3C7 !important;
    color: #78350F !important;
    /* High-contrast rich amber-900 */
    border: 1px solid #F59E0B !important;
    font-size: 9.5px !important;
    font-weight: 800 !important;
    padding: 1px 5px !important;
    border-radius: 4px !important;
    line-height: 1.15 !important;
    letter-spacing: 0.04em !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

/* Sidebar Trigger HQ Badge (dark sidebar background) */
.fl-workspace-trigger .fl-workspace-hq-badge {
    background: rgba(245, 158, 11, 0.22) !important;
    color: #FCD34D !important;
    border: 1px solid rgba(245, 158, 11, 0.45) !important;
    font-weight: 800 !important;
}

/* Popover in Dark Mode HQ Badge */
html.fl-theme-dark .fl-workspace-popover .fl-workspace-hq-badge,
body.fl-theme-dark .fl-workspace-popover .fl-workspace-hq-badge,
.fl-theme-dark .fl-workspace-popover .fl-workspace-hq-badge,
#fl-app-shell.fl-theme-dark .fl-workspace-popover .fl-workspace-hq-badge,
.fl-workspace-popover--dark .fl-workspace-hq-badge {
    background: rgba(245, 158, 11, 0.25) !important;
    color: #FCD34D !important;
    border: 1px solid rgba(245, 158, 11, 0.5) !important;
    font-weight: 800 !important;
}

.fl-card-body {
    padding: 1.5rem;
}

/* Stock List Item Cell & HSN Badge */
.fl-stock-item-cell,
.fl-item-name-cell {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 2px 0 !important;
    min-width: 0 !important;
}

.fl-stock-item-title,
.fl-item-title {
    font-weight: 600 !important;
    color: var(--fl-primary, #2563eb) !important;
    text-decoration: none !important;
    line-height: 1.3 !important;
    word-break: break-word !important;
}

.fl-stock-item-title:hover,
.fl-item-title:hover {
    text-decoration: underline !important;
    color: var(--fl-primary-dark, #1d4ed8) !important;
}

.fl-stock-hsn-badge,
.fl-hsn-badge {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 0.72rem !important;
    font-family: var(--bs-font-monospace, monospace) !important;
    font-weight: 600 !important;
    padding: 1px 7px !important;
    border-radius: 4px !important;
    background-color: var(--fl-bg-surface-2, #F1F5F9) !important;
    color: var(--fl-text-secondary, #64748B) !important;
    border: 1px solid var(--fl-border, #E2E8F0) !important;
    line-height: 1.25 !important;
    letter-spacing: 0.02em !important;
}

html.fl-theme-dark .fl-stock-hsn-badge,
body.fl-theme-dark .fl-stock-hsn-badge,
html.fl-theme-dark .fl-hsn-badge,
body.fl-theme-dark .fl-hsn-badge {
    background-color: rgba(255, 255, 255, 0.06) !important;
    color: #94A3B8 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

/* Product AutoComplete Dropdown Items */
.fl-product-dropdown-item {
    width: 100% !important;
    box-sizing: border-box !important;
}

.fl-product-dropdown-name {
    color: var(--fl-text-primary, #0F172A) !important;
    font-size: 0.875rem !important;
}

.fl-product-dropdown-sku {
    color: var(--fl-text-secondary, #64748B) !important;
}

.fl-product-dropdown-hsn {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    font-family: var(--bs-font-monospace, monospace) !important;
    padding: 1px 6px !important;
    border-radius: 4px !important;
    background-color: var(--fl-bg-surface-2, #F1F5F9) !important;
    color: var(--fl-text-secondary, #475569) !important;
    border: 1px solid var(--fl-border, #CBD5E1) !important;
    line-height: 1.25 !important;
}

html.fl-theme-dark .fl-product-dropdown-name,
body.fl-theme-dark .fl-product-dropdown-name {
    color: #F8FAFC !important;
}

html.fl-theme-dark .fl-product-dropdown-hsn,
body.fl-theme-dark .fl-product-dropdown-hsn {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #94A3B8 !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

/* Hide number input spinners globally across all modules (BUG-293) */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

input[type="number"] {
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   FLBILL â€” DARK THEME CONSISTENCY FIXES (FL-FLBILL 192-196)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* Bug 1: Top-Right Profile Dropdown Email & Language Label Contrast */
html.fl-theme-dark .fl-dropdown__email,
body.fl-theme-dark .fl-dropdown__email,
.fl-theme-dark .fl-dropdown__email {
    color: #CBD5E1 !important;
}

html.fl-theme-dark .fl-dropdown__lang-label,
body.fl-theme-dark .fl-dropdown__lang-label,
.fl-theme-dark .fl-dropdown__lang-label {
    color: #94A3B8 !important;
}

/* Bug 2: Customer Default Settings Popup & Module Settings Dialogs in Dark Theme */
html.fl-theme-dark .fl-module-settings-dialog.e-dialog,
body.fl-theme-dark .fl-module-settings-dialog.e-dialog,
.fl-theme-dark.fl-module-settings-dialog.e-dialog,
.fl-theme-dark .fl-module-settings-dialog.e-dialog {
    background: #0F1B32 !important;
    border-color: #1E293B !important;
    color: #F8FAFC !important;
}

html.fl-theme-dark .fl-module-settings-dialog .e-dlg-header-content,
body.fl-theme-dark .fl-module-settings-dialog .e-dlg-header-content,
html.fl-theme-dark .fl-module-settings-dialog .e-dlg-content,
body.fl-theme-dark .fl-module-settings-dialog .e-dlg-content,
html.fl-theme-dark .fl-module-settings-dialog .e-footer-content,
body.fl-theme-dark .fl-module-settings-dialog .e-footer-content {
    background: #0F1B32 !important;
    border-color: #1E293B !important;
    color: #F8FAFC !important;
}

html.fl-theme-dark .fl-module-settings-dialog .fl-dialog-icon-badge,
body.fl-theme-dark .fl-module-settings-dialog .fl-dialog-icon-badge,
.fl-theme-dark .fl-module-settings-dialog .fl-dialog-icon-badge,
html.fl-theme-dark .fl-dialog-icon-badge,
body.fl-theme-dark .fl-dialog-icon-badge,
.fl-theme-dark .fl-dialog-icon-badge {
    background: rgba(37, 99, 235, 0.2) !important;
    color: #60A5FA !important;
    border: 1px solid rgba(96, 165, 250, 0.3) !important;
}

html.fl-theme-dark .fl-module-settings-dialog .fl-dialog-title,
body.fl-theme-dark .fl-module-settings-dialog .fl-dialog-title,
.fl-theme-dark .fl-module-settings-dialog .fl-dialog-title {
    color: #FFFFFF !important;
}

html.fl-theme-dark .fl-module-settings-dialog .fl-dialog-subtitle,
body.fl-theme-dark .fl-module-settings-dialog .fl-dialog-subtitle,
.fl-theme-dark .fl-module-settings-dialog .fl-dialog-subtitle {
    color: #94A3B8 !important;
}

html.fl-theme-dark .fl-module-settings-dialog .fl-info-banner,
body.fl-theme-dark .fl-module-settings-dialog .fl-info-banner,
.fl-theme-dark .fl-module-settings-dialog .fl-info-banner {
    background: rgba(37, 99, 235, 0.15) !important;
    border: 1px solid rgba(96, 165, 250, 0.3) !important;
    color: #93C5FD !important;
}

html.fl-theme-dark .fl-module-settings-dialog .fl-setting-row-card,
body.fl-theme-dark .fl-module-settings-dialog .fl-setting-row-card,
.fl-theme-dark .fl-module-settings-dialog .fl-setting-row-card {
    background: #142037 !important;
    border: 1px solid #1E293B !important;
}

html.fl-theme-dark .fl-module-settings-dialog .fl-setting-row-card:hover,
body.fl-theme-dark .fl-module-settings-dialog .fl-setting-row-card:hover,
.fl-theme-dark .fl-module-settings-dialog .fl-setting-row-card:hover {
    background: #1A2845 !important;
    border-color: #334155 !important;
}

html.fl-theme-dark .fl-module-settings-dialog .fl-setting-label,
body.fl-theme-dark .fl-module-settings-dialog .fl-setting-label,
.fl-theme-dark .fl-module-settings-dialog .fl-setting-label {
    color: #F8FAFC !important;
}

html.fl-theme-dark .fl-module-settings-dialog .fl-setting-desc,
body.fl-theme-dark .fl-module-settings-dialog .fl-setting-desc,
.fl-theme-dark .fl-module-settings-dialog .fl-setting-desc {
    color: #94A3B8 !important;
}

html.fl-theme-dark .fl-module-settings-dialog .fl-footer-label,
body.fl-theme-dark .fl-module-settings-dialog .fl-footer-label,
.fl-theme-dark .fl-module-settings-dialog .fl-footer-label {
    color: #94A3B8 !important;
}

/* Bug 3: Fully Opaque Dropdown Popup Overrides */
html.fl-theme-dark .fl-tenant-plan-ddl.e-popup,
html.fl-theme-dark .e-popup.e-ddl,
body.fl-theme-dark .e-popup.e-ddl,
.fl-theme-dark .e-popup.e-ddl {
    opacity: 1 !important;
    background-color: #0F1B32 !important;
    background: #0F1B32 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

html.fl-theme-dark .e-popup.e-ddl .badge,
body.fl-theme-dark .e-popup.e-ddl .badge,
.fl-theme-dark .e-popup.e-ddl .badge {
    background-color: #1E293B !important;
    color: #94A3B8 !important;
    border-color: #334155 !important;
    opacity: 1 !important;
}

/* Bug 5: Browser Autofill Dark Mode Consistency */
html.fl-theme-dark input:-webkit-autofill,
body.fl-theme-dark input:-webkit-autofill,
.fl-theme-dark input:-webkit-autofill,
html.fl-theme-dark input:-webkit-autofill:hover,
html.fl-theme-dark input:-webkit-autofill:focus,
body.fl-theme-dark input:-webkit-autofill:hover,
body.fl-theme-dark input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px #0F1B32 inset !important;
    -webkit-text-fill-color: #F8FAFC !important;
    caret-color: #F8FAFC !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   â”€â”€ GLOBAL DARK THEME DISABLED & LOADING BUTTON FIXES (Bugs 1, 3, 5) â”€â”€
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* Generic Disabled Buttons in Dark Theme */
html.fl-theme-dark .e-btn:disabled,
html.fl-theme-dark .e-btn.e-disabled,
html.fl-theme-dark button:disabled,
html.fl-theme-dark input[type="button"]:disabled,
html.fl-theme-dark input[type="submit"]:disabled,
body.fl-theme-dark .e-btn:disabled,
body.fl-theme-dark .e-btn.e-disabled,
body.fl-theme-dark button:disabled,
.fl-theme-dark .e-btn:disabled,
.fl-theme-dark .e-btn.e-disabled,
.fl-theme-dark button:disabled,
.fl-theme-dark .fl-save-btn:disabled,
.fl-theme-dark .fl-save-btn.e-disabled,
.fl-theme-dark .fl-cancel-btn:disabled,
.fl-theme-dark .fl-cancel-btn.e-disabled,
.fl-theme-dark .e-dialog .e-btn:disabled,
.fl-theme-dark .e-dialog .e-btn.e-disabled,
.fl-theme-dark .fl-responsive-dialog .e-btn:disabled,
.fl-theme-dark .fl-responsive-dialog .e-btn.e-disabled,
html.fl-theme-dark .e-dialog .e-footer-content .e-btn:disabled,
html.fl-theme-dark .e-dialog .e-footer-content .e-btn.e-disabled,
body.fl-theme-dark .e-dialog .e-footer-content .e-btn:disabled,
body.fl-theme-dark .e-dialog .e-footer-content .e-btn.e-disabled,
.fl-theme-dark .e-dialog .e-footer-content .e-btn:disabled,
.fl-theme-dark .e-dialog .e-footer-content .e-btn.e-disabled {
    background-color: rgba(255, 255, 255, 0.08) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.35) !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

/* Primary Disabled / Submitting Buttons (Bug 1: Save Administrator, Bug 3: Create Company) */
html.fl-theme-dark .e-btn.e-primary:disabled,
html.fl-theme-dark .e-btn.e-primary.e-disabled,
body.fl-theme-dark .e-btn.e-primary:disabled,
body.fl-theme-dark .e-btn.e-primary.e-disabled,
.fl-theme-dark .e-btn.e-primary:disabled,
.fl-theme-dark .e-btn.e-primary.e-disabled,
.fl-theme-dark .fl-save-btn.e-primary:disabled,
.fl-theme-dark .fl-save-btn.e-primary.e-disabled,
.fl-theme-dark .e-dialog .fl-save-btn.e-primary:disabled,
.fl-theme-dark .e-dialog .fl-save-btn.e-primary.e-disabled,
.fl-theme-dark .fl-responsive-dialog .fl-save-btn.e-primary:disabled,
.fl-theme-dark .fl-responsive-dialog .fl-save-btn.e-primary.e-disabled,
html.fl-theme-dark .e-dialog .e-footer-content .fl-save-btn:disabled,
html.fl-theme-dark .e-dialog .e-footer-content .fl-save-btn.e-disabled,
body.fl-theme-dark .e-dialog .e-footer-content .fl-save-btn:disabled,
body.fl-theme-dark .e-dialog .e-footer-content .fl-save-btn.e-disabled,
.fl-theme-dark .e-dialog .e-footer-content .fl-save-btn:disabled,
.fl-theme-dark .e-dialog .e-footer-content .fl-save-btn.e-disabled {
    background-color: rgba(21, 101, 255, 0.28) !important;
    background: rgba(21, 101, 255, 0.28) !important;
    border-color: rgba(35, 168, 255, 0.35) !important;
    color: rgba(255, 255, 255, 0.5) !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

/* Danger / Delete Disabled Buttons (Bug 5: Yes, Delete Tenant) */
html.fl-theme-dark .e-btn.e-danger:disabled,
html.fl-theme-dark .e-btn.e-danger.e-disabled,
body.fl-theme-dark .e-btn.e-danger:disabled,
body.fl-theme-dark .e-btn.e-danger.e-disabled,
.fl-theme-dark .e-btn.e-danger:disabled,
.fl-theme-dark .e-btn.e-danger.e-disabled,
.fl-theme-dark .fl-save-btn.e-danger:disabled,
.fl-theme-dark .fl-save-btn.e-danger.e-disabled,
.fl-theme-dark .e-dialog .fl-save-btn.e-danger:disabled,
.fl-theme-dark .e-dialog .fl-save-btn.e-danger.e-disabled,
.fl-theme-dark .fl-responsive-dialog .fl-save-btn.e-danger:disabled,
.fl-theme-dark .fl-responsive-dialog .fl-save-btn.e-danger.e-disabled,
html.fl-theme-dark .e-dialog .e-footer-content .e-btn.e-danger:disabled,
html.fl-theme-dark .e-dialog .e-footer-content .e-btn.e-danger.e-disabled,
body.fl-theme-dark .e-dialog .e-footer-content .e-btn.e-danger:disabled,
body.fl-theme-dark .e-dialog .e-footer-content .e-btn.e-danger.e-disabled,
.fl-theme-dark .e-dialog .e-footer-content .e-btn.e-danger:disabled,
.fl-theme-dark .e-dialog .e-footer-content .e-btn.e-danger.e-disabled {
    background-color: rgba(239, 68, 68, 0.22) !important;
    background: rgba(239, 68, 68, 0.22) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
    color: rgba(255, 255, 255, 0.5) !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

/* Ensure icons, spinners and text inside disabled buttons have correct contrast in Dark Theme */
html.fl-theme-dark .e-btn:disabled *,
html.fl-theme-dark .e-btn.e-disabled *,
body.fl-theme-dark .e-btn:disabled *,
body.fl-theme-dark .e-btn.e-disabled *,
.fl-theme-dark .e-btn:disabled *,
.fl-theme-dark .e-btn.e-disabled *,
html.fl-theme-dark .fl-save-btn:disabled *,
html.fl-theme-dark .fl-save-btn.e-disabled *,
.fl-theme-dark .fl-save-btn:disabled *,
.fl-theme-dark .fl-save-btn.e-disabled * {
    color: inherit !important;
}

html.fl-theme-dark .e-btn.e-primary:disabled .spinner-border,
html.fl-theme-dark .e-btn.e-primary.e-disabled .spinner-border,
.fl-theme-dark .e-btn.e-primary:disabled .spinner-border,
.fl-theme-dark .e-btn.e-primary.e-disabled .spinner-border,
.fl-theme-dark .fl-save-btn.e-primary:disabled .spinner-border,
.fl-theme-dark .fl-save-btn.e-primary.e-disabled .spinner-border {
    color: rgba(255, 255, 255, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.7) transparent rgba(255, 255, 255, 0.7) transparent !important;
}

html.fl-theme-dark .e-btn.e-danger:disabled .spinner-border,
html.fl-theme-dark .e-btn.e-danger.e-disabled .spinner-border,
.fl-theme-dark .e-btn.e-danger:disabled .spinner-border,
.fl-theme-dark .e-btn.e-danger.e-disabled .spinner-border,
.fl-theme-dark .fl-save-btn.e-danger:disabled .spinner-border,
.fl-theme-dark .fl-save-btn.e-danger.e-disabled .spinner-border {
    color: rgba(255, 255, 255, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.7) transparent rgba(255, 255, 255, 0.7) transparent !important;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   â”€â”€ GLOBAL DARK THEME FOR PRODUCT SETTINGS & LIVE SKU PREVIEW â”€â”€â”€â”€â”€â”€
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
html.fl-theme-dark .fl-product-settings-card,
body.fl-theme-dark .fl-product-settings-card,
.fl-theme-dark .fl-product-settings-card {
    background-color: #0F1B32 !important;
    background: #0F1B32 !important;
    border-color: #1C2D4A !important;
    color: #F8FAFC !important;
}

html.fl-theme-dark .fl-categories-table,
body.fl-theme-dark .fl-categories-table,
.fl-theme-dark .fl-categories-table {
    border-color: #1C2D4A !important;
}

html.fl-theme-dark .fl-categories-table thead,
body.fl-theme-dark .fl-categories-table thead,
.fl-theme-dark .fl-categories-table thead,
html.fl-theme-dark .fl-categories-table th,
body.fl-theme-dark .fl-categories-table th,
.fl-theme-dark .fl-categories-table th {
    background-color: #13223F !important;
    background: #13223F !important;
    color: #94A3B8 !important;
    border-color: #1C2D4A !important;
    border-bottom: 1.5px solid #1C2D4A !important;
}

html.fl-theme-dark .fl-categories-table td,
body.fl-theme-dark .fl-categories-table td,
.fl-theme-dark .fl-categories-table td {
    background-color: transparent !important;
    color: #E2E8F0 !important;
    border-color: #1C2D4A !important;
    border-bottom: 1px solid #1C2D4A !important;
}

html.fl-theme-dark .fl-categories-table tr:hover td,
body.fl-theme-dark .fl-categories-table tr:hover td,
.fl-theme-dark .fl-categories-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.04) !important;
}

html.fl-theme-dark .fl-category-search-box,
body.fl-theme-dark .fl-category-search-box,
.fl-theme-dark .fl-category-search-box {
    background-color: #0B1528 !important;
    background: #0B1528 !important;
    border: 1px solid #1C2D4A !important;
}

html.fl-theme-dark .fl-category-search-box input,
body.fl-theme-dark .fl-category-search-box input,
.fl-theme-dark .fl-category-search-box input {
    background-color: #0B1528 !important;
    background: #0B1528 !important;
    border-color: transparent !important;
    color: #F8FAFC !important;
}

html.fl-theme-light .fl-sku-preview-card,
body.fl-theme-light .fl-sku-preview-card,
.fl-theme-light .fl-sku-preview-card {
    background-color: #F8FAFC !important;
    background: #F8FAFC !important;
    border-color: #E2E8F0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

html.fl-theme-light .fl-preview-title,
body.fl-theme-light .fl-preview-title,
.fl-theme-light .fl-preview-title {
    color: #0F172A !important;
}

html.fl-theme-light .fl-preview-badge,
body.fl-theme-light .fl-preview-badge,
.fl-theme-light .fl-preview-badge {
    background-color: #FFFFFF !important;
    background: #FFFFFF !important;
    border-color: #CBD5E1 !important;
    color: #1565FF !important;
}

html.fl-theme-light .fl-barcode-visual,
body.fl-theme-light .fl-barcode-visual,
.fl-theme-light .fl-barcode-visual {
    background-color: #FFFFFF !important;
    background: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
}

html.fl-theme-light .fl-barcode-text,
body.fl-theme-light .fl-barcode-text,
.fl-theme-light .fl-barcode-text {
    color: #0F172A !important;
}

html.fl-theme-light .fl-sku-derived-preview,
body.fl-theme-light .fl-sku-derived-preview,
.fl-theme-light .fl-sku-derived-preview {
    background-color: #F8FAFC !important;
    background: #F8FAFC !important;
    border-color: #E2E8F0 !important;
    color: #64748B !important;
}

html.fl-theme-dark .fl-sku-preview-card,
body.fl-theme-dark .fl-sku-preview-card,
.fl-theme-dark .fl-sku-preview-card {
    background-color: #0B1528 !important;
    background: #0B1528 !important;
    border-color: #1C2D4A !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
}

html.fl-theme-dark .fl-preview-title,
body.fl-theme-dark .fl-preview-title,
.fl-theme-dark .fl-preview-title {
    color: #F8FAFC !important;
}

html.fl-theme-dark .fl-preview-badge,
body.fl-theme-dark .fl-preview-badge,
.fl-theme-dark .fl-preview-badge {
    background-color: #152442 !important;
    background: #152442 !important;
    border-color: #1C2D4A !important;
    color: #60A5FA !important;
}

html.fl-theme-dark .fl-barcode-visual,
body.fl-theme-dark .fl-barcode-visual,
.fl-theme-dark .fl-barcode-visual {
    background-color: #13223F !important;
    background: #13223F !important;
    border-color: #1C2D4A !important;
}

html.fl-theme-dark .fl-barcode-text,
body.fl-theme-dark .fl-barcode-text,
.fl-theme-dark .fl-barcode-text {
    color: #60A5FA !important;
}

html.fl-theme-dark .fl-sku-derived-preview,
body.fl-theme-dark .fl-sku-derived-preview,
.fl-theme-dark .fl-sku-derived-preview {
    background-color: #0B1528 !important;
    border-color: #1C2D4A !important;
    color: #94A3B8 !important;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   â”€â”€ GLOBAL DARK THEME DROPDOWNS & POPUPS (Bug 3: + New & Profile) â”€â”€
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
html.fl-theme-dark .e-dropdown-popup,
html.fl-theme-dark .e-dropdown-popup.e-popup,
html.fl-theme-dark .e-dropdown-popup ul,
html.fl-theme-dark .e-dropdown-menu,
html.fl-theme-dark ul.e-dropdown-menu,
body.fl-theme-dark .e-dropdown-popup,
body.fl-theme-dark .e-dropdown-popup.e-popup,
body.fl-theme-dark .e-dropdown-popup ul,
body.fl-theme-dark .e-dropdown-menu,
body.fl-theme-dark ul.e-dropdown-menu,
.fl-theme-dark .e-dropdown-popup,
.fl-theme-dark .e-dropdown-popup.e-popup,
.fl-theme-dark .e-dropdown-popup ul,
.fl-theme-dark .e-dropdown-menu,
.fl-theme-dark ul.e-dropdown-menu,
.e-dropdown-popup.fl-theme-dark,
.e-dropdown-popup.fl-theme-dark ul,
.fl-theme-dark.fl-btn-new-sf.e-dropdown-popup,
.fl-btn-new-sf.e-dropdown-popup.fl-theme-dark {
    background-color: #0F1B32 !important;
    background: #0F1B32 !important;
    border: 1px solid #1C2D4A !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45) !important;
    color: #F1F5F9 !important;
    border-radius: 8px !important;
    padding: 4px 0 !important;
}

/* Dropdown items base styling */
html.fl-theme-dark .e-dropdown-popup .e-item,
body.fl-theme-dark .e-dropdown-popup .e-item,
.fl-theme-dark .e-dropdown-popup .e-item,
html.fl-theme-dark .e-dropdown-menu .e-item,
body.fl-theme-dark .e-dropdown-menu .e-item,
.fl-theme-dark .e-dropdown-menu .e-item {
    background-color: transparent !important;
    background: transparent !important;
    color: #F1F5F9 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 8px 16px !important;
    min-height: 40px !important;
    display: flex !important;
    align-items: center !important;
    cursor: pointer !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
}

/* Target ALL text, links, spans, and child elements inside dropdown items */
html.fl-theme-dark .e-dropdown-popup .e-item *,
body.fl-theme-dark .e-dropdown-popup .e-item *,
.fl-theme-dark .e-dropdown-popup .e-item *,
html.fl-theme-dark .e-dropdown-menu .e-item *,
body.fl-theme-dark .e-dropdown-menu .e-item *,
.fl-theme-dark .e-dropdown-menu .e-item *,
html.fl-theme-dark .e-dropdown-popup .e-item a,
body.fl-theme-dark .e-dropdown-popup .e-item a,
.fl-theme-dark .e-dropdown-popup .e-item a,
html.fl-theme-dark .e-dropdown-popup .e-item a:visited,
body.fl-theme-dark .e-dropdown-popup .e-item a:visited,
.fl-theme-dark .e-dropdown-popup .e-item a:visited,
html.fl-theme-dark .e-dropdown-popup .e-item a:link,
body.fl-theme-dark .e-dropdown-popup .e-item a:link,
.fl-theme-dark .e-dropdown-popup .e-item a:link,
html.fl-theme-dark .e-dropdown-popup .e-item .e-menu-text,
body.fl-theme-dark .e-dropdown-popup .e-item .e-menu-text,
.fl-theme-dark .e-dropdown-popup .e-item .e-menu-text,
html.fl-theme-dark .e-dropdown-popup .e-item .e-menu-url,
body.fl-theme-dark .e-dropdown-popup .e-item .e-menu-url,
.fl-theme-dark .e-dropdown-popup .e-item .e-menu-url,
html.fl-theme-dark .e-dropdown-menu .e-item a,
body.fl-theme-dark .e-dropdown-menu .e-item a,
.fl-theme-dark .e-dropdown-menu .e-item a,
html.fl-theme-dark .e-dropdown-menu .e-item a:visited,
body.fl-theme-dark .e-dropdown-menu .e-item a:visited,
.fl-theme-dark .e-dropdown-menu .e-item a:visited,
html.fl-theme-dark .e-dropdown-menu .e-item a:link,
body.fl-theme-dark .e-dropdown-menu .e-item a:link,
.fl-theme-dark .e-dropdown-menu .e-item a:link,
html.fl-theme-dark .e-dropdown-menu .e-item .e-menu-text,
body.fl-theme-dark .e-dropdown-menu .e-item .e-menu-text,
.fl-theme-dark .e-dropdown-menu .e-item .e-menu-text,
html.fl-theme-dark .e-dropdown-menu .e-item .e-menu-url,
body.fl-theme-dark .e-dropdown-menu .e-item .e-menu-url,
.fl-theme-dark .e-dropdown-menu .e-item .e-menu-url {
    color: #F1F5F9 !important;
    text-decoration: none !important;
}

/* Target ALL icons inside dropdown items (e.g. e-icons, e-menu-icon, e-user, e-folder, e-file-document) */
html.fl-theme-dark .e-dropdown-popup .e-item .e-menu-icon,
body.fl-theme-dark .e-dropdown-popup .e-item .e-menu-icon,
.fl-theme-dark .e-dropdown-popup .e-item .e-menu-icon,
html.fl-theme-dark .e-dropdown-menu .e-item .e-menu-icon,
body.fl-theme-dark .e-dropdown-menu .e-item .e-menu-icon,
.fl-theme-dark .e-dropdown-menu .e-item .e-menu-icon,
html.fl-theme-dark .e-dropdown-popup .e-item .e-icons,
body.fl-theme-dark .e-dropdown-popup .e-item .e-icons,
.fl-theme-dark .e-dropdown-popup .e-item .e-icons,
html.fl-theme-dark .e-dropdown-menu .e-item .e-icons,
body.fl-theme-dark .e-dropdown-menu .e-item .e-icons,
.fl-theme-dark .e-dropdown-menu .e-item .e-icons,
html.fl-theme-dark .e-dropdown-popup .e-item a .e-menu-icon,
body.fl-theme-dark .e-dropdown-popup .e-item a .e-menu-icon,
.fl-theme-dark .e-dropdown-popup .e-item a .e-menu-icon,
html.fl-theme-dark .e-dropdown-popup .e-item a .e-icons,
body.fl-theme-dark .e-dropdown-popup .e-item a .e-icons,
.fl-theme-dark .e-dropdown-popup .e-item a .e-icons,
html.fl-theme-dark .e-dropdown-menu .e-item a .e-menu-icon,
body.fl-theme-dark .e-dropdown-menu .e-item a .e-menu-icon,
.fl-theme-dark .e-dropdown-menu .e-item a .e-menu-icon,
html.fl-theme-dark .e-dropdown-menu .e-item a .e-icons,
body.fl-theme-dark .e-dropdown-menu .e-item a .e-icons,
.fl-theme-dark .e-dropdown-menu .e-item a .e-icons {
    color: #60A5FA !important;
    fill: #60A5FA !important;
    opacity: 1 !important;
}

/* Hover and active states for dropdown items */
html.fl-theme-dark .e-dropdown-popup .e-item:hover,
html.fl-theme-dark .e-dropdown-popup .e-item.e-hover,
html.fl-theme-dark .e-dropdown-popup .e-item.e-active,
html.fl-theme-dark .e-dropdown-popup .e-item.e-focused,
body.fl-theme-dark .e-dropdown-popup .e-item:hover,
body.fl-theme-dark .e-dropdown-popup .e-item.e-hover,
body.fl-theme-dark .e-dropdown-popup .e-item.e-active,
body.fl-theme-dark .e-dropdown-popup .e-item.e-focused,
.fl-theme-dark .e-dropdown-popup .e-item:hover,
.fl-theme-dark .e-dropdown-popup .e-item.e-hover,
.fl-theme-dark .e-dropdown-popup .e-item.e-active,
.fl-theme-dark .e-dropdown-popup .e-item.e-focused,
html.fl-theme-dark .e-dropdown-menu .e-item:hover,
html.fl-theme-dark .e-dropdown-menu .e-item.e-hover,
html.fl-theme-dark .e-dropdown-menu .e-item.e-active,
html.fl-theme-dark .e-dropdown-menu .e-item.e-focused,
body.fl-theme-dark .e-dropdown-menu .e-item:hover,
body.fl-theme-dark .e-dropdown-menu .e-item.e-hover,
body.fl-theme-dark .e-dropdown-menu .e-item.e-active,
body.fl-theme-dark .e-dropdown-menu .e-item.e-focused,
.fl-theme-dark .e-dropdown-menu .e-item:hover,
.fl-theme-dark .e-dropdown-menu .e-item.e-hover,
.fl-theme-dark .e-dropdown-menu .e-item.e-active,
.fl-theme-dark .e-dropdown-menu .e-item.e-focused {
    background-color: #182744 !important;
    background: #182744 !important;
}

html.fl-theme-dark .e-dropdown-popup .e-item:hover *,
html.fl-theme-dark .e-dropdown-popup .e-item.e-hover *,
html.fl-theme-dark .e-dropdown-popup .e-item.e-active *,
html.fl-theme-dark .e-dropdown-popup .e-item.e-focused *,
body.fl-theme-dark .e-dropdown-popup .e-item:hover *,
body.fl-theme-dark .e-dropdown-popup .e-item.e-hover *,
body.fl-theme-dark .e-dropdown-popup .e-item.e-active *,
body.fl-theme-dark .e-dropdown-popup .e-item.e-focused *,
.fl-theme-dark .e-dropdown-popup .e-item:hover *,
.fl-theme-dark .e-dropdown-popup .e-item.e-hover *,
.fl-theme-dark .e-dropdown-popup .e-item.e-active *,
.fl-theme-dark .e-dropdown-popup .e-item.e-focused *,
html.fl-theme-dark .e-dropdown-menu .e-item:hover *,
html.fl-theme-dark .e-dropdown-menu .e-item.e-hover *,
html.fl-theme-dark .e-dropdown-menu .e-item.e-active *,
html.fl-theme-dark .e-dropdown-menu .e-item.e-focused *,
body.fl-theme-dark .e-dropdown-menu .e-item:hover *,
body.fl-theme-dark .e-dropdown-menu .e-item.e-hover *,
body.fl-theme-dark .e-dropdown-menu .e-item.e-active *,
body.fl-theme-dark .e-dropdown-menu .e-item.e-focused *,
.fl-theme-dark .e-dropdown-menu .e-item:hover *,
.fl-theme-dark .e-dropdown-menu .e-item.e-hover *,
.fl-theme-dark .e-dropdown-menu .e-item.e-active *,
.fl-theme-dark .e-dropdown-menu .e-item.e-focused * {
    color: #FFFFFF !important;
}

html.fl-theme-dark .e-dropdown-popup .e-item:hover .e-menu-icon,
html.fl-theme-dark .e-dropdown-popup .e-item:hover .e-icons,
html.fl-theme-dark .e-dropdown-popup .e-item.e-hover .e-menu-icon,
html.fl-theme-dark .e-dropdown-popup .e-item.e-hover .e-icons,
body.fl-theme-dark .e-dropdown-popup .e-item:hover .e-menu-icon,
body.fl-theme-dark .e-dropdown-popup .e-item:hover .e-icons,
body.fl-theme-dark .e-dropdown-popup .e-item.e-hover .e-menu-icon,
body.fl-theme-dark .e-dropdown-popup .e-item.e-hover .e-icons,
.fl-theme-dark .e-dropdown-popup .e-item:hover .e-menu-icon,
.fl-theme-dark .e-dropdown-popup .e-item:hover .e-icons,
.fl-theme-dark .e-dropdown-popup .e-item.e-hover .e-menu-icon,
.fl-theme-dark .e-dropdown-popup .e-item.e-hover .e-icons,
html.fl-theme-dark .e-dropdown-menu .e-item:hover .e-menu-icon,
html.fl-theme-dark .e-dropdown-menu .e-item:hover .e-icons,
body.fl-theme-dark .e-dropdown-menu .e-item:hover .e-menu-icon,
body.fl-theme-dark .e-dropdown-menu .e-item:hover .e-icons,
.fl-theme-dark .e-dropdown-menu .e-item:hover .e-menu-icon,
.fl-theme-dark .e-dropdown-menu .e-item:hover .e-icons {
    color: #93C5FD !important;
    fill: #93C5FD !important;
}

/* User Profile Dropdown Menu in Dark Theme */
html.fl-theme-dark .fl-dropdown,
body.fl-theme-dark .fl-dropdown,
.fl-theme-dark .fl-dropdown {
    background-color: #0F1B32 !important;
    background: #0F1B32 !important;
    border-color: #1C2D4A !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45) !important;
}

html.fl-theme-dark .fl-dropdown__fullname,
body.fl-theme-dark .fl-dropdown__fullname,
.fl-theme-dark .fl-dropdown__fullname {
    color: #F8FAFC !important;
}

html.fl-theme-dark .fl-dropdown__email,
body.fl-theme-dark .fl-dropdown__email,
.fl-theme-dark .fl-dropdown__email {
    color: #CBD5E1 !important;
}

html.fl-theme-dark .fl-dropdown__item,
body.fl-theme-dark .fl-dropdown__item,
.fl-theme-dark .fl-dropdown__item {
    color: #E2E8F0 !important;
}

html.fl-theme-dark .fl-dropdown__item svg,
body.fl-theme-dark .fl-dropdown__item svg,
.fl-theme-dark .fl-dropdown__item svg,
html.fl-theme-dark .fl-dropdown__icon,
body.fl-theme-dark .fl-dropdown__icon,
.fl-theme-dark .fl-dropdown__icon {
    stroke: #60A5FA !important;
    color: #60A5FA !important;
}

html.fl-theme-dark .fl-dropdown__item:hover,
body.fl-theme-dark .fl-dropdown__item:hover,
.fl-theme-dark .fl-dropdown__item:hover {
    background-color: #142037 !important;
    color: #60A5FA !important;
}

html.fl-theme-dark .fl-dropdown__item:hover svg,
body.fl-theme-dark .fl-dropdown__item:hover svg,
.fl-theme-dark .fl-dropdown__item:hover svg,
html.fl-theme-dark .fl-dropdown__item:hover .fl-dropdown__icon,
body.fl-theme-dark .fl-dropdown__item:hover .fl-dropdown__icon,
.fl-theme-dark .fl-dropdown__item:hover .fl-dropdown__icon {
    stroke: #93C5FD !important;
    color: #93C5FD !important;
}

html.fl-theme-dark .fl-dropdown__divider,
body.fl-theme-dark .fl-dropdown__divider,
.fl-theme-dark .fl-dropdown__divider {
    background-color: #1C2D4A !important;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   â”€â”€ GLOBAL DARK THEME RADIO BUTTONS & LABELS (Bug 4) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
html.fl-theme-dark .fl-radio-btn-group,
body.fl-theme-dark .fl-radio-btn-group,
.fl-theme-dark .fl-radio-btn-group {
    background-color: #0B1528 !important;
    border-color: #1C2D4A !important;
}

html.fl-theme-dark .fl-form-radio.e-radio-wrapper .e-label,
body.fl-theme-dark .fl-form-radio.e-radio-wrapper .e-label,
.fl-theme-dark .fl-form-radio.e-radio-wrapper .e-label,
html.fl-theme-dark .e-radio-wrapper .e-label,
body.fl-theme-dark .e-radio-wrapper .e-label,
.fl-theme-dark .e-radio-wrapper .e-label {
    color: #E2E8F0 !important;
}

html.fl-theme-dark .fl-form-radio.e-radio-wrapper .e-radio:checked + .e-label,
body.fl-theme-dark .fl-form-radio.e-radio-wrapper .e-radio:checked + .e-label,
.fl-theme-dark .fl-form-radio.e-radio-wrapper .e-radio:checked + .e-label,
html.fl-theme-dark .e-radio-wrapper .e-radio:checked + .e-label,
body.fl-theme-dark .e-radio-wrapper .e-radio:checked + .e-label,
.fl-theme-dark .e-radio-wrapper .e-radio:checked + .e-label {
    color: #60A5FA !important;
}

html.fl-theme-dark .fl-timing-badge,
body.fl-theme-dark .fl-timing-badge,
.fl-theme-dark .fl-timing-badge {
    background: rgba(30, 58, 138, 0.4) !important;
    border-color: rgba(96, 165, 250, 0.3) !important;
    color: #93C5FD !important;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   â”€â”€ GLOBAL FORM CONTROLS & SELECTS (LIGHT & DARK THEME) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
/* Light Theme Form Controls */
html.fl-theme-light .form-control,
body.fl-theme-light .form-control,
html.fl-theme-light input.form-control,
body.fl-theme-light input.form-control,
html.fl-theme-light .form-select,
body.fl-theme-light .form-select,
html.fl-theme-light select.form-select,
body.fl-theme-light select.form-select,
html.fl-theme-light .fl-category-prefix-input,
body.fl-theme-light .fl-category-prefix-input,
.fl-category-prefix-input {
    background-color: #FFFFFF !important;
    background: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    color: #0F172A !important;
}

html.fl-theme-light .fl-category-prefix-input:focus,
body.fl-theme-light .fl-category-prefix-input:focus,
.fl-category-prefix-input:focus,
.fl-category-prefix-input:active {
    background-color: #FFFFFF !important;
    background: #FFFFFF !important;
    border-color: #3B82F6 !important;
    color: #0F172A !important;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15) !important;
    outline: none !important;
}

html.fl-theme-light .form-control::placeholder,
body.fl-theme-light .form-control::placeholder,
html.fl-theme-light .fl-category-prefix-input::placeholder,
body.fl-theme-light .fl-category-prefix-input::placeholder,
.fl-category-prefix-input::placeholder {
    color: #94A3B8 !important;
}

/* Dark Theme Form Controls */
html.fl-theme-dark .form-control,
body.fl-theme-dark .form-control,
html.fl-theme-dark input.form-control,
body.fl-theme-dark input.form-control,
html.fl-theme-dark .form-select,
body.fl-theme-dark .form-select,
html.fl-theme-dark select.form-select,
body.fl-theme-dark select.form-select,
html.fl-theme-dark .fl-category-prefix-input,
body.fl-theme-dark .fl-category-prefix-input {
    background-color: #142037 !important;
    background: #142037 !important;
    border: 1px solid #1C2D4A !important;
    color: #F1F5F9 !important;
}

html.fl-theme-dark select.form-select,
body.fl-theme-dark select.form-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='%2394A3B8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 16px 12px !important;
}

html.fl-theme-dark .form-control:focus,
body.fl-theme-dark .form-control:focus,
html.fl-theme-dark .form-select:focus,
body.fl-theme-dark .form-select:focus,
html.fl-theme-dark .fl-category-prefix-input:focus,
body.fl-theme-dark .fl-category-prefix-input:focus {
    background-color: #16243E !important;
    border-color: #3B82F6 !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25) !important;
}

html.fl-theme-dark select.form-select option,
body.fl-theme-dark select.form-select option {
    background-color: #0F1B32 !important;
    color: #F1F5F9 !important;
}

html.fl-theme-dark .form-control::placeholder,
body.fl-theme-dark .form-control::placeholder,
html.fl-theme-dark .fl-category-prefix-input::placeholder,
body.fl-theme-dark .fl-category-prefix-input::placeholder {
    color: #64748B !important;
}

/* â”€â”€ Global Form Switch, Checkbox, Radio & Input Group in Dark Theme â”€â”€ */
html.fl-theme-dark .form-check-label,
body.fl-theme-dark .form-check-label,
.fl-theme-dark .form-check-label {
    color: #E2E8F0 !important;
    cursor: pointer;
}

/* Regular Checkbox & Radio in Dark Mode */
html.fl-theme-dark .form-check-input:not(.form-switch .form-check-input),
body.fl-theme-dark .form-check-input:not(.form-switch .form-check-input),
.fl-theme-dark .form-check-input:not(.form-switch .form-check-input) {
    background-color: #142037 !important;
    border: 1px solid #334155 !important;
}

html.fl-theme-dark .form-check-input:not(.form-switch .form-check-input):checked,
body.fl-theme-dark .form-check-input:not(.form-switch .form-check-input):checked,
.fl-theme-dark .form-check-input:not(.form-switch .form-check-input):checked {
    background-color: var(--fl-color-blue, #1565FF) !important;
    border-color: var(--fl-color-blue, #1565FF) !important;
}

/* Form Switches in Dark Mode */
html.fl-theme-dark .form-switch .form-check-input,
body.fl-theme-dark .form-switch .form-check-input,
.fl-theme-dark .form-switch .form-check-input {
    background-color: #1E293B !important;
    border: 1px solid #475569 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%2394A3B8'/%3e%3c/svg%3e") !important;
}

html.fl-theme-dark .form-switch .form-check-input:hover:not(:checked),
body.fl-theme-dark .form-switch .form-check-input:hover:not(:checked),
.fl-theme-dark .form-switch .form-check-input:hover:not(:checked) {
    background-color: #334155 !important;
    border-color: #64748B !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23E2E8F0'/%3e%3c/svg%3e") !important;
}

html.fl-theme-dark .form-switch .form-check-input:checked,
body.fl-theme-dark .form-switch .form-check-input:checked,
.fl-theme-dark .form-switch .form-check-input:checked {
    background-color: var(--fl-color-blue, #1565FF) !important;
    border-color: var(--fl-color-blue, #1565FF) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23FFFFFF'/%3e%3c/svg%3e") !important;
    box-shadow: 0 0 10px rgba(21, 101, 255, 0.4) !important;
}

html.fl-theme-dark .form-switch .form-check-input:disabled,
body.fl-theme-dark .form-switch .form-check-input:disabled,
.fl-theme-dark .form-switch .form-check-input:disabled {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    background-color: #0F172A !important;
    border-color: #1E293B !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%2364748B'/%3e%3c/svg%3e") !important;
}

html.fl-theme-dark .form-check-input:focus,
body.fl-theme-dark .form-check-input:focus,
.fl-theme-dark .form-check-input:focus {
    box-shadow: 0 0 0 0.12rem rgba(15, 27, 50, 0.9), 0 0 0 0.25rem #1565FF !important;
}

/* Input Group Text & Controls in Dark Mode */
html.fl-theme-dark .input-group-text,
body.fl-theme-dark .input-group-text,
.fl-theme-dark .input-group-text {
    background-color: #142037 !important;
    background: #142037 !important;
    border: 1px solid #1C2D4A !important;
    border-color: #1C2D4A !important;
    color: #94A3B8 !important;
}

html.fl-theme-dark .input-group > .form-control,
body.fl-theme-dark .input-group > .form-control,
.fl-theme-dark .input-group > .form-control {
    background-color: #0F1B32 !important;
    border-color: #1C2D4A !important;
    color: #F1F5F9 !important;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   â”€â”€ GLOBAL CATEGORY & FORMULA MODAL DIALOGS (Screen Fit & Centering)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.fl-category-dialog.e-dialog:not(.fl-service-category-dialog) {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    margin: auto !important;
    transform: none !important;
    max-height: min(88vh, 720px) !important;
    max-width: min(660px, 94vw) !important;
    width: min(660px, 94vw) !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 14px !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22) !important;
    overflow: hidden !important;
    z-index: 100010 !important;
}

@media (max-width: 768px) {
    .fl-category-dialog.e-dialog:not(.fl-service-category-dialog) {
        top: 10px !important;
        bottom: 10px !important;
        left: 0 !important;
        right: 0 !important;
        margin: auto !important;
        transform: none !important;
        width: 95vw !important;
        max-width: 95vw !important;
        max-height: calc(100vh - 20px) !important;
    }
}

.fl-category-dialog.e-dialog:not(.fl-service-category-dialog) .e-dlg-header-content {
    flex: 0 0 auto !important;
    padding: 14px 20px !important;
    border-bottom: 1px solid var(--fl-border, #E2E8F0) !important;
    background-color: var(--fl-bg-surface, #FFFFFF) !important;
}

.fl-category-dialog.e-dialog:not(.fl-service-category-dialog) .e-dlg-header {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: var(--fl-text-primary, #0F172A) !important;
}

.fl-category-dialog.e-dialog:not(.fl-service-category-dialog) .e-dlg-content {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    max-height: calc(min(88vh, 720px) - 125px) !important;
    padding: 16px 20px !important;
}

.fl-category-dialog.e-dialog:not(.fl-service-category-dialog) .e-footer-content {
    flex: 0 0 auto !important;
    padding: 12px 20px !important;
    border-top: 1px solid var(--fl-border, #E2E8F0) !important;
    background-color: var(--fl-bg-surface-2, #F8FAFC) !important;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   â”€â”€ DYNAMIC FORMULA ADD MODAL DIALOG (.fl-formula-dialog)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.fl-formula-dialog.e-dialog {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    bottom: auto !important;
    right: auto !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    width: min(650px, 95vw) !important;
    max-width: min(650px, 95vw) !important;
    max-height: min(90vh, 750px) !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 14px !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25) !important;
    overflow: hidden !important;
}

.fl-formula-dialog.e-dialog .e-dlg-header-content {
    flex: 0 0 auto !important;
    padding: 14px 20px !important;
    border-bottom: 1px solid var(--fl-border, #E2E8F0) !important;
    background-color: var(--fl-bg-surface, #FFFFFF) !important;
}

.fl-formula-dialog.e-dialog .e-dlg-header {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: var(--fl-text-primary, #0F172A) !important;
}

.fl-formula-dialog.e-dialog .e-dlg-content {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: calc(min(90vh, 750px) - 60px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 16px 20px 0 20px !important;
    -webkit-overflow-scrolling: touch !important;
}

.fl-formula-dialog.e-dialog form {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100% !important;
}

/* Sticky footer for formula dialog to guarantee Save/Cancel are always visible without extra space */
.fl-formula-dialog-footer {
    position: sticky;
    bottom: 0;
    margin-top: auto;
    background: var(--fl-bg-surface, #FFFFFF);
    border-top: 1px solid var(--fl-border, #E2E8F0);
    padding: 12px 20px;
    margin-left: -20px;
    margin-right: -20px;
    margin-bottom: 0;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    z-index: 50;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

/* â”€â”€ Mobile Responsive Layout for Add Formula Dialog (< 768px) â”€â”€ */
@media (max-width: 767.98px) {
    .fl-formula-dialog.e-dialog {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        bottom: auto !important;
        right: auto !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        width: calc(100vw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        min-width: calc(100vw - 16px) !important;
        height: auto !important;
        max-height: 90vh !important;
        max-height: 90dvh !important;
        border-radius: 14px !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    .fl-formula-dialog.e-dialog .e-dlg-header-content {
        flex: 0 0 auto !important;
        padding: 12px 14px !important;
    }

    .fl-formula-dialog.e-dialog .e-dlg-header {
        font-size: 0.95rem !important;
        font-weight: 700 !important;
    }

    .fl-formula-dialog.e-dialog .e-dlg-content {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        max-height: calc(90dvh - 50px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding: 12px 14px 0 14px !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .fl-formula-dialog.e-dialog form {
        display: flex !important;
        flex-direction: column !important;
        min-height: 100% !important;
    }

    .fl-formula-dialog-footer {
        margin-top: auto !important;
        padding: 10px 14px !important;
        margin-left: -14px !important;
        margin-right: -14px !important;
        margin-bottom: 0 !important;
    }

    .fl-formula-dialog.e-dialog .fl-form-label {
        font-size: 0.75rem !important;
        margin-bottom: 0.2rem !important;
        line-height: 1.2 !important;
        min-height: auto !important;
    }

    .fl-formula-dialog.e-dialog .row.g-3 {
        --bs-gutter-y: 0.55rem !important;
        --bs-gutter-x: 0.55rem !important;
    }

    .fl-formula-dialog.e-dialog .border.rounded.p-2.bg-light {
        padding: 6px !important;
    }
}

/* Dark mode support for Formula Dialog */
.fl-theme-dark .fl-formula-dialog.e-dialog,
html.fl-theme-dark .fl-formula-dialog.e-dialog {
    background-color: #0F1B32 !important;
    border: 1px solid #1E2D4A !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45) !important;
}

.fl-theme-dark .fl-formula-dialog.e-dialog .e-dlg-header-content,
html.fl-theme-dark .fl-formula-dialog.e-dialog .e-dlg-header-content {
    background-color: #0F1B32 !important;
    border-bottom-color: #1E2D4A !important;
}

.fl-theme-dark .fl-formula-dialog.e-dialog .e-dlg-header,
html.fl-theme-dark .fl-formula-dialog.e-dialog .e-dlg-header {
    color: #F8FAFC !important;
}

.fl-theme-dark .fl-formula-dialog.e-dialog .e-dlg-content,
html.fl-theme-dark .fl-formula-dialog.e-dialog .e-dlg-content {
    background-color: #0F1B32 !important;
    color: #F8FAFC !important;
}

.fl-theme-dark .fl-formula-dialog-footer,
html.fl-theme-dark .fl-formula-dialog-footer {
    background: #0F1B32 !important;
    border-top-color: #1E2D4A !important;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3) !important;
}

.fl-theme-dark .fl-formula-dialog.e-dialog .bg-light,
html.fl-theme-dark .fl-formula-dialog.e-dialog .bg-light {
    background-color: #142037 !important;
    border-color: #1E2D4A !important;
}

.fl-theme-dark .fl-formula-dialog.e-dialog .text-dark,
html.fl-theme-dark .fl-formula-dialog.e-dialog .text-dark {
    color: #F8FAFC !important;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   â”€â”€ QUICK ADD SERVICE CATEGORY DIALOG (Compact 2-Field Dialog) â”€â”€â”€â”€â”€
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.fl-service-category-dialog.e-dialog {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    bottom: auto !important;
    right: auto !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    width: 440px !important;
    max-width: min(440px, 94vw) !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: min(85vh, 480px) !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22) !important;
    overflow: hidden !important;
    background-color: var(--fl-bg-surface, #FFFFFF) !important;
    border: 1px solid var(--fl-border, #E2E8F0) !important;
}

.fl-service-category-dialog.e-dialog .e-dlg-header-content {
    flex: 0 0 auto !important;
    padding: 14px 20px !important;
    border-bottom: 1px solid var(--fl-border, #E2E8F0) !important;
    background-color: var(--fl-bg-surface, #FFFFFF) !important;
}

.fl-service-category-dialog.e-dialog .e-dlg-header {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: var(--fl-text-primary, #0F172A) !important;
}

.fl-service-category-dialog.e-dialog .e-dlg-content {
    flex: 0 1 auto !important;
    height: auto !important;
    overflow-y: auto !important;
    padding: 18px 20px 8px 20px !important;
    background-color: var(--fl-bg-surface, #FFFFFF) !important;
}

.fl-service-category-dialog.e-dialog .e-footer-content {
    flex: 0 0 auto !important;
    padding: 12px 20px !important;
    border-top: 1px solid var(--fl-border, #E2E8F0) !important;
    background-color: var(--fl-bg-surface-2, #F8FAFC) !important;
}

/* Dark Theme for Service Category Dialog */
html.fl-theme-dark .fl-service-category-dialog.e-dialog,
body.fl-theme-dark .fl-service-category-dialog.e-dialog,
.fl-theme-dark .fl-service-category-dialog.e-dialog {
    background-color: #0F1B32 !important;
    border: 1px solid #1C2D4A !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55) !important;
    color: #F1F5F9 !important;
}

html.fl-theme-dark .fl-service-category-dialog .e-dlg-header-content,
body.fl-theme-dark .fl-service-category-dialog .e-dlg-header-content,
.fl-theme-dark .fl-service-category-dialog .e-dlg-header-content {
    background-color: #142037 !important;
    border-bottom: 1px solid #1C2D4A !important;
    color: #F8FAFC !important;
}

html.fl-theme-dark .fl-service-category-dialog .e-dlg-header,
body.fl-theme-dark .fl-service-category-dialog .e-dlg-header,
.fl-theme-dark .fl-service-category-dialog .e-dlg-header {
    color: #F8FAFC !important;
}

html.fl-theme-dark .fl-service-category-dialog .e-dlg-content,
body.fl-theme-dark .fl-service-category-dialog .e-dlg-content,
.fl-theme-dark .fl-service-category-dialog .e-dlg-content {
    background-color: #0F1B32 !important;
    color: #E2E8F0 !important;
}

html.fl-theme-dark .fl-service-category-dialog .fl-form-label,
body.fl-theme-dark .fl-service-category-dialog .fl-form-label,
.fl-theme-dark .fl-service-category-dialog .fl-form-label {
    color: #94A3B8 !important;
}

html.fl-theme-dark .fl-service-category-dialog .e-input-group,
html.fl-theme-dark .fl-service-category-dialog .e-input-group.e-control-wrapper,
body.fl-theme-dark .fl-service-category-dialog .e-input-group,
body.fl-theme-dark .fl-service-category-dialog .e-input-group.e-control-wrapper,
.fl-theme-dark .fl-service-category-dialog .e-input-group,
.fl-theme-dark .fl-service-category-dialog .e-input-group.e-control-wrapper {
    background-color: #0B132B !important;
    border-color: #2D3F5E !important;
}

html.fl-theme-dark .fl-service-category-dialog input.e-input,
html.fl-theme-dark .fl-service-category-dialog textarea.e-input,
body.fl-theme-dark .fl-service-category-dialog input.e-input,
body.fl-theme-dark .fl-service-category-dialog textarea.e-input,
.fl-theme-dark .fl-service-category-dialog input.e-input,
.fl-theme-dark .fl-service-category-dialog textarea.e-input {
    background-color: #0B132B !important;
    color: #F8FAFC !important;
}

html.fl-theme-dark .fl-service-category-dialog input.e-input::placeholder,
html.fl-theme-dark .fl-service-category-dialog textarea.e-input::placeholder,
body.fl-theme-dark .fl-service-category-dialog input.e-input::placeholder,
body.fl-theme-dark .fl-service-category-dialog textarea.e-input::placeholder,
.fl-theme-dark .fl-service-category-dialog input.e-input::placeholder,
.fl-theme-dark .fl-service-category-dialog textarea.e-input::placeholder {
    color: #64748B !important;
}

html.fl-theme-dark .fl-service-category-dialog .e-footer-content,
body.fl-theme-dark .fl-service-category-dialog .e-footer-content,
.fl-theme-dark .fl-service-category-dialog .e-footer-content {
    background-color: #142037 !important;
    border-top: 1px solid #1C2D4A !important;
}

html.fl-theme-dark .fl-service-category-dialog .e-btn.e-outline,
body.fl-theme-dark .fl-service-category-dialog .e-btn.e-outline,
.fl-theme-dark .fl-service-category-dialog .e-btn.e-outline {
    background-color: transparent !important;
    border-color: #2D3F5E !important;
    color: #CBD5E1 !important;
}

html.fl-theme-dark .fl-service-category-dialog .e-btn.e-outline:hover,
body.fl-theme-dark .fl-service-category-dialog .e-btn.e-outline:hover,
.fl-theme-dark .fl-service-category-dialog .e-btn.e-outline:hover {
    background-color: #1E293B !important;
    color: #F8FAFC !important;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   â”€â”€ GLOBAL DARK THEME DIALOGS (Category & Attribute Modals) â”€â”€â”€â”€â”€â”€â”€â”€
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
html.fl-theme-dark .fl-category-dialog.e-dialog,
body.fl-theme-dark .fl-category-dialog.e-dialog,
.fl-theme-dark .fl-category-dialog.e-dialog,
html.fl-theme-dark .fl-dialog-dark.e-dialog,
body.fl-theme-dark .fl-dialog-dark.e-dialog,
.fl-theme-dark .fl-dialog-dark.e-dialog,
html.fl-theme-dark .fl-attr-modal.e-dialog,
body.fl-theme-dark .fl-attr-modal.e-dialog,
.fl-theme-dark .fl-attr-modal.e-dialog {
    background-color: #0F1B32 !important;
    border: 1px solid #1C2D4A !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55) !important;
    color: #F1F5F9 !important;
}

html.fl-theme-dark .fl-category-dialog .e-dlg-header-content,
body.fl-theme-dark .fl-category-dialog .e-dlg-header-content,
.fl-theme-dark .fl-category-dialog .e-dlg-header-content,
html.fl-theme-dark .fl-dialog-dark .e-dlg-header-content,
body.fl-theme-dark .fl-dialog-dark .e-dlg-header-content,
.fl-theme-dark .fl-dialog-dark .e-dlg-header-content,
html.fl-theme-dark .fl-attr-modal .e-dlg-header-content,
body.fl-theme-dark .fl-attr-modal .e-dlg-header-content,
.fl-theme-dark .fl-attr-modal .e-dlg-header-content {
    background-color: #142037 !important;
    border-bottom: 1px solid #1C2D4A !important;
    color: #F8FAFC !important;
}

html.fl-theme-dark .fl-category-dialog .e-dlg-content,
body.fl-theme-dark .fl-category-dialog .e-dlg-content,
.fl-theme-dark .fl-category-dialog .e-dlg-content,
html.fl-theme-dark .fl-dialog-dark .e-dlg-content,
body.fl-theme-dark .fl-dialog-dark .e-dlg-content,
.fl-theme-dark .fl-dialog-dark .e-dlg-content,
html.fl-theme-dark .fl-attr-modal .e-dlg-content,
body.fl-theme-dark .fl-attr-modal .e-dlg-content,
.fl-theme-dark .fl-attr-modal .e-dlg-content {
    background-color: #0F1B32 !important;
    color: #E2E8F0 !important;
}

html.fl-theme-dark .fl-category-dialog .e-footer-content,
body.fl-theme-dark .fl-category-dialog .e-footer-content,
.fl-theme-dark .fl-category-dialog .e-footer-content,
html.fl-theme-dark .fl-dialog-dark .e-footer-content,
body.fl-theme-dark .fl-dialog-dark .e-footer-content,
.fl-theme-dark .fl-dialog-dark .e-footer-content,
html.fl-theme-dark .fl-attr-modal .e-footer-content,
body.fl-theme-dark .fl-attr-modal .e-footer-content,
.fl-theme-dark .fl-attr-modal .e-footer-content {
    background-color: #0B1424 !important;
    border-top: 1px solid #1C2D4A !important;
}

/* Category Modal SKU Preview Card & Barcode Visual (FL-FLBILL-222) */
html.fl-theme-dark .fl-sku-preview-card,
body.fl-theme-dark .fl-sku-preview-card,
.fl-theme-dark .fl-sku-preview-card {
    background-color: #101B2E !important;
    border-color: #1C2D4A !important;
}

html.fl-theme-dark .fl-preview-title,
body.fl-theme-dark .fl-preview-title,
.fl-theme-dark .fl-preview-title {
    color: #F8FAFC !important;
}

html.fl-theme-dark .fl-sku-autoformat-badge,
body.fl-theme-dark .fl-sku-autoformat-badge,
.fl-theme-dark .fl-sku-autoformat-badge {
    background-color: rgba(59, 130, 246, 0.15) !important;
    color: #60A5FA !important;
    border-color: rgba(59, 130, 246, 0.35) !important;
}

html.fl-theme-dark .fl-barcode-visual,
body.fl-theme-dark .fl-barcode-visual,
.fl-theme-dark .fl-barcode-visual {
    background-color: #142037 !important;
    border: 1px solid #1C2D4A !important;
}

html.fl-theme-dark .fl-barcode-text,
body.fl-theme-dark .fl-barcode-text,
.fl-theme-dark .fl-barcode-text {
    color: #60A5FA !important;
}

html.fl-theme-dark .fl-derived-prefix-box,
body.fl-theme-dark .fl-derived-prefix-box,
.fl-theme-dark .fl-derived-prefix-box {
    background-color: #142037 !important;
    border-color: #1C2D4A !important;
    color: #94A3B8 !important;
}

/* Product Attributes Table (FL-FLBILL-224) */
html.fl-theme-dark .fl-attr-table-wrap,
body.fl-theme-dark .fl-attr-table-wrap,
.fl-theme-dark .fl-attr-table-wrap {
    background-color: #0F1B32 !important;
    border-color: #1C2D4A !important;
}

html.fl-theme-dark .fl-attr-thead,
body.fl-theme-dark .fl-attr-thead,
.fl-theme-dark .fl-attr-thead {
    background-color: #142037 !important;
    border-bottom: 1px solid #1C2D4A !important;
}

html.fl-theme-dark .fl-attr-thead th,
body.fl-theme-dark .fl-attr-thead th,
.fl-theme-dark .fl-attr-thead th {
    background-color: transparent !important;
    color: #94A3B8 !important;
}

html.fl-theme-dark .fl-attr-table td,
body.fl-theme-dark .fl-attr-table td,
.fl-theme-dark .fl-attr-table td {
    background-color: transparent !important;
    color: #E2E8F0 !important;
    border-color: #1C2D4A !important;
}

html.fl-theme-dark .fl-attr-table tbody tr:hover td,
body.fl-theme-dark .fl-attr-table tbody tr:hover td,
.fl-theme-dark .fl-attr-table tbody tr:hover td {
    background-color: #142037 !important;
}

html.fl-theme-dark .fl-attr-name,
body.fl-theme-dark .fl-attr-name,
.fl-theme-dark .fl-attr-name {
    color: #F8FAFC !important;
}

html.fl-theme-dark .fl-attr-title,
body.fl-theme-dark .fl-attr-title,
.fl-theme-dark .fl-attr-title {
    color: #F8FAFC !important;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   â”€â”€ SUBSCRIPTION QUICK VALIDITY PRESETS (FL-FLBILL-226) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.fl-preset-label {
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #94A3B8 !important;
    display: block !important;
    margin-bottom: 0.5rem !important;
}

.fl-preset-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.38rem 0.85rem !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 160ms ease !important;
    white-space: nowrap !important;
    outline: none !important;
    text-decoration: none !important;
}

/* â”€â”€ 28, 56, 84 Days (Mobile): Warm Amber / Gold Accent â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
html.fl-theme-dark .fl-preset-btn--day,
body.fl-theme-dark .fl-preset-btn--day,
.fl-theme-dark .fl-preset-btn--day,
.fl-preset-btn--day {
    background-color: rgba(245, 158, 11, 0.14) !important;
    background: rgba(245, 158, 11, 0.14) !important;
    border: 1px solid rgba(245, 158, 11, 0.45) !important;
    color: #FBBF24 !important;
}

html.fl-theme-dark .fl-preset-btn--day:hover,
body.fl-theme-dark .fl-preset-btn--day:hover,
.fl-theme-dark .fl-preset-btn--day:hover,
.fl-preset-btn--day:hover {
    background-color: rgba(245, 158, 11, 0.25) !important;
    background: rgba(245, 158, 11, 0.25) !important;
    border-color: #F59E0B !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.35) !important;
}

html.fl-theme-dark .fl-preset-btn--day:active,
body.fl-theme-dark .fl-preset-btn--day:active,
.fl-theme-dark .fl-preset-btn--day:active,
.fl-preset-btn--day:active {
    background-color: #F59E0B !important;
    border-color: #D97706 !important;
    color: #0F172A !important;
}

/* â”€â”€ 1, 3, 6 Months: Vibrant Royal Blue â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
html.fl-theme-dark .fl-preset-btn--month,
body.fl-theme-dark .fl-preset-btn--month,
.fl-theme-dark .fl-preset-btn--month,
.fl-preset-btn--month {
    background-color: rgba(59, 130, 246, 0.14) !important;
    background: rgba(59, 130, 246, 0.14) !important;
    border: 1px solid rgba(59, 130, 246, 0.45) !important;
    color: #60A5FA !important;
}

html.fl-theme-dark .fl-preset-btn--month:hover,
body.fl-theme-dark .fl-preset-btn--month:hover,
.fl-theme-dark .fl-preset-btn--month:hover,
.fl-preset-btn--month:hover {
    background-color: rgba(59, 130, 246, 0.25) !important;
    background: rgba(59, 130, 246, 0.25) !important;
    border-color: #3B82F6 !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.35) !important;
}

html.fl-theme-dark .fl-preset-btn--month:active,
body.fl-theme-dark .fl-preset-btn--month:active,
.fl-theme-dark .fl-preset-btn--month:active,
.fl-preset-btn--month:active {
    background-color: #3B82F6 !important;
    border-color: #2563EB !important;
    color: #FFFFFF !important;
}

/* â”€â”€ 1 Year (Annual): Fresh Emerald Green â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
html.fl-theme-dark .fl-preset-btn--year,
body.fl-theme-dark .fl-preset-btn--year,
.fl-theme-dark .fl-preset-btn--year,
.fl-preset-btn--year {
    background-color: rgba(16, 185, 129, 0.14) !important;
    background: rgba(16, 185, 129, 0.14) !important;
    border: 1px solid rgba(16, 185, 129, 0.45) !important;
    color: #34D399 !important;
}

html.fl-theme-dark .fl-preset-btn--year:hover,
body.fl-theme-dark .fl-preset-btn--year:hover,
.fl-theme-dark .fl-preset-btn--year:hover,
.fl-preset-btn--year:hover {
    background-color: rgba(16, 185, 129, 0.25) !important;
    background: rgba(16, 185, 129, 0.25) !important;
    border-color: #10B981 !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.35) !important;
}

html.fl-theme-dark .fl-preset-btn--year:active,
body.fl-theme-dark .fl-preset-btn--year:active,
.fl-theme-dark .fl-preset-btn--year:active,
.fl-preset-btn--year:active {
    background-color: #10B981 !important;
    border-color: #059669 !important;
    color: #FFFFFF !important;
}

/* â”€â”€ Light Mode Overrides â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
html.fl-theme-light .fl-preset-btn--day,
body.fl-theme-light .fl-preset-btn--day {
    background-color: #FEF3C7 !important;
    background: #FEF3C7 !important;
    border-color: #FCD34D !important;
    color: #B45309 !important;
}

html.fl-theme-light .fl-preset-btn--day:hover,
body.fl-theme-light .fl-preset-btn--day:hover {
    background-color: #FDE68A !important;
    background: #FDE68A !important;
    color: #92400E !important;
}

html.fl-theme-light .fl-preset-btn--month,
body.fl-theme-light .fl-preset-btn--month {
    background-color: #EFF6FF !important;
    background: #EFF6FF !important;
    border-color: #BFDBFE !important;
    color: #1D4ED8 !important;
}

html.fl-theme-light .fl-preset-btn--month:hover,
body.fl-theme-light .fl-preset-btn--month:hover {
    background-color: #DBEAFE !important;
    background: #DBEAFE !important;
    color: #1E40AF !important;
}

html.fl-theme-light .fl-preset-btn--year,
body.fl-theme-light .fl-preset-btn--year {
    background-color: #ECFDF5 !important;
    background: #ECFDF5 !important;
    border-color: #A7F3D0 !important;
    color: #047857 !important;
}

html.fl-theme-light .fl-preset-btn--year:hover,
body.fl-theme-light .fl-preset-btn--year:hover {
    background-color: #D1FAE5 !important;
    background: #D1FAE5 !important;
    color: #065F46 !important;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SUBSCRIPTION PILL & CONTROLS (GLOBAL STYLES)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.fl-subscription-pill {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    background-color: #F3E8FF;
    color: #7E22CE;
    border: 1px solid #D8B4FE;
    line-height: 1.3;
}

.fl-subscription-pill--sm {
    font-size: 0.68rem;
    padding: 1px 6px;
}

.fl-cycle-badge {
    background-color: #F1F5F9;
    color: #475569;
    border: 1px solid #E2E8F0;
    font-size: 0.7rem;
    font-weight: 500;
}

.fl-sub-price {
    color: #7E22CE;
}

.fl-btn-add-subscription {
    color: #7E22CE !important;
    border-color: #D8B4FE !important;
}

.fl-btn-add-subscription:hover {
    background: #F3E8FF !important;
    color: #6B21A8 !important;
}

/* Dark Theme Overrides for Subscription elements */
html.fl-theme-dark .fl-subscription-pill,
body.fl-theme-dark .fl-subscription-pill,
.fl-theme-dark .fl-subscription-pill {
    background: rgba(168, 85, 247, 0.16) !important;
    background-color: rgba(168, 85, 247, 0.16) !important;
    color: #D8B4FE !important;
    border-color: rgba(168, 85, 247, 0.38) !important;
}

html.fl-theme-dark .fl-cycle-badge,
body.fl-theme-dark .fl-cycle-badge,
.fl-theme-dark .fl-cycle-badge {
    background: #1C2D4A !important;
    background-color: #1C2D4A !important;
    color: #94A3B8 !important;
    border-color: #2D3F5E !important;
}

html.fl-theme-dark .fl-sub-price,
body.fl-theme-dark .fl-sub-price,
.fl-theme-dark .fl-sub-price {
    color: #C084FC !important;
}

html.fl-theme-dark .fl-btn-add-subscription,
body.fl-theme-dark .fl-btn-add-subscription,
.fl-theme-dark .fl-btn-add-subscription {
    color: #C084FC !important;
    border-color: rgba(168, 85, 247, 0.45) !important;
    background: rgba(168, 85, 247, 0.08) !important;
}

html.fl-theme-dark .fl-btn-add-subscription:hover,
body.fl-theme-dark .fl-btn-add-subscription:hover,
.fl-theme-dark .fl-btn-add-subscription:hover {
    background: rgba(168, 85, 247, 0.2) !important;
    border-color: rgba(168, 85, 247, 0.7) !important;
    color: #E9D5FF !important;
}

/* Also ensure bg-purple-subtle behaves properly in dark theme */
html.fl-theme-dark .bg-purple-subtle,
body.fl-theme-dark .bg-purple-subtle,
.fl-theme-dark .bg-purple-subtle {
    background-color: rgba(168, 85, 247, 0.16) !important;
    color: #D8B4FE !important;
    border-color: rgba(168, 85, 247, 0.38) !important;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   GLOBAL DARK THEME DISABLED BUTTONS (PREVENTS WHITE BACKGROUND BUG)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
html.fl-theme-dark .e-btn:disabled,
html.fl-theme-dark .e-btn.e-disabled,
html.fl-theme-dark .e-btn.e-primary:disabled,
html.fl-theme-dark .e-btn.e-primary.e-disabled,
html.fl-theme-dark .e-btn.e-outline:disabled,
html.fl-theme-dark .e-btn.e-outline.e-disabled,
html.fl-theme-dark .e-css.e-btn:disabled,
html.fl-theme-dark .e-css.e-btn.e-disabled,
html.fl-theme-dark .e-css.e-btn.e-primary:disabled,
html.fl-theme-dark .e-css.e-btn.e-primary.e-disabled,
html.fl-theme-dark .fl-save-field-rules-btn:disabled,
html.fl-theme-dark .fl-save-field-rules-btn.e-disabled,
html.fl-theme-dark button:disabled,
html.fl-theme-dark button.e-disabled,
body.fl-theme-dark .e-btn:disabled,
body.fl-theme-dark .e-btn.e-disabled,
body.fl-theme-dark .e-btn.e-primary:disabled,
body.fl-theme-dark .e-btn.e-primary.e-disabled,
body.fl-theme-dark .e-btn.e-outline:disabled,
body.fl-theme-dark .e-btn.e-outline.e-disabled,
body.fl-theme-dark .e-css.e-btn:disabled,
body.fl-theme-dark .e-css.e-btn.e-disabled,
body.fl-theme-dark .e-css.e-btn.e-primary:disabled,
body.fl-theme-dark .e-css.e-btn.e-primary.e-disabled,
body.fl-theme-dark .fl-save-field-rules-btn:disabled,
body.fl-theme-dark .fl-save-field-rules-btn.e-disabled,
body.fl-theme-dark button:disabled,
body.fl-theme-dark button.e-disabled,
.fl-theme-dark .e-btn:disabled,
.fl-theme-dark .e-btn.e-disabled,
.fl-theme-dark .e-btn.e-primary:disabled,
.fl-theme-dark .e-btn.e-primary.e-disabled,
.fl-theme-dark .e-btn.e-outline:disabled,
.fl-theme-dark .e-btn.e-outline.e-disabled,
.fl-theme-dark .e-css.e-btn:disabled,
.fl-theme-dark .e-css.e-btn.e-disabled,
.fl-theme-dark .e-css.e-btn.e-primary:disabled,
.fl-theme-dark .e-css.e-btn.e-primary.e-disabled,
.fl-theme-dark .fl-save-field-rules-btn:disabled,
.fl-theme-dark .fl-save-field-rules-btn.e-disabled,
.fl-theme-dark button:disabled,
.fl-theme-dark button.e-disabled {
    background-color: #142037 !important;
    background: #142037 !important;
    border: 1px solid #1C2D4A !important;
    border-color: #1C2D4A !important;
    color: #64748B !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    opacity: 0.7 !important;
}

html.fl-theme-dark .e-btn:disabled *,
html.fl-theme-dark .e-btn.e-disabled *,
html.fl-theme-dark .e-btn.e-primary:disabled *,
html.fl-theme-dark .e-btn.e-primary.e-disabled *,
html.fl-theme-dark .fl-save-field-rules-btn:disabled *,
html.fl-theme-dark .fl-save-field-rules-btn.e-disabled *,
html.fl-theme-dark button:disabled *,
body.fl-theme-dark .e-btn:disabled *,
body.fl-theme-dark .e-btn.e-disabled *,
body.fl-theme-dark .e-btn.e-primary:disabled *,
body.fl-theme-dark .e-btn.e-primary.e-disabled *,
body.fl-theme-dark .fl-save-field-rules-btn:disabled *,
body.fl-theme-dark .fl-save-field-rules-btn.e-disabled *,
body.fl-theme-dark button:disabled *,
.fl-theme-dark .e-btn:disabled *,
.fl-theme-dark .e-btn.e-disabled *,
.fl-theme-dark .e-btn.e-primary:disabled *,
.fl-theme-dark .e-btn.e-primary.e-disabled *,
.fl-theme-dark .fl-save-field-rules-btn:disabled *,
.fl-theme-dark .fl-save-field-rules-btn.e-disabled *,
.fl-theme-dark button:disabled * {
    color: #64748B !important;
}

/* â”€â”€â”€ Excel-like Products & Line Items Table Dark Mode Hover â”€â”€â”€â”€â”€â”€â”€ */
html.fl-theme-dark .fl-excel-table tbody tr:hover td,
html.fl-theme-dark .fl-excel-table tbody tr:hover .fl-td-merged-item,
body.fl-theme-dark .fl-excel-table tbody tr:hover td,
body.fl-theme-dark .fl-excel-table tbody tr:hover .fl-td-merged-item,
.fl-theme-dark .fl-excel-table tbody tr:hover td,
.fl-theme-dark .fl-excel-table tbody tr:hover .fl-td-merged-item {
    background-color: #16243F !important;
    background: #16243F !important;
}

/* â”€â”€â”€ Global Alerts & Dialog Warnings Dark Theme Support â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
html.fl-theme-dark .alert-warning,
body.fl-theme-dark .alert-warning,
.fl-theme-dark .alert-warning {
    background-color: rgba(245, 158, 11, 0.12) !important;
    background: rgba(245, 158, 11, 0.12) !important;
    border-color: rgba(245, 158, 11, 0.35) !important;
    color: #FEF08A !important;
}

html.fl-theme-dark .alert-warning *,
body.fl-theme-dark .alert-warning *,
.fl-theme-dark .alert-warning * {
    color: inherit;
}

html.fl-theme-dark .alert-warning .text-dark,
body.fl-theme-dark .alert-warning .text-dark,
.fl-theme-dark .alert-warning .text-dark,
html.fl-theme-dark .alert-warning .fl-warning-prompt,
body.fl-theme-dark .alert-warning .fl-warning-prompt,
.fl-theme-dark .alert-warning .fl-warning-prompt {
    color: #FBBF24 !important;
}

html.fl-theme-dark .alert-warning .text-muted,
body.fl-theme-dark .alert-warning .text-muted,
.fl-theme-dark .alert-warning .text-muted,
html.fl-theme-dark .alert-warning .fl-warning-subtext,
body.fl-theme-dark .alert-warning .fl-warning-subtext,
.fl-theme-dark .alert-warning .fl-warning-subtext {
    color: #E2E8F0 !important;
    opacity: 0.9 !important;
}

html.fl-theme-dark .alert-warning i,
body.fl-theme-dark .alert-warning i,
.fl-theme-dark .alert-warning i {
    color: #F59E0B !important;
}

html.fl-theme-dark .alert-danger,
body.fl-theme-dark .alert-danger,
.fl-theme-dark .alert-danger {
    background-color: rgba(239, 68, 68, 0.12) !important;
    background: rgba(239, 68, 68, 0.12) !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
    color: #FECACA !important;
}

html.fl-theme-dark .alert-info,
body.fl-theme-dark .alert-info,
.fl-theme-dark .alert-info {
    background-color: rgba(56, 189, 248, 0.12) !important;
    background: rgba(56, 189, 248, 0.12) !important;
    border-color: rgba(56, 189, 248, 0.35) !important;
    color: #BAE6FD !important;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   â”€â”€ Settings Module (General, Field Rules & Module Defaults) Theme Consistency
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Settings Header â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
html.fl-theme-dark .fl-settings-page-container .fl-page-title,
body.fl-theme-dark .fl-settings-page-container .fl-page-title,
.fl-theme-dark .fl-settings-page-container .fl-page-title {
    color: #F8FAFC !important;
}

html.fl-theme-dark .fl-settings-page-container .fl-page-title i,
body.fl-theme-dark .fl-settings-page-container .fl-page-title i,
.fl-theme-dark .fl-settings-page-container .fl-page-title i {
    color: #60A5FA !important;
}

html.fl-theme-dark .fl-settings-page-container .fl-page-subtitle,
body.fl-theme-dark .fl-settings-page-container .fl-page-subtitle,
.fl-theme-dark .fl-settings-page-container .fl-page-subtitle {
    color: #94A3B8 !important;
}

/* â”€â”€ Settings Sub-Tabs Navigation â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
html.fl-theme-dark .fl-settings-page-container .fl-settings-tabs-nav,
body.fl-theme-dark .fl-settings-page-container .fl-settings-tabs-nav,
.fl-theme-dark .fl-settings-page-container .fl-settings-tabs-nav {
    background: #142037 !important;
    border-color: #1E2D4A !important;
}

html.fl-theme-dark .fl-settings-page-container .fl-settings-tab-btn,
body.fl-theme-dark .fl-settings-page-container .fl-settings-tab-btn,
.fl-theme-dark .fl-settings-page-container .fl-settings-tab-btn {
    color: #94A3B8 !important;
}

html.fl-theme-dark .fl-settings-page-container .fl-settings-tab-btn:hover,
body.fl-theme-dark .fl-settings-page-container .fl-settings-tab-btn:hover,
.fl-theme-dark .fl-settings-page-container .fl-settings-tab-btn:hover {
    color: #FFFFFF !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

html.fl-theme-dark .fl-settings-page-container .fl-settings-tab-btn.is-active,
body.fl-theme-dark .fl-settings-page-container .fl-settings-tab-btn.is-active,
.fl-theme-dark .fl-settings-page-container .fl-settings-tab-btn.is-active {
    color: #60A5FA !important;
    background: #0F1B32 !important;
    border-color: #1E2D4A !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
}

html.fl-theme-dark .fl-settings-page-container .fl-settings-nav-arrow,
body.fl-theme-dark .fl-settings-page-container .fl-settings-nav-arrow,
.fl-theme-dark .fl-settings-page-container .fl-settings-nav-arrow {
    background: #0F1B32 !important;
    border-color: #1E2D4A !important;
    color: #60A5FA !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
}

html.fl-theme-dark .fl-settings-page-container .fl-settings-nav-arrow i,
body.fl-theme-dark .fl-settings-page-container .fl-settings-nav-arrow i,
.fl-theme-dark .fl-settings-page-container .fl-settings-nav-arrow i {
    color: #60A5FA !important;
}

html.fl-theme-dark .fl-settings-page-container .fl-settings-nav-arrow:hover,
body.fl-theme-dark .fl-settings-page-container .fl-settings-nav-arrow:hover,
.fl-theme-dark .fl-settings-page-container .fl-settings-nav-arrow:hover {
    background: #142037 !important;
    border-color: #60A5FA !important;
}

/* â”€â”€ Cards & Structure in Dark Mode â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
html.fl-theme-dark .fl-settings-page-container .fl-card,
body.fl-theme-dark .fl-settings-page-container .fl-card,
.fl-theme-dark .fl-settings-page-container .fl-card {
    background: #0F1B32 !important;
    background-color: #0F1B32 !important;
    border-color: #1E2D4A !important;
}

html.fl-theme-dark .fl-settings-page-container .fl-card-header,
body.fl-theme-dark .fl-settings-page-container .fl-card-header,
.fl-theme-dark .fl-settings-page-container .fl-card-header {
    background: #142037 !important;
    background-color: #142037 !important;
    border-color: #1E2D4A !important;
}

html.fl-theme-dark .fl-settings-page-container .fl-card-body,
body.fl-theme-dark .fl-settings-page-container .fl-card-body,
.fl-theme-dark .fl-settings-page-container .fl-card-body {
    background: #0F1B32 !important;
    background-color: #0F1B32 !important;
    color: #E2E8F0 !important;
}

html.fl-theme-dark .fl-settings-page-container .fl-card-title,
body.fl-theme-dark .fl-settings-page-container .fl-card-title,
.fl-theme-dark .fl-settings-page-container .fl-card-title,
html.fl-theme-dark .fl-settings-page-container .fl-settings-section-title,
body.fl-theme-dark .fl-settings-page-container .fl-settings-section-title,
.fl-theme-dark .fl-settings-page-container .fl-settings-section-title {
    color: #F8FAFC !important;
}

html.fl-theme-dark .fl-settings-page-container .fl-card-subtitle,
body.fl-theme-dark .fl-settings-page-container .fl-card-subtitle,
.fl-theme-dark .fl-settings-page-container .fl-card-subtitle {
    color: #94A3B8 !important;
}

html.fl-theme-dark .fl-settings-page-container .fl-form-label,
body.fl-theme-dark .fl-settings-page-container .fl-form-label,
.fl-theme-dark .fl-settings-page-container .fl-form-label,
html.fl-theme-dark .fl-settings-page-container .form-label,
body.fl-theme-dark .fl-settings-page-container .form-label,
.fl-theme-dark .fl-settings-page-container .form-label {
    color: #94A3B8 !important;
}

html.fl-theme-dark .fl-settings-page-container .fl-input-hint,
body.fl-theme-dark .fl-settings-page-container .fl-input-hint,
.fl-theme-dark .fl-settings-page-container .fl-input-hint {
    color: #64748B !important;
}

/* â”€â”€ Module Defaults Navigation Buttons â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
html.fl-theme-dark .fl-settings-page-container .fl-module-nav-btn,
body.fl-theme-dark .fl-settings-page-container .fl-module-nav-btn,
.fl-theme-dark .fl-settings-page-container .fl-module-nav-btn {
    background: #0F1B32 !important;
    background-color: #0F1B32 !important;
    border-color: #1E2D4A !important;
    color: #E2E8F0 !important;
}

html.fl-theme-dark .fl-settings-page-container .fl-module-nav-btn:hover,
body.fl-theme-dark .fl-settings-page-container .fl-module-nav-btn:hover,
.fl-theme-dark .fl-settings-page-container .fl-module-nav-btn:hover {
    background: #142037 !important;
    background-color: #142037 !important;
    border-color: #2D3F5E !important;
}

html.fl-theme-dark .fl-settings-page-container .fl-module-nav-btn strong,
body.fl-theme-dark .fl-settings-page-container .fl-module-nav-btn strong,
.fl-theme-dark .fl-settings-page-container .fl-module-nav-btn strong {
    color: #F8FAFC !important;
}

html.fl-theme-dark .fl-settings-page-container .fl-module-nav-btn span,
body.fl-theme-dark .fl-settings-page-container .fl-module-nav-btn span,
.fl-theme-dark .fl-settings-page-container .fl-module-nav-btn span {
    color: #94A3B8 !important;
}

html.fl-theme-dark .fl-settings-page-container .fl-module-nav-btn i.bi-chevron-right,
body.fl-theme-dark .fl-settings-page-container .fl-module-nav-btn i.bi-chevron-right,
.fl-theme-dark .fl-settings-page-container .fl-module-nav-btn i.bi-chevron-right {
    color: #64748B !important;
}

/* â”€â”€ Product Settings: Categories & Inline Form (Screenshot 3 Fix) â”€ */
html.fl-theme-dark .fl-product-settings-card,
body.fl-theme-dark .fl-product-settings-card,
.fl-theme-dark .fl-product-settings-card {
    background: #0F1B32 !important;
    background-color: #0F1B32 !important;
    border-color: #1E2D4A !important;
    color: #F8FAFC !important;
}

html.fl-theme-dark .fl-product-settings-card .fl-card-title,
body.fl-theme-dark .fl-product-settings-card .fl-card-title,
.fl-theme-dark .fl-product-settings-card .fl-card-title {
    color: #F8FAFC !important;
}

html.fl-theme-dark .fl-cat-count-badge,
body.fl-theme-dark .fl-cat-count-badge,
.fl-theme-dark .fl-cat-count-badge {
    background: rgba(96, 165, 250, 0.2) !important;
    color: #60A5FA !important;
    border: 1px solid rgba(96, 165, 250, 0.35) !important;
}

html.fl-theme-dark .fl-category-search-box,
body.fl-theme-dark .fl-category-search-box,
.fl-theme-dark .fl-category-search-box {
    background: #0A1329 !important;
    border-color: #1E2D4A !important;
}

html.fl-theme-dark .fl-category-search-box input,
body.fl-theme-dark .fl-category-search-box input,
.fl-theme-dark .fl-category-search-box input {
    color: #FFFFFF !important;
    background: transparent !important;
}

html.fl-theme-dark .fl-categories-table th,
body.fl-theme-dark .fl-categories-table th,
.fl-theme-dark .fl-categories-table th {
    background-color: #142037 !important;
    color: #94A3B8 !important;
    border-bottom: 2px solid #1E2D4A !important;
}

html.fl-theme-dark .fl-categories-table td,
body.fl-theme-dark .fl-categories-table td,
.fl-theme-dark .fl-categories-table td {
    background-color: transparent !important;
    color: #E2E8F0 !important;
    border-bottom: 1px solid #1E2D4A !important;
}

html.fl-theme-dark .fl-categories-table tr:hover td,
body.fl-theme-dark .fl-categories-table tr:hover td,
.fl-theme-dark .fl-categories-table tr:hover td {
    background-color: #16243F !important;
}

html.fl-theme-dark .fl-categories-table tr.is-selected-row td,
body.fl-theme-dark .fl-categories-table tr.is-selected-row td,
.fl-theme-dark .fl-categories-table tr.is-selected-row td {
    background-color: rgba(37, 99, 235, 0.18) !important;
}

html.fl-theme-dark .fl-categories-table .fl-cat-name-cell,
body.fl-theme-dark .fl-categories-table .fl-cat-name-cell,
.fl-theme-dark .fl-categories-table .fl-cat-name-cell {
    color: #F8FAFC !important;
}

html.fl-theme-dark .fl-categories-table .text-secondary,
body.fl-theme-dark .fl-categories-table .text-secondary,
.fl-theme-dark .fl-categories-table .text-secondary {
    color: #94A3B8 !important;
}

html.fl-theme-dark .fl-cat-action-btn,
body.fl-theme-dark .fl-cat-action-btn,
.fl-theme-dark .fl-cat-action-btn {
    background: #142037 !important;
    border-color: #1E2D4A !important;
    color: #94A3B8 !important;
}

html.fl-theme-dark .fl-cat-action-btn:hover,
body.fl-theme-dark .fl-cat-action-btn:hover,
.fl-theme-dark .fl-cat-action-btn:hover {
    color: #FFFFFF !important;
    border-color: #3B82F6 !important;
}

html.fl-theme-dark .fl-cat-action-btn--delete,
body.fl-theme-dark .fl-cat-action-btn--delete,
.fl-theme-dark .fl-cat-action-btn--delete {
    color: #FF5C5C !important;
}

html.fl-theme-dark .fl-cat-action-btn--delete:hover,
body.fl-theme-dark .fl-cat-action-btn--delete:hover,
.fl-theme-dark .fl-cat-action-btn--delete:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
    color: #EF4444 !important;
}

html.fl-theme-dark .fl-settings-page-container .form-control,
body.fl-theme-dark .fl-settings-page-container .form-control,
.fl-theme-dark .fl-settings-page-container .form-control {
    background-color: #0A1329 !important;
    border-color: #1E2D4A !important;
    color: #FFFFFF !important;
}

html.fl-theme-dark .fl-settings-page-container .form-control:focus,
body.fl-theme-dark .fl-settings-page-container .form-control:focus,
.fl-theme-dark .fl-settings-page-container .form-control:focus {
    border-color: #1565FF !important;
    box-shadow: 0 0 0 1px #1565FF !important;
}

/* â”€â”€ Field Rules (Tab 1) in Dark Mode â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
html.fl-theme-dark .fl-field-config-row,
body.fl-theme-dark .fl-field-config-row,
.fl-theme-dark .fl-field-config-row {
    background: #142037 !important;
    border-color: #1E2D4A !important;
}

html.fl-theme-dark .fl-field-name-title,
body.fl-theme-dark .fl-field-name-title,
.fl-theme-dark .fl-field-name-title {
    color: #F8FAFC !important;
}

html.fl-theme-dark .fl-field-section-title,
body.fl-theme-dark .fl-field-section-title,
.fl-theme-dark .fl-field-section-title {
    color: #F8FAFC !important;
}

html.fl-theme-dark .fl-field-section-desc,
body.fl-theme-dark .fl-field-section-desc,
.fl-theme-dark .fl-field-section-desc {
    color: #94A3B8 !important;
}

html.fl-theme-dark .fl-toggle-label,
body.fl-theme-dark .fl-toggle-label,
.fl-theme-dark .fl-toggle-label {
    color: #F8FAFC !important;
}

/* â”€â”€ Light Mode Explicit Contrast Guarantee â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
html.fl-theme-light .fl-settings-page-container .fl-page-title,
body.fl-theme-light .fl-settings-page-container .fl-page-title,
.fl-theme-light .fl-settings-page-container .fl-page-title {
    color: #0F172A !important;
}

html.fl-theme-light .fl-settings-page-container .fl-page-title i,
body.fl-theme-light .fl-settings-page-container .fl-page-title i,
.fl-theme-light .fl-settings-page-container .fl-page-title i {
    color: #1565FF !important;
}

html.fl-theme-light .fl-settings-page-container .fl-page-subtitle,
body.fl-theme-light .fl-settings-page-container .fl-page-subtitle,
.fl-theme-light .fl-settings-page-container .fl-page-subtitle {
    color: #64748B !important;
}

html.fl-theme-light .fl-settings-page-container .fl-card,
body.fl-theme-light .fl-settings-page-container .fl-card,
.fl-theme-light .fl-settings-page-container .fl-card {
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    border-color: #E2E8F0 !important;
}

html.fl-theme-light .fl-settings-page-container .fl-card-header,
body.fl-theme-light .fl-settings-page-container .fl-card-header,
.fl-theme-light .fl-settings-page-container .fl-card-header {
    background: #F8FAFC !important;
    background-color: #F8FAFC !important;
    border-color: #E2E8F0 !important;
}

html.fl-theme-light .fl-settings-page-container .fl-card-body,
body.fl-theme-light .fl-settings-page-container .fl-card-body,
.fl-theme-light .fl-settings-page-container .fl-card-body {
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    color: #0F172A !important;
}

html.fl-theme-light .fl-settings-page-container .fl-card-title,
body.fl-theme-light .fl-settings-page-container .fl-card-title,
.fl-theme-light .fl-settings-page-container .fl-card-title,
html.fl-theme-light .fl-settings-page-container .fl-settings-section-title,
body.fl-theme-light .fl-settings-page-container .fl-settings-section-title,
.fl-theme-light .fl-settings-page-container .fl-settings-section-title {
    color: #0F172A !important;
}

html.fl-theme-light .fl-settings-page-container .fl-card-subtitle,
body.fl-theme-light .fl-settings-page-container .fl-card-subtitle,
.fl-theme-light .fl-settings-page-container .fl-card-subtitle {
    color: #64748B !important;
}

html.fl-theme-light .fl-settings-page-container .fl-form-label,
body.fl-theme-light .fl-settings-page-container .fl-form-label,
.fl-theme-light .fl-settings-page-container .fl-form-label {
    color: #475569 !important;
}

html.fl-theme-light .fl-settings-page-container .fl-module-nav-btn,
body.fl-theme-light .fl-settings-page-container .fl-module-nav-btn,
.fl-theme-light .fl-settings-page-container .fl-module-nav-btn {
    background: #FFFFFF !important;
    border-color: #F1F5F9 !important;
}

html.fl-theme-light .fl-settings-page-container .fl-module-nav-btn:hover,
body.fl-theme-light .fl-settings-page-container .fl-module-nav-btn:hover,
.fl-theme-light .fl-settings-page-container .fl-module-nav-btn:hover {
    background: #F8FAFC !important;
    border-color: #CBD5E1 !important;
}

html.fl-theme-light .fl-settings-page-container .fl-module-nav-btn strong,
body.fl-theme-light .fl-settings-page-container .fl-module-nav-btn strong,
.fl-theme-light .fl-settings-page-container .fl-module-nav-btn strong {
    color: #0F172A !important;
}

html.fl-theme-light .fl-settings-page-container .fl-module-nav-btn span,
body.fl-theme-light .fl-settings-page-container .fl-module-nav-btn span,
.fl-theme-light .fl-settings-page-container .fl-module-nav-btn span {
    color: #64748B !important;
}

/* â”€â”€ Settings Sub-Tabs in Light Mode â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
html.fl-theme-light .fl-settings-page-container .fl-settings-tabs-nav,
body.fl-theme-light .fl-settings-page-container .fl-settings-tabs-nav,
.fl-theme-light .fl-settings-page-container .fl-settings-tabs-nav {
    background: #F1F5F9 !important;
    border: 1px solid #CBD5E1 !important;
}

html.fl-theme-light .fl-settings-page-container .fl-settings-tab-btn,
body.fl-theme-light .fl-settings-page-container .fl-settings-tab-btn,
.fl-theme-light .fl-settings-page-container .fl-settings-tab-btn {
    color: #64748B !important;
    background: transparent !important;
}

html.fl-theme-light .fl-settings-page-container .fl-settings-tab-btn:hover,
body.fl-theme-light .fl-settings-page-container .fl-settings-tab-btn:hover,
.fl-theme-light .fl-settings-page-container .fl-settings-tab-btn:hover {
    color: #0F172A !important;
    background: rgba(148, 163, 184, 0.2) !important;
}

html.fl-theme-light .fl-settings-page-container .fl-settings-tab-btn.is-active,
body.fl-theme-light .fl-settings-page-container .fl-settings-tab-btn.is-active,
.fl-theme-light .fl-settings-page-container .fl-settings-tab-btn.is-active {
    color: #1565FF !important;
    background: #FFFFFF !important;
    border-color: #CBD5E1 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

html.fl-theme-light .fl-settings-page-container .fl-settings-nav-arrow,
body.fl-theme-light .fl-settings-page-container .fl-settings-nav-arrow,
.fl-theme-light .fl-settings-page-container .fl-settings-nav-arrow {
    background: #FFFFFF !important;
    border-color: #CBD5E1 !important;
    color: #1565FF !important;
}

html.fl-theme-light .fl-settings-page-container .fl-settings-nav-arrow i,
body.fl-theme-light .fl-settings-page-container .fl-settings-nav-arrow i,
.fl-theme-light .fl-settings-page-container .fl-settings-nav-arrow i {
    color: #1565FF !important;
}

html.fl-theme-light .fl-settings-page-container .fl-settings-nav-arrow:hover,
body.fl-theme-light .fl-settings-page-container .fl-settings-nav-arrow:hover,
.fl-theme-light .fl-settings-page-container .fl-settings-nav-arrow:hover {
    background: #F1F5F9 !important;
    border-color: #1565FF !important;
}

/* â”€â”€ Settings Syncfusion Inputs & Dropdowns in Light Mode â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
html.fl-theme-light .fl-settings-page-container .e-input-group,
body.fl-theme-light .fl-settings-page-container .e-input-group,
.fl-theme-light .fl-settings-page-container .e-input-group,
html.fl-theme-light .fl-settings-page-container .e-control-wrapper,
body.fl-theme-light .fl-settings-page-container .e-control-wrapper,
.fl-theme-light .fl-settings-page-container .e-control-wrapper,
html.fl-theme-light .fl-settings-page-container .e-dropdownlist,
body.fl-theme-light .fl-settings-page-container .e-dropdownlist,
.fl-theme-light .fl-settings-page-container .e-dropdownlist,
html.fl-theme-light .fl-settings-page-container .e-numerictextbox,
body.fl-theme-light .fl-settings-page-container .e-numerictextbox,
.fl-theme-light .fl-settings-page-container .e-numerictextbox,
html.fl-theme-light .fl-settings-page-container .e-float-input,
body.fl-theme-light .fl-settings-page-container .e-float-input,
.fl-theme-light .fl-settings-page-container .e-float-input,
html.fl-theme-light .fl-settings-page-container .e-textbox,
body.fl-theme-light .fl-settings-page-container .e-textbox,
.fl-theme-light .fl-settings-page-container .e-textbox {
    background-color: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    color: #0F172A !important;
    border-radius: 8px !important;
}

html.fl-theme-light .fl-settings-page-container .e-input-group:hover,
body.fl-theme-light .fl-settings-page-container .e-input-group:hover,
.fl-theme-light .fl-settings-page-container .e-input-group:hover,
html.fl-theme-light .fl-settings-page-container .e-input-group.e-input-focus,
body.fl-theme-light .fl-settings-page-container .e-input-group.e-input-focus,
.fl-theme-light .fl-settings-page-container .e-input-group.e-input-focus,
html.fl-theme-light .fl-settings-page-container .e-control-wrapper:hover,
body.fl-theme-light .fl-settings-page-container .e-control-wrapper:hover,
.fl-theme-light .fl-settings-page-container .e-control-wrapper:hover,
html.fl-theme-light .fl-settings-page-container .e-control-wrapper.e-input-focus,
body.fl-theme-light .fl-settings-page-container .e-control-wrapper.e-input-focus,
.fl-theme-light .fl-settings-page-container .e-control-wrapper.e-input-focus {
    border-color: #1565FF !important;
    box-shadow: 0 0 0 1px #1565FF !important;
}

html.fl-theme-light .fl-settings-page-container .e-input-group input.e-input,
body.fl-theme-light .fl-settings-page-container .e-input-group input.e-input,
.fl-theme-light .fl-settings-page-container .e-input-group input.e-input,
html.fl-theme-light .fl-settings-page-container .e-input-group textarea.e-input,
body.fl-theme-light .fl-settings-page-container .e-input-group textarea.e-input,
.fl-theme-light .fl-settings-page-container .e-input-group textarea.e-input,
html.fl-theme-light .fl-settings-page-container input.e-input,
body.fl-theme-light .fl-settings-page-container input.e-input,
.fl-theme-light .fl-settings-page-container input.e-input,
html.fl-theme-light .fl-settings-page-container textarea.e-input,
body.fl-theme-light .fl-settings-page-container textarea.e-input,
.fl-theme-light .fl-settings-page-container textarea.e-input {
    color: #0F172A !important;
    background: transparent !important;
    -webkit-text-fill-color: #0F172A !important;
}

html.fl-theme-light .fl-settings-page-container .e-input-group .e-input-group-icon,
body.fl-theme-light .fl-settings-page-container .e-input-group .e-input-group-icon,
.fl-theme-light .fl-settings-page-container .e-input-group .e-input-group-icon,
html.fl-theme-light .fl-settings-page-container .e-ddl-icon,
body.fl-theme-light .fl-settings-page-container .e-ddl-icon,
.fl-theme-light .fl-settings-page-container .e-ddl-icon {
    color: #64748B !important;
}

/* â”€â”€ Settings Form Controls & Tables in Light Mode â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
html.fl-theme-light .fl-settings-page-container .form-control,
body.fl-theme-light .fl-settings-page-container .form-control,
.fl-theme-light .fl-settings-page-container .form-control {
    background-color: #FFFFFF !important;
    border-color: #CBD5E1 !important;
    color: #0F172A !important;
}

html.fl-theme-light .fl-settings-page-container .fl-category-search-box,
body.fl-theme-light .fl-settings-page-container .fl-category-search-box,
.fl-theme-light .fl-settings-page-container .fl-category-search-box {
    background: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
}

html.fl-theme-light .fl-settings-page-container .fl-category-search-box input,
body.fl-theme-light .fl-settings-page-container .fl-category-search-box input,
.fl-theme-light .fl-settings-page-container .fl-category-search-box input {
    color: #0F172A !important;
    background: transparent !important;
}

html.fl-theme-light .fl-settings-page-container .fl-categories-table th,
body.fl-theme-light .fl-settings-page-container .fl-categories-table th,
.fl-theme-light .fl-settings-page-container .fl-categories-table th {
    background-color: #F8FAFC !important;
    color: #475569 !important;
    border-bottom: 2px solid #E2E8F0 !important;
}

html.fl-theme-light .fl-settings-page-container .fl-categories-table td,
body.fl-theme-light .fl-settings-page-container .fl-categories-table td,
.fl-theme-light .fl-settings-page-container .fl-categories-table td {
    background-color: transparent !important;
    color: #0F172A !important;
    border-bottom: 1px solid #E2E8F0 !important;
}

html.fl-theme-light .fl-settings-page-container .fl-categories-table .fl-cat-name-cell,
body.fl-theme-light .fl-settings-page-container .fl-categories-table .fl-cat-name-cell,
.fl-theme-light .fl-settings-page-container .fl-categories-table .fl-cat-name-cell {
    color: #0F172A !important;
}

/* â”€â”€ Field Section Cards (Tab 1) in Light Mode â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
html.fl-theme-light .fl-settings-page-container .fl-field-section-card,
body.fl-theme-light .fl-settings-page-container .fl-field-section-card,
.fl-theme-light .fl-settings-page-container .fl-field-section-card {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
}

html.fl-theme-light .fl-settings-page-container .fl-field-section-header,
body.fl-theme-light .fl-settings-page-container .fl-field-section-header,
.fl-theme-light .fl-settings-page-container .fl-field-section-header {
    background: #F8FAFC !important;
    border-bottom: 1px solid #E2E8F0 !important;
}

html.fl-theme-light .fl-settings-page-container .fl-field-section-title,
body.fl-theme-light .fl-settings-page-container .fl-field-section-title,
.fl-theme-light .fl-settings-page-container .fl-field-section-title {
    color: #0F172A !important;
}

html.fl-theme-light .fl-settings-page-container .fl-field-section-desc,
body.fl-theme-light .fl-settings-page-container .fl-field-section-desc,
.fl-theme-light .fl-settings-page-container .fl-field-section-desc {
    color: #64748B !important;
}

html.fl-theme-light .fl-settings-page-container .fl-field-section-body,
body.fl-theme-light .fl-settings-page-container .fl-field-section-body,
.fl-theme-light .fl-settings-page-container .fl-field-section-body {
    background: #FFFFFF !important;
}

html.fl-theme-light .fl-settings-page-container .fl-field-config-row,
body.fl-theme-light .fl-settings-page-container .fl-field-config-row,
.fl-theme-light .fl-settings-page-container .fl-field-config-row {
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
}

html.fl-theme-light .fl-settings-page-container .fl-field-name-title,
body.fl-theme-light .fl-settings-page-container .fl-field-name-title,
.fl-theme-light .fl-settings-page-container .fl-field-name-title {
    color: #0F172A !important;
}

html.fl-theme-light .fl-settings-page-container .fl-pill-badge--neutral,
body.fl-theme-light .fl-settings-page-container .fl-pill-badge--neutral,
.fl-theme-light .fl-settings-page-container .fl-pill-badge--neutral {
    background: #F1F5F9 !important;
    color: #475569 !important;
    border: 1px solid #E2E8F0 !important;
}

html.fl-theme-light .fl-settings-page-container .fl-code-badge,
body.fl-theme-light .fl-settings-page-container .fl-code-badge,
.fl-theme-light .fl-settings-page-container .fl-code-badge {
    background: #F1F5F9 !important;
    color: #2563EB !important;
    border: 1px solid #E2E8F0 !important;
}

html.fl-theme-light .fl-settings-page-container .fl-toggle-label,
body.fl-theme-light .fl-settings-page-container .fl-toggle-label,
.fl-theme-light .fl-settings-page-container .fl-toggle-label {
    color: #475569 !important;
}

/* â”€â”€ Filter Chips & Search Bar in Light Mode â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
html.fl-theme-light .fl-settings-page-container .fl-filter-chip,
body.fl-theme-light .fl-settings-page-container .fl-filter-chip,
.fl-theme-light .fl-settings-page-container .fl-filter-chip {
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    border: 1.5px solid #CBD5E1 !important;
    color: #475569 !important;
}

html.fl-theme-light .fl-settings-page-container .fl-filter-chip *,
body.fl-theme-light .fl-settings-page-container .fl-filter-chip *,
.fl-theme-light .fl-settings-page-container .fl-filter-chip * {
    color: inherit !important;
}

html.fl-theme-light .fl-settings-page-container .fl-filter-chip:hover,
body.fl-theme-light .fl-settings-page-container .fl-filter-chip:hover,
.fl-theme-light .fl-settings-page-container .fl-filter-chip:hover {
    background: #F1F5F9 !important;
    background-color: #F1F5F9 !important;
    border-color: #2563EB !important;
    color: #0F172A !important;
}

html.fl-theme-light .fl-settings-page-container .fl-filter-chip.is-active,
body.fl-theme-light .fl-settings-page-container .fl-filter-chip.is-active,
.fl-theme-light .fl-settings-page-container .fl-filter-chip.is-active {
    background: #2563EB !important;
    background-color: #2563EB !important;
    border-color: #2563EB !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25) !important;
}

html.fl-theme-light .fl-settings-page-container .fl-filter-chip .fl-chip-count,
body.fl-theme-light .fl-settings-page-container .fl-filter-chip .fl-chip-count,
.fl-theme-light .fl-settings-page-container .fl-filter-chip .fl-chip-count {
    background: #E2E8F0 !important;
    color: #475569 !important;
}

html.fl-theme-light .fl-settings-page-container .fl-filter-chip.is-active .fl-chip-count,
body.fl-theme-light .fl-settings-page-container .fl-filter-chip.is-active .fl-chip-count,
.fl-theme-light .fl-settings-page-container .fl-filter-chip.is-active .fl-chip-count {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #FFFFFF !important;
}

html.fl-theme-light .fl-settings-page-container .fl-search-input,
body.fl-theme-light .fl-settings-page-container .fl-search-input,
.fl-theme-light .fl-settings-page-container .fl-search-input {
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    border: 1.5px solid #CBD5E1 !important;
    color: #0F172A !important;
    -webkit-text-fill-color: #0F172A !important;
}

html.fl-theme-light .fl-settings-page-container .fl-search-input::placeholder,
body.fl-theme-light .fl-settings-page-container .fl-search-input::placeholder,
.fl-theme-light .fl-settings-page-container .fl-search-input::placeholder {
    color: #94A3B8 !important;
    -webkit-text-fill-color: #94A3B8 !important;
}

html.fl-theme-light .fl-settings-page-container .fl-search-bar .bi-search,
body.fl-theme-light .fl-settings-page-container .fl-search-bar .bi-search,
.fl-theme-light .fl-settings-page-container .fl-search-bar .bi-search {
    color: #64748B !important;
}

html.fl-theme-light .fl-settings-page-container .fl-card-header .e-outline,
body.fl-theme-light .fl-settings-page-container .fl-card-header .e-outline,
.fl-theme-light .fl-settings-page-container .fl-card-header .e-outline,
html.fl-theme-light .fl-settings-page-container .e-btn.e-outline,
body.fl-theme-light .fl-settings-page-container .e-btn.e-outline,
.fl-theme-light .fl-settings-page-container .e-btn.e-outline {
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    color: #334155 !important;
}

html.fl-theme-light .fl-settings-page-container .fl-card-header .e-outline:hover,
body.fl-theme-light .fl-settings-page-container .fl-card-header .e-outline:hover,
.fl-theme-light .fl-settings-page-container .fl-card-header .e-outline:hover,
html.fl-theme-light .fl-settings-page-container .e-btn.e-outline:hover,
body.fl-theme-light .fl-settings-page-container .e-btn.e-outline:hover,
.fl-theme-light .fl-settings-page-container .e-btn.e-outline:hover {
    background: #F8FAFC !important;
    background-color: #F8FAFC !important;
    border-color: #94A3B8 !important;
    color: #0F172A !important;
}

html.fl-theme-light .fl-settings-page-container .fl-card-header .e-outline .e-btn-icon,
body.fl-theme-light .fl-settings-page-container .fl-card-header .e-outline .e-btn-icon,
.fl-theme-light .fl-settings-page-container .fl-card-header .e-outline .e-btn-icon {
    color: #64748B !important;
}

/* â”€â”€ Field Section Cards (Tab 1) in Dark Mode â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
html.fl-theme-dark .fl-settings-page-container .fl-field-section-card,
body.fl-theme-dark .fl-settings-page-container .fl-field-section-card,
.fl-theme-dark .fl-settings-page-container .fl-field-section-card {
    background: #0F1B32 !important;
    background-color: #0F1B32 !important;
    border: 1px solid #1E2D4A !important;
}

html.fl-theme-dark .fl-settings-page-container .fl-field-section-header,
body.fl-theme-dark .fl-settings-page-container .fl-field-section-header,
.fl-theme-dark .fl-settings-page-container .fl-field-section-header {
    background: #142037 !important;
    background-color: #142037 !important;
    border-bottom: 1px solid #1E2D4A !important;
}

html.fl-theme-dark .fl-settings-page-container .fl-field-section-title,
body.fl-theme-dark .fl-settings-page-container .fl-field-section-title,
.fl-theme-dark .fl-settings-page-container .fl-field-section-title {
    color: #F8FAFC !important;
}

html.fl-theme-dark .fl-settings-page-container .fl-field-section-desc,
body.fl-theme-dark .fl-settings-page-container .fl-field-section-desc,
.fl-theme-dark .fl-settings-page-container .fl-field-section-desc {
    color: #94A3B8 !important;
}

html.fl-theme-dark .fl-settings-page-container .fl-field-section-body,
body.fl-theme-dark .fl-settings-page-container .fl-field-section-body,
.fl-theme-dark .fl-settings-page-container .fl-field-section-body {
    background: #0F1B32 !important;
    background-color: #0F1B32 !important;
}

html.fl-theme-dark .fl-settings-page-container .fl-pill-badge--neutral,
body.fl-theme-dark .fl-settings-page-container .fl-pill-badge--neutral,
.fl-theme-dark .fl-settings-page-container .fl-pill-badge--neutral {
    background: #1E293B !important;
    color: #CBD5E1 !important;
    border: 1px solid #334155 !important;
}

html.fl-theme-dark .fl-settings-page-container .fl-code-badge,
body.fl-theme-dark .fl-settings-page-container .fl-code-badge,
.fl-theme-dark .fl-settings-page-container .fl-code-badge {
    background: #0A1329 !important;
    color: #93C5FD !important;
    border-color: #1E2D4A !important;
}

/* â”€â”€ Filter Chips & Search Bar in Dark Mode â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
html.fl-theme-dark .fl-settings-page-container .fl-filter-chip,
body.fl-theme-dark .fl-settings-page-container .fl-filter-chip,
.fl-theme-dark .fl-settings-page-container .fl-filter-chip {
    background: #142037 !important;
    background-color: #142037 !important;
    border: 1.5px solid #1E2D4A !important;
    color: #94A3B8 !important;
}

html.fl-theme-dark .fl-settings-page-container .fl-filter-chip *,
body.fl-theme-dark .fl-settings-page-container .fl-filter-chip *,
.fl-theme-dark .fl-settings-page-container .fl-filter-chip * {
    color: inherit !important;
}

html.fl-theme-dark .fl-settings-page-container .fl-filter-chip:hover,
body.fl-theme-dark .fl-settings-page-container .fl-filter-chip:hover,
.fl-theme-dark .fl-settings-page-container .fl-filter-chip:hover {
    background: #1E293B !important;
    background-color: #1E293B !important;
    border-color: #3B82F6 !important;
    color: #60A5FA !important;
}

html.fl-theme-dark .fl-settings-page-container .fl-filter-chip.is-active,
body.fl-theme-dark .fl-settings-page-container .fl-filter-chip.is-active,
.fl-theme-dark .fl-settings-page-container .fl-filter-chip.is-active {
    background: #2563EB !important;
    background-color: #2563EB !important;
    border-color: #2563EB !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35) !important;
}

html.fl-theme-dark .fl-settings-page-container .fl-filter-chip .fl-chip-count,
body.fl-theme-dark .fl-settings-page-container .fl-filter-chip .fl-chip-count,
.fl-theme-dark .fl-settings-page-container .fl-filter-chip .fl-chip-count {
    background: #1E293B !important;
    color: #CBD5E1 !important;
}

html.fl-theme-dark .fl-settings-page-container .fl-filter-chip.is-active .fl-chip-count,
body.fl-theme-dark .fl-settings-page-container .fl-filter-chip.is-active .fl-chip-count,
.fl-theme-dark .fl-settings-page-container .fl-filter-chip.is-active .fl-chip-count {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #FFFFFF !important;
}

html.fl-theme-dark .fl-settings-page-container .fl-search-input,
body.fl-theme-dark .fl-settings-page-container .fl-search-input,
.fl-theme-dark .fl-settings-page-container .fl-search-input {
    background: #0A1329 !important;
    background-color: #0A1329 !important;
    border: 1.5px solid #1E2D4A !important;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
}

html.fl-theme-dark .fl-settings-page-container .fl-search-input::placeholder,
body.fl-theme-dark .fl-settings-page-container .fl-search-input::placeholder,
.fl-theme-dark .fl-settings-page-container .fl-search-input::placeholder {
    color: #64748B !important;
    -webkit-text-fill-color: #64748B !important;
}

html.fl-theme-dark .fl-settings-page-container .fl-search-bar .bi-search,
body.fl-theme-dark .fl-settings-page-container .fl-search-bar .bi-search,
.fl-theme-dark .fl-settings-page-container .fl-search-bar .bi-search {
    color: #94A3B8 !important;
}

html.fl-theme-dark .fl-settings-page-container .fl-card-header .e-outline,
body.fl-theme-dark .fl-settings-page-container .fl-card-header .e-outline,
.fl-theme-dark .fl-settings-page-container .fl-card-header .e-outline,
html.fl-theme-dark .fl-settings-page-container .e-btn.e-outline,
body.fl-theme-dark .fl-settings-page-container .e-btn.e-outline,
.fl-theme-dark .fl-settings-page-container .e-btn.e-outline {
    background: #142037 !important;
    background-color: #142037 !important;
    border: 1px solid #1E2D4A !important;
    color: #E2E8F0 !important;
}

html.fl-theme-dark .fl-settings-page-container .fl-card-header .e-outline:hover,
body.fl-theme-dark .fl-settings-page-container .fl-card-header .e-outline:hover,
.fl-theme-dark .fl-settings-page-container .fl-card-header .e-outline:hover,
html.fl-theme-dark .fl-settings-page-container .e-btn.e-outline:hover,
body.fl-theme-dark .fl-settings-page-container .e-btn.e-outline:hover,
.fl-theme-dark .fl-settings-page-container .e-btn.e-outline:hover {
    background: #1E293B !important;
    background-color: #1E293B !important;
    border-color: #3B82F6 !important;
    color: #FFFFFF !important;
}

html.fl-theme-dark .fl-settings-page-container .fl-card-header .e-outline .e-btn-icon,
body.fl-theme-dark .fl-settings-page-container .fl-card-header .e-outline .e-btn-icon,
.fl-theme-dark .fl-settings-page-container .fl-card-header .e-outline .e-btn-icon {
    color: #94A3B8 !important;
}

/* â”€â”€ Module Sub-Tabs (Tab 2) in Dark Mode â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
html.fl-theme-dark .fl-settings-page-container .btn-outline-secondary,
body.fl-theme-dark .fl-settings-page-container .btn-outline-secondary,
.fl-theme-dark .fl-settings-page-container .btn-outline-secondary {
    background: #142037 !important;
    border-color: #1E2D4A !important;
    color: #94A3B8 !important;
}

html.fl-theme-dark .fl-settings-page-container .btn-outline-secondary:hover,
body.fl-theme-dark .fl-settings-page-container .btn-outline-secondary:hover,
.fl-theme-dark .fl-settings-page-container .btn-outline-secondary:hover {
    background: #1E293B !important;
    border-color: #3B82F6 !important;
    color: #FFFFFF !important;
}

/* â”€â”€ Module Sub-Tabs (Tab 2) in Light Mode â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
html.fl-theme-light .fl-settings-page-container .btn-outline-secondary,
body.fl-theme-light .fl-settings-page-container .btn-outline-secondary,
.fl-theme-light .fl-settings-page-container .btn-outline-secondary {
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    border-color: #CBD5E1 !important;
    color: #475569 !important;
}

html.fl-theme-light .fl-settings-page-container .btn-outline-secondary:hover,
body.fl-theme-light .fl-settings-page-container .btn-outline-secondary:hover,
.fl-theme-light .fl-settings-page-container .btn-outline-secondary:hover {
    background: #F1F5F9 !important;
    background-color: #F1F5F9 !important;
    border-color: #94A3B8 !important;
    color: #0F172A !important;
}

/* â”€â”€ Settings Callouts in Light Mode â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
html.fl-theme-light .fl-settings-page-container .fl-stock-callout,
body.fl-theme-light .fl-settings-page-container .fl-stock-callout,
.fl-theme-light .fl-settings-page-container .fl-stock-callout {
    background: #F8FAFC !important;
    background-color: #F8FAFC !important;
    border: 1.5px solid #E2E8F0 !important;
}

html.fl-theme-light .fl-settings-page-container .fl-stock-callout__title,
body.fl-theme-light .fl-settings-page-container .fl-stock-callout__title,
.fl-theme-light .fl-settings-page-container .fl-stock-callout__title {
    color: #0F172A !important;
}

html.fl-theme-light .fl-settings-page-container .fl-stock-callout__desc,
body.fl-theme-light .fl-settings-page-container .fl-stock-callout__desc,
.fl-theme-light .fl-settings-page-container .fl-stock-callout__desc {
    color: #64748B !important;
}

/* â”€â”€ Settings Form Labels & Hints in Light Mode â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
html.fl-theme-light .fl-settings-page-container .fl-form-label,
body.fl-theme-light .fl-settings-page-container .fl-form-label,
.fl-theme-light .fl-settings-page-container .fl-form-label {
    color: #0F172A !important;
}

html.fl-theme-light .fl-settings-page-container .fl-input-hint,
body.fl-theme-light .fl-settings-page-container .fl-input-hint,
.fl-theme-light .fl-settings-page-container .fl-input-hint {
    color: #64748B !important;
}

html.fl-theme-light .fl-settings-page-container .text-secondary,
body.fl-theme-light .fl-settings-page-container .text-secondary,
.fl-theme-light .fl-settings-page-container .text-secondary {
    color: #64748B !important;
}

html.fl-theme-light .fl-settings-page-container .border-bottom,
body.fl-theme-light .fl-settings-page-container .border-bottom,
.fl-theme-light .fl-settings-page-container .border-bottom,
html.fl-theme-light .fl-settings-page-container .border-top,
body.fl-theme-light .fl-settings-page-container .border-top,
.fl-theme-light .fl-settings-page-container .border-top {
    border-color: #E2E8F0 !important;
}


/* â”€â”€ Universal Button Processing & Double-Click Lock â”€â”€ */
.fl-btn-processing,
.fl-btn-readonly {
    pointer-events: none !important;
    cursor: wait !important;
    opacity: 0.75 !important;
    user-select: none !important;
    transition: opacity 0.15s ease-in-out;
}

/* Spinner ONLY for explicit transactional submit/save buttons, NOT on dropdowns, toggles, or tabs */
button[type="submit"].fl-btn-processing:not(:has(.spinner-border)):not(:has(.fl-btn-spinner)):not(.e-dropdown-btn):not(.dropdown-toggle):not(.fl-no-loader):after,
.fl-save-btn.fl-btn-processing:not(:has(.spinner-border)):not(:has(.fl-btn-spinner)):not(.fl-no-loader):after,
.fl-btn-with-loader.fl-btn-processing:not(:has(.spinner-border)):not(:has(.fl-btn-spinner)):not(.fl-no-loader):after {
    content: '';
    display: inline-block;
    width: 0.85rem;
    height: 0.85rem;
    vertical-align: -0.125em;
    border: 0.15em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: fl-btn-spin 0.65s linear infinite;
    margin-left: 0.4rem;
}

/* Explicitly ensure UI toggles, tabs, popups, menu, grid actions and dialogs NEVER show any spinner */
.e-tab-wrap:after,
.e-tab-text:after,
.nav-link:after,
.fl-workspace-tab:after,
.fl-workspace-trigger:after,
.fl-user-dropdown-wrap:after,
.e-dropdown-btn:after,
.dropdown-toggle:after,
.fl-theme-toggle-btn:after,
.fl-topbar__icon-btn-sf:after,
.fl-topbar__toggle:after,
.fl-topbar-icon:after,
.fl-sidebar-toggle:after,
.fl-nav-toggle:after,
.fl-action-btn:after,
.fl-grid-action-btn:after,
.fl-btn-view:after,
.fl-btn-edit:after,
.fl-btn-delete:after,
.fl-btn-status:after,
.fl-btn-deactivate:after,
.fl-action-btns button:after,
.fl-tour-modal button:after,
.fl-tour-footer button:after,
.fl-tour-close-btn:after,
.fl-tour-dot:after,
.fl-tour-btn:after,
.e-grid .e-btn:after,
.fl-no-loader:after,
[data-fl-no-loader="true"]:after {
    display: none !important;
    content: none !important;
}

@keyframes fl-btn-spin {
    to {
        transform: rotate(360deg);
    }
}

/* â”€â”€ Custom Plan Modal: Billing Cycle Toggle (Light & Dark Theme) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-cycle-toggle-group {
    background: #F1F5F9;
    padding: 3px;
    border-radius: 8px;
    border: 1px solid #CBD5E1;
    min-height: 38px;
    box-sizing: border-box;
    gap: 3px;
}

.fl-cycle-btn,
.e-btn.fl-cycle-btn {
    border-radius: 6px !important;
    border: none !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    padding: 5px 12px !important;
    color: #475569 !important;
    background: transparent !important;
    text-transform: none !important;
    box-shadow: none !important;
    transition: all 0.15s ease-in-out !important;
}

.fl-cycle-btn:hover,
.e-btn.fl-cycle-btn:hover {
    color: #0F172A !important;
    background: rgba(0, 0, 0, 0.05) !important;
}

.fl-cycle-btn.active,
.e-btn.fl-cycle-btn.active {
    background: #0D9488 !important;
    color: #FFFFFF !important;
    font-weight: 600 !important;
    box-shadow: 0 1px 3px rgba(13, 148, 136, 0.3) !important;
}

/* Dark mode for Billing Cycle Toggle */
.fl-theme-dark .fl-cycle-toggle-group,
html.fl-theme-dark .fl-cycle-toggle-group,
body.fl-theme-dark .fl-cycle-toggle-group,
body:has(.fl-theme-dark) .fl-cycle-toggle-group,
body.fl-theme-dark .fl-custom-dialog .fl-cycle-toggle-group,
html.fl-theme-dark .fl-custom-dialog .fl-cycle-toggle-group,
.e-dialog.fl-theme-dark .fl-cycle-toggle-group {
    background-color: #0A1329 !important;
    border: 1px solid #1C2D4A !important;
}

.fl-theme-dark .fl-cycle-btn,
.fl-theme-dark .e-btn.fl-cycle-btn,
html.fl-theme-dark .fl-cycle-btn,
html.fl-theme-dark .e-btn.fl-cycle-btn,
body.fl-theme-dark .fl-custom-dialog .fl-cycle-btn,
body.fl-theme-dark .fl-custom-dialog .e-btn.fl-cycle-btn,
html.fl-theme-dark .fl-custom-dialog .fl-cycle-btn,
html.fl-theme-dark .fl-custom-dialog .e-btn.fl-cycle-btn {
    color: #94A3B8 !important;
    background: transparent !important;
}

.fl-theme-dark .fl-cycle-btn:hover,
.fl-theme-dark .e-btn.fl-cycle-btn:hover,
html.fl-theme-dark .fl-cycle-btn:hover,
html.fl-theme-dark .e-btn.fl-cycle-btn:hover,
body.fl-theme-dark .fl-custom-dialog .fl-cycle-btn:hover,
body.fl-theme-dark .fl-custom-dialog .e-btn.fl-cycle-btn:hover,
html.fl-theme-dark .fl-custom-dialog .fl-cycle-btn:hover,
html.fl-theme-dark .fl-custom-dialog .e-btn.fl-cycle-btn:hover {
    color: #F8FAFC !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

.fl-theme-dark .fl-cycle-btn.active,
.fl-theme-dark .e-btn.fl-cycle-btn.active,
html.fl-theme-dark .fl-cycle-btn.active,
html.fl-theme-dark .e-btn.fl-cycle-btn.active,
body.fl-theme-dark .fl-custom-dialog .fl-cycle-btn.active,
body.fl-theme-dark .fl-custom-dialog .e-btn.fl-cycle-btn.active,
html.fl-theme-dark .fl-custom-dialog .fl-cycle-btn.active,
html.fl-theme-dark .fl-custom-dialog .e-btn.fl-cycle-btn.active {
    background: #0D9488 !important;
    color: #FFFFFF !important;
    font-weight: 600 !important;
    box-shadow: 0 1px 4px rgba(13, 148, 136, 0.45) !important;
}

/* Preset Action Buttons (All ON / All OFF) in Dark Mode */
.fl-theme-dark .fl-btn-preset-on,
.fl-theme-dark .e-btn.fl-btn-preset-on,
html.fl-theme-dark .fl-btn-preset-on,
html.fl-theme-dark .e-btn.fl-btn-preset-on,
body.fl-theme-dark .fl-custom-dialog .fl-btn-preset-on,
body.fl-theme-dark .fl-custom-dialog .e-btn.fl-btn-preset-on,
html.fl-theme-dark .fl-custom-dialog .fl-btn-preset-on,
html.fl-theme-dark .fl-custom-dialog .e-btn.fl-btn-preset-on {
    background: rgba(22, 163, 74, 0.15) !important;
    color: #4ADE80 !important;
    border: 1px solid rgba(74, 222, 128, 0.3) !important;
}

.fl-theme-dark .fl-btn-preset-on:hover,
.fl-theme-dark .e-btn.fl-btn-preset-on:hover,
html.fl-theme-dark .fl-btn-preset-on:hover,
html.fl-theme-dark .e-btn.fl-btn-preset-on:hover,
body.fl-theme-dark .fl-custom-dialog .fl-btn-preset-on:hover,
body.fl-theme-dark .fl-custom-dialog .e-btn.fl-btn-preset-on:hover,
html.fl-theme-dark .fl-custom-dialog .fl-btn-preset-on:hover,
html.fl-theme-dark .fl-custom-dialog .e-btn.fl-btn-preset-on:hover {
    background: #16A34A !important;
    color: #FFFFFF !important;
    border-color: #16A34A !important;
}

.fl-theme-dark .fl-btn-preset-off,
.fl-theme-dark .e-btn.fl-btn-preset-off,
html.fl-theme-dark .fl-btn-preset-off,
html.fl-theme-dark .e-btn.fl-btn-preset-off,
body.fl-theme-dark .fl-custom-dialog .fl-btn-preset-off,
body.fl-theme-dark .fl-custom-dialog .e-btn.fl-btn-preset-off,
html.fl-theme-dark .fl-custom-dialog .fl-btn-preset-off,
html.fl-theme-dark .fl-custom-dialog .e-btn.fl-btn-preset-off {
    background: rgba(148, 163, 184, 0.12) !important;
    color: #94A3B8 !important;
    border: 1px solid rgba(148, 163, 184, 0.25) !important;
}

.fl-theme-dark .fl-btn-preset-off:hover,
.fl-theme-dark .e-btn.fl-btn-preset-off:hover,
html.fl-theme-dark .fl-btn-preset-off:hover,
html.fl-theme-dark .e-btn.fl-btn-preset-off:hover,
body.fl-theme-dark .fl-custom-dialog .fl-btn-preset-off:hover,
body.fl-theme-dark .fl-custom-dialog .e-btn.fl-btn-preset-off:hover,
html.fl-theme-dark .fl-custom-dialog .fl-btn-preset-off:hover,
html.fl-theme-dark .fl-custom-dialog .e-btn.fl-btn-preset-off:hover {
    background: #334155 !important;
    color: #F8FAFC !important;
    border-color: #475569 !important;
}

/* â”€â”€ Bespoke Badge Responsive Alignment (Left on Mobile, Right on Desktop) â”€â”€ */
.fl-bespoke-badge-wrap {
    margin-left: 0;
    display: flex;
    justify-content: flex-start;
}

@media (min-width: 768px) {
    .fl-bespoke-badge-wrap {
        margin-left: auto !important;
        justify-content: flex-end;
    }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   GLOBAL CONTACT SALES PAGE DARK MODE OVERRIDES
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
html.fl-theme-dark .fl-contact-sales-container,
body.fl-theme-dark .fl-contact-sales-container,
.fl-theme-dark .fl-contact-sales-container {
    background-color: #01071B !important;
    color: #F8FAFC !important;
}

html.fl-theme-dark .fl-contact-sales-container .fl-contact-orb,
.fl-theme-dark .fl-contact-sales-container .fl-contact-orb {
    display: block !important;
}

html.fl-theme-dark .fl-contact-sales-container .fl-contact-title,
.fl-theme-dark .fl-contact-sales-container .fl-contact-title {
    color: #F8FAFC !important;
}

html.fl-theme-dark .fl-contact-sales-container .fl-contact-subtitle,
.fl-theme-dark .fl-contact-sales-container .fl-contact-subtitle {
    color: #94A3B8 !important;
}

html.fl-theme-dark .fl-contact-sales-container .fl-contact-badge,
.fl-theme-dark .fl-contact-sales-container .fl-contact-badge {
    background: rgba(37, 99, 235, 0.18) !important;
    border-color: rgba(59, 130, 246, 0.35) !important;
    color: #60A5FA !important;
}

html.fl-theme-dark .fl-contact-sales-container .fl-back-btn,
.fl-theme-dark .fl-contact-sales-container .fl-back-btn {
    color: #94A3B8 !important;
}

html.fl-theme-dark .fl-contact-sales-container .fl-back-btn:hover,
.fl-theme-dark .fl-contact-sales-container .fl-back-btn:hover {
    color: #60A5FA !important;
}

html.fl-theme-dark .fl-contact-sales-container .fl-card,
.fl-theme-dark .fl-contact-sales-container .fl-card {
    background: #0F1B32 !important;
    border: 1px solid #1C2D4A !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45) !important;
}

html.fl-theme-dark .fl-contact-sales-container .fl-section-heading,
.fl-theme-dark .fl-contact-sales-container .fl-section-heading,
html.fl-theme-dark .fl-contact-sales-container .fl-form-success-title,
.fl-theme-dark .fl-contact-sales-container .fl-form-success-title {
    color: #F8FAFC !important;
}

html.fl-theme-dark .fl-contact-sales-container .text-muted,
.fl-theme-dark .fl-contact-sales-container .text-muted {
    color: #94A3B8 !important;
}

html.fl-theme-dark .fl-contact-sales-container .fl-method-item,
.fl-theme-dark .fl-contact-sales-container .fl-method-item {
    background: #13223F !important;
    border: 1px solid #1E335A !important;
}

html.fl-theme-dark .fl-contact-sales-container .fl-method-item:hover,
.fl-theme-dark .fl-contact-sales-container .fl-method-item:hover {
    background: #172A4E !important;
    border-color: #2563EB !important;
}

html.fl-theme-dark .fl-contact-sales-container .fl-method-label,
.fl-theme-dark .fl-contact-sales-container .fl-method-label {
    color: #94A3B8 !important;
}

html.fl-theme-dark .fl-contact-sales-container .fl-method-text,
.fl-theme-dark .fl-contact-sales-container .fl-method-text {
    color: #F8FAFC !important;
}

html.fl-theme-dark .fl-contact-sales-container .fl-method-link,
.fl-theme-dark .fl-contact-sales-container .fl-method-link {
    color: #60A5FA !important;
}

html.fl-theme-dark .fl-contact-sales-container .fl-included-box,
.fl-theme-dark .fl-contact-sales-container .fl-included-box {
    background: #0A1324 !important;
    border: 1px solid #1C2D4A !important;
}

html.fl-theme-dark .fl-contact-sales-container .fl-included-title,
.fl-theme-dark .fl-contact-sales-container .fl-included-title {
    color: #E2E8F0 !important;
}

html.fl-theme-dark .fl-contact-sales-container .fl-included-box ul li,
.fl-theme-dark .fl-contact-sales-container .fl-included-box ul li {
    color: #CBD5E1 !important;
}

html.fl-theme-dark .fl-contact-sales-container .fl-included-box i.text-primary,
.fl-theme-dark .fl-contact-sales-container .fl-included-box i.text-primary,
html.fl-theme-dark .fl-contact-sales-container .fl-contact-badge i.text-primary,
.fl-theme-dark .fl-contact-sales-container .fl-contact-badge i.text-primary {
    color: #60A5FA !important;
}

html.fl-theme-dark .fl-contact-sales-container .fl-form-label,
.fl-theme-dark .fl-contact-sales-container .fl-form-label {
    color: #CBD5E1 !important;
}

html.fl-theme-dark .fl-contact-sales-container .fl-form-control,
.fl-theme-dark .fl-contact-sales-container .fl-form-control {
    background: #0A1324 !important;
    border: 1.5px solid #1C2D4A !important;
    color: #F8FAFC !important;
}

html.fl-theme-dark .fl-contact-sales-container .fl-form-control::placeholder,
.fl-theme-dark .fl-contact-sales-container .fl-form-control::placeholder {
    color: #64748B !important;
}

html.fl-theme-dark .fl-contact-sales-container .fl-form-control:focus,
.fl-theme-dark .fl-contact-sales-container .fl-form-control:focus {
    background: #0E1A30 !important;
    border-color: #3B82F6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25) !important;
    color: #F8FAFC !important;
}

html.fl-theme-dark .fl-contact-sales-container .fl-capability-item,
.fl-theme-dark .fl-contact-sales-container .fl-capability-item {
    background: #111E38 !important;
    border: 1px solid #1C2D4A !important;
}

html.fl-theme-dark .fl-contact-sales-container .fl-capability-item:hover,
.fl-theme-dark .fl-contact-sales-container .fl-capability-item:hover {
    background: #152545 !important;
    border-color: #2563EB !important;
}

html.fl-theme-dark .fl-contact-sales-container .fl-cap-title,
.fl-theme-dark .fl-contact-sales-container .fl-cap-title {
    color: #F8FAFC !important;
}

html.fl-theme-dark .fl-contact-sales-container .fl-cap-desc,
.fl-theme-dark .fl-contact-sales-container .fl-cap-desc {
    color: #94A3B8 !important;
}

html.fl-theme-dark .fl-contact-sales-container .fl-spark-pill,
.fl-theme-dark .fl-contact-sales-container .fl-spark-pill {
    background: rgba(15, 27, 50, 0.75) !important;
    border-color: rgba(59, 130, 246, 0.25) !important;
    color: #E2E8F0 !important;
}

/* Direct Advisory Channels Box Dark Mode */
html.fl-theme-dark .fl-contact-sales-container .fl-contact-channels-box,
.fl-theme-dark .fl-contact-sales-container .fl-contact-channels-box,
html.fl-theme-dark .fl-contact-channels-box,
.fl-theme-dark .fl-contact-channels-box {
    background: #111E38 !important;
    border: 1px solid #1C2D4A !important;
}

html.fl-theme-dark .fl-contact-sales-container .fl-channels-header,
.fl-theme-dark .fl-contact-sales-container .fl-channels-header,
html.fl-theme-dark .fl-channels-header,
.fl-theme-dark .fl-channels-header {
    color: #E2E8F0 !important;
}

html.fl-theme-dark .fl-contact-sales-container .fl-method-text,
.fl-theme-dark .fl-contact-sales-container .fl-method-text,
html.fl-theme-dark .fl-method-text,
.fl-theme-dark .fl-method-text {
    color: #F8FAFC !important;
}

html.fl-theme-dark .fl-contact-sales-container .fl-method-link,
.fl-theme-dark .fl-contact-sales-container .fl-method-link,
html.fl-theme-dark .fl-method-link,
.fl-theme-dark .fl-method-link {
    color: #60A5FA !important;
}

html.fl-theme-dark .fl-contact-sales-container .fl-contact-channels-box .text-muted,
.fl-theme-dark .fl-contact-sales-container .fl-contact-channels-box .text-muted,
html.fl-theme-dark .fl-contact-channels-box .text-muted,
.fl-theme-dark .fl-contact-channels-box .text-muted {
    color: #94A3B8 !important;
}

html.fl-theme-dark .fl-contact-sales-container .fl-contact-channels-box .badge.bg-success-subtle,
.fl-theme-dark .fl-contact-sales-container .fl-contact-channels-box .badge.bg-success-subtle,
html.fl-theme-dark .fl-contact-channels-box .badge.bg-success-subtle,
.fl-theme-dark .fl-contact-channels-box .badge.bg-success-subtle {
    background: rgba(16, 185, 129, 0.18) !important;
    color: #34D399 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

html.fl-theme-dark .fl-contact-sales-container .fl-form-control.is-invalid,
.fl-theme-dark .fl-contact-sales-container .fl-form-control.is-invalid {
    border-color: #EF4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.22) !important;
    background: #150A15 !important;
}

html.fl-theme-dark .fl-contact-sales-container .fl-field-error,
.fl-theme-dark .fl-contact-sales-container .fl-field-error {
    color: #F87171 !important;
}

html.fl-theme-dark .fl-contact-sales-container select.fl-form-control option,
.fl-theme-dark .fl-contact-sales-container select.fl-form-control option {
    background: #0F1B32 !important;
    color: #F8FAFC !important;
}

html.fl-theme-dark .fl-contact-sales-container .fl-submit-btn,
.fl-theme-dark .fl-contact-sales-container .fl-submit-btn {
    background: linear-gradient(135deg, #1565FF 0%, #2563EB 100%) !important;
    box-shadow: 0 4px 16px rgba(21, 101, 255, 0.35) !important;
}

html.fl-theme-dark .fl-contact-sales-container .fl-submit-btn:hover,
.fl-theme-dark .fl-contact-sales-container .fl-submit-btn:hover {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%) !important;
    box-shadow: 0 6px 20px rgba(21, 101, 255, 0.5) !important;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   GLOBAL CONTACT SALES PAGE LIGHT MODE OVERRIDES
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
html.fl-theme-light .fl-contact-sales-container,
body.fl-theme-light .fl-contact-sales-container,
.fl-theme-light .fl-contact-sales-container {
    background: #F8FAFC !important;
    background-color: #F8FAFC !important;
    color: #0F172A !important;
}

html.fl-theme-light .fl-contact-sales-container .fl-contact-orb,
.fl-theme-light .fl-contact-sales-container .fl-contact-orb {
    display: none !important;
}

html.fl-theme-light .fl-contact-sales-container .fl-contact-title,
.fl-theme-light .fl-contact-sales-container .fl-contact-title {
    color: #0F172A !important;
}

html.fl-theme-light .fl-contact-sales-container .fl-contact-subtitle,
.fl-theme-light .fl-contact-sales-container .fl-contact-subtitle {
    color: #64748B !important;
}

html.fl-theme-light .fl-contact-sales-container .fl-card,
.fl-theme-light .fl-contact-sales-container .fl-card {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05) !important;
}

html.fl-theme-light .fl-contact-sales-container .fl-section-heading,
.fl-theme-light .fl-contact-sales-container .fl-section-heading,
html.fl-theme-light .fl-contact-sales-container .fl-form-success-title,
.fl-theme-light .fl-contact-sales-container .fl-form-success-title {
    color: #0F172A !important;
}

html.fl-theme-light .fl-contact-sales-container .text-muted,
.fl-theme-light .fl-contact-sales-container .text-muted {
    color: #64748B !important;
}

html.fl-theme-light .fl-contact-sales-container .fl-capability-item,
.fl-theme-light .fl-contact-sales-container .fl-capability-item {
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
}

html.fl-theme-light .fl-contact-sales-container .fl-capability-item:hover,
.fl-theme-light .fl-contact-sales-container .fl-capability-item:hover {
    background: #F1F5F9 !important;
    border-color: #CBD5E1 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
}

html.fl-theme-light .fl-contact-sales-container .fl-cap-title,
.fl-theme-light .fl-contact-sales-container .fl-cap-title {
    color: #0F172A !important;
}

html.fl-theme-light .fl-contact-sales-container .fl-cap-desc,
.fl-theme-light .fl-contact-sales-container .fl-cap-desc {
    color: #64748B !important;
}

html.fl-theme-light .fl-contact-sales-container .fl-spark-pill,
.fl-theme-light .fl-contact-sales-container .fl-spark-pill {
    background: #FFFFFF !important;
    border-color: #E2E8F0 !important;
    color: #334155 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

html.fl-theme-light .fl-contact-sales-container .fl-back-btn,
.fl-theme-light .fl-contact-sales-container .fl-back-btn {
    color: #64748B !important;
}

html.fl-theme-light .fl-contact-sales-container .fl-back-btn:hover,
.fl-theme-light .fl-contact-sales-container .fl-back-btn:hover {
    color: #1565FF !important;
}

html.fl-theme-light .fl-contact-sales-container .fl-contact-channels-box,
.fl-theme-light .fl-contact-sales-container .fl-contact-channels-box {
    background: #F1F5F9 !important;
    border: 1px solid #E2E8F0 !important;
}

html.fl-theme-light .fl-contact-sales-container .fl-channels-header,
.fl-theme-light .fl-contact-sales-container .fl-channels-header {
    color: #334155 !important;
}

html.fl-theme-light .fl-contact-sales-container .fl-method-text,
.fl-theme-light .fl-contact-sales-container .fl-method-text {
    color: #0F172A !important;
}

html.fl-theme-light .fl-contact-sales-container .fl-method-link,
.fl-theme-light .fl-contact-sales-container .fl-method-link {
    color: #1565FF !important;
}

html.fl-theme-light .fl-contact-sales-container .fl-contact-channels-box .text-muted,
.fl-theme-light .fl-contact-sales-container .fl-contact-channels-box .text-muted {
    color: #64748B !important;
}

html.fl-theme-light .fl-contact-sales-container .fl-form-label,
.fl-theme-light .fl-contact-sales-container .fl-form-label {
    color: #475569 !important;
}

html.fl-theme-light .fl-contact-sales-container .e-input-group,
body.fl-theme-light .fl-contact-sales-container .e-input-group,
.fl-theme-light .fl-contact-sales-container .e-input-group {
    background-color: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    color: #0F172A !important;
}

html.fl-theme-light .fl-contact-sales-container .e-input-group input.e-input,
body.fl-theme-light .fl-contact-sales-container .e-input-group input.e-input,
.fl-theme-light .fl-contact-sales-container .e-input-group input.e-input,
html.fl-theme-light .fl-contact-sales-container .e-input-group textarea.e-input,
body.fl-theme-light .fl-contact-sales-container .e-input-group textarea.e-input,
.fl-theme-light .fl-contact-sales-container .e-input-group textarea.e-input {
    color: #0F172A !important;
    background: transparent !important;
}

html.fl-theme-light .fl-contact-sales-container .e-input::placeholder,
body.fl-theme-light .fl-contact-sales-container .e-input::placeholder,
.fl-theme-light .fl-contact-sales-container .e-input::placeholder {
    color: #94A3B8 !important;
}

/* â”€â”€ Responsive Compact Header Button Text Utilities â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 440px) {
    .fl-btn-text-full {
        display: none !important;
    }

    .fl-btn-text-short {
        display: inline !important;
    }
}

@media (min-width: 441px) {
    .fl-btn-text-full {
        display: inline !important;
    }

    .fl-btn-text-short {
        display: none !important;
    }
}

/* ============================================================
   FLBill Global Print Document Stylesheet
   This file MUST remain non-scoped (global) so that:
   1. The print-helper.js iframe can copy and apply these styles.
   2. Browser @media print rules work correctly.
   3. CSS custom properties (typography variables) resolve properly.
   ============================================================ */

/* â”€â”€ Dark Mode Isolation & Print Appearance Neutrality (FL-FL Bill-136) â”€ */
.fl-preview-viewport,
.fl-thermal-receipt-wrapper,
.fl-receipt-paper-surface,
.fl-print-document,
.fl-print-document *,
.fl-print-preview-container,
.fl-preview-modal-body {
    color-scheme: light !important;
}

.fl-receipt-paper-surface {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #000000 !important;
}

/* â”€â”€ Root Print Container â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-print-document {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #000000 !important;
    margin: 0 auto;
    padding: 2mm 1mm;
    box-sizing: border-box !important;
    line-height: var(--print-line-height, 1.35);
    transform-origin: top center;
    font-family: 'Courier New', Courier, monospace;
    font-variant-numeric: tabular-nums;
    overflow: hidden !important;
    /* STRICT: inside a bill kula tha irukanum, veleya la pova kudathu */
    max-width: 100%;
}

.fl-print-document p,
.fl-print-document span,
.fl-print-document div,
.fl-print-document table,
.fl-print-document th,
.fl-print-document td,
.fl-print-document tr,
.fl-print-document strong,
.fl-print-document b {
    color: #000000 !important;
}

/* â”€â”€ Typography Zones â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-print-document .print-header-section {
    text-align: center;
    margin-bottom: var(--print-section-gap, 4px);
    font-size: var(--print-header-font-size, 14px);
}

.fl-print-document .print-store-name {
    font-size: var(--print-header-font-size, 14px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    word-break: break-word;
}

.fl-print-document .print-store-address,
.fl-print-document .print-store-info {
    font-size: calc(var(--print-header-font-size, 14px) * 0.72);
    color: #222;
    margin-top: 1px;
    word-break: break-word;
}

.fl-print-document .print-doc-title {
    font-size: calc(var(--print-header-font-size, 14px) * 0.88);
    font-weight: 800;
    letter-spacing: 0.8px;
    text-align: center;
    margin: 3px 0;
    text-transform: uppercase;
}

/* â”€â”€ Metadata & Row Layouts â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-print-document .print-meta-section {
    margin: var(--print-section-gap, 3px) 0;
    font-size: calc(var(--print-header-font-size, 14px) * 0.78);
}

.fl-print-document .print-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: var(--print-row-gap, 2px);
}

.fl-print-document .print-meta-label {
    color: #333;
    flex-shrink: 0;
}

.fl-print-document .print-meta-val {
    color: #000;
    text-align: right;
    word-break: break-word;
    overflow-wrap: anywhere;
    min-width: 0;
}

/* â”€â”€ Dividers â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-print-document .print-divider-double {
    width: 100%;
    height: 0;
    border-bottom: 2px solid #000;
    margin: 3px 0;
}

.fl-print-document .print-divider-dashed {
    width: 100%;
    height: 0;
    border-bottom: 1px dashed #000;
    margin: 3px 0;
}

/* â”€â”€ Compact / Thermal Table â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-print-document .print-items-section {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.fl-print-document .print-compact-table {
    width: 100% !important;
    max-width: 100% !important;
    border-collapse: collapse;
    table-layout: fixed !important;
    margin: 4px 0;
    font-size: var(--print-item-font-size, 9.5px);
    font-variant-numeric: tabular-nums;
    box-sizing: border-box !important;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: -0.2px;
}

.fl-print-document .print-compact-table th {
    border-top: 1px dashed #000;
    border-bottom: 1px dashed #000;
    padding: 3px 1px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: calc(var(--print-item-font-size, 9.5px) * 0.95);
    white-space: nowrap;
    box-sizing: border-box !important;
    overflow: hidden;
}

.fl-print-document .print-compact-table td {
    padding: 2px 1px;
    vertical-align: middle;
    font-size: var(--print-item-font-size, 9.5px);
    line-height: 1.25;
    white-space: nowrap;
    box-sizing: border-box !important;
    overflow: hidden;
}

/* Group / Species header rows */
.fl-print-document .print-species-header-row td {
    font-weight: 800;
    text-transform: uppercase;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    padding: 3px 0;
    font-size: calc(var(--print-item-font-size, 9.5px) * 1.05);
    letter-spacing: 0.2px;
    text-align: left;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Timber Compact Table Column Proportions (SL 8%, W 10%, T 10%, L 11%, PCS 10%, CFT 16%, Rate 21%, Amt 22% = 100%) */
.fl-print-document .print-timber-table .print-col-serialnumber {
    width: 8% !important;
    text-align: left !important;
    padding-left: 0 !important;
}

.fl-print-document .print-timber-table .print-col-width {
    width: 10% !important;
    text-align: right !important;
}

.fl-print-document .print-timber-table .print-col-thickness {
    width: 10% !important;
    text-align: right !important;
}

.fl-print-document .print-timber-table .print-col-length {
    width: 11% !important;
    text-align: right !important;
}

.fl-print-document .print-timber-table .print-col-pieces,
.fl-print-document .print-timber-table .print-col-quantity {
    width: 10% !important;
    text-align: right !important;
}

.fl-print-document .print-timber-table .print-col-cft,
.fl-print-document .print-timber-table .print-col-volumecft {
    width: 16% !important;
    text-align: right !important;
}

.fl-print-document .print-timber-table .print-col-uom {
    width: 8% !important;
    text-align: center !important;
}

.fl-print-document .print-timber-table .print-col-rate {
    width: 21% !important;
    text-align: right !important;
    white-space: nowrap !important;
    font-variant-numeric: tabular-nums !important;
}

.fl-print-document .print-timber-table .print-col-amount,
.fl-print-document .print-timber-table .print-col-linesubtotal {
    width: 22% !important;
    text-align: right !important;
    white-space: nowrap !important;
    font-variant-numeric: tabular-nums !important;
    padding-right: 0 !important;
}

/* 58mm Thermal Specific Proportions & Font Size (Sl 6%, W 9%, T 9%, L 10%, PCS 9%, CFT 13%, Rate 22%, Amt 22% = 100%) */
.fl-print-document.paper-thermal58mm .print-compact-table {
    font-size: 8px !important;
    letter-spacing: -0.4px !important;
}

.fl-print-document.paper-thermal58mm .print-compact-table th {
    font-size: 7.5px !important;
    padding: 2px 0.5px !important;
}

.fl-print-document.paper-thermal58mm .print-compact-table td {
    font-size: 8px !important;
    padding: 2px 0.5px !important;
}

.fl-print-document.paper-thermal58mm .print-timber-table .print-col-serialnumber {
    width: 6% !important;
    text-align: left !important;
    padding-left: 0 !important;
}

.fl-print-document.paper-thermal58mm .print-timber-table .print-col-width {
    width: 9% !important;
    text-align: right !important;
}

.fl-print-document.paper-thermal58mm .print-timber-table .print-col-thickness {
    width: 9% !important;
    text-align: right !important;
}

.fl-print-document.paper-thermal58mm .print-timber-table .print-col-length {
    width: 10% !important;
    text-align: right !important;
}

.fl-print-document.paper-thermal58mm .print-timber-table .print-col-pieces,
.fl-print-document.paper-thermal58mm .print-timber-table .print-col-quantity {
    width: 9% !important;
    text-align: right !important;
}

.fl-print-document.paper-thermal58mm .print-timber-table .print-col-cft,
.fl-print-document.paper-thermal58mm .print-timber-table .print-col-volumecft {
    width: 13% !important;
    text-align: right !important;
}

.fl-print-document.paper-thermal58mm .print-timber-table .print-col-uom {
    width: 8% !important;
    text-align: center !important;
}

.fl-print-document.paper-thermal58mm .print-timber-table .print-col-rate {
    width: 22% !important;
    text-align: right !important;
    white-space: nowrap !important;
    font-variant-numeric: tabular-nums !important;
}

.fl-print-document.paper-thermal58mm .print-timber-table .print-col-amount,
.fl-print-document.paper-thermal58mm .print-timber-table .print-col-linesubtotal {
    width: 22% !important;
    text-align: right !important;
    white-space: nowrap !important;
    font-variant-numeric: tabular-nums !important;
    padding-right: 0 !important;
}

/* Standard Compact Table (Non-timber retail items: Sl 8%, Item 40%, Qty 10%, Unit 8%, Rate 17%, Amt 17% = 100%) */
.fl-print-document .print-standard-compact .print-col-serialnumber {
    width: 8%;
    text-align: left !important;
    padding-left: 0 !important;
}

.fl-print-document .print-standard-compact .print-col-itemname {
    width: 40%;
    text-align: left !important;
}

.fl-print-document .print-standard-compact .print-col-quantity {
    width: 10%;
    text-align: right !important;
}

.fl-print-document .print-standard-compact .print-col-uom {
    width: 8%;
    text-align: center !important;
}

.fl-print-document .print-standard-compact .print-col-rate {
    width: 17%;
    text-align: right !important;
}

.fl-print-document .print-standard-compact .print-col-amount,
.fl-print-document .print-standard-compact .print-col-linesubtotal {
    width: 17%;
    text-align: right !important;
    padding-right: 0 !important;
}

/* Generic fallback if classes aren't matched */
.fl-print-document .print-col-rate {
    text-align: right !important;
}

.fl-print-document .print-col-amount,
.fl-print-document .print-col-linesubtotal {
    text-align: right !important;
    padding-right: 0 !important;
}

/* â”€â”€ Standard / Sheet Table (A4, A5, A3) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-print-document.layout-standard,
.fl-print-document.layout-wide {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    padding: 8mm 6mm;
}

.fl-print-document .print-sheet-table {
    width: 100%;
    border-collapse: collapse;
    margin: 6px 0;
    font-size: var(--print-item-font-size, 12px);
}

.fl-print-document .print-sheet-table th,
.fl-print-document .print-sheet-table td {
    border: 1px solid #cbd5e1;
    padding: 6px 8px;
    vertical-align: top;
}

.fl-print-document .print-sheet-table thead th {
    background: #f8fafc;
    font-weight: 700;
    color: #1e293b;
    border-bottom: 2px solid #94a3b8;
}

.fl-print-document .print-sheet-table tbody tr:nth-child(even) {
    background: #fdfdfd;
}

.fl-print-document .print-group-header-row td {
    background: #f0f4f8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    padding: 4px 8px;
}

/* â”€â”€ Totals & Summary Zone â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-print-document .print-summary-section {
    margin-top: var(--print-section-gap, 4px);
    font-size: calc(var(--print-total-font-size, 13px) * 0.82);
}

.fl-print-document .print-grand-total {
    font-size: var(--print-total-font-size, 13px);
    font-weight: var(--print-total-font-weight, 800);
    padding: 2px 0;
}

.fl-print-document .print-balance {
    font-size: calc(var(--print-total-font-size, 13px) * 0.9);
    font-weight: var(--print-total-font-weight, 700);
}

.fl-print-document .print-summary-val {
    font-weight: var(--print-total-font-weight, 700);
}

/* When BoldTotal is disabled */
.fl-print-document.no-bold-total .print-grand-total,
.fl-print-document.no-bold-total .print-balance,
.fl-print-document.no-bold-total .print-summary-val,
.fl-print-document.no-bold-total strong {
    font-weight: 500 !important;
}

.fl-print-document.bold-total .print-grand-total {
    font-weight: 800 !important;
}

.fl-print-document.bold-total .print-balance {
    font-weight: 700 !important;
}

/* â”€â”€ Notes, Terms, Declaration & Footer â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-print-document .print-notes-section,
.fl-print-document .print-terms-section {
    font-size: calc(var(--print-footer-font-size, 9.5px) * 0.95);
    margin: 3px 0;
}

.fl-print-document .print-notes-title {
    font-weight: 700;
    margin-bottom: 1px;
}

.fl-print-document .print-notes-content {
    color: #222;
    white-space: pre-wrap;
}

.fl-print-document .print-declaration-section {
    font-size: calc(var(--print-footer-font-size, 9.5px) * 0.88);
    font-style: italic;
    color: #333;
    margin: 3px 0;
}

.fl-print-document .print-footer-section {
    text-align: center;
    margin-top: 6px;
    font-size: var(--print-footer-font-size, 9.5px);
}

.fl-print-document .print-thankyou {
    font-size: calc(var(--print-footer-font-size, 9.5px) * 1.2);
    font-weight: 700;
    margin-bottom: 2px;
}

.fl-print-document .print-footer-sub {
    font-size: calc(var(--print-footer-font-size, 9.5px) * 0.9);
    color: #444;
    white-space: pre-line;
}

/* â”€â”€ Preview Mode Simulator â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-print-document.fl-print-preview-mode {
    border: none !important;
    box-shadow: none !important;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}


/* â”€â”€ Thermal Receipt Simulation Wrapper â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-thermal-receipt-wrapper {
    margin: 12px auto !important;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
    transition: width 0.2s ease-in-out;
    box-sizing: border-box !important;
    overflow: visible !important;
}

.fl-thermal-receipt-wrapper.paper-58mm {
    width: 280px !important;
    max-width: 100% !important;
}

.fl-thermal-receipt-wrapper.paper-80mm {
    width: 350px !important;
    max-width: 100% !important;
}

.fl-thermal-receipt-wrapper .fl-receipt-paper-surface {
    padding: 16px 12px !important;
}

.fl-receipt-zigzag {
    height: 8px;
    width: 100%;
    box-sizing: border-box !important;
}

.fl-receipt-zigzag-top {
    background: linear-gradient(135deg, transparent 5px, #ffffff 0), linear-gradient(-135deg, transparent 5px, #ffffff 0);
    background-size: 10px 8px;
    background-repeat: repeat-x;
}

.fl-receipt-zigzag-bottom {
    background: linear-gradient(45deg, transparent 5px, #ffffff 0), linear-gradient(-45deg, transparent 5px, #ffffff 0);
    background-size: 10px 8px;
    background-repeat: repeat-x;
}

.fl-receipt-paper-surface {
    background: #ffffff;
    padding: 14px 10px;
    color: #111827;
    width: 100%;
    box-sizing: border-box !important;
}

.fl-thermal-receipt-wrapper .fl-print-document.fl-print-preview-mode {
    box-shadow: none !important;
    border: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: transparent !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* â”€â”€ Text Wrapping Utility â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-print-document .print-compact-item-block {
    margin-bottom: 4px;
    page-break-inside: avoid;
    break-inside: avoid;
}

.fl-print-document .print-compact-item-title,
.fl-print-document .print-store-name,
.fl-print-document .print-store-address,
.fl-print-document .print-notes-content,
.fl-print-document .print-terms-content,
.fl-print-document .print-declaration-text {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Wrapping vs Non-wrapping item names */
.fl-print-document.wrap-item-names .print-col-itemname,
.fl-print-document.wrap-item-names .print-species-header-row td,
.fl-print-document.wrap-item-names .print-compact-item-title {
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}

.fl-print-document.nowrap-item-names .print-col-itemname,
.fl-print-document.nowrap-item-names .print-species-header-row td,
.fl-print-document.nowrap-item-names .print-compact-item-title {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 32ch;
}

/* Numeric columns NEVER wrap or truncate */
.fl-print-document .print-col-serialnumber,
.fl-print-document .print-col-length,
.fl-print-document .print-col-width,
.fl-print-document .print-col-thickness,
.fl-print-document .print-col-uom,
.fl-print-document .print-col-quantity,
.fl-print-document .print-col-pieces,
.fl-print-document .print-col-cft,
.fl-print-document .print-col-volumecft,
.fl-print-document .print-col-rate,
.fl-print-document .print-col-amount,
.fl-print-document .print-col-linesubtotal,
.fl-print-document .print-col-discount,
.fl-print-document .print-col-taxrate,
.fl-print-document .print-col-taxamount {
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

/* AutoFitColumns disabled */
.fl-print-document.no-autofit .print-compact-table {
    table-layout: fixed !important;
    width: max-content !important;
    min-width: 100% !important;
}

/* â”€â”€ Print Isolation & Multi-Page Pagination â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media print {

    .fl-print-document .print-sheet-table tr,
    .fl-print-document .print-compact-item-block,
    .fl-print-document .print-summary-section,
    .fl-print-document .print-payments-section,
    .fl-print-document .print-tax-section,
    .fl-print-document .print-notes-section,
    .fl-print-document .print-terms-section,
    .fl-print-document .print-declaration-section,
    .fl-print-document .print-footer-section {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   PRINT PREVIEW MODAL DIALOG (Syncfusion SfDialog)
   Follows canonical dialog pattern from app.css (fl-record-payment-dialog)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.fl-print-preview-dialog.e-dialog {
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
    overflow: hidden !important;
    max-height: 92vh !important;
    display: flex !important;
    flex-direction: column !important;
}

.fl-print-preview-dialog .e-dlg-header,
.fl-print-preview-dialog .e-dlg-header * {
    color: var(--fl-text-primary, #0f172a);
    font-weight: 700;
}

.fl-print-preview-dialog .e-dlg-content {
    max-height: calc(92vh - 120px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 0 !important;
    background: #f1f5f9 !important;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.fl-print-preview-dialog .e-dlg-content::-webkit-scrollbar {
    width: 5px;
}

.fl-print-preview-dialog .e-dlg-content::-webkit-scrollbar-track {
    background: transparent;
}

.fl-print-preview-dialog .e-dlg-content::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
}

/* â”€â”€ Preview Options Toolbar (Top of Content) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-preview-options-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    gap: 12px;
    flex-wrap: wrap;
    box-sizing: border-box;
    width: 100%;
}

.fl-preview-options-bar .fl-profile-selector-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 360px;
}

.fl-preview-options-bar .fl-profile-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
}

.fl-preview-options-bar .fl-profile-picker {
    font-size: 0.8125rem;
    padding: 4px 28px 4px 10px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    color: #0f172a;
    width: 100%;
    min-width: 0;
    text-overflow: ellipsis;
}

.fl-preview-paper-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.fl-print-preview-container {
    padding: 14px 12px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: 200px !important;
    overflow-x: hidden !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.fl-print-preview-dialog .e-footer-content {
    padding: 8px 14px !important;
    border-top: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
}

.fl-print-preview-dialog .fl-preview-dialog-footer {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
}

.fl-print-preview-dialog .e-footer-content .small {
    font-size: 0.78rem !important;
}

.fl-print-preview-dialog .e-footer-content .e-btn {
    font-size: 0.8125rem !important;
    padding: 4px 12px !important;
    height: 32px !important;
}

/* â”€â”€ Dark Theme Overrides â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-theme-dark .fl-print-preview-dialog.e-dialog,
body.fl-theme-dark .fl-print-preview-dialog.e-dialog {
    border-color: #1e293b !important;
    background: #0f172a !important;
}

.fl-theme-dark .fl-print-preview-dialog .e-dlg-header-content,
body.fl-theme-dark .fl-print-preview-dialog .e-dlg-header-content,
html.fl-theme-dark .fl-print-preview-dialog .e-dlg-header-content {
    background: #0f172a !important;
    border-bottom-color: #1e293b !important;
}

.fl-theme-dark .fl-print-preview-dialog .e-dlg-header,
.fl-theme-dark .fl-print-preview-dialog .e-dlg-header *,
body.fl-theme-dark .fl-print-preview-dialog .e-dlg-header,
body.fl-theme-dark .fl-print-preview-dialog .e-dlg-header *,
html.fl-theme-dark .fl-print-preview-dialog .e-dlg-header,
html.fl-theme-dark .fl-print-preview-dialog .e-dlg-header * {
    color: #f8fafc !important;
}

.fl-theme-dark .fl-print-preview-dialog .e-dlg-closeicon-btn .e-btn-icon,
body.fl-theme-dark .fl-print-preview-dialog .e-dlg-closeicon-btn .e-btn-icon,
html.fl-theme-dark .fl-print-preview-dialog .e-dlg-closeicon-btn .e-btn-icon {
    color: #94a3b8 !important;
}

.fl-theme-dark .fl-print-preview-dialog .e-dlg-closeicon-btn:hover .e-btn-icon,
body.fl-theme-dark .fl-print-preview-dialog .e-dlg-closeicon-btn:hover .e-btn-icon,
html.fl-theme-dark .fl-print-preview-dialog .e-dlg-closeicon-btn:hover .e-btn-icon {
    color: #ffffff !important;
}

.fl-theme-dark .fl-preview-options-bar,
body.fl-theme-dark .fl-preview-options-bar {
    background: #0f172a;
    border-bottom-color: #1e293b;
}

.fl-theme-dark .fl-preview-options-bar .fl-profile-label,
body.fl-theme-dark .fl-preview-options-bar .fl-profile-label {
    color: #94a3b8;
}

.fl-theme-dark .fl-preview-options-bar .fl-profile-picker,
body.fl-theme-dark .fl-preview-options-bar .fl-profile-picker {
    background-color: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

.fl-theme-dark .fl-preview-paper-badge,
body.fl-theme-dark .fl-preview-paper-badge {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

.fl-theme-dark .fl-print-preview-dialog .e-dlg-content,
body.fl-theme-dark .fl-print-preview-dialog .e-dlg-content {
    background: #0b1120 !important;
}

.fl-theme-dark .fl-print-preview-dialog .e-footer-content,
body.fl-theme-dark .fl-print-preview-dialog .e-footer-content {
    background: #0f172a !important;
    border-top-color: #1e293b !important;
}

/* â”€â”€ Mobile Responsive Overrides â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 768px) {

    /* Ensure modal container centers dialog properly on mobile */
    .e-dlg-container:has(.fl-print-preview-dialog),
    .e-dlg-container.e-dlg-center-center {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        left: 0 !important;
        top: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .fl-print-preview-dialog.e-dialog {
        width: min(520px, calc(100vw - 16px)) !important;
        max-width: calc(100vw - 16px) !important;
        min-width: 0 !important;
        height: calc(100dvh - 36px) !important;
        max-height: calc(100dvh - 36px) !important;
        display: flex !important;
        flex-direction: column !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        margin: auto !important;
        position: relative !important;
        transform: none !important;
        border-radius: 14px !important;
        box-sizing: border-box !important;
    }

    .fl-print-preview-dialog .e-dlg-header-content {
        padding: 12px 14px !important;
        flex-shrink: 0 !important;
        box-sizing: border-box !important;
    }

    .fl-print-preview-dialog .fl-preview-options-bar {
        flex-shrink: 0 !important;
    }

    .fl-print-preview-dialog .e-dlg-content {
        flex: 1 1 auto !important;
        height: 100% !important;
        max-height: none !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .fl-preview-options-bar {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 8px 12px !important;
        gap: 8px !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        flex-wrap: nowrap !important;
        overflow: hidden !important;
    }

    .fl-preview-options-bar .fl-profile-selector-group {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .fl-preview-options-bar .fl-profile-label {
        font-size: 0.8125rem !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    .fl-preview-options-bar .fl-profile-picker {
        flex: 1 1 auto !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        font-size: 0.8125rem !important;
        text-overflow: ellipsis !important;
    }

    .fl-preview-paper-badge {
        display: none !important;
    }

    .fl-print-preview-container {
        padding: 10px 8px 32px 8px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        box-sizing: border-box !important;
    }

    .fl-thermal-receipt-wrapper {
        margin: 4px auto !important;
        box-sizing: border-box !important;
        width: auto !important;
        max-width: 100% !important;
    }

    .fl-thermal-receipt-wrapper.paper-58mm {
        width: min(280px, 100%) !important;
        max-width: 100% !important;
    }

    .fl-thermal-receipt-wrapper.paper-80mm {
        width: min(350px, 100%) !important;
        max-width: 100% !important;
    }

    .fl-receipt-paper-surface {
        padding: 10px 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .fl-thermal-receipt-wrapper .fl-print-document.fl-print-preview-mode {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 auto !important;
    }

    .fl-print-preview-dialog .e-footer-content {
        padding: 8px 12px !important;
        box-sizing: border-box !important;
    }

    .fl-print-preview-dialog .e-footer-content .fl-preview-dialog-footer {
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-end !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}


/* ============================================================
   FLBill Global Print Document Stylesheet
   This file MUST remain non-scoped (global) so that:
   1. The print-helper.js iframe can copy and apply these styles.
   2. Browser @media print rules work correctly.
   3. CSS custom properties (typography variables) resolve properly.
   ============================================================ */

/* â”€â”€ Dark Mode Isolation & Print Appearance Neutrality (FL-FL Bill-136) â”€ */
.fl-preview-viewport,
.fl-thermal-receipt-wrapper,
.fl-receipt-paper-surface,
.fl-print-document,
.fl-print-document *,
.fl-print-preview-container,
.fl-preview-modal-body {
    color-scheme: light !important;
}

.fl-receipt-paper-surface {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #000000 !important;
}

/* â”€â”€ Root Print Container â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-print-document {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #000000 !important;
    margin: 0 auto;
    padding: 2mm 1mm;
    box-sizing: border-box !important;
    line-height: var(--print-line-height, 1.35);
    transform-origin: top center;
    font-family: 'Courier New', Courier, monospace;
    font-variant-numeric: tabular-nums;
    overflow: hidden !important;
    /* STRICT: inside a bill kula tha irukanum, veleya la pova kudathu */
    max-width: 100%;
}

.fl-print-document p,
.fl-print-document span,
.fl-print-document div,
.fl-print-document table,
.fl-print-document th,
.fl-print-document td,
.fl-print-document tr,
.fl-print-document strong,
.fl-print-document b {
    color: #000000 !important;
}

/* â”€â”€ Typography Zones â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-print-document .print-header-section {
    text-align: center;
    margin-bottom: var(--print-section-gap, 4px);
    font-size: var(--print-header-font-size, 14px);
}

.fl-print-document .print-store-name {
    font-size: var(--print-header-font-size, 14px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    word-break: break-word;
}

.fl-print-document .print-store-address,
.fl-print-document .print-store-info {
    font-size: calc(var(--print-header-font-size, 14px) * 0.72);
    color: #222;
    margin-top: 1px;
    word-break: break-word;
}

.fl-print-document .print-doc-title {
    font-size: calc(var(--print-header-font-size, 14px) * 0.88);
    font-weight: 800;
    letter-spacing: 0.8px;
    text-align: center;
    margin: 3px 0;
    text-transform: uppercase;
}

/* â”€â”€ Metadata & Row Layouts â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-print-document .print-meta-section {
    margin: var(--print-section-gap, 3px) 0;
    font-size: calc(var(--print-header-font-size, 14px) * 0.78);
}

.fl-print-document .print-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: var(--print-row-gap, 2px);
}

.fl-print-document .print-meta-label {
    color: #333;
    flex-shrink: 0;
}

.fl-print-document .print-meta-val {
    color: #000;
    text-align: right;
    word-break: break-word;
    overflow-wrap: anywhere;
    min-width: 0;
}

/* â”€â”€ Dividers â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-print-document .print-divider-double {
    width: 100%;
    height: 0;
    border-bottom: 2px solid #000;
    margin: 3px 0;
}

.fl-print-document .print-divider-dashed {
    width: 100%;
    height: 0;
    border-bottom: 1px dashed #000;
    margin: 3px 0;
}

/* â”€â”€ Compact / Thermal Table â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-print-document .print-items-section {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.fl-print-document .print-compact-table {
    width: 100% !important;
    max-width: 100% !important;
    border-collapse: collapse;
    table-layout: fixed !important;
    margin: 4px 0;
    font-size: var(--print-item-font-size, 9.5px);
    font-variant-numeric: tabular-nums;
    box-sizing: border-box !important;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: -0.2px;
}

.fl-print-document .print-compact-table th {
    border-top: 1px dashed #000;
    border-bottom: 1px dashed #000;
    padding: 3px 1px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: calc(var(--print-item-font-size, 9.5px) * 0.95);
    white-space: nowrap;
    box-sizing: border-box !important;
    overflow: hidden;
}

.fl-print-document .print-compact-table td {
    padding: 2px 1px;
    vertical-align: middle;
    font-size: var(--print-item-font-size, 9.5px);
    line-height: 1.25;
    white-space: nowrap;
    box-sizing: border-box !important;
    overflow: hidden;
}

/* Group / Species header rows */
.fl-print-document .print-species-header-row td {
    font-weight: 800;
    text-transform: uppercase;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    padding: 3px 0;
    font-size: calc(var(--print-item-font-size, 9.5px) * 1.05);
    letter-spacing: 0.2px;
    text-align: left;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Timber Compact Table Column Proportions (SL 8%, W 10%, T 10%, L 11%, PCS 10%, CFT 16%, Rate 21%, Amt 22% = 100%) */
.fl-print-document .print-timber-table .print-col-serialnumber {
    width: 8% !important;
    text-align: left !important;
    padding-left: 0 !important;
}

.fl-print-document .print-timber-table .print-col-width {
    width: 10% !important;
    text-align: right !important;
}

.fl-print-document .print-timber-table .print-col-thickness {
    width: 10% !important;
    text-align: right !important;
}

.fl-print-document .print-timber-table .print-col-length {
    width: 11% !important;
    text-align: right !important;
}

.fl-print-document .print-timber-table .print-col-pieces,
.fl-print-document .print-timber-table .print-col-quantity {
    width: 10% !important;
    text-align: right !important;
}

.fl-print-document .print-timber-table .print-col-cft,
.fl-print-document .print-timber-table .print-col-volumecft {
    width: 16% !important;
    text-align: right !important;
}

.fl-print-document .print-timber-table .print-col-uom {
    width: 8% !important;
    text-align: center !important;
}

.fl-print-document .print-timber-table .print-col-rate {
    width: 21% !important;
    text-align: right !important;
    white-space: nowrap !important;
    font-variant-numeric: tabular-nums !important;
}

.fl-print-document .print-timber-table .print-col-amount,
.fl-print-document .print-timber-table .print-col-linesubtotal {
    width: 22% !important;
    text-align: right !important;
    white-space: nowrap !important;
    font-variant-numeric: tabular-nums !important;
    padding-right: 0 !important;
}

/* 58mm Thermal Specific Proportions & Font Size (Sl 6%, W 9%, T 9%, L 10%, PCS 9%, CFT 13%, Rate 22%, Amt 22% = 100%) */
.fl-print-document.paper-thermal58mm .print-compact-table {
    font-size: 8px !important;
    letter-spacing: -0.4px !important;
}

.fl-print-document.paper-thermal58mm .print-compact-table th {
    font-size: 7.5px !important;
    padding: 2px 0.5px !important;
}

.fl-print-document.paper-thermal58mm .print-compact-table td {
    font-size: 8px !important;
    padding: 2px 0.5px !important;
}

.fl-print-document.paper-thermal58mm .print-timber-table .print-col-serialnumber {
    width: 6% !important;
    text-align: left !important;
    padding-left: 0 !important;
}

.fl-print-document.paper-thermal58mm .print-timber-table .print-col-width {
    width: 9% !important;
    text-align: right !important;
}

.fl-print-document.paper-thermal58mm .print-timber-table .print-col-thickness {
    width: 9% !important;
    text-align: right !important;
}

.fl-print-document.paper-thermal58mm .print-timber-table .print-col-length {
    width: 10% !important;
    text-align: right !important;
}

.fl-print-document.paper-thermal58mm .print-timber-table .print-col-pieces,
.fl-print-document.paper-thermal58mm .print-timber-table .print-col-quantity {
    width: 9% !important;
    text-align: right !important;
}

.fl-print-document.paper-thermal58mm .print-timber-table .print-col-cft,
.fl-print-document.paper-thermal58mm .print-timber-table .print-col-volumecft {
    width: 13% !important;
    text-align: right !important;
}

.fl-print-document.paper-thermal58mm .print-timber-table .print-col-uom {
    width: 8% !important;
    text-align: center !important;
}

.fl-print-document.paper-thermal58mm .print-timber-table .print-col-rate {
    width: 22% !important;
    text-align: right !important;
    white-space: nowrap !important;
    font-variant-numeric: tabular-nums !important;
}

.fl-print-document.paper-thermal58mm .print-timber-table .print-col-amount,
.fl-print-document.paper-thermal58mm .print-timber-table .print-col-linesubtotal {
    width: 22% !important;
    text-align: right !important;
    white-space: nowrap !important;
    font-variant-numeric: tabular-nums !important;
    padding-right: 0 !important;
}

/* Standard Compact Table (Non-timber retail items: Sl 8%, Item 40%, Qty 10%, Unit 8%, Rate 17%, Amt 17% = 100%) */
.fl-print-document .print-standard-compact .print-col-serialnumber {
    width: 8%;
    text-align: left !important;
    padding-left: 0 !important;
}

.fl-print-document .print-standard-compact .print-col-itemname {
    width: 40%;
    text-align: left !important;
}

.fl-print-document .print-standard-compact .print-col-quantity {
    width: 10%;
    text-align: right !important;
}

.fl-print-document .print-standard-compact .print-col-uom {
    width: 8%;
    text-align: center !important;
}

.fl-print-document .print-standard-compact .print-col-rate {
    width: 17%;
    text-align: right !important;
}

.fl-print-document .print-standard-compact .print-col-amount,
.fl-print-document .print-standard-compact .print-col-linesubtotal {
    width: 17%;
    text-align: right !important;
    padding-right: 0 !important;
}

/* Generic fallback if classes aren't matched */
.fl-print-document .print-col-rate {
    text-align: right !important;
}

.fl-print-document .print-col-amount,
.fl-print-document .print-col-linesubtotal {
    text-align: right !important;
    padding-right: 0 !important;
}

/* â”€â”€ Standard / Sheet Table (A4, A5, A3) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-print-document.layout-standard,
.fl-print-document.layout-wide {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    padding: 8mm 6mm;
}

.fl-print-document .print-sheet-table {
    width: 100%;
    border-collapse: collapse;
    margin: 6px 0;
    font-size: var(--print-item-font-size, 12px);
}

.fl-print-document .print-sheet-table th,
.fl-print-document .print-sheet-table td {
    border: 1px solid #cbd5e1;
    padding: 6px 8px;
    vertical-align: top;
}

.fl-print-document .print-sheet-table thead th {
    background: #f8fafc;
    font-weight: 700;
    color: #1e293b;
    border-bottom: 2px solid #94a3b8;
}

.fl-print-document .print-sheet-table tbody tr:nth-child(even) {
    background: #fdfdfd;
}

.fl-print-document .print-group-header-row td {
    background: #f0f4f8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    padding: 4px 8px;
}

/* â”€â”€ Totals & Summary Zone â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-print-document .print-summary-section {
    margin-top: var(--print-section-gap, 4px);
    font-size: calc(var(--print-total-font-size, 13px) * 0.82);
}

.fl-print-document .print-grand-total {
    font-size: var(--print-total-font-size, 13px);
    font-weight: var(--print-total-font-weight, 800);
    padding: 2px 0;
}

.fl-print-document .print-balance {
    font-size: calc(var(--print-total-font-size, 13px) * 0.9);
    font-weight: var(--print-total-font-weight, 700);
}

.fl-print-document .print-summary-val {
    font-weight: var(--print-total-font-weight, 700);
}

/* When BoldTotal is disabled */
.fl-print-document.no-bold-total .print-grand-total,
.fl-print-document.no-bold-total .print-balance,
.fl-print-document.no-bold-total .print-summary-val,
.fl-print-document.no-bold-total strong {
    font-weight: 500 !important;
}

.fl-print-document.bold-total .print-grand-total {
    font-weight: 800 !important;
}

.fl-print-document.bold-total .print-balance {
    font-weight: 700 !important;
}

/* â”€â”€ Notes, Terms, Declaration & Footer â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-print-document .print-notes-section,
.fl-print-document .print-terms-section {
    font-size: calc(var(--print-footer-font-size, 9.5px) * 0.95);
    margin: 3px 0;
}

.fl-print-document .print-notes-title {
    font-weight: 700;
    margin-bottom: 1px;
}

.fl-print-document .print-notes-content {
    color: #222;
    white-space: pre-wrap;
}

.fl-print-document .print-declaration-section {
    font-size: calc(var(--print-footer-font-size, 9.5px) * 0.88);
    font-style: italic;
    color: #333;
    margin: 3px 0;
}

.fl-print-document .print-footer-section {
    text-align: center;
    margin-top: 6px;
    font-size: var(--print-footer-font-size, 9.5px);
}

.fl-print-document .print-thankyou {
    font-size: calc(var(--print-footer-font-size, 9.5px) * 1.2);
    font-weight: 700;
    margin-bottom: 2px;
}

.fl-print-document .print-footer-sub {
    font-size: calc(var(--print-footer-font-size, 9.5px) * 0.9);
    color: #444;
    white-space: pre-line;
}

/* â”€â”€ Preview Mode Simulator â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-print-document.fl-print-preview-mode {
    border: none !important;
    box-shadow: none !important;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}


/* â”€â”€ Thermal Receipt Simulation Wrapper â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-thermal-receipt-wrapper {
    margin: 12px auto !important;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
    transition: width 0.2s ease-in-out;
    box-sizing: border-box !important;
    overflow: visible !important;
}

.fl-thermal-receipt-wrapper.paper-58mm {
    width: 280px !important;
    max-width: 100% !important;
}

.fl-thermal-receipt-wrapper.paper-80mm {
    width: 350px !important;
    max-width: 100% !important;
}

.fl-thermal-receipt-wrapper .fl-receipt-paper-surface {
    padding: 16px 12px !important;
}

.fl-receipt-zigzag {
    height: 8px;
    width: 100%;
    box-sizing: border-box !important;
}

.fl-receipt-zigzag-top {
    background: linear-gradient(135deg, transparent 5px, #ffffff 0), linear-gradient(-135deg, transparent 5px, #ffffff 0);
    background-size: 10px 8px;
    background-repeat: repeat-x;
}

.fl-receipt-zigzag-bottom {
    background: linear-gradient(45deg, transparent 5px, #ffffff 0), linear-gradient(-45deg, transparent 5px, #ffffff 0);
    background-size: 10px 8px;
    background-repeat: repeat-x;
}

.fl-receipt-paper-surface {
    background: #ffffff;
    padding: 14px 10px;
    color: #111827;
    width: 100%;
    box-sizing: border-box !important;
}

.fl-thermal-receipt-wrapper .fl-print-document.fl-print-preview-mode {
    box-shadow: none !important;
    border: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: transparent !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* â”€â”€ Text Wrapping Utility â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-print-document .print-compact-item-block {
    margin-bottom: 4px;
    page-break-inside: avoid;
    break-inside: avoid;
}

.fl-print-document .print-compact-item-title,
.fl-print-document .print-store-name,
.fl-print-document .print-store-address,
.fl-print-document .print-notes-content,
.fl-print-document .print-terms-content,
.fl-print-document .print-declaration-text {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Wrapping vs Non-wrapping item names */
.fl-print-document.wrap-item-names .print-col-itemname,
.fl-print-document.wrap-item-names .print-species-header-row td,
.fl-print-document.wrap-item-names .print-compact-item-title {
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}

.fl-print-document.nowrap-item-names .print-col-itemname,
.fl-print-document.nowrap-item-names .print-species-header-row td,
.fl-print-document.nowrap-item-names .print-compact-item-title {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 32ch;
}

/* Numeric columns NEVER wrap or truncate */
.fl-print-document .print-col-serialnumber,
.fl-print-document .print-col-length,
.fl-print-document .print-col-width,
.fl-print-document .print-col-thickness,
.fl-print-document .print-col-uom,
.fl-print-document .print-col-quantity,
.fl-print-document .print-col-pieces,
.fl-print-document .print-col-cft,
.fl-print-document .print-col-volumecft,
.fl-print-document .print-col-rate,
.fl-print-document .print-col-amount,
.fl-print-document .print-col-linesubtotal,
.fl-print-document .print-col-discount,
.fl-print-document .print-col-taxrate,
.fl-print-document .print-col-taxamount {
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

/* AutoFitColumns disabled */
.fl-print-document.no-autofit .print-compact-table {
    table-layout: fixed !important;
    width: max-content !important;
    min-width: 100% !important;
}

/* â”€â”€ Print Isolation & Multi-Page Pagination â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media print {

    .fl-print-document .print-sheet-table tr,
    .fl-print-document .print-compact-item-block,
    .fl-print-document .print-summary-section,
    .fl-print-document .print-payments-section,
    .fl-print-document .print-tax-section,
    .fl-print-document .print-notes-section,
    .fl-print-document .print-terms-section,
    .fl-print-document .print-declaration-section,
    .fl-print-document .print-footer-section {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   PRINT PREVIEW MODAL DIALOG (Syncfusion SfDialog)
   Follows canonical dialog pattern from app.css (fl-record-payment-dialog)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.fl-print-preview-dialog.e-dialog {
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
    overflow: hidden !important;
    max-height: 92vh !important;
    display: flex !important;
    flex-direction: column !important;
}

.fl-print-preview-dialog .e-dlg-header,
.fl-print-preview-dialog .e-dlg-header * {
    color: var(--fl-text-primary, #0f172a);
    font-weight: 700;
}

.fl-print-preview-dialog .e-dlg-content {
    max-height: calc(92vh - 120px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 0 !important;
    background: #f1f5f9 !important;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.fl-print-preview-dialog .e-dlg-content::-webkit-scrollbar {
    width: 5px;
}

.fl-print-preview-dialog .e-dlg-content::-webkit-scrollbar-track {
    background: transparent;
}

.fl-print-preview-dialog .e-dlg-content::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
}

/* â”€â”€ Preview Options Toolbar (Top of Content) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-preview-options-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    gap: 12px;
    flex-wrap: wrap;
    box-sizing: border-box;
    width: 100%;
}

.fl-preview-options-bar .fl-profile-selector-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 360px;
}

.fl-preview-options-bar .fl-profile-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
}

.fl-preview-options-bar .fl-profile-picker {
    font-size: 0.8125rem;
    padding: 4px 28px 4px 10px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    color: #0f172a;
    width: 100%;
    min-width: 0;
    text-overflow: ellipsis;
}

.fl-preview-paper-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.fl-print-preview-container {
    padding: 14px 12px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: 200px !important;
    overflow-x: hidden !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.fl-print-preview-dialog .e-footer-content {
    padding: 8px 14px !important;
    border-top: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
}

.fl-print-preview-dialog .fl-preview-dialog-footer {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
}

.fl-print-preview-dialog .e-footer-content .small {
    font-size: 0.78rem !important;
}

.fl-print-preview-dialog .e-footer-content .e-btn {
    font-size: 0.8125rem !important;
    padding: 4px 12px !important;
    height: 32px !important;
}

/* â”€â”€ Dark Theme Overrides â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fl-theme-dark .fl-print-preview-dialog.e-dialog,
body.fl-theme-dark .fl-print-preview-dialog.e-dialog {
    border-color: #1e293b !important;
    background: #0f172a !important;
}

.fl-theme-dark .fl-print-preview-dialog .e-dlg-header-content,
body.fl-theme-dark .fl-print-preview-dialog .e-dlg-header-content,
html.fl-theme-dark .fl-print-preview-dialog .e-dlg-header-content {
    background: #0f172a !important;
    border-bottom-color: #1e293b !important;
}

.fl-theme-dark .fl-print-preview-dialog .e-dlg-header,
.fl-theme-dark .fl-print-preview-dialog .e-dlg-header *,
body.fl-theme-dark .fl-print-preview-dialog .e-dlg-header,
body.fl-theme-dark .fl-print-preview-dialog .e-dlg-header *,
html.fl-theme-dark .fl-print-preview-dialog .e-dlg-header,
html.fl-theme-dark .fl-print-preview-dialog .e-dlg-header * {
    color: #f8fafc !important;
}

.fl-theme-dark .fl-print-preview-dialog .e-dlg-closeicon-btn .e-btn-icon,
body.fl-theme-dark .fl-print-preview-dialog .e-dlg-closeicon-btn .e-btn-icon,
html.fl-theme-dark .fl-print-preview-dialog .e-dlg-closeicon-btn .e-btn-icon {
    color: #94a3b8 !important;
}

.fl-theme-dark .fl-print-preview-dialog .e-dlg-closeicon-btn:hover .e-btn-icon,
body.fl-theme-dark .fl-print-preview-dialog .e-dlg-closeicon-btn:hover .e-btn-icon,
html.fl-theme-dark .fl-print-preview-dialog .e-dlg-closeicon-btn:hover .e-btn-icon {
    color: #ffffff !important;
}

.fl-theme-dark .fl-preview-options-bar,
body.fl-theme-dark .fl-preview-options-bar {
    background: #0f172a;
    border-bottom-color: #1e293b;
}

.fl-theme-dark .fl-preview-options-bar .fl-profile-label,
body.fl-theme-dark .fl-preview-options-bar .fl-profile-label {
    color: #94a3b8;
}

.fl-theme-dark .fl-preview-options-bar .fl-profile-picker,
body.fl-theme-dark .fl-preview-options-bar .fl-profile-picker {
    background-color: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

.fl-theme-dark .fl-preview-paper-badge,
body.fl-theme-dark .fl-preview-paper-badge {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

.fl-theme-dark .fl-print-preview-dialog .e-dlg-content,
body.fl-theme-dark .fl-print-preview-dialog .e-dlg-content {
    background: #0b1120 !important;
}

.fl-theme-dark .fl-print-preview-dialog .e-footer-content,
body.fl-theme-dark .fl-print-preview-dialog .e-footer-content {
    background: #0f172a !important;
    border-top-color: #1e293b !important;
}

/* â”€â”€ Mobile Responsive Overrides â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 768px) {

    /* Ensure modal container centers dialog properly on mobile */
    .e-dlg-container:has(.fl-print-preview-dialog),
    .e-dlg-container.e-dlg-center-center {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        left: 0 !important;
        top: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .fl-print-preview-dialog.e-dialog {
        width: min(520px, calc(100vw - 16px)) !important;
        max-width: calc(100vw - 16px) !important;
        min-width: 0 !important;
        height: calc(100dvh - 36px) !important;
        max-height: calc(100dvh - 36px) !important;
        display: flex !important;
        flex-direction: column !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        margin: auto !important;
        position: relative !important;
        transform: none !important;
        border-radius: 14px !important;
        box-sizing: border-box !important;
    }

    .fl-print-preview-dialog .e-dlg-header-content {
        padding: 12px 14px !important;
        flex-shrink: 0 !important;
        box-sizing: border-box !important;
    }

    .fl-print-preview-dialog .fl-preview-options-bar {
        flex-shrink: 0 !important;
    }

    .fl-print-preview-dialog .e-dlg-content {
        flex: 1 1 auto !important;
        height: 100% !important;
        max-height: none !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .fl-preview-options-bar {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 8px 12px !important;
        gap: 8px !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        flex-wrap: nowrap !important;
        overflow: hidden !important;
    }

    .fl-preview-options-bar .fl-profile-selector-group {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .fl-preview-options-bar .fl-profile-label {
        font-size: 0.8125rem !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    .fl-preview-options-bar .fl-profile-picker {
        flex: 1 1 auto !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        font-size: 0.8125rem !important;
        text-overflow: ellipsis !important;
    }

    .fl-preview-paper-badge {
        display: none !important;
    }

    .fl-print-preview-container {
        padding: 10px 8px 32px 8px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        box-sizing: border-box !important;
    }

    .fl-thermal-receipt-wrapper {
        margin: 4px auto !important;
        box-sizing: border-box !important;
        width: auto !important;
        max-width: 100% !important;
    }

    .fl-thermal-receipt-wrapper.paper-58mm {
        width: min(280px, 100%) !important;
        max-width: 100% !important;
    }

    .fl-thermal-receipt-wrapper.paper-80mm {
        width: min(350px, 100%) !important;
        max-width: 100% !important;
    }

    .fl-receipt-paper-surface {
        padding: 10px 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .fl-thermal-receipt-wrapper .fl-print-document.fl-print-preview-mode {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 auto !important;
    }

    .fl-print-preview-dialog .e-footer-content {
        padding: 8px 12px !important;
        box-sizing: border-box !important;
    }

    .fl-print-preview-dialog .e-footer-content .fl-preview-dialog-footer {
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-end !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* â”€â”€ Masked password input (prevents browser password manager popups) â”€â”€ */
.fl-masked-password-input input,
.fl-masked-password-input .e-input,
input.fl-masked-password-input {
    -webkit-text-security: disc !important;
    text-security: disc !important;
}

.fl-masked-password-input input::placeholder,
.fl-masked-password-input .e-input::placeholder,
input.fl-masked-password-input::placeholder {
    -webkit-text-security: none !important;
    text-security: none !important;
}

.fl-user-pwd-visible input,
.fl-user-pwd-visible .e-input {
    -webkit-text-security: none !important;
    text-security: none !important;
}

/* â”€â”€ Custom Input Group for User Creation / Edit Form â”€â”€ */
.fl-custom-input-group {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 38px;
    height: 38px;
    border: 1px solid var(--fl-border, #CBD5E1);
    border-radius: 8px;
    background: var(--fl-bg-surface, #FFFFFF);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
    padding: 0;
}

.fl-custom-input-group:focus-within {
    border-color: var(--fl-royal, #1565FF) !important;
    box-shadow: 0 0 0 2px rgba(21, 101, 255, 0.15) !important;
}

.fl-custom-input-group input.e-input,
.fl-custom-input-group input {
    flex: 1;
    min-width: 0;
    width: 100%;
    height: 100%;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    padding: 6px 12px !important;
    font-size: 0.875rem !important;
    color: var(--fl-text-primary, #0F172A) !important;
    font-family: inherit;
    box-sizing: border-box;
}

.fl-custom-input-group input::placeholder {
    color: var(--fl-text-muted, #94A3B8) !important;
    opacity: 1;
}

.fl-theme-dark .fl-custom-input-group,
html.fl-theme-dark .fl-custom-input-group {
    background: #0F1B32 !important;
    border-color: #1E2D4A !important;
}

.fl-theme-dark .fl-custom-input-group input,
html.fl-theme-dark .fl-custom-input-group input {
    color: #F8FAFC !important;
}

.fl-theme-dark .fl-custom-input-group:focus-within,
html.fl-theme-dark .fl-custom-input-group:focus-within {
    border-color: #60A5FA !important;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.25) !important;
}

/* â”€â”€â”€ Syncfusion Charts Global Transparency â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.e-chart,
.e-accumulationchart,
.e-chart svg,
.e-accumulationchart svg {
    background: transparent !important;
    background-color: transparent !important;
}

svg rect[id*="_Chart_Background"],
svg rect[id*="_AccumulationChart_Background"],
svg rect[id*="_ChartAreaBorder"] {
    fill: transparent !important;
}

/* ==========================================================================
   FL-FLBIL-166: Universal Removal of Increment/Decrement Controls
   Removes spin buttons from all Syncfusion SfNumericTextBox & HTML number fields
   across all modules to allow direct numeric input.
   ========================================================================== */

/* 1. Syncfusion Numeric Textbox Spin Buttons */
.e-numeric .e-spin-down,
.e-numeric .e-spin-up,
.e-numeric .e-spin-buttons,
.e-numeric .e-input-group-icon.e-spin-up,
.e-numeric .e-input-group-icon.e-spin-down,
.e-numeric.e-input-group .e-spin-down,
.e-numeric.e-input-group .e-spin-up,
.e-numeric.e-input-group .e-spin-buttons,
.e-numeric.e-input-group .e-input-group-icon,
.e-input-group.e-numeric .e-spin-down,
.e-input-group.e-numeric .e-spin-up,
.e-input-group.e-numeric .e-spin-buttons,
.e-input-group.e-numeric .e-input-group-icon,
.e-control-wrapper.e-numeric .e-spin-down,
.e-control-wrapper.e-numeric .e-spin-up,
.e-control-wrapper.e-numeric .e-spin-buttons,
.e-control-wrapper.e-numeric .e-input-group-icon,
.e-numerictextbox + .e-spin-buttons,
.e-numerictextbox ~ .e-spin-up,
.e-numerictextbox ~ .e-spin-down,
span.e-spin-down,
span.e-spin-up,
span.e-spin-buttons {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    pointer-events: none !important;
}

/* Ensure numeric text inputs have normal padding and full width */
.e-numeric.e-input-group,
.e-control-wrapper.e-numeric,
.e-numeric {
    padding-right: 0 !important;
}

.e-numeric.e-input-group input.e-numerictextbox,
.e-control-wrapper.e-numeric input.e-numerictextbox,
.e-numeric input.e-numerictextbox {
    padding-right: 8px !important;
}

/* Universal Right-Alignment for text-end Numeric Inputs */
.text-end.e-numeric input.e-numerictextbox,
.text-end.e-numeric input.e-input,
.text-end.e-input-group input.e-input,
.text-end.e-input-group input.e-numerictextbox,
.text-end.e-control-wrapper input.e-input,
.text-end.e-control-wrapper input.e-numerictextbox,
.e-numeric.text-end input,
.e-control-wrapper.text-end input,
.e-input-group.text-end input {
    text-align: right !important;
}

.fl-tender-input-box input,
.fl-discount-pct-wrapper input,
.fl-discount-amt-wrapper input,
.fl-tender-amount-input input,
.fl-discount-amt-input input,
.fl-discount-pct-input input {
    text-align: right !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    color: var(--fl-text-primary, #0F172A) !important;
}

.fl-tender-input-box input,
.fl-tender-amount-input input {
    font-weight: 700 !important;
}

.fl-tender-input-box input::placeholder,
.fl-discount-amt-wrapper input::placeholder,
.fl-discount-pct-wrapper input::placeholder,
.fl-tender-amount-input input::placeholder,
.fl-discount-amt-input input::placeholder,
.fl-discount-pct-input input::placeholder {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    color: var(--fl-text-muted, #94A3B8) !important;
}

html.fl-theme-dark .fl-tender-input-box input,
html.fl-theme-dark .fl-discount-amt-wrapper input,
html.fl-theme-dark .fl-discount-pct-wrapper input,
body.fl-theme-dark .fl-tender-input-box input,
body.fl-theme-dark .fl-discount-amt-wrapper input,
body.fl-theme-dark .fl-discount-pct-wrapper input,
.fl-theme-dark .fl-tender-input-box input,
.fl-theme-dark .fl-discount-amt-wrapper input,
.fl-theme-dark .fl-discount-pct-wrapper input {
    color: var(--fl-text-primary, #F8FAFC) !important;
}

/* 2. Native HTML input[type="number"] spin buttons */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

input[type="number"] {
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}
/* â”€â”€ Dashboard Date Range Filter Pills in Dark Theme â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body:has(.fl-theme-dark) .fl-date-preset-pills,
html.fl-theme-dark .fl-date-preset-pills,
body.fl-theme-dark .fl-date-preset-pills,
.fl-theme-dark .fl-date-preset-pills {
    background: #0B132B !important;
    border: 1px solid #1C2D4A !important;
}

body:has(.fl-theme-dark) .fl-pill,
html.fl-theme-dark .fl-pill,
body.fl-theme-dark .fl-pill,
.fl-theme-dark .fl-pill {
    color: #94A3B8 !important;
    background: transparent !important;
}

body:has(.fl-theme-dark) .fl-pill:hover,
html.fl-theme-dark .fl-pill:hover,
body.fl-theme-dark .fl-pill:hover,
.fl-theme-dark .fl-pill:hover {
    color: #F8FAFC !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

body:has(.fl-theme-dark) .fl-pill--active,
html.fl-theme-dark .fl-pill--active,
body.fl-theme-dark .fl-pill--active,
.fl-theme-dark .fl-pill--active {
    background: #1565FF !important;
    color: #FFFFFF !important;
    box-shadow: 0 1px 6px rgba(21, 101, 255, 0.45) !important;
}


/* Prevent button text truncation in category dialog */
.fl-category-dialog.e-dialog .e-footer-content .e-btn span,
.fl-category-dialog .e-footer-content .e-btn span {
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
}


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   â”€â”€ GLOBAL SALES BILLS & INVOICE MODAL DIALOGS (Screen Fit & Centering)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.fl-product-search-dialog.e-dialog {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    bottom: auto !important;
    right: auto !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    max-height: min(90vh, 760px) !important;
    max-width: min(760px, 94vw) !important;
    width: min(760px, 94vw) !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 14px !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22) !important;
    overflow: hidden !important;
    z-index: 100050 !important;
}

.fl-quick-product-dialog.e-dialog {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    margin: auto !important;
    transform: none !important;
    max-height: min(90vh, 760px) !important;
    max-width: min(520px, 94vw) !important;
    width: min(520px, 94vw) !important;
    height: -webkit-fit-content !important;
    height: -moz-fit-content !important;
    height: fit-content !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 14px !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22) !important;
    overflow: hidden !important;
    z-index: 100060 !important;
}

@media (max-width: 768px) {
    .fl-quick-product-dialog.e-dialog {
        position: relative !important;
        top: 10px !important;
        bottom: 10px !important;
        left: 0 !important;
        right: 0 !important;
        margin: auto !important;
        transform: none !important;
        width: 95vw !important;
        max-width: 95vw !important;
        max-height: calc(100vh - 20px) !important;
    }
}

.fl-customer-dialog.e-dialog {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    bottom: auto !important;
    right: auto !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    max-height: min(90vh, 760px) !important;
    max-width: min(560px, 94vw) !important;
    width: min(560px, 94vw) !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 14px !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22) !important;
    overflow: hidden !important;
    z-index: 100050 !important;
}

.fl-delete-dialog.e-dialog,
.fl-cancel-invoice-dialog.e-dialog,
.fl-payment-dialog.e-dialog,
.fl-status-dialog.e-dialog {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    bottom: auto !important;
    right: auto !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    max-height: min(90vh, 650px) !important;
    max-width: min(480px, 94vw) !important;
    width: min(480px, 94vw) !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 14px !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22) !important;
    overflow: hidden !important;
    z-index: 100050 !important;
}

/* Dark mode styling for sales bills dialogs */
html.fl-theme-dark .fl-product-search-dialog.e-dialog,
body.fl-theme-dark .fl-product-search-dialog.e-dialog,
.fl-theme-dark .fl-product-search-dialog.e-dialog,
html.fl-theme-dark .fl-quick-product-dialog.e-dialog,
body.fl-theme-dark .fl-quick-product-dialog.e-dialog,
.fl-theme-dark .fl-quick-product-dialog.e-dialog,
html.fl-theme-dark .fl-customer-dialog.e-dialog,
body.fl-theme-dark .fl-customer-dialog.e-dialog,
.fl-theme-dark .fl-customer-dialog.e-dialog,
html.fl-theme-dark .fl-delete-dialog.e-dialog,
body.fl-theme-dark .fl-delete-dialog.e-dialog,
.fl-theme-dark .fl-delete-dialog.e-dialog,
html.fl-theme-dark .fl-cancel-invoice-dialog.e-dialog,
body.fl-theme-dark .fl-cancel-invoice-dialog.e-dialog,
.fl-theme-dark .fl-cancel-invoice-dialog.e-dialog,
html.fl-theme-dark .fl-payment-dialog.e-dialog,
body.fl-theme-dark .fl-payment-dialog.e-dialog,
.fl-theme-dark .fl-payment-dialog.e-dialog,
html.fl-theme-dark .fl-status-dialog.e-dialog,
body.fl-theme-dark .fl-status-dialog.e-dialog,
.fl-theme-dark .fl-status-dialog.e-dialog {
    background-color: var(--fl-bg-surface, #0F1B32) !important;
    border-color: var(--fl-border, #1C2D4A) !important;
    color: var(--fl-text-primary, #F8FAFC) !important;
}

html.fl-theme-dark .fl-product-search-dialog .e-dlg-header-content,
body.fl-theme-dark .fl-product-search-dialog .e-dlg-header-content,
.fl-theme-dark .fl-product-search-dialog .e-dlg-header-content,
html.fl-theme-dark .fl-quick-product-dialog .e-dlg-header-content,
body.fl-theme-dark .fl-quick-product-dialog .e-dlg-header-content,
.fl-theme-dark .fl-quick-product-dialog .e-dlg-header-content,
html.fl-theme-dark .fl-customer-dialog .e-dlg-header-content,
body.fl-theme-dark .fl-customer-dialog .e-dlg-header-content,
.fl-theme-dark .fl-customer-dialog .e-dlg-header-content {
    background-color: var(--fl-bg-surface, #0F1B32) !important;
    border-bottom-color: var(--fl-border, #1C2D4A) !important;
}

html.fl-theme-dark .fl-product-search-dialog .e-dlg-content,
body.fl-theme-dark .fl-product-search-dialog .e-dlg-content,
.fl-theme-dark .fl-product-search-dialog .e-dlg-content,
html.fl-theme-dark .fl-quick-product-dialog .e-dlg-content,
body.fl-theme-dark .fl-quick-product-dialog .e-dlg-content,
.fl-theme-dark .fl-quick-product-dialog .e-dlg-content,
html.fl-theme-dark .fl-customer-dialog .e-dlg-content,
body.fl-theme-dark .fl-customer-dialog .e-dlg-content,
.fl-theme-dark .fl-customer-dialog .e-dlg-content {
    background-color: var(--fl-bg-surface, #0F1B32) !important;
}

html.fl-theme-dark .fl-product-search-dialog .e-footer-content,
body.fl-theme-dark .fl-product-search-dialog .e-footer-content,
.fl-theme-dark .fl-product-search-dialog .e-footer-content,
html.fl-theme-dark .fl-quick-product-dialog .e-footer-content,
body.fl-theme-dark .fl-quick-product-dialog .e-footer-content,
.fl-theme-dark .fl-quick-product-dialog .e-footer-content,
html.fl-theme-dark .fl-customer-dialog .e-footer-content,
body.fl-theme-dark .fl-customer-dialog .e-footer-content,
.fl-theme-dark .fl-customer-dialog .e-footer-content {
    background-color: var(--fl-bg-surface-2, #152238) !important;
    border-top-color: var(--fl-border, #1C2D4A) !important;
}

html.fl-theme-dark .fl-product-search-dialog .fl-product-search-table th,
body.fl-theme-dark .fl-product-search-dialog .fl-product-search-table th,
.fl-theme-dark .fl-product-search-dialog .fl-product-search-table th {
    background-color: var(--fl-bg-surface-2, #152238) !important;
    color: var(--fl-text-secondary, #94A3B8) !important;
    border-color: var(--fl-border, #1C2D4A) !important;
}

html.fl-theme-dark .fl-product-search-dialog .fl-product-search-table td,
body.fl-theme-dark .fl-product-search-dialog .fl-product-search-table td,
.fl-theme-dark .fl-product-search-dialog .fl-product-search-table td {
    background-color: var(--fl-bg-surface, #0F1B32) !important;
    color: var(--fl-text-primary, #F8FAFC) !important;
    border-color: var(--fl-border, #1C2D4A) !important;
}

html.fl-theme-dark .fl-product-search-dialog .fl-product-search-table tr:hover td,
body.fl-theme-dark .fl-product-search-dialog .fl-product-search-table tr:hover td,
.fl-theme-dark .fl-product-search-dialog .fl-product-search-table tr:hover td {
    background-color: var(--fl-bg-surface-2, #152238) !important;
}

html.fl-theme-dark .fl-search-item-name {
    color: #F8FAFC !important;
}

/* â”€â”€ Universal Financial Summary Card Row Alignment (Prevents Vertical Column Centering on Mobile) â”€â”€ */
.fl-calc-summary-card .fl-info-row,
.fl-calc-summary-card .fl-card-body .fl-info-row {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding: 0.65rem 0 !important;
}

.fl-calc-summary-card .fl-info-label {
    text-align: left !important;
    flex: 1 1 auto !important;
}

.fl-calc-summary-card .fl-info-val {
    text-align: right !important;
    margin-left: auto !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

/* â”€â”€ Disable / Hide Theme Toggle Tooltip on Mobile Screens & Touch Devices â”€â”€ */
@media (max-width: 992px), (hover: none) and (pointer: coarse) {
    .fl-theme-tooltip,
    .fl-theme-tooltip.e-tooltip-wrap,
    .e-tooltip-wrap.fl-theme-tooltip,
    div[id*="fl-theme-tooltip"].e-tooltip-wrap,
    .fl-shell-topbar .fl-theme-tooltip {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transform: scale(0) !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   GLOBAL ADAPTIVE / MOBILE GRID DIALOG FIXES (FL-FLBILL-250, 251)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* FL-FLBILL-250: Column Chooser OK Button in Header (Adaptive Mode) */
.e-ccdlg .e-dlg-header .e-res-custom-element,
.e-responsive-dialog.e-ccdlg .e-dlg-header .e-res-custom-element,
.e-bigger.e-responsive-dialog.e-ccdlg .e-dlg-header .e-res-custom-element,
.e-ccdlg .e-dlg-header,
.e-responsive-dialog.e-ccdlg .e-dlg-header {
    display: flex !important;
    visibility: visible !important;
    align-items: center !important;
}

.e-ccdlg .e-dlg-header .e-res-apply-btn,
.e-responsive-dialog.e-ccdlg .e-dlg-header .e-res-apply-btn,
.e-bigger.e-responsive-dialog.e-ccdlg .e-dlg-header .e-res-apply-btn,
.e-ccdlg .e-dlg-header button.e-res-apply-btn,
.e-responsive-dialog.e-ccdlg .e-dlg-header button.e-res-apply-btn,
.e-bigger.e-responsive-dialog.e-ccdlg .e-dlg-header button.e-res-apply-btn,
.e-ccdlg .e-res-apply-btn,
.e-responsive-dialog.e-ccdlg .e-res-apply-btn {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--fl-primary, #1565FF) !important;
    color: #FFFFFF !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    padding: 6px 16px !important;
    height: 32px !important;
    min-height: 32px !important;
    border-radius: 6px !important;
    border: none !important;
    cursor: pointer !important;
    line-height: 1 !important;
    margin-left: auto !important;
    margin-right: 8px !important;
}

/* Also ensure footer OK and Cancel buttons in modal/desktop column chooser */
.e-ccdlg .e-footer-content,
.e-dialog.e-ccdlg .e-footer-content {
    display: flex !important;
    visibility: visible !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    padding: 10px 14px !important;
    background: var(--fl-bg-surface-2, #F8FAFC) !important;
    border-top: 1px solid var(--fl-border, #E2E8F0) !important;
}

.e-ccdlg .e-footer-content .e-cc_okbtn,
.e-ccdlg .e-footer-content button.e-cc_okbtn {
    display: inline-flex !important;
    visibility: visible !important;
    background: var(--fl-primary, #1565FF) !important;
    color: #FFFFFF !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    padding: 6px 16px !important;
}

/* Dark Mode Overrides for Column Chooser */
html.fl-theme-dark .e-ccdlg .e-footer-content,
body.fl-theme-dark .e-ccdlg .e-footer-content,
.fl-theme-dark .e-ccdlg .e-footer-content {
    background: #142037 !important;
    border-top-color: #1C2D4A !important;
}



/* Dark Mode Active and Hover in Adaptive Dialogs (Fix White Block) */
html.fl-theme-dark .e-responsive-dialog .e-list-item.e-active,
html.fl-theme-dark .e-dialog.e-responsive-dialog .e-list-item.e-active,
html.fl-theme-dark .e-responsivecoldiv.e-active,
html.fl-theme-dark .e-responsivefilterdiv.e-active,
html.fl-theme-dark .Columndiv.e-active,
body.fl-theme-dark .e-responsive-dialog .e-list-item.e-active,
body.fl-theme-dark .e-dialog.e-responsive-dialog .e-list-item.e-active,
body.fl-theme-dark .e-responsivecoldiv.e-active,
body.fl-theme-dark .e-responsivefilterdiv.e-active,
body.fl-theme-dark .Columndiv.e-active,
.fl-theme-dark .e-responsive-dialog .e-list-item.e-active,
.fl-theme-dark .e-dialog.e-responsive-dialog .e-list-item.e-active,
.fl-theme-dark .e-responsivecoldiv.e-active,
.fl-theme-dark .e-responsivefilterdiv.e-active,
.fl-theme-dark .Columndiv.e-active {
    background: rgba(37, 99, 235, 0.25) !important;
    border: 1px solid #3B82F6 !important;
    border-radius: 10px !important;
    color: #93C5FD !important;
}

html.fl-theme-dark .e-responsive-dialog .e-list-item:hover,
html.fl-theme-dark .e-dialog.e-responsive-dialog .e-list-item:hover,
html.fl-theme-dark .e-responsivecoldiv:hover,
html.fl-theme-dark .Columndiv:hover,
html.fl-theme-dark .e-cclist:hover,
body.fl-theme-dark .e-responsive-dialog .e-list-item:hover,
body.fl-theme-dark .e-dialog.e-responsive-dialog .e-list-item:hover,
body.fl-theme-dark .e-responsivecoldiv:hover,
body.fl-theme-dark .Columndiv:hover,
body.fl-theme-dark .e-cclist:hover,
.fl-theme-dark .e-responsive-dialog .e-list-item:hover,
.fl-theme-dark .e-dialog.e-responsive-dialog .e-list-item:hover,
.fl-theme-dark .e-responsivecoldiv:hover,
.fl-theme-dark .Columndiv:hover,
.fl-theme-dark .e-cclist:hover {
    background-color: #1E293B !important;
    color: #F8FAFC !important;
}

html.fl-theme-dark .e-responsive-dialog .e-list-text,
html.fl-theme-dark .e-dialog.e-responsive-dialog .e-list-text,
html.fl-theme-dark .e-res-header-text,
html.fl-theme-dark .e-responsivecoldiv > span,
html.fl-theme-dark .Columndiv > span,
body.fl-theme-dark .e-responsive-dialog .e-list-text,
body.fl-theme-dark .e-dialog.e-responsive-dialog .e-list-text,
body.fl-theme-dark .e-res-header-text,
body.fl-theme-dark .e-responsivecoldiv > span,
body.fl-theme-dark .Columndiv > span,
.fl-theme-dark .e-responsive-dialog .e-list-text,
.fl-theme-dark .e-dialog.e-responsive-dialog .e-list-text,
.fl-theme-dark .e-res-header-text,
.fl-theme-dark .e-responsivecoldiv > span,
.fl-theme-dark .Columndiv > span {
    color: #F1F5F9 !important;
}

/* Page Size Dropdown Upward Popup Overflow Fix */
.e-ddl.e-popup,
.e-pager .e-popup {
    overflow: visible !important;
}

.e-ddl.e-popup .e-content,
.e-pager .e-popup .e-content {
    overflow-y: auto !important;
    max-height: 180px !important;
}

html.fl-theme-dark .e-ddl.e-popup,
html.fl-theme-dark .e-pager .e-popup,
body.fl-theme-dark .e-ddl.e-popup,
body.fl-theme-dark .e-pager .e-popup,
.fl-theme-dark .e-ddl.e-popup,
.fl-theme-dark .e-pager .e-popup {
    background-color: #0A1329 !important;
    border: 1px solid #1C2D4A !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
}

html.fl-theme-dark .e-ddl.e-popup .e-list-item,
body.fl-theme-dark .e-ddl.e-popup .e-list-item,
.fl-theme-dark .e-ddl.e-popup .e-list-item {
    color: #E2E8F0 !important;
    background-color: transparent !important;
}

html.fl-theme-dark .e-ddl.e-popup .e-list-item.e-active,
html.fl-theme-dark .e-ddl.e-popup .e-list-item:hover,
body.fl-theme-dark .e-ddl.e-popup .e-list-item.e-active,
body.fl-theme-dark .e-ddl.e-popup .e-list-item:hover,
.fl-theme-dark .e-ddl.e-popup .e-list-item.e-active,
.fl-theme-dark .e-ddl.e-popup .e-list-item:hover {
    background-color: #1E3A8A !important;
    color: #60A5FA !important;
}

/* â”€â”€ FL-FLBILL-250: Display 'OK' Text inside Apply Button on Mobile Column Chooser & Filter Dialogs â”€â”€ */
.e-res-apply-btn,
.e-responsive-dialog .e-res-apply-btn,
.e-bigger.e-responsive-dialog .e-res-apply-btn,
.e-dlg-header .e-res-apply-btn,
.e-ccdlg .e-res-apply-btn,
.e-resfilter .e-res-apply-btn,
.e-resfilterdiv .e-res-apply-btn {
    min-width: 56px !important;
    width: auto !important;
    padding: 6px 16px !important;
    height: 34px !important;
    min-height: 34px !important;
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--fl-primary, #1565FF) !important;
    color: #FFFFFF !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    border: none !important;
    cursor: pointer !important;
    line-height: 1 !important;
}

.e-res-apply-btn::before,
.e-responsive-dialog .e-res-apply-btn::before,
.e-bigger.e-responsive-dialog .e-res-apply-btn::before,
.e-dlg-header .e-res-apply-btn::before,
.e-ccdlg .e-res-apply-btn::before,
.e-resfilter .e-res-apply-btn::before,
.e-resfilterdiv .e-res-apply-btn::before {
    content: "OK" !important;
    color: #FFFFFF !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    font-family: var(--fl-font-ui, 'Inter', sans-serif) !important;
    display: inline-block !important;
    line-height: 1 !important;
    letter-spacing: 0.5px !important;
}

/* Custom Column Chooser Footer Bar */
.fl-cc-footer-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    padding: 10px 16px !important;
    border-top: 1px solid var(--fl-border, #E2E8F0) !important;
    background: var(--fl-bg-surface-2, #F8FAFC) !important;
    border-radius: 0 0 14px 14px !important;
    gap: 8px !important;
}

html.fl-theme-dark .fl-cc-footer-bar,
body.fl-theme-dark .fl-cc-footer-bar,
.fl-theme-dark .fl-cc-footer-bar {
    background: #142037 !important;
    border-top-color: #1C2D4A !important;
}

.fl-cc-footer-bar .fl-cc-apply-btn {
    min-width: 70px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
}

/* â”€â”€ Mobile Filter Subdialog Positioning & Full Coverage (Prevent bleeding over background list) â”€â”€ */
@media (max-width: 768px) {
    .e-responsive-dialog.e-resfilter.e-popup-open,
    .e-responsive-dialog.e-resfilterdiv.e-popup-open,
    .e-responsive-dialog.e-row-responsive-filter.e-popup-open,
    [id*="custommenufilter"].e-popup-open {
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        height: 75vh !important;
        max-height: 85vh !important;
        z-index: 100060 !important;
        background: var(--fl-bg-surface, #FFFFFF) !important;
        box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35) !important;
        border-radius: 16px 16px 0 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    html.fl-theme-dark .e-responsive-dialog.e-resfilter.e-popup-open,
    html.fl-theme-dark .e-responsive-dialog.e-resfilterdiv.e-popup-open,
    html.fl-theme-dark .e-responsive-dialog.e-row-responsive-filter.e-popup-open,
    html.fl-theme-dark [id*="custommenufilter"].e-popup-open,
    body.fl-theme-dark .e-responsive-dialog.e-resfilter.e-popup-open,
    body.fl-theme-dark [id*="custommenufilter"].e-popup-open,
    .fl-theme-dark .e-responsive-dialog.e-resfilter.e-popup-open,
    .fl-theme-dark [id*="custommenufilter"].e-popup-open {
        background: #0B132B !important;
        color: #F8FAFC !important;
    }

    .e-responsive-dialog.e-resfilter .e-dlg-header-content,
    .e-responsive-dialog.e-resfilterdiv .e-dlg-header-content,
    [id*="custommenufilter"] .e-dlg-header-content {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 12px 16px !important;
        min-height: 52px !important;
        border-bottom: 1px solid var(--fl-border, #E2E8F0) !important;
        flex-shrink: 0 !important;
    }

    html.fl-theme-dark .e-responsive-dialog.e-resfilter .e-dlg-header-content,
    html.fl-theme-dark .e-responsive-dialog.e-resfilterdiv .e-dlg-header-content,
    html.fl-theme-dark [id*="custommenufilter"] .e-dlg-header-content,
    body.fl-theme-dark [id*="custommenufilter"] .e-dlg-header-content,
    .fl-theme-dark [id*="custommenufilter"] .e-dlg-header-content {
        background: #142037 !important;
        border-bottom-color: #1C2D4A !important;
    }

    .e-responsive-dialog.e-resfilter .e-dlg-content,
    .e-responsive-dialog.e-resfilterdiv .e-dlg-content,
    [id*="custommenufilter"] .e-dlg-content {
        padding: 16px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        flex: 1 1 auto !important;
        overflow-y: auto !important;
    }
}


/* â”€â”€ Dark Mode Pager Dropdown: Make wrapper transparent & input secondary surface color â”€â”€ */
.fl-theme-dark .e-pager .e-pagerdropdown,
body.fl-theme-dark .e-pager .e-pagerdropdown,
html.fl-theme-dark .e-pager .e-pagerdropdown,
.fl-shell.fl-theme-dark .e-pager .e-pagerdropdown,
.fl-theme-dark .e-pager .e-pagesizes,
body.fl-theme-dark .e-pager .e-pagesizes,
html.fl-theme-dark .e-pager .e-pagesizes,
.fl-shell.fl-theme-dark .e-pager .e-pagesizes {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.fl-theme-dark .e-pager .e-pagerdropdown .e-input-group,
.fl-theme-dark .e-pager .e-pagesizes .e-pagerdropdown .e-input-group,
.fl-theme-dark .e-pager .e-pagesizes .e-input-group,
body.fl-theme-dark .e-pager .e-pagerdropdown .e-input-group,
body.fl-theme-dark .e-pager .e-pagesizes .e-pagerdropdown .e-input-group,
body.fl-theme-dark .e-pager .e-pagesizes .e-input-group,
html.fl-theme-dark .e-pager .e-pagerdropdown .e-input-group,
html.fl-theme-dark .e-pager .e-pagesizes .e-pagerdropdown .e-input-group,
html.fl-theme-dark .e-pager .e-pagesizes .e-input-group,
.fl-shell.fl-theme-dark .e-pager .e-pagerdropdown .e-input-group,
.fl-shell.fl-theme-dark .e-pager .e-pagesizes .e-pagerdropdown .e-input-group,
.fl-shell.fl-theme-dark .e-pager .e-pagesizes .e-input-group {
    background: var(--fl-bg-surface-2, #142037) !important;
    background-color: var(--fl-bg-surface-2, #142037) !important;
    border: 1px solid var(--fl-border, #1C2D4A) !important;
    border-color: var(--fl-border, #1C2D4A) !important;
    color: var(--fl-text-primary, #E2E8F0) !important;
    box-shadow: none !important;
}

.fl-theme-dark .e-pager .e-pagerdropdown .e-input,
body.fl-theme-dark .e-pager .e-pagerdropdown .e-input,
html.fl-theme-dark .e-pager .e-pagerdropdown .e-input,
.fl-shell.fl-theme-dark .e-pager .e-pagerdropdown .e-input {
    color: var(--fl-text-primary, #E2E8F0) !important;
    background: transparent !important;
    background-color: transparent !important;
}

.fl-theme-dark .e-pager .e-pagerdropdown .e-ddl-icon,
body.fl-theme-dark .e-pager .e-pagerdropdown .e-ddl-icon,
html.fl-theme-dark .e-pager .e-pagerdropdown .e-ddl-icon,
.fl-shell.fl-theme-dark .e-pager .e-pagerdropdown .e-ddl-icon {
    color: var(--fl-text-secondary, #94A3B8) !important;
}


/* â”€â”€ Additional Dark Mode Fixes: Dialog Above Overlay & Dropdown Active â”€â”€ */
.e-dialog.fl-dialog-dark,
.fl-dialog-dark.e-dialog,
.fl-dialog-dark {
    z-index: 100050 !important;
    opacity: 1 !important;
}

body.fl-theme-dark .e-dropdownbase .e-list-item.e-active,
body.fl-theme-dark .e-popup .e-list-item.e-active,
html.fl-theme-dark .e-dropdownbase .e-list-item.e-active,
html.fl-theme-dark .e-popup .e-list-item.e-active,
.fl-theme-dark .e-dropdownbase .e-list-item.e-active,
.fl-theme-dark .e-popup .e-list-item.e-active {
    background-color: #1E3A8A !important;
    color: #60A5FA !important;
}

.fl-theme-dark .fl-hl-bg--blue i,
body.fl-theme-dark .fl-hl-bg--blue i,
html.fl-theme-dark .fl-hl-bg--blue i {
    color: #60A5FA !important;
}


/* â”€â”€ Highlight Icon Enhancements & Fallbacks â”€â”€ */
.fl-hl-icon i {
    font-size: 1.15rem !important;
    line-height: 1 !important;
    display: inline-block !important;
}

.fl-hl-bg--purple {
    background: rgba(168, 85, 247, 0.15);
    color: #9333EA;
}

.fl-hl-bg--red {
    background: rgba(239, 68, 68, 0.15);
    color: #DC2626;
}

/* Fallback mappings for missing syncfusion icon names */
.e-icons.e-file-document:before {
    font-family: "bootstrap-icons" !important;
    content: "\F3EE" !important; /* bi-file-earmark-text */
    font-style: normal;
}

.e-icons.e-eye:before {
    font-family: "bootstrap-icons" !important;
    content: "\F341" !important; /* bi-eye */
    font-style: normal;
}

.fl-theme-dark .fl-hl-bg--teal i,
body.fl-theme-dark .fl-hl-bg--teal i,
html.fl-theme-dark .fl-hl-bg--teal i {
    color: #38BDF8 !important;
}

.fl-theme-dark .fl-hl-bg--green i,
body.fl-theme-dark .fl-hl-bg--green i,
html.fl-theme-dark .fl-hl-bg--green i {
    color: #4ADE80 !important;
}

.fl-theme-dark .fl-hl-bg--amber i,
body.fl-theme-dark .fl-hl-bg--amber i,
html.fl-theme-dark .fl-hl-bg--amber i {
    color: #FBBF24 !important;
}

.fl-theme-dark .fl-hl-bg--purple i,
body.fl-theme-dark .fl-hl-bg--purple i,
html.fl-theme-dark .fl-hl-bg--purple i {
    color: #C084FC !important;
}

.fl-theme-dark .fl-hl-bg--red i,
body.fl-theme-dark .fl-hl-bg--red i,
html.fl-theme-dark .fl-hl-bg--red i {
    color: #F87171 !important;
}


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   DARK MODE: Zero-Flash Grid Edit, Selection, and Row Actions
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* 1. Prevent White Flash on Grid Row Selection & Cell Active States */
.fl-theme-dark .e-grid td.e-active,
body.fl-theme-dark .e-grid td.e-active,
html.fl-theme-dark .e-grid td.e-active,
.fl-theme-dark .e-grid td.e-cellselectionbackground,
body.fl-theme-dark .e-grid td.e-cellselectionbackground,
html.fl-theme-dark .e-grid td.e-cellselectionbackground,
.fl-theme-dark .e-grid .e-row.e-active,
body.fl-theme-dark .e-grid .e-row.e-active,
html.fl-theme-dark .e-grid .e-row.e-active,
.fl-theme-dark .e-grid .e-row.e-selectionbackground,
body.fl-theme-dark .e-grid .e-row.e-selectionbackground,
html.fl-theme-dark .e-grid .e-row.e-selectionbackground,
.fl-theme-dark .e-grid .e-rowcell.e-selectionbackground,
body.fl-theme-dark .e-grid .e-rowcell.e-selectionbackground,
html.fl-theme-dark .e-grid .e-rowcell.e-selectionbackground,
.fl-theme-dark .e-grid .e-row.e-focused,
body.fl-theme-dark .e-grid .e-row.e-focused,
html.fl-theme-dark .e-grid .e-row.e-focused,
.fl-theme-dark .e-grid .e-rowcell.e-focused,
body.fl-theme-dark .e-grid .e-rowcell.e-focused,
html.fl-theme-dark .e-grid .e-rowcell.e-focused,
.fl-theme-dark .e-grid tr.e-row:hover td.e-rowcell,
body.fl-theme-dark .e-grid tr.e-row:hover td.e-rowcell,
html.fl-theme-dark .e-grid tr.e-row:hover td.e-rowcell {
    background-color: transparent !important;
    background: transparent !important;
}

/* 2. Prevent White Flash on Edit / Command Action Buttons (Active / Focus / Hover) */
.fl-theme-dark .e-grid .e-unboundcell .e-btn,
body.fl-theme-dark .e-grid .e-unboundcell .e-btn,
html.fl-theme-dark .e-grid .e-unboundcell .e-btn,
.fl-theme-dark .e-grid .e-unboundcelldiv .e-btn,
body.fl-theme-dark .e-grid .e-unboundcelldiv .e-btn,
html.fl-theme-dark .e-grid .e-unboundcelldiv .e-btn {
    background-color: #0F1B32 !important;
    background: #0F1B32 !important;
    border-color: #1C2D4A !important;
    box-shadow: none !important;
    transition: none !important;
}

.fl-theme-dark .e-grid .e-unboundcell .e-btn:focus,
.fl-theme-dark .e-grid .e-unboundcell .e-btn:active,
.fl-theme-dark .e-grid .e-unboundcell .e-btn.e-active,
body.fl-theme-dark .e-grid .e-unboundcell .e-btn:focus,
body.fl-theme-dark .e-grid .e-unboundcell .e-btn:active,
body.fl-theme-dark .e-grid .e-unboundcell .e-btn.e-active,
html.fl-theme-dark .e-grid .e-unboundcell .e-btn:focus,
html.fl-theme-dark .e-grid .e-unboundcell .e-btn:active,
html.fl-theme-dark .e-grid .e-unboundcell .e-btn.e-active,
.fl-theme-dark .e-grid .e-unboundcelldiv .e-btn:focus,
.fl-theme-dark .e-grid .e-unboundcelldiv .e-btn:active,
.fl-theme-dark .e-grid .e-unboundcelldiv .e-btn.e-active,
body.fl-theme-dark .e-grid .e-unboundcelldiv .e-btn:focus,
body.fl-theme-dark .e-grid .e-unboundcelldiv .e-btn:active,
body.fl-theme-dark .e-grid .e-unboundcelldiv .e-btn.e-active,
html.fl-theme-dark .e-grid .e-unboundcelldiv .e-btn:focus,
html.fl-theme-dark .e-grid .e-unboundcelldiv .e-btn:active,
html.fl-theme-dark .e-grid .e-unboundcelldiv .e-btn.e-active {
    background-color: #1E293B !important;
    background: #1E293B !important;
    border-color: #3B82F6 !important;
    box-shadow: none !important;
}

.fl-theme-dark .e-grid .e-unboundcell .e-editbutton:hover,
body.fl-theme-dark .e-grid .e-unboundcell .e-editbutton:hover,
html.fl-theme-dark .e-grid .e-unboundcell .e-editbutton:hover,
.fl-theme-dark .e-grid .e-unboundcelldiv .e-editbutton:hover,
body.fl-theme-dark .e-grid .e-unboundcelldiv .e-editbutton:hover,
html.fl-theme-dark .e-grid .e-unboundcelldiv .e-editbutton:hover {
    background: rgba(59, 130, 246, 0.15) !important;
    border-color: #3B82F6 !important;
}

/* 3. Kill White Ripple Flash on Grid Action Buttons */
.fl-theme-dark .e-grid .e-unboundcell .e-ripple-element,
body.fl-theme-dark .e-grid .e-unboundcell .e-ripple-element,
html.fl-theme-dark .e-grid .e-unboundcell .e-ripple-element,
.fl-theme-dark .e-grid .e-unboundcelldiv .e-ripple-element,
body.fl-theme-dark .e-grid .e-unboundcelldiv .e-ripple-element,
html.fl-theme-dark .e-grid .e-unboundcelldiv .e-ripple-element {
    display: none !important;
    background: transparent !important;
    background-color: transparent !important;
}

/* 4. Instant Dark Background for Row Editing (Eliminates Initial White Render) */
.fl-theme-dark .e-grid .e-row.e-editedrow,
body.fl-theme-dark .e-grid .e-row.e-editedrow,
html.fl-theme-dark .e-grid .e-row.e-editedrow,
.fl-theme-dark .e-grid table tbody tr.e-editedrow,
body.fl-theme-dark .e-grid table tbody tr.e-editedrow,
html.fl-theme-dark .e-grid table tbody tr.e-editedrow,
.fl-theme-dark .e-grid .e-normaledit,
body.fl-theme-dark .e-grid .e-normaledit,
html.fl-theme-dark .e-grid .e-normaledit {
    background-color: #0F1B32 !important;
    background: #0F1B32 !important;
    border-color: #3B82F6 !important;
    transition: none !important;
}

.fl-theme-dark .e-grid .e-editedrow .e-rowcell,
body.fl-theme-dark .e-grid .e-editedrow .e-rowcell,
html.fl-theme-dark .e-grid .e-editedrow .e-rowcell,
.fl-theme-dark .e-grid .e-rowcell.e-editcell,
body.fl-theme-dark .e-grid .e-rowcell.e-editcell,
html.fl-theme-dark .e-grid .e-rowcell.e-editcell,
.fl-theme-dark .e-grid .e-normaledit .e-rowcell,
body.fl-theme-dark .e-grid .e-normaledit .e-rowcell,
html.fl-theme-dark .e-grid .e-normaledit .e-rowcell {
    background-color: #0F1B32 !important;
    background: #0F1B32 !important;
    border-bottom-color: #1C2D4A !important;
    color: #F8FAFC !important;
    transition: none !important;
}

/* 5. Instant Dark Background for All Input Fields Inside Edit Cells */
.fl-theme-dark .e-grid .e-rowcell.e-editcell .form-control,
.fl-theme-dark .e-grid .e-rowcell.e-editcell .e-input-group,
.fl-theme-dark .e-grid .e-rowcell.e-editcell .e-control-wrapper,
.fl-theme-dark .e-grid .e-normaledit .form-control,
.fl-theme-dark .e-grid .e-normaledit .e-input-group,
.fl-theme-dark .e-grid .e-normaledit .e-control-wrapper,
body.fl-theme-dark .e-grid .e-rowcell.e-editcell .form-control,
body.fl-theme-dark .e-grid .e-rowcell.e-editcell .e-input-group,
body.fl-theme-dark .e-grid .e-rowcell.e-editcell .e-control-wrapper,
body.fl-theme-dark .e-grid .e-normaledit .form-control,
body.fl-theme-dark .e-grid .e-normaledit .e-input-group,
body.fl-theme-dark .e-grid .e-normaledit .e-control-wrapper,
html.fl-theme-dark .e-grid .e-rowcell.e-editcell .form-control,
html.fl-theme-dark .e-grid .e-rowcell.e-editcell .e-input-group,
html.fl-theme-dark .e-grid .e-rowcell.e-editcell .e-control-wrapper,
html.fl-theme-dark .e-grid .e-normaledit .form-control,
html.fl-theme-dark .e-grid .e-normaledit .e-input-group,
html.fl-theme-dark .e-grid .e-normaledit .e-control-wrapper {
    background-color: #142037 !important;
    background: #142037 !important;
    border-color: #1C2D4A !important;
    color: #F8FAFC !important;
    transition: none !important;
}

.fl-theme-dark .e-grid .e-rowcell.e-editcell input,
body.fl-theme-dark .e-grid .e-rowcell.e-editcell input,
html.fl-theme-dark .e-grid .e-rowcell.e-editcell input,
.fl-theme-dark .e-grid .e-normaledit input,
body.fl-theme-dark .e-grid .e-normaledit input,
html.fl-theme-dark .e-grid .e-normaledit input {
    background-color: transparent !important;
    background: transparent !important;
    color: #F8FAFC !important;
    transition: none !important;
}

/* 6. Vertical / Mobile Grid Card Specifics */
.fl-theme-dark .e-grid.e-vertical .e-row,
body.fl-theme-dark .e-grid.e-vertical .e-row,
html.fl-theme-dark .e-grid.e-vertical .e-row {
    background-color: #0F1B32 !important;
    background: #0F1B32 !important;
    border-color: #1C2D4A !important;
}

.fl-theme-dark .e-grid.e-vertical .e-rowcell,
body.fl-theme-dark .e-grid.e-vertical .e-rowcell,
html.fl-theme-dark .e-grid.e-vertical .e-rowcell {
    background-color: transparent !important;
    background: transparent !important;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   FL-FLBILL FIX BLOCK â€” Dark Mode Patches
   1. Edit button white flash (command column)
   2. Branch badge white bg (Bootstrap .badge override)
   3. Purchase Return fl-link-code cell bg in dark mode
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€â”€ 1a. Command Column Cells: No White BG in Dark Mode â”€â”€â”€ */
.fl-theme-dark .e-grid .e-unboundcell,
body.fl-theme-dark .e-grid .e-unboundcell,
html.fl-theme-dark .e-grid .e-unboundcell,
.fl-theme-dark .e-grid .e-unboundcelldiv,
body.fl-theme-dark .e-grid .e-unboundcelldiv,
html.fl-theme-dark .e-grid .e-unboundcelldiv {
    background-color: transparent !important;
    background: transparent !important;
}

/* â”€â”€â”€ 1b. Edit Button (e-flat) in Grid Command Column â€” All States â”€â”€â”€ */
/* Base: transparent bg so row bg shows through */
.fl-theme-dark .e-grid .e-unboundcell .e-btn.e-flat,
body.fl-theme-dark .e-grid .e-unboundcell .e-btn.e-flat,
html.fl-theme-dark .e-grid .e-unboundcell .e-btn.e-flat,
.fl-theme-dark .e-grid .e-unboundcelldiv .e-btn.e-flat,
body.fl-theme-dark .e-grid .e-unboundcelldiv .e-btn.e-flat,
html.fl-theme-dark .e-grid .e-unboundcelldiv .e-btn.e-flat {
    background-color: transparent !important;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    transition: background-color 0ms, background 0ms, box-shadow 0ms !important;
    color: #94A3B8 !important;
}

/* Hover */
.fl-theme-dark .e-grid .e-unboundcell .e-btn.e-flat:hover,
body.fl-theme-dark .e-grid .e-unboundcell .e-btn.e-flat:hover,
html.fl-theme-dark .e-grid .e-unboundcell .e-btn.e-flat:hover,
.fl-theme-dark .e-grid .e-unboundcelldiv .e-btn.e-flat:hover,
body.fl-theme-dark .e-grid .e-unboundcelldiv .e-btn.e-flat:hover,
html.fl-theme-dark .e-grid .e-unboundcelldiv .e-btn.e-flat:hover {
    background-color: rgba(96, 165, 250, 0.12) !important;
    background: rgba(96, 165, 250, 0.12) !important;
    border-color: rgba(96, 165, 250, 0.3) !important;
    color: #60A5FA !important;
    box-shadow: none !important;
}

/* Active / Focus / Pressed â€” CRITICAL: kills the white flash */
.fl-theme-dark .e-grid .e-unboundcell .e-btn.e-flat:active,
.fl-theme-dark .e-grid .e-unboundcell .e-btn.e-flat:focus,
.fl-theme-dark .e-grid .e-unboundcell .e-btn.e-flat.e-active,
body.fl-theme-dark .e-grid .e-unboundcell .e-btn.e-flat:active,
body.fl-theme-dark .e-grid .e-unboundcell .e-btn.e-flat:focus,
body.fl-theme-dark .e-grid .e-unboundcell .e-btn.e-flat.e-active,
html.fl-theme-dark .e-grid .e-unboundcell .e-btn.e-flat:active,
html.fl-theme-dark .e-grid .e-unboundcell .e-btn.e-flat:focus,
html.fl-theme-dark .e-grid .e-unboundcell .e-btn.e-flat.e-active,
.fl-theme-dark .e-grid .e-unboundcelldiv .e-btn.e-flat:active,
.fl-theme-dark .e-grid .e-unboundcelldiv .e-btn.e-flat:focus,
.fl-theme-dark .e-grid .e-unboundcelldiv .e-btn.e-flat.e-active,
body.fl-theme-dark .e-grid .e-unboundcelldiv .e-btn.e-flat:active,
body.fl-theme-dark .e-grid .e-unboundcelldiv .e-btn.e-flat:focus,
body.fl-theme-dark .e-grid .e-unboundcelldiv .e-btn.e-flat.e-active,
html.fl-theme-dark .e-grid .e-unboundcelldiv .e-btn.e-flat:active,
html.fl-theme-dark .e-grid .e-unboundcelldiv .e-btn.e-flat:focus,
html.fl-theme-dark .e-grid .e-unboundcelldiv .e-btn.e-flat.e-active {
    background-color: rgba(96, 165, 250, 0.2) !important;
    background: rgba(96, 165, 250, 0.2) !important;
    border-color: rgba(96, 165, 250, 0.4) !important;
    box-shadow: none !important;
    outline: none !important;
    color: #93C5FD !important;
    transition: none !important;
}

/* Ripple element â€” stay transparent */
.fl-theme-dark .e-grid .e-unboundcell .e-btn.e-flat .e-ripple-element,
body.fl-theme-dark .e-grid .e-unboundcell .e-btn.e-flat .e-ripple-element,
html.fl-theme-dark .e-grid .e-unboundcell .e-btn.e-flat .e-ripple-element,
.fl-theme-dark .e-grid .e-unboundcelldiv .e-btn.e-flat .e-ripple-element,
body.fl-theme-dark .e-grid .e-unboundcelldiv .e-btn.e-flat .e-ripple-element,
html.fl-theme-dark .e-grid .e-unboundcelldiv .e-btn.e-flat .e-ripple-element {
    background: rgba(96, 165, 250, 0.15) !important;
    background-color: rgba(96, 165, 250, 0.15) !important;
    display: none !important;
}

/* Delete button hover in dark mode */
.fl-theme-dark .e-grid .e-unboundcell .e-btn.e-flat .e-deletebutton,
.fl-theme-dark .e-grid .e-unboundcell .e-btn.e-flat.e-deletebutton,
body.fl-theme-dark .e-grid .e-unboundcelldiv .e-btn.e-flat.e-deletebutton,
html.fl-theme-dark .e-grid .e-unboundcelldiv .e-btn.e-flat.e-deletebutton {
    color: #F87171 !important;
}

/* â”€â”€â”€ 2. Branch Badge: Force Dark BG over Bootstrap .badge white â”€â”€â”€ */
/* Bootstrap .badge sets bg-color via its own var â€” we need highest specificity */
.fl-theme-dark .badge.fl-branch-badge,
.fl-theme-dark span.badge.fl-branch-badge,
body.fl-theme-dark .badge.fl-branch-badge,
body.fl-theme-dark span.badge.fl-branch-badge,
html.fl-theme-dark .badge.fl-branch-badge,
html.fl-theme-dark span.badge.fl-branch-badge,
body:has(.fl-theme-dark) .badge.fl-branch-badge,
body:has(.fl-theme-dark) span.badge.fl-branch-badge {
    --bs-badge-color: #E2E8F0 !important;
    --bs-bg-opacity: 1 !important;
    background-color: #142037 !important;
    background: #142037 !important;
    border: 1px solid #1C2D4A !important;
    color: #E2E8F0 !important;
}

.fl-theme-dark .badge.fl-branch-badge i,
body.fl-theme-dark .badge.fl-branch-badge i,
html.fl-theme-dark .badge.fl-branch-badge i,
body:has(.fl-theme-dark) .badge.fl-branch-badge i {
    color: #60A5FA !important;
}

/* â”€â”€â”€ 3. Purchase Return / Purchase Bill List: fl-link-code cell dark bg â”€â”€â”€ */
/* The anchor tag cell in dark mode should NOT get white bg */
.fl-theme-dark .e-grid .e-rowcell .fl-link-code,
body.fl-theme-dark .e-grid .e-rowcell .fl-link-code,
html.fl-theme-dark .e-grid .e-rowcell .fl-link-code,
body:has(.fl-theme-dark) .e-grid .e-rowcell .fl-link-code {
    background: transparent !important;
    background-color: transparent !important;
}

/* The bi-arrow-return-left icon in Purchase Return link â€” no box bg */
.fl-theme-dark .e-grid .e-rowcell .fl-link-code i,
body.fl-theme-dark .e-grid .e-rowcell .fl-link-code i,
html.fl-theme-dark .e-grid .e-rowcell .fl-link-code i,
body:has(.fl-theme-dark) .e-grid .e-rowcell .fl-link-code i {
    background: transparent !important;
    background-color: transparent !important;
    color: inherit !important;
}