/* =========================================================================
   Contract signing — visual language borrowed from legal instruments:
   ledger indigo for structure, oxblood reserved for the integrity seal,
   a serif for anything that carries legal weight, monospace for hashes.
   Tablet first: nothing tappable is under 52px.
   ========================================================================= */

:root {
  --paper: #FBFAF7;
  --paper-deep: #F3F1EC;
  --paper-edge: #EDEAE3;
  --ink: #1B1D21;
  --ink-soft: #3D4149;
  --muted: #6C6F76;
  --rule: #D8D6D0;
  --indigo: #26355C;
  --indigo-lift: #33477A;
  --seal: #7A2F3A;
  --good: #2C5545;

  --font-doc: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --font-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  --tap: 52px;
  --gutter: 20px;
  --maxw: 720px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper-deep);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-ui);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--indigo); }
a:hover { color: var(--indigo-lift); }

:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 2px;
}

/* ------------------------------------------------------------------ chrome */

.topbar, .signbar {
  background: var(--indigo);
  color: var(--paper);
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar__brand, .signbar__brand { text-decoration: none; color: inherit; display: grid; gap: 2px; }
.topbar__mark, .signbar__mark {
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.topbar__sub, .signbar__ref {
  font-size: 11px; letter-spacing: .1em; color: #B9C1D6; text-transform: uppercase;
}
.signbar__ref { font-family: var(--font-mono); letter-spacing: .06em; }
.topbar__nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.topbar .btn--ghost { color: var(--paper); border-color: rgba(251,250,247,.4); }
.topbar .btn--ghost:hover { background: rgba(251,250,247,.12); }
.topbar .btn--solid { background: var(--paper); color: var(--indigo); }

/* Steps: a real sequence, so numbering carries information. */
.steps { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.steps__item {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 12px 6px 8px;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: #939DB8;
}
.steps__num {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid currentColor;
  font-family: var(--font-mono); font-size: 11px;
}
.steps__item.is-current { color: var(--paper); }
.steps__item.is-current .steps__num { background: var(--paper); color: var(--indigo); border-color: var(--paper); }
.steps__item.is-done { color: #C8CFE0; }
.steps__item.is-done .steps__num { background: rgba(251,250,247,.22); border-color: transparent; }

.shell { flex: 1; width: 100%; max-width: 1060px; margin: 0 auto; padding: 26px var(--gutter) 48px; }
.shell--sign, .shell--narrow { max-width: var(--maxw); }

.footpad {
  padding: 18px var(--gutter) 26px;
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center;
  font-size: 11px; letter-spacing: .06em; color: var(--muted);
  border-top: 1px solid var(--rule);
  background: var(--paper-deep);
}

/* ------------------------------------------------------------------ panels */

.panel {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 30px 26px 34px;
}
.panel--narrow { max-width: 460px; margin: 0 auto; }
.panel--wide { max-width: none; }
.panel--center { text-align: center; }
.panel--center .actions { justify-content: center; }

.eyebrow {
  margin: 0 0 8px;
  font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--seal);
}
.eyebrow a { color: inherit; }

.display {
  margin: 0 0 12px;
  font-family: var(--font-doc);
  font-size: clamp(27px, 5.4vw, 36px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -.01em;
}
.display--sm { font-size: clamp(23px, 4vw, 28px); }

.lede { margin: 0 0 26px; color: var(--ink-soft); font-size: 16px; max-width: 60ch; }
.lede__sep { color: var(--rule); margin: 0 4px; }
.fineprint { font-size: 13px; color: var(--muted); margin: 16px 0 0; }

.pagehead {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; margin-bottom: 22px;
}
.pagehead .lede { margin-bottom: 0; }

/* ------------------------------------------------------------------ notice */

.notice {
  padding: 13px 16px; margin: 0 0 22px;
  border-left: 3px solid var(--muted);
  background: var(--paper-deep);
  font-size: 14px;
}
.notice--error { border-left-color: var(--seal); color: var(--seal); background: #F7EFF0; }
.notice--good { border-left-color: var(--good); color: var(--good); background: #EFF4F1; }

/* ------------------------------------------------------------------- forms */

.form { display: block; }
.form--tight .field { margin-bottom: 16px; }

.fieldset { border: 0; margin: 0 0 28px; padding: 0; }
.fieldset__legend {
  padding: 0 0 12px;
  font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
  width: 100%;
  margin-bottom: 18px;
}

.field { margin-bottom: 18px; }
.field__label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.field__optional { font-weight: 400; color: var(--muted); text-transform: none; letter-spacing: 0; }

.field__input {
  width: 100%;
  min-height: var(--tap);
  padding: 12px 14px;
  font: 400 16px/1.4 var(--font-ui);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 0;
  appearance: none;
}
.field__input:focus { border-color: var(--indigo); outline: 3px solid rgba(38,53,92,.18); outline-offset: 0; }
.field__input--area { min-height: 120px; resize: vertical; line-height: 1.55; }
.field__input--code {
  font-family: var(--font-mono); font-size: 26px; letter-spacing: .5em;
  text-align: center; padding-left: .5em; min-height: 62px; margin-bottom: 18px;
}
.field--invalid .field__input { border-color: var(--seal); background: #FDF8F8; }
.field__hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.field__error { margin: 6px 0 0; font-size: 13px; color: var(--seal); font-weight: 600; }

.grid { display: grid; gap: 0 16px; }
.grid--2 { grid-template-columns: 1fr 1fr; }
.grid--4 { grid-template-columns: 1fr 1.6fr .7fr .9fr; }

.check {
  display: flex; align-items: flex-start; gap: 12px;
  min-height: var(--tap); padding: 12px 0;
  font-size: 15px; cursor: pointer;
}
.check input { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--indigo); flex: none; }
.check--block {
  padding: 14px 16px; margin-bottom: 10px;
  background: var(--paper-deep); border: 1px solid var(--rule);
}
.check--invalid { border-color: var(--seal); background: #FDF8F8; }

.choices { display: grid; gap: 10px; margin-bottom: 20px; }
.choice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 15px 16px; border: 1px solid var(--rule); background: var(--paper-deep);
  cursor: pointer;
}
.choice input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--indigo); flex: none; }
.choice:has(input:checked) { border-color: var(--indigo); background: var(--paper); box-shadow: inset 3px 0 0 var(--indigo); }
.choice__body { display: grid; gap: 3px; }
.choice__title { font-weight: 600; font-size: 15px; }
.choice__text { font-size: 13px; color: var(--muted); }

.reveal { display: block; }
.reveal[hidden] { display: none; }

.disclosure { border: 1px solid var(--rule); background: var(--paper-deep); margin-bottom: 16px; }
.disclosure__summary { padding: 15px 16px; cursor: pointer; font-size: 14px; font-weight: 600; min-height: var(--tap); display: flex; align-items: center; }
.disclosure__body { padding: 0 16px 16px; font-family: var(--font-doc); font-size: 14px; line-height: 1.65; color: var(--ink-soft); }
.disclosure__body p { margin: 0 0 11px; }

/* ----------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--tap); padding: 13px 22px;
  font: 600 13px/1 var(--font-ui); letter-spacing: .09em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: 0;
  cursor: pointer; text-decoration: none;
  transition: background-color .14s ease, color .14s ease;
}
.btn--solid { background: var(--indigo); color: var(--paper); }
.btn--solid:hover { background: var(--indigo-lift); color: var(--paper); }
.btn--seal { background: var(--seal); color: var(--paper); }
.btn--seal:hover { background: #8E3A46; color: var(--paper); }
.btn--ghost { background: transparent; color: var(--indigo); border-color: var(--rule); }
.btn--ghost:hover { background: var(--paper-deep); }
.btn--danger { background: transparent; color: var(--seal); border-color: var(--seal); }
.btn--danger:hover { background: var(--seal); color: var(--paper); }
.btn--lg { min-height: 60px; padding: 18px 30px; font-size: 14px; }
.btn--sm { min-height: 40px; padding: 9px 14px; font-size: 11px; }
.btn--full { width: 100%; }
.btn[disabled] { opacity: .38; cursor: not-allowed; }

.actions { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.actions--split { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.actions--center { align-items: center; }
.actions__note { margin: 0; font-size: 13px; color: var(--muted); }
.inline-form { display: inline; }

/* ------------------------------------------------------- the deed (review) */

.deed {
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 28px 26px;
  max-height: 62vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  font-family: var(--font-doc);
  box-shadow: inset 0 -22px 22px -22px rgba(27,29,33,.22);
}
.deed__head { border-bottom: 1px solid var(--rule); padding-bottom: 16px; margin-bottom: 22px; }
.deed__title { margin: 0 0 5px; font-size: 21px; font-weight: 400; letter-spacing: .01em; }
.deed__meta { margin: 0; font-family: var(--font-ui); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }

.clause { margin-bottom: 24px; }
.clause__heading {
  display: flex; gap: 10px; align-items: baseline;
  margin: 0 0 9px;
  font-family: var(--font-ui);
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--indigo);
}
.clause__num { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.clause__p { margin: 0 0 11px; font-size: 15.5px; line-height: 1.68; }
.clause--notice { border-left: 3px solid var(--seal); padding-left: 16px; }
.clause--notice .clause__p {
  font-family: var(--font-ui); font-size: 13px; line-height: 1.6; font-weight: 600;
}
.deed__end { border-top: 1px solid var(--rule); padding-top: 14px; }
.deed__endnote { margin: 0; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }

.scrollhint { margin: 12px 0 0; font-size: 13px; color: var(--seal); }
.scrollhint[hidden] { display: none; }

/* --------------------------------------------------------- signature pad */

.sigwrap { margin-top: 4px; }
.sigwrap__label { font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.sigwrap--invalid .sigpad { border-color: var(--seal); }

.sigpad {
  position: relative;
  border: 1px solid var(--rule);
  background: var(--paper);
  height: 210px;
  touch-action: none;
  overflow: hidden;
}
.sigpad__canvas { display: block; width: 100%; height: 100%; cursor: crosshair; }
.sigpad__baseline {
  position: absolute; left: 26px; right: 26px; bottom: 52px;
  border-top: 1px solid var(--rule);
  pointer-events: none;
}
.sigpad__placeholder {
  position: absolute; left: 30px; bottom: 60px; margin: 0;
  font-family: var(--font-doc); font-style: italic; font-size: 16px; color: #B4B1A9;
  pointer-events: none;
}
.sigpad__placeholder[hidden] { display: none; }
.sigpad.is-signed { border-color: var(--indigo); }

.sigwrap__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 10px; flex-wrap: wrap;
}
.sigwrap__status { font-size: 13px; color: var(--muted); }
.sigwrap__status.is-signed { color: var(--good); font-weight: 600; }

/* -------------------------------------------------------------- the seal */

.seal {
  margin: 26px 0;
  padding: 20px 22px;
  background: var(--paper-deep);
  border-left: 3px solid var(--seal);
  text-align: left;
}
.seal--pending { border-left-color: var(--rule); }
.seal__label {
  margin: 0 0 10px;
  font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--seal);
}
.seal--pending .seal__label { color: var(--muted); }
.seal__hash {
  margin: 0 0 4px;
  font-family: var(--font-mono); font-size: clamp(13px, 2.7vw, 16px);
  letter-spacing: .06em; color: var(--ink);
}
.seal__hash--wrap { word-break: break-all; font-size: 13px; }
.seal__text { margin: 12px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); }

/* -------------------------------------------------------- cards / tables */

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }

.card {
  background: var(--paper); border: 1px solid var(--rule);
  padding: 22px 24px; margin-bottom: 18px;
}
.card--seal { border-left: 3px solid var(--seal); }
.card__title {
  margin: 0 0 16px;
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}

.verdict { padding: 12px 15px; margin-bottom: 18px; font-size: 14px; font-weight: 600; }
.verdict--ok { background: #EFF4F1; color: var(--good); border-left: 3px solid var(--good); }
.verdict--bad { background: #F7EFF0; color: var(--seal); border-left: 3px solid var(--seal); }

.factlist { margin: 0; display: grid; gap: 10px; }
.factlist > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: baseline; }
.factlist--stack > div { border-bottom: 1px solid var(--paper-edge); padding-bottom: 9px; }
.factlist dt { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.factlist dd { margin: 0; font-size: 15px; }

.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; padding: 9px 12px 9px 0;
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--rule); white-space: nowrap;
}
.table td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--paper-edge); vertical-align: top; }
.table--audit td { font-size: 13px; }
.cell-strong { display: block; font-weight: 600; }
.cell-sub { display: block; font-size: 12px; color: var(--muted); }
.cell-right { text-align: right; }
.mono { font-family: var(--font-mono); font-size: 13px; }
.mono--wrap { word-break: break-all; }

