/*
 * Engop ERP – "the ledger book".
 * The side menu is the navy spine of the book (with a kitenge band at the top); the work area is the page.
 * Plain CSS on top of Filament – no build step needed. Unlayered rules here win over Filament's layered styles.
 */
:root {
    --eg-spine: #1F3864;
    --eg-spine-deep: #172B4F;
    --eg-spine-line: #2C4775;
    --eg-spine-text: #C9D4E6;
    --eg-teal: #1F9E6B;
    --eg-teal-soft: #7FD3AE;
    --eg-page: #EEF2F6;
    --eg-sheet: #FFFFFF;
    --eg-ink: #1B2A44;
    --eg-muted: #5E6B80;
    --eg-rule: #D5DDE7;
    --eg-rule-soft: #E6EBF1;
    --eg-amber: #C98A1B;
    --eg-red: #B83A2E;
    --eg-r-sheet: 10px;
    --eg-r-control: 7px;
    --eg-r-tag: 5px;
    --eg-brand-line: linear-gradient(90deg, #0E68A3 0%, #1F9E6B 55%, #46C362 100%);
    --eg-mark-white: url('../img/engop-mark-white.svg');
    --eg-mark-navy: url('../img/engop-mark-navy.svg');
}

/* ───── base ───── */
body.fi-body { background: var(--eg-page); color: var(--eg-ink); font-family: 'IBM Plex Sans', system-ui, sans-serif; font-size: 14px; }
.fi-body, .fi-ta-table, .fi-wi-stats-overview-stat-value { font-variant-numeric: tabular-nums; }
.fi-header-heading, .fi-simple-header-heading, .fi-modal-heading, .fi-wi-stats-overview-stat-value, .fi-section-header-heading, .fi-ta-header-heading {
    font-family: 'Kanit', 'IBM Plex Sans', sans-serif; letter-spacing: 0;
}
.fi-header-heading { font-weight: 500; font-size: 1.75rem; line-height: 1.2; color: var(--eg-ink); }
.fi-header-subheading { color: var(--eg-muted); max-width: 70ch; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--eg-teal); outline-offset: 2px; }

