/* The DSS app's own pages: sign-in, setup, users, jobs, audit, messages.
   The plan-set family on a working screen: ruled square panels on the light grey wash,
   drawing-note labels, stamps for status, Montserrat for names and figures, Source Sans 3
   for everything read or typed. Tokens: dss-tokens.css. */

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--dss-field) var(--dss-wash); }
body { margin: 0; min-height: 100dvh; background: var(--dss-wash); color: var(--dss-ink);
  font: 400 16px/1.5 var(--dss-text); -webkit-tap-highlight-color: transparent; }
::selection { background: rgba(11, 87, 139, 0.2); }
a { color: var(--dss-blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--dss-blue-ink); }
:focus-visible { outline: 2.5px solid var(--dss-blue); outline-offset: 2px; border-radius: 2px; }
input, select, textarea, button { font: inherit; color: inherit; }
button, select, a, label { touch-action: manipulation; }
/* keyboard users jump past the bar; hidden until focused */
.skip { position: absolute; left: 12px; top: -60px; z-index: 40; padding: 10px 14px; background: var(--dss-paper); color: var(--dss-ink);
  border: 2px solid var(--dss-ink); font: 700 14px/1 var(--dss-display); text-decoration: none; }
.skip:focus { top: 8px; }
input, textarea { caret-color: var(--dss-blue); }
code { font: 600 14px/1.2 var(--dss-text); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

.page { max-width: 1160px; margin: 0 auto; padding: 28px 24px 72px; }

/* ---------- sheet head ---------- */
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 24px; flex-wrap: wrap;
  margin: 0 0 22px; padding-bottom: 18px; border-bottom: 1.5px solid var(--dss-ink); }
.head > div:first-child { min-width: 0; flex: 1 1 420px; }
.head h1 { margin: 0; font: 800 28px/1.12 var(--dss-display); letter-spacing: -0.02em; text-wrap: balance; overflow-wrap: anywhere; }
.head p { margin: 7px 0 0; color: var(--dss-muted); font-size: 15.5px; max-width: 72ch; }
.head p.email { overflow-wrap: anywhere; }
.head .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.back { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; margin: -8px 0 4px; font: 700 14px/1 var(--dss-display);
  text-decoration: none; }
.back svg { width: 17px; height: 17px; }
.back:hover { text-decoration: underline; }

/* drawing-note label: caps on a heavy rule with a thin echo */
.label { margin: 0 0 16px; font: 700 12px/1 var(--dss-display); letter-spacing: 0.09em; text-transform: uppercase; color: var(--dss-ink); }
.label span { display: inline-block; padding-bottom: 5px; border-bottom: 2px solid var(--dss-ink); box-shadow: 0 3px 0 -2px var(--dss-ink); }
.key { display: block; font: 700 11.5px/1.15 var(--dss-display); letter-spacing: 0.09em; text-transform: uppercase; color: var(--dss-charcoal); }

