/* RST App - brick red, charcoal, concrete gray, truck gold.
   Big targets everywhere: crew use this with gloves, in sunlight. */
:root {
  --brick: #8e2a1f;
  --brick-dark: #6f1f16;
  --charcoal: #2b2d2f;
  --concrete: #b9b6ae;
  --concrete-light: #e7e5df;
  --paper: #f6f5f2;
  --gold: #f2b705;
  --gold-soft: #fff3c4;
  --ok: #2f6b3a;
  --err: #a3271a;
  --text: #24262a;
  --muted: #5f6166;
  --radius: 6px;
  --tap: 48px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Barlow", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background: var(--paper);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Header: brick bar, thin wide-spaced title like the website */
.topbar {
  background: var(--brick);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  padding: calc(.75rem + env(safe-area-inset-top, 0px)) 1.25rem .75rem;
  border-bottom: 4px solid var(--charcoal);
}
.brand { color: #fff; text-decoration: none; }
.brand-name {
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .32em;
  font-size: 1.15rem;
  white-space: nowrap;
}
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; }
.nav a, .nav .linkish {
  color: #fff;
  text-decoration: none;
  font: inherit;
  font-weight: 500;
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
  padding: 0 .25rem;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav a:hover, .nav .linkish:hover { text-decoration: underline; text-underline-offset: 4px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.foot { text-align: center; color: var(--muted); font-size: .85rem; padding: 1.5rem 1rem 2rem; }

h1 { font-size: 1.6rem; font-weight: 600; margin: 0 0 .75rem; color: var(--charcoal); }
h2 { font-size: 1.2rem; font-weight: 600; margin: 1.75rem 0 .5rem; color: var(--charcoal); }
p { max-width: 70ch; }
a { color: var(--brick); }

.panel {
  background: #fff;
  border: 1px solid var(--concrete);
  border-top: 4px solid var(--charcoal);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}
.panel.narrow { max-width: 440px; margin-left: auto; margin-right: auto; }

/* Forms */
label { display: block; font-weight: 600; margin: 1rem 0 .3rem; }
.hint { color: var(--muted); font-size: .9rem; font-weight: 400; }
input[type=text], input[type=password], input[type=email], select {
  width: 100%;
  min-height: var(--tap);
  font: inherit;
  font-size: 1.05rem;
  padding: .5rem .75rem;
  border: 2px solid var(--concrete);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
}
input:focus, select:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--charcoal); }
.check { display: flex; align-items: center; gap: .6rem; font-weight: 500; min-height: var(--tap); }
.check input { width: 24px; height: 24px; accent-color: var(--brick); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: .5rem 1.25rem;
  font: inherit;
  font-weight: 600;
  letter-spacing: .02em;
  color: #fff;
  background: var(--brick);
  border: 0;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--brick-dark); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn.full { width: 100%; margin-top: 1.25rem; font-size: 1.1rem; }
.btn.quiet { background: var(--concrete-light); color: var(--charcoal); border: 1px solid var(--concrete); }
.btn.quiet:hover { background: var(--concrete); }
.btn.small { min-height: 38px; padding: .25rem .8rem; font-size: .95rem; }
form.inline { display: inline; margin: 0; }

.flash { padding: .85rem 1rem; border-radius: var(--radius); margin-bottom: 1.25rem; font-weight: 500; border-left: 6px solid; }
.flash-ok { background: #e8f2ea; border-color: var(--ok); }
.flash-err { background: #f9e4e1; border-color: var(--err); }
.error { color: var(--err); font-weight: 600; }

/* The one-time password callout uses the truck gold */
.temp-pass {
  background: var(--gold-soft);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}
.temp-pass code { font-size: 1.35rem; font-weight: 700; letter-spacing: .06em; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--concrete-light); vertical-align: middle; }
th { font-family: "Barlow Condensed", "Barlow", sans-serif; font-weight: 600; font-size: 1rem; color: var(--muted); border-bottom: 2px solid var(--concrete); }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.inactive td { color: var(--muted); }
.tag { display: inline-block; padding: .05rem .5rem; border-radius: 999px; font-size: .85rem; font-weight: 600; background: var(--concrete-light); color: var(--charcoal); }
.tag.admin { background: var(--charcoal); color: #fff; }
.tag.office { background: var(--brick); color: #fff; }
.tag.crew { background: var(--gold); color: var(--charcoal); }
.tag.warn { background: var(--gold-soft); color: var(--charcoal); border: 1px solid var(--gold); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0; border: 1px solid var(--concrete); border-radius: var(--radius); background: #fff; }
.stats div { padding: 1rem 1.25rem; border-right: 1px solid var(--concrete-light); border-bottom: 1px solid var(--concrete-light); }
.stats strong { display: block; font-size: 1.6rem; font-weight: 600; color: var(--charcoal); font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); }

.row-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
  .brand-name { letter-spacing: .2em; font-size: 1rem; }
  body { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Customers and sites ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem 1rem; margin: .25rem 0 1rem; }
.page-head h1, .page-head h2 { margin-bottom: .25rem; }
.crumbs { margin: 0 0 .25rem; font-size: .95rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.sub { margin: 0; color: var(--muted); font-size: 1.05rem; }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
a.strong { text-decoration: none; }
a.strong:hover { text-decoration: underline; text-underline-offset: 3px; }

.searchbar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .4rem; }
.searchbar input[type=search] {
  flex: 1 1 260px; min-height: 54px; font: inherit; font-size: 1.15rem; padding: .5rem .9rem;
  border: 2px solid var(--charcoal); border-radius: var(--radius); background: #fff;
}
.searchbar input[type=search]:focus { outline: 3px solid var(--gold); outline-offset: 1px; }
.searchbar select { flex: 0 0 auto; width: auto; min-height: 54px; }
.searchbar .btn { min-height: 54px; }
.searchbar.big { margin: 0 0 1.25rem; }

table.results td { padding-top: .75rem; padding-bottom: .75rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.cards .panel { margin: 0; }
.cards h2, .panel.notes h2 { margin-top: 0; font-size: 1.05rem; }
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { padding: .35rem 0; border-bottom: 1px solid var(--concrete-light); }
ul.plain li:last-child { border-bottom: 0; }
.kind { display: inline-block; min-width: 4.5rem; font-family: "Barlow Condensed", "Barlow", sans-serif; font-weight: 600; color: var(--muted); }
address { font-style: normal; }
dl.facts { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; margin: 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; font-weight: 500; }

/* History: one line per transaction, tap to open its lines */
.history { border: 1px solid var(--concrete); border-radius: var(--radius); background: #fff; }
.history details { border-bottom: 1px solid var(--concrete-light); }
.history details:last-child { border-bottom: 0; }
.history summary {
  display: grid; grid-template-columns: 6.5rem 1fr auto; gap: .2rem 1rem; align-items: baseline;
  padding: .65rem 1rem; cursor: pointer; list-style: none; min-height: var(--tap);
}
.history summary::-webkit-details-marker { display: none; }
.history summary:hover { background: var(--paper); }
.history details[open] summary { background: var(--concrete-light); }
.h-date { font-variant-numeric: tabular-nums; font-weight: 600; }
.h-meta { grid-column: 2; color: var(--muted); font-size: .9rem; }
.h-total { grid-column: 3; grid-row: 1; font-variant-numeric: tabular-nums; font-weight: 600; }
table.lines { margin: 0; font-size: .95rem; }
table.lines th, table.lines td { padding: .4rem 1rem; }

/* Forms with repeating rows */
textarea {
  width: 100%; font: inherit; font-size: 1.05rem; padding: .5rem .75rem; line-height: 1.4;
  border: 2px solid var(--concrete); border-radius: var(--radius); background: #fff; color: var(--text); resize: vertical;
}
textarea:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--charcoal); }
input[type=tel], input[type=date], input[type=search] { font: inherit; }
input[type=tel], input[type=date] {
  width: 100%; min-height: var(--tap); font-size: 1.05rem; padding: .5rem .75rem;
  border: 2px solid var(--concrete); border-radius: var(--radius); background: #fff; color: var(--text);
}
input.short { max-width: 9rem; }
.rows { display: grid; gap: .5rem; }
.row { display: grid; gap: .5rem; align-items: center; }
.phone-row { grid-template-columns: 9rem minmax(10rem, 1fr) 6rem minmax(8rem, 1.3fr); }
.email-row { grid-template-columns: 9rem minmax(12rem, 1.5fr) minmax(8rem, 1fr); }
.contact-row { grid-template-columns: 1.3fr 1fr 1fr 1.3fr; }
.grid-2.tight { gap: 0 .75rem; }
.warn-panel { border-top-color: var(--gold); background: var(--gold-soft); }
.sticky-actions {
  position: sticky; bottom: 0; background: var(--paper); padding: .75rem 0 calc(.75rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--concrete); margin-top: .5rem;
}
@media (max-width: 760px) {
  .phone-row, .email-row, .contact-row { grid-template-columns: 1fr 1fr; padding-bottom: .75rem; border-bottom: 1px dashed var(--concrete); }
  .history summary { grid-template-columns: 1fr auto; }
  .h-what, .h-meta { grid-column: 1 / -1; }
  .h-total { grid-column: 2; grid-row: 1; }
}

/* ---------- Schedule, dispatch, production ---------- */
.weekstrip { display: flex; gap: .25rem; align-items: stretch; margin: .5rem 0; overflow-x: auto; }
.wk-day, .wk-arrow {
  flex: 1 0 64px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 60px; padding: .3rem; border: 1px solid var(--concrete); border-radius: var(--radius);
  background: #fff; color: var(--charcoal); text-decoration: none; line-height: 1.2;
}
.wk-arrow { flex: 0 0 44px; font-size: 1.6rem; }
.wk-day span { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.wk-day small { font-size: .8rem; color: var(--brick); font-weight: 600; min-height: 1em; }
.wk-day.today { border-color: var(--charcoal); border-width: 2px; }
.wk-day.on { background: var(--brick); border-color: var(--brick); color: #fff; }
.wk-day.on span, .wk-day.on small { color: #fff; }
.viewbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.oncall { background: #e6e9f2; border-left: 5px solid #5865a8; padding: .35rem .75rem; border-radius: var(--radius); }
.btn.on { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }
.day-head { margin-top: .5rem; }
.day-head .hint { font-size: .95rem; font-weight: 400; margin-left: .5rem; }
h3.group { margin: 1.25rem 0 .4rem; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

.daynotes { display: grid; gap: .35rem; margin-bottom: .75rem; }
.daynote { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem .8rem; border-radius: var(--radius);
  background: var(--concrete-light); border-left: 5px solid var(--charcoal); margin-bottom: .35rem; }
.daynote.truck_down, .wk-note.truck_down { border-left-color: var(--err); background: #f9e4e1; }
.daynote.cdl_busy, .wk-note.cdl_busy, .daynote.no_deliveries, .wk-note.no_deliveries { border-left-color: var(--gold); background: var(--gold-soft); }

.job {
  display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; padding: .75rem 1rem; margin-bottom: .5rem;
  background: #fff; border: 1px solid var(--concrete); border-left: 6px solid var(--charcoal); border-radius: var(--radius);
}
.job.urgent { border-left-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.job.hold { border-left-style: dashed; }
.job.done { opacity: .7; }
.job.canceled { opacity: .55; border-left-color: var(--concrete); }
.job.canceled .job-title { text-decoration: line-through; }
.job-title { font-weight: 600; color: var(--charcoal); text-decoration: none; font-size: 1.05rem; }
a.job-title:hover { text-decoration: underline; }
.job-when { font-weight: 500; }
.job-when.set { display: inline-block; background: var(--gold); color: var(--charcoal); padding: 0 .45rem; border-radius: 4px; font-weight: 700; }
.job-where { color: var(--muted); }
.job-notes { font-size: .92rem; color: var(--text); background: var(--paper); padding: .25rem .5rem; border-radius: 4px; margin-top: .25rem; white-space: pre-line; }
.job-side { display: flex; flex-wrap: wrap; gap: .3rem; align-content: flex-start; justify-content: flex-end; max-width: 16rem; }
.job-warn { grid-column: 1 / -1; margin: .25rem 0 0; padding: .4rem .75rem .4rem 1.75rem; background: var(--gold-soft);
  border: 1px solid var(--gold); border-radius: 4px; font-weight: 500; }
.tag.collect { background: var(--gold); color: var(--charcoal); font-weight: 700; }
.tag.truck { background: var(--charcoal); color: #fff; }
.tag.ghost { background: transparent; border: 1px dashed var(--concrete); color: var(--muted); }

.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .4rem; }
.week-day { background: #fff; border: 1px solid var(--concrete); border-radius: var(--radius); padding: .4rem; min-height: 8rem; }
.week-day.today { border: 2px solid var(--charcoal); }
.week-day h3 { margin: 0 0 .35rem; font-size: .95rem; }
.week-day h3 a { color: var(--charcoal); }
.wk-note { font-size: .8rem; padding: .15rem .35rem; border-left: 4px solid var(--charcoal); background: var(--concrete-light); margin-bottom: .2rem; border-radius: 3px; }
.wk-job { display: block; font-size: .8rem; line-height: 1.25; padding: .2rem .35rem; margin-bottom: .2rem; border-radius: 3px;
  background: #e6e9f2; color: var(--charcoal); text-decoration: none; overflow-wrap: anywhere; }
.wk-job.urgent { background: var(--gold-soft); }
.wk-job.canceled { text-decoration: line-through; opacity: .6; }
@media (max-width: 900px) { .week { grid-template-columns: 1fr; } .week-day { min-height: 0; } }

.loadbar { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0 1rem; }
.load { padding: .35rem .7rem; border: 1px solid var(--concrete); border-radius: 999px; background: #fff; }
.load.over { background: var(--gold-soft); border-color: var(--gold); font-weight: 700; }
.load.down { background: #f9e4e1; border-color: var(--err); }
.job.dispatch { grid-template-columns: 1fr minmax(0, 22rem); }
.assign { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .6rem; }
.assign label { margin: 0; font-size: .85rem; font-weight: 600; color: var(--muted); }
.assign select, .assign input { width: 100%; min-height: var(--tap); font: inherit; font-size: 1rem; padding: .3rem .5rem;
  border: 2px solid var(--concrete); border-radius: var(--radius); background: #fff; }
@media (max-width: 700px) { .job, .job.dispatch { grid-template-columns: 1fr; } .job-side { justify-content: flex-start; max-width: none; } }

.prod { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; align-items: center; padding: .9rem 1rem; margin-bottom: .6rem;
  background: #fff; border: 1px solid var(--concrete); border-left: 6px solid var(--brick); border-radius: var(--radius); }
.prod.ready { border-left-color: var(--ok); }
.prod.late { border-left-color: var(--gold); }
.prod-what { font-size: 1.15rem; font-weight: 700; color: var(--charcoal); }
.prod-extras { margin: .2rem 0; }
.prod-actions { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-end; }
.btn.big-ready { min-height: 64px; padding: .5rem 1.5rem; font-size: 1.15rem; background: var(--ok); }
.btn.big-ready:hover { background: #24542d; }
@media (max-width: 640px) { .prod { grid-template-columns: 1fr; } .btn.big-ready { width: 100%; } }

fieldset.flags, fieldset.dig { border: 1px solid var(--concrete); border-radius: var(--radius); padding: .5rem 1rem; margin: 1rem 0; }
fieldset.flags legend, fieldset.dig legend { padding: 0 .35rem; font-weight: 600; }
input[type=time], input[type=number] { min-height: var(--tap); font: inherit; font-size: 1.05rem; padding: .5rem .75rem;
  border: 2px solid var(--concrete); border-radius: var(--radius); background: #fff; width: 100%; }

/* ---------- Quotes ---------- */
body.wide .wrap { max-width: 1280px; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .75rem; }
.tpl-card { display: flex; flex-direction: column; gap: .3rem; text-align: left; padding: 1rem; min-height: 110px; cursor: pointer;
  font: inherit; background: #fff; border: 1px solid var(--concrete); border-top: 4px solid var(--brick); border-radius: var(--radius); color: var(--text); }
.tpl-card:hover, .tpl-card:focus-visible { border-color: var(--charcoal); box-shadow: 0 0 0 2px var(--gold); }
.tpl-card.own { border-top-color: var(--gold); }
.tpl-card strong { font-size: 1.1rem; color: var(--charcoal); }
.tpl-card small { color: var(--muted); margin-top: auto; }

.qe-table { min-width: 760px; }
.qe-table th, .qe-table td { padding: .25rem .35rem; vertical-align: top; }
.qe-table input, .qe-table select, .qe-table textarea {
  width: 100%; min-height: 40px; font: inherit; font-size: 1rem; padding: .3rem .45rem;
  border: 1px solid var(--concrete); border-radius: 4px; background: #fff; }
.qe-table textarea { resize: vertical; overflow: hidden; line-height: 1.35; }
.qe-q { width: 5.5rem; } .qe-p { width: 8rem; } .qe-m { width: 9.5rem; } .qe-a { width: 7rem; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-top: .6rem !important; }
.qe-x { width: 7rem; white-space: nowrap; }
.qe-p select { margin-top: .2rem; font-size: .85rem; min-height: 32px; }
.qe-btn { min-width: 32px; min-height: 36px; border: 1px solid var(--concrete); background: var(--concrete-light); border-radius: 4px; cursor: pointer; }
.qe-del { color: var(--err); }
.qe-row.qe-off td:not(.qe-x) { opacity: .55; }
.qe-note .qe-notetext { font-style: italic; background: var(--paper); }
.qe-add { margin-top: .75rem; align-items: center; }
.qe-add input[type=text] { flex: 1 1 320px; min-height: var(--tap); font: inherit; padding: .4rem .7rem; border: 2px solid var(--concrete); border-radius: var(--radius); }
.qe-sum { max-width: 22rem; margin-left: auto; }
.qe-sum th { text-align: left; font-weight: 500; color: var(--muted); border: 0; }
.qe-sum td { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.qe-sum .grand th, .qe-sum .grand td { font-size: 1.3rem; color: var(--charcoal); border-top: 2px solid var(--charcoal); }
.inline-pct { display: flex; align-items: center; gap: .4rem; margin: -.4rem 0 .4rem 2.2rem; }
.inline-pct input { max-width: 5rem; min-height: 38px; }

.quote-actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: flex-start; margin-bottom: 1rem; }
details.qa > summary { list-style: none; display: inline-flex; }
details.qa > summary::-webkit-details-marker { display: none; }
details.qa[open] { flex-basis: 100%; }
details.qa .panel { margin-top: .5rem; max-width: 560px; }
.quote-paper { background: #fff; border: 1px solid var(--concrete); box-shadow: 0 1px 4px rgba(0,0,0,.08); margin: 0 auto 2rem; max-width: 8.5in; }
table.parts td { padding: .3rem .4rem; }
table.parts input[type=text] { width: 100%; min-height: 38px; font: inherit; padding: .25rem .5rem; border: 1px solid var(--concrete); border-radius: 4px; }
table.parts select { min-height: 38px; font: inherit; }
table.parts .new-part td { background: var(--gold-soft); }

@media print {
  .topbar, .foot, .no-print, .flash { display: none !important; }
  body, .wrap { background: #fff !important; padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .quote-paper { border: 0; box-shadow: none; max-width: none; margin: 0; }
  .qb { padding: 0; }
  @page { size: letter; margin: .5in; }
}

/* Parts & prices: find a part (everyone) and the smaller customer-price search (admins) */
.searchbar-label { flex: 1 0 100%; font-weight: 600; }
.part-filter { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 1rem 0 .6rem; padding: .6rem; background: var(--gold-soft); border-radius: 6px; }
.part-filter input[type=search] { flex: 1 1 18rem; min-height: 48px; font: inherit; font-size: 1.05rem; padding: .3rem .7rem; border: 2px solid var(--charcoal); border-radius: 6px; }
.part-filter select { min-height: 48px; font: inherit; }
tr.part-row[hidden] { display: none; }

/* Wall-form tanks and commissions */
.tag.wall { background: var(--charcoal); color: #fff; letter-spacing: .04em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kpis { display: flex; flex-wrap: wrap; gap: 1rem 2.2rem; }
.kpis > div { display: flex; flex-direction: column; }
.kpi-n { font-family: 'Barlow Condensed', sans-serif; font-size: 1.9rem; font-weight: 600; line-height: 1.1; }
.kpi-n.owed { color: var(--brick, #8e2a1f); }
.totals-panel form { margin-top: 1rem; align-items: center; }
table.wf td { padding: .35rem .4rem; vertical-align: top; }
table.wf input[type=date], table.wf input[type=text], table.wf input[type=number] { min-height: 38px; font: inherit; padding: .2rem .35rem; border: 1px solid var(--concrete); border-radius: 4px; }
table.wf input.tiny { width: 4.2rem; }
table.wf input.missing { border-color: var(--gold); background: var(--gold-soft); }
table.wf tr.unpaid td:first-child { box-shadow: inset 4px 0 0 var(--gold); }
.ask-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .45rem 0; border-bottom: 1px solid var(--concrete); }
.ask-row > span { flex: 1 1 20rem; }
.wall-sel { margin-top: .3rem; }
@media print { table.wf input { border: 0; background: none; padding: 0; } table.wf input[type=checkbox] { display: none; } }

/* New quote: start from a past quote */
.past-q { display: flex; gap: .7rem; align-items: flex-start; padding: .5rem 0; border-bottom: 1px solid var(--concrete); }
.past-q .btn { flex: 0 0 auto; }
