/* PRIMIS dark theme.
   Part 1: palette + Bootstrap component fixes (hand written).
   Part 2: AUTO-GENERATED overrides mirroring every light surface/text/border colour used in app.css
           (regenerate when app.css changes colours). Active when <html data-bs-theme="dark">. */
[data-bs-theme="dark"] {
  --hd-bg:#0e1522; --hd-text:#e3e9f4; --hd-muted:#93a1ba; --hd-border:#2a374e;
  --hd-shadow:0 12px 35px rgba(0,0,0,.45);
  --bs-body-bg:#0e1522; --bs-body-color:#e3e9f4; --bs-border-color:#2a374e;
  --bs-secondary-bg:#172033; --bs-tertiary-bg:#1a2438; --bs-emphasis-color:#fff; --bs-secondary-color:#a3b0c7;
}
[data-bs-theme="dark"] body { background:#0e1522; color:#e3e9f4; }
[data-bs-theme="dark"] .bg-white, [data-bs-theme="dark"] .bg-light { background-color:#172033 !important; }
[data-bs-theme="dark"] .text-dark, [data-bs-theme="dark"] .text-body { color:#e3e9f4 !important; }
[data-bs-theme="dark"] .text-muted { color:#93a1ba !important; }
[data-bs-theme="dark"] .card, [data-bs-theme="dark"] .modal-content, [data-bs-theme="dark"] .dropdown-menu, [data-bs-theme="dark"] .list-group-item { background:#172033; color:#e3e9f4; border-color:#2a374e; }
[data-bs-theme="dark"] .form-control, [data-bs-theme="dark"] .form-select, [data-bs-theme="dark"] .input-group-text { background-color:#0f1a2c; color:#e3e9f4; border-color:#33425c; }
[data-bs-theme="dark"] .form-control::placeholder { color:#6f7e99; }
[data-bs-theme="dark"] .form-control:disabled, [data-bs-theme="dark"] .form-select:disabled { background-color:#1a2438; }
[data-bs-theme="dark"] .table { --bs-table-bg:transparent; --bs-table-color:#e3e9f4; --bs-table-border-color:#2a374e; --bs-table-striped-bg:rgba(255,255,255,.03); --bs-table-hover-bg:rgba(255,255,255,.05); }
[data-bs-theme="dark"] .btn-light, [data-bs-theme="dark"] .btn-outline-secondary { background:#1e2a40; border-color:#33425c; color:#e3e9f4; }
[data-bs-theme="dark"] .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }
[data-bs-theme="dark"] .modal-backdrop { --bs-backdrop-bg:#000; }
[data-bs-theme="dark"] .alert { border-color:transparent; }
[data-bs-theme="dark"] img.login-logo-img { filter:none; }

/* Theme toggle button (top bar + login page) */
.theme-toggle { width:40px; height:40px; display:inline-flex; align-items:center; justify-content:center; border:1px solid rgba(15,23,42,.08); border-radius:50%; background:#fff; color:#475569; font-size:17px; cursor:pointer; box-shadow:0 2px 6px rgba(15,23,42,.06); transition:transform .15s, box-shadow .15s, color .15s, background .2s; flex:0 0 auto; }
.theme-toggle:hover { color:#0d6efd; box-shadow:0 4px 12px rgba(13,110,253,.18); transform:translateY(-1px); }
.theme-toggle:focus-visible { outline:2px solid #0d6efd; outline-offset:2px; }
.theme-toggle .fa { transition:transform .35s; }
.theme-toggle:active .fa { transform:rotate(40deg) scale(.9); }
[data-bs-theme="dark"] .theme-toggle { background:#1e2a40 !important; border-color:#33425c !important; color:#fbbf24 !important; }
.auth-form-panel { position:relative; }
.theme-toggle-auth { position:absolute; top:18px; right:18px; z-index:5; }
[data-bs-theme="dark"] .notif-bell { background:#1e2a40 !important; border-color:#33425c !important; color:#cbd5e1 !important; }

/* ---- Part 2: auto-generated ---- */
[data-bs-theme="dark"] .topbar { background:#1b212d !important; }
[data-bs-theme="dark"] .app-footer { background:#1b212d !important; }
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select { border-color:#353c45 !important; color:#becbdd !important; }
[data-bs-theme="dark"] .auth-page { background:#1b212d !important; }
[data-bs-theme="dark"] .login-card { background:#1b212d !important; }
[data-bs-theme="dark"] .help-note { border-top:1px solid #353c45 !important; }
[data-bs-theme="dark"] .auth-footer { background:#1b212d !important; border-top:1px solid #353c45 !important; }
[data-bs-theme="dark"] .modal-content .form-label { color:#bdc9db !important; }
[data-bs-theme="dark"] .modal-content .form-control,
[data-bs-theme="dark"] .modal-content .form-select { border-color:#373c44 !important; }
[data-bs-theme="dark"] .search-results { background:#1b212d !important; border:1px solid #2e384d !important; }
[data-bs-theme="dark"] .search-results button { background:#1b212d !important; color:#b8c3d3 !important; }
[data-bs-theme="dark"] .search-results button:hover { background:#182337 !important; }
[data-bs-theme="dark"] .action-dots { color:#abb5c3 !important; }
[data-bs-theme="dark"] .action-dots:hover { background:#1b2838 !important; }
[data-bs-theme="dark"] .action-menu-floating { background:#1b212d !important; border:1px solid #343b47 !important; }
[data-bs-theme="dark"] .action-menu-floating button { color:#b8c3d3 !important; }
[data-bs-theme="dark"] .action-menu-floating button:hover { background:#182337 !important; }
[data-bs-theme="dark"] .dt-wrapper { background:#1b212d !important; border:1px solid #343b47 !important; }
[data-bs-theme="dark"] .dt-btn { border:1px solid #333b47 !important; background:#1b212d !important; color:#b1bccc !important; }
[data-bs-theme="dark"] .dt-btn:hover { background:#172336 !important; }
[data-bs-theme="dark"] .dt-search input { border:1px solid #333b47 !important; }
[data-bs-theme="dark"] .dt-page { border:1px solid #343c46 !important; background:#1b212d !important; color:#abb5c3 !important; }
[data-bs-theme="dark"] .dt-page:hover:not(:disabled) { background:#182437 !important; border-color:#2c3a4e !important; }
[data-bs-theme="dark"] .display thead th,
[data-bs-theme="dark"] #ticketsTable thead th,
[data-bs-theme="dark"] #ticketsTable tfoot th,
[data-bs-theme="dark"] .table-responsive thead th { background:#1d2530 !important; border-bottom:1px solid #343b47 !important; }
[data-bs-theme="dark"] .display tbody td,
[data-bs-theme="dark"] #ticketsTable tbody td,
[data-bs-theme="dark"] .table-responsive tbody td { border-bottom:1px solid #353c45 !important; color:#b7c2d2 !important; }
[data-bs-theme="dark"] .display tbody tr:hover,
[data-bs-theme="dark"] #ticketsTable tbody tr:hover,
[data-bs-theme="dark"] .table-responsive tbody tr:hover { background:#172335 !important; }
[data-bs-theme="dark"] #ticketsTable tfoot th { border-top:1px solid #343b47 !important; }
[data-bs-theme="dark"] #ticketModal .ticket-view-footer,
[data-bs-theme="dark"] #ticketModal .ticket-update-footer { border-top:2px solid #353c45 !important; background:#1b212d !important; }
[data-bs-theme="dark"] #ticketModal .update-comments-list { border:1px solid #363c45 !important; background:#1e262f !important; }
[data-bs-theme="dark"] .modal-content { border:1px solid #343b46 !important; }
[data-bs-theme="dark"] .modal-header { border-bottom:1px solid #333c47 !important; }
[data-bs-theme="dark"] .modal-header h2,
[data-bs-theme="dark"] .modal-header h3 { color:#c4d0e2 !important; }
[data-bs-theme="dark"] .modal-footer { background:#192131 !important; border-top:1px solid #333c47 !important; }
[data-bs-theme="dark"] .modal-body .form-label { color:#abb5c2 !important; }
[data-bs-theme="dark"] .modal-body .form-control,
[data-bs-theme="dark"] .modal-body .form-select { border-color:#343c46 !important; }
[data-bs-theme="dark"] .requester-readonly-grid .detail-value { background:#1e262f !important; }
[data-bs-theme="dark"] .detail-value { color:#b9c4d4 !important; }
[data-bs-theme="dark"] .ticket-description { background:#1d2530 !important; border:1px solid #333c47 !important; }
[data-bs-theme="dark"] .comment-item { background:#172335 !important; border:1px solid #303c4a !important; color:#b2bccb !important; }
[data-bs-theme="dark"] .comment-item strong { color:#bbc8da !important; }
[data-bs-theme="dark"] .dashboard-total-pill { background:#1b212d !important; }
[data-bs-theme="dark"] .dashboard-stat-card { background:#1b212d !important; }
[data-bs-theme="dark"] .dashboard-stat-icon { background:#182539 !important; }
[data-bs-theme="dark"] .dashboard-panel { background:#1b212d !important; }
[data-bs-theme="dark"] .dashboard-panel-icon { background:#182538 !important; }
[data-bs-theme="dark"] .dashboard-bar-chart { border-bottom:1px solid #343c46 !important; }
[data-bs-theme="dark"] .dashboard-bar-track { background:#1e2834 !important; }
[data-bs-theme="dark"] .dashboard-mini-summary div { background:#1d2530 !important; border:1px solid #353c45 !important; }
[data-bs-theme="dark"] .dashboard-donut-hole { background:#1b212d !important; }
[data-bs-theme="dark"] .dashboard-legend { border-top:1px solid #353c45 !important; }
[data-bs-theme="dark"] .workflow-step > span { background:#182539 !important; }
[data-bs-theme="dark"] .workflow-line { background:#28313c !important; }
[data-bs-theme="dark"] .dashboard-action { border:1px solid #353c46 !important; }
[data-bs-theme="dark"] .dashboard-action:hover { background:#172235 !important; border-color:#2c3b4f !important; }
[data-bs-theme="dark"] .dashboard-action > span { background:#182539 !important; }
[data-bs-theme="dark"] .ticket-notification span { border:2px solid #2d384d !important; }
[data-bs-theme="dark"] .profile-dropdown-menu { border:1px solid #373c44 !important; }
[data-bs-theme="dark"] .profile-dropdown-heading { border-bottom:1px solid #363c44 !important; }
[data-bs-theme="dark"] .profile-dropdown-avatar { border:4px solid #313849 !important; }
[data-bs-theme="dark"] .profile-dropdown-identity strong { color:#c5cfe2 !important; }
[data-bs-theme="dark"] .profile-dropdown-row { border-bottom:1px solid #363c44 !important; color:#b8c1cf !important; }
[data-bs-theme="dark"] .profile-dropdown-icon { background:#212a32 !important; color:#abb5c2 !important; }
[data-bs-theme="dark"] .profile-logout .profile-dropdown-icon { background:#381818 !important; }
[data-bs-theme="dark"] .topbar-user-wrap > .ticket-notification span { border:2px solid #2d384d !important; }
[data-bs-theme="dark"] .topbar-user-wrap > .ticket-notification span { border:2px solid #2d384d !important; }
[data-bs-theme="dark"] .profile-dropdown-heading.profile-dropdown-role-only { border-bottom:1px solid #363c45 !important; color:#adb6c3 !important; background:#1b212d !important; }
[data-bs-theme="dark"] .profile-dropdown-menu .dropdown-item,
[data-bs-theme="dark"] .profile-dropdown-menu .dropdown-item:focus,
[data-bs-theme="dark"] .profile-dropdown-menu .dropdown-item:active { background-color:#1b212d !important; color:#bcc5d2 !important; }
[data-bs-theme="dark"] .profile-dropdown-menu .dropdown-item:hover { background-color:#21262f !important; color:#c4d0e2 !important; }
[data-bs-theme="dark"] .profile-dropdown-menu .profile-logout,
[data-bs-theme="dark"] .profile-dropdown-menu .profile-logout:hover,
[data-bs-theme="dark"] .profile-dropdown-menu .profile-logout:focus,
[data-bs-theme="dark"] .profile-dropdown-menu .profile-logout:active { background-color:#1b212d !important; }
[data-bs-theme="dark"] .topbar-avatar { border:3px solid #313849 !important; }
[data-bs-theme="dark"] .sidebar-hamburger { border:1px solid #343c47 !important; color:#bac8da !important; background:#1b212d !important; }
[data-bs-theme="dark"] .sidebar-hamburger:hover,
[data-bs-theme="dark"] .sidebar-hamburger:focus { background:#1d3432 !important; color:#a7d7d9 !important; }
[data-bs-theme="dark"] .primis-portal-dashboard { color:#c0cde2 !important; }
[data-bs-theme="dark"] .portal-section-heading h2 { color:#bfcee3 !important; }
[data-bs-theme="dark"] .portal-system-count { border:1px solid #343f46 !important; background:#1b212d !important; color:#acb6c2 !important; }
[data-bs-theme="dark"] .portal-system-card { border:1px solid #343d46 !important; background:#1b212d !important; }
[data-bs-theme="dark"] .portal-system-icon { background:#1f3936 !important; color:#a7d7d9 !important; }
[data-bs-theme="dark"] .portal-system-status.ready { background:#203a2d !important; color:#aedcc8 !important; }
[data-bs-theme="dark"] .portal-system-status.planned { background:#3e331b !important; color:#d9c6a5 !important; }
[data-bs-theme="dark"] .portal-system-card h3 { color:#bfcee3 !important; }
[data-bs-theme="dark"] .portal-card-metrics span { background:#202830 !important; }
[data-bs-theme="dark"] .portal-card-metrics strong { color:#bacee2 !important; }
[data-bs-theme="dark"] .portal-card-link { border-top:1px solid #363d44 !important; color:#aad7db !important; }
[data-bs-theme="dark"] .portal-system-planned .portal-system-icon { background:#232931 !important; }
[data-bs-theme="dark"] .portal-overview-panel { border:1px solid #353f45 !important; background:#1d2d30 !important; }
[data-bs-theme="dark"] .portal-overview-icon { background:#223c38 !important; color:#a7d7d9 !important; }
[data-bs-theme="dark"] .portal-overview-panel h3 { color:#bdcde1 !important; }
[data-bs-theme="dark"] .session-clock-icon { color:#a7d7d9 !important; }
[data-bs-theme="dark"] .session-warning-card h2 { color:#c4cfe2 !important; }
[data-bs-theme="dark"] .session-countdown { border:8px solid #363d45 !important; }
[data-bs-theme="dark"] .session-countdown strong { color:#c4cfe2 !important; }
[data-bs-theme="dark"] .session-warning-divider { background:#262b31 !important; }
[data-bs-theme="dark"] .session-warning-modal .session-warning-card { background:#1b212d !important; }
[data-bs-theme="dark"] .session-warning-modal .session-clock-icon { color:#a7d7d9 !important; }
[data-bs-theme="dark"] .session-warning-modal h2 { color:#c4cfe2 !important; }
[data-bs-theme="dark"] .session-warning-modal .session-countdown { border:8px solid #363d45 !important; }
[data-bs-theme="dark"] .session-warning-modal .session-countdown strong { color:#c4cfe2 !important; }
[data-bs-theme="dark"] .session-warning-modal .session-warning-divider { background:#262b31 !important; }
[data-bs-theme="dark"] #userTable thead th,
[data-bs-theme="dark"] #userTable tfoot th { background:#1d2530 !important; border-color:#343b47 !important; border-bottom:1px solid #343b47 !important; }
[data-bs-theme="dark"] #userTable tfoot th { border-top:1px solid #343b47 !important; }
[data-bs-theme="dark"] .user-action-menu { background:#1b212d !important; border:1px solid #353c45 !important; }
[data-bs-theme="dark"] .user-action-menu .dropdown-item,
[data-bs-theme="dark"] .user-action-menu form .dropdown-item { color:#c4cfe2 !important; background:#1b212d !important; }
[data-bs-theme="dark"] .user-action-menu .dropdown-item:hover,
[data-bs-theme="dark"] .user-action-menu form .dropdown-item:hover { color:#badbe1 !important; background:#223637 !important; }
[data-bs-theme="dark"] .role-transfer-panel { border:1px solid #343c46 !important; background:#1b212d !important; }
[data-bs-theme="dark"] .role-transfer-heading { color:#c4cfe2 !important; }
[data-bs-theme="dark"] .role-transfer-list { border:1px solid #343b47 !important; background:#1e262f !important; }
[data-bs-theme="dark"] .role-transfer-item { background:#1b212d !important; color:#bfc9da !important; }
[data-bs-theme="dark"] .role-transfer-item:hover { background:#1e3535 !important; }
[data-bs-theme="dark"] .role-transfer-item.is-selected { background:#223b38 !important; color:#bcdfe2 !important; }
[data-bs-theme="dark"] .role-transfer-check { border:1px solid #373c44 !important; background:#1b212d !important; }
[data-bs-theme="dark"] #roleTable thead th,
[data-bs-theme="dark"] #roleTable tfoot th { background:#1d2530 !important; border-color:#343b47 !important; border-bottom:1px solid #343b47 !important; }
[data-bs-theme="dark"] #roleTable tfoot th { border-top:1px solid #343b47 !important; }
[data-bs-theme="dark"] #roleTable .dropdown-menu { border-color:#353c45 !important; }
[data-bs-theme="dark"] #roleTable .dropdown-item { color:#c4cfe2 !important; }
[data-bs-theme="dark"] #roleTable .dropdown-item:hover { color:#badbe1 !important; background:#223637 !important; }
[data-bs-theme="dark"] .primis-data-table,
[data-bs-theme="dark"] #ticketsTable,
[data-bs-theme="dark"] #userTable,
[data-bs-theme="dark"] #roleTable { background:#1b212d !important; }
[data-bs-theme="dark"] .primis-data-table thead th,
[data-bs-theme="dark"] .primis-data-table tfoot th,
[data-bs-theme="dark"] #ticketsTable thead th,
[data-bs-theme="dark"] #ticketsTable tfoot th,
[data-bs-theme="dark"] #userTable thead th,
[data-bs-theme="dark"] #userTable tfoot th,
[data-bs-theme="dark"] #roleTable thead th,
[data-bs-theme="dark"] #roleTable tfoot th,
[data-bs-theme="dark"] .table-responsive table thead th,
[data-bs-theme="dark"] .table-responsive table tfoot th { background:#1d2530 !important; border-bottom:1px solid #343b47 !important; }
[data-bs-theme="dark"] .primis-data-table tfoot th,
[data-bs-theme="dark"] #ticketsTable tfoot th,
[data-bs-theme="dark"] #userTable tfoot th,
[data-bs-theme="dark"] #roleTable tfoot th,
[data-bs-theme="dark"] .table-responsive table tfoot th { border-top:1px solid #343b47 !important; }
[data-bs-theme="dark"] .primis-data-table tbody td,
[data-bs-theme="dark"] #ticketsTable tbody td,
[data-bs-theme="dark"] #userTable tbody td,
[data-bs-theme="dark"] #roleTable tbody td,
[data-bs-theme="dark"] .table-responsive table tbody td { border-bottom:1px solid #353c45 !important; color:#b7c2d2 !important; }
[data-bs-theme="dark"] .primis-data-table tbody tr:hover,
[data-bs-theme="dark"] #ticketsTable tbody tr:hover,
[data-bs-theme="dark"] #userTable tbody tr:hover,
[data-bs-theme="dark"] #roleTable tbody tr:hover { background:#172335 !important; }
[data-bs-theme="dark"] .primis-empty-state,
[data-bs-theme="dark"] .primis-empty-state td,
[data-bs-theme="dark"] td.primis-empty-state,
[data-bs-theme="dark"] .empty-state,
[data-bs-theme="dark"] .user-no-data td,
[data-bs-theme="dark"] .role-no-data td { background:#1b212d !important; }
[data-bs-theme="dark"] .user-no-data:hover,
[data-bs-theme="dark"] .role-no-data:hover,
[data-bs-theme="dark"] tr.no-data-row:hover { background:#1b212d !important; }
[data-bs-theme="dark"] .unified-dt-wrapper { background:#1b212d !important; }
[data-bs-theme="dark"] .unified-dt-wrapper .dt-toolbar { background:#1b212d !important; }
[data-bs-theme="dark"] .unified-dt-wrapper .dt-footer { background:#1b212d !important; }
[data-bs-theme="dark"] .unified-dt-wrapper .primis-data-table thead th,
[data-bs-theme="dark"] .unified-dt-wrapper .primis-data-table tfoot th { background:#1c2633 !important; color:#a7b4c3 !important; border-bottom:1px solid #333c48 !important; }
[data-bs-theme="dark"] .unified-dt-wrapper .primis-data-table tbody td { border-bottom:1px solid #333c47 !important; }
[data-bs-theme="dark"] .unified-dt-wrapper .dt-page { border:1px solid #333c48 !important; background:#1b212d !important; color:#a7b4c3 !important; }
[data-bs-theme="dark"] .dt-wrapper .dt-footer,
[data-bs-theme="dark"] .unified-dt-wrapper .dt-footer { background:#1b212d !important; }
[data-bs-theme="dark"] .dt-wrapper .dt-page,
[data-bs-theme="dark"] .unified-dt-wrapper .dt-page { border:1px solid #353c46 !important; background:#1b212d !important; color:#a7b4c3 !important; }
[data-bs-theme="dark"] .settings-section-heading h2 { color:#c6d1e6 !important; }
[data-bs-theme="dark"] .settings-table-frame { background:#1b212d !important; border:1px solid #333c47 !important; }
[data-bs-theme="dark"] .settings-inner-heading { color:#c6d1e6 !important; }
[data-bs-theme="dark"] .settings-policy-note { border-top:1px solid #343b47 !important; }
[data-bs-theme="dark"] .settings-frame-heading { border-bottom:1px solid #333c47 !important; }
[data-bs-theme="dark"] .settings-frame-heading h2 { color:#c6d1e6 !important; }
[data-bs-theme="dark"] .settings-table-frame,
[data-bs-theme="dark"] .tickets-table-frame { color:#b7c9e0 !important; background:#1b212d !important; border:1px solid #333c47 !important; }
[data-bs-theme="dark"] .settings-table-frame .primis-data-table,
[data-bs-theme="dark"] .tickets-table-frame .primis-data-table { color:#b7c9e0 !important; }
[data-bs-theme="dark"] .settings-table-frame .primis-data-table thead th,
[data-bs-theme="dark"] .settings-table-frame .primis-data-table tfoot th,
[data-bs-theme="dark"] .tickets-table-frame .primis-data-table thead th,
[data-bs-theme="dark"] .tickets-table-frame .primis-data-table tfoot th { background:#1c2633 !important; border-color:#333c47 !important; }
[data-bs-theme="dark"] .settings-table-frame .primis-data-table tbody td,
[data-bs-theme="dark"] .tickets-table-frame .primis-data-table tbody td { color:#b7c9e0 !important; border-color:#333d48 !important; }
[data-bs-theme="dark"] .targets-table-frame .settings-frame-heading { border-bottom:1px solid #333d48 !important; }
[data-bs-theme="dark"] .targets-table-frame .user-action-menu { border:1px solid #353c45 !important; }
[data-bs-theme="dark"] #targetCreateModal .modal-footer,
[data-bs-theme="dark"] #targetEditModal .modal-footer { background:#1b212d !important; border-top:1px solid #363c45 !important; }
[data-bs-theme="dark"] .primis-logout-modal .modal-content { background:#1b212d !important; }
[data-bs-theme="dark"] .primis-logout-modal .logout-modal-icon { border:1px solid #304a47 !important; color:#a7d7d9 !important; }
[data-bs-theme="dark"] .primis-logout-modal h2 { color:#c6d1e6 !important; }
[data-bs-theme="dark"] .primis-logout-modal .logout-session-note { border:1px solid #353d45 !important; background:#1e262f !important; color:#aab3bd !important; }
[data-bs-theme="dark"] .primis-logout-modal .logout-session-note i { color:#a7d7d9 !important; }
[data-bs-theme="dark"] .primis-logout-modal .logout-cancel-btn { border:1px solid #353d45 !important; background:#1b212d !important; color:#b9c4d2 !important; }
[data-bs-theme="dark"] .primis-logout-modal .logout-cancel-btn:hover { border-color:#363d44 !important; background:#1f2630 !important; color:#c6d1e6 !important; }
[data-bs-theme="dark"] .primis-logout-modal .logout-modal-footer { border-top:1px solid #363d44 !important; background:#1f252c !important; }
[data-bs-theme="dark"] .primis-logout-modal .logout-modal-footer i { color:#a7d7d9 !important; }
[data-bs-theme="dark"] .session-warning-modal .modal-content { background:#1b212d !important; }
[data-bs-theme="dark"] .session-warning-modal .session-warning-card { background:#1b212d !important; }
[data-bs-theme="dark"] .session-warning-modal h2 { color:#c6d1e6 !important; }
[data-bs-theme="dark"] .session-warning-modal .session-countdown-panel { border:1px solid #353e46 !important; }
[data-bs-theme="dark"] .session-warning-modal .session-countdown-label i { color:#a7d7d9 !important; }
[data-bs-theme="dark"] .session-warning-modal .session-countdown strong { color:#c6d1e6 !important; }
[data-bs-theme="dark"] .session-warning-modal .session-countdown-track { background:#283438 !important; }
[data-bs-theme="dark"] .session-warning-modal .logout-session-note { border:1px solid #353d45 !important; background:#1e262f !important; color:#aab3bd !important; }
[data-bs-theme="dark"] .session-warning-modal .logout-modal-footer { border-top:1px solid #363d44 !important; background:#1f252c !important; }
[data-bs-theme="dark"] .session-warning-modal .logout-modal-footer i { color:#a7d7d9 !important; }
[data-bs-theme="dark"] .session-warning-modal .modal-content.session-warning-shell { background:#1b212d !important; }
[data-bs-theme="dark"] .session-warning-main { background:#1b212d !important; }
[data-bs-theme="dark"] .session-warning-main-icon { border:1px solid #353e45 !important; color:#a7d7d9 !important; background:#1e3131 !important; }
[data-bs-theme="dark"] .session-warning-modal .session-warning-copy h2 { color:#c3d1e5 !important; }
[data-bs-theme="dark"] .session-warning-info { border:1px solid #384343 !important; background:#1f3030 !important; }
[data-bs-theme="dark"] .session-warning-info-icon { background:#243c38 !important; color:#addadc !important; }
[data-bs-theme="dark"] .session-warning-modal .session-logout-button { border:1px solid #363d45 !important; background:#1b212d !important; color:#aeb7c3 !important; }
[data-bs-theme="dark"] .session-warning-modal .session-logout-button:hover { background:#1d2530 !important; color:#c0cfe2 !important; }
[data-bs-theme="dark"] .session-warning-footer { border-top:1px solid #363d44 !important; background:#192131 !important; }
[data-bs-theme="dark"] .session-warning-footer i { color:#a7d7d9 !important; }
[data-bs-theme="dark"] .session-warning-modal .session-warning-shell { background:#1b212d !important; }
[data-bs-theme="dark"] .session-warning-symbol { border:1px solid #324946 !important; color:#a7d7d9 !important; }
[data-bs-theme="dark"] .session-warning-symbol-dot { border:3px solid #2d384d !important; }
[data-bs-theme="dark"] .session-warning-kicker { color:#a7d7d9 !important; }
[data-bs-theme="dark"] .session-warning-content h2 { color:#c3d1e5 !important; }
[data-bs-theme="dark"] .session-warning-timer-panel { border:1px solid #353d46 !important; background:#1e262f !important; }
[data-bs-theme="dark"] .session-warning-timer-live { color:#a7d7d9 !important; }
[data-bs-theme="dark"] .session-warning-modal .session-countdown strong { color:#c1cfe4 !important; }
[data-bs-theme="dark"] .session-countdown-track { background:#283037 !important; }
[data-bs-theme="dark"] .session-warning-info>.fa { color:#a7d7d9 !important; }
[data-bs-theme="dark"] .session-warning-info strong { color:#b3bdcc !important; }
[data-bs-theme="dark"] .session-warning-modal .session-logout-button { border:1px solid #363d45 !important; background:#1b212d !important; color:#afb8c4 !important; }
[data-bs-theme="dark"] .session-warning-modal .session-logout-button:hover { border-color:#363d44 !important; background:#1e2831 !important; color:#bccadc !important; }
[data-bs-theme="dark"] .session-warning-footer { border-top:1px solid #363d44 !important; background:#1b252f !important; }
[data-bs-theme="dark"] .session-warning-footer>.fa { color:#a7d7d9 !important; }
[data-bs-theme="dark"] .session-warning-modal .session-warning-shell { border:1px solid #343e46 !important; background:#1b212d !important; }
[data-bs-theme="dark"] .session-warning-modal .session-warning-header-status .fa { color:#96d1d2 !important; }
[data-bs-theme="dark"] .session-warning-modal .session-warning-symbol-wrap { border:7px solid #314949 !important; }
[data-bs-theme="dark"] .session-warning-modal .session-warning-symbol { background:#223b3b !important; color:#b0dbdd !important; }
[data-bs-theme="dark"] .session-warning-modal .session-warning-content h2 { color:#c1d2e4 !important; }
[data-bs-theme="dark"] .session-warning-modal .session-warning-text { color:#a8b4c3 !important; }
[data-bs-theme="dark"] .session-warning-modal .session-warning-timer-panel { background:#1c2f36 !important; }
[data-bs-theme="dark"] .session-warning-modal .session-countdown strong { color:#c1d2e4 !important; }
[data-bs-theme="dark"] .session-warning-modal .session-countdown-track { background:#313b43 !important; }
[data-bs-theme="dark"] .session-warning-modal .session-warning-info { background:#1c2f36 !important; color:#a8b5c3 !important; }
[data-bs-theme="dark"] .session-warning-modal .session-warning-info>.fa { color:#a8d7da !important; }
[data-bs-theme="dark"] .session-warning-modal .session-logout-button { background:#1b212d !important; color:#bbcfe2 !important; }
[data-bs-theme="dark"] .session-warning-modal .session-logout-button:hover { background:#1d2930 !important; color:#c1d2e4 !important; }
[data-bs-theme="dark"] .session-warning-modal .session-warning-footer { border-top:1px solid #363d44 !important; background:#1b2932 !important; }
[data-bs-theme="dark"] .session-warning-modal .session-warning-footer>.fa { color:#abdadb !important; }
[data-bs-theme="dark"] body .btn.task-action-trigger { border:1px solid #353c45 !important; background:#1b212d !important; color:#afb9c7 !important; }
[data-bs-theme="dark"] body .btn.task-action-trigger:hover,
[data-bs-theme="dark"] body .btn.task-action-trigger.show,
[data-bs-theme="dark"] body .btn.task-action-trigger:focus { background:#1b2838 !important; color:#a3bfd8 !important; border-color:#2e3c4c !important; }
[data-bs-theme="dark"] body .dropdown-menu.task-action-menu { background:#1b212d !important; border:1px solid #353c45 !important; }
[data-bs-theme="dark"] body .dropdown-menu.task-action-menu .dropdown-item { color:#c1ccde !important; }
[data-bs-theme="dark"] body .dropdown-menu.task-action-menu .task-act-view .task-act-icon { background:#1a293c !important; color:#94aed1 !important; }
[data-bs-theme="dark"] body .dropdown-menu.task-action-menu .task-act-edit .task-act-icon { background:#40331c !important; color:#d8c4a4 !important; }
[data-bs-theme="dark"] body .dropdown-menu.task-action-menu .task-act-submit .task-act-icon,
[data-bs-theme="dark"] body .dropdown-menu.task-action-menu .task-act-review .task-act-icon { background:#223c2e !important; color:#acdbbe !important; }
[data-bs-theme="dark"] body .dropdown-menu.task-action-menu .task-act-delete .task-act-icon { background:#3c1a1a !important; }
[data-bs-theme="dark"] body .dropdown-menu.task-action-menu .task-act-view:is(:hover,
[data-bs-theme="dark"] :focus,
[data-bs-theme="dark"] :focus-visible,
[data-bs-theme="dark"] :active) { background:#192639 !important; }
[data-bs-theme="dark"] body .dropdown-menu.task-action-menu .task-act-edit:is(:hover,
[data-bs-theme="dark"] :focus,
[data-bs-theme="dark"] :focus-visible,
[data-bs-theme="dark"] :active) { background:#3a2f19 !important; }
[data-bs-theme="dark"] body .dropdown-menu.task-action-menu .task-act-submit:is(:hover,
[data-bs-theme="dark"] :focus,
[data-bs-theme="dark"] :focus-visible,
[data-bs-theme="dark"] :active),
[data-bs-theme="dark"] body .dropdown-menu.task-action-menu .task-act-review:is(:hover,
[data-bs-theme="dark"] :focus,
[data-bs-theme="dark"] :focus-visible,
[data-bs-theme="dark"] :active) { background:#1d3628 !important; }
[data-bs-theme="dark"] body .dropdown-menu.task-action-menu .task-act-delete,
[data-bs-theme="dark"] body .dropdown-menu.task-action-menu .task-act-delete:is(:hover,
[data-bs-theme="dark"] :focus,
[data-bs-theme="dark"] :focus-visible,
[data-bs-theme="dark"] :active) { color:#d39898 !important; }
[data-bs-theme="dark"] body .dropdown-menu.task-action-menu .task-act-delete:is(:hover,
[data-bs-theme="dark"] :focus,
[data-bs-theme="dark"] :focus-visible,
[data-bs-theme="dark"] :active) { background:#391919 !important; }
[data-bs-theme="dark"] body .dropdown-menu.task-action-menu .dropdown-divider { border-top:1px solid #353c45 !important; }
[data-bs-theme="dark"] .session-warning-modal .modal-content.session-warning-shell { border:1px solid #343e46 !important; background:#1b212d !important; }
[data-bs-theme="dark"] .session-warning-modal .session-warning-header-status .fa { color:#96d1d2 !important; }
[data-bs-theme="dark"] .session-warning-modal .session-warning-symbol-wrap { border:8px solid #314949 !important; }
[data-bs-theme="dark"] .session-warning-modal .session-warning-symbol { background:#223b3b !important; color:#b0dbdd !important; }
[data-bs-theme="dark"] .session-warning-modal .session-warning-content h2 { color:#c1d2e4 !important; }
[data-bs-theme="dark"] .session-warning-modal .session-warning-text { color:#a8b4c3 !important; }
[data-bs-theme="dark"] .session-warning-modal .session-warning-timer-panel { background:#1c2f36 !important; }
[data-bs-theme="dark"] .session-warning-modal .session-countdown strong { color:#c1d2e4 !important; }
[data-bs-theme="dark"] .session-warning-modal .session-countdown-track { background:#313b43 !important; }
[data-bs-theme="dark"] .session-warning-modal .session-warning-info { background:#1c2f36 !important; color:#a8b5c3 !important; }
[data-bs-theme="dark"] .session-warning-modal .session-warning-info>.fa { color:#a8d7da !important; }
[data-bs-theme="dark"] .session-warning-modal .session-logout-button { background:#1b212d !important; color:#bbcfe2 !important; }
[data-bs-theme="dark"] .session-warning-modal .session-logout-button:hover { background:#1d2930 !important; color:#c1d2e4 !important; }
[data-bs-theme="dark"] .session-warning-modal .session-warning-footer { border-top:1px solid #363d44 !important; background:#1b2932 !important; }
[data-bs-theme="dark"] .session-warning-modal .session-warning-footer>.fa { color:#abdadb !important; }
[data-bs-theme="dark"] .task-request-summary .task-summary-item.fund-danger { background:#391919 !important; border-color:#4e2d2d !important; }
[data-bs-theme="dark"] .task-request-summary .task-summary-item.fund-warning { background:#3c311a !important; border-color:#50442b !important; }
[data-bs-theme="dark"] .task-request-summary .task-summary-item.fund-success { background:#213629 !important; border-color:#33473b !important; }
[data-bs-theme="dark"] .task-request-summary .task-summary-item.fund-muted { background:#23282f !important; border-color:#363c45 !important; }
[data-bs-theme="dark"] .task-request-summary .fund-danger strong { color:#d29797 !important; }
[data-bs-theme="dark"] .task-request-summary .fund-warning strong { color:#dbc9ab !important; }
[data-bs-theme="dark"] .task-request-summary .fund-success strong { color:#b4dfc7 !important; }
[data-bs-theme="dark"] .task-request-summary .fund-muted strong { color:#a9b1bd !important; }
[data-bs-theme="dark"] .fund-danger .fund-state { color:#d29797 !important; }
[data-bs-theme="dark"] .fund-warning .fund-state { color:#dbc9ab !important; }
[data-bs-theme="dark"] .fund-success .fund-state { color:#acdbbe !important; }
[data-bs-theme="dark"] .impl-restriction-alert { border:1px solid #50442b !important; background:#3b3119 !important; color:#e3dabf !important; }
[data-bs-theme="dark"] .impl-restriction-alert .impl-restriction-title i { color:#d6c29e !important; }
[data-bs-theme="dark"] .impl-chip { background:#1b212d !important; border:1px solid #4e442c !important; color:#e1d5ba !important; }
[data-bs-theme="dark"] .impl-pending-list { border:1px solid #4e442c !important; background:#1b212d !important; }
[data-bs-theme="dark"] .impl-pending-item { border-bottom:1px solid #4e442d !important; }
[data-bs-theme="dark"] .impl-pending-item .impl-p-code { color:#a1b6d7 !important; }
[data-bs-theme="dark"] .impl-pending-item .impl-p-task { color:#b0bccc !important; }
[data-bs-theme="dark"] .impl-pending-item .impl-p-stage { background:#44371d !important; color:#ddceb0 !important; }
[data-bs-theme="dark"] .impl-pending-item .impl-p-stage.stage-2 { background:#1c2a41 !important; color:#a1b6d7 !important; }
[data-bs-theme="dark"] .impl-pending-item .impl-p-stage.stage-3 { background:#221b3e !important; color:#9f96d0 !important; }
[data-bs-theme="dark"] .num-negative { color:#d29797 !important; }
[data-bs-theme="dark"] .task-request-summary .task-summary-grid .task-summary-item { border:1px solid #2e3b4d !important; background:#1b212d !important; }
[data-bs-theme="dark"] .task-request-summary .task-summary-grid .task-summary-item strong { color:#aac8db !important; }
[data-bs-theme="dark"] .task-request-summary .task-summary-grid .task-summary-item.fund-danger { background:#391919 !important; border-color:#4e2d2d !important; }
[data-bs-theme="dark"] .task-request-summary .task-summary-grid .task-summary-item.fund-warning { background:#3c311a !important; border-color:#50442b !important; }
[data-bs-theme="dark"] .task-request-summary .task-summary-grid .task-summary-item.fund-success { background:#213629 !important; border-color:#33473b !important; }
[data-bs-theme="dark"] .task-request-summary .task-summary-grid .task-summary-item.fund-muted { background:#23282f !important; border-color:#363c45 !important; }
[data-bs-theme="dark"] .task-request-summary .task-summary-grid .task-summary-item.fund-danger strong { color:#d29797 !important; }
[data-bs-theme="dark"] .task-request-summary .task-summary-grid .task-summary-item.fund-warning strong { color:#dbc9ab !important; }
[data-bs-theme="dark"] .task-request-summary .task-summary-grid .task-summary-item.fund-success strong { color:#b4dfc7 !important; }
[data-bs-theme="dark"] .task-request-summary .task-summary-grid .task-summary-item.fund-muted strong { color:#a9b1bd !important; }
[data-bs-theme="dark"] .dept-switch-btn:disabled { color:#b0bccc !important; }
[data-bs-theme="dark"] .task-status-pill.is-analysed { background:#1c2a41 !important; color:#a1b6d7 !important; }
[data-bs-theme="dark"] .notif-bell { background:#1b212d !important; color:#b4bcc8 !important; }
[data-bs-theme="dark"] .notif-badge { border:2px solid #2d384d !important; }
[data-bs-theme="dark"] .notif-body { background:#1e262f !important; }
[data-bs-theme="dark"] .notif-tabs { background:#1e262f !important; }
[data-bs-theme="dark"] .notif-tab { border:1px solid #343c46 !important; background:#1b212d !important; color:#b4bcc8 !important; }
[data-bs-theme="dark"] .notif-module-count.zero { background:#323943 !important; }
[data-bs-theme="dark"] .notif-none { background:#1b212d !important; border:1px dashed #353c45 !important; }
[data-bs-theme="dark"] .notif-item { background:#1b212d !important; border:1px solid #343c46 !important; }
[data-bs-theme="dark"] .notif-item-head { color:#cad3e7 !important; }
[data-bs-theme="dark"] .notif-item-head:hover { background:#202932 !important; }
[data-bs-theme="dark"] .notif-item-icon { background:#182039 !important; }
[data-bs-theme="dark"] .notif-rows { border-top:1px solid #343c46 !important; }
[data-bs-theme="dark"] .notif-rows a { color:#bcc5d2 !important; }
[data-bs-theme="dark"] .notif-rows a:hover { background:#202932 !important; }
[data-bs-theme="dark"] .notif-row-tag { background:#222a33 !important; color:#b4bcc8 !important; }

/* Password forms (dark) */
[data-bs-theme="dark"] .pw-modal-head { border-bottom-color:#2a374e; }
[data-bs-theme="dark"] .pw-modal-head .modal-title, [data-bs-theme="dark"] .pw-label, [data-bs-theme="dark"] .pw-signout label { color:#e3e9f4; }
[data-bs-theme="dark"] .pw-field { background:#0f1a2c; border-color:#4a5a78; }
[data-bs-theme="dark"] .pw-lock { color:#93a1ba; }
[data-bs-theme="dark"] .pw-input { color:#e3e9f4; }
[data-bs-theme="dark"] .pw-eye, [data-bs-theme="dark"] .password-toggle, [data-bs-theme="dark"] .pw-cancel { color:#6cb2ff; }
[data-bs-theme="dark"] .pw-bar { background:#2a374e; }
[data-bs-theme="dark"] .pw-meter-row, [data-bs-theme="dark"] .pw-rules li, [data-bs-theme="dark"] .pw-signout small { color:#a3b0c7; }
[data-bs-theme="dark"] .pw-rules li .fa { color:#7d8ba5; }
[data-bs-theme="dark"] .pw-rules li.ok, [data-bs-theme="dark"] .pw-rules li.ok .fa { color:#4ade80; }
[data-bs-theme="dark"] .pw-meter[data-level="weak"] .pw-level { color:#f87171; }
[data-bs-theme="dark"] .pw-meter[data-level="fair"] .pw-level { color:#fbbf24; }
[data-bs-theme="dark"] .pw-meter[data-level="good"] .pw-level { color:#38bdf8; }
[data-bs-theme="dark"] .pw-meter[data-level="strong"] .pw-level { color:#4ade80; }
[data-bs-theme="dark"] .pw-match.ok { color:#4ade80; } [data-bs-theme="dark"] .pw-match.bad { color:#f87171; }

/* light gradients -> dark surface */
[data-bs-theme="dark"] .auth-form-panel { background:#172033 !important; }
[data-bs-theme="dark"] .dt-toolbar { background:#172033 !important; }
[data-bs-theme="dark"] .modal-header { background:#172033 !important; }
[data-bs-theme="dark"] .portal-system-planned { background:#172033 !important; }
[data-bs-theme="dark"] .primis-logout-modal .logout-modal-icon { background:#172033 !important; }
[data-bs-theme="dark"] .session-warning-modal .session-countdown-panel { background:#172033 !important; }
[data-bs-theme="dark"] .session-warning-symbol { background:#172033 !important; }

/* Help Desk reports (dark) */
[data-bs-theme="dark"] .hr-filters, [data-bs-theme="dark"] .hr-card, [data-bs-theme="dark"] .hr-panel { background:#172033 !important; border-color:#2a374e !important; }
[data-bs-theme="dark"] .hr-h2, [data-bs-theme="dark"] .hr-card strong, [data-bs-theme="dark"] .hr-panel h3, [data-bs-theme="dark"] .hr-bar-n { color:#e3e9f4 !important; }
[data-bs-theme="dark"] .hr-bar-t { background:#2a374e; } [data-bs-theme="dark"] .hr-bar-l, [data-bs-theme="dark"] .hr-f label, [data-bs-theme="dark"] .hr-card small { color:#a3b0c7 !important; }
[data-bs-theme="dark"] .hr-pill { background:#2a374e; color:#cbd5e1; }
[data-bs-theme="dark"] .hr-pill.st-primary { background:#1e3a8a; color:#bfdbfe; } [data-bs-theme="dark"] .hr-pill.st-purple { background:#4c1d95; color:#ddd6fe; }
[data-bs-theme="dark"] .hr-pill.st-warning { background:#78350f; color:#fde68a; } [data-bs-theme="dark"] .hr-pill.st-orange { background:#7c2d12; color:#fed7aa; }
[data-bs-theme="dark"] .hr-pill.st-success, [data-bs-theme="dark"] .hr-pill.pr-low { background:#14532d; color:#bbf7d0; } [data-bs-theme="dark"] .hr-pill.st-danger, [data-bs-theme="dark"] .hr-pill.pr-critical { background:#7f1d1d; color:#fecaca; }
[data-bs-theme="dark"] .hr-pill.pr-high { background:#7c2d12; color:#fed7aa; } [data-bs-theme="dark"] .hr-pill.pr-medium { background:#1e3a8a; color:#bfdbfe; } [data-bs-theme="dark"] .hr-pill.st-secondary { background:#334155; color:#e2e8f0; }

/* Dashboard cards / widgets (dark) */
[data-bs-theme="dark"] .dashboard-modern .dashboard-stat-card { background: linear-gradient(160deg, #172033 55%, color-mix(in srgb, var(--tone) 14%, #172033) 100%) !important; border-color:#2a374e !important; box-shadow:0 8px 22px rgba(0,0,0,.35) !important; }
[data-bs-theme="dark"] .dashboard-modern .dashboard-stat-card .stat-value { color:#f1f5f9 !important; }
[data-bs-theme="dark"] .dashboard-modern .dashboard-stat-card .stat-label, [data-bs-theme="dark"] .dashboard-modern .dashboard-stat-foot { color:#9fb0c9 !important; }
[data-bs-theme="dark"] .dash-ring-hole, [data-bs-theme="dark"] .dashboard-donut-hole { background:#172033 !important; }
[data-bs-theme="dark"] .dash-ring-hole strong { color:#f1f5f9; } [data-bs-theme="dark"] .dash-ring-hole span { color:#9fb0c9; }
[data-bs-theme="dark"] .dash-mc-axis span { border-bottom-color:#2a374e; color:#7d8ba5; } [data-bs-theme="dark"] .dash-mc-lab, [data-bs-theme="dark"] .dash-mc-bar em, [data-bs-theme="dark"] .dash-mc-legend { color:#a3b0c7; }
[data-bs-theme="dark"] .dash-mc-col.is-current { background: rgba(96,165,250,.10); }
[data-bs-theme="dark"] .dashboard-modern .dashboard-stat-icon { background: linear-gradient(135deg, var(--tone), color-mix(in srgb, var(--tone) 70%, #000)) !important; }
[data-bs-theme="dark"] .dash-card-meter { background: rgba(255,255,255,.10) !important; }
[data-bs-theme="dark"] .dash-mc-bar em { background:#e2e8f0 !important; color:#0f172a !important; }

/* ===== Tasks MIS: summary panels, cards and modal content (pages ship light inline styles) ===== */
[data-bs-theme="dark"] body .task-request-summary,
[data-bs-theme="dark"] body .pm-summary { background:#172033 !important; border:1px solid #2a374e !important; color:#d5deec !important; box-shadow:none !important; }
[data-bs-theme="dark"] body .task-summary-title,
[data-bs-theme="dark"] body .pm-summary-title { color:#dbe5f3 !important; }
[data-bs-theme="dark"] body .task-summary-item,
[data-bs-theme="dark"] body .pm-card,
[data-bs-theme="dark"] body .task-view-card,
[data-bs-theme="dark"] body .analysis-dept-card,
[data-bs-theme="dark"] body .dept-forward-all,
[data-bs-theme="dark"] body .dept-forward-item,
[data-bs-theme="dark"] body .pay-fields,
[data-bs-theme="dark"] body .impl-current-file { background:#1b212d !important; border-color:#2e3b4d !important; color:#d5deec !important; }
[data-bs-theme="dark"] body .task-summary-label,
[data-bs-theme="dark"] body .pm-card .pm-lbl,
[data-bs-theme="dark"] body .pm-legend,
[data-bs-theme="dark"] body .task-request-summary small,
[data-bs-theme="dark"] body .task-view-label,
[data-bs-theme="dark"] body .task-view-card span,
[data-bs-theme="dark"] body .review-timeline-meta,
[data-bs-theme="dark"] body .dept-forward-meta,
[data-bs-theme="dark"] body .impl-submit-facts span,
[data-bs-theme="dark"] body .db-ring small { color:#9fb0c8 !important; }
[data-bs-theme="dark"] body .task-view-card strong,
[data-bs-theme="dark"] body .pm-card strong,
[data-bs-theme="dark"] body .review-timeline-meta strong,
[data-bs-theme="dark"] body .analysis-dept-toggle,
[data-bs-theme="dark"] body .task-view-ref-label,
[data-bs-theme="dark"] body .task-request-modal-dialog .form-label,
[data-bs-theme="dark"] body .impl-snippet { color:#d5deec !important; }
[data-bs-theme="dark"] body .task-view-card>i { background:#1a293c !important; color:#94aed1 !important; }
[data-bs-theme="dark"] body .task-view-task,
[data-bs-theme="dark"] body .review-timeline-text,
[data-bs-theme="dark"] body .task-view-ref .form-control[readonly],
[data-bs-theme="dark"] body .impl-stage-page .impl-readonly { background:#1d2530 !important; border-color:#2e3b4d !important; color:#d5deec !important; }
[data-bs-theme="dark"] body .task-modal-notice,
[data-bs-theme="dark"] body .review-cash-info { background:#182539 !important; border-color:#2c3f59 !important; color:#b7cbe6 !important; }
[data-bs-theme="dark"] body .review-cash-info.is-over { background:#391919 !important; border-color:#4e2d2d !important; color:#e0a6a6 !important; }
[data-bs-theme="dark"] body .review-decision { background:#182a22 !important; border-color:#2e3b4d !important; border-left-color:#2f9e63 !important; }
[data-bs-theme="dark"] body .review-decision-title { color:#a9dcbf !important; }
[data-bs-theme="dark"] body .task-view-table thead th,
[data-bs-theme="dark"] body .analysis-dept-table thead th,
[data-bs-theme="dark"] body .bulk-task-table thead th,
[data-bs-theme="dark"] body .db-total td,
[data-bs-theme="dark"] body th { background:#1f2837 !important; color:#b8c5d9 !important; }
[data-bs-theme="dark"] body .task-view-table tfoot th { background:#1d3628 !important; color:#acdbbe !important; border-top-color:#33473b !important; }
[data-bs-theme="dark"] body .task-request-modal-dialog .modal-header,
[data-bs-theme="dark"] body .task-request-modal-dialog .modal-footer,
[data-bs-theme="dark"] body #budgetCreateModal .modal-footer { background:#172033 !important; }
[data-bs-theme="dark"] body .dept-action-switch { background:#1f2837 !important; }
[data-bs-theme="dark"] body .dept-switch-btn { color:#b8c5d9 !important; }
[data-bs-theme="dark"] body .dept-switch-btn:hover { background:#2a3548 !important; }
[data-bs-theme="dark"] body .dept-switch-btn.is-active { color:#fff !important; }
[data-bs-theme="dark"] body .dept-forward-item:hover { background:#202a3a !important; }
[data-bs-theme="dark"] body .task-status-pill.is-notstarted { background:#2a3340 !important; color:#b8c5d9 !important; }
[data-bs-theme="dark"] body .task-status-pill.is-draft { background:#40331c !important; color:#e0cfa6 !important; }
[data-bs-theme="dark"] body .task-status-pill.is-submitted { background:#223c2e !important; color:#acdbbe !important; }
[data-bs-theme="dark"] body .task-status-pill.is-analysed { background:#1a293c !important; color:#a9c4ea !important; }
[data-bs-theme="dark"] body .task-confirm-icon.is-danger { background:#3c1a1a !important; color:#e0a6a6 !important; }
[data-bs-theme="dark"] body .task-confirm-icon.is-success { background:#223c2e !important; color:#acdbbe !important; }
[data-bs-theme="dark"] body .impl-progress,
[data-bs-theme="dark"] body .pm-bar,
[data-bs-theme="dark"] body .db-split { background:#283243 !important; }
[data-bs-theme="dark"] body .db-ring { background:#1b212d !important; }

/* ===== Three-dot action menus (all modules): item names readable in dark mode ===== */
[data-bs-theme="dark"] body .dropdown-menu.task-action-menu .dropdown-item,
[data-bs-theme="dark"] body .dropdown-menu.task-action-menu .dropdown-item span:not(.task-act-icon) { color:#d5deec !important; -webkit-text-fill-color:#d5deec !important; }
[data-bs-theme="dark"] body .dropdown-menu.task-action-menu .task-act-view .task-act-icon { -webkit-text-fill-color:#94aed1 !important; }
[data-bs-theme="dark"] body .dropdown-menu.task-action-menu .task-act-edit .task-act-icon { -webkit-text-fill-color:#d8c4a4 !important; }
[data-bs-theme="dark"] body .dropdown-menu.task-action-menu .task-act-submit .task-act-icon,
[data-bs-theme="dark"] body .dropdown-menu.task-action-menu .task-act-review .task-act-icon { -webkit-text-fill-color:#acdbbe !important; }
[data-bs-theme="dark"] body .dropdown-menu.task-action-menu .task-act-delete .task-act-icon { color:#e0a6a6 !important; -webkit-text-fill-color:#e0a6a6 !important; }
[data-bs-theme="dark"] body .dropdown-menu.task-action-menu .task-act-delete,
[data-bs-theme="dark"] body .dropdown-menu.task-action-menu .task-act-delete:is(:hover,:focus,:focus-visible,:active) { color:#e0a6a6 !important; -webkit-text-fill-color:#e0a6a6 !important; }
[data-bs-theme="dark"] body .dropdown-menu.task-action-menu .task-menu-head { color:#8d9db4 !important; }
[data-bs-theme="dark"] body .dropdown-menu.task-action-menu .dropdown-item:is(:hover,:focus,:focus-visible,:active) { color:#eef3fb !important; -webkit-text-fill-color:#eef3fb !important; }

/* ===== Departmental summary tables / utilisation page ===== */
[data-bs-theme="dark"] body .db-ring { background:#1b212d !important; border-color:#2e3b4d !important; box-shadow:none !important; }
[data-bs-theme="dark"] body .db-split { background:#283243 !important; }
[data-bs-theme="dark"] body .db-split .r { background:#1f4d36 !important; }
[data-bs-theme="dark"] body .db-pct.u { color:#8ab4f8 !important; }
[data-bs-theme="dark"] body .db-pct.r { color:#7fd6a4 !important; }
[data-bs-theme="dark"] body .db-total td { background:#1f2837 !important; color:#d5deec !important; }
[data-bs-theme="dark"] body .pm-table tbody tr:hover td { background:#202a3a !important; }

/* ===== "Department summary" collapse bar and body (Analysis, Approval, Payment, Implementation stages) ===== */
[data-bs-theme="dark"] body .analysis-dept-toggle,
[data-bs-theme="dark"] body button.analysis-dept-toggle { background:#1f2837 !important; color:#d5deec !important; -webkit-text-fill-color:#d5deec !important; border:0 !important; }
[data-bs-theme="dark"] body .analysis-dept-toggle:hover { background:#263248 !important; }
[data-bs-theme="dark"] body .analysis-dept-toggle .text-muted { color:#9fb0c8 !important; }
[data-bs-theme="dark"] body .analysis-dept-toggle i { color:#9fb0c8 !important; }
[data-bs-theme="dark"] body .analysis-dept-card .collapse,
[data-bs-theme="dark"] body .analysis-dept-card .analysis-dept-body { background:#1b212d !important; }

/* ===== Tasks Management Reports page ===== */
[data-bs-theme="dark"] body .trp-tabs a { background:#1b212d !important; border-color:#2e3b4d !important; color:#c1ccde !important; }
[data-bs-theme="dark"] body .trp-tabs a.active { background:#1a73b8 !important; border-color:#1a73b8 !important; color:#fff !important; }