/* ---------- panels ---------- */
.panel { background: var(--dss-paper); border: 1.5px solid var(--dss-ink); padding: 20px 22px 22px; min-width: 0; }
.panel > p { margin: 0 0 14px; }
.panel .hint, .hint { margin: 12px 0 0; color: var(--dss-muted); font-size: 14.5px; }
.form > .hint { margin: 0; }
.panel.flag { background: var(--dss-flag-wash); border-color: var(--dss-flag-line); color: var(--dss-flag); margin-bottom: 20px; }
.panel.flag .label { color: var(--dss-flag); }
.panel.flag .label span { border-color: var(--dss-flag); box-shadow: 0 3px 0 -2px var(--dss-flag); }
.panel.flag ul { margin: 0; padding-left: 20px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-areas: "list add"; gap: 24px; align-items: start; }
.split .add { grid-area: add; }
.split .people { grid-area: list; min-width: 0; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.stack { display: grid; gap: 18px; }

/* ---------- notes ---------- */
.note { margin: 0 0 18px; padding: 12px 14px; border: 1.5px solid; font-size: 15.5px; line-height: 1.4; }
.note.ok { background: var(--dss-blue-wash); border-color: var(--dss-blue); color: var(--dss-blue-ink); }
.note.err { background: var(--dss-error-wash); border-color: var(--dss-error); color: var(--dss-error); font-weight: 600; }
.note.flag { background: var(--dss-flag-wash); border-color: var(--dss-flag-line); color: var(--dss-flag); overflow-wrap: anywhere; }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.field { display: flex; flex-direction: column; gap: 7px; margin: 0; min-width: 0; }
.field small { color: var(--dss-muted); font-size: 14px; line-height: 1.35; }
.field small.err, .seg small.err { color: var(--dss-error); font-weight: 600; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="date"], input:not([type]), select {
  width: 100%; height: 46px; margin: 0; padding: 0 12px; border: 1.5px solid var(--dss-field); border-radius: var(--dss-r-field);
  background: var(--dss-paper); color: var(--dss-ink); font: 400 16px/1.2 var(--dss-text);
  transition: border-color 140ms var(--dss-ease), box-shadow 140ms var(--dss-ease); }
select { padding-right: 38px; -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--dss-ink) 50%), linear-gradient(135deg, var(--dss-ink) 50%, transparent 50%);
  background-position: right 17px center, right 12px center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
input::placeholder { color: var(--dss-muted); opacity: 1; }
input:hover, select:hover { border-color: var(--dss-charcoal); }
input:focus, select:focus { outline: none; border-color: var(--dss-blue); box-shadow: var(--dss-focus); }
.field.bad input, .field.bad select { border-color: var(--dss-error); }
input[readonly] { background: var(--dss-wash); }
input[type="date"] { -webkit-appearance: none; appearance: none; font-variant-numeric: tabular-nums; }
input[type="date"]::-webkit-date-and-time-value { text-align: left; }

fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend.key { margin-bottom: 8px; padding: 0; }
.choices { display: flex; flex-direction: column; }
.choice { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; padding: 11px 12px;
  border: 1px solid var(--dss-rule); border-top-width: 0; cursor: pointer; background: var(--dss-paper);
  transition: background-color 140ms var(--dss-ease); }
.choice:first-of-type { border-top-width: 1px; }
.choice:hover { background: #f8fafb; }
.choice:has(input:checked) { background: var(--dss-blue-wash); }
.choice input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--dss-blue); }
.choice b { display: block; font: 700 14.5px/1.25 var(--dss-display); }
.choice small { display: block; margin-top: 2px; color: var(--dss-muted); font-size: 14px; line-height: 1.35; }

/* permission boxes on a person's page */
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.perms .perm-note { margin: -2px 0 10px; color: var(--dss-charcoal); font-size: 14.5px; }
.choice.fixed { cursor: default; }
.choice.fixed:hover { background: var(--dss-blue-wash); }
.choice input:disabled { accent-color: var(--dss-charcoal); }

.seg { display: flex; flex-wrap: wrap; align-items: stretch; }
.seg legend { width: 100%; }
.seg label { position: relative; flex: 1 1 0; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; height: 46px; padding: 0 18px; border: 1.5px solid var(--dss-ink);
  background: var(--dss-paper); font: 700 14px/1 var(--dss-display); transition: background-color 140ms var(--dss-ease); }
