/* The crew's Schedule (board/crew.js, photos/), rebuilt as the design's SchedulePage (design replica, Oct 23, 2026): its
   page header, switch, current-stop card, All stops and empty states are the shared .ds-* pieces in styles.css. This file
   holds only the Hub's own extras on it (the Updated line, Load the truck's ticks, Finished recently, Report / Ask, a
   picked stop) and the photo buttons, which Follow-ups draws too (it loads this file). Loaded after styles.css, so a
   rule here wins over the same rule there. Colours only from the tokens in styles.css. */

/* ---------- Moved from styles.css (Oct 21, 2026): only this area draws these, so they load with it (js/screen-css.js). ---------- */
.st-who { font-size: .875rem; color: var(--text-3); }

/* ---------- The page: the design's gaps (the Hub's older .screen.cs rule would make them 16 px on a computer) ---------- */
.screen.ds-page.cs { gap: 22px; }
@media (max-width: 899px) { .screen.ds-page.cs { gap: 16px; } }

/* ---------- The day switch with "Updated 7:38 AM" at its right; on a phone the line sits under it ---------- */
.cs-tabs { display: flex; align-items: center; gap: 12px; }
@media (max-width: 599px) {
  .cs-tabs { flex-wrap: wrap; row-gap: 8px; }
  .cs-tabs .fresh { flex: 1 1 100%; justify-content: flex-start; text-align: left; font-size: .8125rem; }
}

/* ---------- The current stop: the design's 16 px pin and arrow; the job type, the last day and 811 as small badges ---------- */
.ds-current-stop .ic { width: 16px; height: 16px; }
.ds-current-stop .ds-button--primary .ic { width: 17px; height: 17px; }
.cs-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.ds-current-stop .ds-stat-pair strong { overflow-wrap: anywhere; }
.ds-current-stop .photos-row { margin: 0 0 14px; }

/* ---------- All stops: each stop is a button (a tap shows it); the one showing is marked ---------- */
button.ds-stop-row { width: 100%; padding: 0; border-right: 0; border-bottom: 0; border-left: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
button.ds-stop-row[aria-current] strong { color: var(--link); }
.ds-stop-row > .ic { width: 24px; height: 24px; }
.ds-stop-row .ds-badge { margin-top: 4px; }

/* ---------- Today's work: the saved line under Save note ---------- */
.cs-day-status { margin: 10px 0 0; font-size: .8125rem; }
.cs-day-status:empty { display: none; }

/* ---------- Load the truck: a tick box on each row ---------- */
.cs-rows { list-style: none; margin: 0; padding: 0; }
.cs-rows li { border-top: 1px solid var(--border); }
.cs-tick { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 4px 0; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.cs-box { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border: 2px solid var(--border-strong); border-radius: 7px; }
.cs-box .ic { display: none; width: 14px; height: 14px; stroke-width: 3; }
.cs-tick[aria-pressed="true"] .cs-box { border-color: var(--cta); background: var(--cta); color: var(--on-cta); }
.cs-tick[aria-pressed="true"] .cs-box .ic { display: block; }
.cs-tick .qty { flex: none; min-width: 28px; font: 800 1.25rem/1 var(--rt-cond); letter-spacing: -.03em; color: var(--link); }
.cs-rn { font-size: .9375rem; line-height: 1.3; overflow-wrap: anywhere; }

/* ---------- Later: the read-only rows; the Map pin quiet at the right, the 811 badge in its own colour ---------- */
.later .short-day h3 { margin: 14px 0 0; }
.later .ds-compact-row { padding: 8px 0; }
.later .ds-compact-row > div { gap: 2px; }
.later .ds-compact-row .ds-badge--red { margin-top: 4px; color: var(--rt-bad); }
.later .ds-compact-row .ib { color: var(--text-2); }
.later .ds-card .ds-empty-state { min-height: 160px; }

/* ---------- Report a problem and Ask for a change, side by side ---------- */
.cs-asks { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.cs-asks .sec { gap: 0; }
.cs-asks .btn .ic { display: none; }

/* ---------- Finished recently: a quiet fold in the right column ---------- */
.cs .cs-finished { border: 1px solid var(--ds-line); border-radius: var(--ds-radius); background: var(--surface); }
.cs .cs-finished > .more-s { padding: 0 14px; }
.cs .cs-finished .more-b { padding: 0 6px 10px; }
.cs .cs-finished .list { display: flex; flex-direction: column; border: 0; border-radius: 0; background: none; }
.cs .cs-finished .li { padding: 10px 8px; border-top: 1px solid var(--border); }
.cs .cs-finished .li:first-child { border-top: 0; }
.cs .cs-finished .li .av { display: none; }
.cs .cs-finished .btn.full { margin: 6px 8px 0; width: calc(100% - 16px); }

/* ---------- The photo buttons (here and on Follow-ups): a camera and one word, side by side, big enough for a gloved thumb ---------- */
.cs .photos-row .acts .btn.small { min-height: 56px; border: 1.5px solid var(--border-strong); }
.cs .photos-row .meta { font-size: .8125rem; color: var(--text-2); }
.photos-row .photo-add { flex: 1 1 0; justify-content: center; gap: 8px; min-height: 56px; font-size: 1.0625rem; }
.photos-row .photo-add .ic { width: 22px; height: 22px; }

/* The menu's own initials (app.js), drawn on this screen's sheet. */
.ah-me .side-av.ah-av { font: 700 .9375rem/1 var(--rt-body); }

