/*!
 * sc-dark-shell: the dark theme of the app shell and its menus (#6185769596, dark mode slice 7b).
 *
 * Loaded LAST by layouts/app-ui (after sc-ui, sc-topbar, sc-shell, sc-forms, sc-tables and the cards file) and by
 * layouts/org-auth (after sc-auth). Every rule is scoped to :root[data-theme="dark"] (a chosen dark theme) or, inside
 * the prefers-color-scheme block, to :root.scu-theme-auto:not([data-theme="light"]) (Match my device), the same pair
 * sc-ui.css switches its tokens with. Slice 7a (App\Support\Theme) prints that attribute on <html> only while the
 * UI_DARK_MODE_ENABLED flag is ON and a person chose Dark or Match my device, so for everyone else nothing here
 * matches and nothing changes. The two blocks below are the same rules (ScUiDarkShellTest pins that).
 *
 * Tokens only: no hex, rgb(), hsl() or colour name is written here (the lesson of 6185769576); every value is a
 * --scu-* token, which the dark blocks of sc-ui.css switch. The menu, top bar, footer, page background (sc-shell,
 * sc-topbar), sign-in (sc-auth), forms, tables and the card/modal/subheader file are already on tokens and follow the
 * tokens by themselves, so this file only adds what the Metronic and Bootstrap base still draws in light colours: the
 * page text, plain dropdown menus, the notification list, scrollbars, the back-to-top button and the wordmark.
 * It does not touch portlets, cards, modals, alerts, toasts or the subheader (sc-cards.css, slice 5).
 * Specificity is the root attribute plus "body" plus one class, below the id-scoped rules of sc-topbar and sc-shell.
 */
/* ================================================================ chosen dark */
:root[data-theme="dark"] body {
    background-color: var(--scu-bg);
    color: var(--scu-text-2);
}
:root[data-theme="dark"] body .dropdown-menu {
    background-color: var(--scu-surface);
    border: 1px solid var(--scu-line);
    box-shadow: var(--scu-shadow-md);
    color: var(--scu-text-2);
}
:root[data-theme="dark"] body .dropdown-item {
    color: var(--scu-text-2);
}
:root[data-theme="dark"] body .dropdown-item:hover,
:root[data-theme="dark"] body .dropdown-item:focus {
    background-color: var(--scu-surface-3);
    color: var(--scu-text);
}
:root[data-theme="dark"] body .dropdown-item.active,
:root[data-theme="dark"] body .dropdown-item:active {
    background-color: var(--scu-brand-soft);
    color: var(--scu-brand);
}
:root[data-theme="dark"] body .dropdown-item.disabled,
:root[data-theme="dark"] body .dropdown-item:disabled {
    color: var(--scu-faint);
}
:root[data-theme="dark"] body .dropdown-divider {
    border-top-color: var(--scu-line);
}
:root[data-theme="dark"] body .dropdown-header {
    color: var(--scu-muted);
}
:root[data-theme="dark"] body .kt-nav .kt-nav__item > .kt-nav__link .kt-nav__link-text {
    color: var(--scu-text-2);
}
:root[data-theme="dark"] body .kt-nav .kt-nav__item > .kt-nav__link .kt-nav__link-icon {
    color: var(--scu-muted);
}
:root[data-theme="dark"] body .kt-nav .kt-nav__item:hover > .kt-nav__link,
:root[data-theme="dark"] body .kt-nav .kt-nav__item.kt-nav__item--active > .kt-nav__link {
    background-color: var(--scu-surface-3);
}
:root[data-theme="dark"] body .kt-nav .kt-nav__separator {
    border-bottom-color: var(--scu-line);
}
:root[data-theme="dark"] body .kt-notification .kt-notification__item .kt-notification__item-details .kt-notification__item-title {
    color: var(--scu-text);
}
:root[data-theme="dark"] body .kt-notification .kt-notification__item .kt-notification__item-details .kt-notification__item-time {
    color: var(--scu-muted);
}
:root[data-theme="dark"] {
    scrollbar-color: var(--scu-line-strong) var(--scu-bg);
}
:root[data-theme="dark"] body .ps__rail-x:hover,
:root[data-theme="dark"] body .ps__rail-y:hover,
:root[data-theme="dark"] body .ps--clicking {
    background-color: var(--scu-surface-3);
}
:root[data-theme="dark"] body .ps__thumb-x,
:root[data-theme="dark"] body .ps__thumb-y {
    background-color: var(--scu-line-strong);
}
:root[data-theme="dark"] body .ps__rail-x:hover > .ps__thumb-x,
:root[data-theme="dark"] body .ps__rail-y:hover > .ps__thumb-y {
    background-color: var(--scu-muted);
}
:root[data-theme="dark"] body .kt-scrolltop,
:root[data-theme="dark"] body .kt-scrolltop > i {
    background-color: var(--scu-brand);
    color: var(--scu-on-color);
}
:root[data-theme="dark"] body .kt-scrolltop {
    box-shadow: var(--scu-shadow-md);
}
:root[data-theme="dark"] body .kt-aside__brand-logo svg path[fill="black"],
:root[data-theme="dark"] body .kt-header-mobile__logo svg path[fill="black"],
:root[data-theme="dark"] body .sca-logo svg path[fill="black"] {
    fill: var(--scu-text);
}

