/* Weaver Technologies brand tokens - see Weaver brand standards (Montserrat primary,
   Arial fallback; primary blues #0079C2/#00A4E4; accents navy/gold/orange/red/gray).
   Kept consistent with the sibling Weaver Resourcing app's palette. */
:root {
    --navy: #1F3467;
    --blue: #0079C2;
    --blue2: #00A4E4;
    --gold: #EEBB3F;
    --orange: #F1592B;
    --red: #BF1E2C;
    --gray: #484848;
    --ink: #1A1A1A;
    --bg: #f4f6f9;
    --card: #ffffff;
    --line: #e3e8f0;
    --muted: #6b7482;
    --green: #2E9E5B;
    /* Arial is the only sanctioned fallback per brand standards - "Segoe UI" used to sneak in a
       different personality on Windows during the font-swap window. */
    --font: "Montserrat", Arial, sans-serif;
    /* Hover/active shades of --blue, used by the button re-theme below. */
    --blue-hover: #0068a8;
    --blue-active: #005a91;
    /* Light brand-blue tint for hovers/selection - keeps interactive feedback on-brand instead
       of Bootstrap's neutral gray. */
    --tint: #eef6fd;
}

/* Re-theme Bootstrap 5.3 through its own CSS variables rather than chasing individual classes
   with !important. This is what keeps .text-primary (the standard card-header style, ~100 uses),
   progress bars, pills, links, checked inputs, and pagination on Weaver blue instead of stock
   Bootstrap #0d6efd. */
:root, [data-bs-theme=light] {
    --bs-primary: var(--blue);
    --bs-primary-rgb: 0, 121, 194;
    --bs-secondary: var(--gray);
    --bs-secondary-rgb: 72, 72, 72;
    --bs-success: var(--green);
    --bs-success-rgb: 46, 158, 91;
    --bs-danger: var(--red);
    --bs-danger-rgb: 191, 30, 44;
    --bs-warning: var(--gold);
    --bs-warning-rgb: 238, 187, 63;
    --bs-info: var(--blue2);
    --bs-info-rgb: 0, 164, 228;
    --bs-link-color: var(--blue);
    --bs-link-color-rgb: 0, 121, 194;
    --bs-link-hover-color: var(--blue-hover);
    --bs-link-hover-color-rgb: 0, 104, 168;
    --bs-body-font-family: var(--font);
    --bs-body-color: var(--ink);
    --bs-body-bg: var(--bg);
    --bs-border-radius: .5rem;
}

/* Bootstrap compiles utility values at build time, so a handful of classes carry literal hex and
   need explicit overrides on top of the variables above. */
.text-primary { color: var(--blue) !important; }
.bg-primary { background-color: var(--blue) !important; }
.progress-bar { background-color: var(--blue); }
.nav-pills .nav-link.active, .nav-pills .show > .nav-link { background-color: var(--blue); }
.form-check-input:checked { background-color: var(--blue); border-color: var(--blue); }
.page-link { color: var(--blue); }
.active > .page-link, .page-link.active { background-color: var(--blue); border-color: var(--blue); }

html {
    /* The MyTracker section chips and the existing scrollIntoView interop both jump within long
       pages - easing the jump makes them read as navigation instead of teleportation. */
    scroll-behavior: smooth;
}

html, body {
    font-family: var(--font);
    background-color: var(--bg);
    color: var(--ink);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font);
    color: var(--navy);
    font-weight: 700;
}

/* Bootstrap's 2.5rem h1 towers over 11px table headers on a dense internal tool. Bring the page
   title down to something proportionate and tighten section headers to match. */
h1 {
    font-size: 1.5rem;
    letter-spacing: -0.01em;
    margin-bottom: .25rem;
}

h4, h5 {
    font-size: 1.05rem;
}

a, .btn-link {
    color: var(--blue);
}

/* ---- Bootstrap overrides so existing pages pick up the brand automatically ---- */

/* Buttons re-themed through Bootstrap 5.3's per-button variables - covers hover, active,
   focus, and disabled states in one block each, with no !important hacks. */
