/* ══ THE ONE VISIT REPORT (Lapor), for js/salesreport.js (real build plan S1, 20 Oct 2026) ══════════════════════════
   The box sits on the list kit's one record host (listkit.css .cg-rec.card: a smaller box in the middle, the page
   dimmed and blurred behind it, layer 990 under every .ov). Every rule here is under .sr / .sr- (and .cg-pop.sr-hits
   for the customer list), so no other screen changes by this sheet being linked.
   The look is the laptop prototype's report card (sales-proto lap.css .lp-card): a real heading over a divider, the
   app's own fields (.inp), a segmented "when", a footer band with Ctrl + Enter and the one dark Send.
   Sizes: 19 heading · 15 body · 13 labels and small lines, never fainter than --ink-soft (his rule: readable, AA). ══ */
.cg-rec.sr-card{display:block}
.sr{display:flex;flex-direction:column;min-height:100%}
.sr-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:22px 24px 16px;border-bottom:1px solid var(--rule)}
.sr-ht{min-width:0}
/* the restyle (21 Oct 2026): the family's pop-up title, 24 */
.sr-h{font:600 24px/1.2 'Inter',sans-serif;letter-spacing:-.01em;margin:0;color:var(--ink)}
.sr-sub{font-size:14px;line-height:1.4;color:var(--ink-soft);margin-top:3px}
.sr-hb{display:flex;align-items:center;gap:6px;flex-shrink:0;margin:-2px -4px 0 0}
.sr-hb .m3-text{min-height:36px;font-size:14px}
.sr-body{padding:2px 24px 24px}
.sr-wait{min-height:120px}
.sr-f{margin-top:18px}
.sr-lab{display:block;font:600 13px/1.3 'Inter',sans-serif;color:var(--ink-soft);margin:0 0 6px}
.sr .inp{width:100%;box-sizing:border-box;font-family:'Inter',sans-serif}
.sr textarea.sr-ta{display:block;min-height:112px;resize:none;font:15px/1.45 'Inter',sans-serif}

/* a picked customer, the planned visit's own customer: a filled line, not a box to type in */
.sr-picked{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;box-sizing:border-box;background:var(--field);border-radius:10px;padding:9px 6px 9px 14px}
.sr-picked .n{font-size:15px;font-weight:600;color:var(--ink);overflow-wrap:anywhere}
.sr-picked .pm{font-size:13px;color:var(--ink-soft);margin-top:2px}
.sr-chg{flex-shrink:0;min-height:34px;font-size:14px}

/* a box that opens our own pick list (who went, the time): the field's look, the value left, a thin arrow right */
.sr .sr-pick{display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left;cursor:pointer;color:var(--ink);font-size:15px}
.sr .sr-pick svg{flex-shrink:0;color:var(--ink-soft)}
.sr .sr-pick.sr-ph{color:var(--band-dim,var(--ink-soft))}
.sr .sr-pick[aria-expanded="true"],.sr .sr-pick.cp-open{border-color:var(--accent);background-color:var(--surface)}
.sr-tbox{display:block;width:160px}

/* when the next step is due: three quick days and another day of your own */
.sr-days{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px}
.sr-seg{display:inline-flex;background:var(--field);border-radius:20px;padding:3px}
.sr-seg button{border:0;background:none;border-radius:17px;min-height:34px;padding:0 14px;font:600 13px 'Inter',sans-serif;color:var(--ink-soft);transition:background-color .12s ease,color .12s ease}
.sr-seg button:hover{color:var(--ink)}
.sr-seg button[aria-checked="true"]{background:var(--surface);color:var(--ink);box-shadow:0 1px 2px rgba(var(--shade-rgb),.16)}
.sr .sr-dbtn{min-height:40px;font-size:13px}
.sr .sr-dbtn.on,.sr .sr-dbtn.cp-open{border-color:var(--ink)}
.sr-dbox{display:inline-flex}
.sr-hint{font-size:13px;color:var(--ink-soft);margin-top:8px;min-height:17px}

/* the follow-ups this visit covers: a tick box of ours on each, the step, and when it was due */
.sr-fus{border:1px solid var(--rule);border-radius:10px;overflow:hidden}
.sr-fu{display:flex;align-items:flex-start;gap:12px;width:100%;box-sizing:border-box;text-align:left;background:none;border:0;border-bottom:1px solid var(--rule-soft);padding:12px 14px;color:var(--ink);font:inherit}
.sr-fu:last-child{border-bottom:0}
.sr-fu:hover{background:var(--field)}
.sr-box{width:20px;height:20px;box-sizing:border-box;border:1.5px solid var(--ink-soft);border-radius:5px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:1px;color:transparent;transition:background-color .12s ease,border-color .12s ease}
.sr-fu[aria-checked="true"] .sr-box{background:var(--ink);border-color:var(--ink);color:var(--on-ink)}
.sr-fut{display:flex;flex-direction:column;gap:2px;min-width:0}
.sr-fus1{font-size:15px;line-height:1.35;overflow-wrap:anywhere}
.sr-fus2{font-size:13px;color:var(--ink-soft)}
.sr-fus2.late{color:var(--accent)}

/* the foot: what is missing on the left, Send on the right; it stays in view while the box scrolls */
.sr-foot{position:sticky;bottom:0;display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:auto;padding:16px 24px;border-top:1px solid var(--rule);background:var(--surface)}
.sr-err{margin-right:auto;font-size:13px;line-height:1.35;color:var(--accent)}
.sr-fail{margin-top:18px;font-size:15px}
.sr-key{font-size:13px;color:var(--ink-soft);white-space:nowrap}
/* Send is the family's main red (family.css .btn-line.strong); Sending… is ui.js btnSaving on the button itself */
.sr .btn-line{min-height:40px;padding:0 18px;gap:8px}
.sr .sr-send{min-width:96px;font-weight:600}
/* a phone has no Ctrl key (its own report page is S2) */
/* ⚠ app.css sets every phone h2 to --m4 !important: the pop-up title keeps the family's phone size, 22 */
@media (max-width:760px){.sr-key{display:none} .cg-rec .sr-h{font-size:22px!important;line-height:1.2}}

/* the customer list under the search box: the kit's pop-over, a little wider rows */
.cg-pop.sr-hits{max-height:320px;overflow-y:auto}
.cg-pop.sr-hits .sr-hit{white-space:normal;text-align:left;line-height:1.35;padding:8px 10px;font-size:15px}
.cg-pop.sr-hits .sr-keep{border-top:1px solid var(--rule-soft);color:var(--accent);flex-direction:column;align-items:flex-start;gap:2px}
.cg-pop.sr-hits .sr-keep .sub{color:var(--ink-soft);margin:0;font-weight:400}
.cg-pop .sr-none{padding:10px 14px;font-size:14px;color:var(--ink-soft)}