.seg label + label span { border-left-width: 0; }
.seg label:first-of-type span { border-radius: var(--dss-r-field) 0 0 var(--dss-r-field); }
.seg label:last-of-type span { border-radius: 0 var(--dss-r-field) var(--dss-r-field) 0; }
.seg label:hover span { background: var(--dss-blue-wash); }
.seg input:checked + span { background: var(--dss-blue); border-color: var(--dss-blue-ink); color: #fff; }
.seg input:focus-visible + span { outline: 2.5px solid var(--dss-blue); outline-offset: 2px; }
.seg small { width: 100%; margin-top: 6px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin: 0; padding: 0 18px;
  border: 1.5px solid var(--dss-ink); border-radius: var(--dss-r-button); background: var(--dss-paper); color: var(--dss-ink);
  font: 700 14.5px/1.1 var(--dss-display); letter-spacing: 0.01em; text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color 160ms var(--dss-ease), border-color 160ms var(--dss-ease), transform 120ms var(--dss-ease); }
.btn:hover { background: var(--dss-wash); color: var(--dss-ink); }
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--dss-blue); border-color: var(--dss-blue-ink); color: #fff; }
.btn.primary:hover { background: var(--dss-blue-ink); }
.btn.danger { border-color: var(--dss-error); color: var(--dss-error); }
.btn.danger:hover { background: var(--dss-error-wash); }
.btn:disabled, .btn:disabled:hover { background: var(--dss-disabled-bg); border-color: var(--dss-disabled-bg); color: var(--dss-disabled-fg); cursor: not-allowed; transform: none; }
.btn.wide { width: 100%; }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.form > .btn { align-self: flex-start; }
.form > .btn.wide { align-self: stretch; }

/* ---------- stamps and chips ---------- */
.stamp { display: inline-flex; align-items: center; padding: 4px 8px 5px; border: 2px solid var(--dss-blue); border-radius: var(--dss-r-field);
  color: var(--dss-blue); font: 800 11.5px/1 var(--dss-display); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  transform: rotate(-3deg); }
.stamp.dash { border-style: dashed; border-color: var(--dss-charcoal); color: var(--dss-charcoal); transform: none; }
.stamp.err { border-color: var(--dss-error); color: var(--dss-error); transform: none; }
.chip { display: inline-block; padding: 4px 7px; border: 1px solid var(--dss-blue); border-radius: var(--dss-r-field);
  color: var(--dss-blue); font: 700 11px/1 var(--dss-display); letter-spacing: 0.08em; text-transform: uppercase; }
.chip.closed { border-color: var(--dss-charcoal); border-style: dashed; color: var(--dss-charcoal); }
.none { color: var(--dss-muted); font-style: italic; }
.list td small.you { display: inline-block; color: var(--dss-blue); margin-top: 4px; font: 700 10.5px/1 var(--dss-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dss-blue); }

/* ---------- ruled list table ---------- */
.list { width: 100%; border-collapse: collapse; background: var(--dss-paper); border: 1.5px solid var(--dss-ink); font-variant-numeric: tabular-nums; }
.list th { position: sticky; top: 0; z-index: 1; padding: 11px 14px; background: var(--dss-paper); border-bottom: 1.5px solid var(--dss-ink);
  text-align: left; font: 700 11px/1.1 var(--dss-display); letter-spacing: 0.09em; text-transform: uppercase; color: var(--dss-charcoal); white-space: nowrap; }