.btn {
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

    .btn:active {
        transform: translateY(1px);
    }

.btn-primary {
    --bs-btn-bg: var(--blue);
    --bs-btn-border-color: var(--blue);
    --bs-btn-hover-bg: var(--blue-hover);
    --bs-btn-hover-border-color: var(--blue-hover);
    --bs-btn-active-bg: var(--blue-active);
    --bs-btn-active-border-color: var(--blue-active);
    --bs-btn-disabled-bg: var(--blue);
    --bs-btn-disabled-border-color: var(--blue);
}

.btn-outline-primary {
    --bs-btn-color: var(--blue);
    --bs-btn-border-color: var(--blue);
    --bs-btn-hover-bg: var(--blue);
    --bs-btn-hover-border-color: var(--blue);
    --bs-btn-active-bg: var(--blue-active);
    --bs-btn-active-border-color: var(--blue-active);
    --bs-btn-disabled-color: var(--blue);
    --bs-btn-disabled-border-color: var(--blue);
}

.btn-outline-secondary {
    --bs-btn-color: var(--gray);
    --bs-btn-border-color: var(--line);
    --bs-btn-hover-color: var(--gray);
    --bs-btn-hover-bg: #eef2f8;
    --bs-btn-hover-border-color: var(--line);
    --bs-btn-active-color: var(--gray);
    --bs-btn-active-bg: #e3e9f2;
    --bs-btn-active-border-color: var(--line);
    --bs-btn-disabled-color: var(--muted);
    --bs-btn-disabled-border-color: var(--line);
}

.btn-outline-danger {
    --bs-btn-color: var(--red);
    --bs-btn-border-color: #f3c9cc;
    --bs-btn-hover-bg: var(--red);
    --bs-btn-hover-border-color: var(--red);
    --bs-btn-active-bg: var(--red);
    --bs-btn-active-border-color: var(--red);
    --bs-btn-disabled-color: var(--red);
    --bs-btn-disabled-border-color: #f3c9cc;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--blue2);
}

.form-control, .form-select {
    transition: border-color .15s ease, box-shadow .15s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--blue2);
}

.card {
    border: 1px solid var(--line);
    border-radius: 12px;
    transition: box-shadow .15s ease;
}

    .card-header {
        border-bottom: 1px solid var(--line);
        font-weight: 700;
    }

.table thead th, table thead th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--muted);
    font-weight: 700;
    border-bottom-width: 2px;
}

/* Long lists (Service Board list view, Companies, Audit Trail...) keep their headers while
   scrolling. Safe with the page as the scroll container since there's no fixed top bar; the
   box-shadow stands in for the border, which sticky headers otherwise scroll away from. */
.table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: var(--card);
    box-shadow: inset 0 -2px 0 var(--line);
}

/* Row-click navigation used to be an invisible inline cursor swap. One shared class gives every
   clickable list row a pointer plus a brand-tint hover so "you can open this" is discoverable. */
.row-clickable {
    cursor: pointer;
    transition: background-color .12s ease;
}

    .row-clickable:hover {
        background-color: var(--tint);
    }

/* Sortable column headers - same idea: make the affordance visible on hover. */
.th-sortable {
    cursor: pointer;
    user-select: none;
    transition: color .12s ease;
}

    .th-sortable:hover {
        color: var(--blue);
    }

/* Brand-blue hover tint for hoverable tables instead of Bootstrap's neutral gray. */
.table-hover > tbody > tr:hover > * {
    --bs-table-bg-state: var(--tint);
}

.nav-tabs .nav-link.active {
    color: var(--blue);
    border-color: var(--line) var(--line) #fff;
    font-weight: 700;
}

.badge.bg-success { background-color: var(--green) !important; }
.badge.bg-secondary { background-color: var(--muted) !important; }
.badge.bg-danger { background-color: var(--red) !important; }
.badge.bg-warning { background-color: var(--gold) !important; color: var(--ink) !important; }

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ---- KPI tiles (Home dashboard + Reporting + board health rows) ---- */
.kpis {
    display: grid;
    /* auto-fit, not a fixed 4: tiles wrap gracefully on narrow windows instead of crushing. */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.kpi {
    border-left: 4px solid var(--blue);
}

    .kpi.k2 { border-left-color: var(--gold); }
    .kpi.k3 { border-left-color: var(--orange); }
    .kpi.k4 { border-left-color: var(--navy); }

    .kpi .kpi-value {
        font-size: 28px;
        font-weight: 800;
        color: var(--navy);
    }

    .kpi .kpi-label {
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: .04em;
        color: var(--muted);
        font-weight: 700;
    }

    /* Denser rows (board health strips, PM summary) use the same tile anatomy at a smaller
       scale, so the whole app shares one KPI idiom. */
    .kpi .kpi-value-sm, .kpi-value-sm {
        font-size: 20px;
        font-weight: 800;
        color: var(--navy);
    }

/* ---- Services Scoreboard progress bar (Home) - bullet-chart style: darker fill = Actual
   achieved so far, lighter track = remaining to Goal, tick marks = Planned/Goal reference
   points. ---- */
.scoreboard-bar-track {
    position: relative;
    height: 22px;
    background-color: var(--line);
    border-radius: 4px;
    overflow: visible;
}

.scoreboard-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: var(--blue);
    border-radius: 4px 0 0 4px;
    transition: width 0.3s ease;
}