.tag {
  display: inline-block; padding: 4px 9px;
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid currentColor;
}
.status--awaiting-signature { color: var(--indigo); }
.status--in-progress { color: #8A6A1F; }
.status--signed { color: var(--good); }
.status--voided, .status--expired { color: var(--muted); }

.actionrow { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.actionrow .field { margin-bottom: 0; flex: 1 1 240px; }
.actionrow .fineprint { margin: 0; flex-basis: 100%; }

.empty { text-align: center; padding: 60px 20px; background: var(--paper); border: 1px solid var(--rule); }
.empty__title { margin: 0 0 8px; font-family: var(--font-doc); font-weight: 400; font-size: 22px; }
.empty__text { margin: 0 0 22px; color: var(--muted); }

/* ------------------------------------------------------------- responsive */

@media (max-width: 720px) {
  .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .cols { grid-template-columns: 1fr; }
  .panel { padding: 24px 18px 28px; }
  .deed { padding: 22px 18px; max-height: 56vh; }
  .steps__label { display: none; }
  .actions--split { flex-direction: column-reverse; align-items: stretch; }
  .actions--split .btn { width: 100%; }
  .factlist > div { grid-template-columns: 1fr; gap: 2px; }
  .pagehead .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .topbar, .signbar, .footpad, .actions, .btn { display: none !important; }
  body { background: #fff; }
  .deed { max-height: none; overflow: visible; box-shadow: none; border: 0; }
}

/* ==========================================================================
   Estimate: the priced schedule, in three places — the admin editor, the
   contract text the client reads, and the commitment block above the pen.
   ========================================================================== */

/* --- admin editor --- */

.estimate__intro { margin: 0 0 16px; }

.estimate { border: 1px solid var(--rule); background: var(--paper-deep); padding: 14px; margin-bottom: 22px; }

.estimate__head,
.estimate__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px 108px 118px 106px 40px;
  gap: 8px;
  align-items: center;
}
.estimate__head {
  padding: 0 0 8px;
  font-size: 10px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 10px;
}
.estimate__row { margin-bottom: 8px; }
.estimate__row .field__input { min-height: 46px; padding: 9px 11px; font-size: 15px; background: var(--paper); }
.estimate__num { text-align: right; }
input.estimate__num { text-align: right; font-family: var(--font-mono); font-size: 14px; }

.estimate__amount {
  font-family: var(--font-mono); font-size: 14px; text-align: right; color: var(--ink);
  padding-right: 2px;
}
.estimate__remove {
  width: 36px; height: 36px; justify-self: center;
  border: 1px solid var(--rule); background: var(--paper);
  color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer;
}
.estimate__remove:hover { border-color: var(--seal); color: var(--seal); }
.estimate__row--invalid .field__input { border-color: var(--seal); }
.estimate__error { grid-column: 1 / -1; margin: 2px 0 6px; }
.estimate__adjust { margin-top: 4px; }

.totals {
  margin-top: 4px; margin-left: auto;
  max-width: 380px; padding: 16px 18px;
  background: var(--paper-deep); border-left: 3px solid var(--indigo);
}
.totals__line {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 5px 0; font-size: 14px; color: var(--ink-soft);
}
.totals__line span:last-child { font-family: var(--font-mono); }
.totals__line[hidden] { display: none; }
.totals__line--strong {
  margin-top: 6px; padding-top: 11px; border-top: 1px solid var(--rule);
  font-weight: 700; font-size: 16px; color: var(--ink);
}
.totals__line--strong span:last-child { color: var(--seal); font-size: 18px; }

/* --- inside the contract text --- */

.schedule { margin: 4px 0 14px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.schedule__table { width: 100%; border-collapse: collapse; font-family: var(--font-ui); font-size: 14px; }
.schedule__table th {
  text-align: left; padding: 7px 10px 7px 0;
  font-size: 9.5px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
  color: var(--muted); background: var(--paper-deep);
  border-bottom: 1px solid var(--indigo); white-space: nowrap;
}
.schedule__table th:first-child, .schedule__table td:first-child { padding-left: 8px; }
.schedule__table td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--paper-edge); vertical-align: top; }
.schedule__table td:first-child { font-family: var(--font-doc); font-size: 15px; }
.schedule__num { text-align: right; font-family: var(--font-mono); font-size: 13px; white-space: nowrap; }
.schedule__table tfoot td { border-bottom: 0; padding-top: 6px; padding-bottom: 2px; color: var(--muted); }
.schedule__table tfoot td:first-child { font-family: var(--font-ui); }
.schedule__strong td {
  padding-top: 10px; border-top: 1px solid var(--indigo);
  font-weight: 700; color: var(--ink); font-size: 15px;
}
.schedule__strong td:last-child { color: var(--seal); font-size: 17px; }

/* --- above the signature --- */

.commit {
  margin: 0 0 28px; padding: 22px 24px;
  background: var(--paper-deep); border-left: 3px solid var(--seal);
}
.commit__label {
  margin: 0 0 6px;
  font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--seal);
}
.commit__total {
  margin: 0; font-family: var(--font-doc); font-size: clamp(30px, 7vw, 40px);
  line-height: 1.1; letter-spacing: -.015em; color: var(--ink);
}
.commit__split { margin: 8px 0 0; font-size: 14px; color: var(--ink-soft); }
.commit__sep { color: var(--rule); margin: 0 6px; }

