/* ==========================================================================
   Siebert Classic: the default colour theme, so the move from dash2
   (SmartAdmin v4, cust-theme-4) doesn't change how the dashboard looks.

   Built on SmartAdmin's Earth theme, which already carries dash2's palette
   (primary #2198f3, success #52bf11, purple info, orange warning, fusion
   #434a51), plus what Earth doesn't have: dash2's charcoal menu bar, grey
   page, flat cards, Roboto 13px and the Home page's day cards.
   Picked in Layout Settings → Themes like any other theme; Factory Reset
   comes back to it because app_top.php loads it by default.
   ========================================================================== */
@import url("earth.css");
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap");

:root {
    --font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --bs-body-font-family: var(--font-family);
    --bs-body-font-size: .8125rem;   /* 13px, as dash2 */
    --app-header-height: 3.5rem;     /* 56px instead of 88, so header + menu bar stay close to dash2's single bar */
    --classic-bar: #3a3633;          /* dash2's menu bar */
    --classic-bar-link: #c0bbb7;
    --classic-heading: #434a51;
}
:root:not([data-bs-theme=dark]) {
    --bs-body-color: #212529;
    --bs-body-color-rgb: 33, 37, 41;
    --app-content-background: #efefef;   /* dash2's grey page */
    --app-header-background: #fff;
}
body { font-family: var(--font-family); }

/* ---- menu: charcoal bar and sidebar, whatever the Dark Navigation setting ---- */
/* Dark Navigation (set-nav-dark) colours from --app-nav-bg and hard-codes its link colours; these match its selectors */
.set-nav-dark:not([data-bs-theme=dark]) { --app-nav-bg: var(--classic-bar); }
.set-nav-dark:not([data-bs-theme=dark]) .app-header .app-logo,
.set-nav-dark:not([data-bs-theme=dark]) .app-sidebar .app-logo { background-image: none; }
.set-nav-dark:not([data-bs-theme=dark]) .app-sidebar .primary-nav ul li a { color: var(--classic-bar-link); }
.set-nav-dark:not([data-bs-theme=dark]) .app-sidebar .primary-nav ul li a:hover { color: #51aef6; }
.set-nav-dark:not([data-bs-theme=dark]) .app-sidebar .primary-nav ul li.active > a { color: #fff; }
.app-sidebar,
.set-nav-dark:not([data-bs-theme=dark]) .app-sidebar {
    --app-nav-background: var(--classic-bar);
    --app-nav-link-color: var(--classic-bar-link);
    --app-nav-link-hover-color: #51aef6;
    --app-nav-link-active-color: #fff;
    --app-nav-item-hover-bg: rgba(255, 255, 255, .04);
    --app-nav-item-active-bg: rgba(255, 255, 255, .06);
    --app-nav-item-active-indicator: #2198f3;
    --app-nav-active-indicator: #2198f3;
    --app-nav-collapse-sign-color: var(--classic-bar-link);
    --app-nav-title-color: #8f8a86;
    background-color: var(--classic-bar);
    background-image: none;
}
.app-sidebar #searchInput { background: rgba(255, 255, 255, .08); border-color: transparent; color: #fff; }
.app-sidebar #searchInput::placeholder { color: rgba(255, 255, 255, .45); }
@media (min-width: 992px) {
    .set-nav-top .app-sidebar { box-shadow: 0 0 14px rgba(9, 97, 165, .13); border-bottom: 0; }
}

/* ---- header: white strip with the logo; in sidebar layout the logo sits on the charcoal ---- */
:root:not([data-bs-theme=dark]) .app-header { border-bottom-color: #e3e3e3; }
.app-header .btn-system { color: #51aef6; }

/* ---- page: grey, with flat white cards and panels ---- */
:root:not([data-bs-theme=dark]) .app-body,
:root:not([data-bs-theme=dark]) .app-content { background-color: var(--app-content-background); }
.subheader-title { font-weight: 400; color: var(--classic-heading); text-transform: none; }
[data-bs-theme=dark] .subheader-title { color: var(--bs-emphasis-color); }
.card,
.panel { border-radius: 4px; }
:root:not([data-bs-theme=dark]) .card,
:root:not([data-bs-theme=dark]) .panel { border-color: transparent; box-shadow: 0 2px 4px rgba(0, 0, 0, .075); }
.panel-hdr { border-top-left-radius: 4px; border-top-right-radius: 4px; }
.btn { border-radius: 4px; }

/* ==========================================================================
   Home page (index.php), as dash2's: blue card titles, charcoal day headers,
   today in red, arrivals and departures edged green and purple, and the
   Arrivals / Departures panels with charcoal headers.
   index.php's own <style> comes after this file, so these start with .week-grid to outrank its rules.
   ========================================================================== */
.kpi-card h6 { color: #2198f3; font-weight: 500 !important; font-size: .95rem; }
.kpi-card .kpi-value { font-weight: 400; }
.week-grid .week-day { border: 0; border-radius: 4px; box-shadow: 0 2px 4px rgba(0, 0, 0, .075); }
.week-grid .week-day-hdr { background: var(--classic-heading); color: #fff; }
.week-grid .week-day.is-today .week-day-hdr { background: #ee2d5a; }
.week-grid .week-day.is-selected { box-shadow: 0 0 0 2px rgba(33, 152, 243, .55); }
.week-grid .week-block { border-top: 0; margin: .35rem 0; }
.week-grid .week-block:has(.text-success) { border-left: 3px solid #52bf11; background: rgba(82, 191, 17, .06); }
.week-grid .week-block:has(.text-info) { border-left: 3px solid #ab35d6; background: rgba(171, 53, 214, .05); }
.home-res-panel > .panel-hdr { background: var(--classic-heading); color: #fff; }
.home-res-panel > .panel-hdr h2,
.home-res-panel > .panel-hdr h2 .sa-icon { color: #fff !important; }
.home-res-panel > .panel-hdr .btn-outline-secondary { --bs-btn-color: #fff; --bs-btn-border-color: rgba(255, 255, 255, .45); --bs-btn-hover-bg: rgba(255, 255, 255, .15); --bs-btn-hover-border-color: #fff; --bs-btn-hover-color: #fff; }
