/*
 * crst-theme.css
 * CRST Home Solutions look for the Dispatch Board, layered on Bootstrap 5.
 *  1. Brand colors as CSS variables and Bootstrap overrides (CRST charcoal and logo gold).
 *  2. Page frame: header, tabs, filter bars.
 *  3. Shared components: chips, KPI cards, stat lines, area cards.
 *  4. Dispatch Board, Need Action, maps, Find My Tech.
 * Status colors are not set here: they come from config/business-rules.json at run time.
 */

/* ------------------------------------------------------------------ 1. Brand */
:root {
  /* Compact type to match the current board (13px body text); every rem-based size scales with it. */
  font-size: 14.5px;
  /* Headings in CRST charcoal (the Bootswatch build colors them blue). */
  --bs-heading-color: var(--crst-charcoal);
  --crst-charcoal: #231f20;
  --crst-charcoal-soft: #3a3536;
  --crst-gold: #a8956f;
  --crst-gold-dark: #8a7853;
  --crst-gold-light: #d9cdb4;
  --crst-gold-pale: #f3ede1;
  --crst-line: #e3ddd2;
  --crst-muted: #6f6a66;
  --crst-late-red: #e01e1e;
  --crst-not-started-yellow: #f5c400;

  --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-body-color: var(--crst-charcoal);
  --bs-primary: var(--crst-charcoal);
  --bs-primary-rgb: 35, 31, 32;
  --bs-link-color: var(--crst-gold-dark);
  --bs-link-color-rgb: 138, 120, 83;
  --bs-link-hover-color: var(--crst-charcoal);
  --bs-border-color: var(--crst-line);
  --bs-tertiary-bg: #f6f3ee;
  --bs-tertiary-bg-rgb: 246, 243, 238;
}
.bg-crst-charcoal { background-color: var(--crst-charcoal) !important; }
.bg-crst-gold { background-color: var(--crst-gold) !important; color: #fff; }
.text-crst-gold-light { color: var(--crst-gold-light) !important; }
.text-crst-gold-dark { color: var(--crst-gold-dark) !important; }
.btn-crst-gold { --bs-btn-color: #fff; --bs-btn-bg: var(--crst-gold); --bs-btn-border-color: var(--crst-gold); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--crst-gold-dark); --bs-btn-hover-border-color: var(--crst-gold-dark); --bs-btn-active-bg: var(--crst-gold-dark); --bs-btn-active-color: #fff; --bs-btn-disabled-bg: var(--crst-gold); --bs-btn-disabled-border-color: var(--crst-gold); --bs-btn-disabled-color: #fff; }
.btn-crst-charcoal { --bs-btn-color: #fff; --bs-btn-bg: var(--crst-charcoal); --bs-btn-border-color: var(--crst-charcoal); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--crst-charcoal-soft); --bs-btn-hover-border-color: var(--crst-charcoal-soft); --bs-btn-active-bg: #000; --bs-btn-active-color: #fff; }
/* The vendored Bootstrap build adds gradients and shadows to buttons; the CRST look is flat. */
.btn { background-image: none; text-shadow: none; }
.form-check-input:checked { background-color: var(--crst-charcoal); border-color: var(--crst-charcoal); }
.progress-bar { background-color: var(--crst-gold); }
.bi { width: 1em; height: 1em; vertical-align: -0.125em; fill: currentColor; }
.min-width-0 { min-width: 0; }

/* ------------------------------------------------------------------ 2. Page frame */
.header-logo { height: 46px; width: auto; }
/* White page header, matching the current Dispatch Board: logo, title block, report status, actions. */
.page-header { background: #fff; border-bottom: 3px solid var(--crst-gold); }
.header-title-block { border-left: 1px solid var(--crst-line); padding-left: 1.1rem; }
.header-title { font-size: 1.7rem; font-weight: 700; color: var(--crst-charcoal); line-height: 1.15; }
.header-subtitle { font-size: 0.92rem; color: var(--crst-muted); }
.header-status { font-size: 0.92rem; color: var(--crst-muted); line-height: 1.45; }
.header-status b { color: var(--crst-charcoal); }
.header-button { --bs-btn-color: var(--crst-charcoal); --bs-btn-border-color: var(--crst-line); --bs-btn-hover-bg: var(--crst-gold-pale); --bs-btn-hover-color: var(--crst-charcoal); --bs-btn-hover-border-color: var(--crst-gold); font-weight: 600; }
.text-crst-gold-dark { color: var(--crst-gold-dark) !important; }
#pageHeader { z-index: 1030; }
.board-tabs .nav-link { color: var(--crst-muted); font-weight: 600; border: 0; border-bottom: 3px solid transparent; border-radius: 0; padding: 0.7rem 1rem; }
.board-tabs .nav-link:hover { color: var(--crst-charcoal); }
.board-tabs .nav-link.active { color: var(--crst-charcoal); border-bottom-color: var(--crst-gold); background: transparent; }
.filter-bar { border-bottom: 3px solid var(--crst-gold); }
.sticky-filter-bar { position: sticky; top: 56px; z-index: 1020; }
.filter-label { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--crst-gold-light); margin-bottom: 0.2rem; }
.filter-bar .form-control, .filter-bar .form-select { min-width: 180px; }
.filter-wide .multi-select-filter { min-width: 260px; }
.day-switch .btn { min-width: 98px; }
.day-switch-detail { font-size: 0.7rem; opacity: 0.8; }
.multi-select-filter { min-width: 150px; max-width: 320px; }
.multi-select-filter.has-selection > .btn { box-shadow: inset 0 0 0 2px var(--crst-gold); }
.multi-select-menu { max-height: 360px; overflow-y: auto; min-width: 100%; max-width: 440px; }
.multi-select-menu .dropdown-item { white-space: normal; }
.multi-select-menu .dropdown-item:active { background-color: var(--crst-gold-pale); color: inherit; }
.multi-select-search { min-width: 140px; }

/* ------------------------------------------------------------------ 3. Shared components */
.status-chip-row { row-gap: 0.4rem; }
.status-chip { display: inline-flex; align-items: center; gap: 0.35rem; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.08); color: inherit; border-radius: 999px; padding: 0.15rem 0.65rem; font-size: 0.8rem; }
.container-fluid .status-chip { border-color: var(--crst-line); background: #fff; }
.status-chip.is-active { background: var(--crst-gold); border-color: var(--crst-gold); color: #fff; }
.status-chip.is-dimmed { opacity: 0.45; }
.status-swatch { display: inline-block; width: 0.75rem; height: 0.75rem; border-radius: 3px; background: #ccc; }
.chip-unassigned .status-swatch { background: #fff; border: 2px dashed var(--crst-late-red); }
.chip-not-started .status-swatch { background: var(--crst-not-started-yellow); }
.chip-changed .status-swatch { background: #fff; outline: 2px dashed var(--crst-charcoal); }
.chip-rescheduled .status-swatch { background: #fff; border: 2px solid var(--crst-charcoal); }
.chip-group-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--crst-gold-light); align-self: center; }

.section-heading { font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; font-size: 1rem; color: var(--crst-charcoal) !important; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0.75rem; }
.kpi-card { border-top: 4px solid var(--crst-gold); }
.kpi-card.kpi-dark { border-top-color: var(--crst-charcoal); }
.kpi-card.kpi-warning { border-top-color: #e8a33d; background: #fffaf0; }
.kpi-card.kpi-alert { border-top-color: #c0392b; background: #fff5f4; }
.kpi-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--crst-muted); }
.kpi-value { font-size: 2rem; font-weight: 800; line-height: 1.15; margin-top: 0.15rem; }
.kpi-value small { font-size: 0.9rem; font-weight: 600; color: var(--crst-muted); }
.kpi-progress { height: 6px; margin: 0.35rem 0; }
.kpi-detail { font-size: 0.8rem; color: var(--crst-muted); }
.overview-table th, .overview-table td { white-space: nowrap; }
.overview-table tbody tr { cursor: pointer; }
.table-group-start { border-left: 2px solid var(--crst-gold-light); }

.region-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; background: #F4EFE6; color: var(--crst-charcoal); border: 1px solid var(--crst-gold); border-left: 6px solid var(--crst-gold); border-radius: 0.375rem; padding: 0.5rem 0.9rem; margin: 1.4rem 0 0.4rem; }
.region-title { font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--crst-gold-dark); }
.stat-line { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.8rem; margin-left: auto; }
.attention-flags { display: inline-flex; gap: 0.4rem; font-size: 0.78rem; }
.flag-unassigned, .flag-not-started { border-radius: 0.25rem; padding: 0.05rem 0.45rem; }
.flag-unassigned { background: #fff; color: var(--crst-late-red); border: 1px dashed var(--crst-late-red); }
.flag-not-started { background: var(--crst-not-started-yellow); color: var(--crst-charcoal); }
.category-mix-bar { display: inline-flex; width: 140px; height: 8px; border-radius: 4px; overflow: hidden; background: #eee; }
.category-mix-bar span { flex: 1 1 0; }

.area-card { border-left: 4px solid var(--crst-gold); }
.area-header { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; background: var(--crst-charcoal); color: #fff; cursor: pointer; }
.area-header .area-manager { color: #cfc8bb; }
.area-header .area-manager b, .area-header .stat-line b { color: #fff; }
.area-header .stat-line { color: #cfc8bb; }
.area-header .collapse-caret::before { color: #fff; }
.area-header .show-on-map-button.btn-outline-secondary { color: #fff !important; border-color: #8b8586 !important; background: transparent; }
.area-header .show-on-map-button.btn-outline-secondary:hover { background: rgba(255, 255, 255, 0.12); }
.area-header .text-danger { color: #ff8a80 !important; }
.area-name { font-weight: 800; font-size: 1.05rem; }
.area-manager { font-size: 0.85rem; color: var(--crst-muted); }
.collapse-caret::before { content: "\25BE"; display: inline-block; transition: transform 0.15s; color: var(--crst-gold-dark); }
.area-card.is-collapsed .collapse-caret::before { transform: rotate(-90deg); }
.area-card.is-collapsed .area-body { display: none; }
.first-file-badge { background: var(--crst-gold-pale); border: 1px solid var(--crst-gold-light); border-radius: 0.25rem; padding: 0 0.4rem; }
/* The badge sits on light backgrounds and on the dark region bar, so it sets its own text color. */
.first-file-badge { color: var(--crst-charcoal); }

/* ------------------------------------------------------------------ 4a. Dispatch Board */
.provider-section { margin-bottom: 0.9rem; }
.provider-header { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding: 0.35rem 0.25rem; border-bottom: 1px solid var(--crst-line); margin-bottom: 0.5rem; }
.installer-id { font-weight: 800; background: var(--crst-gold-pale); border-radius: 0.25rem; padding: 0 0.4rem; }
.installer-name { font-weight: 700; }
.tech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 0.6rem; }
.tech-card { background: #fff; border: 1px solid var(--crst-line); border-radius: 0.375rem; padding: 0.55rem 0.7rem; }
.tech-card.is-not-started { border: 4px solid var(--crst-not-started-yellow); box-shadow: 0 0 0 1px #d9ad00; }
.not-started-badge { background: var(--crst-not-started-yellow); color: var(--crst-charcoal); text-transform: uppercase; letter-spacing: 0.04em; }
.tech-van { position: relative; width: 68px; height: 32px; flex: none; }
.tech-van img { width: 68px; height: 32px; display: block; }
.tech-initials { position: absolute; left: 45%; top: 22%; width: 42%; height: 33%; border-radius: 3px; color: #fff; font-size: 0.6rem; font-weight: 700; display: flex; align-items: center; justify-content: center; line-height: 1; }
.tech-name { font-weight: 700; }
.tech-detail { font-size: 0.75rem; color: var(--crst-muted); }
.tech-last-window { flex: none; }
.show-on-map-button { --bs-btn-padding-y: 0.05rem; --bs-btn-font-size: 0.72rem; white-space: nowrap; }
.stop-row { display: flex; flex-wrap: wrap; gap: 0.4rem; padding-top: 0.5rem; }
.stop-slot { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.stop-slot.is-dimmed { opacity: 0.25; }
.client-code { font-size: 0.56rem; font-weight: 600; letter-spacing: 0.05em; color: var(--crst-muted); line-height: 1; }
.stop-box { width: 62px; height: 22px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 0.66rem; font-weight: 700; white-space: nowrap; overflow: hidden; cursor: pointer; background: #ccc; transition: transform 0.08s; }
.stop-box:hover, .stop-box:focus, .stop-box.is-pinned { transform: scale(1.12); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); outline: none; }
.stop-box.dark-text { color: var(--crst-charcoal); }
.stop-box.is-changed { outline: 2px dashed var(--crst-charcoal); outline-offset: 1px; }
.stop-box.is-late { border: 3px solid var(--crst-late-red); }
.stop-box.is-rescheduled { background: #fff; border: 2px solid var(--crst-charcoal); }
.late-label { font-size: 0.6rem; font-weight: 800; color: var(--crst-late-red); line-height: 1; }
.rescheduled-label { background: #fff; color: var(--crst-charcoal); padding: 0 2px; border-radius: 2px; }
.summary-not-started { background: var(--crst-not-started-yellow); padding: 0 0.3rem; border-radius: 0.2rem; }
.route-map-jump-button { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1040; }

/* ------------------------------------------------------------------ 4b. Need Action */
.need-bucket { border: 1px solid var(--crst-line); border-radius: 0.375rem; margin-bottom: 0.6rem; }
.need-bucket-header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6rem; padding: 0.35rem 0.7rem; border-bottom: 1px solid var(--crst-line); }
.need-bucket-title { font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.8rem; }
.need-bucket-pastDue .need-bucket-header { background: #fbeaea; }
.need-bucket-today .need-bucket-header { background: #e8f4ec; }
.need-bucket-upcoming .need-bucket-header { background: var(--crst-gold-pale); }
.need-bucket-noInstallDate .need-bucket-header { background: #f1f0ef; }
.need-day-columns { display: flex; gap: 0.6rem; overflow-x: auto; padding: 0.6rem; }
.need-day-column { flex: 0 0 300px; }
.need-day-header { display: flex; gap: 0.4rem; font-size: 0.8rem; border-bottom: 1px solid var(--crst-line); margin-bottom: 0.4rem; padding-bottom: 0.2rem; }
.installer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0.5rem; padding: 0.6rem; }
.installer-card { border: 1px solid var(--crst-line); border-radius: 0.375rem; padding: 0.4rem 0.55rem; margin-bottom: 0.4rem; background: #fff; }

/* ------------------------------------------------------------------ 4c. Maps */
.route-map-frame, .job-map-frame { height: 460px; background: #f4f1ea; }
.route-map-frame.is-empty { height: 0; }
.job-map-frame.is-drawing .board-map { cursor: crosshair; }
.board-map { width: 100%; height: 100%; display: block; touch-action: none; user-select: none; }
.map-state { fill: #e9e2d3; stroke: #fff; stroke-width: 0.6px; vector-effect: non-scaling-stroke; cursor: zoom-in; }
.map-state.is-focus { fill: #ddd2bc; }
.map-state-label { font-size: 11px; font-weight: 700; fill: rgba(35, 31, 32, 0.35); text-anchor: middle; pointer-events: none; }
.map-highway { fill: none; vector-effect: non-scaling-stroke; pointer-events: none; }
.map-highway-interstate { stroke: #c7a96b; stroke-width: 1.4px; }
.map-highway-us { stroke: #d8c9a6; stroke-width: 0.9px; }
.map-highway-label rect { stroke-width: 1px; }
.map-highway-label-interstate rect { fill: #2f5ea8; stroke: #fff; }
.map-highway-label-us rect { fill: #fff; stroke: var(--crst-charcoal); }
.map-highway-label text { font-size: 9px; font-weight: 700; text-anchor: middle; pointer-events: none; }
.map-highway-label-interstate text { fill: #fff; }
.map-highway-label-us text { fill: var(--crst-charcoal); }
.map-city rect { fill: #fff; stroke: var(--crst-charcoal); stroke-width: 1px; }
.map-city text { font-size: 10px; fill: var(--crst-charcoal); paint-order: stroke; stroke: #fff; stroke-width: 3px; pointer-events: none; }
.route-line { fill: none; stroke-width: 2.5px; vector-effect: non-scaling-stroke; opacity: 0.85; }
.route-stop-pin { cursor: pointer; }
.route-stop-pin circle { stroke-width: 2.5px; }
.route-stop-pin.is-pinned circle { stroke-width: 4px; }
.route-stop-number { font-size: 9px; font-weight: 800; fill: #fff; text-anchor: middle; pointer-events: none; }
.route-stop-number.dark-text { fill: var(--crst-charcoal); }
.route-stop-client { font-size: 10px; font-weight: 700; fill: var(--crst-charcoal); paint-order: stroke; stroke: #fff; stroke-width: 3px; pointer-events: none; }
.route-legend-item { display: inline-flex; align-items: center; gap: 0.35rem; border: 1px solid var(--crst-line); border-radius: 999px; padding: 0.1rem 0.5rem; }
.route-legend-line { display: inline-block; width: 18px; height: 4px; border-radius: 2px; }
.btn-close-sm { width: 0.55em; height: 0.55em; padding: 0.2em; }
.job-map-pin { cursor: pointer; }
.job-map-pin circle { stroke: #fff; stroke-width: 1.5px; }
.job-map-pin text { font-size: 10px; font-weight: 700; fill: var(--crst-charcoal); paint-order: stroke; stroke: #fff; stroke-width: 3px; pointer-events: none; }
.job-map-pin.is-in-group circle { stroke: var(--crst-charcoal); stroke-width: 3px; }
.lasso-shape { fill: rgba(168, 149, 111, 0.18); stroke: var(--crst-gold-dark); stroke-width: 2px; stroke-dasharray: 6 4; vector-effect: non-scaling-stroke; pointer-events: none; }
.pin-job-list { max-height: 260px; overflow-y: auto; }
.drawn-group-table { max-height: 320px; overflow-y: auto; }

/* ------------------------------------------------------------------ 4d. Job details popup */
.job-details-popup { position: fixed; z-index: 1080; width: 360px; max-width: calc(100vw - 16px); }
.details-table th { width: 38%; font-weight: 600; color: var(--crst-muted); }
.details-table th, .details-table td { padding: 0.15rem 0.3rem; }
.job-number-link { font-weight: 700; text-decoration: underline dotted; }
.job-number-link.copied { color: #1f7a47; }

/* ------------------------------------------------------------------ 4e. Find My Tech */
.find-my-tech-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr) 400px; gap: 0.75rem; align-items: start; }
@media (max-width: 1399.98px) { .find-my-tech-layout { grid-template-columns: 300px minmax(0, 1fr); } .find-my-tech-ranking-card { grid-column: 1 / -1; } }
@media (max-width: 991.98px) { .find-my-tech-layout { grid-template-columns: 1fr; } }
.find-my-tech-job-list { max-height: 640px; overflow-y: auto; }
.find-my-tech-job.active { background: var(--crst-gold-pale); color: inherit; border-color: var(--crst-line); box-shadow: inset 4px 0 0 var(--crst-gold); }
.find-my-tech-job.active .text-body-secondary { color: var(--crst-muted) !important; }
.client-dot { display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 50%; flex: none; }
.find-my-tech-map-frame { position: relative; background: #f7f4ee; }
.find-my-tech-map-frame .board-map { height: auto; aspect-ratio: 960 / 600; }
.map-overlay-controls { position: absolute; top: 0.6rem; right: 0.6rem; }
.map-overlay-layers { position: absolute; left: 0.6rem; bottom: 0.6rem; max-width: 260px; }
.map-hover-label { position: absolute; transform: translate(12px, -110%); background: var(--crst-charcoal); color: #fff; font-size: 0.75rem; border-radius: 0.25rem; padding: 0.2rem 0.45rem; pointer-events: none; white-space: nowrap; }
.coverage-territory { stroke: none; }
.coverage-territory:hover { filter: brightness(0.95); }
.coverage-area-edge { fill: none; stroke: #a99f8c; stroke-width: 0.8px; vector-effect: non-scaling-stroke; pointer-events: none; }
.coverage-region-edge { fill: none; stroke: var(--crst-charcoal); stroke-width: 2px; vector-effect: non-scaling-stroke; pointer-events: none; }
.coverage-territory-label { font-weight: 700; fill: #5c5348; text-anchor: middle; paint-order: stroke; stroke: #f7f4ee; pointer-events: none; }
.coverage-job-dot { stroke: #fff; cursor: pointer; }
.coverage-van use.has-skill { fill: var(--crst-gold); stroke: var(--crst-charcoal); stroke-width: 1px; }
.coverage-van use.lacks-skill { fill: #fff; stroke: #9a9083; stroke-width: 1px; }
.coverage-link { stroke-linecap: round; }
.coverage-rank-label { font-weight: 800; fill: var(--crst-charcoal); text-anchor: middle; paint-order: stroke; stroke: #fff; pointer-events: none; }
.coverage-selected-ring { fill: none; stroke: var(--crst-charcoal); }
.tier-badge.tier-readyToSend { background: #2e9e5b; }
.tier-badge.tier-missingOneThing { background: #e8a33d; color: var(--crst-charcoal); }
.tier-badge.tier-notAFit { background: #c0392b; }
.tech-ranking-card { border-left: 4px solid var(--crst-line); }
.tech-ranking-card.tier-readyToSend { border-left-color: #2e9e5b; }
.tech-ranking-card.tier-missingOneThing { border-left-color: #e8a33d; }
.tech-ranking-card.tier-notAFit { border-left-color: #c0392b; }
.ranking-checks { display: grid; grid-template-columns: 1.1rem 1fr; gap: 0.1rem 0.3rem; margin: 0.3rem 0; }
.check-passed { color: #2e9e5b; font-weight: 800; }
.check-failed { color: #c0392b; font-weight: 700; }
.weekday-strip { display: inline-flex; gap: 2px; margin-left: 0.3rem; vertical-align: middle; }
.weekday-strip span { width: 15px; height: 15px; font-size: 0.6rem; line-height: 15px; text-align: center; border-radius: 2px; background: #eee; color: #999; }
.weekday-strip span.is-open { background: #d6ecdc; color: #1f7a47; font-weight: 700; }
.weekday-strip span.is-checked-day { outline: 2px solid var(--crst-charcoal); }

/* ------------------------------------------------------------------ Sign-in screen */
.sign-in-gate { position: fixed; inset: 0; z-index: 2000; background: var(--crst-charcoal); display: flex; align-items: center; justify-content: center; }
.sign-in-gate[hidden] { display: none; }
.sign-in-card { width: min(440px, 92vw); border-top: 5px solid var(--crst-gold); }
.sign-in-logo { height: 64px; }
/* "Show all on map" when active, on the dark area header: gold so it stands out from the charcoal. */
.area-header .btn-crst-charcoal { --bs-btn-bg: var(--crst-gold); --bs-btn-border-color: var(--crst-gold); }

/* Overview table in the current board's style: charcoal heading row, gold-tinted total row, numbers right-aligned. */
.overview-table { font-size: 0.85rem; }
.overview-table thead th { background: var(--crst-charcoal); color: #fff; font-weight: 600; white-space: nowrap; }
.overview-table td, .overview-table thead th:not(:first-child) { text-align: right; }
.overview-table tfoot th, .overview-table tfoot td { background: #EFE7D7; font-weight: 700; }