.scoreboard-bar-marker {
    position: absolute;
    top: -4px;
    bottom: -4px;
    width: 0;
    border-left: 3px solid var(--navy);
    transform: translateX(-1.5px);
}

    .scoreboard-bar-marker.planned {
        border-left: 3px dashed var(--gold);
    }

    .scoreboard-bar-marker.goal {
        border-left: 3px solid var(--navy);
    }

.scoreboard-legend-swatch {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    margin-right: 4px;
    vertical-align: middle;
}

.scoreboard-legend-tick {
    display: inline-block;
    width: 0;
    height: 12px;
    border-left: 3px solid var(--navy);
    margin-right: 6px;
    vertical-align: middle;
}

/* ---- Gantt timeline (Project Detail) ---- */
.gantt-axis {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-bottom: 6px;
}

.gantt {
    position: relative;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 4px 0;
}

.gantt-row {
    position: relative;
    height: 34px;
}

.gantt-bar {
    position: absolute;
    top: 4px;
    height: 26px;
    min-width: 2%;
    border-radius: 6px;
    background-color: var(--blue);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    padding: 0 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 1px 2px rgba(0,0,0,.15);
}

    .gantt-bar.is-overdue {
        background-color: var(--red);
    }

    .gantt-bar.is-complete {
        background-color: var(--green);
    }

.gantt-today-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--orange);
    z-index: 2;
}

.gantt-legend-swatch {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    margin-right: 4px;
    vertical-align: middle;
}

/* Milestone callout - a flag glyph above the row plus a thin line dropping through the
   bar height, so an "invoice the phase" style task is visible right on the timeline. */
.gantt-milestone {
    position: absolute;
    top: -14px;
    transform: translateX(-50%);
    font-size: 14px;
    line-height: 1;
    z-index: 3;
    cursor: default;
}

    .gantt-milestone::after {
        content: "";
        position: absolute;
        top: 16px;
        left: 50%;
        width: 2px;
        height: 26px;
        background-color: var(--gold);
        transform: translateX(-50%);
    }

