/* scorecard.css - the Overview v3 (scorecard.js, 097; Tom 2026-10-18: "world class ... open their phone and just understand everything very
   quickly"). Every line is the shared drill (ux.css: SNS.drill); this file only adds what lives inside it: the top 10 items, the people who
   worked OT, the labor headline's unit, the To do line, and Savings' items in the drill's look. Colours (Q7): green better, red worse, grey
   zero, amber "needs a look" - the tokens of styles.css; sizes in rem. */
.ov.ov3 { max-width: none; }                                        /* U20: the page's width is .screen's (ux.css), one for every data page */
.ov .ux-box { margin-bottom: 8px; }
.ov .ux-box > h2 { margin-top: 18px; }
.ov .ux-box:first-child > h2, .ov #ov-num > .ux-box:first-child > h2 { margin-top: 6px; }

/* the To do line (the "Assigned to you" block was To do twice): one tap to the list */
.ov-todo { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; margin: 2px 0 6px; border-radius: 99px; background: var(--surface-2);
  color: var(--ink); text-decoration: none; font-size: 1rem; font-weight: 600; width: fit-content; max-width: 100%; }
.ov-todo b { display: inline-grid; place-items: center; min-width: 1.75rem; height: 1.75rem; padding: 0 6px; border-radius: 99px; background: var(--red-btn); color: #fff; font-size: .875rem; }
.ov-todo span { color: var(--red); font-weight: 800; }
.ov-todo:hover { background: var(--line); }
.ov-todo:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* the numbers: a unit or a word beside the big number stays small; the labor headline takes its colour */
.ov-unit { font-family: var(--body); font-size: .8125rem; font-weight: 700; color: var(--muted); }
/* the labor lead's colours live in ux.css (.ux-lead: SNS.nodes.labor, the Labor page's too) */
/* a labor line: the two numbers under the headline wrap as a pair, never clipped */
#ux-labor .ux-v small { white-space: normal; font-size: .875rem; }


/* the Stores | Departments switch: a 44 px target on the phone (ux.css draws it 40 px) */
.ov .ux-way button { min-height: 44px; }

/* the small label over a list inside a line */
.ov-h { margin: 12px 2px 4px; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* the top 10 items (Q5): rank · the item (size, units) · its sales; each one a tap to the item */
.ov-top ol { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.ov-top li + li { border-top: 1px solid var(--line); }
/* 172: a family's varieties under the row */
.ov-top .ov-fam { margin: 0 12px 6px 2.5rem; }
.ov-top .ov-fam > summary { min-height: 36px; display: flex; align-items: center; font-size: var(--fs-sm); color: var(--ink); text-decoration: underline; cursor: pointer; }
.ov-top .ov-fam ul { list-style: none; margin: 0; padding: 0; }
.ov-top .ov-fam li { border-top: 1px dashed var(--line); }
.ov-top .ov-fam a { grid-template-columns: minmax(0, 1fr) auto; min-height: 40px; padding: 4px 0; font-size: var(--fs-sm); }
.ov-top a { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr) auto; column-gap: 10px; align-items: center; min-height: 48px; padding: 8px 12px; color: inherit; text-decoration: none; }
.ov-top a:hover .ov-nm b, .ov-top a:active .ov-nm b { color: var(--red); }
.ov-top a:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }
.ov-i { font-size: .8125rem; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.ov-nm { min-width: 0; }
.ov-nm b { display: block; font-weight: 700; font-size: .9375rem; overflow-wrap: anywhere; }
.ov-nm small { display: block; font-size: .78rem; color: var(--muted); overflow-wrap: anywhere; }
.ov-vv { font-family: var(--display); font-weight: 800; font-size: 1rem; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* who worked overtime (names for the roles 088 allows; the count for everyone else) */
.ov-ppl { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 0 12px 4px; margin-top: 6px; }
.ov-ppl .ov-h { margin: 10px 0 2px; }
.ov-p { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; min-height: 40px; border-top: 1px dashed var(--line); font-size: .9375rem; }
.ov-p:first-of-type { border-top: 0; }
.ov-p span:first-child { overflow-wrap: anywhere; }
.ov-p-h { color: var(--muted); font-variant-numeric: tabular-nums; }
.ov-p b { color: var(--bad); font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ov-ppl-n { margin: 6px 2px; font-size: .875rem; color: var(--muted); }

/* GP's two Company lines (half so far, last 4 weeks) sit together */
#ux-gp .ux-n.d0 + .ux-n.d0 { margin-top: 8px; }

/* Savings and Negative cost: the one component's items (focus.css's .fx-item, its buttons) inside the drill's lines */
.ov .ux-kids .fx-items { margin-top: 6px; }
.ov .ux-kids .fx-item { border-radius: var(--radius); }
.ov .ux-kids .fx-assign-all { margin: 8px 0 4px; }
.ov .ux-kids .fx-item .btn { min-height: 40px; }
@media (max-width: 599px) { .ov .ux-kids .fx-item .fx-i-acts .btn { flex: 1 1 auto; } }

/* the Store page: the same page on one store */
.ov-store .ux-box > h2 { margin-top: 18px; }

@media print { .ov-todo { display: none; } .ov-top ol, .ov-ppl { break-inside: avoid; } }

/* kept from 087: the Savings box's "Assign all to the store managers" sheet (savings.js) and its quiet words */
.sc-none { font-size: .875rem; color: var(--muted); margin: 6px 0; }
.sv-plan { margin: 6px 0 14px; padding-left: 1.2em; }
.sv-plan li { margin: 4px 0; overflow-wrap: anywhere; }
.sv-noone { color: var(--muted); }
.fx-theirs { color: var(--muted); font-weight: 500; }

/* ==== from uc.css (2026-10-24): uc.css loads with its page now (pages.js); these of its rules also style what the shell or other
   pages draw, so they load with the first paint, at the end of scorecard.css - where uc.css sat in the cascade ==== */
.btnrow .btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.uc-confirm fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px 10px; margin: 0 0 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 12px; }
.uc-confirm fieldset legend { font-weight: 700; padding: 0 4px; }
.uc-confirm fieldset label:has(textarea) { grid-column: 1 / -1; }
@media (max-width: 599px) {
  .uc-confirm fieldset { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  .btnrow { display: none !important; }
}

/* 144: the Overview's "Today so far" strip (scorecard.js liveStrip) */
.ov-live { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.ov-live a { flex: 1 1 220px; display: block; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius, 10px); background: var(--surface); color: inherit; text-decoration: none; min-width: 0; }
.ov-live b { font-size: 1.25rem; display: block; } .ov-live small { color: var(--muted); display: block; }
.ov-live .pos { color: var(--good, #2b8a3e); } .ov-live .neg { color: var(--bad, #c92a2a); }
/* 155 (A-11 #9): "as of" grey; amber only when the registers' data is late (over an hour old before closing) - never red */
.ov-live .ov-live-at { color: var(--muted); } .ov-live .ov-live-at.late { color: var(--warn, #b7791f); }
/* 155 (A-8): several stores = one Company box (a <summary>) with the stores inside, opened by a tap */
.ov-live-co { margin: 0 0 10px; }
.ov-live-co > .ov-live-sum { position: relative; list-style: none; cursor: pointer; display: block; padding: 8px 44px 8px 12px; border: 1px solid var(--line); border-radius: var(--radius, 10px); background: var(--surface); margin: 0; min-height: 44px; }
.ov-live-co > .ov-live-sum::-webkit-details-marker { display: none; }
.ov-live-co > .ov-live-sum:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.ov-live-n { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: .8125rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.ov-live-n span { color: var(--red); font-size: 1.25rem; font-weight: 800; display: inline-block; transition: transform .15s; }
.ov-live-co[open] > .ov-live-sum { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.ov-live-co[open] .ov-live-n span { transform: rotate(90deg); }
.ov-live-co > .ov-live-stores { margin: 0; padding: 8px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius, 10px) var(--radius, 10px); background: var(--surface-2, var(--bg)); }
.ov-live-stores a { flex-basis: 160px; }

/* 155 (Tom 2026-11-02 Q19; A-7 / A-8): the "Do next" line - one row under the header: the small word, the item (two lines at most on a
   phone), one [Open] button that stays on the right */

/* 155 (Tom 2026-11-02 Q18): the two labor messages under a headline on separate lines, each its own colour (scorecard.js labLines) */
#ux-labor .ux-v small .ov-lab-l { display: block; white-space: normal; }
#ux-labor .ux-v small .ov-lab-short { color: var(--warn); } #ux-labor .ux-v small .ov-lab-over { color: var(--bad); }

/* 168 (Tom 2026-11-03): the live Sales box - the period pills above the Company line */
.ov-live-pers { margin: 0 0 8px; }
.ov-live-pers .seg button { min-height: 40px; }
/* 176 (Tom 2026-11-08): the Overview's Sales box - Half / YTD / Custom, ‹ › to the period before, the incomplete days */
.ov-live-pers .seg { flex-wrap: wrap; }
.ov-live-nav { display: flex; align-items: center; gap: 8px; margin: 6px 0; flex-wrap: wrap; }
.ov-live-nav span { min-width: 8em; text-align: center; font-weight: 600; }
.ov-live-nav .btn { min-height: 44px; min-width: 44px; justify-content: center; }
.ov-live-custom { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 6px 0; }
.ov-live-custom label { display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-sm); color: var(--muted); }
.ov-live-custom input, .ov-live-custom .btn { min-height: 44px; font-size: var(--fs-md); }
.ov-live-warn { margin: 6px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--warn-soft); color: var(--ink); font-size: var(--fs-sm); }

/* 182: the date Shrink and Labor are showing (a day behind sales) */
.ov-lag { margin: 0 0 8px; color: var(--muted); font-size: var(--fs-sm); }
