/* 2026-10-31 REVENUE COLLECTION — the cashiers' pages (cashiers.js). Colours from the dashboard's own tokens (core/dashboard.css), so the
   pages follow the light and the dark look. The states: green at the point, amber outside it, red late / did not come, grey not started, blue finished. */
:root { --cs-ok: #067647; --cs-ok-bg: #dcfae6; --cs-warn: #b54708; --cs-warn-bg: #fef0c7; --cs-bad: #b42318; --cs-bad-bg: #fee4e2; --cs-blue: #175cd3; --cs-blue-bg: #d1e9ff;
  --cs-grey: #475467; --cs-grey-bg: #eaecf0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --cs-ok: #75e0a7; --cs-ok-bg: #0f3a25; --cs-warn: #fec84b; --cs-warn-bg: #3d2a05; --cs-bad: #fda29b; --cs-bad-bg: #4a1410;
  --cs-blue: #84caff; --cs-blue-bg: #102a56; --cs-grey: #c4ccd6; --cs-grey-bg: #2a2f36; } }
:root[data-theme="dark"] { --cs-ok: #75e0a7; --cs-ok-bg: #0f3a25; --cs-warn: #fec84b; --cs-warn-bg: #3d2a05; --cs-bad: #fda29b; --cs-bad-bg: #4a1410;
  --cs-blue: #84caff; --cs-blue-bg: #102a56; --cs-grey: #c4ccd6; --cs-grey-bg: #2a2f36; }

.cs-h { margin: 0; }
/* the live board: a count per state (a click shows only those), the map beside the list */
.cs-states { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.cs-state { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; font: inherit; cursor: pointer; border-radius: 12px; padding: 10px 14px;
  border: 1px solid var(--line); border-left: 5px solid var(--cs-c); background: var(--card); color: var(--ink); }
.cs-state b { font-size: 28px; line-height: 1.1; color: var(--cs-c); font-variant-numeric: tabular-nums; }
.cs-state span { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.cs-state.on { background: var(--cs-bg); box-shadow: 0 0 0 2px var(--cs-c) inset; }
.cs-state:focus-visible { outline: 2px solid var(--cs-c); outline-offset: 2px; }
.cs-ok { --cs-c: var(--cs-ok); --cs-bg: var(--cs-ok-bg); } .cs-warn { --cs-c: var(--cs-warn); --cs-bg: var(--cs-warn-bg); } .cs-bad { --cs-c: var(--cs-bad); --cs-bg: var(--cs-bad-bg); }
.cs-blue { --cs-c: var(--cs-blue); --cs-bg: var(--cs-blue-bg); } .cs-grey { --cs-c: var(--cs-grey); --cs-bg: var(--cs-grey-bg); }
.cs-two { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 14px; align-items: start; }
.cs-two.cs-live { grid-template-columns: minmax(0, 1fr) 380px; }   /* the list is what the supervisor reads; the map beside it */
.cs-kpis .tile .v { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-kpis .tile.hero .v { font-size: 26px; }
.cs-table td b { white-space: nowrap; }
#clList .cs-table td:nth-child(3), #clList .cs-table td:nth-child(4) { white-space: nowrap; }
.cs-map { height: 520px; border-radius: 10px; }
.cs-mapcard { padding: 10px; }
.cs-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--ink-2); padding: 8px 4px 0; }
.cs-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--line); }
.cs-legend i.ring { background: transparent; border: 2px dashed var(--ink-2); box-shadow: none; }
.cs-money { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.cs-money div { display: flex; flex-direction: column; }
.cs-money span { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.cs-money b { font-size: 20px; font-variant-numeric: tabular-nums; }
.cs-money div:first-child b { color: var(--good-ink, var(--cs-ok)); }
/* the tables */
.cs-table tbody tr[data-i] { cursor: pointer; }
.cs-table tbody tr[data-i]:hover td { background: var(--page); }
.cs-pill { display: inline-block; white-space: nowrap; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 99px; color: var(--cs-c); background: var(--cs-bg); }
.cs-late { font-size: 11.5px; font-weight: 700; color: var(--cs-bad); }
.cs-flags span { display: inline-block; margin: 0 4px 3px 0; font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 6px; color: var(--cs-bad); background: var(--cs-bad-bg); }
td.cs-bad { color: var(--cs-bad); font-weight: 700; } td.cs-warn { color: var(--cs-warn); font-weight: 700; }
tr.cs-total td { font-weight: 700; border-top: 2px solid var(--axis); background: var(--page); }
tr.cs-off td { opacity: 0.55; }
.cs-bar { display: inline-block; width: 54px; height: 7px; border-radius: 4px; background: var(--line); margin-right: 7px; vertical-align: 1px; overflow: hidden; }
.cs-bar i { display: block; height: 100%; background: var(--cs-ok); }
/* the report's figures */
.cs-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.cs-kpis .tile .v { font-size: 28px; font-variant-numeric: tabular-nums; }
.cs-kpis .cs-k-bad { border-left: 5px solid var(--cs-bad); } .cs-kpis .cs-k-bad .v { color: var(--cs-bad); }
.cs-kpis .cs-k-warn { border-left: 5px solid var(--cs-warn); } .cs-kpis .cs-k-warn .v { color: var(--cs-warn); }
.cs-tabs { margin-bottom: 12px; }
/* the timetable's week */
.cs-week th, .cs-week td { min-width: 118px; }
.cs-week td:first-child, .cs-week th:first-child { min-width: 170px; }
.cs-week .cs-today { background: var(--page); }
.cs-slot { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; background: var(--cs-blue-bg); color: var(--ink); border-radius: 7px; padding: 4px 6px 4px 8px; margin-bottom: 4px; font-size: 12px; }
.cs-slot b { flex: 1 1 100%; color: var(--cs-blue); font-size: 12px; }
.cs-slot span { flex: 1; font-variant-numeric: tabular-nums; }
.cs-slot button { border: 0; background: none; color: var(--ink-2); font-size: 15px; line-height: 1; cursor: pointer; padding: 0 2px; }
.cs-slot button:hover { color: var(--cs-bad); }
.cs-actions { margin: 10px 0 0; }
#csGrace input { flex: 0 0 80px; width: 80px; }
.cs-form { align-items: flex-end; }
.cs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.cs-grid input, .cs-grid select { width: 100%; box-sizing: border-box; }
.cs-formbtns { grid-column: 1 / -1; display: flex; gap: 8px; }
@media (max-width: 1100px) { .cs-two, .cs-two.cs-live { grid-template-columns: 1fr; } .cs-map { height: 380px; } }
@media (max-width: 560px) { .cs-grid { grid-template-columns: 1fr; } .cs-state b { font-size: 24px; } }
/* 2026-11-01 the day's sign-off (the BRPO / AFO / Area Manager) and top management's Areas side by side */
.cs-review { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 10px 14px; border-radius: 10px;
  border-left: 5px solid var(--cs-c); background: var(--cs-bg); color: var(--ink); }
.cs-review a { color: var(--cs-c); font-weight: 600; }
.cs-rv-ok { --cs-c: var(--cs-ok); --cs-bg: var(--cs-ok-bg); } .cs-rv-no { --cs-c: var(--cs-warn); --cs-bg: var(--cs-warn-bg); }
.cs-table tr.cs-click { cursor: pointer; } .cs-table tr.cs-click:hover td { background: var(--cs-blue-bg); }
/* 2026-11-01 how a session came about; the GRM exercises */
.cs-mode { font-size: 11.5px; font-weight: 600; color: var(--cs-blue); } .cs-mode.grm { color: var(--cs-warn); }
.cs-grm { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.cs-grm-h { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.cs-grm-k { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; } .cs-grm-k b { font-variant-numeric: tabular-nums; }
.cs-wide { grid-column: 1 / -1; } .cs-pick { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.cs-poolgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 12px; max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.cs-grid input[type=checkbox], .cs-grid input[type=radio] { width: auto; flex: none; }
.cs-poolgrid label.check, .cs-pick label.check { flex-direction: row; justify-content: flex-start; align-items: center; text-align: left; font-weight: 400; }

/* 2026-11-08 communities and zones: the form's wide rows, the contacts, the announcement on a timetable slot, the report's new cells */
.cs-wide { grid-column: 1 / -1; }
.cs-office { grid-column: 1 / -1; }
.cs-wide select[multiple] { width: 100%; min-height: 120px; font: inherit; font-size: 13px; }
.cs-contacts .rec-tools { margin-bottom: 6px; }
.cs-crow { display: grid; grid-template-columns: 150px 1fr 140px 28px; gap: 6px; margin-bottom: 6px; }
.cs-crow select, .cs-crow input { font: inherit; font-size: 13px; padding: 5px 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--ink); min-width: 0; }
.cs-crow .cc-x { border: 0; background: none; color: var(--ink-2); font-size: 16px; cursor: pointer; }
.cs-crow .cc-x:hover { color: var(--cs-bad); }
.cs-contact { font-size: 12.5px; line-height: 1.35; }
.cs-contact a { color: var(--cs-blue); text-decoration: none; font-weight: 600; margin-left: 4px; white-space: nowrap; }
.cs-com td { vertical-align: top; }
.cs-no { color: var(--cs-bad); font-weight: 600; font-size: 12px; }
.cs-slot.ann { background: var(--cs-ok-bg); }
.cs-slot.ann b { color: var(--cs-ok); }
.cs-slot .cs-annb { font-size: 13px; opacity: .45; }
.cs-slot.ann .cs-annb { opacity: 1; }
.cs-slot .cs-team { font-style: normal; color: var(--cs-warn); font-size: 13px; }
.cs-howsel { font: inherit; font-size: 11.5px; max-width: 100%; }
.cs-ann { font-size: 12.5px; white-space: nowrap; }
.cs-flags .cs-note { color: var(--cs-blue); background: var(--cs-blue-bg); }
@media (max-width: 700px) { .cs-crow { grid-template-columns: 1fr 1fr; } }
/* 2026-11-12 the receipt book check (numbers that disagree) and the points not placed yet (under the maps) */
div.cs-bad, b.cs-bad, .sub.cs-bad { color: var(--cs-bad); font-weight: 600; }
div.cs-warn, .sub.cs-warn { color: var(--cs-warn); }
#clLegend .cs-warn, #cgUnplaced { flex-basis: 100%; margin-top: 4px; }
/* 2026-11-21 v2.5.0 the receipt books */
.bk-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-top: 8px; }
.bk-tile { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--card); cursor: pointer; text-align: left; font: inherit; color: inherit; }
.bk-tile b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.bk-tile span { font-size: 12.5px; color: var(--muted); }
.bk-tile.on { outline: 2px solid var(--accent); }
.bk-tile.bad b { color: #b42318; }
.bk-use { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--line); min-width: 90px; }
.bk-use i { display: block; height: 100%; }
.bk-ok { color: #067647; font-weight: 700; } .bk-no { color: #b42318; font-weight: 700; }
.bk-flag { border-left: 4px solid #f79009; padding: 8px 10px; margin: 6px 0; background: var(--page); border-radius: 6px; }
.bk-flag.severe { border-left-color: #b42318; }
.bk-flag .bk-fh { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.bk-flag .bk-fh b { font-size: 14.5px; }
.bk-flag .sub { margin: 2px 0; }
.bk-acts { display: flex; flex-wrap: wrap; gap: 4px; }
.bk-acts .btn { padding: 3px 8px; font-size: 12.5px; }
.bk-ph { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.bk-ph figure { margin: 0; width: 150px; } .bk-ph img { width: 150px; height: 112px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); cursor: zoom-in; }
.bk-ph figcaption { font-size: 12px; line-height: 1.3; margin-top: 2px; }
.ocr-MATCH { color: #067647; font-weight: 600; } .ocr-DIFFERENT { color: #b42318; font-weight: 700; } .ocr-UNREAD { color: #b54708; }
/* robust stage 12A: readable in the dark */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bk-ok { color: #75e0a7; } :root:not([data-theme="light"]) .bk-no { color: #fda29b; } }
:root[data-theme="dark"] .bk-ok { color: #75e0a7; }
:root[data-theme="dark"] .bk-no { color: #fda29b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bk-tile.bad b { color: #fda29b; } }
:root[data-theme="dark"] .bk-tile.bad b { color: #fda29b; }
