:root {
    --sawaco-theme-transition: 180ms ease;
}

html[data-sawaco-theme="dark"] {
    --bs-secondary-text-emphasis: #d8e9f3;
    --bs-success-text-emphasis: #a8e6c1;
    --bs-info-text-emphasis: #b7e9ff;
    --bs-warning-text-emphasis: #f6d68a;
    --bs-danger-text-emphasis: #ffb4b8;
    --bs-light-text-emphasis: #b5cbda;
    --bs-dark-text-emphasis: #e7f5fc;
    --bs-primary-bg-subtle: #12364c;
    --bs-secondary-bg-subtle: #1c3040;
    --bs-success-bg-subtle: #14382d;
    --bs-info-bg-subtle: #12384b;
    --bs-warning-bg-subtle: #3b321c;
    --bs-danger-bg-subtle: #42242a;
    --bs-light-bg-subtle: #102434;
    --bs-dark-bg-subtle: #091823;
    --bs-primary-border-subtle: #2f6c8c;
    --bs-secondary-border-subtle: #385264;
    --bs-success-border-subtle: #2c6a50;
    --bs-info-border-subtle: #2c7088;
    --bs-warning-border-subtle: #796331;
    --bs-danger-border-subtle: #84505a;
    --bs-light-border-subtle: #2b4659;
    --bs-dark-border-subtle: #20394b;
    --sawaco-blue: #2aaee8;
    --sawaco-blue-deep: #0788c1;
    --sawaco-blue-light: #12384f;
    --sawaco-blue-line: #28536b;
    --sawaco-sky: #22d3ee;
    --sawaco-ink: #e8f6ff;
    --sawaco-muted: #9fb9ca;
    --sawaco-panel: #10283a;
    --sawaco-page: #071522;
    --sawaco-shadow: 0 20px 48px rgba(0, 5, 12, 0.36);
    --sawaco-icon-surface: #12364c;
    --sawaco-icon-surface-raised: #17465f;
    --sawaco-icon-border: rgba(68, 151, 193, 0.42);
    --sawaco-icon-ink: #70d8ff;
    --sawaco-accent-surface: #15516c;
    --sawaco-accent-surface-hover: #1a607c;
}

html[data-sawaco-theme="dark"],
html[data-sawaco-theme="dark"] body {
    background-color: #071522;
    color: var(--sawaco-ink);
}

.sawaco-theme-enabled,
.sawaco-theme-enabled .wrapper,
.sawaco-theme-enabled .content-wrapper,
.sawaco-theme-enabled .main-header,
.sawaco-theme-enabled .main-sidebar,
.sawaco-theme-enabled .card,
.sawaco-theme-enabled .modal-content,
.sawaco-theme-enabled .form-control,
.sawaco-theme-enabled .custom-select,
.sawaco-theme-enabled .dropdown-menu {
    transition: background-color var(--sawaco-theme-transition), border-color var(--sawaco-theme-transition), color var(--sawaco-theme-transition), box-shadow var(--sawaco-theme-transition);
}

.sawaco-theme-toggle {
    position: relative;
    display: inline-flex;
    min-width: 42px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(0, 108, 181, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    color: #174f75;
    font: 700 13px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(0, 73, 125, 0.08);
    transition: background-color var(--sawaco-theme-transition), border-color var(--sawaco-theme-transition), color var(--sawaco-theme-transition), box-shadow var(--sawaco-theme-transition), transform var(--sawaco-theme-transition);
}

.sawaco-theme-toggle:hover,
.sawaco-theme-toggle:focus {
    border-color: rgba(0, 108, 181, 0.34);
    background: #e9f7ff;
    color: #006cb5;
    box-shadow: 0 14px 28px rgba(0, 108, 181, 0.15);
    outline: 0;
    transform: translateY(-1px);
}

.sawaco-theme-toggle:focus-visible {
    box-shadow: 0 0 0 3px rgba(42, 174, 232, 0.28), 0 14px 28px rgba(0, 108, 181, 0.15);
}

.sawaco-theme-toggle-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
    font-size: 18px;
    line-height: 1;
}

.sawaco-theme-toggle-icon--moon::before {
    content: "\263E";
}

.sawaco-theme-toggle-icon--sun::before {
    content: "\2600";
}

.sawaco-theme-toggle-icon--sun,
html[data-sawaco-theme="dark"] .sawaco-theme-toggle-icon--moon {
    display: none;
}

html[data-sawaco-theme="dark"] .sawaco-theme-toggle-icon--sun {
    display: inline-flex;
}

.sawaco-theme-toggle--topbar {
    flex: 0 0 auto;
    min-height: 50px;
    margin-right: 10px;
}

.sawaco-theme-toggle--floating {
    position: fixed;
    z-index: 1080;
    top: 18px;
    right: 18px;
}

.sawaco-theme-login-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.sawaco-theme-toggle--login {
    border-color: rgba(190, 226, 247, 0.28);
    background: rgba(224, 244, 255, 0.1);
    color: #effaff;
    box-shadow: none;
}

.sawaco-theme-toggle--login:hover,
.sawaco-theme-toggle--login:focus {
    border-color: rgba(107, 220, 255, 0.54);
    background: rgba(70, 178, 232, 0.2);
    color: #ffffff;
}

html[data-sawaco-theme="dark"] .sawaco-theme-toggle {
    border-color: rgba(75, 156, 198, 0.34);
    background: rgba(16, 46, 66, 0.9);
    color: #c7eaff;
    box-shadow: 0 12px 26px rgba(0, 5, 12, 0.24);
}

html[data-sawaco-theme="dark"] .sawaco-theme-toggle:hover,
html[data-sawaco-theme="dark"] .sawaco-theme-toggle:focus {
    border-color: rgba(42, 174, 232, 0.58);
    background: #173d55;
    color: #7ddcff;
}