.commit__details { margin-top: 16px; border-top: 1px solid var(--rule); }
.commit__summary {
  padding: 13px 0 11px; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--indigo);
  min-height: 44px; display: flex; align-items: center;
}
.commit__table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 6px; }
.commit__table td { padding: 7px 0; border-bottom: 1px solid var(--paper-edge); vertical-align: top; }
.commit__num { text-align: right; font-family: var(--font-mono); font-size: 13px; white-space: nowrap; padding-left: 12px !important; }
.commit__table tfoot td { color: var(--muted); border-bottom: 0; padding-top: 5px; padding-bottom: 1px; }
.commit__strong td {
  padding-top: 9px; border-top: 1px solid var(--indigo);
  font-weight: 700; color: var(--ink); font-size: 15px;
}
.commit__strong td:last-child { color: var(--seal); }
.commit__note { margin: 8px 0 2px; font-size: 12px; color: var(--muted); }

.table--estimate { margin-bottom: 18px; }

@media (max-width: 860px) {
  .estimate__head { display: none; }
  .estimate__row {
    grid-template-columns: minmax(0, 1fr) 40px;
    padding: 12px; margin-bottom: 12px;
    background: var(--paper); border: 1px solid var(--rule);
  }
  .estimate__row > input[name="itemDescription"] { grid-column: 1 / 2; }
  .estimate__row > [data-remove] { grid-column: 2 / 3; grid-row: 1; }
  .estimate__row > input[name="itemQuantity"],
  .estimate__row > input[name="itemUnit"],
  .estimate__row > input[name="itemRate"] { grid-column: 1 / -1; }
  .estimate__amount { grid-column: 1 / -1; text-align: right; padding-top: 4px; }
  .totals { max-width: none; }
}
