/* ============================================================================
   WILDERNESS DESIGN SYSTEM — Schedwin application layer
   ----------------------------------------------------------------------------
   Loaded AFTER MudBlazor.min.css and app.css so it wins the cascade.
   Theme/SchedwinTheme.cs sets the same palette/type on MudTheme; this file
   carries the brand tokens as CSS custom properties and the component-level
   rules MudTheme cannot express.

   The five reflexes:
     1. Paper, not pixels — flat Stone Grey canvas, no UI gradients/patterns.
     2. Zero radius everywhere (avatars + the brand-mark sun are the only circles).
     3. One accent colour — Vibrant Orange #FF6E00.
     4. Serif headlines (>= 24px) vs. grotesk UI; eyebrows uppercase, 0.4em.
     5. No elevation shadows — 1px borders do the separating.

   Fonts: Athelas / Atyp Display are proprietary. Cormorant Garamond / Inter
   are the shipped substitutes (loaded in index.html). Swap the family names in
   --font-brand / --font-ui when the licensed files are available.

   NOTE: operational status colours (late-flight bands, scheduled/partial
   states, Wish booking statuses, weight/fuel warnings) are functional data
   encodings with on-screen legends and are intentionally NOT re-themed.
   ========================================================================== */

:root {
    /* --- Core palette ----------------------------------------------------- */
    --wd-stone-grey: #EEEBE5;
    --wd-dark-brown: #221F20;
    --wd-dark-green: #123438;
    --wd-sand: #B6A28F;
    --wd-sand-dark: #6D6156;
    --wd-grey-blue: #61717D;
    --wd-grey-dark: #353334;
    --wd-grey-light: #C7C0B7;
    --wd-orange: #FF6E00;
    --wd-orange-tint: #FD8931;
    --wd-orange-shade: #E56300;
    --wd-orange-15: rgba(255, 110, 0, 0.15);
    --wd-orange-30: rgba(255, 110, 0, 0.30);
    --wd-white: #FFFFFF;
    --wd-error: #C90000;

    /* --- Semantic roles ---------------------------------------------------- */
    --bg-paper: var(--wd-stone-grey);
    --bg-surface: var(--wd-white);
    --bg-tertiary: var(--wd-sand);
    --bg-tertiary-15: rgba(182, 162, 143, 0.15);
    --bg-tertiary-30: rgba(182, 162, 143, 0.30);
    --bg-overlay: rgba(0, 0, 0, 0.60);

    --fg: var(--wd-dark-brown);
    --fg-60: rgba(0, 0, 0, 0.60);
    --fg-secondary: var(--wd-sand-dark);
    --fg-on-dark: var(--wd-stone-grey);

    --border: var(--wd-dark-brown);
    --border-10: rgba(0, 0, 0, 0.10);
    --border-20: rgba(0, 0, 0, 0.20);
    --border-secondary: var(--wd-sand);
    --border-brand: var(--wd-orange);

    /* --- Type -------------------------------------------------------------- */
    --font-brand: "Cormorant Garamond", "Athelas", "Libre Baskerville", Georgia, serif;
    --font-ui: "Inter", "Atyp Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --track-eyebrow: 0.4em;
    --track-button: 0.14em;
    --track-meta: 0.1em;

    /* --- Motion ------------------------------------------------------------ */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --t-fast: 160ms;

    /* --- Legacy aliases (pre-design-system --wild-* names) ----------------- */
    --wild-ink: var(--wd-dark-brown);
    --wild-primary: var(--wd-dark-brown);
    --wild-primary-active: #000000;
    --wild-primary-light: var(--bg-tertiary-30);
    --wild-accent: var(--wd-orange);
    --wild-canvas: var(--wd-stone-grey);
    --wild-surface: var(--wd-white);
    --wild-surface-warm: #F7F5F2;
    --wild-line: var(--border-10);
    --wild-text: var(--wd-dark-brown);
    --wild-muted: var(--wd-sand-dark);

    /* --- MudBlazor variable overrides --------------------------------------
       (MudThemeProvider emits these too; restated so the file is the single
       visible source of truth and survives any theme-provider ordering.) */
    --mud-default-borderradius: 0px;
    --mud-palette-primary: var(--wd-orange);
    --mud-palette-primary-darken: var(--wd-orange-shade);
    --mud-palette-primary-lighten: var(--wd-orange-tint);
    --mud-palette-primary-text: var(--wd-dark-brown);
    --mud-palette-background: var(--wd-stone-grey);
    --mud-palette-surface: var(--wd-white);
    --mud-palette-text-primary: var(--wd-dark-brown);
    --mud-palette-text-secondary: var(--wd-sand-dark);

    --mud-typography-default-family: var(--font-ui);
    --mud-typography-h1-family: var(--font-brand);
    --mud-typography-h2-family: var(--font-brand);
    --mud-typography-h3-family: var(--font-brand);
    --mud-typography-h4-family: var(--font-brand);
    --mud-typography-h5-family: var(--font-brand);
    --mud-typography-h6-family: var(--font-brand);

    --mud-elevation-0: none; --mud-elevation-1: none; --mud-elevation-2: none;
    --mud-elevation-3: none; --mud-elevation-4: none; --mud-elevation-5: none;
    --mud-elevation-6: none; --mud-elevation-7: none; --mud-elevation-8: none;
    --mud-elevation-9: none; --mud-elevation-10: none; --mud-elevation-11: none;
    --mud-elevation-12: none; --mud-elevation-13: none; --mud-elevation-14: none;
    --mud-elevation-15: none; --mud-elevation-16: none; --mud-elevation-17: none;
    --mud-elevation-18: none; --mud-elevation-19: none; --mud-elevation-20: none;
    --mud-elevation-21: none; --mud-elevation-22: none; --mud-elevation-23: none;
    --mud-elevation-24: none; --mud-elevation-25: none;
}