.list td { padding: 12px 14px; border-bottom: 1px solid var(--dss-rule); vertical-align: middle; }
.list tbody tr:last-child td { border-bottom: 0; }
.list tbody tr:hover { background: #f7f9fb; }
/* after a save the page opens on the row just changed: mid-screen (clear of the sticky header), washed blue */
.list tbody tr { scroll-margin-top: 40vh; }
.list tbody tr:target, .list tbody tr:target td { background: var(--dss-blue-wash); }
.list tr.done td { color: var(--dss-muted); }
.list td small { display: block; color: var(--dss-muted); font-size: 14px; overflow-wrap: anywhere; }
.list td small.paused { margin-top: 6px; color: var(--dss-flag); font-weight: 600; }
.list .c-person a { color: var(--dss-ink); text-decoration: none; }
.list .c-person a:hover b { text-decoration: underline; }
.list .c-person b { font: 700 15.5px/1.25 var(--dss-display); overflow-wrap: anywhere; }
.list tr.done .c-person b { color: var(--dss-muted); }
.list .c-job a { color: var(--dss-ink); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.list tr.done .c-job a { color: var(--dss-muted); }
.list .open { color: var(--dss-charcoal); font-size: 15px; }
.list .c-job a:hover { text-decoration: underline; }
.job-no { font: 800 18px/1 var(--dss-display); color: var(--dss-blue); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.job-no.big { font-size: inherit; margin-right: 6px; }
.list tr.done .job-no { color: var(--dss-muted); }
.list .c-no { width: 96px; }
.list.audit td { font-size: 15px; vertical-align: top; }
.list.audit .c-when { white-space: nowrap; }
.list.audit .c-detail { color: var(--dss-charcoal); overflow-wrap: anywhere; }
.count { margin: 0 0 10px; color: var(--dss-muted); font-size: 14.5px; }
.empty { padding: 36px 22px; background: var(--dss-paper); border: 1.5px dashed var(--dss-field); text-align: center; }
.empty b { font: 800 18px/1.2 var(--dss-display); }
.empty p { margin: 6px 0 0; color: var(--dss-muted); }

/* ---------- jobs filters and edit form ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 0 0 16px; }
.filters .grow { flex: 1 1 260px; }
.filters .field:not(.grow) { flex: 0 1 200px; }
.filters .clear { align-self: center; padding: 10px 2px; font-size: 15px; }
.job-form { max-width: 820px; }
.job-form .row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: start; }
.job-form .row.pm-row { grid-template-columns: minmax(0, 1fr) 260px; }

/* ---------- setup link to send ---------- */
.sent { margin-bottom: 22px; border: 2px solid var(--dss-blue); }
.sent .copy { display: flex; gap: 10px; }
.sent .copy input { flex: 1; min-width: 0; font-size: 16px; }

/* ---------- history ---------- */
.history { margin-top: 28px; }
.log { margin: 0; padding: 0; list-style: none; background: var(--dss-paper); border: 1px solid var(--dss-rule); }
.log li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 10px 14px; border-top: 1px solid var(--dss-hair); font-size: 15px; }
.log li:first-child { border-top: 0; }
.log time { color: var(--dss-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.log span { overflow-wrap: anywhere; }

/* ---------- labor PDF-only week ---------- */
.pdf-frame { height: calc(100dvh - 260px); min-height: 520px; background: var(--dss-paper); border: 1.5px solid var(--dss-ink); }
.pdf-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.btn .ic { width: 16px; height: 16px; flex: none; }

/* ---------- the cover sheet: sign-in and setup ---------- */
body.cover { background: var(--dss-wash); }
.cover-wrap { display: grid; place-items: center; min-height: 100dvh; padding: 40px 24px; }
.sheet { width: min(100%, 900px); padding: 5px; background: var(--dss-paper); border: 1.6px solid var(--dss-ink);
  box-shadow: 0 1px 2px rgba(20, 30, 40, 0.14), 0 14px 36px rgba(20, 30, 40, 0.1); }
.frame { border: 1px solid var(--dss-charcoal); }
.tf { display: flex; align-items: stretch; height: 92px; background: var(--dss-blue); color: #fff; border-bottom: 2px solid var(--dss-ink); }
.tf-tab { display: flex; align-items: center; justify-content: center; flex: none; width: 104px; background: var(--dss-paper);
  border-right: 2px solid var(--dss-ink); }
.tf-tab img { display: block; width: 76px; height: auto; }
.tf-text { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 0 26px; }
.tf-text h1 { margin: 0; font: 800 27px/1.05 var(--dss-display); letter-spacing: -0.015em; }
.tf-text p { margin: 6px 0 0; font: 600 13px/1.2 var(--dss-display); color: var(--dss-on-blue); letter-spacing: 0.02em; }
.sheet-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; }
.sheet-main { padding: 28px 30px 30px; min-width: 0; }
.sheet-main .form { max-width: 420px; }
.sheet-main .for { margin: 0; font-size: 16px; }
.sheet-main .for b { font-weight: 600; }
.sheet-main .for .email { display: block; color: var(--dss-muted); overflow-wrap: anywhere; }
.sheet-main .fine { margin: 0; color: var(--dss-muted); font-size: 14px; }
.sheet-main .dead { margin: 0; font: 800 21px/1.2 var(--dss-display); letter-spacing: -0.01em; }
.sheet-main p { margin: 0; }
.sheet-index { padding: 28px 26px 30px; border-left: 1px solid var(--dss-rule); }
.sheet-index dl { margin: 0; }
.sheet-index dl > div { padding: 11px 0 12px; border-top: 1px solid var(--dss-hair); }
.sheet-index dl > div:first-child { border-top: 0; padding-top: 0; }
.sheet-index dt { font: 700 14.5px/1.25 var(--dss-display); }
.sheet-index dd { margin: 3px 0 0; color: var(--dss-muted); font-size: 14.5px; line-height: 1.4; }
.tb { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1.6px solid var(--dss-ink); }
.tb > div { display: flex; flex-direction: column; gap: 5px; padding: 11px 16px 13px; border-left: 1px solid var(--dss-charcoal); min-width: 0; }
.tb > div:first-child { border-left: 0; }
.tb .key { font-size: 10px; }
.tb span:last-child { font-size: 14.5px; line-height: 1.3; }

/* ---------- tablet and phone ---------- */
@media (max-width: 980px) {
  .split { grid-template-columns: minmax(0, 1fr); grid-template-areas: "list" "add"; }
  .split.adding { grid-template-areas: "add" "list"; }   /* a form with an error comes first */
  .grid2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .page { padding: 20px 16px 56px; }
  .head h1 { font-size: 24px; }
  .head .actions { width: 100%; }
  .head .actions .btn { flex: 1 1 auto; }
  .panel { padding: 18px 16px 20px; }
  .job-form .row, .job-form .row.pm-row, .row2 { grid-template-columns: minmax(0, 1fr); }
  .filters .field:not(.grow) { flex: 1 1 140px; }
  .filters .btn { flex: 1 1 100%; }
  .sent .copy { flex-direction: column; }
  .log li { grid-template-columns: minmax(0, 1fr); gap: 2px; }

  /* tables become stacked rows */
  .list, .list tbody, .list tr, .list td { display: block; width: 100%; }
  .list thead { display: none; }
  .list tr { position: relative; padding: 12px 14px; border-bottom: 1px solid var(--dss-rule); }
  .list tbody tr:last-child { border-bottom: 0; }
  .list td { padding: 0; border: 0; }
  /* each value keeps its column's name, set as a key like the title block's */
  .list td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 3px;
    font: 700 10.5px/1.15 var(--dss-display); letter-spacing: 0.09em; text-transform: uppercase; color: var(--dss-charcoal); }
  .list td[data-label]:empty { display: none; }
  .list.jobs tr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px 14px; align-items: start; }
  .list.jobs .c-no { width: auto; grid-row: 1; grid-column: 1; }
  .list.jobs .c-job { grid-row: 1; grid-column: 2; }
  .list.jobs .c-status { grid-row: 1; grid-column: 3; }
  .list.jobs .c-pm { grid-row: 2; grid-column: 2 / 4; color: var(--dss-charcoal); font-size: 15px; }
  .list.jobs .c-slack { grid-row: 3; grid-column: 2 / 4; font-size: 14px; }
  .list.jobs .c-slack:has(.none) { display: none; }
  .people .list tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; align-items: start; }
  .people .c-person { grid-column: 1; grid-row: 1 / 3; }
  .people .c-role { grid-column: 2; grid-row: 2; text-align: right; color: var(--dss-muted); font-size: 14px; }
  .people .c-status { grid-column: 2; grid-row: 1; text-align: right; }
  .list.audit tr { display: grid; gap: 8px; }
  .list.audit .c-when { color: var(--dss-muted); font-size: 14px; }

  .pdf-frame { display: none; }
  .head > .btn { width: 100%; }

  .cover-wrap { place-items: start center; padding: 16px; }
  .tf { height: 76px; }
  .tf-tab { width: 80px; }
  .tf-tab img { width: 60px; }
  .tf-text { padding: 0 18px; }
  .tf-text h1 { font-size: 23px; }
  .sheet-body { grid-template-columns: minmax(0, 1fr); }
  .sheet-main { padding: 22px 18px 24px; }
  .sheet-index { display: none; }
  .tb { grid-template-columns: minmax(0, 1fr); }
  .tb > div { border-left: 0; border-top: 1px solid var(--dss-charcoal); flex-direction: row; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 14px; }
  .tb > div:first-child { border-top: 0; }
  .tb span:last-child { text-align: right; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .btn:active { transform: none; }
}

/* ---------- a report that isn't built yet ---------- */
.head .build-stamp { margin: 0 0 12px; }
.note.err.build-line { font-weight: 400; overflow-wrap: anywhere; max-width: 72ch; }
.build-slow { margin: 0 0 14px; }

/* ---------- budget hours: original + change orders = total ---------- */
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 20px; background: var(--dss-paper);
  border: 1.5px solid var(--dss-ink); }
.figures > div { position: relative; min-width: 0; padding: 14px 18px 16px; border-left: 1px solid var(--dss-rule); }
.figures > div:first-child { border-left: 0; }
.figures > div + div::before { position: absolute; top: 50%; left: -11px; width: 20px; height: 20px; margin-top: -10px;
  display: grid; place-items: center; background: var(--dss-paper); border: 1px solid var(--dss-rule); border-radius: 50%;
  color: var(--dss-charcoal); font: 700 13px/1 var(--dss-display); content: "+"; }
.figures > div.total::before { content: "="; }
.figures > div.total { border-left: 1.5px solid var(--dss-ink); background: var(--dss-blue-wash); }
.figures > div.total::before { border-color: var(--dss-ink); }
.figures b { display: block; margin-top: 8px; font: 800 30px/1.05 var(--dss-display); letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.figures .total b { color: var(--dss-blue-ink); }
.figures b small { margin-left: 4px; font-size: 15px; font-weight: 700; letter-spacing: 0; color: var(--dss-muted); }
.figures b.nil { font-size: 20px; line-height: 1.5; color: var(--dss-muted); }
.figures .sub { display: block; margin-top: 6px; color: var(--dss-muted); font-size: 14px; line-height: 1.3; }
.budget { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.budget .panel { scroll-margin-top: 16px; }
.inline { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.inline .field { flex: 1 1 180px; max-width: 260px; }
.inline .btn { margin-top: 25px; }
.sub-h { margin: 6px 0 0; padding-top: 18px; border-top: 1px solid var(--dss-rule); font: 700 15px/1.2 var(--dss-display); }
.list .num, .list th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.list.cos { margin-bottom: 4px; }
.list.cos td { vertical-align: top; }
.list.cos .c-hours { font: 700 16px/1.3 var(--dss-display); }
.list.cos .c-note { overflow-wrap: anywhere; }
.list.cos .c-by small { font-size: 13px; white-space: nowrap; }
.list.cos .c-day { white-space: nowrap; }
.list.cos .c-act { width: 1%; white-space: nowrap; text-align: right; }
.list.cos .c-act a { display: inline-flex; align-items: center; min-height: 32px; font-size: 14.5px; }
.list.cos tfoot td { padding: 10px 14px; border-top: 1.5px solid var(--dss-ink); font: 700 15px/1.2 var(--dss-display); }
.list .c-budget a { font-weight: 700; text-decoration: none; color: var(--dss-ink); }
.list .c-budget a:hover { text-decoration: underline; }
.list .c-budget .none { font-weight: 400; color: var(--dss-blue); font-style: normal; }

/* the estimate: a drop zone over a real file input, so dropping works with or without the script */
.drop-form { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin: 0; }
.drop { position: relative; display: grid; justify-items: center; gap: 6px; width: 100%; padding: 22px 18px 20px; text-align: center;
  background: var(--dss-wash); border: 1.5px dashed var(--dss-field); border-radius: var(--dss-r-field); cursor: pointer;
  transition: background-color 160ms var(--dss-ease), border-color 160ms var(--dss-ease); }
.drop input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop:hover, .drop.is-over { background: var(--dss-blue-wash); border-color: var(--dss-blue); }
.drop:focus-within { outline: 2.5px solid var(--dss-blue); outline-offset: 2px; }
.drop-ic { width: 30px; height: 30px; color: var(--dss-blue); }
.drop b { font: 700 16px/1.25 var(--dss-display); }
.drop span { max-width: 46ch; color: var(--dss-muted); font-size: 14.5px; line-height: 1.4; }
.drop .drop-name { color: var(--dss-ink); font-weight: 600; overflow-wrap: anywhere; }
.proposal { margin: 0 0 18px; padding: 16px 16px 14px; border: 1.5px solid var(--dss-blue); background: var(--dss-paper); }
.proposal p { margin: 0 0 10px; }
.proposal-file b { display: block; overflow-wrap: anywhere; }
.proposal-file small { color: var(--dss-muted); font-size: 14px; }
.proposal-where { color: var(--dss-charcoal); font-size: 15px; overflow-wrap: anywhere; }
.proposal-hours { font: 800 32px/1 var(--dss-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--dss-blue-ink); }
.proposal-hours small { margin-left: 6px; font-size: 15px; font-weight: 700; letter-spacing: 0; color: var(--dss-muted); }
.proposal .note { margin-bottom: 10px; }
.others { margin-top: 14px; border-top: 1px solid var(--dss-rule); padding-top: 10px; }
.others summary { min-height: 40px; display: flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--dss-blue); }
.others ul { margin: 6px 0 0; padding: 0; list-style: none; }
.others li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 8px 0;
  border-top: 1px solid var(--dss-hair); font-size: 15px; }
.others li span { min-width: 0; overflow-wrap: anywhere; }
.others form { margin: 0; }
.budget-link { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 4px 14px; max-width: 820px;
  margin: 0 0 18px; padding: 14px 18px; background: var(--dss-paper); border: 1.5px solid var(--dss-ink); color: var(--dss-ink);
  text-decoration: none; }
.budget-link:hover { background: var(--dss-blue-wash); text-decoration: none; color: var(--dss-ink); }
.budget-link .key { grid-column: 1 / -1; }
.budget-link b { font: 800 24px/1.1 var(--dss-display); font-variant-numeric: tabular-nums; }
.budget-link span:last-child { color: var(--dss-blue); font-weight: 600; font-size: 15px; }
@media (max-width: 980px) {
  .budget { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .figures { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .figures > div.total { grid-column: 1 / -1; border-left: 0; border-top: 1.5px solid var(--dss-ink); }
  .figures > div.total::before { top: -11px; left: 50%; margin: 0 0 0 -10px; }
  .figures b { font-size: 26px; }
  .inline .field { max-width: none; flex-basis: 100%; }
  .inline .btn { margin-top: 0; width: 100%; }
  .list.jobs .c-budget { grid-row: 3; grid-column: 2 / 4; text-align: left; }
  .list.cos tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .list.cos .c-day { grid-column: 1; grid-row: 1; }
  .list.cos .c-hours { grid-column: 2; grid-row: 1; text-align: right; }
  .list.cos .c-note, .list.cos .c-by { grid-column: 1 / -1; }
  .list.cos .c-act { grid-column: 1 / -1; text-align: left; }
  .list.cos td[data-label]::before { display: none; }
  .list.cos .c-by { color: var(--dss-muted); font-size: 14px; }
  .list.cos .c-by small { display: inline; margin-left: 6px; }
  .list.cos tfoot tr { display: flex; justify-content: space-between; padding: 10px 14px; border-top: 1.5px solid var(--dss-ink); }
  .list.cos tfoot td { padding: 0; border: 0; }
  .list.cos tfoot td:empty { display: none; }
  .budget-link b { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) { .drop { transition: none; } }