/* ───── the spine (side menu) ───── */
.fi-sidebar { background: var(--eg-spine); border-right: 0; }
.fi-sidebar.fi-sidebar-open, .fi-main-sidebar { background: var(--eg-spine); }
.fi-sidebar-header { background: var(--eg-spine-deep); border-bottom: 0; position: relative; box-shadow: none; }
.fi-sidebar-header-controls { position: relative; padding-top: 14px; background: var(--eg-spine-deep); padding-bottom: 10px; }
.fi-sidebar-header::before { /* the kitenge band (phones: above the logo; desktop: above the company) */
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
    background: var(--eg-brand-line);
}
.fi-sidebar-header { padding-top: 6px; }
.fi-sidebar-nav { background: var(--eg-spine); }
.fi-sidebar-header .fi-tenant-menu-trigger, .fi-sidebar .fi-tenant-menu-trigger { color: #fff; }
.fi-sidebar .fi-tenant-menu-trigger-tenant-name { color: #fff; font-family: 'Kanit', sans-serif; font-weight: 500; font-size: 15px; }
.fi-sidebar .fi-tenant-menu-trigger-text, .fi-sidebar .fi-tenant-menu-trigger .fi-icon { color: var(--eg-spine-text); }
.fi-sidebar .fi-tenant-menu-trigger:hover { background: var(--eg-spine-line); }
.fi-sidebar .fi-tenant-avatar { border-radius: 6px; background: var(--eg-teal); }
.fi-sidebar-nav { padding-top: 10px; scrollbar-color: var(--eg-spine-line) transparent; }
.fi-sidebar-nav-groups { gap: 4px; }
.fi-sidebar-group-label { color: #8FA3C4; font-size: 12px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.fi-sidebar-group-btn .fi-icon, .fi-sidebar-group-collapse-btn .fi-icon { color: #6F84A8; }
.fi-sidebar-item-btn { border-radius: 0 var(--eg-r-control) var(--eg-r-control) 0; margin-left: -12px; padding-left: 20px; border-left: 3px solid transparent; }
.fi-sidebar-item-label { color: var(--eg-spine-text); font-weight: 400; }
.fi-sidebar-item-icon { color: #7E93B6; }
.fi-sidebar-item-btn:hover { background: var(--eg-spine-line); }
.fi-sidebar-item-btn:hover .fi-sidebar-item-label { color: #fff; }
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn { background: var(--eg-spine-deep); border-left-color: var(--eg-teal); }
.fi-sidebar-item.fi-active .fi-sidebar-item-label { color: #fff; font-weight: 500; }
.fi-sidebar-item.fi-active .fi-sidebar-item-icon { color: var(--eg-teal-soft); }
.fi-sidebar-item-badge-ctn .fi-badge { background: var(--eg-teal); color: #fff; box-shadow: none; }
.fi-sidebar .fi-sidebar-group-items .fi-sidebar-item-grouped-border { background: var(--eg-spine-line); }

/* ───── top bar ───── */
.fi-topbar { background: var(--eg-sheet); border-bottom: 1px solid var(--eg-rule); box-shadow: none; }
.fi-topbar .fi-logo { font-family: 'Kanit', sans-serif; font-weight: 600; color: var(--eg-spine); }
.fi-global-search-field .fi-input-wrp { background: var(--eg-page); border-color: transparent; box-shadow: none; }
.fi-user-avatar, .fi-avatar { background: var(--eg-spine); }

/* ───── sheets (sections, tables, widgets) ───── */
.fi-section:not(.fi-section-not-contained), .fi-ta-ctn, .fi-wi-widget > .fi-section, .fi-fo-repeater-item, .fi-in-entry-wrp {
    border-radius: var(--eg-r-sheet); box-shadow: none; border: 1px solid var(--eg-rule); background: var(--eg-sheet);
}
.fi-section-header { border-bottom: 1px solid var(--eg-rule-soft); }
.fi-section-header-heading { font-weight: 500; font-size: 1rem; color: var(--eg-ink); }
.fi-section-header-description { color: var(--eg-muted); }

/* tables: easy to read down a column of figures */
.fi-ta-header-cell { background: #F5F7FA; color: var(--eg-muted); font-weight: 500; font-size: 12.5px; border-bottom: 1px solid var(--eg-rule); }
.fi-ta-header-cell-sort-btn { color: var(--eg-muted); }
.fi-ta-row { border-color: var(--eg-rule-soft); }
.fi-ta-row:hover { background: #F7FAFC; }
.fi-ta-cell { color: var(--eg-ink); }
.fi-ta-text-description { color: var(--eg-muted); }
.fi-ta-header-toolbar { border-bottom: 1px solid var(--eg-rule-soft); }
.fi-pagination { color: var(--eg-muted); }

/* ───── statement strip (dashboard figures): one sheet, divided by rules ───── */
.fi-wi-stats-overview .fi-wi-stats-overview-stats-ctn, .fi-wi-stats-overview > .fi-grid, .fi-wi-stats-overview .fi-grid {
    gap: 1px !important; background: var(--eg-rule-soft); border: 1px solid var(--eg-rule); border-radius: var(--eg-r-sheet); overflow: hidden;
}
.fi-wi-stats-overview-stat { border-radius: 0; box-shadow: none; border: 0; background: var(--eg-sheet); padding: 18px 22px; }
.fi-wi-stats-overview-stat-label { color: var(--eg-muted); font-size: 13px; }
.fi-wi-stats-overview-stat-value { font-weight: 500; font-size: 1.85rem; color: var(--eg-spine); }
.fi-wi-stats-overview-stat-description { font-size: 13px; }

/* ───── controls ───── */
button.fi-btn.fi-color-primary, a.fi-btn.fi-color-primary { background: var(--eg-teal); color: #fff; }
button.fi-btn.fi-color-primary:hover, a.fi-btn.fi-color-primary:hover { background: #198A5D; }
button.fi-btn.fi-color-primary .fi-icon, a.fi-btn.fi-color-primary .fi-icon { color: #fff; }
/* choice buttons (ToggleButtons): quiet until chosen */
.fi-fo-toggle-buttons label.fi-btn { background: var(--eg-sheet); border: 1px solid var(--eg-rule); color: var(--eg-ink); }
.fi-fo-toggle-buttons input:checked + label.fi-btn { background: var(--eg-teal); border-color: var(--eg-teal); color: #fff; }
.fi-fo-toggle-buttons input:checked + label.fi-btn .fi-icon { color: #fff; }
/* Filament 5 draws toggle choices as buttons with aria-pressed: only the chosen one is filled */
.fi-fo-toggle-buttons button.fi-btn[aria-pressed="false"] { background: var(--eg-sheet) !important; border: 1px solid var(--eg-rule) !important; color: var(--eg-ink) !important; box-shadow: none !important; }
.fi-fo-toggle-buttons button.fi-btn[aria-pressed="false"] .fi-icon { color: var(--eg-muted, #5B6577) !important; }
.fi-fo-toggle-buttons button.fi-btn[aria-pressed="false"]:hover { border-color: var(--eg-teal) !important; }
.fi-fo-toggle-buttons button.fi-btn[aria-pressed="true"] { background: var(--eg-teal) !important; border: 1px solid var(--eg-teal) !important; color: #fff !important; }
.fi-fo-toggle-buttons button.fi-btn[aria-pressed="true"] .fi-icon { color: #fff !important; }
.fi-link.fi-color-primary, .fi-link.fi-color-primary .fi-icon { color: #16794F; }
.fi-btn { border-radius: var(--eg-r-control); font-weight: 500; box-shadow: none; }
button.fi-btn.fi-color-gray, a.fi-btn.fi-color-gray, button.fi-btn:not([class*='fi-color-']) { background: var(--eg-sheet); border: 1px solid var(--eg-rule); color: var(--eg-ink); }
.fi-btn.fi-color-gray:hover { background: #F5F7FA; }
.fi-input-wrp { border-radius: var(--eg-r-control); box-shadow: none; border: 1px solid var(--eg-rule); }
.fi-input-wrp:focus-within { border-color: var(--eg-teal); box-shadow: 0 0 0 3px rgba(31, 158, 107, .15); }
.fi-fo-field-label-content, .fi-fo-field-label { color: var(--eg-ink); font-weight: 500; }
.fi-badge { border-radius: var(--eg-r-tag); font-weight: 500; box-shadow: none; }
.fi-tabs { background: var(--eg-sheet); border: 1px solid var(--eg-rule); border-radius: var(--eg-r-control); box-shadow: none; }
.fi-tabs-item.fi-active { background: #E8F6EF; }
.fi-tabs-item.fi-active .fi-tabs-item-label { color: #16794F; }
.fi-modal-window { border-radius: var(--eg-r-sheet); }
.fi-dropdown-panel { border-radius: var(--eg-r-control); border: 1px solid var(--eg-rule); box-shadow: 0 8px 24px rgba(27, 42, 68, .12); }
.fi-breadcrumbs-item-label { color: var(--eg-muted); }
.fi-no-notification { border-radius: var(--eg-r-control); }

/* ───── sign-in page: the pattern panel on the left ───── */
.fi-simple-layout { background: var(--eg-page); }
.eg-login-art { display: none; }
@media (min-width: 1024px) {
    body.fi-body:has(.eg-login-art) .fi-simple-main-ctn { margin-left: 46vw; width: auto; }
    .eg-login-art {
        display: flex; flex-direction: column; justify-content: space-between;
        position: fixed; inset: 0 auto 0 0; width: 46vw; padding: 48px 56px; color: #fff;
        background: var(--eg-spine); overflow: hidden;
    }
    .eg-login-art::before { /* the Engop mark as a watermark, bleeding off the edge */
        content: ''; position: absolute; right: -18vh; bottom: -14vh; width: 78vh; height: 104vh;
        background: var(--eg-mark-white) no-repeat center / contain; opacity: .06;
    }
    .eg-login-art::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--eg-brand-line); }
    .eg-login-art > * { position: relative; }
    .eg-login-art .eg-logo { height: 44px; width: auto; align-self: flex-start; }
    .eg-login-art h2 { font-family: 'Kanit', sans-serif; font-weight: 500; font-size: 40px; line-height: 1.15; max-width: 14ch; margin: 0 0 16px; }
    .eg-login-art p { color: var(--eg-spine-text); font-size: 16px; line-height: 1.6; max-width: 40ch; margin: 0; }
    .eg-login-art small { color: #8FA3C4; font-size: 13px; }
}
.fi-simple-main { border-radius: var(--eg-r-sheet); box-shadow: none; border: 1px solid var(--eg-rule); }
.fi-simple-header-heading { font-weight: 500; color: var(--eg-ink); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* the spine runs up through the top bar */
@media (min-width: 1024px) {
    .fi-topbar { position: relative; }
    .fi-topbar::before { content: ''; position: absolute; left: 0; top: 0; bottom: -1px; width: var(--collapsed-sidebar-width, 4.5rem); background: var(--eg-spine-deep); }
    body:has(.fi-sidebar.fi-sidebar-open) .fi-topbar::before { width: var(--sidebar-width, 20rem); }
    .fi-topbar-start { position: relative; z-index: 1; }
    .fi-topbar-start .fi-logo { color: #fff; font-size: 18px; }
    .fi-topbar-start .fi-icon-btn, .fi-topbar-start .fi-icon-btn .fi-icon { color: var(--eg-spine-text); }
}

.fi-sidebar-header .fi-logo { color: #fff; font-family: 'Kanit', sans-serif; font-weight: 600; }
@media (min-width: 1024px) {
    .fi-sidebar-header::before { display: none; }
    .fi-sidebar-header-controls::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--eg-brand-line); }
}
@media (max-width: 1023px) {
    .fi-sidebar-header-controls { padding-top: 10px; }
}

/* the Engop logo: white text on the navy top bar, dark text on the white sign-in card */
.fi-simple-header img.fi-logo { content: url('../img/engop-logo.svg'); height: 2.4rem; width: auto; max-width: none; aspect-ratio: 576 / 199; }

/* the Engop mark as a quiet watermark at the foot of the spine */
.fi-sidebar-nav { position: relative; }
@media (min-width: 1024px) {
    .fi-sidebar.fi-sidebar-open::after {
        content: ''; position: absolute; right: -60px; bottom: -40px; width: 230px; height: 305px; pointer-events: none;
        background: var(--eg-mark-white) no-repeat center / contain; opacity: .045;
    }
    .fi-sidebar { overflow: hidden; }
    /* and, very faintly, on the page itself */
    .fi-main-ctn::after {
        content: ''; position: fixed; right: -70px; bottom: -90px; width: 380px; height: 504px; pointer-events: none; z-index: 0;
        background: var(--eg-mark-navy) no-repeat center / contain; opacity: .03;
    }
    .fi-main { position: relative; z-index: 1; }
}

/* ───── menu: a clear edge under the company name, and a soft fade where items scroll away ───── */
.fi-sidebar-header-controls { box-shadow: 0 1px 0 var(--eg-spine-line), 0 6px 12px -6px rgba(0, 0, 0, .35); z-index: 2; }
.fi-sidebar-nav { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14px, #000 calc(100% - 24px), transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 14px, #000 calc(100% - 24px), transparent 100%); padding-bottom: 28px; }
.fi-sidebar-item-grouped-border, .fi-sidebar-sub-group-items { --tw-border-opacity: 1; }
.fi-sidebar-group-items .fi-sidebar-item .fi-sidebar-group-items .fi-sidebar-item-label { font-size: 13px; }

/* ───── personal preferences ───── */
body.eg-text-small { font-size: 13px; }
body.eg-text-small .fi-ta-cell, body.eg-text-small .fi-sidebar-item-label { font-size: 13px; }
body.eg-text-large { font-size: 15.5px; }
body.eg-text-large .fi-ta-cell, body.eg-text-large .fi-sidebar-item-label, body.eg-text-large .fi-input { font-size: 15.5px; }
body.eg-compact .fi-ta-cell > * , body.eg-compact .fi-ta-text { padding-top: 4px; padding-bottom: 4px; }
body.eg-compact .fi-ta-header-cell { padding-top: 7px; padding-bottom: 7px; }
body.eg-compact .fi-sidebar-item-btn { padding-top: 5px; padding-bottom: 5px; }
body.eg-compact .fi-section-content { padding: 14px 16px; }

/* ───── dark mode: night ledger – deep navy page, the spine darker still ───── */
html.dark {
    --eg-spine: #0C1628;
    --eg-spine-deep: #08101E;
    --eg-spine-line: #1B2B47;
    --eg-spine-text: #B4C2D9;
    --eg-page: #0F1A2C;
    --eg-sheet: #15233A;
    --eg-ink: #E4EAF4;
    --eg-muted: #94A4BE;
    --eg-rule: #263955;
    --eg-rule-soft: #1E2F49;
    --eg-teal-soft: #6FD1A6;
    color-scheme: dark;
}
html.dark body.fi-body { background: var(--eg-page); color: var(--eg-ink); }
html.dark .fi-topbar { background: var(--eg-sheet); border-bottom-color: var(--eg-rule); }
html.dark .fi-global-search-field .fi-input-wrp { background: var(--eg-page); }
html.dark .fi-ta-header-cell { background: #1A2A44; }
html.dark .fi-ta-row:hover { background: #1A2B46; }
html.dark .fi-tabs { background: var(--eg-sheet); border-color: var(--eg-rule); }
html.dark .fi-tabs-item.fi-active { background: rgba(31, 158, 107, .18); }
html.dark .fi-tabs-item.fi-active .fi-tabs-item-label { color: var(--eg-teal-soft); }
html.dark .fi-btn.fi-color-gray, html.dark .fi-btn:not([class*='fi-color-']) { background: var(--eg-sheet); border-color: var(--eg-rule); color: var(--eg-ink); }
html.dark .fi-btn.fi-color-gray:hover { background: #1C2D49; }
html.dark .fi-link.fi-color-primary, html.dark .fi-link.fi-color-primary .fi-icon { color: var(--eg-teal-soft); }
html.dark .fi-wi-stats-overview-stat-value, html.dark .fi-header-heading { color: #F2F5FA; }
html.dark .fi-input-wrp { background: #101C30; border-color: var(--eg-rule); }
html.dark .fi-dropdown-panel { background: var(--eg-sheet); border-color: var(--eg-rule); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
html.dark .fi-main-ctn::after { background-image: var(--eg-mark-white); opacity: .025; }
html.dark .fi-simple-layout, html.dark .fi-simple-main { background: var(--eg-sheet); }
html.dark .fi-simple-header img.fi-logo { content: url('../img/engop-logo-light-text.svg'); }

/* Screens drawn by the ERP itself use inline colours; turn them to night colours too.
   Printed-document previews (.doc) stay white like paper. */
html.dark [style*="background:white"]:not(.doc):not(.doc *),
html.dark [style*="background: white"]:not(.doc):not(.doc *),
html.dark [style*="background:#fff"]:not(.doc):not(.doc *) { background: var(--eg-sheet) !important; color: var(--eg-ink); }
html.dark [style*="background:#F5F7FA"]:not(.doc):not(.doc *), html.dark [style*="background:#F7FAFC"]:not(.doc):not(.doc *) { background: #1A2A44 !important; }
html.dark [style*="border:1px solid #E3E7EE"]:not(.doc):not(.doc *), html.dark [style*="border-top:1px solid"]:not(.doc):not(.doc *), html.dark [style*="border-bottom:1px solid"]:not(.doc):not(.doc *) { border-color: var(--eg-rule) !important; }
html.dark [style*="color:#1F3864"]:not(.doc):not(.doc *), html.dark [style*="color:#1D2433"]:not(.doc):not(.doc *), html.dark [style*="color:#374151"]:not(.doc):not(.doc *) { color: #E4EAF4 !important; }
html.dark [style*="color:#6B7385"]:not(.doc):not(.doc *) { color: var(--eg-muted) !important; }
html.dark [style*="background:#EEF0F4"]:not(.doc):not(.doc *) { background: #22344F !important; }
html.dark [style*="background:#E8F6EF"]:not(.doc):not(.doc *) { background: rgba(31, 158, 107, .18) !important; }
html.dark [style*="background:#FFF7E6"]:not(.doc):not(.doc *) { background: rgba(201, 138, 27, .14) !important; }
html.dark .doc { color-scheme: light; }

/* ═════ Layout B: navy app bar across the top, light menu below ═════ */
.fi-topbar { background: var(--eg-spine); border-bottom: 0; position: relative; }
.fi-topbar::before { display: none !important; }
.fi-topbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--eg-brand-line); }
.fi-topbar .fi-logo, .fi-topbar-start .fi-logo { color: #fff; }
.fi-topbar .fi-icon-btn, .fi-topbar .fi-icon-btn .fi-icon { color: var(--eg-spine-text); }
.fi-topbar .fi-icon-btn:hover { background: var(--eg-spine-line); }
.fi-topbar-start { gap: 14px; }
.eg-topbar-divider { width: 1px; height: 28px; background: var(--eg-spine-line); margin: 0 4px; }
.eg-topbar-company .fi-tenant-menu-trigger {
    display: flex; align-items: center; gap: 10px; padding: 4px 14px 4px 4px; border-radius: 999px;
    border: 1px solid var(--eg-spine-line); background: var(--eg-spine-deep); color: #fff; width: auto;
}
.eg-topbar-company .fi-tenant-menu-trigger:hover { background: var(--eg-spine-line); }
.eg-topbar-company .fi-tenant-avatar { width: 28px; height: 28px; border-radius: 50%; }
.eg-topbar-company .fi-tenant-menu-trigger-tenant-name { color: #fff; font-weight: 500; font-size: 14px; font-family: 'IBM Plex Sans', sans-serif; }
.eg-topbar-company .fi-tenant-menu-trigger-text > :not(.fi-tenant-menu-trigger-tenant-name) { display: none; }
.eg-topbar-company .fi-tenant-menu-trigger .fi-icon { color: #8FA3C4; }
.fi-topbar .fi-global-search-field .fi-input-wrp { background: var(--eg-spine-deep); border: 1px solid var(--eg-spine-line); }
.fi-topbar .fi-global-search-field input, .fi-topbar .fi-global-search-field .fi-icon { color: #DCE4F0; }
.fi-topbar .fi-global-search-field input::placeholder { color: #8FA3C4; }
.fi-topbar .fi-user-avatar { background: var(--eg-teal); box-shadow: 0 0 0 2px var(--eg-spine); }

/* the menu: light, with a teal marker on the page you are on */
.fi-sidebar, .fi-sidebar.fi-sidebar-open, .fi-main-sidebar, .fi-sidebar-nav { background: var(--eg-sheet); }
.fi-sidebar { border-right: 1px solid var(--eg-rule); }
.fi-sidebar-header-controls, .fi-sidebar-header { background: var(--eg-sheet); box-shadow: none; }
.fi-sidebar-header-controls::before { display: none; }
@media (min-width: 1024px) { .fi-sidebar-header-controls { display: none; } }
.fi-sidebar-group-label { color: var(--eg-muted); }
.fi-sidebar-group-btn .fi-icon, .fi-sidebar-group-collapse-btn .fi-icon { color: #9AA6B8; }
.fi-sidebar-item-label { color: var(--eg-ink); }
.fi-sidebar-item-icon { color: #7A879B; }
.fi-sidebar-item-btn:hover { background: #F2F5F9; }
.fi-sidebar-item-btn:hover .fi-sidebar-item-label { color: var(--eg-ink); }
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn { background: #E8F6EF; border-left-color: var(--eg-teal); }
.fi-sidebar-item.fi-active .fi-sidebar-item-label { color: #16794F; }
.fi-sidebar-item.fi-active .fi-sidebar-item-icon { color: var(--eg-teal); }
.fi-sidebar .fi-sidebar-item-grouped-border { background: var(--eg-rule); }
.fi-sidebar .fi-tenant-menu-trigger, .fi-sidebar .fi-tenant-menu-trigger-tenant-name { color: var(--eg-ink); }
.fi-sidebar-header .fi-logo { color: var(--eg-ink); }
@media (min-width: 1024px) {
    .fi-sidebar.fi-sidebar-open::after { background-image: var(--eg-mark-navy); opacity: .035; }
}
/* phones: company pill stays in the menu, not the bar */
@media (max-width: 767px) { .eg-topbar-company, .eg-topbar-divider { display: none; } .fi-sidebar-header-controls { display: block; } }

html.dark .fi-topbar { background: var(--eg-spine); }
html.dark .fi-sidebar-item-btn:hover { background: #1C2D49; }
html.dark .fi-sidebar-item.fi-active > .fi-sidebar-item-btn { background: rgba(31, 158, 107, .16); }
html.dark .fi-sidebar-item.fi-active .fi-sidebar-item-label { color: var(--eg-teal-soft); }
html.dark .fi-sidebar.fi-sidebar-open::after { background-image: var(--eg-mark-white); opacity: .03; }

/* ═════ dashboard charts ═════ */
.fi-wi-chart .fi-section-header-heading { font-family: 'Kanit', sans-serif; font-weight: 500; }
.fi-wi-chart .fi-section-header-description { font-size: 13px; }
.fi-wi-chart select { border-radius: var(--eg-r-control); border-color: var(--eg-rule); font-size: 13px; }