/* ===================================================================== */
/*  Base                                                                  */
/* ===================================================================== */
html, body {
    background: var(--bg-paper);
    color: var(--fg);
    font-family: var(--font-ui);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--wd-orange-30); }

:focus-visible {
    outline: 1px solid var(--wd-orange);
    outline-offset: 2px;
}

.mud-typography-h1, .mud-typography-h2, .mud-typography-h3,
.mud-typography-h4, .mud-typography-h5, .mud-typography-h6 {
    text-wrap: balance;
}

/* The serif's default old-style figures read "0" as "O" and "1" as "I" —
   always use lining figures for serif numerals (stats, totals, headings). */
.mud-typography-h1, .mud-typography-h2, .mud-typography-h3,
.mud-typography-h4, .mud-typography-h5, .mud-typography-h6,
.wd-serif, .wd-stat-value, .sched-total-value, .wd-signin-card h1, .wd-status h2 {
    font-variant-numeric: lining-nums tabular-nums;
}

* { scrollbar-width: thin; scrollbar-color: var(--wd-sand) transparent; }

/* Kill every remaining shadow MudBlazor bakes in outside the elevation vars. */
.mud-paper, .mud-card, .mud-button-filled, .mud-fab, .mud-appbar,
.mud-drawer, .mud-popover, .mud-dialog, .mud-snackbar, .mud-table,
.mud-expand-panel, .mud-chip, .mud-alert, .mud-picker-paper {
    box-shadow: none !important;
}

/* Zero radius everywhere (MudBlazor hard-codes some radii). */
.mud-chip, .mud-badge .mud-badge-badge, .mud-icon-button, .mud-fab,
.mud-tooltip, .mud-snackbar, .mud-alert, .mud-button-root,
.mud-toggle-group, .mud-input-outlined-border, .mud-progress-linear,
.mud-skeleton, .mud-nav-link, .mud-list-item, .mud-treeview-item-content,
.mud-picker-calendar-day, .mud-picker-month, .mud-picker-year,
.rounded, .rounded-sm, .rounded-lg, .rounded-xl, .rounded-pill {
    border-radius: 0 !important;
}

/* Exceptions: avatars, radios and dot badges stay round. */
.mud-avatar, .mud-radio .mud-icon-button, .mud-badge-dot .mud-badge-badge,
.mud-switch-thumb-small, .mud-switch-thumb-medium, .mud-switch-thumb-large {
    border-radius: 9999px !important;
}

/* ===================================================================== */
/*  Brand utilities                                                       */
/* ===================================================================== */
.wd-eyebrow {
    font-family: var(--font-ui);
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: var(--track-eyebrow);
    text-transform: uppercase;
    color: var(--fg-secondary);
}

.wd-meta {
    font-family: var(--font-ui);
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: var(--track-meta);
    text-transform: uppercase;
}