/* ---- Schedule board ---- */
.sched-scroll {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.sched-grid {
    display: grid;
    grid-template-columns: 200px repeat(28, 34px);
    width: max-content;
    font-size: 12px;
}

.sched-corner, .sched-dayhdr {
    position: sticky;
    top: 0;
    background-color: var(--card);
    border-bottom: 2px solid var(--line);
    padding: 4px 2px;
    text-align: center;
    font-size: 10px;
    color: var(--muted);
    font-weight: 700;
    z-index: 1;
}

.sched-corner {
    text-align: left;
    padding-left: 8px;
    z-index: 2;
}

.sched-dayhdr.we {
    background-color: #f4f6f9;
}

/* Today callout: red date text on the header, plus a light-grey translucent band running down
   the whole column (header + every row) so today reads at a glance across the full grid. */
.sched-dayhdr.today {
    color: var(--red);
    background-color: rgba(0, 0, 0, 0.06);
}

.sched-daycell.today {
    background-color: rgba(0, 0, 0, 0.06);
}

    .sched-daycell.today:hover {
        background-color: rgba(0, 0, 0, 0.1);
    }

.sched-depthdr {
    grid-column: 1 / -1;
    background-color: #eef2f8;
    font-weight: 700;
    font-size: 11px;
    padding: 4px 8px;
    color: var(--navy);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.sched-rescell {
    padding: 6px 8px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    background-color: var(--card);
    position: sticky;
    left: 0;
    z-index: 1;
}

.sched-daycell {
    border-bottom: 1px solid var(--line);
    border-left: 1px solid #f0f2f6;
    min-height: 30px;
    cursor: pointer;
}

    .sched-daycell.we {
        background-color: #f9fafc;
    }

    .sched-daycell:hover {
        background-color: #eef6fd;
    }

.sched-book {
    margin: 2px;
    border-radius: 4px;
    border-left: 3px solid;
    padding: 2px 4px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    height: calc(100% - 4px);
    display: flex;
    align-items: center;
}

.sched-legend-swatch {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    margin-right: 4px;
    vertical-align: middle;
    border-left: 3px solid;
}

/* ---- Resourcing Gantt ---- */
.rgantt-name {
    width: 150px;
    flex: 0 0 auto;
    font-size: 11px;
}

/* ---- Bonus Tracker roster ---- */
.bonus-icon-badge {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bonus-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #eef2f8;
    color: var(--navy);
    font-weight: 800;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bonus-roster-card {
    transition: border-color .15s, box-shadow .15s;
}

    .bonus-roster-card:hover {
        border-color: var(--blue);
        box-shadow: 0 0 0 1px var(--blue);
    }

.rgantt-track {
    position: relative;
    flex: 1 1 auto;
    height: 20px;
    background-color: #eef1f6;
    border-radius: 5px;
}

.rgantt-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    border-radius: 5px;
    border-left: 3px solid;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 5px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* KPI tile/chip click-through, used on My Workbench, AE View, Service Board, and the Project
   Board. Kept global (rather than a per-page .razor.css) since Blazor's CSS isolation scopes
   .razor.css rules to the component that defines them - a copy living only in AccountManagerView
   .razor.css never actually applied on Service Board or here, even though the class name was
   already in use there. */
.kpi-clickable {
    cursor: pointer;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.kpi-clickable:hover {
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* ================= Facelift additions (2026-08) ================= */

/* ---- Sub-navigation tab strip (Reporting section + My Workbench tabs) ----
   Replaces the copy-pasted rows of gray outline buttons with a disabled blue button standing in
   for "active". Rendered by the shared ReportingNav / WorkbenchNav components. */
.subnav {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    border-bottom: 2px solid var(--line);
    margin-bottom: 1rem;
}

    .subnav a, .subnav .subnav-active {
        padding: .45rem .8rem;
        font-size: .85rem;
        font-weight: 600;
        color: var(--muted);
        border-radius: 8px 8px 0 0;
        text-decoration: none;
        border-bottom: 2px solid transparent;
        margin-bottom: -2px;
        transition: color .12s ease, background-color .12s ease;
        white-space: nowrap;
    }

        .subnav a:hover {
            color: var(--blue);
            background-color: var(--tint);
        }

    .subnav .subnav-active {
        color: var(--blue);
        border-bottom-color: var(--blue);
    }

/* ---- Section chip-nav (My Tracker wayfinding) ---- */
.section-chips {
    position: sticky;
    top: 0;
    z-index: 5;
    background-color: var(--bg);
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    padding: .5rem 0;
    margin-bottom: .5rem;
}

    .section-chips button, .section-chips a {
        border: 1px solid var(--line);
        background-color: var(--card);
        color: var(--gray);
        border-radius: 999px;
        padding: .2rem .7rem;
        font-size: .78rem;
        font-weight: 600;
        text-decoration: none;
        transition: color .12s ease, border-color .12s ease, background-color .12s ease;
    }

        .section-chips button:hover, .section-chips a:hover {
            color: var(--blue);
            border-color: var(--blue);
            background-color: var(--tint);
        }

/* Anchored sections land just below the sticky chip bar instead of underneath it. */
.section-anchor {
    scroll-margin-top: 64px;
}

/* ---- Loading skeletons ----
   Pages render Bootstrap 5.3 placeholder-glow blocks instead of a bare "Loading..." line, so
   the incoming layout is sketched before the data lands and content stops slamming in. */
.skeleton-block {
    min-height: 120px;
}

.skeleton-tall {
    min-height: 240px;
}

/* ---- Empty states - same copy, designed clothes ---- */
.empty-state {
    text-align: center;
    padding: 2.25rem 1rem;
    color: var(--muted);
    background-color: #f9fafc;
    border: 1px dashed var(--line);
    border-radius: 10px;
    font-style: normal;
}

    .empty-state em {
        font-style: normal;
    }

/* ---- Shared utilities replacing repeated inline styles ---- */
.color-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    vertical-align: middle;
}

.filter-w-sm { min-width: 160px; }
.filter-w-md { min-width: 200px; }
.filter-w-lg { min-width: 220px; }

.form-panel {
    max-width: 960px;
}

.tabular-nums {
    font-variant-numeric: tabular-nums;
}

/* ---- Ticket preview drawer (Service Board) ---- */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(26, 26, 26, .35);
    z-index: 1040;
    animation: fadeIn .18s ease;
}

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 380px;
    max-width: 92vw;
    background-color: #fff;
    box-shadow: -6px 0 24px rgba(0, 0, 0, .12);
    z-index: 1050;
    overflow-y: auto;
    padding: 1rem;
    animation: drawerIn .18s ease;
}

@keyframes drawerIn {
    from { transform: translateX(24px); opacity: 0; }
    to { transform: none; opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ---- Kanban board (Service Board card view) ---- */
.kanban {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: .5rem;
    align-items: flex-start;
}

.kanban-col {
    min-width: 280px;
    flex: 1;
    background-color: #eef2f8;
    border-radius: 12px;
    padding: .5rem;
    max-height: calc(100vh - 220px);
    display: flex;
    flex-direction: column;
}

.kanban-col-hdr {
    position: sticky;
    top: 0;
    background-color: inherit;
    padding: .35rem .5rem;
    z-index: 1;
}

.kanban-col-body {
    overflow-y: auto;
    min-height: 40px;
}

/* ---- Timesheet week grid ---- */
.ts-weekend {
    background-color: #f9fafc;
}

.ts-today {
    background-color: var(--tint);
}

/* ---- Toolbar row (Schedule controls + legend) ---- */
.toolbar-card {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
}

/* ---- Accessibility: honor reduced-motion preferences across everything above ---- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}
