/*
 * Dark theme colours (2026-11-24). Colours only: no size, spacing or layout is changed here.
 * Everything is scoped to the dark mode, so the light mode is never touched.
 * Undo: scripts/dark-theme.sh off  (or delete this file; head-css.php loads it only when it exists).
 */
body[data-bs-theme="dark"] {
    --sz-bg: #11141d;
    --sz-side: #151925;
    --sz-bar: #171b28;
    --sz-card: #1b2030;
    --sz-raised: #232a3d;
    --sz-hover: #2a3247;
    --sz-line: #2c344a;
    --sz-line-strong: #3b4560;
    --sz-text: #d3d8e6;
    --sz-muted: #9aa4bd;
    --sz-head: #f2f4fa;
    --sz-link: #a3adff;
    --sz-primary: #5a63dc;
    --sz-primary-hover: #6a73ea;

    --bs-body-bg: #11141d; --bs-body-bg-rgb: 17, 20, 29;
    --bs-body-color: #d3d8e6; --bs-body-color-rgb: 211, 216, 230;
    --bs-secondary-color: #9aa4bd; --bs-secondary-color-rgb: 154, 164, 189;
    --bs-tertiary-color: #7f8aa6;
    --bs-secondary-bg: #1b2030; --bs-secondary-bg-rgb: 27, 32, 48;
    --bs-tertiary-bg: #232a3d; --bs-tertiary-bg-rgb: 35, 42, 61;
    --bs-heading-color: #f2f4fa; --bs-emphasis-color: #ffffff;
    --bs-border-color: #2c344a; --bs-border-color-translucent: rgba(255, 255, 255, .09);
    --bs-link-color: #a3adff; --bs-link-color-rgb: 163, 173, 255;
    --bs-link-hover-color: #c3c9ff; --bs-link-hover-color-rgb: 195, 201, 255;
    --bs-light: #232a3d; --bs-light-rgb: 35, 42, 61;
    --bs-dark: #333c55; --bs-dark-rgb: 51, 60, 85;
    --bs-primary: #5a63dc; --bs-primary-rgb: 90, 99, 220;
    --bs-success-rgb: 28, 127, 102; --bs-info-rgb: 37, 117, 201; --bs-danger-rgb: 209, 54, 84; --bs-warning-rgb: 240, 173, 58;
    --bs-primary-text-emphasis: #b3baff; --bs-success-text-emphasis: #6fd8b6; --bs-info-text-emphasis: #8cc6ff;
    --bs-warning-text-emphasis: #f9cd7d; --bs-danger-text-emphasis: #ff9aad; --bs-secondary-text-emphasis: #c3cadb;
    --bs-primary-bg-subtle: #23294f; --bs-success-bg-subtle: #12352d; --bs-info-bg-subtle: #14304c;
    --bs-warning-bg-subtle: #3d3013; --bs-danger-bg-subtle: #43202b; --bs-secondary-bg-subtle: #2a3247;
    --bs-light-bg-subtle: #232a3d; --bs-dark-bg-subtle: #171b28;
    --bs-primary-border-subtle: #3c4580; --bs-success-border-subtle: #1f5c4c; --bs-info-border-subtle: #23507d;
    --bs-warning-border-subtle: #6a5424; --bs-danger-border-subtle: #743546;
    --bs-code-color: #f59bc3;
    --bs-header-bg: #171b28; --bs-header-item-color: #d3d8e6; --bs-header-item-color-dark: #d3d8e6; --bs-topbar-search-bg: #232a3d; --bs-topbar-user-bg: #232a3d;
    --bs-footer-bg: #11141d; --bs-footer-color: #9aa4bd; --bs-boxed-body-bg: #0d1017; --bs-rightbar-bg: #1b2030; --bs-list-group-bg: #1b2030;
    --bs-topnav-bg: #171b28;

    /* DataTables */
    --dt-row-selected: 90, 99, 220; --dt-row-selected-text: 255, 255, 255; --dt-row-selected-link: 195, 201, 255;
    --dt-row-stripe: 255, 255, 255; --dt-row-hover: 255, 255, 255; --dt-column-ordering: 255, 255, 255; --dt-html-background: #1b2030;

    background-color: #11141d;
    scrollbar-color: #3b4560 transparent;
}