.wd-serif { font-family: var(--font-brand); }

.wd-rule { height: 1px; width: 48px; background: var(--wd-orange); border: 0; margin: 12px 0 0; }

/* Brand marks rendered as masks so they inherit currentColor. */
.wd-logo, .wd-mark {
    display: inline-block;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: left center;
    mask-position: left center;
    -webkit-mask-size: contain;
    mask-size: contain;
    flex-shrink: 0;
}
.wd-logo {
    -webkit-mask-image: url("../images/brand/logo-horizontal.svg");
    mask-image: url("../images/brand/logo-horizontal.svg");
    aspect-ratio: 400 / 81;
    height: 18px;
}
.wd-mark {
    -webkit-mask-image: url("../images/brand/logo-mark.svg");
    mask-image: url("../images/brand/logo-mark.svg");
    aspect-ratio: 1;
    height: 24px;
}

/* Dark ink band — replaces the old gradient page toolbars. */
.wd-band {
    background: var(--wd-dark-brown) !important;
    color: var(--fg-on-dark) !important;
    border: 0 !important;
}
.wd-band .mud-icon-button:not(.mud-disabled),
.wd-band .mud-button-text:not(.mud-disabled),
.wd-band .mud-typography { color: var(--fg-on-dark); }
.wd-band .mud-icon-button:not(.mud-disabled):hover,
.wd-band .mud-button-text:not(.mud-disabled):hover { color: var(--wd-orange); background: transparent; }
.wd-band .mud-icon-button.mud-disabled { color: rgba(238, 235, 229, 0.35) !important; }
.wd-band .mud-input-outlined { background-color: transparent; }
.wd-band .mud-input-outlined-border { border-color: rgba(238, 235, 229, 0.4); }
.wd-band .mud-input, .wd-band .mud-input input { color: var(--fg-on-dark); }
.wd-band .mud-chip.mud-chip-filled.mud-chip-color-surface,
.wd-band .mud-chip.mud-chip-filled.mud-chip-color-default {
    background-color: transparent;
    color: var(--fg-on-dark);
    border: 1px solid rgba(238, 235, 229, 0.4);
}

/* Quiet tinted panel — replaces green/blue-tinted legacy panels. */
.wd-panel-tint { background: var(--bg-tertiary-15) !important; }

/* Page heading block: eyebrow + serif title. */
.wd-page-header { margin-bottom: 24px; }
.wd-page-header .wd-eyebrow { display: block; margin-bottom: 8px; }

/* ===================================================================== */
/*  Anchor hover guard                                                    */
/*  Bootstrap 5.1 ships `a:hover { color: #0a58ca }` (specificity 0,1,1), */
/*  which beats MudBlazor's single-class colour rules on any component    */
/*  rendered as <a> (nav links, buttons/icon buttons with Href). Restore  */
/*  the brand colours explicitly.                                         */
/* ===================================================================== */
a.mud-button-root:hover, a.mud-nav-link:hover, a.wd-brand:hover { text-decoration: none; }
a.wd-brand:hover { color: var(--fg); }
a.mud-button-filled-primary:hover:not(.mud-disabled) { color: var(--wd-dark-brown); }
a.mud-button-text-primary:hover:not(.mud-disabled),
a.mud-button-text-default:hover:not(.mud-disabled) { color: var(--fg); }
a.mud-button-text-inherit:hover:not(.mud-disabled),
a.mud-icon-button.mud-default-text:hover:not(.mud-disabled) { color: inherit; }
a.mud-button-text-primary:hover:not(.mud-disabled),
a.mud-button-text-default:hover:not(.mud-disabled) {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

/* ===================================================================== */
/*  App shell                                                             */
/* ===================================================================== */
.mud-appbar {
    background: var(--bg-paper) !important;
    color: var(--fg) !important;
    border-bottom: 1px solid var(--border-10);
}
.mud-appbar .wd-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--fg);
    text-decoration: none;
}
.mud-appbar .wd-brand-divider { width: 1px; height: 20px; background: var(--border-20); }
.mud-appbar .wd-brand-product {
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: var(--track-eyebrow);
    text-transform: uppercase;
    color: var(--fg-secondary);
}

.mud-drawer {
    background: var(--bg-surface) !important;
    border-right: 1px solid var(--border-10);
}

.mud-navmenu { padding: 12px 0; }

