/* GENERATED by `php spark ui:dark-build` from fnb-dark.src.css - do not edit. */
/* 1) the system setting, unless the user picked light */
@media (prefers-color-scheme: dark) {
  /* 1. TOKENS ================================================================ */
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --fnb-brand: #5AA2FF; --fnb-brand-600: #7DB7FF; --fnb-brand-700: #A5CCFF;
    --fnb-brand-50: #13243D; --fnb-brand-100: #1B3354; --fnb-brand-200: #285085;
    --fnb-ink: #EEF2F7; --fnb-ink-2: #CBD3DE; --fnb-muted: #A3AEBD; --fnb-subtle: #7C8797;
    --fnb-border: #2A3342; --fnb-border-strong: #3A4556;
    --fnb-surface: #161C26; --fnb-canvas: #0E131B; --fnb-hover: #1E2633;
    --fnb-raised: #1B2330;
    --fnb-success: #5FD39A; --fnb-success-bg: #10291E; --fnb-success-bd: #1D4D37;
    --fnb-warning: #F4BE5E; --fnb-warning-bg: #2C2210; --fnb-warning-bd: #5A4519;
    --fnb-danger: #FF8A80;  --fnb-danger-bg: #331614;  --fnb-danger-bd: #5E2A26;
    --fnb-info: #7DB7FF;    --fnb-info-bg: #12233A;    --fnb-info-bd: #23426B;
    --fnb-neutral: #B8C2CF; --fnb-neutral-bg: #232B37; --fnb-neutral-bd: #364152;
    --fnb-st-pending: #B8C2CF;     --fnb-st-pending-bg: #232B37;
    --fnb-st-awaiting: #F4BE5E;    --fnb-st-awaiting-bg: #2C2210;
    --fnb-st-confirmed: #7DB7FF;   --fnb-st-confirmed-bg: #12233A;
    --fnb-st-rescheduled: #C7A8FF; --fnb-st-rescheduled-bg: #251C3D;
    --fnb-st-started: #A9A4FF;     --fnb-st-started-bg: #1E1D3D;
    --fnb-st-completed: #5FD39A;   --fnb-st-completed-bg: #10291E;
    --fnb-st-cancelled: #FF8A80;   --fnb-st-cancelled-bg: #331614;
    --fnb-e1: 0 1px 2px rgba(0, 0, 0, .4);
    --fnb-e2: 0 2px 6px rgba(0, 0, 0, .35), 0 8px 24px rgba(0, 0, 0, .3);
    --fnb-e3: 0 12px 32px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .4);
    --fnb-focus: 0 0 0 3px rgba(125, 183, 255, .45);
    /* Fills that carry white text (white on each >= 4.5:1). */
    --fnb-fill-brand: #1F6FE0; --fnb-fill-brand-hover: #185CC0;
    --fnb-fill-danger: #C0352B; --fnb-fill-danger-hover: #A12A21;
    --fnb-fill-success: #137A4B; --fnb-fill-success-hover: #0F653E;
    /* panel1 (2026-11-23): chart, focus and button tokens (fnb-ui.css section 1) */
    --fnb-chart-1: #6EA8FF; --fnb-chart-2: #F2A93B; --fnb-chart-3: #3CC99A; --fnb-chart-4: #E08BC4; --fnb-chart-5: #8CC8F5; --fnb-chart-6: #FF8A5B;
    --fnb-chart-axis: #A3AEBD; --fnb-chart-grid: #2A3342; --fnb-chart-tooltip-bg: #EEF2F7; --fnb-chart-tooltip-ink: #0D131B;
    --fnb-chart-box: #161C26;
    --fnb-focus-ring: #7DB7FF; --fnb-focus-halo: rgba(125, 183, 255, .28);
    --fnb-btn-primary-bg: #1F6FE0; --fnb-btn-primary-hover: #185CC0;
    --fnb-btn-danger-fill: #C0352B; --fnb-btn-danger-fill-hover: #A12A21;
    /* Bootstrap 4 / Stisla variables some plugins read */
    --primary-ink: #0D131B;
    --white: #161C26; --light: #1E2633; --dark: #EEF2F7; --gray: #A3AEBD; --gray-dark: #CBD3DE;
  }
  /* Panel-local token sets (technician, care centre) */
  :root:not([data-theme="light"]) body.tech-panel {
    --tb: #7DB7FF; --tb-ink: #A5CCFF; --tb-soft: #13243D;
    --ao: #FFB067; --sg: #5FD39A;
    --t-surface: #0E131B; --t-muted: #A3AEBD; --t-ink: #EEF2F7; --t-line: #2A3342; --t-chip: #232B37;
  }
  :root:not([data-theme="light"]) body .care-panel, :root:not([data-theme="light"]) .care-panel {
    --cc-tb: #7DB7FF; --cc-tb-ink: #A5CCFF; --cc-tb-soft: #13243D;
    --cc-ao: #FFB067; --cc-green: #5FD39A; --cc-red: #FF8A80; --cc-amber: #F4BE5E; --cc-info: #7DCFE8;
    --cc-ink: #EEF2F7; --cc-muted: #A3AEBD; --cc-line: #2A3342; --cc-chip: #232B37;
    --cc-shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 28px rgba(0,0,0,.3);
  }
  
  /* 2. BASE ================================================================== */
  :root:not([data-theme="light"]), :root:not([data-theme="light"]) body { background-color: var(--fnb-canvas) !important; color: var(--fnb-ink-2); }
  :root:not([data-theme="light"]) body { scrollbar-color: var(--fnb-border-strong) var(--fnb-canvas); }
  :root:not([data-theme="light"]) .main-wrapper, :root:not([data-theme="light"]) .main-content, :root:not([data-theme="light"]) #app, :root:not([data-theme="light"]) body.tech-panel .main-content { background-color: var(--fnb-canvas) !important; }
  /* Sign-in screens (.auth > ... > #app) keep their background photo in dark mode: the
     rule above painted #app over it, leaving only a strip of photo at the top and bottom. */
  :root:not([data-theme="light"]) .auth #app { background-color: transparent !important; }
  :root:not([data-theme="light"]) h1, :root:not([data-theme="light"]) h2, :root:not([data-theme="light"]) h3, :root:not([data-theme="light"]) h4, :root:not([data-theme="light"]) h5, :root:not([data-theme="light"]) h6,
  :root:not([data-theme="light"]) .h1, :root:not([data-theme="light"]) .h2, :root:not([data-theme="light"]) .h3, :root:not([data-theme="light"]) .h4, :root:not([data-theme="light"]) .h5, :root:not([data-theme="light"]) .h6,
  :root:not([data-theme="light"]) .section-header h1, :root:not([data-theme="light"]) .card-title, :root:not([data-theme="light"]) .card .card-header h4 { color: var(--fnb-ink); }
  :root:not([data-theme="light"]) a:not(.btn):not(.nav-link):not(.dropdown-item):not(.page-link):not(.badge) { color: var(--fnb-brand-600); }
  :root:not([data-theme="light"]) a:not(.btn):not(.nav-link):not(.dropdown-item):not(.page-link):not(.badge):hover { color: var(--fnb-brand-700); }
  :root:not([data-theme="light"]) hr, :root:not([data-theme="light"]) .dropdown-divider { border-color: var(--fnb-border) !important; }
  :root:not([data-theme="light"]) ::selection { background: #285085; color: #fff; }
  :root:not([data-theme="light"]) code { color: #FF9EC4; }
  :root:not([data-theme="light"]) pre, :root:not([data-theme="light"]) kbd { background: var(--fnb-hover); color: var(--fnb-ink-2); }
  :root:not([data-theme="light"]) .text-dark, :root:not([data-theme="light"]) .text-body, :root:not([data-theme="light"]) .text-black, :root:not([data-theme="light"]) .text-black-50 { color: var(--fnb-ink) !important; }
  :root:not([data-theme="light"]) .text-white-50 { color: rgba(255,255,255,.75) !important; }
  :root:not([data-theme="light"]) .text-light { color: var(--fnb-muted) !important; }
  :root:not([data-theme="light"]) .bg-white, :root:not([data-theme="light"]) .bg-body, :root:not([data-theme="light"]) .card-body.bg-white { background-color: var(--fnb-surface) !important; }
  :root:not([data-theme="light"]) .bg-light, :root:not([data-theme="light"]) .bg-whitesmoke, :root:not([data-theme="light"]) .bg-gray, :root:not([data-theme="light"]) .bg-grey, :root:not([data-theme="light"]) .bg-secondary-subtle { background-color: var(--fnb-hover) !important; color: var(--fnb-ink-2); }
  :root:not([data-theme="light"]) .bg-dark { background-color: #0A0E14 !important; color: var(--fnb-ink) !important; }
  :root:not([data-theme="light"]) .border, :root:not([data-theme="light"]) .border-top, :root:not([data-theme="light"]) .border-bottom, :root:not([data-theme="light"]) .border-left, :root:not([data-theme="light"]) .border-right,
  :root:not([data-theme="light"]) .border-light, :root:not([data-theme="light"]) .border-secondary { border-color: var(--fnb-border) !important; }
  :root:not([data-theme="light"]) .shadow, :root:not([data-theme="light"]) .shadow-sm, :root:not([data-theme="light"]) .shadow-lg { box-shadow: var(--fnb-e2) !important; }
  
  /* 3. SHELL ================================================================= */
  :root:not([data-theme="light"]) .main-navbar, :root:not([data-theme="light"]) .navbar.new_nav_bar, :root:not([data-theme="light"]) .navbar-bg { background: #121821 !important; border-bottom-color: var(--fnb-border) !important; }
  :root:not([data-theme="light"]) .main-sidebar, :root:not([data-theme="light"]) #sidebar-wrapper, :root:not([data-theme="light"]) .main-sidebar .sidebar-brand,
  :root:not([data-theme="light"]) .main-sidebar .sidebar-brand-sm { background: #121821 !important; }
  :root:not([data-theme="light"]) .main-sidebar .sidebar-menu li a,
  :root:not([data-theme="light"]) .main-sidebar .sidebar-menu li a span,
  :root:not([data-theme="light"]) .main-sidebar .sidebar-menu li a .material-symbols-outlined,
  :root:not([data-theme="light"]) .main-sidebar .sidebar-menu li a i { color: #C9D2DE !important; }
  :root:not([data-theme="light"]) .main-sidebar .sidebar-menu li a:hover, :root:not([data-theme="light"]) .main-sidebar .sidebar-menu li a:focus { background: var(--fnb-hover) !important; color: #fff !important; }
  :root:not([data-theme="light"]) .main-sidebar .sidebar-menu li.active > a,
  :root:not([data-theme="light"]) .main-sidebar .sidebar-menu li.active > a span,
  :root:not([data-theme="light"]) .main-sidebar .sidebar-menu li.active > a .material-symbols-outlined,
  :root:not([data-theme="light"]) .main-sidebar .sidebar-menu li.active > a i,
  :root:not([data-theme="light"]) .main-sidebar .sidebar-menu li a.active,
  :root:not([data-theme="light"]) .main-sidebar .sidebar-menu li ul.dropdown-menu li.active > a { color: #fff !important; background: #1B3354 !important; }
  :root:not([data-theme="light"]) .main-sidebar .sidebar-menu li ul.dropdown-menu, :root:not([data-theme="light"]) .main-sidebar .sidebar-menu li ul.dropdown-menu li a { background: transparent !important; }
  :root:not([data-theme="light"]) .main-sidebar .menu-header, :root:not([data-theme="light"]) .main-sidebar .heading_lable { color: #95A1B2 !important; }
  /* Logos: never filtered. Dark-ink logo artwork sits on a light chip. */
  :root:not([data-theme="light"]) .main-sidebar .sidebar-brand a,
  :root:not([data-theme="light"]) .main-sidebar .sidebar-brand-sm a { display: inline-flex; align-items: center; justify-content: center; background: #F4F7FB; border-radius: 10px; padding: 4px 10px; line-height: 1; }
  :root:not([data-theme="light"]) .main-navbar .nav-link,
  :root:not([data-theme="light"]) .main-navbar .nav-link.nav-link-lg,
  :root:not([data-theme="light"]) .main-navbar .nav-link i { color: #DCE3EC !important; }
  :root:not([data-theme="light"]) .main-navbar .navbar_dropdown > .nav-link,
  :root:not([data-theme="light"]) .main-navbar .navbar-right .nav-link.nav-link-user { background: var(--fnb-surface) !important; border-color: var(--fnb-border-strong) !important; color: #DCE3EC !important; }
  :root:not([data-theme="light"]) .main-navbar .form-control, :root:not([data-theme="light"]) .main-navbar #menu-search { background: var(--fnb-canvas) !important; color: var(--fnb-ink) !important; }
  :root:not([data-theme="light"]) .main-footer, :root:not([data-theme="light"]) footer.main-footer { background: transparent !important; color: var(--fnb-muted) !important; border-color: var(--fnb-border) !important; }
  :root:not([data-theme="light"]) .main-footer a { color: var(--fnb-brand-600) !important; }
  :root:not([data-theme="light"]) .section .section-header, :root:not([data-theme="light"]) .section-header { background: var(--fnb-surface) !important; border-color: var(--fnb-border) !important; box-shadow: none !important; }
  :root:not([data-theme="light"]) .section-header .section-header-breadcrumb .breadcrumb-item,
  :root:not([data-theme="light"]) .section-header .section-header-breadcrumb .breadcrumb-item a { color: var(--fnb-muted) !important; }
  :root:not([data-theme="light"]) .sidebar-mini .main-sidebar .sidebar-menu > li ul.dropdown-menu { background: var(--fnb-surface) !important; }
  :root:not([data-theme="light"]) .sidebar-gone-show .main-sidebar, :root:not([data-theme="light"]) .main-sidebar.sidebar-style-2 { background: #121821 !important; }
  :root:not([data-theme="light"]) .sidebar-show::before, :root:not([data-theme="light"]) .sidebar-gone-show .main-content::before { background: rgba(0,0,0,.6); }
  
  /* 4. CARDS, ALERTS, LISTS ================================================== */
  :root:not([data-theme="light"]) .card, :root:not([data-theme="light"]) .card .card-header, :root:not([data-theme="light"]) .card .card-body, :root:not([data-theme="light"]) .card .card-footer,
  :root:not([data-theme="light"]) .card-statistic-1, :root:not([data-theme="light"]) .card-statistic-2, :root:not([data-theme="light"]) .card.card-statistic-1 .card-wrap,
  :root:not([data-theme="light"]) .jumbotron, :root:not([data-theme="light"]) .list-group-item, :root:not([data-theme="light"]) .media, :root:not([data-theme="light"]) .tickets-list .ticket-item,
  :root:not([data-theme="light"]) .activities .activity .activity-detail, :root:not([data-theme="light"]) .wizard-steps .wizard-step, :root:not([data-theme="light"]) .hero.bg-white,
  :root:not([data-theme="light"]) .fnb-page-help, :root:not([data-theme="light"]) .page-help, :root:not([data-theme="light"]) .empty-state {
    background-color: var(--fnb-surface) !important; color: var(--fnb-ink-2) !important; border-color: var(--fnb-border) !important;
  }
  :root:not([data-theme="light"]) .card .card-header { border-bottom-color: var(--fnb-border) !important; }
  :root:not([data-theme="light"]) .card.card-primary, :root:not([data-theme="light"]) .card.card-info, :root:not([data-theme="light"]) .card.card-success, :root:not([data-theme="light"]) .card.card-danger, :root:not([data-theme="light"]) .card.card-warning { border-top-color: var(--fnb-brand) !important; }
  :root:not([data-theme="light"]) .card-statistic-1 .card-header h4, :root:not([data-theme="light"]) .card-statistic-2 .card-header h4, :root:not([data-theme="light"]) .card .card-header h4 { color: var(--fnb-ink) !important; }
  :root:not([data-theme="light"]) .card-statistic-1 .card-body, :root:not([data-theme="light"]) .card-statistic-2 .card-stats-title { color: var(--fnb-ink) !important; }
  :root:not([data-theme="light"]) .list-group-item.active { background: var(--fnb-fill-brand) !important; border-color: var(--fnb-fill-brand) !important; color: #fff !important; }
  :root:not([data-theme="light"]) .list-group-item-action:hover, :root:not([data-theme="light"]) .list-group-item-action:focus { background: var(--fnb-hover) !important; }
  :root:not([data-theme="light"]) .alert-light, :root:not([data-theme="light"]) .alert-secondary { background: var(--fnb-neutral-bg) !important; color: var(--fnb-ink-2) !important; border-color: var(--fnb-neutral-bd) !important; }
  :root:not([data-theme="light"]) .alert-dark { background: #0A0E14 !important; color: var(--fnb-ink) !important; }
  :root:not([data-theme="light"]) .alert-primary, :root:not([data-theme="light"]) .alert-info { background: var(--fnb-info-bg) !important; color: var(--fnb-info) !important; border-color: var(--fnb-info-bd) !important; }
  :root:not([data-theme="light"]) .alert-success { background: var(--fnb-success-bg) !important; color: var(--fnb-success) !important; border-color: var(--fnb-success-bd) !important; }
  :root:not([data-theme="light"]) .alert-warning { background: var(--fnb-warning-bg) !important; color: var(--fnb-warning) !important; border-color: var(--fnb-warning-bd) !important; }
  :root:not([data-theme="light"]) .alert-danger { background: var(--fnb-danger-bg) !important; color: var(--fnb-danger) !important; border-color: var(--fnb-danger-bd) !important; }
  :root:not([data-theme="light"]) .alert :is(a:not(.btn), strong, b, h4, h5, h6, .alert-title) { color: inherit !important; }
  :root:not([data-theme="light"]) .alert-link { color: inherit !important; text-decoration: underline; }
  :root:not([data-theme="light"]) .progress { background-color: var(--fnb-neutral-bg) !important; }
  :root:not([data-theme="light"]) .progress-bar { background-color: var(--fnb-brand) !important; }
  
  /* 5. BUTTONS =============================================================== */
  :root:not([data-theme="light"]) .btn-primary, :root:not([data-theme="light"]) .btn-primary.disabled, :root:not([data-theme="light"]) .btn-primary:disabled,
  :root:not([data-theme="light"]) .btn-cta, :root:not([data-theme="light"]) .btn-cta-orange, :root:not([data-theme="light"]) .btn-pos-cta, :root:not([data-theme="light"]) .btn--primary,
  :root:not([data-theme="light"]) .btn-step-submit, :root:not([data-theme="light"]) .btn-step-next, :root:not([data-theme="light"]) .btn-next, :root:not([data-theme="light"]) .btn-change-plan,
  :root:not([data-theme="light"]) .btn-info, :root:not([data-theme="light"]) .fnb-btn-primary, :root:not([data-theme="light"]) .fx-btn.fx-btn--primary,
  :root:not([data-theme="light"]) .pmo .btn-primary, :root:not([data-theme="light"]) .pmo-btn-primary,
  :root:not([data-theme="light"]) body .btn.btn-cta-orange, :root:not([data-theme="light"]) body .btn.btn-cta-orange:focus, :root:not([data-theme="light"]) body .acc-btn.acc-btn-cta,
  :root:not([data-theme="light"]) body .fnb-pwa-install .fnb-pwa-install__btn,
  :root:not([data-theme="light"]) .swal2-styled.swal2-confirm {
    background-color: var(--fnb-fill-brand) !important; border-color: var(--fnb-fill-brand) !important; color: #fff !important;
  }
  :root:not([data-theme="light"]) .btn-primary:hover, :root:not([data-theme="light"]) .btn-primary:focus, :root:not([data-theme="light"]) .btn-primary:active, :root:not([data-theme="light"]) .btn-primary.active,
  :root:not([data-theme="light"]) .btn-cta:hover, :root:not([data-theme="light"]) .btn-cta-orange:hover, :root:not([data-theme="light"]) .btn-pos-cta:hover, :root:not([data-theme="light"]) .btn--primary:hover,
  :root:not([data-theme="light"]) .btn-step-submit:hover, :root:not([data-theme="light"]) .btn-step-next:hover, :root:not([data-theme="light"]) .btn-next:hover, :root:not([data-theme="light"]) .btn-change-plan:hover,
  :root:not([data-theme="light"]) .btn-info:hover, :root:not([data-theme="light"]) .btn-info:focus, :root:not([data-theme="light"]) .btn-info:active,
  :root:not([data-theme="light"]) body .btn.btn-cta-orange:hover, :root:not([data-theme="light"]) body .acc-btn.acc-btn-cta:hover {
    background-color: var(--fnb-fill-brand-hover) !important; border-color: var(--fnb-fill-brand-hover) !important; color: #fff !important;
  }
  :root:not([data-theme="light"]) .btn-primary *, :root:not([data-theme="light"]) .btn-info *, :root:not([data-theme="light"]) .fnb-btn-primary * { color: #fff !important; }
  :root:not([data-theme="light"]) .btn-danger, :root:not([data-theme="light"]) .btn-remove-shift, :root:not([data-theme="light"]) .btn-delete-question { background-color: var(--fnb-fill-danger) !important; border-color: var(--fnb-fill-danger) !important; color: #fff !important; }
  :root:not([data-theme="light"]) .btn-danger:hover, :root:not([data-theme="light"]) .btn-danger:focus, :root:not([data-theme="light"]) .btn-danger:active { background-color: var(--fnb-fill-danger-hover) !important; border-color: var(--fnb-fill-danger-hover) !important; color: #fff !important; }
  :root:not([data-theme="light"]) .btn-success { background-color: var(--fnb-fill-success) !important; border-color: var(--fnb-fill-success) !important; color: #fff !important; }
  :root:not([data-theme="light"]) .btn-success:hover, :root:not([data-theme="light"]) .btn-success:focus, :root:not([data-theme="light"]) .btn-success:active { background-color: var(--fnb-fill-success-hover) !important; border-color: var(--fnb-fill-success-hover) !important; color: #fff !important; }
  :root:not([data-theme="light"]) .btn-danger *, :root:not([data-theme="light"]) .btn-success * { color: #fff !important; }
  :root:not([data-theme="light"]) .btn-light, :root:not([data-theme="light"]) .btn-white, :root:not([data-theme="light"]) .btn.btn-white, :root:not([data-theme="light"]) .btn-secondary,
  :root:not([data-theme="light"]) .btn-outline-secondary, :root:not([data-theme="light"]) .btn-outline-dark, :root:not([data-theme="light"]) .btn-default, :root:not([data-theme="light"]) .btn-dark,
  :root:not([data-theme="light"]) .btn-warning, :root:not([data-theme="light"]) .export_download, :root:not([data-theme="light"]) .pmo .btn-light {
    background-color: var(--fnb-surface) !important; color: var(--fnb-ink-2) !important; border-color: var(--fnb-border-strong) !important;
  }
  :root:not([data-theme="light"]) .btn-light:hover, :root:not([data-theme="light"]) .btn-white:hover, :root:not([data-theme="light"]) .btn-secondary:hover, :root:not([data-theme="light"]) .btn-outline-secondary:hover,
  :root:not([data-theme="light"]) .btn-outline-dark:hover, :root:not([data-theme="light"]) .btn-default:hover, :root:not([data-theme="light"]) .btn-dark:hover, :root:not([data-theme="light"]) .btn-warning:hover, :root:not([data-theme="light"]) .export_download:hover {
    background-color: var(--fnb-hover) !important; color: var(--fnb-ink) !important;
  }
  :root:not([data-theme="light"]) .btn-outline-primary, :root:not([data-theme="light"]) .btn-outline-info { background: transparent !important; color: var(--fnb-brand-600) !important; border-color: #285085 !important; }
  :root:not([data-theme="light"]) .btn-outline-primary:hover, :root:not([data-theme="light"]) .btn-outline-info:hover { background: var(--fnb-brand-50) !important; color: var(--fnb-brand-700) !important; }
  :root:not([data-theme="light"]) .btn-outline-danger { background: transparent !important; }
  :root:not([data-theme="light"]) .btn-outline-success, :root:not([data-theme="light"]) .btn-outline-warning { background: transparent !important; }
  :root:not([data-theme="light"]) .btn-link { color: var(--fnb-brand-600) !important; }
  :root:not([data-theme="light"]) .close, :root:not([data-theme="light"]) button.close { color: var(--fnb-ink) !important; text-shadow: none !important; opacity: .85; }
  :root:not([data-theme="light"]) .btn:focus, :root:not([data-theme="light"]) .btn:focus-visible { box-shadow: var(--fnb-focus) !important; }
  
  /* 6. FORMS ================================================================= */
  :root:not([data-theme="light"]) .form-control, :root:not([data-theme="light"]) .custom-select, :root:not([data-theme="light"]) select.form-control, :root:not([data-theme="light"]) textarea.form-control,
  :root:not([data-theme="light"]) input[type="text"], :root:not([data-theme="light"]) input[type="email"], :root:not([data-theme="light"]) input[type="number"], :root:not([data-theme="light"]) input[type="tel"],
  :root:not([data-theme="light"]) input[type="password"], :root:not([data-theme="light"]) input[type="search"], :root:not([data-theme="light"]) input[type="date"], :root:not([data-theme="light"]) input[type="time"],
  :root:not([data-theme="light"]) input[type="datetime-local"], :root:not([data-theme="light"]) input[type="url"], :root:not([data-theme="light"]) input[type="month"], :root:not([data-theme="light"]) select, :root:not([data-theme="light"]) textarea {
    background-color: #0F151E !important; color: var(--fnb-ink) !important; border-color: var(--fnb-border-strong) !important;
  }
  :root:not([data-theme="light"]) .form-control:focus, :root:not([data-theme="light"]) .custom-select:focus { border-color: var(--fnb-brand) !important; box-shadow: var(--fnb-focus) !important; }
  :root:not([data-theme="light"]) .form-control::placeholder, :root:not([data-theme="light"]) input::placeholder, :root:not([data-theme="light"]) textarea::placeholder { color: #8C97A7 !important; opacity: 1; }
  :root:not([data-theme="light"]) .form-control:disabled, :root:not([data-theme="light"]) .form-control[readonly], :root:not([data-theme="light"]) select:disabled, :root:not([data-theme="light"]) input:disabled { background-color: #1A212C !important; color: var(--fnb-muted) !important; }
  :root:not([data-theme="light"]) .custom-select, :root:not([data-theme="light"]) select.form-control:not([multiple]) {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23CBD3DE' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important; background-position: right .75rem center !important; background-size: 8px 10px !important;
  }
  :root:not([data-theme="light"]) label, :root:not([data-theme="light"]) .form-label, :root:not([data-theme="light"]) .col-form-label, :root:not([data-theme="light"]) .control-label { color: var(--fnb-ink-2); }
  :root:not([data-theme="light"]) .form-text, :root:not([data-theme="light"]) .help-block, :root:not([data-theme="light"]) .form-group small { color: var(--fnb-muted); }
  :root:not([data-theme="light"]) .input-group-text, :root:not([data-theme="light"]) .input-group-prepend .btn, :root:not([data-theme="light"]) .input-group-append .btn:not(.btn-primary):not(.btn-danger):not(.btn-success) {
    background-color: var(--fnb-hover) !important; color: var(--fnb-ink-2) !important; border-color: var(--fnb-border-strong) !important;
  }
  :root:not([data-theme="light"]) .custom-control-label::before { background-color: #0F151E !important; border-color: var(--fnb-border-strong) !important; }
  :root:not([data-theme="light"]) .custom-control-input:checked ~ .custom-control-label::before,
  :root:not([data-theme="light"]) .custom-switch-input:checked ~ .custom-switch-indicator { background-color: var(--fnb-fill-brand) !important; border-color: var(--fnb-fill-brand) !important; }
  :root:not([data-theme="light"]) .custom-switch-indicator { background: var(--fnb-neutral-bg) !important; border-color: var(--fnb-border-strong) !important; }
  :root:not([data-theme="light"]) .custom-switch-description { color: var(--fnb-ink-2) !important; }
  :root:not([data-theme="light"]) .custom-file-label { background-color: #0F151E !important; color: var(--fnb-ink-2) !important; border-color: var(--fnb-border-strong) !important; }
  :root:not([data-theme="light"]) .custom-file-label::after { background-color: var(--fnb-hover) !important; color: var(--fnb-ink-2) !important; }
  :root:not([data-theme="light"]) .selectgroup-button { background: var(--fnb-surface) !important; color: var(--fnb-ink-2) !important; border-color: var(--fnb-border-strong) !important; }
  :root:not([data-theme="light"]) .selectgroup-input:checked + .selectgroup-button { background: var(--fnb-fill-brand) !important; color: #fff !important; border-color: var(--fnb-fill-brand) !important; }
  :root:not([data-theme="light"]) .invalid-feedback, :root:not([data-theme="light"]) .text-danger, :root:not([data-theme="light"]) .error, :root:not([data-theme="light"]) label.error { color: var(--fnb-danger) !important; }
  :root:not([data-theme="light"]) .is-invalid { border-color: var(--fnb-danger) !important; }
  /* select2 */
  :root:not([data-theme="light"]) .select2-container--default .select2-selection--single,
  :root:not([data-theme="light"]) .select2-container--default .select2-selection--multiple,
  :root:not([data-theme="light"]) .select2-dropdown, :root:not([data-theme="light"]) .select2-container--default .select2-search--dropdown .select2-search__field {
    background-color: #0F151E !important; color: var(--fnb-ink) !important; border-color: var(--fnb-border-strong) !important;
  }
  :root:not([data-theme="light"]) .select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--fnb-ink) !important; }
  :root:not([data-theme="light"]) .select2-container--default .select2-selection--single .select2-selection__placeholder { color: #8C97A7 !important; }
  :root:not([data-theme="light"]) .select2-container--default .select2-selection--single .select2-selection__arrow b { border-color: #CBD3DE transparent transparent transparent !important; }
  :root:not([data-theme="light"]) .select2-results__option { color: var(--fnb-ink-2) !important; background: transparent; }
  :root:not([data-theme="light"]) .select2-container--default .select2-results__option[aria-selected="true"],
  :root:not([data-theme="light"]) .select2-container--default .select2-results__option--selected { background-color: var(--fnb-brand-100) !important; color: var(--fnb-ink) !important; }
  :root:not([data-theme="light"]) .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable,
  :root:not([data-theme="light"]) .select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--fnb-fill-brand) !important; color: #fff !important; }
  :root:not([data-theme="light"]) .select2-container--default .select2-selection--multiple .select2-selection__choice { background: var(--fnb-neutral-bg) !important; color: var(--fnb-ink-2) !important; border-color: var(--fnb-neutral-bd) !important; }
  :root:not([data-theme="light"]) .select2-container--default .select2-selection--multiple .select2-selection__choice__remove { color: var(--fnb-ink-2) !important; }
  :root:not([data-theme="light"]) .select2-container--default.select2-container--disabled .select2-selection--single { background-color: #1A212C !important; }
  /* tagify, filepond, dropzone, summernote, quill */
  :root:not([data-theme="light"]) .tagify { background: #0F151E !important; border-color: var(--fnb-border-strong) !important; --tags-border-color: var(--fnb-border-strong); --tag-bg: #232B37; --tag-hover: #2A3342; --tag-text-color: #DCE3EC; --input-color: #EEF2F7; --placeholder-color: #8C97A7; --tag-remove-btn-color: #DCE3EC; }
  :root:not([data-theme="light"]) .tagify__dropdown__wrapper { background: var(--fnb-surface) !important; border-color: var(--fnb-border) !important; }
  :root:not([data-theme="light"]) .tagify__dropdown__item { color: var(--fnb-ink-2) !important; }
  :root:not([data-theme="light"]) .filepond--panel-root { background: var(--fnb-hover) !important; }
  :root:not([data-theme="light"]) .filepond--drop-label, :root:not([data-theme="light"]) .filepond--drop-label label { color: var(--fnb-ink-2) !important; }
  :root:not([data-theme="light"]) .filepond--label-action { text-decoration-color: var(--fnb-brand-600); color: var(--fnb-brand-600); }
  :root:not([data-theme="light"]) .dropzone, :root:not([data-theme="light"]) .dropzone .dz-message { background: var(--fnb-hover) !important; color: var(--fnb-ink-2) !important; }
  :root:not([data-theme="light"]) .note-editor.note-frame, :root:not([data-theme="light"]) .note-editor .note-toolbar, :root:not([data-theme="light"]) .note-editor .note-statusbar,
  :root:not([data-theme="light"]) .note-editor .note-editing-area .note-editable, :root:not([data-theme="light"]) .note-popover .popover-content, :root:not([data-theme="light"]) .note-dropdown-menu {
    background: var(--fnb-surface) !important; color: var(--fnb-ink) !important; border-color: var(--fnb-border-strong) !important;
  }
  :root:not([data-theme="light"]) .note-btn, :root:not([data-theme="light"]) .note-editor .note-btn { background: var(--fnb-hover) !important; color: var(--fnb-ink-2) !important; border-color: var(--fnb-border-strong) !important; }
  :root:not([data-theme="light"]) .tox .tox-edit-area__iframe { background: #fff; }
  :root:not([data-theme="light"]) .ql-toolbar.ql-snow, :root:not([data-theme="light"]) .ql-container.ql-snow { border-color: var(--fnb-border-strong) !important; background: var(--fnb-surface); color: var(--fnb-ink); }
  :root:not([data-theme="light"]) .ql-snow .ql-stroke { stroke: #CBD3DE !important; }
  :root:not([data-theme="light"]) .ql-snow .ql-fill { fill: #CBD3DE !important; }
  :root:not([data-theme="light"]) .ql-snow .ql-picker { color: #CBD3DE !important; }
  /* date pickers */
  :root:not([data-theme="light"]) .daterangepicker, :root:not([data-theme="light"]) .daterangepicker .calendar-table, :root:not([data-theme="light"]) .datepicker, :root:not([data-theme="light"]) .datepicker-dropdown,
  :root:not([data-theme="light"]) .bootstrap-timepicker-widget, :root:not([data-theme="light"]) .flatpickr-calendar {
    background: var(--fnb-surface) !important; color: var(--fnb-ink-2) !important; border-color: var(--fnb-border) !important;
  }
  :root:not([data-theme="light"]) .daterangepicker td.off, :root:not([data-theme="light"]) .daterangepicker td.off.in-range { background: transparent !important; color: #6E7989 !important; }
  :root:not([data-theme="light"]) .daterangepicker td.available:hover, :root:not([data-theme="light"]) .daterangepicker th.available:hover { background: var(--fnb-hover) !important; color: var(--fnb-ink) !important; }
  :root:not([data-theme="light"]) .daterangepicker td.in-range { background: var(--fnb-brand-50) !important; color: var(--fnb-ink) !important; }
  :root:not([data-theme="light"]) .daterangepicker td.active, :root:not([data-theme="light"]) .daterangepicker td.active:hover { background: var(--fnb-fill-brand) !important; color: #fff !important; }
  :root:not([data-theme="light"]) .daterangepicker .ranges li:hover { background: var(--fnb-hover) !important; }
  :root:not([data-theme="light"]) .daterangepicker .ranges li.active { background: var(--fnb-fill-brand) !important; color: #fff !important; }
  :root:not([data-theme="light"]) .daterangepicker select { background: #0F151E !important; color: var(--fnb-ink) !important; }
  :root:not([data-theme="light"]) .daterangepicker .calendar-table .next span, :root:not([data-theme="light"]) .daterangepicker .calendar-table .prev span { border-color: #CBD3DE !important; }
  :root:not([data-theme="light"]) .daterangepicker:before, :root:not([data-theme="light"]) .daterangepicker:after { border-bottom-color: var(--fnb-surface) !important; }
  :root:not([data-theme="light"]) .daterangepicker .drp-buttons { border-top-color: var(--fnb-border) !important; }
  :root:not([data-theme="light"]) .daterangepicker.show-calendar .ranges { border-right-color: var(--fnb-border) !important; }
  :root:not([data-theme="light"]) input[type="date"]::-webkit-calendar-picker-indicator,
  :root:not([data-theme="light"]) input[type="time"]::-webkit-calendar-picker-indicator,
  :root:not([data-theme="light"]) input[type="datetime-local"]::-webkit-calendar-picker-indicator,
  :root:not([data-theme="light"]) input[type="month"]::-webkit-calendar-picker-indicator { filter: invert(.85); }
  
  /* 7. BADGES, CHIPS ========================================================= */
  :root:not([data-theme="light"]) .badge-light, :root:not([data-theme="light"]) .badge-secondary, :root:not([data-theme="light"]) .badge-default { background: var(--fnb-neutral-bg) !important; color: var(--fnb-ink-2) !important; border-color: var(--fnb-neutral-bd) !important; }
  :root:not([data-theme="light"]) .badge-dark { background: #0A0E14 !important; color: var(--fnb-ink) !important; }
  :root:not([data-theme="light"]) .badge-primary, :root:not([data-theme="light"]) .badge-info { background: var(--fnb-info-bg) !important; color: var(--fnb-info) !important; border-color: var(--fnb-info-bd) !important; }
  :root:not([data-theme="light"]) .badge-success { background: var(--fnb-success-bg) !important; color: var(--fnb-success) !important; border-color: var(--fnb-success-bd) !important; }
  :root:not([data-theme="light"]) .badge-warning { background: var(--fnb-warning-bg) !important; color: var(--fnb-warning) !important; border-color: var(--fnb-warning-bd) !important; }
  :root:not([data-theme="light"]) .badge-danger { background: var(--fnb-danger-bg) !important; color: var(--fnb-danger) !important; border-color: var(--fnb-danger-bd) !important; }
  /* Counter dots in the top bar / sidebar stay solid (white on a dark-enough red/blue). */
  /* Count badges in the top bar are red; the neutral role chip (.badge-light: "Accounting office", "Property manager") is not an alert (UX audit 2026-10-24). */
  :root:not([data-theme="light"]) .main-navbar .badge:not(.badge-light), :root:not([data-theme="light"]) .main-sidebar .badge.badge-danger, :root:not([data-theme="light"]) .notification-badge,
  :root:not([data-theme="light"]) .pmo-bell-badge { background: #D93A30 !important; color: #fff !important; border-color: transparent !important; }
  :root:not([data-theme="light"]) .main-sidebar .badge.badge-primary, :root:not([data-theme="light"]) .main-sidebar .badge.badge-info { background: var(--fnb-fill-brand) !important; color: #fff !important; }
  /* Account-status pills in the top bar (Supplier "Approved distributor", PM status...) are not
     counters: the red above painted "Approved" red in dark mode (UX audit 2026-10-24). */
  :root:not([data-theme="light"]) .main-navbar .badge.badge-info { background: var(--fnb-info-bg) !important; color: var(--fnb-info) !important; border-color: var(--fnb-info-bd) !important; }
  :root:not([data-theme="light"]) .main-navbar .badge.badge-success { background: var(--fnb-success-bg) !important; color: var(--fnb-success) !important; border-color: var(--fnb-success-bd) !important; }
  :root:not([data-theme="light"]) .main-navbar .badge.badge-warning { background: var(--fnb-warning-bg) !important; color: var(--fnb-warning) !important; border-color: var(--fnb-warning-bd) !important; }
  :root:not([data-theme="light"]) .main-navbar .badge.badge-secondary { background: #2A3342 !important; color: #DCE3EC !important; border-color: transparent !important; }
  :root:not([data-theme="light"]) .pmo-chip .pmo-count { background: #2A3342; color: #DCE3EC; }
  :root:not([data-theme="light"]) .pmo-chip { color: var(--fnb-ink-2); }
  
  /* 8. TABS, BREADCRUMBS, PAGINATION, DROPDOWNS ============================== */
  :root:not([data-theme="light"]) .nav-tabs { border-bottom-color: var(--fnb-border) !important; }
  :root:not([data-theme="light"]) .nav-tabs .nav-link { color: var(--fnb-muted) !important; background: transparent !important; border-color: transparent !important; }
  :root:not([data-theme="light"]) .nav-tabs .nav-link:hover { color: var(--fnb-ink) !important; border-color: var(--fnb-border) var(--fnb-border) transparent !important; }
  :root:not([data-theme="light"]) .nav-tabs .nav-link.active, :root:not([data-theme="light"]) .nav-tabs .nav-item.show .nav-link {
    color: var(--fnb-brand-600) !important; background: var(--fnb-surface) !important; border-color: var(--fnb-border) var(--fnb-border) var(--fnb-surface) !important;
  }
  :root:not([data-theme="light"]) .nav-pills .nav-link { color: var(--fnb-ink-2) !important; }
  :root:not([data-theme="light"]) .nav-pills .nav-link.active, :root:not([data-theme="light"]) .nav-pills .show > .nav-link { background: var(--fnb-fill-brand) !important; color: #fff !important; }
  :root:not([data-theme="light"]) .nav-pills .nav-link.active * { color: #fff !important; }
  :root:not([data-theme="light"]) .breadcrumb { background: transparent !important; }
  :root:not([data-theme="light"]) .breadcrumb-item, :root:not([data-theme="light"]) .breadcrumb-item + .breadcrumb-item::before { color: var(--fnb-muted) !important; }
  :root:not([data-theme="light"]) .page-link { background: var(--fnb-surface) !important; color: var(--fnb-ink-2) !important; border-color: var(--fnb-border) !important; }
  :root:not([data-theme="light"]) .page-link:hover { background: var(--fnb-hover) !important; color: var(--fnb-ink) !important; }
  :root:not([data-theme="light"]) .page-item.active .page-link { background: var(--fnb-fill-brand) !important; border-color: var(--fnb-fill-brand) !important; color: #fff !important; }
  :root:not([data-theme="light"]) .page-item.disabled .page-link { background: var(--fnb-canvas) !important; color: var(--fnb-muted) !important; }
  :root:not([data-theme="light"]) .dropdown-menu, :root:not([data-theme="light"]) .dropdown-menu .dropdown-title, :root:not([data-theme="light"]) .dropdown-list .dropdown-header, :root:not([data-theme="light"]) .dropdown-list .dropdown-footer {
    background: var(--fnb-surface) !important; color: var(--fnb-ink-2) !important; border-color: var(--fnb-border) !important;
  }
  :root:not([data-theme="light"]) .dropdown-item, :root:not([data-theme="light"]) .dropdown-menu a:not(.btn) { color: var(--fnb-ink-2) !important; }
  :root:not([data-theme="light"]) .dropdown-item:hover, :root:not([data-theme="light"]) .dropdown-item:focus, :root:not([data-theme="light"]) .dropdown-menu a:not(.btn):hover { background: var(--fnb-hover) !important; color: var(--fnb-ink) !important; }
  :root:not([data-theme="light"]) .dropdown-item.active, :root:not([data-theme="light"]) .dropdown-item:active { background: var(--fnb-fill-brand) !important; color: #fff !important; }
  :root:not([data-theme="light"]) .dropdown-list .dropdown-item.dropdown-item-unread { background: var(--fnb-brand-50) !important; }
  :root:not([data-theme="light"]) .dropdown-list .dropdown-item .time { color: var(--fnb-muted) !important; }
  :root:not([data-theme="light"]) .dropdown-menu .dropdown-header, :root:not([data-theme="light"]) .dropdown-header { color: var(--fnb-muted) !important; }
  :root:not([data-theme="light"]) .tooltip-inner { background: #2A3342 !important; color: #EEF2F7 !important; }
  :root:not([data-theme="light"]) .bs-tooltip-top .arrow::before, :root:not([data-theme="light"]) .bs-tooltip-auto[x-placement^="top"] .arrow::before { border-top-color: #2A3342 !important; }
  :root:not([data-theme="light"]) .bs-tooltip-bottom .arrow::before, :root:not([data-theme="light"]) .bs-tooltip-auto[x-placement^="bottom"] .arrow::before { border-bottom-color: #2A3342 !important; }
  :root:not([data-theme="light"]) .bs-tooltip-left .arrow::before { border-left-color: #2A3342 !important; }
  :root:not([data-theme="light"]) .bs-tooltip-right .arrow::before { border-right-color: #2A3342 !important; }
  :root:not([data-theme="light"]) .popover, :root:not([data-theme="light"]) .popover-body, :root:not([data-theme="light"]) .popover-header { background: var(--fnb-raised) !important; color: var(--fnb-ink-2) !important; border-color: var(--fnb-border) !important; }
  :root:not([data-theme="light"]) .popover .arrow::after { border-top-color: var(--fnb-raised) !important; border-bottom-color: var(--fnb-raised) !important; }
  
  /* 9. MODALS, TOASTS ======================================================== */
  :root:not([data-theme="light"]) .modal-content, :root:not([data-theme="light"]) .modal-header, :root:not([data-theme="light"]) .modal-body, :root:not([data-theme="light"]) .modal-footer {
    background: var(--fnb-surface) !important; color: var(--fnb-ink-2) !important; border-color: var(--fnb-border) !important;
  }
  :root:not([data-theme="light"]) .modal-title { color: var(--fnb-ink) !important; }
  :root:not([data-theme="light"]) .modal-backdrop.show { opacity: .7; }
  :root:not([data-theme="light"]) .swal2-popup, :root:not([data-theme="light"]) .swal2-modal { background: var(--fnb-surface) !important; color: var(--fnb-ink-2) !important; }
  :root:not([data-theme="light"]) .swal2-title, :root:not([data-theme="light"]) .swal2-html-container, :root:not([data-theme="light"]) .swal2-content { color: var(--fnb-ink) !important; }
  :root:not([data-theme="light"]) .swal2-styled.swal2-cancel, :root:not([data-theme="light"]) .swal2-styled.swal2-deny { background: var(--fnb-hover) !important; color: var(--fnb-ink) !important; border-color: var(--fnb-border-strong) !important; }
  :root:not([data-theme="light"]) .swal2-input, :root:not([data-theme="light"]) .swal2-textarea, :root:not([data-theme="light"]) .swal2-select { background: #0F151E !important; color: var(--fnb-ink) !important; border-color: var(--fnb-border-strong) !important; }
  :root:not([data-theme="light"]) .swal2-icon.swal2-question, :root:not([data-theme="light"]) .swal2-icon.swal2-info { border-color: #7DB7FF !important; color: #7DB7FF !important; }
  :root:not([data-theme="light"]) .swal-modal, :root:not([data-theme="light"]) .swal-text, :root:not([data-theme="light"]) .swal-title { background-color: var(--fnb-surface) !important; color: var(--fnb-ink) !important; }
  :root:not([data-theme="light"]) .iziToast { background: var(--fnb-raised) !important; border-color: var(--fnb-border) !important; box-shadow: var(--fnb-e3) !important; }
  :root:not([data-theme="light"]) .iziToast > .iziToast-body .iziToast-title, :root:not([data-theme="light"]) .iziToast > .iziToast-body .iziToast-message,
  :root:not([data-theme="light"]) .iziToast > .iziToast-body .iziToast-texts { color: var(--fnb-ink) !important; }
  :root:not([data-theme="light"]) .iziToast > .iziToast-close { filter: invert(1) brightness(1.6); }
  :root:not([data-theme="light"]) .iziToast-color-green, :root:not([data-theme="light"]) .iziToast.iziToast-color-green { border-left-color: #2FAF72 !important; }
  :root:not([data-theme="light"]) .iziToast-color-red, :root:not([data-theme="light"]) .iziToast.iziToast-color-red { border-left-color: #E5534B !important; }
  :root:not([data-theme="light"]) .toast, :root:not([data-theme="light"]) .toast-header { background: var(--fnb-raised) !important; color: var(--fnb-ink) !important; border-color: var(--fnb-border) !important; }
  
  /* 10. TABLES =============================================================== */
  :root:not([data-theme="light"]) .table, :root:not([data-theme="light"]) .table td, :root:not([data-theme="light"]) .table th { color: var(--fnb-ink-2) !important; border-color: var(--fnb-border) !important; background-color: transparent; }
  :root:not([data-theme="light"]) .table thead th, :root:not([data-theme="light"]) .table:not(.table-sm) thead th, :root:not([data-theme="light"]) .bootstrap-table .fixed-table-container .table thead th,
  :root:not([data-theme="light"]) .fixed-table-header, :root:not([data-theme="light"]) .table thead.thead-light th, :root:not([data-theme="light"]) table.dataTable thead th {
    background-color: #1A212C !important; color: var(--fnb-ink) !important; border-color: var(--fnb-border) !important;
  }
  :root:not([data-theme="light"]) .table-hover tbody tr:hover, :root:not([data-theme="light"]) .table tbody tr:hover { background-color: var(--fnb-hover) !important; }
  :root:not([data-theme="light"]) .table-striped tbody tr:nth-of-type(odd) { background-color: rgba(255,255,255,.025) !important; }
  :root:not([data-theme="light"]) .bootstrap-table .fixed-table-container, :root:not([data-theme="light"]) .bootstrap-table .fixed-table-container .fixed-table-body,
  :root:not([data-theme="light"]) .bootstrap-table .fixed-table-container .fixed-table-footer, :root:not([data-theme="light"]) .fixed-table-toolbar,
  :root:not([data-theme="light"]) .bootstrap-table .fixed-table-pagination, :root:not([data-theme="light"]) .fixed-columns, :root:not([data-theme="light"]) .fixed-columns-right,
  :root:not([data-theme="light"]) .fixed-columns .fixed-table-body, :root:not([data-theme="light"]) .fixed-columns-right .fixed-table-body {
    background-color: var(--fnb-surface) !important; color: var(--fnb-ink-2) !important; border-color: var(--fnb-border) !important;
  }
  :root:not([data-theme="light"]) .fixed-columns tbody td, :root:not([data-theme="light"]) .fixed-columns-right tbody td,
  :root:not([data-theme="light"]) .fnb-scrolls > .table tbody td.fnb-col-actions, :root:not([data-theme="light"]) .table td.fnb-col-actions { background-color: var(--fnb-surface) !important; }
  :root:not([data-theme="light"]) .fnb-scrolls > .table thead th.fnb-col-actions, :root:not([data-theme="light"]) .fnb-scrolls > table thead th.fnb-col-actions { background-color: #1A212C !important; }
  :root:not([data-theme="light"]) .fnb-scrolls > .table tbody tr:hover td.fnb-col-actions { background-color: var(--fnb-hover) !important; }
  :root:not([data-theme="light"]) .bootstrap-table .fixed-table-container .fixed-table-loading,
  :root:not([data-theme="light"]) .bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading { background: var(--fnb-surface) !important; color: var(--fnb-ink-2) !important; }
  :root:not([data-theme="light"]) .bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading .loading-wrap .animation-dot,
  :root:not([data-theme="light"]) .bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading .loading-wrap .animation-wrap::after,
  :root:not([data-theme="light"]) .bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading .loading-wrap .animation-wrap::before { background: var(--fnb-ink-2) !important; }
  :root:not([data-theme="light"]) .bootstrap-table .fixed-table-pagination .pagination-detail, :root:not([data-theme="light"]) .pagination-info { color: var(--fnb-muted) !important; }
  :root:not([data-theme="light"]) .bootstrap-table .fixed-table-toolbar .columns .dropdown-menu label { color: var(--fnb-ink-2) !important; }
  :root:not([data-theme="light"]) .table .no-records-found td, :root:not([data-theme="light"]) .dataTables_empty { color: var(--fnb-muted) !important; }
  :root:not([data-theme="light"]) .dataTables_wrapper .dataTables_info, :root:not([data-theme="light"]) .dataTables_wrapper .dataTables_length, :root:not([data-theme="light"]) .dataTables_wrapper .dataTables_filter { color: var(--fnb-muted) !important; }
  :root:not([data-theme="light"]) .dataTables_wrapper .dataTables_paginate .paginate_button { color: var(--fnb-ink-2) !important; background: transparent !important; border-color: var(--fnb-border) !important; }
  :root:not([data-theme="light"]) .dataTables_wrapper .dataTables_paginate .paginate_button.current { background: var(--fnb-fill-brand) !important; color: #fff !important; }
  :root:not([data-theme="light"]) table.dataTable tbody tr { background-color: transparent !important; }
  /* phone card mode */
  :root:not([data-theme="light"]) .table.fnb-cards tbody tr { background: var(--fnb-surface) !important; border-color: var(--fnb-border) !important; }
  /* skeleton + image placeholders */
  :root:not([data-theme="light"]) .fnb-skeleton, :root:not([data-theme="light"]) .pmo-skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0) 0, rgba(255,255,255,.06) 50%, rgba(255,255,255,0) 100%), repeating-linear-gradient(180deg, transparent 0 18px, #222A36 18px 30px, transparent 30px 56px) !important;
  }
  :root:not([data-theme="light"]) .table td img.fnb-img-missing, :root:not([data-theme="light"]) .fnb-img-missing { background-color: #222A36 !important; }
  
  /* 11. CHARTS =============================================================== */
  :root:not([data-theme="light"]) .apexcharts-canvas text, :root:not([data-theme="light"]) .apexcharts-text, :root:not([data-theme="light"]) .apexcharts-text tspan,
  :root:not([data-theme="light"]) .apexcharts-xaxis-label, :root:not([data-theme="light"]) .apexcharts-yaxis-label, :root:not([data-theme="light"]) .apexcharts-datalabel-label,
  :root:not([data-theme="light"]) .apexcharts-datalabel-value { fill: #B8C2CF !important; }
  :root:not([data-theme="light"]) .apexcharts-title-text, :root:not([data-theme="light"]) .apexcharts-subtitle-text { fill: #EEF2F7 !important; }
  :root:not([data-theme="light"]) .apexcharts-legend-text { color: #CBD3DE !important; }
  :root:not([data-theme="light"]) .apexcharts-gridline, :root:not([data-theme="light"]) .apexcharts-grid line, :root:not([data-theme="light"]) .apexcharts-xaxis-tick,
  :root:not([data-theme="light"]) .apexcharts-xaxis line, :root:not([data-theme="light"]) .apexcharts-yaxis line { stroke: #2A3342 !important; }
  :root:not([data-theme="light"]) .apexcharts-tooltip, :root:not([data-theme="light"]) .apexcharts-tooltip.apexcharts-theme-light { background: #1B2330 !important; color: #EEF2F7 !important; border-color: #2A3342 !important; box-shadow: var(--fnb-e3) !important; }
  :root:not([data-theme="light"]) .apexcharts-tooltip-title, :root:not([data-theme="light"]) .apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title { background: #232B37 !important; border-color: #2A3342 !important; color: #EEF2F7 !important; }
  :root:not([data-theme="light"]) .apexcharts-xaxistooltip, :root:not([data-theme="light"]) .apexcharts-yaxistooltip { background: #1B2330 !important; color: #EEF2F7 !important; border-color: #2A3342 !important; }
  :root:not([data-theme="light"]) .apexcharts-menu { background: var(--fnb-surface) !important; border-color: var(--fnb-border) !important; }
  :root:not([data-theme="light"]) .apexcharts-menu-item:hover { background: var(--fnb-hover) !important; }
  :root:not([data-theme="light"]) .apexcharts-pie-area, :root:not([data-theme="light"]) .apexcharts-donut-slice { stroke: var(--fnb-surface) !important; }
  :root:not([data-theme="light"]) .apexcharts-radialbar-track path { stroke: #232B37 !important; }
  
  /* 12. CALENDARS, MAPS, CHAT ================================================ */
  :root:not([data-theme="light"]) .fc, :root:not([data-theme="light"]) .fc-view-container, :root:not([data-theme="light"]) .fc-toolbar { color: var(--fnb-ink-2); }
  :root:not([data-theme="light"]) .fc-unthemed th, :root:not([data-theme="light"]) .fc-unthemed td, :root:not([data-theme="light"]) .fc-unthemed thead, :root:not([data-theme="light"]) .fc-unthemed tbody,
  :root:not([data-theme="light"]) .fc-unthemed .fc-divider, :root:not([data-theme="light"]) .fc-unthemed .fc-row, :root:not([data-theme="light"]) .fc-unthemed .fc-content, :root:not([data-theme="light"]) .fc-unthemed .fc-popover,
  :root:not([data-theme="light"]) .fc-theme-standard td, :root:not([data-theme="light"]) .fc-theme-standard th, :root:not([data-theme="light"]) .fc-theme-standard .fc-scrollgrid { border-color: var(--fnb-border) !important; }
  :root:not([data-theme="light"]) .fc-unthemed td.fc-today, :root:not([data-theme="light"]) .fc .fc-daygrid-day.fc-day-today { background: var(--fnb-brand-50) !important; }
  :root:not([data-theme="light"]) .fc-unthemed .fc-popover, :root:not([data-theme="light"]) .fc .fc-popover { background: var(--fnb-surface) !important; }
  :root:not([data-theme="light"]) .fc th, :root:not([data-theme="light"]) .fc-col-header-cell { background: #1A212C !important; color: var(--fnb-ink) !important; }
  :root:not([data-theme="light"]) .fc-button, :root:not([data-theme="light"]) .fc .fc-button-primary { background: var(--fnb-surface) !important; color: var(--fnb-ink-2) !important; border-color: var(--fnb-border-strong) !important; }
  :root:not([data-theme="light"]) .fc .fc-button-primary:not(:disabled).fc-button-active, :root:not([data-theme="light"]) .fc-state-active { background: var(--fnb-fill-brand) !important; color: #fff !important; }
  :root:not([data-theme="light"]) .chat-box .chat-content .chat-item .chat-details .chat-text, :root:not([data-theme="light"]) .chat-box .chat-form, :root:not([data-theme="light"]) .chat-box .chat-form .form-control { background: var(--fnb-hover) !important; color: var(--fnb-ink) !important; }
  :root:not([data-theme="light"]) .chat-box .chat-content .chat-item.chat-right .chat-details .chat-text { background: var(--fnb-fill-brand) !important; color: #fff !important; }
  :root:not([data-theme="light"]) .gm-style .gm-style-iw-c, :root:not([data-theme="light"]) .gm-style .gm-style-iw-d { color: #0D131B; }
  
  /* 13. SIGN-IN SCREENS ====================================================== */
  :root:not([data-theme="light"]) body .auth .card, :root:not([data-theme="light"]) body .login-brand + .card, :root:not([data-theme="light"]) body .card.card-primary,
  :root:not([data-theme="light"]) body .employee-login-card, :root:not([data-theme="light"]) body .acc-auth-card, :root:not([data-theme="light"]) body .login-card, :root:not([data-theme="light"]) body .auth-card {
    background: var(--fnb-surface) !important; color: var(--fnb-ink-2) !important; border-color: var(--fnb-border) !important;
  }
  :root:not([data-theme="light"]) body .login-type-toggle { background: var(--fnb-canvas) !important; border-color: var(--fnb-border) !important; }
  :root:not([data-theme="light"]) body .login-type-toggle .btn { color: var(--fnb-ink-2) !important; background: transparent !important; }
  :root:not([data-theme="light"]) body .login-type-toggle .btn.active { background: var(--fnb-surface) !important; color: var(--fnb-brand-600) !important; }
  :root:not([data-theme="light"]) .lang-switcher .dropdown-toggle, :root:not([data-theme="light"]) .fnb-lang-switch .btn { background: var(--fnb-surface) !important; color: var(--fnb-ink-2) !important; border-color: var(--fnb-border-strong) !important; }
  
  /* 14. INLINE-STYLE SAFETY NET =============================================== */
  /* Page markup with hard-coded light surfaces / dark text in style="" (both
     spellings, with and without the space). Images are excluded. */
  :root:not([data-theme="light"]) :is([style*="background:#fff"], [style*="background: #fff"], [style*="background-color:#fff"], [style*="background-color: #fff"],
    [style*="background:#FFF"], [style*="background: #FFF"], [style*="background-color:#FFF"], [style*="background-color: #FFF"],
    [style*="background:white"], [style*="background: white"], [style*="background-color:white"], [style*="background-color: white"],
    [style*="background:#ffffff"], [style*="background: #ffffff"], [style*="background-color:#ffffff"], [style*="background-color: #ffffff"],
    [style*="background:#FFFFFF"], [style*="background: #FFFFFF"], [style*="background-color: #FFFFFF"]):not(img):not(svg):not(canvas):not(video) {
    background-color: var(--fnb-surface) !important;
  }
  :root:not([data-theme="light"]) :is([style*="background:#f8f9fa"], [style*="background: #f8f9fa"], [style*="background-color:#f8f9fa"], [style*="background-color: #f8f9fa"],
    [style*="background:#f5f5f5"], [style*="background: #f5f5f5"], [style*="background-color:#f5f5f5"], [style*="background-color: #f5f5f5"],
    [style*="background:#fafafa"], [style*="background: #fafafa"], [style*="background-color:#fafafa"], [style*="background-color: #fafafa"],
    [style*="background:#F4F7FB"], [style*="background: #F4F7FB"], [style*="background:#f4f7fb"], [style*="background: #f4f7fb"],
    [style*="background:#f1f5f9"], [style*="background: #f1f5f9"], [style*="background:#f8fafc"], [style*="background: #f8fafc"],
    [style*="background:#F7F9FC"], [style*="background: #F7F9FC"], [style*="background:#f7f9fc"], [style*="background: #f7f9fc"],
    [style*="background:#eef"], [style*="background: #eef"], [style*="background:#EEF"], [style*="background: #EEF"],
    [style*="background:#f0f"], [style*="background: #f0f"], [style*="background:#F0F"], [style*="background: #F0F"],
    [style*="background:#f2f"], [style*="background: #f2f"], [style*="background:#F2F"], [style*="background: #F2F"]):not(img):not(svg):not(canvas):not(video) {
    background-color: var(--fnb-hover) !important;
  }
  :root:not([data-theme="light"]) :is([style*="color:#000"], [style*="color: #000"], [style*="color:black"], [style*="color: black"],
    [style*="color:#111"], [style*="color: #111"], [style*="color:#222"], [style*="color: #222"], [style*="color:#333"], [style*="color: #333"],
    [style*="color:#212529"], [style*="color: #212529"], [style*="color:#0D131B"], [style*="color: #0D131B"], [style*="color:#0d131b"], [style*="color: #0d131b"],
    [style*="color:#1f2937"], [style*="color: #1f2937"], [style*="color:#111827"], [style*="color: #111827"], [style*="color:#181b23"], [style*="color: #181b23"],
    [style*="color:#344054"], [style*="color: #344054"], [style*="color:#374151"], [style*="color: #374151"], [style*="color:#444"], [style*="color: #444"]):not([style*="background"]) {
    color: var(--fnb-ink) !important;
  }
  :root:not([data-theme="light"]) :is([style*="color:#555"], [style*="color: #555"], [style*="color:#666"], [style*="color: #666"], [style*="color:#6c757d"], [style*="color: #6c757d"],
    [style*="color:#6b7280"], [style*="color: #6b7280"], [style*="color:#5B6878"], [style*="color: #5B6878"], [style*="color:#5b6878"], [style*="color: #5b6878"],
    [style*="color:#4b5563"], [style*="color: #4b5563"], [style*="color:#495057"], [style*="color: #495057"], [style*="color:#777"], [style*="color: #777"],
    [style*="color:#888"], [style*="color: #888"], [style*="color:#999"], [style*="color: #999"], [style*="color:#64748b"], [style*="color: #64748b"]):not([style*="background"]) {
    color: var(--fnb-muted) !important;
  }
  :root:not([data-theme="light"]) :is([style*="border:1px solid #e"], [style*="border: 1px solid #e"], [style*="border:1px solid #d"], [style*="border: 1px solid #d"],
    [style*="border-bottom:1px solid #e"], [style*="border-bottom: 1px solid #e"], [style*="border-top:1px solid #e"], [style*="border-top: 1px solid #e"]) {
    border-color: var(--fnb-border) !important;
  }
  
  /* 15. THEME SWITCH (top bar) ================================================ */
  :root:not([data-theme="light"]) .fnb-theme-btn { color: #DCE3EC !important; }
  
  /* 16. SOLID BRAND SURFACES, OVERLAYS ======================================== */
  :root:not([data-theme="light"]) .bg-primary, :root:not([data-theme="light"]) .bg-new-primary, :root:not([data-theme="light"]) .bg-info { background-color: var(--fnb-fill-brand) !important; color: #fff !important; }
  :root:not([data-theme="light"]) :is(.bg-primary, .bg-new-primary, .bg-info) :is(h1, h2, h3, h4, h5, h6, p, span, small, a:not(.btn), label) { color: #fff !important; }
  :root:not([data-theme="light"]) .fnb-skip { background: var(--fnb-fill-brand) !important; color: #fff !important; }
  :root:not([data-theme="light"]) .queue-tray__pill { background: #232B37 !important; color: #EEF2F7 !important; border: 1px solid var(--fnb-border-strong) !important; }
  :root:not([data-theme="light"]) .queue-tray__panel, :root:not([data-theme="light"]) .queue-tray__item { background: var(--fnb-surface) !important; color: var(--fnb-ink-2) !important; border-color: var(--fnb-border) !important; }
  :root:not([data-theme="light"]) body.tech-panel .tech-hero { background: linear-gradient(135deg, #1F6FE0, #123E7A) !important; }
  :root:not([data-theme="light"]) .text-primary, :root:not([data-theme="light"]) .text-new-primary { color: var(--fnb-brand-600) !important; }
  :root:not([data-theme="light"]) .text-success { color: var(--fnb-success) !important; }
  :root:not([data-theme="light"]) .text-warning { color: var(--fnb-warning) !important; }
  :root:not([data-theme="light"]) .text-info { color: var(--fnb-info) !important; }
  :root:not([data-theme="light"]) .text-muted, :root:not([data-theme="light"]) .text-secondary, :root:not([data-theme="light"]) small.text-muted { color: var(--fnb-muted) !important; }
  
  /* 17. SAFETY NET SET BY fnb-theme.js ======================================== */
  /* Page styles with hard-coded white / light-grey surfaces or near-black text
     that this file does not name are found at run time (computed colours) and
     marked with these classes. Removed again when the user switches to light. */
  :root:not([data-theme="light"]) .fnb-dk-surface { background-color: var(--fnb-surface) !important; border-color: var(--fnb-border) !important; }
  :root:not([data-theme="light"]) .fnb-dk-sunken { background-color: var(--fnb-hover) !important; border-color: var(--fnb-border) !important; }
  :root:not([data-theme="light"]) .fnb-dk-ink { color: var(--fnb-ink-2) !important; }
  :root:not([data-theme="light"]) .fnb-dk-ink-strong { color: var(--fnb-ink) !important; }
  :root:not([data-theme="light"]) .tickets-container .buy-button, :root:not([data-theme="light"]) .buy-button { background-color: #2A3342 !important; color: #fff !important; }
  :root:not([data-theme="light"]) .fnb-dk-line { border-color: var(--fnb-border) !important; }
}

/* 2) the user picked dark (toggle in the top bar) */
/* 1. TOKENS ================================================================ */
:root[data-theme="dark"] {
  color-scheme: dark;
  --fnb-brand: #5AA2FF; --fnb-brand-600: #7DB7FF; --fnb-brand-700: #A5CCFF;
  --fnb-brand-50: #13243D; --fnb-brand-100: #1B3354; --fnb-brand-200: #285085;
  --fnb-ink: #EEF2F7; --fnb-ink-2: #CBD3DE; --fnb-muted: #A3AEBD; --fnb-subtle: #7C8797;
  --fnb-border: #2A3342; --fnb-border-strong: #3A4556;
  --fnb-surface: #161C26; --fnb-canvas: #0E131B; --fnb-hover: #1E2633;
  --fnb-raised: #1B2330;
  --fnb-success: #5FD39A; --fnb-success-bg: #10291E; --fnb-success-bd: #1D4D37;
  --fnb-warning: #F4BE5E; --fnb-warning-bg: #2C2210; --fnb-warning-bd: #5A4519;
  --fnb-danger: #FF8A80;  --fnb-danger-bg: #331614;  --fnb-danger-bd: #5E2A26;
  --fnb-info: #7DB7FF;    --fnb-info-bg: #12233A;    --fnb-info-bd: #23426B;
  --fnb-neutral: #B8C2CF; --fnb-neutral-bg: #232B37; --fnb-neutral-bd: #364152;
  --fnb-st-pending: #B8C2CF;     --fnb-st-pending-bg: #232B37;
  --fnb-st-awaiting: #F4BE5E;    --fnb-st-awaiting-bg: #2C2210;
  --fnb-st-confirmed: #7DB7FF;   --fnb-st-confirmed-bg: #12233A;
  --fnb-st-rescheduled: #C7A8FF; --fnb-st-rescheduled-bg: #251C3D;
  --fnb-st-started: #A9A4FF;     --fnb-st-started-bg: #1E1D3D;
  --fnb-st-completed: #5FD39A;   --fnb-st-completed-bg: #10291E;
  --fnb-st-cancelled: #FF8A80;   --fnb-st-cancelled-bg: #331614;
  --fnb-e1: 0 1px 2px rgba(0, 0, 0, .4);
  --fnb-e2: 0 2px 6px rgba(0, 0, 0, .35), 0 8px 24px rgba(0, 0, 0, .3);
  --fnb-e3: 0 12px 32px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .4);
  --fnb-focus: 0 0 0 3px rgba(125, 183, 255, .45);
  /* Fills that carry white text (white on each >= 4.5:1). */
  --fnb-fill-brand: #1F6FE0; --fnb-fill-brand-hover: #185CC0;
  --fnb-fill-danger: #C0352B; --fnb-fill-danger-hover: #A12A21;
  --fnb-fill-success: #137A4B; --fnb-fill-success-hover: #0F653E;
  /* panel1 (2026-11-23): chart, focus and button tokens (fnb-ui.css section 1) */
  --fnb-chart-1: #6EA8FF; --fnb-chart-2: #F2A93B; --fnb-chart-3: #3CC99A; --fnb-chart-4: #E08BC4; --fnb-chart-5: #8CC8F5; --fnb-chart-6: #FF8A5B;
  --fnb-chart-axis: #A3AEBD; --fnb-chart-grid: #2A3342; --fnb-chart-tooltip-bg: #EEF2F7; --fnb-chart-tooltip-ink: #0D131B;
  --fnb-chart-box: #161C26;
  --fnb-focus-ring: #7DB7FF; --fnb-focus-halo: rgba(125, 183, 255, .28);
  --fnb-btn-primary-bg: #1F6FE0; --fnb-btn-primary-hover: #185CC0;
  --fnb-btn-danger-fill: #C0352B; --fnb-btn-danger-fill-hover: #A12A21;
  /* Bootstrap 4 / Stisla variables some plugins read */
  --primary-ink: #0D131B;
  --white: #161C26; --light: #1E2633; --dark: #EEF2F7; --gray: #A3AEBD; --gray-dark: #CBD3DE;
}
/* Panel-local token sets (technician, care centre) */
:root[data-theme="dark"] body.tech-panel {
  --tb: #7DB7FF; --tb-ink: #A5CCFF; --tb-soft: #13243D;
  --ao: #FFB067; --sg: #5FD39A;
  --t-surface: #0E131B; --t-muted: #A3AEBD; --t-ink: #EEF2F7; --t-line: #2A3342; --t-chip: #232B37;
}
:root[data-theme="dark"] body .care-panel, :root[data-theme="dark"] .care-panel {
  --cc-tb: #7DB7FF; --cc-tb-ink: #A5CCFF; --cc-tb-soft: #13243D;
  --cc-ao: #FFB067; --cc-green: #5FD39A; --cc-red: #FF8A80; --cc-amber: #F4BE5E; --cc-info: #7DCFE8;
  --cc-ink: #EEF2F7; --cc-muted: #A3AEBD; --cc-line: #2A3342; --cc-chip: #232B37;
  --cc-shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 28px rgba(0,0,0,.3);
}

/* 2. BASE ================================================================== */
:root[data-theme="dark"], :root[data-theme="dark"] body { background-color: var(--fnb-canvas) !important; color: var(--fnb-ink-2); }
:root[data-theme="dark"] body { scrollbar-color: var(--fnb-border-strong) var(--fnb-canvas); }
:root[data-theme="dark"] .main-wrapper, :root[data-theme="dark"] .main-content, :root[data-theme="dark"] #app, :root[data-theme="dark"] body.tech-panel .main-content { background-color: var(--fnb-canvas) !important; }
/* Sign-in screens (.auth > ... > #app) keep their background photo in dark mode: the
   rule above painted #app over it, leaving only a strip of photo at the top and bottom. */
:root[data-theme="dark"] .auth #app { background-color: transparent !important; }
:root[data-theme="dark"] h1, :root[data-theme="dark"] h2, :root[data-theme="dark"] h3, :root[data-theme="dark"] h4, :root[data-theme="dark"] h5, :root[data-theme="dark"] h6,
:root[data-theme="dark"] .h1, :root[data-theme="dark"] .h2, :root[data-theme="dark"] .h3, :root[data-theme="dark"] .h4, :root[data-theme="dark"] .h5, :root[data-theme="dark"] .h6,
:root[data-theme="dark"] .section-header h1, :root[data-theme="dark"] .card-title, :root[data-theme="dark"] .card .card-header h4 { color: var(--fnb-ink); }
:root[data-theme="dark"] a:not(.btn):not(.nav-link):not(.dropdown-item):not(.page-link):not(.badge) { color: var(--fnb-brand-600); }
:root[data-theme="dark"] a:not(.btn):not(.nav-link):not(.dropdown-item):not(.page-link):not(.badge):hover { color: var(--fnb-brand-700); }
:root[data-theme="dark"] hr, :root[data-theme="dark"] .dropdown-divider { border-color: var(--fnb-border) !important; }
:root[data-theme="dark"] ::selection { background: #285085; color: #fff; }
:root[data-theme="dark"] code { color: #FF9EC4; }
:root[data-theme="dark"] pre, :root[data-theme="dark"] kbd { background: var(--fnb-hover); color: var(--fnb-ink-2); }
:root[data-theme="dark"] .text-dark, :root[data-theme="dark"] .text-body, :root[data-theme="dark"] .text-black, :root[data-theme="dark"] .text-black-50 { color: var(--fnb-ink) !important; }
:root[data-theme="dark"] .text-white-50 { color: rgba(255,255,255,.75) !important; }
:root[data-theme="dark"] .text-light { color: var(--fnb-muted) !important; }
:root[data-theme="dark"] .bg-white, :root[data-theme="dark"] .bg-body, :root[data-theme="dark"] .card-body.bg-white { background-color: var(--fnb-surface) !important; }
:root[data-theme="dark"] .bg-light, :root[data-theme="dark"] .bg-whitesmoke, :root[data-theme="dark"] .bg-gray, :root[data-theme="dark"] .bg-grey, :root[data-theme="dark"] .bg-secondary-subtle { background-color: var(--fnb-hover) !important; color: var(--fnb-ink-2); }
:root[data-theme="dark"] .bg-dark { background-color: #0A0E14 !important; color: var(--fnb-ink) !important; }
:root[data-theme="dark"] .border, :root[data-theme="dark"] .border-top, :root[data-theme="dark"] .border-bottom, :root[data-theme="dark"] .border-left, :root[data-theme="dark"] .border-right,
:root[data-theme="dark"] .border-light, :root[data-theme="dark"] .border-secondary { border-color: var(--fnb-border) !important; }
:root[data-theme="dark"] .shadow, :root[data-theme="dark"] .shadow-sm, :root[data-theme="dark"] .shadow-lg { box-shadow: var(--fnb-e2) !important; }

/* 3. SHELL ================================================================= */
:root[data-theme="dark"] .main-navbar, :root[data-theme="dark"] .navbar.new_nav_bar, :root[data-theme="dark"] .navbar-bg { background: #121821 !important; border-bottom-color: var(--fnb-border) !important; }
:root[data-theme="dark"] .main-sidebar, :root[data-theme="dark"] #sidebar-wrapper, :root[data-theme="dark"] .main-sidebar .sidebar-brand,
:root[data-theme="dark"] .main-sidebar .sidebar-brand-sm { background: #121821 !important; }
:root[data-theme="dark"] .main-sidebar .sidebar-menu li a,
:root[data-theme="dark"] .main-sidebar .sidebar-menu li a span,
:root[data-theme="dark"] .main-sidebar .sidebar-menu li a .material-symbols-outlined,
:root[data-theme="dark"] .main-sidebar .sidebar-menu li a i { color: #C9D2DE !important; }
:root[data-theme="dark"] .main-sidebar .sidebar-menu li a:hover, :root[data-theme="dark"] .main-sidebar .sidebar-menu li a:focus { background: var(--fnb-hover) !important; color: #fff !important; }
:root[data-theme="dark"] .main-sidebar .sidebar-menu li.active > a,
:root[data-theme="dark"] .main-sidebar .sidebar-menu li.active > a span,
:root[data-theme="dark"] .main-sidebar .sidebar-menu li.active > a .material-symbols-outlined,
:root[data-theme="dark"] .main-sidebar .sidebar-menu li.active > a i,
:root[data-theme="dark"] .main-sidebar .sidebar-menu li a.active,
:root[data-theme="dark"] .main-sidebar .sidebar-menu li ul.dropdown-menu li.active > a { color: #fff !important; background: #1B3354 !important; }
:root[data-theme="dark"] .main-sidebar .sidebar-menu li ul.dropdown-menu, :root[data-theme="dark"] .main-sidebar .sidebar-menu li ul.dropdown-menu li a { background: transparent !important; }
:root[data-theme="dark"] .main-sidebar .menu-header, :root[data-theme="dark"] .main-sidebar .heading_lable { color: #95A1B2 !important; }
/* Logos: never filtered. Dark-ink logo artwork sits on a light chip. */
:root[data-theme="dark"] .main-sidebar .sidebar-brand a,
:root[data-theme="dark"] .main-sidebar .sidebar-brand-sm a { display: inline-flex; align-items: center; justify-content: center; background: #F4F7FB; border-radius: 10px; padding: 4px 10px; line-height: 1; }
:root[data-theme="dark"] .main-navbar .nav-link,
:root[data-theme="dark"] .main-navbar .nav-link.nav-link-lg,
:root[data-theme="dark"] .main-navbar .nav-link i { color: #DCE3EC !important; }
:root[data-theme="dark"] .main-navbar .navbar_dropdown > .nav-link,
:root[data-theme="dark"] .main-navbar .navbar-right .nav-link.nav-link-user { background: var(--fnb-surface) !important; border-color: var(--fnb-border-strong) !important; color: #DCE3EC !important; }
:root[data-theme="dark"] .main-navbar .form-control, :root[data-theme="dark"] .main-navbar #menu-search { background: var(--fnb-canvas) !important; color: var(--fnb-ink) !important; }
:root[data-theme="dark"] .main-footer, :root[data-theme="dark"] footer.main-footer { background: transparent !important; color: var(--fnb-muted) !important; border-color: var(--fnb-border) !important; }
:root[data-theme="dark"] .main-footer a { color: var(--fnb-brand-600) !important; }
:root[data-theme="dark"] .section .section-header, :root[data-theme="dark"] .section-header { background: var(--fnb-surface) !important; border-color: var(--fnb-border) !important; box-shadow: none !important; }
:root[data-theme="dark"] .section-header .section-header-breadcrumb .breadcrumb-item,
:root[data-theme="dark"] .section-header .section-header-breadcrumb .breadcrumb-item a { color: var(--fnb-muted) !important; }
:root[data-theme="dark"] .sidebar-mini .main-sidebar .sidebar-menu > li ul.dropdown-menu { background: var(--fnb-surface) !important; }
:root[data-theme="dark"] .sidebar-gone-show .main-sidebar, :root[data-theme="dark"] .main-sidebar.sidebar-style-2 { background: #121821 !important; }
:root[data-theme="dark"] .sidebar-show::before, :root[data-theme="dark"] .sidebar-gone-show .main-content::before { background: rgba(0,0,0,.6); }

/* 4. CARDS, ALERTS, LISTS ================================================== */
:root[data-theme="dark"] .card, :root[data-theme="dark"] .card .card-header, :root[data-theme="dark"] .card .card-body, :root[data-theme="dark"] .card .card-footer,
:root[data-theme="dark"] .card-statistic-1, :root[data-theme="dark"] .card-statistic-2, :root[data-theme="dark"] .card.card-statistic-1 .card-wrap,
:root[data-theme="dark"] .jumbotron, :root[data-theme="dark"] .list-group-item, :root[data-theme="dark"] .media, :root[data-theme="dark"] .tickets-list .ticket-item,
:root[data-theme="dark"] .activities .activity .activity-detail, :root[data-theme="dark"] .wizard-steps .wizard-step, :root[data-theme="dark"] .hero.bg-white,
:root[data-theme="dark"] .fnb-page-help, :root[data-theme="dark"] .page-help, :root[data-theme="dark"] .empty-state {
  background-color: var(--fnb-surface) !important; color: var(--fnb-ink-2) !important; border-color: var(--fnb-border) !important;
}
:root[data-theme="dark"] .card .card-header { border-bottom-color: var(--fnb-border) !important; }
:root[data-theme="dark"] .card.card-primary, :root[data-theme="dark"] .card.card-info, :root[data-theme="dark"] .card.card-success, :root[data-theme="dark"] .card.card-danger, :root[data-theme="dark"] .card.card-warning { border-top-color: var(--fnb-brand) !important; }
:root[data-theme="dark"] .card-statistic-1 .card-header h4, :root[data-theme="dark"] .card-statistic-2 .card-header h4, :root[data-theme="dark"] .card .card-header h4 { color: var(--fnb-ink) !important; }
:root[data-theme="dark"] .card-statistic-1 .card-body, :root[data-theme="dark"] .card-statistic-2 .card-stats-title { color: var(--fnb-ink) !important; }
:root[data-theme="dark"] .list-group-item.active { background: var(--fnb-fill-brand) !important; border-color: var(--fnb-fill-brand) !important; color: #fff !important; }
:root[data-theme="dark"] .list-group-item-action:hover, :root[data-theme="dark"] .list-group-item-action:focus { background: var(--fnb-hover) !important; }
:root[data-theme="dark"] .alert-light, :root[data-theme="dark"] .alert-secondary { background: var(--fnb-neutral-bg) !important; color: var(--fnb-ink-2) !important; border-color: var(--fnb-neutral-bd) !important; }
:root[data-theme="dark"] .alert-dark { background: #0A0E14 !important; color: var(--fnb-ink) !important; }
:root[data-theme="dark"] .alert-primary, :root[data-theme="dark"] .alert-info { background: var(--fnb-info-bg) !important; color: var(--fnb-info) !important; border-color: var(--fnb-info-bd) !important; }
:root[data-theme="dark"] .alert-success { background: var(--fnb-success-bg) !important; color: var(--fnb-success) !important; border-color: var(--fnb-success-bd) !important; }
:root[data-theme="dark"] .alert-warning { background: var(--fnb-warning-bg) !important; color: var(--fnb-warning) !important; border-color: var(--fnb-warning-bd) !important; }
:root[data-theme="dark"] .alert-danger { background: var(--fnb-danger-bg) !important; color: var(--fnb-danger) !important; border-color: var(--fnb-danger-bd) !important; }
:root[data-theme="dark"] .alert :is(a:not(.btn), strong, b, h4, h5, h6, .alert-title) { color: inherit !important; }
:root[data-theme="dark"] .alert-link { color: inherit !important; text-decoration: underline; }
:root[data-theme="dark"] .progress { background-color: var(--fnb-neutral-bg) !important; }
:root[data-theme="dark"] .progress-bar { background-color: var(--fnb-brand) !important; }

/* 5. BUTTONS =============================================================== */
:root[data-theme="dark"] .btn-primary, :root[data-theme="dark"] .btn-primary.disabled, :root[data-theme="dark"] .btn-primary:disabled,
:root[data-theme="dark"] .btn-cta, :root[data-theme="dark"] .btn-cta-orange, :root[data-theme="dark"] .btn-pos-cta, :root[data-theme="dark"] .btn--primary,
:root[data-theme="dark"] .btn-step-submit, :root[data-theme="dark"] .btn-step-next, :root[data-theme="dark"] .btn-next, :root[data-theme="dark"] .btn-change-plan,
:root[data-theme="dark"] .btn-info, :root[data-theme="dark"] .fnb-btn-primary, :root[data-theme="dark"] .fx-btn.fx-btn--primary,
:root[data-theme="dark"] .pmo .btn-primary, :root[data-theme="dark"] .pmo-btn-primary,
:root[data-theme="dark"] body .btn.btn-cta-orange, :root[data-theme="dark"] body .btn.btn-cta-orange:focus, :root[data-theme="dark"] body .acc-btn.acc-btn-cta,
:root[data-theme="dark"] body .fnb-pwa-install .fnb-pwa-install__btn,
:root[data-theme="dark"] .swal2-styled.swal2-confirm {
  background-color: var(--fnb-fill-brand) !important; border-color: var(--fnb-fill-brand) !important; color: #fff !important;
}
:root[data-theme="dark"] .btn-primary:hover, :root[data-theme="dark"] .btn-primary:focus, :root[data-theme="dark"] .btn-primary:active, :root[data-theme="dark"] .btn-primary.active,
:root[data-theme="dark"] .btn-cta:hover, :root[data-theme="dark"] .btn-cta-orange:hover, :root[data-theme="dark"] .btn-pos-cta:hover, :root[data-theme="dark"] .btn--primary:hover,
:root[data-theme="dark"] .btn-step-submit:hover, :root[data-theme="dark"] .btn-step-next:hover, :root[data-theme="dark"] .btn-next:hover, :root[data-theme="dark"] .btn-change-plan:hover,
:root[data-theme="dark"] .btn-info:hover, :root[data-theme="dark"] .btn-info:focus, :root[data-theme="dark"] .btn-info:active,
:root[data-theme="dark"] body .btn.btn-cta-orange:hover, :root[data-theme="dark"] body .acc-btn.acc-btn-cta:hover {
  background-color: var(--fnb-fill-brand-hover) !important; border-color: var(--fnb-fill-brand-hover) !important; color: #fff !important;
}
:root[data-theme="dark"] .btn-primary *, :root[data-theme="dark"] .btn-info *, :root[data-theme="dark"] .fnb-btn-primary * { color: #fff !important; }
:root[data-theme="dark"] .btn-danger, :root[data-theme="dark"] .btn-remove-shift, :root[data-theme="dark"] .btn-delete-question { background-color: var(--fnb-fill-danger) !important; border-color: var(--fnb-fill-danger) !important; color: #fff !important; }
:root[data-theme="dark"] .btn-danger:hover, :root[data-theme="dark"] .btn-danger:focus, :root[data-theme="dark"] .btn-danger:active { background-color: var(--fnb-fill-danger-hover) !important; border-color: var(--fnb-fill-danger-hover) !important; color: #fff !important; }
:root[data-theme="dark"] .btn-success { background-color: var(--fnb-fill-success) !important; border-color: var(--fnb-fill-success) !important; color: #fff !important; }
:root[data-theme="dark"] .btn-success:hover, :root[data-theme="dark"] .btn-success:focus, :root[data-theme="dark"] .btn-success:active { background-color: var(--fnb-fill-success-hover) !important; border-color: var(--fnb-fill-success-hover) !important; color: #fff !important; }
:root[data-theme="dark"] .btn-danger *, :root[data-theme="dark"] .btn-success * { color: #fff !important; }
:root[data-theme="dark"] .btn-light, :root[data-theme="dark"] .btn-white, :root[data-theme="dark"] .btn.btn-white, :root[data-theme="dark"] .btn-secondary,
:root[data-theme="dark"] .btn-outline-secondary, :root[data-theme="dark"] .btn-outline-dark, :root[data-theme="dark"] .btn-default, :root[data-theme="dark"] .btn-dark,
:root[data-theme="dark"] .btn-warning, :root[data-theme="dark"] .export_download, :root[data-theme="dark"] .pmo .btn-light {
  background-color: var(--fnb-surface) !important; color: var(--fnb-ink-2) !important; border-color: var(--fnb-border-strong) !important;
}
:root[data-theme="dark"] .btn-light:hover, :root[data-theme="dark"] .btn-white:hover, :root[data-theme="dark"] .btn-secondary:hover, :root[data-theme="dark"] .btn-outline-secondary:hover,
:root[data-theme="dark"] .btn-outline-dark:hover, :root[data-theme="dark"] .btn-default:hover, :root[data-theme="dark"] .btn-dark:hover, :root[data-theme="dark"] .btn-warning:hover, :root[data-theme="dark"] .export_download:hover {
  background-color: var(--fnb-hover) !important; color: var(--fnb-ink) !important;
}
:root[data-theme="dark"] .btn-outline-primary, :root[data-theme="dark"] .btn-outline-info { background: transparent !important; color: var(--fnb-brand-600) !important; border-color: #285085 !important; }
:root[data-theme="dark"] .btn-outline-primary:hover, :root[data-theme="dark"] .btn-outline-info:hover { background: var(--fnb-brand-50) !important; color: var(--fnb-brand-700) !important; }
:root[data-theme="dark"] .btn-outline-danger { background: transparent !important; }
:root[data-theme="dark"] .btn-outline-success, :root[data-theme="dark"] .btn-outline-warning { background: transparent !important; }
:root[data-theme="dark"] .btn-link { color: var(--fnb-brand-600) !important; }
:root[data-theme="dark"] .close, :root[data-theme="dark"] button.close { color: var(--fnb-ink) !important; text-shadow: none !important; opacity: .85; }
:root[data-theme="dark"] .btn:focus, :root[data-theme="dark"] .btn:focus-visible { box-shadow: var(--fnb-focus) !important; }

/* 6. FORMS ================================================================= */
:root[data-theme="dark"] .form-control, :root[data-theme="dark"] .custom-select, :root[data-theme="dark"] select.form-control, :root[data-theme="dark"] textarea.form-control,
:root[data-theme="dark"] input[type="text"], :root[data-theme="dark"] input[type="email"], :root[data-theme="dark"] input[type="number"], :root[data-theme="dark"] input[type="tel"],
:root[data-theme="dark"] input[type="password"], :root[data-theme="dark"] input[type="search"], :root[data-theme="dark"] input[type="date"], :root[data-theme="dark"] input[type="time"],
:root[data-theme="dark"] input[type="datetime-local"], :root[data-theme="dark"] input[type="url"], :root[data-theme="dark"] input[type="month"], :root[data-theme="dark"] select, :root[data-theme="dark"] textarea {
  background-color: #0F151E !important; color: var(--fnb-ink) !important; border-color: var(--fnb-border-strong) !important;
}
:root[data-theme="dark"] .form-control:focus, :root[data-theme="dark"] .custom-select:focus { border-color: var(--fnb-brand) !important; box-shadow: var(--fnb-focus) !important; }
:root[data-theme="dark"] .form-control::placeholder, :root[data-theme="dark"] input::placeholder, :root[data-theme="dark"] textarea::placeholder { color: #8C97A7 !important; opacity: 1; }
:root[data-theme="dark"] .form-control:disabled, :root[data-theme="dark"] .form-control[readonly], :root[data-theme="dark"] select:disabled, :root[data-theme="dark"] input:disabled { background-color: #1A212C !important; color: var(--fnb-muted) !important; }
:root[data-theme="dark"] .custom-select, :root[data-theme="dark"] select.form-control:not([multiple]) {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23CBD3DE' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important; background-position: right .75rem center !important; background-size: 8px 10px !important;
}
:root[data-theme="dark"] label, :root[data-theme="dark"] .form-label, :root[data-theme="dark"] .col-form-label, :root[data-theme="dark"] .control-label { color: var(--fnb-ink-2); }
:root[data-theme="dark"] .form-text, :root[data-theme="dark"] .help-block, :root[data-theme="dark"] .form-group small { color: var(--fnb-muted); }
:root[data-theme="dark"] .input-group-text, :root[data-theme="dark"] .input-group-prepend .btn, :root[data-theme="dark"] .input-group-append .btn:not(.btn-primary):not(.btn-danger):not(.btn-success) {
  background-color: var(--fnb-hover) !important; color: var(--fnb-ink-2) !important; border-color: var(--fnb-border-strong) !important;
}
:root[data-theme="dark"] .custom-control-label::before { background-color: #0F151E !important; border-color: var(--fnb-border-strong) !important; }
:root[data-theme="dark"] .custom-control-input:checked ~ .custom-control-label::before,
:root[data-theme="dark"] .custom-switch-input:checked ~ .custom-switch-indicator { background-color: var(--fnb-fill-brand) !important; border-color: var(--fnb-fill-brand) !important; }
:root[data-theme="dark"] .custom-switch-indicator { background: var(--fnb-neutral-bg) !important; border-color: var(--fnb-border-strong) !important; }
:root[data-theme="dark"] .custom-switch-description { color: var(--fnb-ink-2) !important; }
:root[data-theme="dark"] .custom-file-label { background-color: #0F151E !important; color: var(--fnb-ink-2) !important; border-color: var(--fnb-border-strong) !important; }
:root[data-theme="dark"] .custom-file-label::after { background-color: var(--fnb-hover) !important; color: var(--fnb-ink-2) !important; }
:root[data-theme="dark"] .selectgroup-button { background: var(--fnb-surface) !important; color: var(--fnb-ink-2) !important; border-color: var(--fnb-border-strong) !important; }
:root[data-theme="dark"] .selectgroup-input:checked + .selectgroup-button { background: var(--fnb-fill-brand) !important; color: #fff !important; border-color: var(--fnb-fill-brand) !important; }
:root[data-theme="dark"] .invalid-feedback, :root[data-theme="dark"] .text-danger, :root[data-theme="dark"] .error, :root[data-theme="dark"] label.error { color: var(--fnb-danger) !important; }
:root[data-theme="dark"] .is-invalid { border-color: var(--fnb-danger) !important; }
/* select2 */
:root[data-theme="dark"] .select2-container--default .select2-selection--single,
:root[data-theme="dark"] .select2-container--default .select2-selection--multiple,
:root[data-theme="dark"] .select2-dropdown, :root[data-theme="dark"] .select2-container--default .select2-search--dropdown .select2-search__field {
  background-color: #0F151E !important; color: var(--fnb-ink) !important; border-color: var(--fnb-border-strong) !important;
}
:root[data-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--fnb-ink) !important; }
:root[data-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__placeholder { color: #8C97A7 !important; }
:root[data-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__arrow b { border-color: #CBD3DE transparent transparent transparent !important; }
:root[data-theme="dark"] .select2-results__option { color: var(--fnb-ink-2) !important; background: transparent; }
:root[data-theme="dark"] .select2-container--default .select2-results__option[aria-selected="true"],
:root[data-theme="dark"] .select2-container--default .select2-results__option--selected { background-color: var(--fnb-brand-100) !important; color: var(--fnb-ink) !important; }
:root[data-theme="dark"] .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable,
:root[data-theme="dark"] .select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--fnb-fill-brand) !important; color: #fff !important; }
:root[data-theme="dark"] .select2-container--default .select2-selection--multiple .select2-selection__choice { background: var(--fnb-neutral-bg) !important; color: var(--fnb-ink-2) !important; border-color: var(--fnb-neutral-bd) !important; }
:root[data-theme="dark"] .select2-container--default .select2-selection--multiple .select2-selection__choice__remove { color: var(--fnb-ink-2) !important; }
:root[data-theme="dark"] .select2-container--default.select2-container--disabled .select2-selection--single { background-color: #1A212C !important; }
/* tagify, filepond, dropzone, summernote, quill */
:root[data-theme="dark"] .tagify { background: #0F151E !important; border-color: var(--fnb-border-strong) !important; --tags-border-color: var(--fnb-border-strong); --tag-bg: #232B37; --tag-hover: #2A3342; --tag-text-color: #DCE3EC; --input-color: #EEF2F7; --placeholder-color: #8C97A7; --tag-remove-btn-color: #DCE3EC; }
:root[data-theme="dark"] .tagify__dropdown__wrapper { background: var(--fnb-surface) !important; border-color: var(--fnb-border) !important; }
:root[data-theme="dark"] .tagify__dropdown__item { color: var(--fnb-ink-2) !important; }
:root[data-theme="dark"] .filepond--panel-root { background: var(--fnb-hover) !important; }
:root[data-theme="dark"] .filepond--drop-label, :root[data-theme="dark"] .filepond--drop-label label { color: var(--fnb-ink-2) !important; }
:root[data-theme="dark"] .filepond--label-action { text-decoration-color: var(--fnb-brand-600); color: var(--fnb-brand-600); }
:root[data-theme="dark"] .dropzone, :root[data-theme="dark"] .dropzone .dz-message { background: var(--fnb-hover) !important; color: var(--fnb-ink-2) !important; }
:root[data-theme="dark"] .note-editor.note-frame, :root[data-theme="dark"] .note-editor .note-toolbar, :root[data-theme="dark"] .note-editor .note-statusbar,
:root[data-theme="dark"] .note-editor .note-editing-area .note-editable, :root[data-theme="dark"] .note-popover .popover-content, :root[data-theme="dark"] .note-dropdown-menu {
  background: var(--fnb-surface) !important; color: var(--fnb-ink) !important; border-color: var(--fnb-border-strong) !important;
}
:root[data-theme="dark"] .note-btn, :root[data-theme="dark"] .note-editor .note-btn { background: var(--fnb-hover) !important; color: var(--fnb-ink-2) !important; border-color: var(--fnb-border-strong) !important; }
:root[data-theme="dark"] .tox .tox-edit-area__iframe { background: #fff; }
:root[data-theme="dark"] .ql-toolbar.ql-snow, :root[data-theme="dark"] .ql-container.ql-snow { border-color: var(--fnb-border-strong) !important; background: var(--fnb-surface); color: var(--fnb-ink); }
:root[data-theme="dark"] .ql-snow .ql-stroke { stroke: #CBD3DE !important; }
:root[data-theme="dark"] .ql-snow .ql-fill { fill: #CBD3DE !important; }
:root[data-theme="dark"] .ql-snow .ql-picker { color: #CBD3DE !important; }
/* date pickers */
:root[data-theme="dark"] .daterangepicker, :root[data-theme="dark"] .daterangepicker .calendar-table, :root[data-theme="dark"] .datepicker, :root[data-theme="dark"] .datepicker-dropdown,
:root[data-theme="dark"] .bootstrap-timepicker-widget, :root[data-theme="dark"] .flatpickr-calendar {
  background: var(--fnb-surface) !important; color: var(--fnb-ink-2) !important; border-color: var(--fnb-border) !important;
}
:root[data-theme="dark"] .daterangepicker td.off, :root[data-theme="dark"] .daterangepicker td.off.in-range { background: transparent !important; color: #6E7989 !important; }
:root[data-theme="dark"] .daterangepicker td.available:hover, :root[data-theme="dark"] .daterangepicker th.available:hover { background: var(--fnb-hover) !important; color: var(--fnb-ink) !important; }
:root[data-theme="dark"] .daterangepicker td.in-range { background: var(--fnb-brand-50) !important; color: var(--fnb-ink) !important; }
:root[data-theme="dark"] .daterangepicker td.active, :root[data-theme="dark"] .daterangepicker td.active:hover { background: var(--fnb-fill-brand) !important; color: #fff !important; }
:root[data-theme="dark"] .daterangepicker .ranges li:hover { background: var(--fnb-hover) !important; }
:root[data-theme="dark"] .daterangepicker .ranges li.active { background: var(--fnb-fill-brand) !important; color: #fff !important; }
:root[data-theme="dark"] .daterangepicker select { background: #0F151E !important; color: var(--fnb-ink) !important; }
:root[data-theme="dark"] .daterangepicker .calendar-table .next span, :root[data-theme="dark"] .daterangepicker .calendar-table .prev span { border-color: #CBD3DE !important; }
:root[data-theme="dark"] .daterangepicker:before, :root[data-theme="dark"] .daterangepicker:after { border-bottom-color: var(--fnb-surface) !important; }
:root[data-theme="dark"] .daterangepicker .drp-buttons { border-top-color: var(--fnb-border) !important; }
:root[data-theme="dark"] .daterangepicker.show-calendar .ranges { border-right-color: var(--fnb-border) !important; }
:root[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator,
:root[data-theme="dark"] input[type="time"]::-webkit-calendar-picker-indicator,
:root[data-theme="dark"] input[type="datetime-local"]::-webkit-calendar-picker-indicator,
:root[data-theme="dark"] input[type="month"]::-webkit-calendar-picker-indicator { filter: invert(.85); }

/* 7. BADGES, CHIPS ========================================================= */
:root[data-theme="dark"] .badge-light, :root[data-theme="dark"] .badge-secondary, :root[data-theme="dark"] .badge-default { background: var(--fnb-neutral-bg) !important; color: var(--fnb-ink-2) !important; border-color: var(--fnb-neutral-bd) !important; }
:root[data-theme="dark"] .badge-dark { background: #0A0E14 !important; color: var(--fnb-ink) !important; }
:root[data-theme="dark"] .badge-primary, :root[data-theme="dark"] .badge-info { background: var(--fnb-info-bg) !important; color: var(--fnb-info) !important; border-color: var(--fnb-info-bd) !important; }
:root[data-theme="dark"] .badge-success { background: var(--fnb-success-bg) !important; color: var(--fnb-success) !important; border-color: var(--fnb-success-bd) !important; }
:root[data-theme="dark"] .badge-warning { background: var(--fnb-warning-bg) !important; color: var(--fnb-warning) !important; border-color: var(--fnb-warning-bd) !important; }
:root[data-theme="dark"] .badge-danger { background: var(--fnb-danger-bg) !important; color: var(--fnb-danger) !important; border-color: var(--fnb-danger-bd) !important; }
/* Counter dots in the top bar / sidebar stay solid (white on a dark-enough red/blue). */
/* Count badges in the top bar are red; the neutral role chip (.badge-light: "Accounting office", "Property manager") is not an alert (UX audit 2026-10-24). */
:root[data-theme="dark"] .main-navbar .badge:not(.badge-light), :root[data-theme="dark"] .main-sidebar .badge.badge-danger, :root[data-theme="dark"] .notification-badge,
:root[data-theme="dark"] .pmo-bell-badge { background: #D93A30 !important; color: #fff !important; border-color: transparent !important; }
:root[data-theme="dark"] .main-sidebar .badge.badge-primary, :root[data-theme="dark"] .main-sidebar .badge.badge-info { background: var(--fnb-fill-brand) !important; color: #fff !important; }
/* Account-status pills in the top bar (Supplier "Approved distributor", PM status...) are not
   counters: the red above painted "Approved" red in dark mode (UX audit 2026-10-24). */
:root[data-theme="dark"] .main-navbar .badge.badge-info { background: var(--fnb-info-bg) !important; color: var(--fnb-info) !important; border-color: var(--fnb-info-bd) !important; }
:root[data-theme="dark"] .main-navbar .badge.badge-success { background: var(--fnb-success-bg) !important; color: var(--fnb-success) !important; border-color: var(--fnb-success-bd) !important; }
:root[data-theme="dark"] .main-navbar .badge.badge-warning { background: var(--fnb-warning-bg) !important; color: var(--fnb-warning) !important; border-color: var(--fnb-warning-bd) !important; }
:root[data-theme="dark"] .main-navbar .badge.badge-secondary { background: #2A3342 !important; color: #DCE3EC !important; border-color: transparent !important; }
:root[data-theme="dark"] .pmo-chip .pmo-count { background: #2A3342; color: #DCE3EC; }
:root[data-theme="dark"] .pmo-chip { color: var(--fnb-ink-2); }

/* 8. TABS, BREADCRUMBS, PAGINATION, DROPDOWNS ============================== */
:root[data-theme="dark"] .nav-tabs { border-bottom-color: var(--fnb-border) !important; }
:root[data-theme="dark"] .nav-tabs .nav-link { color: var(--fnb-muted) !important; background: transparent !important; border-color: transparent !important; }
:root[data-theme="dark"] .nav-tabs .nav-link:hover { color: var(--fnb-ink) !important; border-color: var(--fnb-border) var(--fnb-border) transparent !important; }
:root[data-theme="dark"] .nav-tabs .nav-link.active, :root[data-theme="dark"] .nav-tabs .nav-item.show .nav-link {
  color: var(--fnb-brand-600) !important; background: var(--fnb-surface) !important; border-color: var(--fnb-border) var(--fnb-border) var(--fnb-surface) !important;
}
:root[data-theme="dark"] .nav-pills .nav-link { color: var(--fnb-ink-2) !important; }
:root[data-theme="dark"] .nav-pills .nav-link.active, :root[data-theme="dark"] .nav-pills .show > .nav-link { background: var(--fnb-fill-brand) !important; color: #fff !important; }
:root[data-theme="dark"] .nav-pills .nav-link.active * { color: #fff !important; }
:root[data-theme="dark"] .breadcrumb { background: transparent !important; }
:root[data-theme="dark"] .breadcrumb-item, :root[data-theme="dark"] .breadcrumb-item + .breadcrumb-item::before { color: var(--fnb-muted) !important; }
:root[data-theme="dark"] .page-link { background: var(--fnb-surface) !important; color: var(--fnb-ink-2) !important; border-color: var(--fnb-border) !important; }
:root[data-theme="dark"] .page-link:hover { background: var(--fnb-hover) !important; color: var(--fnb-ink) !important; }
:root[data-theme="dark"] .page-item.active .page-link { background: var(--fnb-fill-brand) !important; border-color: var(--fnb-fill-brand) !important; color: #fff !important; }
:root[data-theme="dark"] .page-item.disabled .page-link { background: var(--fnb-canvas) !important; color: var(--fnb-muted) !important; }
:root[data-theme="dark"] .dropdown-menu, :root[data-theme="dark"] .dropdown-menu .dropdown-title, :root[data-theme="dark"] .dropdown-list .dropdown-header, :root[data-theme="dark"] .dropdown-list .dropdown-footer {
  background: var(--fnb-surface) !important; color: var(--fnb-ink-2) !important; border-color: var(--fnb-border) !important;
}
:root[data-theme="dark"] .dropdown-item, :root[data-theme="dark"] .dropdown-menu a:not(.btn) { color: var(--fnb-ink-2) !important; }
:root[data-theme="dark"] .dropdown-item:hover, :root[data-theme="dark"] .dropdown-item:focus, :root[data-theme="dark"] .dropdown-menu a:not(.btn):hover { background: var(--fnb-hover) !important; color: var(--fnb-ink) !important; }
:root[data-theme="dark"] .dropdown-item.active, :root[data-theme="dark"] .dropdown-item:active { background: var(--fnb-fill-brand) !important; color: #fff !important; }
:root[data-theme="dark"] .dropdown-list .dropdown-item.dropdown-item-unread { background: var(--fnb-brand-50) !important; }
:root[data-theme="dark"] .dropdown-list .dropdown-item .time { color: var(--fnb-muted) !important; }
:root[data-theme="dark"] .dropdown-menu .dropdown-header, :root[data-theme="dark"] .dropdown-header { color: var(--fnb-muted) !important; }
:root[data-theme="dark"] .tooltip-inner { background: #2A3342 !important; color: #EEF2F7 !important; }
:root[data-theme="dark"] .bs-tooltip-top .arrow::before, :root[data-theme="dark"] .bs-tooltip-auto[x-placement^="top"] .arrow::before { border-top-color: #2A3342 !important; }
:root[data-theme="dark"] .bs-tooltip-bottom .arrow::before, :root[data-theme="dark"] .bs-tooltip-auto[x-placement^="bottom"] .arrow::before { border-bottom-color: #2A3342 !important; }
:root[data-theme="dark"] .bs-tooltip-left .arrow::before { border-left-color: #2A3342 !important; }
:root[data-theme="dark"] .bs-tooltip-right .arrow::before { border-right-color: #2A3342 !important; }
:root[data-theme="dark"] .popover, :root[data-theme="dark"] .popover-body, :root[data-theme="dark"] .popover-header { background: var(--fnb-raised) !important; color: var(--fnb-ink-2) !important; border-color: var(--fnb-border) !important; }
:root[data-theme="dark"] .popover .arrow::after { border-top-color: var(--fnb-raised) !important; border-bottom-color: var(--fnb-raised) !important; }

/* 9. MODALS, TOASTS ======================================================== */
:root[data-theme="dark"] .modal-content, :root[data-theme="dark"] .modal-header, :root[data-theme="dark"] .modal-body, :root[data-theme="dark"] .modal-footer {
  background: var(--fnb-surface) !important; color: var(--fnb-ink-2) !important; border-color: var(--fnb-border) !important;
}
:root[data-theme="dark"] .modal-title { color: var(--fnb-ink) !important; }
:root[data-theme="dark"] .modal-backdrop.show { opacity: .7; }
:root[data-theme="dark"] .swal2-popup, :root[data-theme="dark"] .swal2-modal { background: var(--fnb-surface) !important; color: var(--fnb-ink-2) !important; }
:root[data-theme="dark"] .swal2-title, :root[data-theme="dark"] .swal2-html-container, :root[data-theme="dark"] .swal2-content { color: var(--fnb-ink) !important; }
:root[data-theme="dark"] .swal2-styled.swal2-cancel, :root[data-theme="dark"] .swal2-styled.swal2-deny { background: var(--fnb-hover) !important; color: var(--fnb-ink) !important; border-color: var(--fnb-border-strong) !important; }
:root[data-theme="dark"] .swal2-input, :root[data-theme="dark"] .swal2-textarea, :root[data-theme="dark"] .swal2-select { background: #0F151E !important; color: var(--fnb-ink) !important; border-color: var(--fnb-border-strong) !important; }
:root[data-theme="dark"] .swal2-icon.swal2-question, :root[data-theme="dark"] .swal2-icon.swal2-info { border-color: #7DB7FF !important; color: #7DB7FF !important; }
:root[data-theme="dark"] .swal-modal, :root[data-theme="dark"] .swal-text, :root[data-theme="dark"] .swal-title { background-color: var(--fnb-surface) !important; color: var(--fnb-ink) !important; }
:root[data-theme="dark"] .iziToast { background: var(--fnb-raised) !important; border-color: var(--fnb-border) !important; box-shadow: var(--fnb-e3) !important; }
:root[data-theme="dark"] .iziToast > .iziToast-body .iziToast-title, :root[data-theme="dark"] .iziToast > .iziToast-body .iziToast-message,
:root[data-theme="dark"] .iziToast > .iziToast-body .iziToast-texts { color: var(--fnb-ink) !important; }
:root[data-theme="dark"] .iziToast > .iziToast-close { filter: invert(1) brightness(1.6); }
:root[data-theme="dark"] .iziToast-color-green, :root[data-theme="dark"] .iziToast.iziToast-color-green { border-left-color: #2FAF72 !important; }
:root[data-theme="dark"] .iziToast-color-red, :root[data-theme="dark"] .iziToast.iziToast-color-red { border-left-color: #E5534B !important; }
:root[data-theme="dark"] .toast, :root[data-theme="dark"] .toast-header { background: var(--fnb-raised) !important; color: var(--fnb-ink) !important; border-color: var(--fnb-border) !important; }

/* 10. TABLES =============================================================== */
:root[data-theme="dark"] .table, :root[data-theme="dark"] .table td, :root[data-theme="dark"] .table th { color: var(--fnb-ink-2) !important; border-color: var(--fnb-border) !important; background-color: transparent; }
:root[data-theme="dark"] .table thead th, :root[data-theme="dark"] .table:not(.table-sm) thead th, :root[data-theme="dark"] .bootstrap-table .fixed-table-container .table thead th,
:root[data-theme="dark"] .fixed-table-header, :root[data-theme="dark"] .table thead.thead-light th, :root[data-theme="dark"] table.dataTable thead th {
  background-color: #1A212C !important; color: var(--fnb-ink) !important; border-color: var(--fnb-border) !important;
}
:root[data-theme="dark"] .table-hover tbody tr:hover, :root[data-theme="dark"] .table tbody tr:hover { background-color: var(--fnb-hover) !important; }
:root[data-theme="dark"] .table-striped tbody tr:nth-of-type(odd) { background-color: rgba(255,255,255,.025) !important; }
:root[data-theme="dark"] .bootstrap-table .fixed-table-container, :root[data-theme="dark"] .bootstrap-table .fixed-table-container .fixed-table-body,
:root[data-theme="dark"] .bootstrap-table .fixed-table-container .fixed-table-footer, :root[data-theme="dark"] .fixed-table-toolbar,
:root[data-theme="dark"] .bootstrap-table .fixed-table-pagination, :root[data-theme="dark"] .fixed-columns, :root[data-theme="dark"] .fixed-columns-right,
:root[data-theme="dark"] .fixed-columns .fixed-table-body, :root[data-theme="dark"] .fixed-columns-right .fixed-table-body {
  background-color: var(--fnb-surface) !important; color: var(--fnb-ink-2) !important; border-color: var(--fnb-border) !important;
}
:root[data-theme="dark"] .fixed-columns tbody td, :root[data-theme="dark"] .fixed-columns-right tbody td,
:root[data-theme="dark"] .fnb-scrolls > .table tbody td.fnb-col-actions, :root[data-theme="dark"] .table td.fnb-col-actions { background-color: var(--fnb-surface) !important; }
:root[data-theme="dark"] .fnb-scrolls > .table thead th.fnb-col-actions, :root[data-theme="dark"] .fnb-scrolls > table thead th.fnb-col-actions { background-color: #1A212C !important; }
:root[data-theme="dark"] .fnb-scrolls > .table tbody tr:hover td.fnb-col-actions { background-color: var(--fnb-hover) !important; }
:root[data-theme="dark"] .bootstrap-table .fixed-table-container .fixed-table-loading,
:root[data-theme="dark"] .bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading { background: var(--fnb-surface) !important; color: var(--fnb-ink-2) !important; }
:root[data-theme="dark"] .bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading .loading-wrap .animation-dot,
:root[data-theme="dark"] .bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading .loading-wrap .animation-wrap::after,
:root[data-theme="dark"] .bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading .loading-wrap .animation-wrap::before { background: var(--fnb-ink-2) !important; }
:root[data-theme="dark"] .bootstrap-table .fixed-table-pagination .pagination-detail, :root[data-theme="dark"] .pagination-info { color: var(--fnb-muted) !important; }
:root[data-theme="dark"] .bootstrap-table .fixed-table-toolbar .columns .dropdown-menu label { color: var(--fnb-ink-2) !important; }
:root[data-theme="dark"] .table .no-records-found td, :root[data-theme="dark"] .dataTables_empty { color: var(--fnb-muted) !important; }
:root[data-theme="dark"] .dataTables_wrapper .dataTables_info, :root[data-theme="dark"] .dataTables_wrapper .dataTables_length, :root[data-theme="dark"] .dataTables_wrapper .dataTables_filter { color: var(--fnb-muted) !important; }
:root[data-theme="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button { color: var(--fnb-ink-2) !important; background: transparent !important; border-color: var(--fnb-border) !important; }
:root[data-theme="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button.current { background: var(--fnb-fill-brand) !important; color: #fff !important; }
:root[data-theme="dark"] table.dataTable tbody tr { background-color: transparent !important; }
/* phone card mode */
:root[data-theme="dark"] .table.fnb-cards tbody tr { background: var(--fnb-surface) !important; border-color: var(--fnb-border) !important; }
/* skeleton + image placeholders */
:root[data-theme="dark"] .fnb-skeleton, :root[data-theme="dark"] .pmo-skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0) 0, rgba(255,255,255,.06) 50%, rgba(255,255,255,0) 100%), repeating-linear-gradient(180deg, transparent 0 18px, #222A36 18px 30px, transparent 30px 56px) !important;
}
:root[data-theme="dark"] .table td img.fnb-img-missing, :root[data-theme="dark"] .fnb-img-missing { background-color: #222A36 !important; }

/* 11. CHARTS =============================================================== */
:root[data-theme="dark"] .apexcharts-canvas text, :root[data-theme="dark"] .apexcharts-text, :root[data-theme="dark"] .apexcharts-text tspan,
:root[data-theme="dark"] .apexcharts-xaxis-label, :root[data-theme="dark"] .apexcharts-yaxis-label, :root[data-theme="dark"] .apexcharts-datalabel-label,
:root[data-theme="dark"] .apexcharts-datalabel-value { fill: #B8C2CF !important; }
:root[data-theme="dark"] .apexcharts-title-text, :root[data-theme="dark"] .apexcharts-subtitle-text { fill: #EEF2F7 !important; }
:root[data-theme="dark"] .apexcharts-legend-text { color: #CBD3DE !important; }
:root[data-theme="dark"] .apexcharts-gridline, :root[data-theme="dark"] .apexcharts-grid line, :root[data-theme="dark"] .apexcharts-xaxis-tick,
:root[data-theme="dark"] .apexcharts-xaxis line, :root[data-theme="dark"] .apexcharts-yaxis line { stroke: #2A3342 !important; }
:root[data-theme="dark"] .apexcharts-tooltip, :root[data-theme="dark"] .apexcharts-tooltip.apexcharts-theme-light { background: #1B2330 !important; color: #EEF2F7 !important; border-color: #2A3342 !important; box-shadow: var(--fnb-e3) !important; }
:root[data-theme="dark"] .apexcharts-tooltip-title, :root[data-theme="dark"] .apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title { background: #232B37 !important; border-color: #2A3342 !important; color: #EEF2F7 !important; }
:root[data-theme="dark"] .apexcharts-xaxistooltip, :root[data-theme="dark"] .apexcharts-yaxistooltip { background: #1B2330 !important; color: #EEF2F7 !important; border-color: #2A3342 !important; }
:root[data-theme="dark"] .apexcharts-menu { background: var(--fnb-surface) !important; border-color: var(--fnb-border) !important; }
:root[data-theme="dark"] .apexcharts-menu-item:hover { background: var(--fnb-hover) !important; }
:root[data-theme="dark"] .apexcharts-pie-area, :root[data-theme="dark"] .apexcharts-donut-slice { stroke: var(--fnb-surface) !important; }
:root[data-theme="dark"] .apexcharts-radialbar-track path { stroke: #232B37 !important; }

/* 12. CALENDARS, MAPS, CHAT ================================================ */
:root[data-theme="dark"] .fc, :root[data-theme="dark"] .fc-view-container, :root[data-theme="dark"] .fc-toolbar { color: var(--fnb-ink-2); }
:root[data-theme="dark"] .fc-unthemed th, :root[data-theme="dark"] .fc-unthemed td, :root[data-theme="dark"] .fc-unthemed thead, :root[data-theme="dark"] .fc-unthemed tbody,
:root[data-theme="dark"] .fc-unthemed .fc-divider, :root[data-theme="dark"] .fc-unthemed .fc-row, :root[data-theme="dark"] .fc-unthemed .fc-content, :root[data-theme="dark"] .fc-unthemed .fc-popover,
:root[data-theme="dark"] .fc-theme-standard td, :root[data-theme="dark"] .fc-theme-standard th, :root[data-theme="dark"] .fc-theme-standard .fc-scrollgrid { border-color: var(--fnb-border) !important; }
:root[data-theme="dark"] .fc-unthemed td.fc-today, :root[data-theme="dark"] .fc .fc-daygrid-day.fc-day-today { background: var(--fnb-brand-50) !important; }
:root[data-theme="dark"] .fc-unthemed .fc-popover, :root[data-theme="dark"] .fc .fc-popover { background: var(--fnb-surface) !important; }
:root[data-theme="dark"] .fc th, :root[data-theme="dark"] .fc-col-header-cell { background: #1A212C !important; color: var(--fnb-ink) !important; }
:root[data-theme="dark"] .fc-button, :root[data-theme="dark"] .fc .fc-button-primary { background: var(--fnb-surface) !important; color: var(--fnb-ink-2) !important; border-color: var(--fnb-border-strong) !important; }
:root[data-theme="dark"] .fc .fc-button-primary:not(:disabled).fc-button-active, :root[data-theme="dark"] .fc-state-active { background: var(--fnb-fill-brand) !important; color: #fff !important; }
:root[data-theme="dark"] .chat-box .chat-content .chat-item .chat-details .chat-text, :root[data-theme="dark"] .chat-box .chat-form, :root[data-theme="dark"] .chat-box .chat-form .form-control { background: var(--fnb-hover) !important; color: var(--fnb-ink) !important; }
:root[data-theme="dark"] .chat-box .chat-content .chat-item.chat-right .chat-details .chat-text { background: var(--fnb-fill-brand) !important; color: #fff !important; }
:root[data-theme="dark"] .gm-style .gm-style-iw-c, :root[data-theme="dark"] .gm-style .gm-style-iw-d { color: #0D131B; }

/* 13. SIGN-IN SCREENS ====================================================== */
:root[data-theme="dark"] body .auth .card, :root[data-theme="dark"] body .login-brand + .card, :root[data-theme="dark"] body .card.card-primary,
:root[data-theme="dark"] body .employee-login-card, :root[data-theme="dark"] body .acc-auth-card, :root[data-theme="dark"] body .login-card, :root[data-theme="dark"] body .auth-card {
  background: var(--fnb-surface) !important; color: var(--fnb-ink-2) !important; border-color: var(--fnb-border) !important;
}
:root[data-theme="dark"] body .login-type-toggle { background: var(--fnb-canvas) !important; border-color: var(--fnb-border) !important; }
:root[data-theme="dark"] body .login-type-toggle .btn { color: var(--fnb-ink-2) !important; background: transparent !important; }
:root[data-theme="dark"] body .login-type-toggle .btn.active { background: var(--fnb-surface) !important; color: var(--fnb-brand-600) !important; }
:root[data-theme="dark"] .lang-switcher .dropdown-toggle, :root[data-theme="dark"] .fnb-lang-switch .btn { background: var(--fnb-surface) !important; color: var(--fnb-ink-2) !important; border-color: var(--fnb-border-strong) !important; }

/* 14. INLINE-STYLE SAFETY NET =============================================== */
/* Page markup with hard-coded light surfaces / dark text in style="" (both
   spellings, with and without the space). Images are excluded. */
:root[data-theme="dark"] :is([style*="background:#fff"], [style*="background: #fff"], [style*="background-color:#fff"], [style*="background-color: #fff"],
  [style*="background:#FFF"], [style*="background: #FFF"], [style*="background-color:#FFF"], [style*="background-color: #FFF"],
  [style*="background:white"], [style*="background: white"], [style*="background-color:white"], [style*="background-color: white"],
  [style*="background:#ffffff"], [style*="background: #ffffff"], [style*="background-color:#ffffff"], [style*="background-color: #ffffff"],
  [style*="background:#FFFFFF"], [style*="background: #FFFFFF"], [style*="background-color: #FFFFFF"]):not(img):not(svg):not(canvas):not(video) {
  background-color: var(--fnb-surface) !important;
}
:root[data-theme="dark"] :is([style*="background:#f8f9fa"], [style*="background: #f8f9fa"], [style*="background-color:#f8f9fa"], [style*="background-color: #f8f9fa"],
  [style*="background:#f5f5f5"], [style*="background: #f5f5f5"], [style*="background-color:#f5f5f5"], [style*="background-color: #f5f5f5"],
  [style*="background:#fafafa"], [style*="background: #fafafa"], [style*="background-color:#fafafa"], [style*="background-color: #fafafa"],
  [style*="background:#F4F7FB"], [style*="background: #F4F7FB"], [style*="background:#f4f7fb"], [style*="background: #f4f7fb"],
  [style*="background:#f1f5f9"], [style*="background: #f1f5f9"], [style*="background:#f8fafc"], [style*="background: #f8fafc"],
  [style*="background:#F7F9FC"], [style*="background: #F7F9FC"], [style*="background:#f7f9fc"], [style*="background: #f7f9fc"],
  [style*="background:#eef"], [style*="background: #eef"], [style*="background:#EEF"], [style*="background: #EEF"],
  [style*="background:#f0f"], [style*="background: #f0f"], [style*="background:#F0F"], [style*="background: #F0F"],
  [style*="background:#f2f"], [style*="background: #f2f"], [style*="background:#F2F"], [style*="background: #F2F"]):not(img):not(svg):not(canvas):not(video) {
  background-color: var(--fnb-hover) !important;
}
:root[data-theme="dark"] :is([style*="color:#000"], [style*="color: #000"], [style*="color:black"], [style*="color: black"],
  [style*="color:#111"], [style*="color: #111"], [style*="color:#222"], [style*="color: #222"], [style*="color:#333"], [style*="color: #333"],
  [style*="color:#212529"], [style*="color: #212529"], [style*="color:#0D131B"], [style*="color: #0D131B"], [style*="color:#0d131b"], [style*="color: #0d131b"],
  [style*="color:#1f2937"], [style*="color: #1f2937"], [style*="color:#111827"], [style*="color: #111827"], [style*="color:#181b23"], [style*="color: #181b23"],
  [style*="color:#344054"], [style*="color: #344054"], [style*="color:#374151"], [style*="color: #374151"], [style*="color:#444"], [style*="color: #444"]):not([style*="background"]) {
  color: var(--fnb-ink) !important;
}
:root[data-theme="dark"] :is([style*="color:#555"], [style*="color: #555"], [style*="color:#666"], [style*="color: #666"], [style*="color:#6c757d"], [style*="color: #6c757d"],
  [style*="color:#6b7280"], [style*="color: #6b7280"], [style*="color:#5B6878"], [style*="color: #5B6878"], [style*="color:#5b6878"], [style*="color: #5b6878"],
  [style*="color:#4b5563"], [style*="color: #4b5563"], [style*="color:#495057"], [style*="color: #495057"], [style*="color:#777"], [style*="color: #777"],
  [style*="color:#888"], [style*="color: #888"], [style*="color:#999"], [style*="color: #999"], [style*="color:#64748b"], [style*="color: #64748b"]):not([style*="background"]) {
  color: var(--fnb-muted) !important;
}
:root[data-theme="dark"] :is([style*="border:1px solid #e"], [style*="border: 1px solid #e"], [style*="border:1px solid #d"], [style*="border: 1px solid #d"],
  [style*="border-bottom:1px solid #e"], [style*="border-bottom: 1px solid #e"], [style*="border-top:1px solid #e"], [style*="border-top: 1px solid #e"]) {
  border-color: var(--fnb-border) !important;
}

/* 15. THEME SWITCH (top bar) ================================================ */
:root[data-theme="dark"] .fnb-theme-btn { color: #DCE3EC !important; }

/* 16. SOLID BRAND SURFACES, OVERLAYS ======================================== */
:root[data-theme="dark"] .bg-primary, :root[data-theme="dark"] .bg-new-primary, :root[data-theme="dark"] .bg-info { background-color: var(--fnb-fill-brand) !important; color: #fff !important; }
:root[data-theme="dark"] :is(.bg-primary, .bg-new-primary, .bg-info) :is(h1, h2, h3, h4, h5, h6, p, span, small, a:not(.btn), label) { color: #fff !important; }
:root[data-theme="dark"] .fnb-skip { background: var(--fnb-fill-brand) !important; color: #fff !important; }
:root[data-theme="dark"] .queue-tray__pill { background: #232B37 !important; color: #EEF2F7 !important; border: 1px solid var(--fnb-border-strong) !important; }
:root[data-theme="dark"] .queue-tray__panel, :root[data-theme="dark"] .queue-tray__item { background: var(--fnb-surface) !important; color: var(--fnb-ink-2) !important; border-color: var(--fnb-border) !important; }
:root[data-theme="dark"] body.tech-panel .tech-hero { background: linear-gradient(135deg, #1F6FE0, #123E7A) !important; }
:root[data-theme="dark"] .text-primary, :root[data-theme="dark"] .text-new-primary { color: var(--fnb-brand-600) !important; }
:root[data-theme="dark"] .text-success { color: var(--fnb-success) !important; }
:root[data-theme="dark"] .text-warning { color: var(--fnb-warning) !important; }
:root[data-theme="dark"] .text-info { color: var(--fnb-info) !important; }
:root[data-theme="dark"] .text-muted, :root[data-theme="dark"] .text-secondary, :root[data-theme="dark"] small.text-muted { color: var(--fnb-muted) !important; }

/* 17. SAFETY NET SET BY fnb-theme.js ======================================== */
/* Page styles with hard-coded white / light-grey surfaces or near-black text
   that this file does not name are found at run time (computed colours) and
   marked with these classes. Removed again when the user switches to light. */
:root[data-theme="dark"] .fnb-dk-surface { background-color: var(--fnb-surface) !important; border-color: var(--fnb-border) !important; }
:root[data-theme="dark"] .fnb-dk-sunken { background-color: var(--fnb-hover) !important; border-color: var(--fnb-border) !important; }
:root[data-theme="dark"] .fnb-dk-ink { color: var(--fnb-ink-2) !important; }
:root[data-theme="dark"] .fnb-dk-ink-strong { color: var(--fnb-ink) !important; }
:root[data-theme="dark"] .tickets-container .buy-button, :root[data-theme="dark"] .buy-button { background-color: #2A3342 !important; color: #fff !important; }
:root[data-theme="dark"] .fnb-dk-line { border-color: var(--fnb-border) !important; }
