/* SiteBound's own layout, on top of the Origin design system (theme.css: tokens, panels, tables, buttons). */
body { margin: 0; background: var(--bg); color: var(--fg); font-family: "IBM Plex Sans", system-ui, sans-serif; }
a { color: var(--accent); }
a:hover { color: var(--fg); }
.hidden { display: none !important; }
.sm, .hint.sm { font-size: 13px; }
.strong { font-weight: 600; }
.bad-t { color: var(--fail); } .warn-t { color: var(--warn); }

/* layout */
.app { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { background: var(--card); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; padding: 16px 12px; position: sticky; top: 0; height: 100vh; box-sizing: border-box; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { padding: 10px 12px; border-radius: 6px; color: var(--fg); text-decoration: none; font-size: 15px; }
.side nav a.on { background: var(--bg); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 18px; padding: 4px 8px 12px; }
.logo-dot { fill: var(--accent); }
.who-box { margin-top: auto; border-top: 1px solid var(--line); padding: 12px 8px 0; display: flex; flex-direction: column; gap: 4px; }
.content { min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 20px 24px 14px; border-bottom: 1px solid var(--line); }
.topbar h1 { margin: 0; font-size: 22px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.crumbs { font-size: 13px; color: var(--mut); }
.tb-right { display: flex; gap: 8px; align-items: center; }
.page { padding: 20px 24px 40px; display: flex; flex-direction: column; gap: 16px; }
.panel.flush { padding: 0; overflow-x: auto; }
.grid2, .grid3, .grid4 { display: grid; gap: 12px; }
.grid2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid4 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); align-items: end; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row input { flex: 1; min-width: 160px; }
.grow { flex: 1; min-width: 0; }
.end { display: flex; align-items: flex-end; }
@media (max-width: 760px) { .app { grid-template-columns: 1fr; } .side { position: static; height: auto; } }

/* forms */
.fld { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
input, select, textarea { font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chk { display: flex; align-items: center; gap: 8px; font-size: 14px; }
fieldset { border: 0; padding: 0; margin: 0; }
button { font: inherit; cursor: pointer; }
.btn { display: inline-block; text-decoration: none; }
.primary { padding: 10px 16px; }
.ghost.sm, .primary.sm { padding: 6px 10px; font-size: 14px; }
button.link { background: none; border: 0; color: var(--accent); padding: 0; text-decoration: underline; font-size: 13px; }
form.inline { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-left: 6px; }
form.inline select, form.inline input { padding: 4px 6px; }

/* flash messages */
#flash { position: sticky; top: 0; z-index: 5; }
.flash { display: flex; justify-content: space-between; gap: 12px; padding: 10px 24px; font-size: 15px; border-bottom: 1px solid var(--line); }
.flash.ok { background: var(--ok); color: var(--pass); } .flash.err { background: var(--failbg); color: var(--fail); }
.billing-bar { display: flex; align-items: center; gap: 8px; padding: 10px 24px; font-size: 15px; border-bottom: 1px solid var(--line); background: var(--card); }
.billing-bar svg { flex: none; width: 16px; height: 16px; }
.billing-bar.ro { background: var(--failbg); color: var(--fail); font-weight: 500; }
.flash .x { background: none; border: 0; color: inherit; font-size: 20px; line-height: 1; }
.err-box { background: var(--failbg); color: var(--fail); padding: 12px; border-radius: 6px; }

/* sign in */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; box-sizing: border-box; }
.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 24px; width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 12px; }
.auth-card h1 { font-size: 20px; margin: 0; }
.auth-card .flash { padding: 10px 12px; border-radius: 6px; border: 0; }

/* status pills, counts */
.st { display: inline-block; font-size: 13px; font-weight: 600; border: 1px solid var(--line); border-radius: 99px; padding: 2px 10px; white-space: nowrap; vertical-align: middle; }
.st.bad { background: var(--failbg); color: var(--fail); border-color: var(--fail); }
.st.warn { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); border-color: var(--warn); }
.st.good { background: var(--ok); color: var(--pass); border-color: var(--pass); }
.chip { font-size: 12px; background: var(--accent); color: var(--accent-fg); border-radius: 99px; padding: 1px 7px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.kpi { text-decoration: none; color: var(--fg); }
.kpi.sel { outline: 2px solid var(--accent); }

/* tables and lists */
.tbl.compact td, .tbl.compact th { padding-top: 6px; padding-bottom: 6px; }
tr.dim td { opacity: .55; }
.empty { padding: 28px; text-align: center; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters input[type=search] { min-width: 160px; }
h4.sub { margin: 16px 0 8px; font-size: 15px; display: flex; gap: 8px; align-items: center; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.piece { padding: 10px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.piece:first-of-type { border-top: 0; }
.hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-height: 480px; overflow: auto; }
.hist li { border-left: 3px solid var(--line); padding-left: 10px; font-size: 14px; }
.note { border-bottom: 1px solid var(--line); padding: 8px 0; font-size: 14px; }
ul.plain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
ul.plain li.unseen { font-weight: 600; }
.meter { height: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--accent); }
.meter span.warn { background: var(--warn); } .meter span.bad { background: var(--fail); }
.add-user { margin-top: 12px; }

/* supplier dates */
.drop { border: 2px dashed var(--line); border-radius: 8px; padding: 22px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; min-height: 130px; }
.drop.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.filebtn { cursor: pointer; }
.addr-row { display: flex; gap: 8px; align-items: center; }
.addr { font-size: 13px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 8px; word-break: break-all; flex: 1; }
.change { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; cursor: pointer; margin-bottom: 8px; }
.change.check { border-left-color: var(--warn); }
.change input { margin-top: 4px; width: 18px; height: 18px; }
.arrow { margin-left: 6px; }
.tag { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; }
.quote { font-size: 14px; font-style: italic; margin: 4px 0; }
.effect { flex: none; display: flex; gap: 4px; align-items: center; }
.line { padding: 8px 0; border-top: 1px solid var(--line); }
.line:first-of-type { border-top: 0; }
details summary { cursor: pointer; color: var(--accent); }

/* the theme makes inputs full width; these rows keep them at their natural size */
.filters input, .filters select, form.inline select, form.inline input, .row button { width: auto; flex: 0 1 auto; }
.filters input[type=search] { flex: 1 1 220px; }
.row input { width: auto; }
.row input[type=checkbox], .chk input { flex: none; width: auto; }
/* the top of a status report at its printed size (1 point = 1.333 px): the logo box is 190 x 64 points */
.logo-page { background: #fff; color: #111; border: 1px solid var(--line); border-radius: 4px; padding: 20px 24px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; max-width: 720px; box-shadow: 0 1px 3px rgb(0 0 0 / .08); }
.logo-page img { max-width: 253px; max-height: 85px; display: block; }
.logo-page .lp-name { font-size: 12px; font-weight: 600; margin-top: 4px; color: #111; }
.logo-page .lp-right { text-align: right; display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: #555; }
.logo-page .lp-right b { font-size: 17px; color: #4c3fb8; }
.top-gap { margin-top: 12px; }
/* the buttons at the top right of a page: every one on one line and the same height, whatever sits beside it (the owner's run-through,
   Nov 2026: "Edit job" and "Add unit" wrapped to two lines next to the wide label-layout list). When the row cannot fit, whole buttons
   move to a second row; none is squeezed. */
.tb-right { flex-wrap: wrap; justify-content: flex-end; row-gap: 8px; }
.tb-right .btn, .tb-right button, .tb-right select { white-space: nowrap; flex: none; box-sizing: border-box; height: 42px; padding-top: 0; padding-bottom: 0; display: inline-flex; align-items: center; }
.tb-right select { max-width: 190px; }
.topbar .tb-left { min-width: 0; flex: 0 1 auto; }
textarea { width: 100%; box-sizing: border-box; }
.chk input, .row input[type=checkbox] { min-width: 0; padding: 0; width: 18px; height: 18px; margin: 0; }
.form-msg { color: var(--fail); font-weight: 600; margin: 0; }
.form-msg:empty { display: none; }
.mini { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.danger { background: var(--fail); border-color: var(--fail); }
button:disabled { opacity: .5; cursor: not-allowed; }
.edit-user { padding: 8px 0; }
.chk.minutes { margin: 4px 0 10px; }
.setup-tbl input:not([type=checkbox]) { min-width: 0; width: 100%; }
.setup-tbl input[type=checkbox] { width: 18px; height: 18px; min-width: 0; padding: 0; margin: 0; }
.setup-tbl td.quote { max-width: 360px; }
.setup .chk input[type=date] { width: auto; min-width: 0; margin-left: 6px; }
.topbar .back { margin-bottom: 6px; padding: 4px 10px; font-size: 13px; }
.tb-left { display: flex; flex-direction: column; align-items: flex-start; }
.tbl th.pick, .tbl td.pick { width: 34px; padding-right: 0; }
.tbl .pick input { width: 18px; height: 18px; min-width: 0; padding: 0; margin: 0; }
.bulk { border-color: var(--accent, #8b7cf6); position: sticky; top: 8px; z-index: 5; }
.bulk .chk input { width: 18px; height: 18px; min-width: 0; padding: 0; }

/* ---- Status colors (decided): green on track, red late, orange at risk, gray pending submittal.
   The same colors are in packages/report/src/status-colors.ts for the PDF and Excel reports. ---- */
:root {
  --s-on_track: #17744a; --s-late: #b3261e; --s-at_risk: #b45309; --s-needs_dates: #7a6000; --s-pending_submittal: #5a6875;
  --s-waiting_inspection: #1b5a96; --s-inspection_overdue: #9d2463; --s-inspected: #0d6660; --s-cancelled: #8a96a3;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --s-on_track: #62c183; --s-late: #ff7b72; --s-at_risk: #f59e4b; --s-needs_dates: #e8cf5a; --s-pending_submittal: #9aa8b5;
  --s-waiting_inspection: #6cb4f0; --s-inspection_overdue: #f28ab8; --s-inspected: #4fd1c5; --s-cancelled: #6f7c88;
} }
:root[data-theme="dark"] {
  --s-on_track: #62c183; --s-late: #ff7b72; --s-at_risk: #f59e4b; --s-needs_dates: #e8cf5a; --s-pending_submittal: #9aa8b5;
  --s-waiting_inspection: #6cb4f0; --s-inspection_overdue: #f28ab8; --s-inspected: #4fd1c5; --s-cancelled: #6f7c88;
}
.st[class*=" s-"] { color: var(--sc); border-color: var(--sc); background: color-mix(in srgb, var(--sc) 15%, transparent); }
.s-on_track { --sc: var(--s-on_track); } .s-late { --sc: var(--s-late); } .s-at_risk { --sc: var(--s-at_risk); }
.s-needs_dates { --sc: var(--s-needs_dates); } .s-pending_submittal { --sc: var(--s-pending_submittal); }
.s-waiting_inspection { --sc: var(--s-waiting_inspection); } .s-inspection_overdue { --sc: var(--s-inspection_overdue); }
.s-inspected { --sc: var(--s-inspected); } .s-cancelled { --sc: var(--s-cancelled); }
.st.s-cancelled { text-decoration: line-through; border-style: dashed; }
.kpi[class*=" s-"] { border-left: 4px solid var(--sc); }
.kpi[class*=" s-"] .val { color: var(--sc); }
/* Bulk update sits under the table and sticks to the bottom of the screen, so ticking a box never moves the rows. */
.bulk { position: sticky; bottom: 8px; top: auto; z-index: 5; box-shadow: 0 -6px 24px rgba(0, 0, 0, .18); max-height: 70vh; overflow-y: auto; }
/* Wide tables scroll sideways on a phone instead of being cut off. */
.scroll-x { overflow-x: auto; }
.scroll-x .tbl { min-width: 760px; }
details.panel > summary { cursor: pointer; color: var(--accent); font-weight: 600; }
details.panel[open] > summary { margin-bottom: 10px; }
.bulk-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bulk-body { margin-top: 14px; }
.banner-del { border-left: 4px solid var(--s-late); }
.banner-del .row { margin-top: 10px; }
.banner-warn { border-left: 4px solid var(--s-late); }
.banner-warn .row { margin-top: 10px; }
.arrival-from { margin: -6px 2px 14px; }
.undo-list li { margin: 4px 0; } .undo { border-left: 4px solid var(--s-at_risk); margin-top: 12px; }
.setup-tbl select[name=existing] { min-width: 150px; width: 100%; }
.setup-tbl input:disabled { opacity: .35; }
form.pick-one, form.pick-all { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
form.pick-one select, form.pick-all select { width: auto; min-width: 240px; flex: 0 1 auto; }
form.pick-one .form-msg, form.pick-all .form-msg { flex-basis: 100%; margin: 0; }
/* Closed dropdown panels are just their title line. */
details.panel:not([open]) { padding-top: 14px; padding-bottom: 14px; }
details.panel:not([open]) > summary { margin-bottom: 0; }
.setup-tbl .sub-cell { min-width: 170px; }
.setup-tbl .sub-cell select, .setup-tbl .sub-cell input { width: 100%; margin-bottom: 4px; }
.set-all { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.set-all select, .set-all input { width: auto; min-width: 0; }
#setup-form .set-all select, #setup-form .set-all input[type=date] { width: auto !important; min-width: 0 !important; flex: 0 0 auto; }
#setup-form .row:has(> select[name=setupSupplier]) select { width: auto; min-width: 260px; }

/* suppliers: counts, status mix bar, delivery record */
.tbl th.n, .tbl td.n { text-align: right; font-variant-numeric: tabular-nums; }
.tbl td.zero { color: var(--mut); }
.mix { display: flex; height: 8px; min-width: 110px; border-radius: 99px; overflow: hidden; background: var(--line); }
.mix span { display: block; height: 100%; background: var(--sc); }
.recs { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.rec { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.rec b { font-size: 28px; font-variant-numeric: tabular-nums; }

/* photos on the unit page */
.photo-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ph-o { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--mut); font-size: 12px; }
.ph-o img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--line); }

/* FieldSpark handoff: handed-off units are grayed slightly in the list (still editable), with a clear mark */
.tbl tr.handed > td { opacity: .58; }
.tbl tr.handed > td:last-child { opacity: 1; }
.tbl tr.handed > td:last-child > :not(.ho-tag) { opacity: .58; }
.tbl tr.handed.changed > td { opacity: .8; }
.ho-tag { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap;
  color: var(--sb-slate, #4A5668); background: color-mix(in srgb, var(--mut) 12%, var(--card)); border: 1px solid color-mix(in srgb, var(--mut) 30%, var(--card)); }
.ho-tag::before { content: "→ "; }
.ho-tag.changed { color: #8A5A00; background: #FFF4D6; border-color: #E8C46A; }
.ho-tag.changed::before { content: "! "; }
:root[data-theme="dark"] .ho-tag { color: var(--sb-slate-light, #B8C0CC); }
:root[data-theme="dark"] .ho-tag.changed { color: #F5D27A; background: #3A3015; border-color: #6B5A26; }
.topbar h1 .ho-tag { vertical-align: middle; font-family: var(--sb-font-body); }
/* Set-up from a company's own tracker: more columns, so the table scrolls sideways instead of squashing. */
.setup .tbl-scroll { overflow-x: auto; }
.setup-tbl.wide input[name=tag] { min-width: 80px; }
.setup-tbl.wide input[name=equipment] { min-width: 170px; }
.setup-tbl.wide input[name=system], .setup-tbl.wide input[name=area] { min-width: 120px; }
.setup-tbl.wide input[name=poNumber] { min-width: 95px; }
.setup-tbl.wide select[name=rowSupplier] { min-width: 170px; width: 100%; }
.setup-tbl.wide input[name=deliveredOn] { min-width: 140px; }
.setup-tbl.wide td.quote { display: none; }
.setup-tbl.wide tr:hover td { background: color-mix(in srgb, var(--accent, #6B4FD8) 6%, transparent); }
.setup-tbl.wide th.quote { display: none; }
.tbl-wrap { overflow-x: auto; }

/* ---------- suite frame (suite.js): app groups, locked app, home page ---------- */
.side .app-group { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.side .app-label { padding: 4px 12px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sb-slate-light, #8C96A6); opacity: .8; }
.side nav a.locked { display: flex; align-items: center; gap: 6px; border: 1px dashed color-mix(in srgb, currentColor 40%, transparent); }
.app-tag { font-size: 12px; color: var(--mut); font-weight: 500; }
.ph:has(> .app-tag) { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ph.pad { padding: 14px 16px 6px; }
.add-app { display: flex; flex-direction: row; justify-content: flex-start; text-align: left; align-items: center; gap: 12px; text-decoration: none; color: var(--fg); border: 1px dashed var(--line); }
.add-app > div { display: flex; flex-direction: column; gap: 2px; }
.add-app .lock { width: 22px; height: 22px; flex: none; color: var(--accent); }
.page > .panel + .panel, .page > section + section, .page > p + section { margin-top: 14px; }
/* phone: the app strip under the header */
.field .fapps { display: flex; gap: 6px; padding: 8px 14px; background: var(--sb-navy-raised, #1B2940); }
.field .fapps a { flex: 1; text-align: center; padding: 8px 6px; border-radius: 8px; color: var(--sb-slate-light, #B8C0CC); text-decoration: none; font-weight: 600; font-size: 14px; min-height: 24px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.field .fapps a.on { background: var(--sb-navy, #0F1B2D); color: #fff; box-shadow: inset 0 -3px 0 var(--sb-sitebound-purple-on-navy, #A99BFF); }
.field .fapps a.locked { border: 1px dashed color-mix(in srgb, currentColor 40%, transparent); }
.field .add-app { margin-top: 12px; }

/* signing a phone out: keep or discard what it has waiting (FieldSpark's revoke policy) */
.revoke-choice { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.revoke-choice[hidden], [data-revoke-open][hidden] { display: none; }

/* the guided first job on Home */
.setup-card .steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.setup-card .step { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.setup-card .step.done, .setup-card .step.skipped { opacity: .7; }
.setup-card .num { flex: none; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; background: var(--line); }
.setup-card .step.done .num { background: var(--accent); color: var(--accent-fg); }
.setup-card .body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.setup-card .row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.setup-card code.addr { font-size: 12px; word-break: break-all; }

/* payment (Settings) */
.payment { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px; display: flex; flex-direction: column; gap: 6px; }
.payment .row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ok { color: var(--ok, #2a7); font-weight: 600; margin: 0; }
.tbl tr.group td { padding-top: 16px; font-weight: 700; font-size: 14px; color: var(--fg); background: transparent; border-bottom: 2px solid var(--line); }
.pay-interval { display: inline-flex; gap: 14px; align-items: center; }
.pay-interval label { display: inline-flex; align-items: center; gap: 5px; width: auto; margin: 0; font-weight: 500; }
.pay-interval input[type=radio], .row .pay-interval input[type=radio] { flex: none; width: auto; min-width: 0; padding: 0; margin: 0; }
/* Another tab changed who is signed in: this tab stops until the person chooses to carry on as them. */
.who-changed { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; background: rgba(10, 16, 24, .72); }
.who-changed .panel { max-width: 520px; }
.who-changed h3 { margin: 0 0 8px; }
/* a stage row that opens "Enter a date" */
.enter-row { cursor: pointer; }
.enter-row:hover td, .enter-row:focus td { background: rgba(127, 127, 127, .10); }
.enter-row:focus { outline: 2px solid var(--accent, #2a6df4); outline-offset: -2px; }
/* the import review: why a unit ends up with its status, and what the change asks of the reviewer */
.change .effect .why { max-width: 300px; margin-top: 4px; text-align: right; }
.change .ask { flex-basis: 100%; margin: 6px 0 0 30px; }
.change .ask .btn { margin-top: 6px; }

.change { flex-wrap: wrap; }
.change .grow { flex: 1 1 300px; }
/* a piece's own dates, and its name form */
.piece-dates { margin-top: 2px; }
.piece .piece-edit form { display: grid; gap: 8px; margin-top: 8px; }
button.danger { color: var(--fail); }
/* a unit's pieces, dropped down under it on the job page */
.tbl tr.piece-line > td { background: color-mix(in srgb, var(--fg) 4%, var(--card)); border-top: 0; padding-top: 5px; padding-bottom: 5px; font-size: 13px; }
.tbl tr.piece-line > td:nth-child(1), .tbl tr.piece-line > td.pick + td { padding-left: 22px; }
.piece-toggle { text-decoration: none; }
.tag.mark { text-transform: none; }
.span2 { grid-column: span 2; } .label-phone-hint { margin: 0; align-self: end; }
/* the public "found this equipment" page */
.auth-card.found h1 { font-size: 22px; line-height: 1.25; margin: 14px 0 8px; }
.auth-card.found .found-ask { font-size: 16px; margin: 0 0 14px; }
.auth-card.found .found-call .btn { font-size: 18px; padding: 12px 18px; display: inline-block; text-decoration: none; }
.auth-card.found hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0 12px; }
/* signed out here because the login was used on another computer or phone (one sign-in per login) */
.signed-out-why { border-left: 4px solid var(--s-late); background: color-mix(in srgb, var(--s-late) 8%, var(--card)); padding: 10px 12px; border-radius: 6px; font-size: 14px; line-height: 1.4; margin: 0 0 14px; }
.signed-in { margin-top: 2px; } .login-moved { margin-top: 4px; max-width: 46ch; }
/* Home on a wide screen: the cards, and "Waiting on you" beside them */
.home-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.home-cols .home-main, .home-one .home-main, .home-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (min-width: 1180px) { .home-cols { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); } .home-side { position: sticky; top: 16px; } }
@media (max-width: 1179px) { .home-cols .home-side { order: -1; } }
.waiting li { padding: 8px 0; border-top: 1px solid var(--line); } .waiting li:first-child { border-top: 0; padding-top: 0; }
/* new alerts: one line each with its Acknowledge button */
.alert-list li { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 6px 0; }
.alert-list li > div { min-width: 0; } .alert-list button { flex: none; }
.alert-acts { margin-top: 8px; align-items: center; justify-content: space-between; }
.who-changed .panel.new-alerts { max-width: 680px; width: calc(100% - 32px); max-height: calc(100vh - 80px); display: flex; flex-direction: column; }
.new-alerts .new-alerts-list { overflow: auto; min-height: 0; } .new-alerts-foot { margin-top: 12px; align-items: center; }
.new-alerts .ph .x { background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer; color: var(--fg); }
/* the heads-up before a person is added past the seats in the plan */
.extra-seat { grid-column: 1 / -1; border: 1px solid var(--line); border-left: 4px solid var(--s-at_risk); border-radius: 6px; padding: 10px 12px; background: var(--card); }
.extra-seat p { margin: 0 0 8px; }
.billing-bar a { color: inherit; font-weight: 600; }