.mud-nav-link {
    font-family: var(--font-ui);
    font-size: 14px;
    color: var(--fg);
    padding-top: 10px;
    padding-bottom: 10px;
    border-left: 1px solid transparent;
    transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.mud-nav-link .mud-nav-link-icon { color: var(--wd-sand-dark); }
.mud-nav-link:hover:not(.mud-nav-link-disabled),
.mud-nav-link:focus-visible:not(.mud-nav-link-disabled) {
    background-color: var(--bg-tertiary-15) !important;
    color: var(--fg);          /* label stays ink on hover — only the icon turns orange */
    text-decoration: none;
}
.mud-nav-link:hover:not(.mud-nav-link-disabled) .mud-nav-link-icon { color: var(--wd-orange); }

.mud-nav-link.active:not(.mud-nav-link-disabled) {
    background-color: var(--bg-tertiary-30) !important;
    color: var(--fg) !important;
    border-left-color: var(--wd-orange);
    font-weight: 500;
}
.mud-nav-link.active:not(.mud-nav-link-disabled) .mud-nav-link-icon { color: var(--wd-orange) !important; }

/* Nav group headers read as eyebrows. */
.mud-nav-group > .mud-nav-link .mud-nav-link-text {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--fg-secondary);
}

/* ===================================================================== */
/*  Buttons                                                               */
/* ===================================================================== */
.mud-button-root {
    transition: background-color var(--t-fast) var(--ease-out),
                color var(--t-fast) var(--ease-out),
                border-color var(--t-fast) var(--ease-out);
}

/* Primary — orange fill, dark ink label. */
.mud-button-filled.mud-button-filled-primary {
    background-color: var(--wd-orange);
    color: var(--wd-dark-brown);
}
.mud-button-filled.mud-button-filled-primary:hover:not(.mud-disabled) { background-color: var(--wd-orange-tint); }
.mud-button-filled.mud-button-filled-primary:active:not(.mud-disabled) { background-color: var(--wd-orange-shade); }
.mud-button-filled.mud-button-filled-primary.mud-disabled {
    background-color: var(--wd-orange-30) !important;
    color: rgba(0, 0, 0, 0.5) !important;
}

/* Secondary — white fill, orange stroke, ink label that turns orange on hover. */
.mud-button-outlined.mud-button-outlined-primary,
.mud-button-outlined.mud-button-outlined-default {
    background-color: var(--wd-white);
    color: var(--wd-dark-brown);
    border: 1px solid var(--wd-orange);
}
.mud-button-outlined.mud-button-outlined-primary:hover:not(.mud-disabled),
.mud-button-outlined.mud-button-outlined-default:hover:not(.mud-disabled) {
    background-color: var(--wd-white);
    color: var(--wd-orange);
}
.mud-button-outlined.mud-button-outlined-primary:active:not(.mud-disabled),
.mud-button-outlined.mud-button-outlined-default:active:not(.mud-disabled) {
    border-color: var(--wd-dark-brown);
    color: var(--wd-dark-brown);
}

/* Tertiary / text — ink label with an underline on hover; no tint fill. */
.mud-button-text.mud-button-text-primary { color: var(--wd-dark-brown); }
.mud-button-text:hover:not(.mud-disabled) {
    background-color: transparent;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}
.mud-button-text.mud-button-text-primary:hover:not(.mud-disabled) { text-decoration-color: var(--wd-orange); }

/* Icon buttons — square, ink, orange on hover. */
.mud-icon-button.mud-primary-text { color: var(--wd-dark-brown); }
.mud-icon-button:hover:not(.mud-disabled) { background-color: var(--bg-tertiary-15); }
.mud-icon-button.mud-primary-text:hover:not(.mud-disabled),
.mud-icon-button.mud-inherit-text:hover:not(.mud-disabled) { color: var(--wd-orange); }
.mud-icon-button.mud-button-filled-primary { color: var(--wd-dark-brown); }

/* ===================================================================== */
/*  Surfaces                                                              */
/* ===================================================================== */
.mud-paper-outlined, .mud-card-outlined { border: 1px solid var(--border-10); }

.mud-card { border: 1px solid var(--border-10); transition: border-color var(--t-fast) var(--ease-out); }
.mud-card:hover { border-color: var(--border-secondary); }

.wd-card-link {
    cursor: pointer;
    border: 1px solid var(--border-10) !important;
    transition: border-color var(--t-fast) var(--ease-out);
}
.wd-card-link:hover { border-color: var(--border-secondary) !important; }