/* ================================================================ Match my device (the OS is dark) */
@media (prefers-color-scheme: dark) {
    :root.scu-theme-auto:not([data-theme="light"]) body {
        background-color: var(--scu-bg);
        color: var(--scu-text-2);
    }
    :root.scu-theme-auto:not([data-theme="light"]) body .dropdown-menu {
        background-color: var(--scu-surface);
        border: 1px solid var(--scu-line);
        box-shadow: var(--scu-shadow-md);
        color: var(--scu-text-2);
    }
    :root.scu-theme-auto:not([data-theme="light"]) body .dropdown-item {
        color: var(--scu-text-2);
    }
    :root.scu-theme-auto:not([data-theme="light"]) body .dropdown-item:hover,
    :root.scu-theme-auto:not([data-theme="light"]) body .dropdown-item:focus {
        background-color: var(--scu-surface-3);
        color: var(--scu-text);
    }
    :root.scu-theme-auto:not([data-theme="light"]) body .dropdown-item.active,
    :root.scu-theme-auto:not([data-theme="light"]) body .dropdown-item:active {
        background-color: var(--scu-brand-soft);
        color: var(--scu-brand);
    }
    :root.scu-theme-auto:not([data-theme="light"]) body .dropdown-item.disabled,
    :root.scu-theme-auto:not([data-theme="light"]) body .dropdown-item:disabled {
        color: var(--scu-faint);
    }
    :root.scu-theme-auto:not([data-theme="light"]) body .dropdown-divider {
        border-top-color: var(--scu-line);
    }
    :root.scu-theme-auto:not([data-theme="light"]) body .dropdown-header {
        color: var(--scu-muted);
    }
    :root.scu-theme-auto:not([data-theme="light"]) body .kt-nav .kt-nav__item > .kt-nav__link .kt-nav__link-text {
        color: var(--scu-text-2);
    }
    :root.scu-theme-auto:not([data-theme="light"]) body .kt-nav .kt-nav__item > .kt-nav__link .kt-nav__link-icon {
        color: var(--scu-muted);
    }
    :root.scu-theme-auto:not([data-theme="light"]) body .kt-nav .kt-nav__item:hover > .kt-nav__link,
    :root.scu-theme-auto:not([data-theme="light"]) body .kt-nav .kt-nav__item.kt-nav__item--active > .kt-nav__link {
        background-color: var(--scu-surface-3);
    }
    :root.scu-theme-auto:not([data-theme="light"]) body .kt-nav .kt-nav__separator {
        border-bottom-color: var(--scu-line);
    }
    :root.scu-theme-auto:not([data-theme="light"]) body .kt-notification .kt-notification__item .kt-notification__item-details .kt-notification__item-title {
        color: var(--scu-text);
    }
    :root.scu-theme-auto:not([data-theme="light"]) body .kt-notification .kt-notification__item .kt-notification__item-details .kt-notification__item-time {
        color: var(--scu-muted);
    }
    :root.scu-theme-auto:not([data-theme="light"]) {
        scrollbar-color: var(--scu-line-strong) var(--scu-bg);
    }
    :root.scu-theme-auto:not([data-theme="light"]) body .ps__rail-x:hover,
    :root.scu-theme-auto:not([data-theme="light"]) body .ps__rail-y:hover,
    :root.scu-theme-auto:not([data-theme="light"]) body .ps--clicking {
        background-color: var(--scu-surface-3);
    }
    :root.scu-theme-auto:not([data-theme="light"]) body .ps__thumb-x,
    :root.scu-theme-auto:not([data-theme="light"]) body .ps__thumb-y {
        background-color: var(--scu-line-strong);
    }
    :root.scu-theme-auto:not([data-theme="light"]) body .ps__rail-x:hover > .ps__thumb-x,
    :root.scu-theme-auto:not([data-theme="light"]) body .ps__rail-y:hover > .ps__thumb-y {
        background-color: var(--scu-muted);
    }
    :root.scu-theme-auto:not([data-theme="light"]) body .kt-scrolltop,
    :root.scu-theme-auto:not([data-theme="light"]) body .kt-scrolltop > i {
        background-color: var(--scu-brand);
        color: var(--scu-on-color);
    }
    :root.scu-theme-auto:not([data-theme="light"]) body .kt-scrolltop {
        box-shadow: var(--scu-shadow-md);
    }
    :root.scu-theme-auto:not([data-theme="light"]) body .kt-aside__brand-logo svg path[fill="black"],
    :root.scu-theme-auto:not([data-theme="light"]) body .kt-header-mobile__logo svg path[fill="black"],
    :root.scu-theme-auto:not([data-theme="light"]) body .sca-logo svg path[fill="black"] {
        fill: var(--scu-text);
    }
}