/* SAWACO admin shell */
html[data-sawaco-theme="dark"] body.admin-modern-shell {
    background:
        radial-gradient(circle at 16% -8%, rgba(34, 211, 238, 0.13), transparent 32%),
        radial-gradient(circle at 88% 12%, rgba(42, 174, 232, 0.09), transparent 28%),
        linear-gradient(180deg, #06111c 0%, var(--sawaco-page) 46%, #081a28 100%);
    color: var(--sawaco-ink);
}

html[data-sawaco-theme="dark"] .admin-modern-shell .wrapper,
html[data-sawaco-theme="dark"] .admin-modern-shell .content-wrapper {
    background: transparent !important;
    color: var(--sawaco-ink);
}

html[data-sawaco-theme="dark"] .admin-modern-shell .main-header.admin-topbar {
    border-bottom-color: rgba(65, 146, 188, 0.3) !important;
    background: rgba(8, 27, 42, 0.94) !important;
    box-shadow: 0 14px 34px rgba(0, 5, 12, 0.34);
}

/* Keep the SAWACO wordmark integrated with the dark header instead of
   rendering it as a high-glare white card. */
html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-topbar-logo .admin-wordmark-link,
html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-topbar-logo .hrefelinkgrouplogomainindexvpdtswc {
    border-color: rgba(76, 161, 202, 0.42) !important;
    background:
        radial-gradient(circle at 14% 18%, rgba(69, 202, 245, 0.16), transparent 34%),
        linear-gradient(135deg, #15384e 0%, #0d2739 100%) !important;
    color: #e9f8ff !important;
    box-shadow:
        inset 0 1px 0 rgba(183, 231, 251, 0.08),
        0 10px 24px rgba(0, 5, 12, 0.26) !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-topbar-logo .admin-wordmark-link:hover,
html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-topbar-logo .admin-wordmark-link:focus {
    border-color: rgba(91, 211, 255, 0.62) !important;
    background: linear-gradient(135deg, #19465f 0%, #113248 100%) !important;
    box-shadow:
        inset 0 1px 0 rgba(205, 240, 255, 0.1),
        0 12px 28px rgba(0, 7, 15, 0.32) !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-topbar-logo .admin-wordmark-mark {
    border: 1px solid rgba(100, 216, 255, 0.36) !important;
    background: linear-gradient(145deg, #087fb7, #20b8c9) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(0, 128, 183, 0.26) !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-topbar-logo .admin-wordmark-copy strong {
    color: #e6f7ff !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-topbar-logo .admin-wordmark-copy small {
    color: #8eb4c7 !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell .admin-topbar .nav-link,
html[data-sawaco-theme="dark"] .admin-modern-shell .admin-command-trigger-copy strong,
html[data-sawaco-theme="dark"] .admin-modern-shell .admin-private-copy strong {
    color: var(--sawaco-ink) !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell .admin-topbar .nav-link:hover,
html[data-sawaco-theme="dark"] .admin-modern-shell .admin-topbar .nav-link:focus,
html[data-sawaco-theme="dark"] .admin-modern-shell .admin-command-tab.show > .admin-command-trigger {
    border-color: rgba(42, 174, 232, 0.3) !important;
    background: rgba(31, 92, 126, 0.42) !important;
    color: #72d7ff !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell .main-sidebar {
    border-right-color: rgba(49, 115, 151, 0.32) !important;
    background: linear-gradient(180deg, #0b2031 0%, #0a1b2a 58%, #0d293b 100%) !important;
    box-shadow: 12px 0 32px rgba(0, 5, 12, 0.3);
}

html[data-sawaco-theme="dark"] .admin-modern-shell .admin-sidebar-identity-card,
html[data-sawaco-theme="dark"] .admin-modern-shell .admin-brand-link {
    border-color: rgba(58, 128, 166, 0.3) !important;
    background:
        linear-gradient(135deg, rgba(25, 99, 140, 0.24), rgba(34, 211, 238, 0.08)),
        #0e2638 !important;
    color: var(--sawaco-ink) !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell .admin-brand-text strong,
html[data-sawaco-theme="dark"] .admin-modern-shell .admin-sidebar-app-title strong {
    color: #67d3ff !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell .admin-brand-text small,
html[data-sawaco-theme="dark"] .admin-modern-shell .admin-sidebar-app-title small,
html[data-sawaco-theme="dark"] .admin-modern-shell .admin-sidebar-profile-copy small,
html[data-sawaco-theme="dark"] .admin-modern-shell .admin-sidebar-weather {
    color: var(--sawaco-muted) !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell .admin-sidebar-user,
html[data-sawaco-theme="dark"] .admin-modern-shell .admin-sidebar-profile,
html[data-sawaco-theme="dark"] .admin-modern-shell .admin-sidebar-snapshot,
html[data-sawaco-theme="dark"] .admin-modern-shell .admin-sidebar-weather-panel {
    border-color: rgba(55, 126, 164, 0.28) !important;
    background: rgba(12, 38, 56, 0.82) !important;
    color: var(--sawaco-ink) !important;
    box-shadow: 0 14px 28px rgba(0, 5, 12, 0.2) !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell .admin-sidebar-user .info a,
html[data-sawaco-theme="dark"] .admin-modern-shell .admin-sidebar-profile-copy strong {
    color: var(--sawaco-ink) !important;
}

/* Compact sidebar actions were still inheriting the light-theme slate color.
   Give every action icon a visible ocean surface and keep logout semantic. */
html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-sidebar-action {
    border: 1px solid var(--sawaco-icon-border) !important;
    background: var(--sawaco-icon-surface) !important;
    color: var(--sawaco-icon-ink) !important;
    box-shadow: inset 0 1px 0 rgba(183, 230, 249, 0.06) !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-sidebar-action > .sawaco-icon,
html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-sidebar-action > .sawaco-icon::before {
    color: inherit !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-sidebar-action:hover,
html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-sidebar-action:focus {
    border-color: rgba(91, 202, 240, 0.64) !important;
    background: var(--sawaco-icon-surface-raised) !important;
    color: #b8efff !important;
    outline: 0 !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-sidebar-logout {
    border-color: rgba(184, 97, 110, 0.58) !important;
    background: #3a252c !important;
    color: #ffb3ba !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-sidebar-logout:hover,
html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-sidebar-logout:focus {
    border-color: rgba(224, 127, 141, 0.74) !important;
    background: #4a2932 !important;
    color: #ffd0d4 !important;
    box-shadow: 0 0 0 3px rgba(224, 127, 141, 0.14) !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell .nav-sidebar > .nav-header,
html[data-sawaco-theme="dark"] .admin-modern-shell .nav-treeview .nav-link,
html[data-sawaco-theme="dark"] .admin-modern-shell .nav-sidebar .nav-link {
    color: #b2cad9 !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell .nav-sidebar .nav-link:hover,
html[data-sawaco-theme="dark"] .admin-modern-shell .nav-sidebar .nav-link:focus {
    border-color: rgba(42, 174, 232, 0.28) !important;
    background: rgba(31, 103, 142, 0.3) !important;
    color: #76dcff !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell .nav-sidebar .nav-link.active {
    border-color: rgba(83, 189, 224, 0.44) !important;
    background: linear-gradient(135deg, #123e58 0%, #17617a 100%) !important;
    color: #eefaff !important;
    box-shadow:
        inset 0 1px 0 rgba(164, 226, 248, 0.08),
        0 12px 26px rgba(0, 8, 18, 0.3) !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .nav-sidebar .nav-link.active .modern-menu-icon,
html[data-sawaco-theme="dark"] body.admin-modern-shell .nav-sidebar .nav-link.active > img {
    background: #0c3046 !important;
    color: #72d9ff !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell .modern-menu-icon,
html[data-sawaco-theme="dark"] .admin-modern-shell .nav-sidebar .nav-link > img,
html[data-sawaco-theme="dark"] .admin-modern-shell .legacy-content-icon,
html[data-sawaco-theme="dark"] .admin-modern-shell .small-box .icon,
html[data-sawaco-theme="dark"] .admin-modern-shell .info-box-icon {
    background: #133a50 !important;
    color: #58ccfb !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell .nav-treeview {
    border-left-color: rgba(61, 138, 179, 0.34) !important;
}

/* Panels, menus and overlays */
html[data-sawaco-theme="dark"] .admin-modern-shell .card,
html[data-sawaco-theme="dark"] .admin-modern-shell .modal-content,
html[data-sawaco-theme="dark"] .admin-modern-shell .info-box,
html[data-sawaco-theme="dark"] .admin-modern-shell .small-box,
html[data-sawaco-theme="dark"] .admin-modern-shell .dropdown-menu,
html[data-sawaco-theme="dark"] .admin-modern-shell .admin-command-menu,
html[data-sawaco-theme="dark"] .admin-modern-shell .admin-notification-menu,
html[data-sawaco-theme="dark"] .admin-modern-shell #scrollparentGeneral {
    border-color: rgba(55, 126, 164, 0.34) !important;
    background: rgba(15, 39, 56, 0.98) !important;
    color: var(--sawaco-ink) !important;
    box-shadow: 0 22px 50px rgba(0, 5, 12, 0.36) !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell .card-header,
html[data-sawaco-theme="dark"] .admin-modern-shell .modal-header,
html[data-sawaco-theme="dark"] .admin-modern-shell .admin-command-menu-header,
html[data-sawaco-theme="dark"] .admin-modern-shell .admin-notification-panel-title {
    border-color: rgba(56, 128, 166, 0.3) !important;
    background: linear-gradient(180deg, #14344a, #10283a) !important;
    color: var(--sawaco-ink) !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell .card-primary:not(.card-outline) > .card-header,
html[data-sawaco-theme="dark"] .admin-modern-shell .card-lightblue:not(.card-outline) > .card-header,
html[data-sawaco-theme="dark"] .admin-modern-shell .card-green:not(.card-outline) > .card-header,
html[data-sawaco-theme="dark"] .admin-modern-shell .card-info:not(.card-outline) > .card-header {
    border-color: rgba(69, 157, 198, 0.48) !important;
    background: linear-gradient(135deg, #15516c 0%, #123d55 100%) !important;
    color: #eefaff !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell .card-footer,
html[data-sawaco-theme="dark"] .admin-modern-shell .modal-footer {
    border-color: rgba(55, 126, 164, 0.26) !important;
    background: rgba(8, 27, 41, 0.48) !important;
}

/* Bootstrap list groups are used by the personal storage summary. */
html[data-sawaco-theme="dark"] body.admin-modern-shell .list-group {
    border: 1px solid rgba(57, 130, 168, 0.34) !important;
    border-radius: 9px !important;
    background: #0d2638 !important;
    box-shadow: inset 0 1px 0 rgba(171, 224, 247, 0.04) !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .list-group-item {
    border-color: rgba(54, 121, 158, 0.3) !important;
    background: linear-gradient(180deg, #112f43 0%, #0f2a3d 100%) !important;
    color: #d8eaf3 !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .list-group-item:hover {
    background: linear-gradient(180deg, #15384e 0%, #112f43 100%) !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .list-group-item b {
    color: #dceef7 !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .list-group-item .float-right {
    color: #abd7e9 !important;
    font-weight: 700 !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .list-group-item img {
    padding: 5px !important;
    border: 1px solid rgba(67, 151, 194, 0.34) !important;
    border-radius: 8px !important;
    background: #12364c !important;
    object-fit: contain !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell a.myprivateinfoemployerlinkmanage,
html[data-sawaco-theme="dark"] body.admin-modern-shell a.myprivateinfoemployerlinkmanage:link,
html[data-sawaco-theme="dark"] body.admin-modern-shell a.myprivateinfoemployerlinkmanage:visited {
    color: #69d3fb !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell a.myprivateinfoemployerlinkmanage:hover,
html[data-sawaco-theme="dark"] body.admin-modern-shell a.myprivateinfoemployerlinkmanage:focus {
    color: #a6eaff !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell [data-admin-css="ais-df4288bdd6"] {
    color: #7bdcff !important;
    text-shadow: none !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell .admin-command-item,
html[data-sawaco-theme="dark"] .admin-modern-shell .admin-command-menu .admin-private-trigger,
html[data-sawaco-theme="dark"] .admin-modern-shell .dropdown-item,
html[data-sawaco-theme="dark"] .admin-modern-shell .admin-notification-entry {
    border-color: transparent !important;
    background: transparent !important;
    color: #c7dce9 !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell .admin-command-item:hover,
html[data-sawaco-theme="dark"] .admin-modern-shell .admin-command-item:focus,
html[data-sawaco-theme="dark"] .admin-modern-shell .dropdown-item:hover,
html[data-sawaco-theme="dark"] .admin-modern-shell .dropdown-item:focus,
html[data-sawaco-theme="dark"] .admin-modern-shell .admin-notification-entry:hover,
html[data-sawaco-theme="dark"] .admin-modern-shell .admin-notification-entry:focus {
    background: rgba(31, 103, 142, 0.3) !important;
    color: #76dcff !important;
}

/* Quick actions: low-glare ocean surfaces for the trigger, menu header and
   icon tiles. These selectors override the legacy light-blue primary styles. */
html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-command-tab > .admin-command-trigger {
    border-color: rgba(74, 161, 204, 0.46) !important;
    background: linear-gradient(135deg, #153f58 0%, #103147 100%) !important;
    color: #e9f8ff !important;
    box-shadow:
        inset 0 1px 0 rgba(168, 224, 247, 0.08),
        0 12px 26px rgba(0, 6, 14, 0.3) !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-command-tab > .admin-command-trigger:hover,
html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-command-tab > .admin-command-trigger:focus,
html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-command-tab.show > .admin-command-trigger {
    border-color: rgba(91, 206, 244, 0.58) !important;
    background: linear-gradient(135deg, #18516c 0%, #123b52 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 14px 30px rgba(0, 8, 18, 0.36) !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-command-trigger-icon,
html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-command-menu-mark {
    border: 1px solid rgba(91, 202, 240, 0.32) !important;
    background: #174c66 !important;
    color: #7addff !important;
    box-shadow: inset 0 1px 0 rgba(191, 235, 252, 0.08) !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-command-trigger-copy small {
    color: #8fb7ca !important;
    opacity: 1 !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-command-menu .admin-command-item > .sawaco-inline-icon,
html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-command-menu .admin-notification-trigger > .sawaco-inline-icon,
html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-command-menu .admin-private-trigger > .sawaco-inline-icon {
    border: 1px solid rgba(65, 145, 184, 0.36) !important;
    background: #12364c !important;
    color: #6ed6ff !important;
    box-shadow: inset 0 1px 0 rgba(171, 224, 247, 0.06) !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-command-menu .admin-command-item > .sawaco-inline-icon svg,
html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-command-menu .admin-notification-trigger > .sawaco-inline-icon svg,
html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-command-menu .admin-private-trigger > .sawaco-inline-icon svg {
    color: #6ed6ff !important;
    stroke: #6ed6ff !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-command-menu .admin-command-item:hover > .sawaco-inline-icon,
html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-command-menu .admin-command-item:focus > .sawaco-inline-icon,
html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-command-menu .admin-notification-trigger:hover > .sawaco-inline-icon,
html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-command-menu .admin-notification-trigger:focus > .sawaco-inline-icon {
    border-color: rgba(87, 198, 237, 0.52) !important;
    background: #174a63 !important;
    color: #9be8ff !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell .dropdown-divider {
    border-top-color: rgba(67, 137, 174, 0.28) !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell .control-sidebar.admin-private-panel {
    border-left-color: rgba(55, 126, 164, 0.34) !important;
    background: #0d2333 !important;
    color: var(--sawaco-ink) !important;
    box-shadow: -24px 0 56px rgba(0, 5, 12, 0.42) !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell .admin-private-panel-section,
html[data-sawaco-theme="dark"] .admin-modern-shell .admin-private-panel-item {
    border-color: rgba(55, 126, 164, 0.28) !important;
    background: rgba(17, 48, 68, 0.72) !important;
    color: var(--sawaco-ink) !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell .admin-private-panel-item:hover,
html[data-sawaco-theme="dark"] .admin-modern-shell .admin-private-panel-item:focus {
    border-color: rgba(42, 174, 232, 0.4) !important;
    background: rgba(31, 103, 142, 0.34) !important;
}

/* Forms and rich controls */
html[data-sawaco-theme="dark"] .admin-modern-shell label,
html[data-sawaco-theme="dark"] .admin-modern-shell .control-label,
html[data-sawaco-theme="dark"] .admin-modern-shell legend {
    color: #c8dfec !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell .form-control,
html[data-sawaco-theme="dark"] .admin-modern-shell .custom-select,
html[data-sawaco-theme="dark"] .admin-modern-shell input[type="text"],
html[data-sawaco-theme="dark"] .admin-modern-shell input[type="email"],
html[data-sawaco-theme="dark"] .admin-modern-shell input[type="password"],
html[data-sawaco-theme="dark"] .admin-modern-shell input[type="number"],
html[data-sawaco-theme="dark"] .admin-modern-shell input[type="date"],
html[data-sawaco-theme="dark"] .admin-modern-shell input[type="tel"],
html[data-sawaco-theme="dark"] .admin-modern-shell select,
html[data-sawaco-theme="dark"] .admin-modern-shell textarea,
html[data-sawaco-theme="dark"] .admin-modern-shell .select2-container--default .select2-selection--single,
html[data-sawaco-theme="dark"] .admin-modern-shell .select2-container--default .select2-selection--multiple {
    border-color: rgba(65, 143, 184, 0.42) !important;
    background-color: #0b2131 !important;
    color: var(--sawaco-ink) !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell .form-control::placeholder,
html[data-sawaco-theme="dark"] .admin-modern-shell input::placeholder,
html[data-sawaco-theme="dark"] .admin-modern-shell textarea::placeholder {
    color: #7797aa !important;
    opacity: 1;
}

html[data-sawaco-theme="dark"] .admin-modern-shell .form-control:focus,
html[data-sawaco-theme="dark"] .admin-modern-shell input:focus,
html[data-sawaco-theme="dark"] .admin-modern-shell select:focus,
html[data-sawaco-theme="dark"] .admin-modern-shell textarea:focus {
    border-color: rgba(42, 174, 232, 0.72) !important;
    box-shadow: 0 0 0 3px rgba(42, 174, 232, 0.16) !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell .form-control:disabled,
html[data-sawaco-theme="dark"] .admin-modern-shell .form-control[readonly],
html[data-sawaco-theme="dark"] .admin-modern-shell input:disabled,
html[data-sawaco-theme="dark"] .admin-modern-shell select:disabled,
html[data-sawaco-theme="dark"] .admin-modern-shell textarea:disabled {
    background: #132b3b !important;
    color: #b1cad7 !important;
    -webkit-text-fill-color: #b1cad7 !important;
    opacity: 1;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell select.form-control,
html[data-sawaco-theme="dark"] body.admin-modern-shell select.custom-select,
html[data-sawaco-theme="dark"] body.admin-modern-shell select.admin-fixed-select {
    color: #e4f3fa !important;
    -webkit-text-fill-color: #e4f3fa !important;
    opacity: 1 !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell select.form-control:disabled,
html[data-sawaco-theme="dark"] body.admin-modern-shell select.custom-select:disabled,
html[data-sawaco-theme="dark"] body.admin-modern-shell select.admin-fixed-select:disabled,
html[data-sawaco-theme="dark"] body.admin-modern-shell select:has(option:checked:disabled) {
    color: #b9d1dc !important;
    -webkit-text-fill-color: #b9d1dc !important;
    opacity: 1 !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell select option {
    background: #0d2638 !important;
    color: #dceef7 !important;
    -webkit-text-fill-color: #dceef7 !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell select option:checked {
    background: #174a63 !important;
    color: #f2fbff !important;
    -webkit-text-fill-color: #f2fbff !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell select option:disabled {
    color: #a4bfcd !important;
    -webkit-text-fill-color: #a4bfcd !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .select2-container--default .select2-selection--single .select2-selection__rendered,
html[data-sawaco-theme="dark"] body.admin-modern-shell .select2-container--default .select2-selection--multiple .select2-selection__rendered,
html[data-sawaco-theme="dark"] body.admin-modern-shell .select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered,
html[data-sawaco-theme="dark"] body.admin-modern-shell .select2-container--bootstrap4 .select2-selection--multiple .select2-selection__rendered {
    color: #e4f3fa !important;
    -webkit-text-fill-color: #e4f3fa !important;
    opacity: 1 !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .select2-container--default .select2-selection__placeholder,
html[data-sawaco-theme="dark"] body.admin-modern-shell .select2-container--bootstrap4 .select2-selection__placeholder {
    color: #a5c0cf !important;
    -webkit-text-fill-color: #a5c0cf !important;
    opacity: 1 !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .select2-container--disabled .select2-selection--single,
html[data-sawaco-theme="dark"] body.admin-modern-shell .select2-container--disabled .select2-selection--multiple {
    border-color: rgba(65, 143, 184, 0.34) !important;
    background: #132b3b !important;
    opacity: 1 !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .select2-container--disabled .select2-selection__rendered,
html[data-sawaco-theme="dark"] body.admin-modern-shell .select2-container[aria-disabled="true"] .select2-selection__rendered {
    color: #b9d1dc !important;
    -webkit-text-fill-color: #b9d1dc !important;
    opacity: 1 !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #83dcff transparent transparent transparent !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #83dcff transparent !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell .input-group-text,
html[data-sawaco-theme="dark"] .admin-modern-shell .select2-container--default .select2-selection--multiple .select2-selection__choice {
    border-color: rgba(65, 143, 184, 0.42) !important;
    background: #15394e !important;
    color: #aee6ff !important;
}

html[data-sawaco-theme="dark"] .select2-dropdown,
html[data-sawaco-theme="dark"] .select2-container--default .select2-search--dropdown .select2-search__field {
    border-color: rgba(65, 143, 184, 0.42) !important;
    background: #0d2638 !important;
    color: #e8f6ff !important;
}

html[data-sawaco-theme="dark"] .select2-container--default .select2-results__option {
    background: #0d2638;
    color: #c4dce9;
}

html[data-sawaco-theme="dark"] .select2-container--default .select2-results__option--highlighted[aria-selected],
html[data-sawaco-theme="dark"] .select2-container--default .select2-results__option[aria-selected="true"] {
    background: #116c98 !important;
    color: #ffffff !important;
}

html[data-sawaco-theme="dark"] .flatpickr-calendar,
html[data-sawaco-theme="dark"] .daterangepicker,
html[data-sawaco-theme="dark"] .bootstrap-datetimepicker-widget,
html[data-sawaco-theme="dark"] .ui-datepicker {
    border-color: rgba(65, 143, 184, 0.42) !important;
    background: #10283a !important;
    color: #d7eaf5 !important;
    box-shadow: 0 20px 46px rgba(0, 5, 12, 0.42) !important;
}

html[data-sawaco-theme="dark"] .flatpickr-day,
html[data-sawaco-theme="dark"] .flatpickr-weekday,
html[data-sawaco-theme="dark"] .flatpickr-current-month,
html[data-sawaco-theme="dark"] .daterangepicker td.available,
html[data-sawaco-theme="dark"] .daterangepicker th.available {
    color: #c9dfeb !important;
}

html[data-sawaco-theme="dark"] .flatpickr-day:hover,
html[data-sawaco-theme="dark"] .flatpickr-day:focus,
html[data-sawaco-theme="dark"] .daterangepicker td.available:hover,
html[data-sawaco-theme="dark"] .daterangepicker th.available:hover {
    border-color: #245774 !important;
    background: #173e55 !important;
    color: #ffffff !important;
}

html[data-sawaco-theme="dark"] .flatpickr-day.selected,
html[data-sawaco-theme="dark"] .flatpickr-day.startRange,
html[data-sawaco-theme="dark"] .flatpickr-day.endRange,
html[data-sawaco-theme="dark"] .daterangepicker td.active,
html[data-sawaco-theme="dark"] .daterangepicker td.active:hover {
    border-color: #159cc7 !important;
    background: #087fb7 !important;
    color: #ffffff !important;
}

html[data-sawaco-theme="dark"] .note-editor.note-frame,
html[data-sawaco-theme="dark"] .note-editor.note-airframe,
html[data-sawaco-theme="dark"] .note-toolbar,
html[data-sawaco-theme="dark"] .note-editable {
    border-color: rgba(65, 143, 184, 0.38) !important;
    background: #0c2232 !important;
    color: #dcecf5 !important;
}

/* Data tables and pagination */
html[data-sawaco-theme="dark"] .admin-modern-shell .table,
html[data-sawaco-theme="dark"] .admin-modern-shell table.table,
html[data-sawaco-theme="dark"] .admin-modern-shell .table tbody,
html[data-sawaco-theme="dark"] .admin-modern-shell .table tbody tr {
    background: #0e2739 !important;
    color: #d6e8f2 !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell .table-responsive,
html[data-sawaco-theme="dark"] .admin-modern-shell #divSelectRecordLoadedLazy,
html[data-sawaco-theme="dark"] .admin-modern-shell [id^="divSelectRecord"] {
    border-color: rgba(55, 126, 164, 0.32) !important;
    background: #0e2739 !important;
    color: #9edfff !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell .table thead th,
html[data-sawaco-theme="dark"] .admin-modern-shell table.dataTable thead th {
    border-color: rgba(73, 151, 191, 0.34) !important;
    background: #153b52 !important;
    color: #b9e9ff !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell .table td,
html[data-sawaco-theme="dark"] .admin-modern-shell .table th {
    border-color: rgba(67, 137, 174, 0.22) !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell .table-striped tbody tr:nth-of-type(odd),
html[data-sawaco-theme="dark"] .admin-modern-shell .table-hover tbody tr:hover {
    background: #133348 !important;
    color: #effaff !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell .table-total-row,
html[data-sawaco-theme="dark"] .admin-modern-shell .dataTables_wrapper .dataTables_processing {
    border-color: rgba(73, 151, 191, 0.34) !important;
    background: #16384b !important;
    color: #e8f6ff !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell .dataTables_wrapper .dataTables_filter,
html[data-sawaco-theme="dark"] .admin-modern-shell .dataTables_wrapper .dataTables_length,
html[data-sawaco-theme="dark"] .admin-modern-shell .dataTables_wrapper .dataTables_info,
html[data-sawaco-theme="dark"] .admin-modern-shell .dataTables_wrapper .dataTables_paginate {
    color: var(--sawaco-muted) !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell .pagination .page-link,
html[data-sawaco-theme="dark"] .admin-modern-shell .dataTables_wrapper .dataTables_paginate .paginate_button {
    border-color: rgba(62, 134, 171, 0.38) !important;
    background: #102b3e !important;
    color: #91ddff !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell .pagination .page-link:hover,
html[data-sawaco-theme="dark"] .admin-modern-shell .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    border-color: rgba(42, 174, 232, 0.52) !important;
    background: #17445e !important;
    color: #ffffff !important;
}

/* Buttons, alerts and utility surfaces */
html[data-sawaco-theme="dark"] .admin-modern-shell .btn-outline-primary,
html[data-sawaco-theme="dark"] .admin-modern-shell .btn-outline-info,
html[data-sawaco-theme="dark"] .admin-modern-shell .btn-default,
html[data-sawaco-theme="dark"] .admin-modern-shell .btn-secondary,
html[data-sawaco-theme="dark"] .admin-modern-shell .btn-tool {
    border-color: rgba(65, 143, 184, 0.42) !important;
    background: #102d40 !important;
    color: #77d8ff !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell .btn-outline-primary:hover,
html[data-sawaco-theme="dark"] .admin-modern-shell .btn-outline-info:hover,
html[data-sawaco-theme="dark"] .admin-modern-shell .btn-default:hover,
html[data-sawaco-theme="dark"] .admin-modern-shell .btn-secondary:hover,
html[data-sawaco-theme="dark"] .admin-modern-shell .btn-tool:hover {
    border-color: rgba(42, 174, 232, 0.58) !important;
    background: #17455f !important;
    color: #ffffff !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell .admin-table-icon-action:hover,
html[data-sawaco-theme="dark"] .admin-modern-shell .admin-table-icon-action:focus {
    background: #173e55 !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-table-icon-action,
html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-table-icon-action[data-sawaco-action-icon] {
    border-color: var(--sawaco-icon-border) !important;
    background: var(--sawaco-icon-surface) !important;
    color: var(--sawaco-icon-ink) !important;
    box-shadow: inset 0 1px 0 rgba(183, 230, 249, 0.05) !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-table-icon-action:hover,
html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-table-icon-action:focus,
html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-table-icon-action[data-sawaco-action-icon]:hover,
html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-table-icon-action[data-sawaco-action-icon]:focus {
    border-color: rgba(91, 202, 240, 0.58) !important;
    background: #174a63 !important;
    color: #a8ebff !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-table-icon-action[data-sawaco-action-icon="trash"],
html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-table-icon-action[data-sawaco-action-icon="x"] {
    border-color: rgba(159, 82, 95, 0.58) !important;
    background: #3a252c !important;
    color: #ffabb2 !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-table-icon-action[data-sawaco-action-icon="trash"]:hover,
html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-table-icon-action[data-sawaco-action-icon="trash"]:focus,
html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-table-icon-action[data-sawaco-action-icon="x"]:hover,
html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-table-icon-action[data-sawaco-action-icon="x"]:focus {
    border-color: rgba(214, 112, 126, 0.7) !important;
    background: #4a2932 !important;
    color: #ffd0d4 !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-table-icon-action[data-sawaco-action-icon="edit"],
html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-table-icon-action[data-sawaco-action-icon="key"],
html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-table-icon-action[data-sawaco-action-icon="lock"],
html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-table-icon-action[data-sawaco-action-icon="lock-open"] {
    border-color: rgba(145, 117, 57, 0.58) !important;
    background: #39311f !important;
    color: #f0cf80 !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-table-icon-action[data-sawaco-action-icon="users-cog"],
html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-table-icon-action[data-sawaco-action-icon="users"],
html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-table-icon-action[data-sawaco-action-icon="check"],
html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-table-icon-action[data-sawaco-action-icon="plus"] {
    border-color: rgba(55, 135, 101, 0.58) !important;
    background: #16372f !important;
    color: #8adfbe !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .checkmarkmoderndisplay {
    border: 1px solid rgba(66, 145, 184, 0.42) !important;
    background: #123248 !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .checkmarkmoderndisplay::before {
    background: #6ed6ff !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .containercheckboxmodern:hover input ~ .checkmarkmoderndisplay,
html[data-sawaco-theme="dark"] body.admin-modern-shell .containercheckboxmodern input:checked ~ .checkmarkmoderndisplay {
    border-color: rgba(91, 202, 240, 0.58) !important;
    background: #19536d !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell .btn-primary,
html[data-sawaco-theme="dark"] .admin-modern-shell .btn-info,
html[data-sawaco-theme="dark"] .admin-modern-shell .btn-success,
html[data-sawaco-theme="dark"] .admin-modern-shell .bg-primary,
html[data-sawaco-theme="dark"] .admin-modern-shell .bg-info,
html[data-sawaco-theme="dark"] .admin-modern-shell .bg-success {
    border-color: rgba(69, 157, 198, 0.52) !important;
    background: linear-gradient(135deg, #15516c 0%, #123d55 100%) !important;
    color: #eefaff !important;
    box-shadow: inset 0 1px 0 rgba(184, 230, 248, 0.07) !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .btn-primary:hover,
html[data-sawaco-theme="dark"] body.admin-modern-shell .btn-primary:focus,
html[data-sawaco-theme="dark"] body.admin-modern-shell .btn-info:hover,
html[data-sawaco-theme="dark"] body.admin-modern-shell .btn-info:focus,
html[data-sawaco-theme="dark"] body.admin-modern-shell .btn-success:hover,
html[data-sawaco-theme="dark"] body.admin-modern-shell .btn-success:focus {
    border-color: rgba(93, 203, 239, 0.62) !important;
    background: linear-gradient(135deg, var(--sawaco-accent-surface-hover), #16485f) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 22px rgba(0, 7, 16, 0.3) !important;
}

/* Cross-view icon audit: standardize every reusable bright icon container
   found in the Razor views without adding a background to plain inline icons. */
html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-brand-mark,
html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-footer-brand-mark,
html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-command-menu .admin-notification-panel-title .sawaco-icon,
html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-command-menu .admin-notification-entry-icon,
html[data-sawaco-theme="dark"] body.admin-modern-shell .legacy-content-icon,
html[data-sawaco-theme="dark"] body.admin-modern-shell .info-box-icon,
html[data-sawaco-theme="dark"] body.admin-modern-shell .small-box .icon {
    border-color: var(--sawaco-icon-border) !important;
    background: linear-gradient(145deg, var(--sawaco-icon-surface-raised), var(--sawaco-icon-surface)) !important;
    color: var(--sawaco-icon-ink) !important;
    box-shadow: inset 0 1px 0 rgba(183, 230, 249, 0.06) !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-topbar-logo .admin-wordmark-mark {
    border-color: var(--sawaco-icon-border) !important;
    background: linear-gradient(145deg, #185874, #123d55) !important;
    color: #a6eaff !important;
    box-shadow: 0 8px 18px rgba(0, 6, 14, 0.28) !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-command-menu .admin-notification-entry--unread .admin-notification-entry-icon {
    border-color: rgba(83, 184, 224, 0.5) !important;
    background: #18516b !important;
    color: #a7ebff !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .badge-primary,
html[data-sawaco-theme="dark"] body.admin-modern-shell .badge-info,
html[data-sawaco-theme="dark"] body.admin-modern-shell .badge-success {
    border: 1px solid rgba(65, 148, 188, 0.44) !important;
    background: #153f57 !important;
    color: #a9e9ff !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .nav-pills .nav-link.active,
html[data-sawaco-theme="dark"] body.admin-modern-shell .nav-pills .show > .nav-link,
html[data-sawaco-theme="dark"] body.admin-modern-shell .ribbon.bg-primary,
html[data-sawaco-theme="dark"] body.admin-modern-shell .ribbon.bg-info {
    border-color: rgba(70, 160, 201, 0.5) !important;
    background: linear-gradient(135deg, #16536e 0%, #123d55 100%) !important;
    color: #eefaff !important;
    box-shadow:
        inset 0 1px 0 rgba(184, 230, 248, 0.07),
        0 10px 22px rgba(0, 6, 14, 0.24) !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .nav-pills .nav-link.active:hover,
html[data-sawaco-theme="dark"] body.admin-modern-shell .nav-pills .nav-link.active:focus {
    border-color: rgba(94, 205, 241, 0.62) !important;
    background: linear-gradient(135deg, #1a607c 0%, #16485f 100%) !important;
    color: #ffffff !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell .alert,
html[data-sawaco-theme="dark"] .admin-modern-shell .callout,
html[data-sawaco-theme="dark"] .admin-modern-shell .infoboxcskh,
html[data-sawaco-theme="dark"] .admin-modern-shell .successboxcskh,
html[data-sawaco-theme="dark"] .admin-modern-shell .warningboxcskh,
html[data-sawaco-theme="dark"] .admin-modern-shell .errorboxcskh {
    border-color: rgba(67, 137, 174, 0.38) !important;
    background-color: #112e41 !important;
    color: #d6eaf5 !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell .text-muted,
html[data-sawaco-theme="dark"] .admin-modern-shell .text-secondary,
html[data-sawaco-theme="dark"] .admin-modern-shell .text-body,
html[data-sawaco-theme="dark"] .admin-modern-shell .text-body-secondary,
html[data-sawaco-theme="dark"] .admin-modern-shell .form-text,
html[data-sawaco-theme="dark"] .admin-modern-shell .help-block,
html[data-sawaco-theme="dark"] .admin-modern-shell .description,
html[data-sawaco-theme="dark"] .admin-modern-shell .description-text {
    color: #aac6d6 !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell .text-dark,
html[data-sawaco-theme="dark"] .admin-modern-shell .text-black,
html[data-sawaco-theme="dark"] .admin-modern-shell .text-black-50,
html[data-sawaco-theme="dark"] .admin-modern-shell [style*="color: black"],
html[data-sawaco-theme="dark"] .admin-modern-shell [style*="color:black"],
html[data-sawaco-theme="dark"] .admin-modern-shell [style*="color: #000;"],
html[data-sawaco-theme="dark"] .admin-modern-shell [style*="color:#000;"],
html[data-sawaco-theme="dark"] .admin-modern-shell [style$="color: #000"],
html[data-sawaco-theme="dark"] .admin-modern-shell [style$="color:#000"],
html[data-sawaco-theme="dark"] .admin-modern-shell [style*="color: #000000"],
html[data-sawaco-theme="dark"] .admin-modern-shell [style*="color:#000000"],
html[data-sawaco-theme="dark"] .admin-modern-shell [style*="color: #333"],
html[data-sawaco-theme="dark"] .admin-modern-shell [style*="color:#333"],
html[data-sawaco-theme="dark"] .admin-modern-shell [style*="color: #444"],
html[data-sawaco-theme="dark"] .admin-modern-shell [style*="color:#444"],
html[data-sawaco-theme="dark"] .admin-modern-shell [style*="color: #555"],
html[data-sawaco-theme="dark"] .admin-modern-shell [style*="color:#555"],
html[data-sawaco-theme="dark"] .admin-modern-shell [style*="color: #666"],
html[data-sawaco-theme="dark"] .admin-modern-shell [style*="color:#666"] {
    color: #e7f5fc !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell [data-admin-css="ais-1e7ac0b757"],
html[data-sawaco-theme="dark"] .admin-modern-shell [data-admin-css="ais-6874fe55fe"],
html[data-sawaco-theme="dark"] .admin-modern-shell [data-admin-css="ais-945c350a8b"] {
    color: #e7f5fc !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell [data-admin-css="ais-24f9c953c2"],
html[data-sawaco-theme="dark"] .admin-modern-shell [data-admin-css="ais-923370661f"],
html[data-sawaco-theme="dark"] .admin-modern-shell [data-admin-css="ais-996a8fa774"] {
    color: #ffb3a8 !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell [data-admin-css="ais-a15e52d280"] {
    color: #d8c0ff !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell hr {
    border-color: rgba(67, 137, 174, 0.28) !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell .admin-footer-main,
html[data-sawaco-theme="dark"] .admin-modern-shell .admin-footer-version,
html[data-sawaco-theme="dark"] .admin-modern-shell .admin-footer-store {
    border-color: rgba(55, 126, 164, 0.32) !important;
    background: #0f2a3d !important;
    color: #c6dce9 !important;
    box-shadow: 0 18px 38px rgba(0, 5, 12, 0.28) !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell .admin-footer-brand-copy strong,
html[data-sawaco-theme="dark"] .admin-modern-shell .admin-footer-version strong {
    color: var(--sawaco-ink) !important;
}

/* Floating shortcuts stay visible without becoming the brightest objects on
   the page. Cyan is kept as an icon accent rather than a full button fill. */
html[data-sawaco-theme="dark"] body.admin-modern-shell a.documents_searchfastingdataareamanage,
html[data-sawaco-theme="dark"] body.admin-modern-shell a.back-to-top,
html[data-sawaco-theme="dark"] body.admin-modern-shell a.back_tohome_fixedpage,
html[data-sawaco-theme="dark"] body.admin-modern-shell a.feedback_errorcoding,
html[data-sawaco-theme="dark"] body.admin-modern-shell a.statistic_visitcounter {
    border-color: rgba(79, 170, 211, 0.48) !important;
    background: linear-gradient(145deg, #17465f 0%, #0e2e44 100%) !important;
    background-image: linear-gradient(145deg, #17465f 0%, #0e2e44 100%) !important;
    color: #70d8ff !important;
    box-shadow:
        inset 0 1px 0 rgba(187, 231, 249, 0.08),
        0 12px 26px rgba(0, 5, 12, 0.34) !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell a.documents_searchfastingdataareamanage:hover,
html[data-sawaco-theme="dark"] body.admin-modern-shell a.back-to-top:hover,
html[data-sawaco-theme="dark"] body.admin-modern-shell a.back_tohome_fixedpage:hover,
html[data-sawaco-theme="dark"] body.admin-modern-shell a.feedback_errorcoding:hover,
html[data-sawaco-theme="dark"] body.admin-modern-shell a.statistic_visitcounter:hover,
html[data-sawaco-theme="dark"] body.admin-modern-shell a.documents_searchfastingdataareamanage:focus,
html[data-sawaco-theme="dark"] body.admin-modern-shell a.back-to-top:focus,
html[data-sawaco-theme="dark"] body.admin-modern-shell a.back_tohome_fixedpage:focus,
html[data-sawaco-theme="dark"] body.admin-modern-shell a.feedback_errorcoding:focus,
html[data-sawaco-theme="dark"] body.admin-modern-shell a.statistic_visitcounter:focus {
    border-color: rgba(100, 214, 250, 0.66) !important;
    background: linear-gradient(145deg, #1b5a75 0%, #123b52 100%) !important;
    background-image: linear-gradient(145deg, #1b5a75 0%, #123b52 100%) !important;
    color: #b9efff !important;
    box-shadow: 0 15px 30px rgba(0, 7, 16, 0.4) !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell .loading-overlay-custom,
html[data-sawaco-theme="dark"] .admin-modern-shell #globalLoadingOverlay {
    background: rgba(2, 12, 20, 0.82) !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell .global-loading-box,
html[data-sawaco-theme="dark"] .admin-modern-shell .swal2-popup {
    border-color: rgba(65, 143, 184, 0.42) !important;
    background: #10283a !important;
    color: #e5f4fb !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell .global-loading-logo {
    border-color: rgba(83, 169, 213, 0.42) !important;
    background: linear-gradient(145deg, #163b51, #0d283b) !important;
    box-shadow: 0 16px 32px rgba(0, 5, 12, 0.28) !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell .global-loading-title {
    color: #eefaff !important;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

html[data-sawaco-theme="dark"] .admin-modern-shell .global-loading-message {
    color: #afc9d8 !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell .global-loading-cancel {
    border-color: rgba(69, 151, 193, 0.5) !important;
    background: #15384d !important;
    color: #bdeaff !important;
    box-shadow: 0 12px 24px rgba(0, 5, 12, 0.24) !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell .global-loading-cancel:hover,
html[data-sawaco-theme="dark"] .admin-modern-shell .global-loading-cancel:focus {
    border-color: #2aaee8 !important;
    background: #087fb7 !important;
    color: #ffffff !important;
}

/* Legacy list pages load a large, white GIF. Replace it in dark mode with a
   native dark skeleton so loading no longer flashes a bright rectangle. */
html[data-sawaco-theme="dark"] body.admin-modern-shell #markerlazyload-ending,
html[data-sawaco-theme="dark"] body.admin-modern-shell #markerend-wqloading {
    position: relative !important;
    min-height: 220px !important;
    overflow: hidden !important;
    border: 1px solid rgba(63, 140, 180, 0.34) !important;
    border-radius: 10px !important;
    background:
        radial-gradient(circle at 50% 44%, rgba(37, 172, 220, 0.1), transparent 30%),
        linear-gradient(145deg, #102c40 0%, #0a2132 100%) !important;
    background-image:
        radial-gradient(circle at 50% 44%, rgba(37, 172, 220, 0.1), transparent 30%),
        linear-gradient(145deg, #102c40 0%, #0a2132 100%) !important;
    background-size: auto !important;
    box-shadow:
        inset 0 1px 0 rgba(172, 225, 248, 0.06),
        0 18px 42px rgba(0, 5, 12, 0.24) !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell #markerlazyload-ending {
    height: 330px !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell #markerlazyload-ending::after,
html[data-sawaco-theme="dark"] body.admin-modern-shell #markerend-wqloading::after {
    content: "" !important;
    position: absolute !important;
    z-index: 1 !important;
    inset: 34px max(28px, 7%) !important;
    border: 1px solid rgba(64, 139, 178, 0.25) !important;
    border-radius: 8px !important;
    background:
        linear-gradient(#1b4961 0 0) 28px 28px / 72px 72px no-repeat,
        linear-gradient(90deg, #214f67, #2a617b, #214f67) 124px 40px / 54% 18px no-repeat,
        linear-gradient(#183e54 0 0) 124px 72px / 66% 14px no-repeat,
        linear-gradient(#19445b 0 0) 28px 130px / 78% 15px no-repeat,
        linear-gradient(#19445b 0 0) 28px 164px / 88% 15px no-repeat,
        linear-gradient(#173c51 0 0) 28px 198px / 64% 15px no-repeat,
        linear-gradient(145deg, rgba(20, 57, 77, 0.94), rgba(12, 38, 55, 0.96)) !important;
    box-shadow: 0 14px 30px rgba(0, 5, 12, 0.2) !important;
    animation: sawaco-dark-skeleton-pulse 1.65s ease-in-out infinite !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell #markerlazyload-ending::before,
html[data-sawaco-theme="dark"] body.admin-modern-shell #markerend-wqloading::before {
    content: "" !important;
    position: absolute !important;
    z-index: 2 !important;
    top: 50% !important;
    left: 50% !important;
    width: 42px !important;
    height: 42px !important;
    margin: -21px 0 0 -21px !important;
    border: 3px solid rgba(88, 190, 231, 0.2) !important;
    border-top-color: #64d8ff !important;
    border-right-color: #20b8c9 !important;
    border-radius: 50% !important;
    background: rgba(7, 25, 38, 0.72) !important;
    color: transparent !important;
    font-size: 0 !important;
    box-shadow: 0 0 0 8px rgba(8, 34, 49, 0.58), 0 0 28px rgba(55, 191, 235, 0.18) !important;
    animation: sawaco-dark-loader-spin 0.85s linear infinite !important;
}

@keyframes sawaco-dark-loader-spin {
    to { transform: rotate(360deg); }
}

@keyframes sawaco-dark-skeleton-pulse {
    0%, 100% { opacity: 0.72; }
    50% { opacity: 1; }
}

/* The home dashboard stylesheet is injected after the shared theme, so these
   selectors intentionally include the page id and !important declarations. */
html[data-sawaco-theme="dark"] body.admin-modern-shell #AdminHomeDashboard.admin-home-page {
    --sawaco-blue: #55c8f8;
    --sawaco-blue-deep: #a9e7ff;
    --sawaco-blue-soft: #14384d;
    --sawaco-sky: #32d0e5;
    --sawaco-ink: #e9f7fd;
    --sawaco-muted: #a8c1d0;
    color: var(--sawaco-ink) !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell #AdminHomeDashboard .admin-home-overview .admin-home-hero {
    border-color: rgba(72, 155, 195, 0.38) !important;
    background:
        radial-gradient(circle at 84% 2%, rgba(41, 174, 215, 0.2), transparent 35%),
        linear-gradient(135deg, rgba(8, 39, 60, 0.99) 0%, rgba(10, 61, 84, 0.97) 54%, rgba(15, 79, 99, 0.94) 100%),
        url(/wwwimages/Home/background_dashboardpanel_v4.jpg) center / cover no-repeat !important;
    box-shadow:
        inset 0 1px 0 rgba(181, 231, 250, 0.07),
        0 22px 48px rgba(0, 5, 12, 0.34) !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell #AdminHomeDashboard .admin-home-hero::before {
    background:
        linear-gradient(90deg, rgba(134, 213, 242, 0.08) 0 1px, transparent 1px 100%),
        linear-gradient(0deg, rgba(134, 213, 242, 0.06) 0 1px, transparent 1px 100%) !important;
    background-size: 38px 38px !important;
    opacity: 0.28 !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell #AdminHomeDashboard .admin-home-hero::after {
    opacity: 0.32 !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell #AdminHomeDashboard .admin-hero-kicker,
html[data-sawaco-theme="dark"] body.admin-modern-shell #AdminHomeDashboard .admin-hero-actions a {
    border-color: rgba(100, 190, 225, 0.34) !important;
    background: rgba(7, 31, 47, 0.5) !important;
    color: #e8f8ff !important;
    box-shadow: inset 0 1px 0 rgba(184, 230, 248, 0.05) !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell #AdminHomeDashboard .admin-hero-actions a:hover,
html[data-sawaco-theme="dark"] body.admin-modern-shell #AdminHomeDashboard .admin-hero-actions a:focus {
    border-color: rgba(109, 215, 249, 0.52) !important;
    background: rgba(18, 78, 102, 0.72) !important;
    color: #ffffff !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell #AdminHomeDashboard .admin-home-marquee {
    border-color: rgba(68, 148, 189, 0.36) !important;
    background: rgba(14, 42, 61, 0.94) !important;
    color: #bfeaff !important;
    box-shadow: 0 12px 28px rgba(0, 5, 12, 0.24) !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell #AdminHomeDashboard .admin-executive-panel,
html[data-sawaco-theme="dark"] body.admin-modern-shell #AdminHomeDashboard .admin-stat-card,
html[data-sawaco-theme="dark"] body.admin-modern-shell #AdminHomeDashboard .admin-chart-panel,
html[data-sawaco-theme="dark"] body.admin-modern-shell #AdminHomeDashboard .admin-operations-card {
    border-color: rgba(64, 139, 178, 0.38) !important;
    background: linear-gradient(180deg, #102d41 0%, #0c2233 100%) !important;
    color: var(--sawaco-ink) !important;
    box-shadow: 0 18px 40px rgba(0, 5, 12, 0.3) !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell #AdminHomeDashboard .admin-stat-card:hover,
html[data-sawaco-theme="dark"] body.admin-modern-shell #AdminHomeDashboard .admin-stat-card:focus {
    border-color: rgba(74, 194, 239, 0.58) !important;
    background: linear-gradient(180deg, #153a50 0%, #102b3e 100%) !important;
    color: #f2fbff !important;
    box-shadow: 0 24px 48px rgba(0, 5, 12, 0.4) !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell #AdminHomeDashboard .admin-executive-brand,
html[data-sawaco-theme="dark"] body.admin-modern-shell #AdminHomeDashboard .admin-operations-heading,
html[data-sawaco-theme="dark"] body.admin-modern-shell #AdminHomeDashboard .admin-stat-footer {
    border-color: rgba(67, 143, 183, 0.3) !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell #AdminHomeDashboard .admin-executive-brand strong,
html[data-sawaco-theme="dark"] body.admin-modern-shell #AdminHomeDashboard .admin-stat-value,
html[data-sawaco-theme="dark"] body.admin-modern-shell #AdminHomeDashboard .admin-operation-list strong,
html[data-sawaco-theme="dark"] body.admin-modern-shell #AdminHomeDashboard .admin-section-heading span {
    color: #8addff !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell #AdminHomeDashboard .admin-executive-brand span,
html[data-sawaco-theme="dark"] body.admin-modern-shell #AdminHomeDashboard .admin-executive-metrics small,
html[data-sawaco-theme="dark"] body.admin-modern-shell #AdminHomeDashboard .admin-stat-label,
html[data-sawaco-theme="dark"] body.admin-modern-shell #AdminHomeDashboard .admin-chart-title p,
html[data-sawaco-theme="dark"] body.admin-modern-shell #AdminHomeDashboard .admin-operations-heading p,
html[data-sawaco-theme="dark"] body.admin-modern-shell #AdminHomeDashboard .admin-operation-list small,
html[data-sawaco-theme="dark"] body.admin-modern-shell #AdminHomeDashboard .admin-section-heading small {
    color: #a9c3d2 !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell #AdminHomeDashboard .admin-section-heading h2,
html[data-sawaco-theme="dark"] body.admin-modern-shell #AdminHomeDashboard .admin-chart-title h3,
html[data-sawaco-theme="dark"] body.admin-modern-shell #AdminHomeDashboard .admin-operations-heading h3 {
    color: #edf9ff !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell #AdminHomeDashboard .admin-executive-metrics span,
html[data-sawaco-theme="dark"] body.admin-modern-shell #AdminHomeDashboard .admin-stat-meta span,
html[data-sawaco-theme="dark"] body.admin-modern-shell #AdminHomeDashboard .admin-operation-list a {
    border-color: rgba(65, 143, 184, 0.34) !important;
    background: #112f43 !important;
    color: #d9edf7 !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell #AdminHomeDashboard .admin-stat-meta span {
    color: #bed8e6 !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell #AdminHomeDashboard .admin-operation-list a:hover,
html[data-sawaco-theme="dark"] body.admin-modern-shell #AdminHomeDashboard .admin-operation-list a:focus {
    border-color: rgba(74, 194, 239, 0.5) !important;
    background: #173e55 !important;
    color: #f2fbff !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell #AdminHomeDashboard .admin-stat-icon,
html[data-sawaco-theme="dark"] body.admin-modern-shell #AdminHomeDashboard .admin-stat-badge,
html[data-sawaco-theme="dark"] body.admin-modern-shell #AdminHomeDashboard .admin-operation-list a > span,
html[data-sawaco-theme="dark"] body.admin-modern-shell #AdminHomeDashboard .admin-chart-title > span.sawaco-icon,
html[data-sawaco-theme="dark"] body.admin-modern-shell #AdminHomeDashboard .admin-chart-title > span.sawaco-svg-icon,
html[data-sawaco-theme="dark"] body.admin-modern-shell #AdminHomeDashboard .admin-operations-heading > span.sawaco-icon,
html[data-sawaco-theme="dark"] body.admin-modern-shell #AdminHomeDashboard .admin-operations-heading > span.sawaco-svg-icon {
    border: 1px solid var(--sawaco-icon-border) !important;
    background: linear-gradient(145deg, var(--sawaco-icon-surface-raised), var(--sawaco-icon-surface)) !important;
    color: var(--sawaco-icon-ink) !important;
    box-shadow:
        inset 0 1px 0 rgba(183, 230, 249, 0.06),
        0 8px 18px rgba(0, 6, 14, 0.22) !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell #AdminHomeDashboard .admin-executive-actions a {
    border-color: rgba(67, 151, 194, 0.42) !important;
    background: #14384e !important;
    color: #9fe3ff !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell #AdminHomeDashboard .admin-executive-actions a:hover,
html[data-sawaco-theme="dark"] body.admin-modern-shell #AdminHomeDashboard .admin-executive-actions a:focus {
    border-color: rgba(91, 202, 240, 0.58) !important;
    background: #18516b !important;
    color: #ffffff !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell #AdminHomeDashboard .admin-chart-panel .card-header {
    border-color: rgba(67, 143, 183, 0.3) !important;
    background: linear-gradient(180deg, #16384e, #102a3d) !important;
    color: #edf9ff !important;
}

/* Private account panel */
html[data-sawaco-theme="dark"] body.admin-modern-shell .control-sidebar.admin-private-panel {
    border-left-color: rgba(61, 138, 179, 0.42) !important;
    background: linear-gradient(180deg, #0b2233 0%, #091b2a 100%) !important;
    color: #e9f7fd !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-private-panel-hero {
    border-color: rgba(65, 143, 184, 0.38) !important;
    background:
        radial-gradient(circle at 50% -20%, rgba(42, 174, 232, 0.2), transparent 58%),
        linear-gradient(145deg, #14364b, #0d2638) !important;
    box-shadow: 0 18px 38px rgba(0, 5, 12, 0.32) !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-private-panel-logo,
html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-private-panel-close {
    border-color: rgba(73, 158, 201, 0.42) !important;
    background: #102e42 !important;
    color: #73d8ff !important;
    box-shadow: 0 12px 26px rgba(0, 5, 12, 0.28) !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-private-panel-close:hover,
html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-private-panel-close:focus {
    border-color: #2aaee8 !important;
    background: #17455e !important;
    color: #ffffff !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-private-panel-user small,
html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-private-panel-section-title {
    color: #93afbf !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-private-panel-user strong,
html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-private-panel-item-copy strong {
    color: #edf9ff !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-private-panel-user span {
    color: #68d3ff !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-private-panel-badges span {
    border-color: rgba(68, 151, 193, 0.38) !important;
    background: #14384d !important;
    color: #bce9fb !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-private-panel-item {
    border-color: rgba(60, 131, 168, 0.4) !important;
    background: #102b3f !important;
    color: #e4f3fa !important;
    box-shadow: 0 12px 26px rgba(0, 5, 12, 0.22) !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-private-panel-item:hover,
html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-private-panel-item:focus {
    border-color: rgba(72, 193, 239, 0.58) !important;
    background: #163c53 !important;
    color: #ffffff !important;
    box-shadow: 0 16px 32px rgba(0, 5, 12, 0.32) !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-private-panel-item-icon {
    background: #173d53 !important;
    color: #72d8ff !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-private-panel-theme-toggle .sawaco-icon-moon::before {
    content: "\f185" !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-private-panel-item-copy small {
    color: #9fb9c8 !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-private-panel-logout {
    border-color: #72404a !important;
    background: #35232a !important;
    color: #ffbdc1 !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-private-panel-logout .admin-private-panel-item-icon {
    background: #432a31 !important;
    color: #ffb4b9 !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-private-panel-content::-webkit-scrollbar-track {
    background: #091a28;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-private-panel-content::-webkit-scrollbar-thumb {
    border: 2px solid #091a28;
    border-radius: 999px;
    background: #315f79;
}

html[data-sawaco-theme="dark"] .admin-modern-shell #ViewpopupSearchFastingDataAreaManageGeneralModal .modal-content,
html[data-sawaco-theme="dark"] .admin-modern-shell #ViewpopupSearchFastingDataAreaManageGeneralModal .modal-header,
html[data-sawaco-theme="dark"] .admin-modern-shell #ViewpopupSearchFastingDataAreaManageGeneralModal .modal-footer,
html[data-sawaco-theme="dark"] .admin-modern-shell #txtSearchFastBasicDataAreaManageContents,
html[data-sawaco-theme="dark"] .admin-modern-shell #txtSearchFastBasicDataAreaManageContents:focus,
html[data-sawaco-theme="dark"] .admin-modern-shell #btnSearchFastBasicDataAreaManageContents:hover,
html[data-sawaco-theme="dark"] .admin-modern-shell #btnSearchFastBasicDataAreaManageContents:focus {
    border-color: rgba(65, 143, 184, 0.42) !important;
    background: #10283a !important;
    color: #e5f4fb !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell [data-admin-css="ais-6c76b9811c"],
html[data-sawaco-theme="dark"] .admin-modern-shell [data-admin-css="ais-b35c6c8a42"] {
    background: #10283a !important;
    color: #e5f4fb !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell #chartContainerCollect:fullscreen,
html[data-sawaco-theme="dark"] .admin-modern-shell #chartContainerRate:fullscreen,
html[data-sawaco-theme="dark"] .admin-modern-shell #chartContainerCollect:-webkit-full-screen,
html[data-sawaco-theme="dark"] .admin-modern-shell #chartContainerRate:-webkit-full-screen {
    background: #0b2131 !important;
}

/* Kendo controls still used by several incident and customer-service views. */
html[data-sawaco-theme="dark"] .admin-modern-shell .k-widget,
html[data-sawaco-theme="dark"] .admin-modern-shell .k-grid,
html[data-sawaco-theme="dark"] .admin-modern-shell .k-grid-content,
html[data-sawaco-theme="dark"] .admin-modern-shell .k-list-container,
html[data-sawaco-theme="dark"] .admin-modern-shell .k-popup,
html[data-sawaco-theme="dark"] .admin-modern-shell .k-window,
html[data-sawaco-theme="dark"] .admin-modern-shell .k-window-content {
    border-color: rgba(65, 143, 184, 0.38) !important;
    background: #0f293b !important;
    color: #d8eaf4 !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell .k-header,
html[data-sawaco-theme="dark"] .admin-modern-shell .k-grid-header,
html[data-sawaco-theme="dark"] .admin-modern-shell .k-pager-wrap,
html[data-sawaco-theme="dark"] .admin-modern-shell .k-toolbar {
    border-color: rgba(65, 143, 184, 0.38) !important;
    background: #15394f !important;
    color: #c4e8f8 !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell .k-grid td,
html[data-sawaco-theme="dark"] .admin-modern-shell .k-grid th,
html[data-sawaco-theme="dark"] .admin-modern-shell .k-grid tr,
html[data-sawaco-theme="dark"] .admin-modern-shell .k-alt {
    border-color: rgba(67, 137, 174, 0.22) !important;
    background: #0f293b !important;
    color: #d8eaf4 !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell .k-alt,
html[data-sawaco-theme="dark"] .admin-modern-shell .k-grid tr:hover {
    background: #14364b !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell .k-state-selected,
html[data-sawaco-theme="dark"] .admin-modern-shell .k-state-focused,
html[data-sawaco-theme="dark"] .admin-modern-shell .k-list > .k-state-selected {
    border-color: #1599c8 !important;
    background: #087fb7 !important;
    color: #ffffff !important;
}

html[data-sawaco-theme="dark"] .admin-modern-shell .k-input,
html[data-sawaco-theme="dark"] .admin-modern-shell .k-textbox,
html[data-sawaco-theme="dark"] .admin-modern-shell .k-dropdown-wrap,
html[data-sawaco-theme="dark"] .admin-modern-shell .k-picker-wrap,
html[data-sawaco-theme="dark"] .admin-modern-shell .k-numeric-wrap {
    border-color: rgba(65, 143, 184, 0.42) !important;
    background: #0b2131 !important;
    color: #e8f6ff !important;
}

html[data-sawaco-theme="dark"] .tooltipster-sidetip .tooltipster-box {
    border-color: #34779b !important;
    background: #0c2536 !important;
}

html[data-sawaco-theme="dark"] .tooltipster-sidetip .tooltipster-content {
    color: #e5f4fb !important;
}

/* Authentication and recovery pages */
html[data-sawaco-theme="dark"] body .cskh-command-login {
    background:
        linear-gradient(110deg, rgba(3, 18, 31, 0.97), rgba(7, 50, 78, 0.9) 48%, rgba(7, 73, 105, 0.9)),
        url("/DataLibrariesFILECSKH/Home/background_dashboardpanel_v4.jpg") center / cover no-repeat;
}

html[data-sawaco-theme="dark"] .cskh-access-panel {
    border-color: rgba(83, 162, 204, 0.46);
    background: rgba(9, 31, 46, 0.96);
    color: #e7f5fc;
    box-shadow: 0 32px 74px rgba(0, 5, 12, 0.52);
}

html[data-sawaco-theme="dark"] .cskh-access-header h2,
html[data-sawaco-theme="dark"] .cskh-field > span:first-child,
html[data-sawaco-theme="dark"] .cskh-phone-preview,
html[data-sawaco-theme="dark"] .cskh-state-message strong {
    color: #e8f6ff;
}

html[data-sawaco-theme="dark"] .cskh-access-header span,
html[data-sawaco-theme="dark"] .cskh-access-actions a,
html[data-sawaco-theme="dark"] .cskh-access-footer a,
html[data-sawaco-theme="dark"] .cskh-secondary-link {
    color: #62d2ff;
}

html[data-sawaco-theme="dark"] .cskh-access-mark,
html[data-sawaco-theme="dark"] .cskh-otp-user,
html[data-sawaco-theme="dark"] .cskh-recovery-note,
html[data-sawaco-theme="dark"] .cskh-state-message,
html[data-sawaco-theme="dark"] .cskh-phone-preview {
    border-color: rgba(66, 145, 185, 0.4);
    background: #102f43;
    color: #c7ddea;
}

html[data-sawaco-theme="dark"] .cskh-input-frame input {
    border-color: rgba(69, 145, 184, 0.5);
    background: #081f2f;
    color: #edfaff;
}

html[data-sawaco-theme="dark"] .cskh-input-frame input::placeholder {
    color: #7596a9;
}

html[data-sawaco-theme="dark"] .cskh-input-frame input:focus {
    border-color: #2aaee8;
    box-shadow: 0 0 0 4px rgba(42, 174, 232, 0.16);
}

html[data-sawaco-theme="dark"] .cskh-input-frame > .fa,
html[data-sawaco-theme="dark"] .cskh-password-toggle,
html[data-sawaco-theme="dark"] .cskh-access-footer,
html[data-sawaco-theme="dark"] .cskh-phone-preview span {
    color: #91acbc;
}

html[data-sawaco-theme="dark"] .cskh-password-toggle:hover,
html[data-sawaco-theme="dark"] .cskh-password-toggle:focus {
    background: #153b50;
    color: #6bd7ff;
}

html[data-sawaco-theme="dark"] .cskh-access-footer {
    border-top-color: rgba(69, 145, 184, 0.34);
}

html[data-sawaco-theme="dark"] .cskh-submit {
    background: linear-gradient(135deg, #087fb7, #16a2c4);
    box-shadow: 0 18px 36px rgba(0, 121, 174, 0.26);
}

/* AdminLTE login cards used outside the command-console login. */
html[data-sawaco-theme="dark"] body.login-page,
html[data-sawaco-theme="dark"] body.register-page {
    background:
        radial-gradient(circle at 20% 8%, rgba(34, 211, 238, 0.12), transparent 34%),
        linear-gradient(145deg, #06131f, #0a2639);
    color: #e7f5fc;
}

html[data-sawaco-theme="dark"] .login-page .card,
html[data-sawaco-theme="dark"] .register-page .card,
html[data-sawaco-theme="dark"] .login-box .card,
html[data-sawaco-theme="dark"] .register-box .card {
    border: 1px solid rgba(65, 143, 184, 0.4);
    background: #10283a;
    color: #dcecf5;
    box-shadow: 0 24px 54px rgba(0, 5, 12, 0.38);
}

html[data-sawaco-theme="dark"] .login-page .form-control,
html[data-sawaco-theme="dark"] .register-page .form-control,
html[data-sawaco-theme="dark"] .login-box .form-control,
html[data-sawaco-theme="dark"] .register-box .form-control {
    border-color: rgba(65, 143, 184, 0.44);
    background: #0a2132;
    color: #e7f5fc;
}

/* Final cross-view dark-mode safety net. Legacy view styles are often loaded
   after the main stylesheet, so these selectors deliberately carry enough
   specificity to prevent white hover surfaces and low-contrast link colors. */
html[data-sawaco-theme="dark"] body.admin-modern-shell .card .card-header .btn-tool,
html[data-sawaco-theme="dark"] body.admin-modern-shell .card-primary:not(.card-outline) > .card-header .btn-tool,
html[data-sawaco-theme="dark"] body.admin-modern-shell .card-lightblue:not(.card-outline) > .card-header .btn-tool,
html[data-sawaco-theme="dark"] body.admin-modern-shell .card-green:not(.card-outline) > .card-header .btn-tool,
html[data-sawaco-theme="dark"] body.admin-modern-shell .card-info:not(.card-outline) > .card-header .btn-tool {
    border-color: rgba(74, 157, 198, 0.48) !important;
    background: #102d40 !important;
    color: #78d9ff !important;
    box-shadow: inset 0 1px 0 rgba(183, 230, 249, 0.05) !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .card .card-header .btn-tool:hover,
html[data-sawaco-theme="dark"] body.admin-modern-shell .card .card-header .btn-tool:focus,
html[data-sawaco-theme="dark"] body.admin-modern-shell .card-primary:not(.card-outline) > .card-header .btn-tool:hover,
html[data-sawaco-theme="dark"] body.admin-modern-shell .card-primary:not(.card-outline) > .card-header .btn-tool:focus,
html[data-sawaco-theme="dark"] body.admin-modern-shell .card-lightblue:not(.card-outline) > .card-header .btn-tool:hover,
html[data-sawaco-theme="dark"] body.admin-modern-shell .card-lightblue:not(.card-outline) > .card-header .btn-tool:focus,
html[data-sawaco-theme="dark"] body.admin-modern-shell .card-green:not(.card-outline) > .card-header .btn-tool:hover,
html[data-sawaco-theme="dark"] body.admin-modern-shell .card-green:not(.card-outline) > .card-header .btn-tool:focus,
html[data-sawaco-theme="dark"] body.admin-modern-shell .card-info:not(.card-outline) > .card-header .btn-tool:hover,
html[data-sawaco-theme="dark"] body.admin-modern-shell .card-info:not(.card-outline) > .card-header .btn-tool:focus {
    border-color: rgba(91, 205, 242, 0.68) !important;
    background: #174a63 !important;
    color: #b5eeff !important;
    box-shadow: 0 8px 18px rgba(0, 7, 16, 0.28) !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .btn-danger,
html[data-sawaco-theme="dark"] body.admin-modern-shell .bg-danger {
    border-color: #84505a !important;
    background: #42242a !important;
    color: #ffb4b8 !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .btn-danger:hover,
html[data-sawaco-theme="dark"] body.admin-modern-shell .btn-danger:focus {
    border-color: #a6606c !important;
    background: #593039 !important;
    color: #ffd2d5 !important;
    box-shadow: 0 9px 20px rgba(14, 2, 5, 0.26) !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell #ViewpopupSearchFastingDataAreaManageGeneralModal .modal-footer .btn-danger:hover,
html[data-sawaco-theme="dark"] body.admin-modern-shell #ViewpopupSearchFastingDataAreaManageGeneralModal .modal-footer .btn-danger:focus {
    border-color: rgba(91, 202, 240, 0.58) !important;
    background: #17455f !important;
    color: #effaff !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .btn-warning,
html[data-sawaco-theme="dark"] body.admin-modern-shell .bg-warning {
    border-color: #796331 !important;
    background: #3b321c !important;
    color: #f6d68a !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .btn-warning:hover,
html[data-sawaco-theme="dark"] body.admin-modern-shell .btn-warning:focus {
    border-color: #9b7f3d !important;
    background: #4c4022 !important;
    color: #ffe4a1 !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .btn-light,
html[data-sawaco-theme="dark"] body.admin-modern-shell .btn-white,
html[data-sawaco-theme="dark"] body.admin-modern-shell .badge-light {
    border-color: rgba(65, 143, 184, 0.42) !important;
    background: #142f42 !important;
    color: #cfe5f1 !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .btn-light:hover,
html[data-sawaco-theme="dark"] body.admin-modern-shell .btn-light:focus,
html[data-sawaco-theme="dark"] body.admin-modern-shell .btn-white:hover,
html[data-sawaco-theme="dark"] body.admin-modern-shell .btn-white:focus {
    border-color: rgba(91, 202, 240, 0.58) !important;
    background: #1a455d !important;
    color: #effaff !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .bg-white,
html[data-sawaco-theme="dark"] body.admin-modern-shell .bg-light,
html[data-sawaco-theme="dark"] body.admin-modern-shell [style^="background: white"],
html[data-sawaco-theme="dark"] body.admin-modern-shell [style^="background:white"],
html[data-sawaco-theme="dark"] body.admin-modern-shell [style*=";background: white"],
html[data-sawaco-theme="dark"] body.admin-modern-shell [style*=";background:white"],
html[data-sawaco-theme="dark"] body.admin-modern-shell [style^="background: #fff"],
html[data-sawaco-theme="dark"] body.admin-modern-shell [style^="background:#fff"],
html[data-sawaco-theme="dark"] body.admin-modern-shell [style*=";background: #fff"],
html[data-sawaco-theme="dark"] body.admin-modern-shell [style*=";background:#fff"],
html[data-sawaco-theme="dark"] body.admin-modern-shell [style^="background-color: white"],
html[data-sawaco-theme="dark"] body.admin-modern-shell [style^="background-color:white"],
html[data-sawaco-theme="dark"] body.admin-modern-shell [style*=";background-color: white"],
html[data-sawaco-theme="dark"] body.admin-modern-shell [style*=";background-color:white"] {
    border-color: rgba(55, 126, 164, 0.34) !important;
    background: #10283a !important;
    background-color: #10283a !important;
    color: #dceef7 !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .btn-outline-secondary,
html[data-sawaco-theme="dark"] body.admin-modern-shell .btn-outline-dark,
html[data-sawaco-theme="dark"] body.admin-modern-shell .btn-outline-light {
    border-color: rgba(65, 143, 184, 0.42) !important;
    background: #102d40 !important;
    color: #bfd8e5 !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .btn-outline-success {
    border-color: rgba(71, 151, 116, 0.56) !important;
    background: #153229 !important;
    color: #94e4c0 !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .btn-outline-warning {
    border-color: rgba(153, 124, 58, 0.58) !important;
    background: #352f1d !important;
    color: #f6d68a !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .btn-outline-danger {
    border-color: rgba(166, 91, 103, 0.62) !important;
    background: #3b252b !important;
    color: #ffabb2 !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .btn-outline-secondary:hover,
html[data-sawaco-theme="dark"] body.admin-modern-shell .btn-outline-secondary:focus,
html[data-sawaco-theme="dark"] body.admin-modern-shell .btn-outline-dark:hover,
html[data-sawaco-theme="dark"] body.admin-modern-shell .btn-outline-dark:focus,
html[data-sawaco-theme="dark"] body.admin-modern-shell .btn-outline-light:hover,
html[data-sawaco-theme="dark"] body.admin-modern-shell .btn-outline-light:focus {
    border-color: rgba(91, 202, 240, 0.58) !important;
    background: #17455f !important;
    color: #effaff !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .btn-outline-success:hover,
html[data-sawaco-theme="dark"] body.admin-modern-shell .btn-outline-success:focus {
    border-color: rgba(105, 196, 155, 0.68) !important;
    background: #1d493b !important;
    color: #c4f5de !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .btn-outline-warning:hover,
html[data-sawaco-theme="dark"] body.admin-modern-shell .btn-outline-warning:focus {
    border-color: rgba(193, 157, 73, 0.7) !important;
    background: #4c4022 !important;
    color: #ffe4a1 !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .btn-outline-danger:hover,
html[data-sawaco-theme="dark"] body.admin-modern-shell .btn-outline-danger:focus {
    border-color: rgba(214, 112, 126, 0.72) !important;
    background: #593039 !important;
    color: #ffd2d5 !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .btn-link {
    background: transparent !important;
    color: #72d9ff !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .btn-link:hover,
html[data-sawaco-theme="dark"] body.admin-modern-shell .btn-link:focus {
    background: rgba(31, 103, 142, 0.22) !important;
    color: #b5eeff !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .close {
    border-color: rgba(65, 143, 184, 0.42) !important;
    background: #102d40 !important;
    color: #83dcff !important;
    text-shadow: none !important;
    opacity: 1 !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .close:hover,
html[data-sawaco-theme="dark"] body.admin-modern-shell .close:focus {
    background: #174a63 !important;
    color: #c8f3ff !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-command-menu .admin-notification-panel-actions {
    border-color: rgba(55, 126, 164, 0.3) !important;
    background: #0d2638 !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-command-menu .admin-notification-clear,
html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-command-menu .admin-notification-clear:hover,
html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-command-menu .admin-notification-clear:focus {
    border-color: rgba(166, 91, 103, 0.62) !important;
    background: #3b252b !important;
    color: #ffb3ba !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .border,
html[data-sawaco-theme="dark"] body.admin-modern-shell .border-top,
html[data-sawaco-theme="dark"] body.admin-modern-shell .border-right,
html[data-sawaco-theme="dark"] body.admin-modern-shell .border-bottom,
html[data-sawaco-theme="dark"] body.admin-modern-shell .border-left,
html[data-sawaco-theme="dark"] body.admin-modern-shell .border-white {
    border-color: rgba(59, 132, 170, 0.34) !important;
}

/* Default content links and legacy dark-blue text become water-cyan with a
   stable contrast ratio against the navy surfaces. */
html[data-sawaco-theme="dark"] body.admin-modern-shell .content-wrapper a:not(.btn):not(.nav-link):not(.page-link):not(.dropdown-item):not(.admin-table-icon-action),
html[data-sawaco-theme="dark"] body.admin-modern-shell .modal a:not(.btn):not(.nav-link):not(.page-link):not(.dropdown-item):not(.admin-table-icon-action) {
    color: #71d7ff !important;
    text-decoration-color: rgba(113, 215, 255, 0.42) !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .content-wrapper a:not(.btn):not(.nav-link):not(.page-link):not(.dropdown-item):not(.admin-table-icon-action):visited,
html[data-sawaco-theme="dark"] body.admin-modern-shell .modal a:not(.btn):not(.nav-link):not(.page-link):not(.dropdown-item):not(.admin-table-icon-action):visited {
    color: #9bdff7 !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .content-wrapper a:not(.btn):not(.nav-link):not(.page-link):not(.dropdown-item):not(.admin-table-icon-action):hover,
html[data-sawaco-theme="dark"] body.admin-modern-shell .content-wrapper a:not(.btn):not(.nav-link):not(.page-link):not(.dropdown-item):not(.admin-table-icon-action):focus,
html[data-sawaco-theme="dark"] body.admin-modern-shell .modal a:not(.btn):not(.nav-link):not(.page-link):not(.dropdown-item):not(.admin-table-icon-action):hover,
html[data-sawaco-theme="dark"] body.admin-modern-shell .modal a:not(.btn):not(.nav-link):not(.page-link):not(.dropdown-item):not(.admin-table-icon-action):focus {
    color: #c2f1ff !important;
    text-decoration-color: currentColor !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .content-wrapper .card-header a:not(.btn),
html[data-sawaco-theme="dark"] body.admin-modern-shell .modal .card-header a:not(.btn) {
    color: #eefaff !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .content-wrapper .card-header a:not(.btn):hover,
html[data-sawaco-theme="dark"] body.admin-modern-shell .content-wrapper .card-header a:not(.btn):focus,
html[data-sawaco-theme="dark"] body.admin-modern-shell .modal .card-header a:not(.btn):hover,
html[data-sawaco-theme="dark"] body.admin-modern-shell .modal .card-header a:not(.btn):focus {
    color: #ffffff !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .text-primary,
html[data-sawaco-theme="dark"] body.admin-modern-shell .link-primary,
html[data-sawaco-theme="dark"] body.admin-modern-shell [color="blue"],
html[data-sawaco-theme="dark"] body.admin-modern-shell [style^="color:blue"],
html[data-sawaco-theme="dark"] body.admin-modern-shell [style^="color: blue"],
html[data-sawaco-theme="dark"] body.admin-modern-shell [style*=";color:blue"],
html[data-sawaco-theme="dark"] body.admin-modern-shell [style*=";color: blue"],
html[data-sawaco-theme="dark"] body.admin-modern-shell [style*="; color:blue"],
html[data-sawaco-theme="dark"] body.admin-modern-shell [style*="; color: blue"],
html[data-sawaco-theme="dark"] body.admin-modern-shell [style^="color:#0"],
html[data-sawaco-theme="dark"] body.admin-modern-shell [style^="color: #0"],
html[data-sawaco-theme="dark"] body.admin-modern-shell [style*=";color:#0"],
html[data-sawaco-theme="dark"] body.admin-modern-shell [style*=";color: #0"],
html[data-sawaco-theme="dark"] body.admin-modern-shell [style*="; color:#0"],
html[data-sawaco-theme="dark"] body.admin-modern-shell [style*="; color: #0"],
html[data-sawaco-theme="dark"] body.admin-modern-shell [style*="color:#1263ac"],
html[data-sawaco-theme="dark"] body.admin-modern-shell [style*="color: #1263ac"] {
    color: #71d7ff !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell [color="red"],
html[data-sawaco-theme="dark"] body.admin-modern-shell [style^="color:red"],
html[data-sawaco-theme="dark"] body.admin-modern-shell [style^="color: red"],
html[data-sawaco-theme="dark"] body.admin-modern-shell [style*=";color:red"],
html[data-sawaco-theme="dark"] body.admin-modern-shell [style*=";color: red"],
html[data-sawaco-theme="dark"] body.admin-modern-shell [style*="; color:red"],
html[data-sawaco-theme="dark"] body.admin-modern-shell [style*="; color: red"],
html[data-sawaco-theme="dark"] body.admin-modern-shell [style*="color:#992600"],
html[data-sawaco-theme="dark"] body.admin-modern-shell [style*="color:#cc3300"],
html[data-sawaco-theme="dark"] body.admin-modern-shell [style*="color:#802000"],
html[data-sawaco-theme="dark"] body.admin-modern-shell [style*="color:#b30000"],
html[data-sawaco-theme="dark"] body.admin-modern-shell [style*="color:#cc0000"],
html[data-sawaco-theme="dark"] body.admin-modern-shell [style*="color:#800000"],
html[data-sawaco-theme="dark"] body.admin-modern-shell [style*="color:#993300"] {
    color: #ff9da6 !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell [style*="color:#737373"],
html[data-sawaco-theme="dark"] body.admin-modern-shell [style*="color: #737373"],
html[data-sawaco-theme="dark"] body.admin-modern-shell [style*="color:#404f5e"],
html[data-sawaco-theme="dark"] body.admin-modern-shell [style*="color:#495057"],
html[data-sawaco-theme="dark"] body.admin-modern-shell [style*="color:#6c757d"],
html[data-sawaco-theme="dark"] body.admin-modern-shell [style*="color:#777"] {
    color: #abc6d5 !important;
}

/* Pure-CSS text safety net for legacy Razor views. Old embedded styles often
   force a foreground color designed for a white page; normalize text-bearing
   elements on every dark content surface, then restore semantic accents below. */
html[data-sawaco-theme="dark"] body.admin-modern-shell :where(
    .content-wrapper,
    .modal,
    .control-sidebar,
    .dropdown-menu,
    .popover,
    .toast,
    .swal2-container
) :where(
    h1, h2, h3, h4, h5, h6,
    p, span, div, a, button,
    label, legend, caption, figcaption,
    small, strong, b, em, i, font,
    li, dt, dd, td, th,
    code, pre, kbd, samp, output
) {
    color: #dceef7 !important;
}

/* Legacy views still contain foreground colors from the light theme. Keep the
   most common dark purple/brown variants readable on navy surfaces. */
html[data-sawaco-theme="dark"] body.admin-modern-shell [style*="color:#39004d" i],
html[data-sawaco-theme="dark"] body.admin-modern-shell [style*="color:#660066" i],
html[data-sawaco-theme="dark"] body.admin-modern-shell [style*="color:#714bb9" i],
html[data-sawaco-theme="dark"] body.admin-modern-shell [color="#39004d" i],
html[data-sawaco-theme="dark"] body.admin-modern-shell [color="#660066" i],
html[data-sawaco-theme="dark"] body.admin-modern-shell [color="#714bb9" i] {
    color: #d8c0ff !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell [style*="color:#604020" i],
html[data-sawaco-theme="dark"] body.admin-modern-shell [color="#604020" i],
html[data-sawaco-theme="dark"] body.admin-modern-shell [color="chocolate" i],
html[data-sawaco-theme="dark"] body.admin-modern-shell [style*="color:chocolate" i] {
    color: #ffd38a !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell :where(
    .content-wrapper,
    .modal,
    .control-sidebar,
    .dropdown-menu,
    .popover,
    .toast,
    .swal2-container
) :where(.text-primary, .text-info, .link-primary, .link-info) {
    color: #71d7ff !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell :where(
    .content-wrapper,
    .modal,
    .control-sidebar,
    .dropdown-menu,
    .popover,
    .toast,
    .swal2-container
) :where(.text-danger, .link-danger, .invalid-feedback, .invalid-tooltip) {
    color: #ff9da6 !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell :where(
    .content-wrapper,
    .modal,
    .control-sidebar,
    .dropdown-menu,
    .popover,
    .toast,
    .swal2-container
) :where(.text-warning, .link-warning) {
    color: #ffd38a !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell :where(
    .content-wrapper,
    .modal,
    .control-sidebar,
    .dropdown-menu,
    .popover,
    .toast,
    .swal2-container
) :where(.text-success, .link-success, .valid-feedback, .valid-tooltip) {
    color: #8ee6b6 !important;
}

/* Data tokens are generated from legacy blue <font> values throughout the
   admin/manager views. Keep every tone on a dark, contrast-safe surface and
   override the generic legacy text safety net above. */
html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-data-token {
    border-color: var(--bs-primary-border-subtle) !important;
    background: var(--bs-primary-bg-subtle) !important;
    color: var(--bs-info-text-emphasis) !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-data-token--rural,
html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-data-token--residential {
    border-color: var(--bs-success-border-subtle) !important;
    background: var(--bs-success-bg-subtle) !important;
    color: var(--bs-success-text-emphasis) !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-data-token--primary {
    border-color: var(--bs-primary-border-subtle) !important;
    background: var(--bs-primary-bg-subtle) !important;
    color: var(--sawaco-blue) !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-data-token--production,
html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-data-token--warning {
    border-color: var(--bs-warning-border-subtle) !important;
    background: var(--bs-warning-bg-subtle) !important;
    color: var(--bs-warning-text-emphasis) !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-data-token--business,
html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-data-token--violet {
    border-color: #685383 !important;
    background: #342547 !important;
    color: #eadcff !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-data-token--administrative,
html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-data-token--info {
    border-color: var(--bs-info-border-subtle) !important;
    background: var(--bs-info-bg-subtle) !important;
    color: var(--bs-info-text-emphasis) !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-data-token--teal {
    border-color: #39726d !important;
    background: #153b39 !important;
    color: #b8eee7 !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .admin-data-token--slate {
    border-color: var(--bs-secondary-border-subtle) !important;
    background: var(--bs-secondary-bg-subtle) !important;
    color: var(--bs-secondary-text-emphasis) !important;
}

/* The online-user popup injects its own light scrollbar styles after page
   load. Override both that view and native scrollbars in the dark shell. */
html[data-sawaco-theme="dark"] body.admin-modern-shell,
html[data-sawaco-theme="dark"] body.admin-modern-shell * {
    scrollbar-color: #347fa1 #0a2132;
    scrollbar-width: thin;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell::-webkit-scrollbar,
html[data-sawaco-theme="dark"] body.admin-modern-shell *::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell::-webkit-scrollbar-track,
html[data-sawaco-theme="dark"] body.admin-modern-shell *::-webkit-scrollbar-track {
    background: #0a2132 !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell::-webkit-scrollbar-thumb,
html[data-sawaco-theme="dark"] body.admin-modern-shell *::-webkit-scrollbar-thumb {
    border: 3px solid #0a2132 !important;
    border-radius: 999px !important;
    background: #347fa1 !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell::-webkit-scrollbar-thumb:hover,
html[data-sawaco-theme="dark"] body.admin-modern-shell *::-webkit-scrollbar-thumb:hover {
    background: #48a6c9 !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .wrapperscrollbarpopupshowstatisticsuseronlinehomegeneraldetail {
    border: 1px solid rgba(62, 137, 175, 0.38) !important;
    background: #0b2131 !important;
    color: #dceef7 !important;
    scrollbar-color: #347fa1 #0a2132 !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .wrapperscrollbarpopupshowstatisticsuseronlinehomegeneraldetail::-webkit-scrollbar-track {
    background: #0a2132 !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .wrapperscrollbarpopupshowstatisticsuseronlinehomegeneraldetail::-webkit-scrollbar-thumb {
    border: 3px solid #0a2132 !important;
    background: #347fa1 !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .table-dv,
html[data-sawaco-theme="dark"] body.admin-modern-shell .table-dv tbody,
html[data-sawaco-theme="dark"] body.admin-modern-shell .table-dv tbody tr {
    background: #0e2739 !important;
    color: #d6e8f2 !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .table-dv thead th,
html[data-sawaco-theme="dark"] body.admin-modern-shell .table-dv tfoot td {
    border-color: rgba(67, 137, 174, 0.28) !important;
    background: #15384e !important;
    color: #dceef7 !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell .popover,
html[data-sawaco-theme="dark"] body.admin-modern-shell .popover-header,
html[data-sawaco-theme="dark"] body.admin-modern-shell .popover-body,
html[data-sawaco-theme="dark"] body.admin-modern-shell .toast,
html[data-sawaco-theme="dark"] body.admin-modern-shell .toast-header,
html[data-sawaco-theme="dark"] body.admin-modern-shell .toast-body {
    border-color: rgba(65, 143, 184, 0.42) !important;
    background: #10283a !important;
    color: #dceef5 !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell #chartContainer:fullscreen,
html[data-sawaco-theme="dark"] body.admin-modern-shell #chartContainer:-webkit-full-screen,
html[data-sawaco-theme="dark"] body.admin-modern-shell #chartContainerRaw:fullscreen,
html[data-sawaco-theme="dark"] body.admin-modern-shell #chartContainerDedup:fullscreen,
html[data-sawaco-theme="dark"] body.admin-modern-shell #chartContainerRaw:-webkit-full-screen,
html[data-sawaco-theme="dark"] body.admin-modern-shell #chartContainerDedup:-webkit-full-screen {
    background: #0b2131 !important;
    color: #dceef7 !important;
}

html[data-sawaco-theme="dark"] body.admin-modern-shell input[type="checkbox"],
html[data-sawaco-theme="dark"] body.admin-modern-shell input[type="radio"] {
    accent-color: #2aaee8;
}

@media (max-width: 991.98px) {
    .sawaco-theme-toggle--topbar .sawaco-theme-toggle-label {
        display: none;
    }

    .sawaco-theme-toggle--topbar {
        width: 42px;
        padding: 8px;
    }
}

@media (max-width: 520px) {
    .sawaco-theme-login-actions {
        width: 100%;
        align-items: stretch;
        justify-content: space-between;
    }

    .sawaco-theme-login-actions .cskh-command-status {
        flex: 1 1 auto;
    }

    .sawaco-theme-toggle--login {
        width: 42px;
        flex: 0 0 42px;
        padding: 8px;
    }

    .sawaco-theme-toggle--login .sawaco-theme-toggle-label {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sawaco-theme-enabled,
    .sawaco-theme-enabled *,
    .sawaco-theme-enabled *::before,
    .sawaco-theme-enabled *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    html[data-sawaco-theme="dark"] body.admin-modern-shell #markerlazyload-ending::before,
    html[data-sawaco-theme="dark"] body.admin-modern-shell #markerlazyload-ending::after,
    html[data-sawaco-theme="dark"] body.admin-modern-shell #markerend-wqloading::before,
    html[data-sawaco-theme="dark"] body.admin-modern-shell #markerend-wqloading::after {
        animation: none !important;
    }
}

@media print {
    .sawaco-theme-toggle {
        display: none !important;
    }

    html[data-sawaco-theme="dark"],
    html[data-sawaco-theme="dark"] body,
    html[data-sawaco-theme="dark"] .admin-modern-shell .content-wrapper,
    html[data-sawaco-theme="dark"] .admin-modern-shell .card,
    html[data-sawaco-theme="dark"] .admin-modern-shell .table,
    html[data-sawaco-theme="dark"] .admin-modern-shell table.table {
        background: #ffffff !important;
        color: #111111 !important;
    }
}