.mud-popover {
    border: 1px solid var(--border-10);
    background: var(--bg-surface);
}

.mud-overlay-dark, .mud-overlay .mud-overlay-scrim.mud-overlay-dark { background-color: var(--bg-overlay) !important; }

.mud-dialog {
    border: 1px solid var(--border-10);
    background: var(--bg-surface);
}
.mud-dialog .mud-dialog-title {
    border-bottom: 1px solid var(--border-10);
    padding-bottom: 16px;
}
.mud-dialog .mud-dialog-actions {
    border-top: 1px solid var(--border-10);
    padding: 12px 24px;
}

.mud-expand-panel { border: 1px solid var(--border-10); margin-bottom: -1px; }

.mud-divider { border-color: var(--border-10); }

/* ===================================================================== */
/*  Forms                                                                 */
/* ===================================================================== */
.mud-input-control .mud-input-label { font-family: var(--font-ui); }
.mud-input-outlined { background-color: var(--wd-white); }
.mud-input.mud-input-underline:after { border-bottom-color: var(--wd-orange); }
.mud-input.mud-input-outlined:focus-within .mud-input-outlined-border { border-color: var(--wd-orange); border-width: 1px; }
.mud-input-label.mud-input-label-animated.mud-input-label-outlined { background-color: transparent; }
.mud-input-error .mud-input-outlined-border, .mud-input-error.mud-input-underline:after { border-color: var(--wd-error) !important; }
.mud-input-helper-text.mud-input-error, .mud-input-error .mud-input-label { color: var(--wd-error) !important; }

.mud-checkbox .mud-icon-button.mud-checkbox-true, .mud-checkbox-true { color: var(--wd-orange); }

/* Date/time picker header — ink band rather than a full orange slab. */
.mud-picker-datepicker-toolbar, .mud-picker-timepicker-toolbar, .mud-toolbar.mud-picker-toolbar {
    background-color: var(--wd-dark-brown) !important;
    color: var(--fg-on-dark) !important;
}
.mud-picker-calendar-day.mud-selected, .mud-picker-year-selected, .mud-picker-month-selected {
    background-color: var(--wd-orange) !important;
    color: var(--wd-dark-brown) !important;
}
.mud-picker-calendar-day.mud-current:not(.mud-selected) { color: var(--wd-orange-shade); border: 1px solid var(--wd-orange); }

/* ===================================================================== */
/*  Data display                                                          */
/* ===================================================================== */
.mud-table { border: 1px solid var(--border-10); background: var(--bg-surface); }
.mud-table-head .mud-table-cell,
.mud-data-grid .mud-table-head .mud-table-cell {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: var(--track-meta);
    text-transform: uppercase;
    color: var(--fg-secondary);
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border);
}
.mud-table-dense .mud-table-head .mud-table-cell { padding-top: 10px; padding-bottom: 10px; }
.mud-table-cell { border-bottom-color: var(--border-10); }
.mud-table-pagination { border-top: 1px solid var(--border-10); }

/* Chips — square, small uppercase meta labels. */
.mud-chip {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: var(--track-meta);
    text-transform: uppercase;
}
.mud-chip.mud-chip-outlined { background-color: var(--wd-white); }
.mud-chip.mud-chip-filled.mud-chip-color-primary { color: var(--wd-dark-brown); }
.mud-chip.mud-chip-filled.mud-chip-color-default,
.mud-chip.mud-chip-filled.mud-chip-color-surface {
    background-color: var(--bg-tertiary-30);
    color: var(--fg);
}

.mud-badge .mud-badge-badge { font-family: var(--font-ui); font-weight: 600; }
.mud-badge.mud-badge-default .mud-badge-badge, .mud-badge-primary .mud-badge-badge { color: var(--wd-dark-brown); }

.mud-tooltip {
    background-color: var(--wd-dark-brown) !important;
    color: var(--wd-stone-grey) !important;
    font-family: var(--font-ui);
    font-size: 12px;
}

.mud-tabs-toolbar { background: transparent; border-bottom: 1px solid var(--border-10); }
.mud-tab { font-size: 12px; letter-spacing: var(--track-button); }
.mud-tab.mud-tab-active { color: var(--fg); }