/* Same selector strength as app.css [data-bs-theme=dark][data-sidebar=dark] */
body[data-bs-theme="dark"], body[data-bs-theme="dark"][data-sidebar="dark"] {
    --bs-sidebar-bg: #151925; --bs-sidebar-dark-bg: #151925;
    --bs-sidebar-dark-menu-item-color: #a5aec6; --bs-sidebar-dark-menu-sub-item-color: #98a2bb; --bs-sidebar-dark-menu-item-icon-color: #8c96b1;
    --bs-sidebar-dark-menu-item-hover-color: #ffffff; --bs-sidebar-dark-menu-item-active-color: #ffffff; --bs-sidebar-dark-menu-item-active-bg: #262c4d;
}

/* Surfaces */
body[data-bs-theme="dark"] .main-content, body[data-bs-theme="dark"] .page-content { background-color: transparent; }
body[data-bs-theme="dark"] #page-topbar { box-shadow: 0 1px 0 var(--sz-line); }
body[data-bs-theme="dark"] .vertical-menu, body[data-bs-theme="dark"] .navbar-brand-box { box-shadow: 1px 0 0 var(--sz-line); }
body[data-bs-theme="dark"] .card { --bs-card-bg: #1b2030; --bs-card-cap-bg: #1f2536; --bs-card-border-color: #2c344a; background-color: #1b2030; box-shadow: 0 0 0 1px rgba(255, 255, 255, .045), 0 6px 18px rgba(0, 0, 0, .28); }
body[data-bs-theme="dark"] .footer { border-top-color: var(--sz-line); }
body[data-bs-theme="dark"] hr { border-color: var(--sz-line-strong); opacity: .8; }
body[data-bs-theme="dark"] .border-b { border-bottom-color: var(--sz-line); }
body[data-bs-theme="dark"] .border, body[data-bs-theme="dark"] .border-top, body[data-bs-theme="dark"] .border-bottom, body[data-bs-theme="dark"] .border-start, body[data-bs-theme="dark"] .border-end { border-color: var(--sz-line) !important; }

/* Text */
body[data-bs-theme="dark"] .text-muted, body[data-bs-theme="dark"] .small-txt, body[data-bs-theme="dark"] .form-text { color: var(--sz-muted) !important; }
body[data-bs-theme="dark"] .text-black, body[data-bs-theme="dark"] .text-dark { color: var(--sz-head) !important; }
body[data-bs-theme="dark"] .bg-warning.text-dark, body[data-bs-theme="dark"] .badge.bg-warning { color: #241a02 !important; }
body[data-bs-theme="dark"] .text-primary { color: #a3adff !important; }
body[data-bs-theme="dark"] .text-success { color: #4fcfa5 !important; }
body[data-bs-theme="dark"] .text-info { color: #6bb5ff !important; }
body[data-bs-theme="dark"] .text-warning { color: #f5bd5c !important; }
body[data-bs-theme="dark"] .text-danger { color: #ff7a92 !important; }
body[data-bs-theme="dark"] .text-white-50 { color: rgba(255, 255, 255, .68) !important; }
body[data-bs-theme="dark"] .bg-white { background-color: #1b2030 !important; }
body[data-bs-theme="dark"] .btn-toolbar.sticky, body[data-bs-theme="dark"] .grid-structure .grid-container { background: #232a3d; }

/* Sidebar: active and hover */
body[data-bs-theme="dark"] #sidebar-menu ul li a:hover, body[data-bs-theme="dark"] #sidebar-menu ul li a:hover i { color: #fff; }
body[data-bs-theme="dark"] #sidebar-menu > ul > li.mm-active > a { box-shadow: inset 3px 0 0 #6a73ea; }
body[data-bs-theme="dark"] #sidebar-menu ul.sub-menu li.mm-active > a, body[data-bs-theme="dark"] #sidebar-menu ul.sub-menu a.active { background-color: transparent; color: #b3baff !important; }
body[data-bs-theme="dark"] .menu-title { color: #7f8aa6 !important; }
body[data-bs-theme="dark"] .user-sidebar .active, body[data-bs-theme="dark"] .user-sidebar .mm-active > a, body[data-bs-theme="dark"] .user-sidebar a:hover { color: #fff; }

/* Buttons: white text stays at least 4.5:1 */
body[data-bs-theme="dark"] .btn-primary { --bs-btn-bg: #5a63dc; --bs-btn-border-color: #5a63dc; --bs-btn-hover-bg: #4c55cc; --bs-btn-hover-border-color: #4c55cc; --bs-btn-active-bg: #444cba; --bs-btn-active-border-color: #444cba; --bs-btn-disabled-bg: #5a63dc; --bs-btn-disabled-border-color: #5a63dc; }
body[data-bs-theme="dark"] .btn-success { --bs-btn-bg: #1c7f66; --bs-btn-border-color: #1c7f66; --bs-btn-hover-bg: #186e58; --bs-btn-hover-border-color: #186e58; --bs-btn-active-bg: #145f4c; --bs-btn-active-border-color: #145f4c; }
body[data-bs-theme="dark"] .btn-info { --bs-btn-color: #fff; --bs-btn-bg: #2470c2; --bs-btn-border-color: #2470c2; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #1e61aa; --bs-btn-hover-border-color: #1e61aa; --bs-btn-active-color: #fff; --bs-btn-active-bg: #1a5493; --bs-btn-active-border-color: #1a5493; }
body[data-bs-theme="dark"] .btn-danger { --bs-btn-bg: #cf3855; --bs-btn-border-color: #cf3855; --bs-btn-hover-bg: #b72f4a; --bs-btn-hover-border-color: #b72f4a; --bs-btn-active-bg: #a22a41; --bs-btn-active-border-color: #a22a41; }
body[data-bs-theme="dark"] .btn-warning { --bs-btn-color: #241a02; --bs-btn-bg: #efb047; --bs-btn-border-color: #efb047; --bs-btn-hover-color: #241a02; --bs-btn-hover-bg: #f5bd5c; --bs-btn-hover-border-color: #f5bd5c; --bs-btn-active-color: #241a02; --bs-btn-active-bg: #dd9e36; --bs-btn-active-border-color: #dd9e36; --bs-btn-disabled-color: #241a02; }
body[data-bs-theme="dark"] .btn-secondary { --bs-btn-color: #e6e9f2; --bs-btn-bg: #3a435c; --bs-btn-border-color: #3a435c; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #46506c; --bs-btn-hover-border-color: #46506c; --bs-btn-active-color: #fff; --bs-btn-active-bg: #505b79; --bs-btn-active-border-color: #505b79; }
body[data-bs-theme="dark"] .btn-light { --bs-btn-color: #d3d8e6; --bs-btn-bg: #232a3d; --bs-btn-border-color: #3b4560; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #2e374e; --bs-btn-hover-border-color: #4a5675; --bs-btn-active-color: #fff; --bs-btn-active-bg: #36405a; --bs-btn-active-border-color: #4a5675; }
body[data-bs-theme="dark"] .btn-dark { --bs-btn-color: #e6e9f2; --bs-btn-bg: #333c55; --bs-btn-border-color: #414c6a; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #3e4965; --bs-btn-hover-border-color: #505c7d; --bs-btn-active-color: #fff; --bs-btn-active-bg: #475372; --bs-btn-active-border-color: #505c7d; }
body[data-bs-theme="dark"] .btn-close { filter: invert(1) grayscale(100%) brightness(160%); }

/* Badges */
body[data-bs-theme="dark"] .badge.bg-light { color: #d3d8e6 !important; }
body[data-bs-theme="dark"] .badge-soft-primary, body[data-bs-theme="dark"] .bg-soft-primary { background-color: #23294f !important; color: #b3baff; }
body[data-bs-theme="dark"] .badge-soft-success { background-color: #12352d; color: #6fd8b6; }
body[data-bs-theme="dark"] .badge-soft-info, body[data-bs-theme="dark"] .bg-soft-info { background-color: #14304c !important; color: #8cc6ff; }
body[data-bs-theme="dark"] .badge-soft-warning { background-color: #3d3013; color: #f9cd7d; }
body[data-bs-theme="dark"] .badge-soft-danger { background-color: #43202b; color: #ff9aad; }
body[data-bs-theme="dark"] .badge-soft-dark { background-color: #2a3247; color: #d3d8e6; }

/* Forms */
body[data-bs-theme="dark"] .form-control, body[data-bs-theme="dark"] .form-select { background-color: #151a28; border-color: #343d56; color: #e3e7f1; }
body[data-bs-theme="dark"] .form-control:focus, body[data-bs-theme="dark"] .form-select:focus { background-color: #171d2d; border-color: #6a73ea; color: #fff; box-shadow: 0 0 0 .15rem rgba(106, 115, 234, .25); }
body[data-bs-theme="dark"] .form-control::placeholder { color: #77829d; opacity: 1; }
body[data-bs-theme="dark"] .form-control:disabled, body[data-bs-theme="dark"] .form-control[readonly], body[data-bs-theme="dark"] .form-select:disabled { background-color: #202638; color: #9aa4bd; }
body[data-bs-theme="dark"] .input-group-text { background-color: #232a3d; border-color: #343d56; color: #a5aec6; }
body[data-bs-theme="dark"] .form-check-input:not(:checked) { background-color: #151a28; border-color: #56617f; }
body[data-bs-theme="dark"] .form-check-input:checked { background-color: #6a73ea; border-color: #6a73ea; }
body[data-bs-theme="dark"] select option, body[data-bs-theme="dark"] select optgroup { background-color: #1b2030; color: #d3d8e6; }
body[data-bs-theme="dark"] input:-webkit-autofill, body[data-bs-theme="dark"] input:-webkit-autofill:focus { -webkit-text-fill-color: #e3e7f1; -webkit-box-shadow: 0 0 0 1000px #1b2133 inset; caret-color: #fff; }

/* Theme On/Off switch */
body[data-bs-theme="dark"] input[switch] + label { background-color: #3a435c; }
body[data-bs-theme="dark"] input[switch] + label:before { color: #d3d8e6; }
body[data-bs-theme="dark"] input[switch="none"]:checked + label { background-color: #5a63dc; }
body[data-bs-theme="dark"] input[switch]:checked + label:before { color: #fff; }
body[data-bs-theme="dark"] .form-switch .form-check-input:not(:checked):not(:focus) { --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%239aa4bd'/%3e%3c/svg%3e"); }

/* Select2 */
body[data-bs-theme="dark"] .select2-container .select2-selection--single, body[data-bs-theme="dark"] .select2-container .select2-selection--multiple { background-color: #151a28; border-color: #343d56; }
body[data-bs-theme="dark"] .select2-container .select2-selection__rendered { color: #e3e7f1; }
body[data-bs-theme="dark"] .select2-container .select2-selection__placeholder { color: #77829d; }
body[data-bs-theme="dark"] .select2-container--open .select2-selection { border-color: #6a73ea !important; }
body[data-bs-theme="dark"] .select2-dropdown { background-color: #1f2536; border-color: #3b4560; box-shadow: 0 10px 28px rgba(0, 0, 0, .45); }
body[data-bs-theme="dark"] .select2-container .select2-search--dropdown { background-color: #1f2536; }
body[data-bs-theme="dark"] .select2-container .select2-search--dropdown .select2-search__field, body[data-bs-theme="dark"] .select2-container .select2-search__field { background-color: #151a28; border-color: #343d56; color: #e3e7f1; }
body[data-bs-theme="dark"] .select2-container .select2-search--inline .select2-search__field { background-color: transparent; }
body[data-bs-theme="dark"] .select2-container .select2-results__option { color: #d3d8e6; }
body[data-bs-theme="dark"] .select2-container .select2-results__option[aria-selected="true"], body[data-bs-theme="dark"] .select2-container .select2-results__option--selected { background-color: #2a3247; color: #fff; }
body[data-bs-theme="dark"] .select2-container .select2-results__option--highlighted[aria-selected], body[data-bs-theme="dark"] .select2-container .select2-results__option--highlighted { background-color: #5a63dc; color: #fff; }
body[data-bs-theme="dark"] .select2-container .select2-selection--multiple .select2-selection__choice { background-color: #2f3861; border-color: #424c80; color: #e6e9ff; }
body[data-bs-theme="dark"] .select2-container .select2-selection--multiple .select2-selection__choice__remove { color: #c3c9ff; }

/* Tables */
body[data-bs-theme="dark"] .table { --bs-table-bg: transparent; --bs-table-color: #d3d8e6; --bs-table-border-color: #2c344a; --bs-table-striped-bg: rgba(255, 255, 255, .022); --bs-table-striped-color: #d3d8e6; --bs-table-hover-bg: rgba(106, 115, 234, .10); --bs-table-hover-color: #fff; --bs-table-active-bg: rgba(106, 115, 234, .18); --bs-table-active-color: #fff; }
body[data-bs-theme="dark"] .table > thead > tr > th { background-color: #20273a; color: #e6e9f2; }
body[data-bs-theme="dark"] .table-light { --bs-table-bg: #232a3d; --bs-table-color: #e6e9f2; --bs-table-border-color: #343d56; }
body[data-bs-theme="dark"] table.dataTable > tbody > tr { background-color: transparent; }
body[data-bs-theme="dark"] div.dt-container .dt-info, body[data-bs-theme="dark"] div.dt-container .dt-length label { color: #a5aec6; }
body[data-bs-theme="dark"] div.dt-processing, body[data-bs-theme="dark"] div.dt-button-collection { background-color: #1f2536; border-color: #3b4560; color: #d3d8e6; }
body[data-bs-theme="dark"] .pagination { --bs-pagination-bg: #1b2030; --bs-pagination-color: #b9c1d6; --bs-pagination-border-color: #2c344a; --bs-pagination-hover-bg: #2a3247; --bs-pagination-hover-color: #fff; --bs-pagination-hover-border-color: #3b4560; --bs-pagination-active-bg: #5a63dc; --bs-pagination-active-border-color: #5a63dc; --bs-pagination-disabled-bg: #171b28; --bs-pagination-disabled-color: #5f6a86; --bs-pagination-disabled-border-color: #2c344a; }

/* Menus, modals, popups */
body[data-bs-theme="dark"] .dropdown-menu { --bs-dropdown-bg: #1f2536; --bs-dropdown-color: #d3d8e6; --bs-dropdown-border-color: #343d56; --bs-dropdown-link-color: #d3d8e6; --bs-dropdown-link-hover-color: #fff; --bs-dropdown-link-hover-bg: #2b3350; --bs-dropdown-link-active-bg: #5a63dc; --bs-dropdown-divider-bg: #2c344a; --bs-dropdown-header-color: #9aa4bd; box-shadow: 0 12px 30px rgba(0, 0, 0, .45); }
body[data-bs-theme="dark"] .modal { --bs-modal-bg: #1b2030; --bs-modal-color: #d3d8e6; --bs-modal-border-color: #343d56; --bs-modal-header-border-color: #2c344a; --bs-modal-footer-border-color: #2c344a; }
body[data-bs-theme="dark"] .offcanvas { --bs-offcanvas-bg: #1b2030; --bs-offcanvas-color: #d3d8e6; }
body[data-bs-theme="dark"] .swal2-popup { background: #1b2030; color: #d3d8e6; box-shadow: 0 0 0 1px #343d56, 0 20px 50px rgba(0, 0, 0, .55); }
body[data-bs-theme="dark"] .swal2-title, body[data-bs-theme="dark"] .swal2-popup .form-label { color: #f2f4fa; }
body[data-bs-theme="dark"] .swal2-html-container, body[data-bs-theme="dark"] .swal2-input-label { color: #d3d8e6; }
body[data-bs-theme="dark"] .swal2-input, body[data-bs-theme="dark"] .swal2-textarea, body[data-bs-theme="dark"] .swal2-select { background: #151a28; border-color: #343d56; color: #e3e7f1; }
body[data-bs-theme="dark"] .swal2-validation-message { background: #232a3d; color: #ff9aad; }
body[data-bs-theme="dark"] .swal2-footer { border-top-color: #2c344a; color: #9aa4bd; }
body[data-bs-theme="dark"] .tooltip { --bs-tooltip-bg: #353f5b; --bs-tooltip-color: #fff; --bs-tooltip-opacity: 1; }
body[data-bs-theme="dark"] .popover { --bs-popover-bg: #1f2536; --bs-popover-border-color: #343d56; --bs-popover-header-bg: #232a3d; --bs-popover-header-color: #f2f4fa; --bs-popover-body-color: #d3d8e6; }
body[data-bs-theme="dark"] .accordion { --bs-accordion-bg: #1b2030; --bs-accordion-color: #d3d8e6; --bs-accordion-border-color: #2c344a; --bs-accordion-btn-color: #d3d8e6; --bs-accordion-active-bg: #262c4d; --bs-accordion-active-color: #fff; }
body[data-bs-theme="dark"] .list-group { --bs-list-group-bg: #1b2030; --bs-list-group-color: #d3d8e6; --bs-list-group-border-color: #2c344a; --bs-list-group-action-color: #d3d8e6; --bs-list-group-action-hover-color: #fff; --bs-list-group-action-hover-bg: #2a3247; --bs-list-group-active-bg: #5a63dc; --bs-list-group-active-border-color: #5a63dc; }
body[data-bs-theme="dark"] .nav-tabs { --bs-nav-tabs-border-color: #2c344a; --bs-nav-tabs-link-active-bg: #1b2030; --bs-nav-tabs-link-active-color: #b3baff; --bs-nav-tabs-link-active-border-color: #2c344a #2c344a #1b2030; --bs-nav-tabs-link-hover-border-color: #343d56 #343d56 #2c344a; }
body[data-bs-theme="dark"] .nav-tabs-custom .nav-item .nav-link.active { color: #b3baff; }
body[data-bs-theme="dark"] .progress, body[data-bs-theme="dark"] .progress-stacked { --bs-progress-bg: #2a3247; }
body[data-bs-theme="dark"] .right-bar { background-color: #1b2030; }

/* Date pickers */
body[data-bs-theme="dark"] .flatpickr-calendar { background: #1f2536; box-shadow: 0 0 0 1px #343d56, 0 12px 30px rgba(0, 0, 0, .45); }
body[data-bs-theme="dark"] .flatpickr-months .flatpickr-month, body[data-bs-theme="dark"] .flatpickr-weekdays, body[data-bs-theme="dark"] span.flatpickr-weekday, body[data-bs-theme="dark"] .flatpickr-current-month .flatpickr-monthDropdown-months { background: #232a3d; color: #e6e9f2; fill: #e6e9f2; }
body[data-bs-theme="dark"] .flatpickr-day { color: #d3d8e6; }
body[data-bs-theme="dark"] .flatpickr-day:hover, body[data-bs-theme="dark"] .flatpickr-day.inRange { background: #2b3350; border-color: #2b3350; box-shadow: none; }
body[data-bs-theme="dark"] .flatpickr-day.prevMonthDay, body[data-bs-theme="dark"] .flatpickr-day.nextMonthDay, body[data-bs-theme="dark"] .flatpickr-day.flatpickr-disabled { color: #66718d; }
body[data-bs-theme="dark"] .flatpickr-day.selected, body[data-bs-theme="dark"] .flatpickr-day.startRange, body[data-bs-theme="dark"] .flatpickr-day.endRange { background: #5a63dc; border-color: #5a63dc; color: #fff; }
body[data-bs-theme="dark"] .flatpickr-time input, body[data-bs-theme="dark"] .flatpickr-time .flatpickr-am-pm, body[data-bs-theme="dark"] .flatpickr-time .flatpickr-time-separator, body[data-bs-theme="dark"] .flatpickr-current-month input.cur-year { color: #e3e7f1; background: transparent; }
body[data-bs-theme="dark"] .datepicker table tr td span.focused, body[data-bs-theme="dark"] .datepicker table tr td span:hover, body[data-bs-theme="dark"] .datepicker table tr td.day.focused, body[data-bs-theme="dark"] .datepicker table tr td.day:hover { background: #2b3350; }
body[data-bs-theme="dark"] .datepicker table tr td.active.active, body[data-bs-theme="dark"] .datepicker table tr td.active:hover { background: #5a63dc !important; color: #fff; }

/* Charts drawn as SVG */
body[data-bs-theme="dark"] .apexcharts-text, body[data-bs-theme="dark"] .apexcharts-title-text { fill: #b9c1d6; }
body[data-bs-theme="dark"] .apexcharts-legend-text { color: #d3d8e6 !important; }
body[data-bs-theme="dark"] .apexcharts-gridline, body[data-bs-theme="dark"] .apexcharts-xaxis line, body[data-bs-theme="dark"] .apexcharts-yaxis line { stroke: #2c344a; }
body[data-bs-theme="dark"] .apexcharts-tooltip { background: #1f2536 !important; border-color: #343d56 !important; color: #e3e7f1 !important; }
body[data-bs-theme="dark"] .apexcharts-tooltip-title { background: #232a3d !important; border-color: #343d56 !important; }

/* Profile frame on the customer page */
body[data-bs-theme="dark"] .srzone-profile-strength-frame, body[data-bs-theme="dark"] .directory-card:has(.srzone-user-detail-actions) .flex-shrink-0.me-3.d-none { --profile-frame-background: #1b2030; }
body[data-bs-theme="dark"] .srzone-profile-strength-track { stroke: #37415b; }
body[data-bs-theme="dark"] .srzone-profile-strength-badge { background: #1b2030; }

/* Scrollbars */
body[data-bs-theme="dark"] ::-webkit-scrollbar-track { background: transparent !important; }
body[data-bs-theme="dark"] ::-webkit-scrollbar-thumb { background-color: #3b4560; }
body[data-bs-theme="dark"] ::-webkit-scrollbar-thumb:hover { background-color: #4c587a; }
body[data-bs-theme="dark"] .simplebar-scrollbar:before { background: #56617f; }

/* Printing stays on white paper */
@media print {
    body[data-bs-theme="dark"], body[data-bs-theme="dark"] .card, body[data-bs-theme="dark"] .table > thead > tr > th { background: #fff !important; color: #000 !important; box-shadow: none !important; }
    body[data-bs-theme="dark"] .table { --bs-table-color: #000; --bs-table-striped-color: #000; }
}
