/* ASA OS shop safety (111): equipment and its checks. Shop tokens (shop.css). */
.sf-page { display: flex; flex-direction: column; gap: 12px; }
.sf-sum { font-size: 15px; margin: 0; }
.sf-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: 16px; box-shadow: 0 0 0 .5px var(--hair); }
.sf-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; padding: 14px 16px; border-top: 1px solid var(--hair); align-items: start; }
.sf-row:first-child { border-top: 0; }
.sf-main { min-width: 0; }
.sf-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sf-sub { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.sf-chip { font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--fill); }
.sf-chip.is-bad { background: var(--red-soft); color: var(--red); }
.sf-chip.is-warn { background: var(--amber-soft); color: var(--amber); }
.sf-chip.is-ok { background: var(--green-soft); color: var(--green); }
.sf-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.sf-acts button { min-height: 36px; padding: 0 12px; font-size: 14px; }
.sf-acts input { min-height: 36px; width: 240px; max-width: 100%; }
.sf-row > .sf-msg { grid-column: 1 / -1; font-size: 13px; color: var(--ink-2); }
.sf-form .sf-grid, .sf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.sf-grid > label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-2); min-width: 0; }
.sf-grid > label > input, .sf-grid > label > select { width: 100%; color: var(--ink); }
.sf-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-2); }
.sf-fine { font-size: 12.5px; color: var(--ink-3); max-width: 72ch; }
@media (max-width: 640px) { .sf-row { grid-template-columns: minmax(0, 1fr); } .sf-acts { justify-content: flex-start; } }
.sf-waste, .sf-sec { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.sf-waste h2, .sf-sec h2 { margin: 0; }
.sf-qty { display: flex; gap: 6px; } .sf-qty input { min-width: 0; flex: 1; }
/* U41-C: Books › payroll preview: the label on its own line, then the date and the button (they wrap at phone width) */
.sf-qty.bp-period { flex-wrap: wrap; align-items: center; } .bp-period .sf-sub { flex: 1 0 100%; } .bp-period input { flex: 0 1 14em; min-width: 11em; }
.sf-waste-form { align-items: end; }
.sf-job .sf-tire { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 8px 0; border-top: 1px solid var(--hair); }
.sf-job .sf-tire:first-of-type { border-top: 0; }
.sf-tire-h { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.sf-job input, .sf-job select { min-height: 36px; width: 100%; }
.sf-chip.is-dim { color: var(--ink-2); }
.cx-needs { color: var(--amber); }
/* 211: Connections › By store (connections.js) */
.cx-stores { margin-top: 24px; }
.cx-h { font-size: 1.1rem; margin: 0 0 8px; }
.cx-accts { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 16px; }
.cx-accts li { display: grid; gap: 0; }
/* 115: safety training chips per person */
.sf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
/* 116: Who handles what (responsibilities.js) */
.dt-grid { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; margin-top: 6px; font-size: 0.92em; }
.dt-grid > span:nth-child(odd) { color: var(--ink-2); }
.dt-unset { color: var(--ink-2); font-style: italic; }
/* Oct 20: Estimates to review (estimate-review.js) */
.er-checks { margin: 6px 0 0; padding-left: 18px; font-size: 0.92em; color: var(--ink-2); }
/* 119: Procedures (sops.js) */
.sop-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sop-bar input[type=search] { flex: 1 1 260px; min-width: 0; }
.sop-steps { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-2); }
.sop-steps textarea { width: 100%; color: var(--ink); }
.sop-body p { margin: 4px 0; }
/* 120: memberships (members.js) */
.mem-list, .mem-incs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mem-card { display: grid; gap: 6px; padding: 8px 0; border-top: 1px solid var(--hair); }
.mem-inc { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 0.92em; }
.mem-inc > span { flex: 1 1 140px; min-width: 0; }
.mem-enroll select { min-width: 0; max-width: 100%; }
/* 121: Rollout (rollout.js) */
.ro-checks { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 0.88em; color: var(--ink-2); }
.ro-check.is-ok { color: var(--green); }
/* 204: a store's switch-over plan (rollout.js) */
.ro-switch { margin-top: 4px; }
.ro-switch.is-bad, .ro-sw .is-bad { color: var(--red, #b42318); }
.ro-steps { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.ro-step { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 2px 8px; align-items: baseline; }
.ro-step > .sf-sub { grid-column: 2 / -1; }
.ro-step.is-ok .ro-mark { color: var(--green); }
.ro-step.is-warn .ro-mark { color: var(--amber, #b54708); }
.ro-step.is-dim { color: var(--ink-2); }
.ro-step-set { border: 0; padding: 0; margin: 8px 0; display: grid; gap: 8px; }
.ro-step-set legend { font-weight: 600; margin-bottom: 4px; }
.ro-step-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ro-step-edit input[type="text"] { flex: 1 1 220px; min-width: 0; }
/* Today › Pick up where you left off (estimate-review.js) */
.er-resume { margin: 0 0 14px; padding: 12px 14px; border: 1px solid var(--hair); border-radius: 12px; background: var(--surface); }
.er-resume-h { margin: 0 0 8px; font-size: 1rem; }
.er-resume-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.er-resume-row { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; justify-content: space-between; }
.er-resume-link { display: flex; flex-direction: column; min-width: 0; text-decoration: none; color: inherit; }
.er-resume-link strong { color: var(--accent, inherit); }
.er-resume-sub, .er-resume-left { font-size: 0.9em; color: var(--ink-2); }
.er-resume-late { flex-basis: 100%; font-size: 0.9em; color: var(--ink); background: var(--amber-soft); border-radius: 8px; padding: 4px 8px; }
/* Rollout: several stores at once (rollout.js) */
.ro-bulk { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 12px; margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--hair); border-radius: 12px; background: var(--surface); }
.ro-bulk label { display: grid; gap: 2px; font-size: 0.88em; color: var(--ink-2); }
.ro-bulk .sf-fine { flex-basis: 100%; margin: 0; }
/* a18: Settings › Company structure (org-structure.js) */
.cs-done { margin: 0 0 4px; padding: 10px 14px; border-radius: 12px; background: var(--green-soft); color: var(--green); font-weight: 600; font-size: 14px; }
.cs-plan { display: flex; flex-direction: column; gap: 10px; }
.cs-facts { display: flex; flex-direction: column; gap: 4px; }
.cs-facts p { margin: 0; }
.cs-facts h3 { font-size: 13px; margin: 8px 0 0; color: var(--ink-2); text-transform: none; }
.cs-head { font-size: 16px; font-weight: 600; }
.cs-people { margin: 0; padding-left: 18px; font-size: 14px; }
.cs-warn { padding: 8px 12px; border-radius: 10px; background: var(--amber-soft); color: var(--ink); font-size: 13.5px; }
.cs-bad { padding: 10px 14px; border-radius: 12px; background: var(--red-soft); color: var(--red); font-size: 14px; }
.cs-bad ul { margin: 6px 0 0; padding-left: 18px; }
.cs-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cs-acts button { min-height: 40px; padding: 0 14px; }
.cs-acts input { min-height: 40px; max-width: 100%; }
.cs-or, .cs-confirm { font-size: 13.5px; color: var(--ink-2); }
.cs-confirm { flex-basis: 100%; }
/* 129: Cancel a waiting move (in-page confirm) */
.cs-warn p { margin: 0; }
.cs-warn .cs-cancel { margin-top: 8px; }
.cs-cancel { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-width: 0; max-width: 100%; }
.cs-warn .cs-cancel, .cs-cancel:has(.cs-confirm) { align-items: stretch; }
.cs-cancel .cs-confirm { margin: 0; }
.cs-cancel input { min-height: 40px; width: 100%; box-sizing: border-box; }
.cs-cancel .sf-msg:empty { display: none; }
/* While the confirm is open, the waiting move's row stacks: its text keeps full width and the confirm sits beneath it. */
.sf-row:has(.cs-cancel .cs-confirm) { grid-template-columns: minmax(0, 1fr); }
.sf-row:has(.cs-cancel .cs-confirm) .sf-acts { justify-content: flex-start; }
.sf-acts .cs-cancel:has(.cs-confirm) { flex: 1 1 100%; }
.cs-tree { list-style: none; margin: 0; padding: 0; }
.cs-node { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 7px 0 7px calc(var(--depth, 0) * 18px); border-top: 1px solid var(--hair); }
.cs-node:first-child { border-top: 0; }
.cs-node.is-picked .cs-name { color: var(--accent, var(--ink)); }
.cs-name { font-weight: 600; font-size: 14px; }
.cs-move { margin-left: auto; min-height: 30px; padding: 0 10px; font-size: 13px; }
@media (max-width: 560px) { .cs-node { padding-left: calc(var(--depth, 0) * 10px); } .cs-acts input { flex: 1 1 100%; } }
/* S1: keyboard shortcuts (? on any page) */
.er-keys { position: fixed; right: 16px; bottom: 16px; z-index: 50; max-width: 360px; padding: 14px 16px; border: 1px solid var(--hair); border-radius: 14px; background: var(--surface); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25); }
.er-keys h2 { margin: 0 0 8px; font-size: 1rem; }
.er-keys dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 0.9em; }
.er-keys dt { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); white-space: nowrap; }
.er-keys dd { margin: 0; color: var(--ink-2); }
/* 215: legal entities on Settings › Company structure */
.le-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; margin-top: 8px; width: 100%; }
.le-form input { min-height: 36px; }
.le-add { margin: 8px 0 14px; }
.le-add summary { cursor: pointer; color: var(--accent, #0a66d8); font-weight: 600; }
.sf-row > .le-form { grid-column: 1 / -1; }

/* Batch 30 (UI_COVERAGE.md, stream B): Equipment & safety, Waste & recycling, and Books (same panels) under the shared band look (stream A's .band: the accent, white heavy
   italic, square). Markup unchanged: a panel whose first child is its heading (or a head row holding it) gets the band. */
body.shop-on :is(.sf-waste):has(> h2:first-child, > :is(div, header):first-child > h2) { padding-top: 0; padding-left: 18px; padding-right: 18px; }   /* no overflow clip: rows, menus and popovers stay reachable */
body.shop-on :is(.sf-waste) > h2:first-child,
body.shop-on :is(.sf-waste) > :is(div, header):first-child:has(> h2) { display: flex; align-items: center; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap;
  margin: 0 -18px 14px; padding: 9px 18px; min-height: 44px; box-sizing: border-box; background: var(--accent); color: var(--accent-ink, #fff); border-radius: 3px 3px 0 0; }
body.shop-on :is(.sf-waste) > :is(div, header):first-child > h2 { margin: 0; }
body.shop-on :is(.sf-waste) > h2:first-child, body.shop-on :is(.sf-waste) > :is(div, header):first-child > h2 { color: var(--accent-ink, #fff);
  font: italic 900 23px/1.08 var(--font-title); text-transform: uppercase; letter-spacing: -0.004em; }
body.shop-on :is(.sf-waste) > :is(div, header):first-child:has(> h2) :is(span, small, label, .cp-fine, a:not(.btn)) { color: inherit; }
body.shop-on :is(.sf-waste) > :is(div, header):first-child:has(> h2) :is(button.quiet, .btn.quiet) { color: inherit; background: rgba(255, 255, 255, 0.14); }
@media (max-width: 860px) { body.shop-on :is(.sf-waste) > h2:first-child, body.shop-on :is(.sf-waste) > :is(div, header):first-child > h2 { font-size: 19px; } body.shop-on :is(.sf-waste):has(> h2:first-child, > :is(div, header):first-child > h2) { padding-left: 14px; padding-right: 14px; } body.shop-on :is(.sf-waste) > h2:first-child, body.shop-on :is(.sf-waste) > :is(div, header):first-child:has(> h2) { margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; } }
/* Batch 32 (rendered audit): a wide table scrolls sideways inside its panel on a phone instead of widening the page
   (the old band clip hid its right-hand columns) */
@media (max-width: 860px) { body.shop-on .sf-waste .tbl, body.shop-on .sf-waste .sf-table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; } }
/* U22-C (440): training and progress (sops.js) */
.tr-back { display: inline-block; margin-bottom: 8px; color: var(--accent, var(--ink)); text-decoration: none; font-weight: 600; }
.tr-counts { margin: 4px 0 12px; }
.tr-course .sf-top h2 { margin: 0; }
.tr-items, .tr-pick { padding-left: 0; }
.tr-outline { margin: 6px 0; padding-left: 20px; font-size: 13px; color: var(--ink-2); }
.tr-item .sf-acts .primary { white-space: normal; text-align: left; }
@media (max-width: 600px) { .tr-item { flex-direction: column; align-items: stretch; } .tr-item .sf-acts { justify-content: flex-start; } }
/* U23-C (441): Settings › Connections: systems that connect, the event feed */
.cx-key { display: grid; gap: 6px; margin: 8px 0; }
.cx-key-value { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; word-break: break-all; padding: 8px; border-radius: 8px; background: var(--fill); color: var(--ink); user-select: all; }
.cx-client-new { margin: 8px 0 12px; }
.cx-keys { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.cx-keys li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cx-kinds { margin: 6px 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); }
.cx-entries { margin-top: 8px; }