.mud-treeview-item-content.mud-treeview-item-selected { background-color: var(--bg-tertiary-30) !important; color: var(--fg); }
.mud-treeview-item-content:hover { background-color: var(--bg-tertiary-15); }

.mud-list-item:hover { background-color: var(--bg-tertiary-15); }
.mud-list-item.mud-selected-item { background-color: var(--bg-tertiary-30) !important; color: var(--fg) !important; }

/* Alerts — flat tint, 1px left brand edge per severity. */
.mud-alert { font-family: var(--font-ui); border-left: 1px solid currentColor; }

.mud-snackbar { font-family: var(--font-ui); }

.mud-progress-circular.mud-primary-text { color: var(--wd-orange); }
.mud-progress-linear.mud-progress-linear-color-primary { background-color: var(--wd-orange-15); }

/* Links rendered as plain content anchors. */
.mud-link { text-underline-offset: 4px; text-decoration-thickness: 1px; }
.mud-link.mud-primary-text { color: var(--fg); text-decoration: underline; }
.mud-link.mud-primary-text:hover { color: var(--wd-orange); }

/* ===================================================================== */
/*  Sign-in / status screens                                              */
/* ===================================================================== */
.wd-signin {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background-image: url('https://images.wilderness.co.za/Guest_Portal_Images/Web/Login-V.jpg?639267992756046851');
    background-size: cover;
    background-position: center;
    background-color: var(--wd-sand);
}
.wd-signin::before {
    /* Photo protection — darkening gradient from the bottom, the image stays the image. */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.55) 100%);
}
.wd-signin-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    padding: 48px 40px 40px;
    background: var(--bg-paper);
    border: 1px solid var(--border-10);
}
/* The login photograph carries its own left-aligned art direction, so on wide
   screens the card sits to the right rather than over the image's focal area. */
@media (min-width: 960px) {
    .wd-signin { justify-content: flex-end; padding-right: 8vw; }
}
.wd-signin-card .wd-logo { height: 20px; color: var(--fg); }
.wd-signin-card .wd-signin-eyebrow { display: block; margin-top: 40px; }
.wd-signin-card h1 {
    font-family: var(--font-brand);
    font-weight: 400;
    font-size: 40px;
    line-height: 48px;
    margin: 8px 0 12px;
    color: var(--fg);
}
.wd-signin-card p { font-size: 15px; line-height: 24px; color: var(--fg-60); margin: 0 0 32px; }

.wd-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 64px 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border-10);
}
.wd-status h2 { font-family: var(--font-brand); font-weight: 500; font-size: 28px; line-height: 36px; margin: 16px 0 8px; }

/* ===================================================================== */
/*  Home dashboard                                                        */
/* ===================================================================== */
.wd-stat {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    height: 100%;
    padding: 20px 24px;
    background: var(--bg-surface);
}
.wd-stat-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.wd-stat-label { font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-secondary); line-height: 16px; }
.wd-stat-icon { color: var(--wd-sand); }
.wd-stat-value { font-family: var(--font-brand); font-size: 48px; line-height: 1; font-weight: 400; color: var(--fg); }
.wd-stat-value.is-alert { color: var(--wd-error); }
.wd-stat:hover .wd-stat-icon { color: var(--wd-orange); }

.wd-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    height: 112px;
    padding: 16px;
    background: var(--bg-surface);
}
.wd-tile .mud-icon-root { color: var(--wd-sand-dark); transition: color var(--t-fast) var(--ease-out); }
.wd-tile:hover .mud-icon-root { color: var(--wd-orange); }
.wd-tile-label { font-size: 12px; font-weight: 500; letter-spacing: var(--track-meta); text-transform: uppercase; }

.wd-section-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-10);
}

/* ============================================================================
   Telerik Blazor ReportViewer — blank-canvas height-cascade fix
   ----------------------------------------------------------------------------
   The <ReportViewer> component renders its own root <div id="{ViewerId}">
   (e.g. #schedwinReportViewer) but that root does NOT itself carry Telerik's
   .trv-report-viewer class or any height rule. Our markup places the
   .trv-report-viewer class (and an explicit height: 80vh) on an OUTER wrapper
   div instead, so the component's actual root is left classless and sizeless.
   This breaks the percentage-height cascade: .trv-content-wrapper's own
   height: 100% rule has nothing to resolve against, collapsing to just the
   toolbar's height and leaving the fully-rendered report content invisible.
   Forcing an explicit height/flex layout directly on the component root
   restores the cascade down through .trv-content-wrapper to the report pages.
   ========================================================================== */
#schedwinReportViewer {
    height: 100% !important;
    min-height: 600px !important; /* fallback so it never collapses to 0 even if the 80vh ancestor's height is itself unresolved */
    display: flex !important;
    flex-direction: column !important;
}

/* Telerik's own .trv-content-wrapper/.trv-page-container rules rely on height: 100%
   percentages cascading down from #schedwinReportViewer (set above). As an extra
   safeguard against the toolbar-only collapse (page viewport computing to 0px while
   the toolbar still renders at its own intrinsic height), force these descendants to
   flex-stretch and carry an explicit min-height fallback of their own. */
.trv-report-viewer .trv-content-wrapper,
.trv-report-viewer .trv-page-container {
    flex: 1 1 auto !important;
    height: 100% !important;
    min-height: 500px !important;
}

/* ============================================================================
   Telerik Blazor ReportViewer — missing flex-splitter rule (ROOT CAUSE of the
   collapsed/blank report canvas, confirmed via runtime CSS inspection).
   ----------------------------------------------------------------------------
   The report-viewer RUNTIME scripts (Telerik.ReportViewer.Blazor 20.2.26.1007)
   emit the MODERN flexbox splitter markup: the splitter containers carry the
   class .k-splitter-flex and each pane gets inline `order:` + `flex-basis:`
   styles, which only make sense inside a flex container. However, the Kendo UI
   theme we load (kendo.cdn.telerik.com/2020.2.617) PRE-DATES that model and
   defines NO `.k-splitter-flex { display: flex }` rule anywhere (verified: the
   rule is absent from kendo.common.min.css, kendo.default.min.css, AND the
   viewer's own telerikReportViewer-20.2.26.1007.css bundle). With no flex
   context, each pane's inline flex-basis becomes inert and the pane shrinks to
   its intrinsic in-flow height. For .trv-pages-area that height is ~0 because
   its only child, .trv-page-container, is position:absolute — so the entire
   report canvas collapsed to ~1.6px tall while the toolbar still rendered,
   producing the "blank canvas" symptom. Supplying the single missing rule
   restores the flex layout; DevTools confirmed .trv-pages-area then stretches
   from 1.6px back to the full 544.8px and the report paints on first load.
   Scoped to .trv-report-viewer so it cannot affect any other Kendo splitter. */
.trv-report-viewer .k-splitter-flex {
    display: flex !important;
}

/* NOTE: a previous attempt forced height: 100% !important on .trv-report-page and its
   .sheet child here. That was reverted - .trv-report-page gets an inline height from
   Kendo computed proportionally to data-page-scale (e.g. height: 561.5px at scale 0.5),
   and .sheet is positioned/scaled via transform: scale(...) relative to that height.
   Overriding either with height: 100% fights Kendo's own scale math and risks clipping/
   misaligning the rendered page inside .trv-report-page's overflow: hidden box instead
   of fixing anything - DevTools confirmed both elements already report correct, non-zero
   computed dimensions without this override. Do not reintroduce it without first
   confirming (via DevTools) that .sheet's OWN height is actually unresolved/zero. */

/* The toolbar's "Page" number input was rendering with text blending into its own
   background (visible only transiently on hover/focus), making the page counter
   look blank even once the report had successfully loaded. Force explicit light
   background + dark text so it's always legible. */
.trv-report-viewer .k-textbox input,
.trv-report-viewer .k-numerictextbox input,
.trv-report-viewer input.k-input {
    color: #333 !important;
    background-color: #fff !important;
    -webkit-text-fill-color: #333 !important;
}

.trv-report-viewer .trv-nav-page-x {
    color: #333 !important;
}

/* The toolbar's "Page" number input was overflowing its own .k-numerictextbox
   wrapper: the <input> computed to ~206px wide while its visible wrapper is only
   ~56px, and because the text is right-aligned the current page number ("1") was
   pushed ~150px past the wrapper's right edge — outside the visible box — so the
   Page field looked empty even though it held the correct value. Confirmed via
   DevTools: constraining the input to fill its wrapper restores the visible page
   number. Scoped to the report viewer's numeric page input only. */
.trv-report-viewer .k-numerictextbox input,
.trv-report-viewer input.k-input {
    width: 100% !important;
    box-sizing: border-box !important;
}
