/* acceptance
   The customer's own view of a quote, and signing it.

   Loaded by `stylesheet_link_tag :app`, which includes every .css under
   app/assets sorted by filename — so the NUMBER PREFIX IS THE CASCADE ORDER.
   Renaming a file moves it in the cascade. */

/* ---------------- customer acceptance ---------------- */
.accept-page { max-width: 720px; margin: 0 auto; padding: 30px 20px 60px; }
.accept-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 20px;
  padding-bottom: 18px; margin-bottom: 22px; border-bottom: 2px solid var(--ink);
}
.accept-company { font: 600 14px var(--ui); }
.accept-head h1 { font-size: 26px; margin: 6px 0 4px; letter-spacing: -0.02em; }
.accept-sub { color: var(--ink-3); font-size: 13.5px; margin: 0; }

.accept-done {
  background: var(--ok-bg, #EDF5EF); border: 1px solid var(--ok, #3F7A52);
  border-radius: var(--r); padding: 18px 20px; margin-bottom: 24px;
}
.accept-done h2 { font-size: 17px; margin: 0 0 6px; }
.accept-done p { margin: 0; font-size: 14px; }
.accept-signature-shown {
  margin-top: 12px; max-width: 260px; background: #fff;
  border: 1px solid var(--line); border-radius: 6px; padding: 6px;
}

.accept-lines table { width: 100%; border-collapse: collapse; }
.accept-lines th {
  font: 500 10px var(--ui); text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-3); text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--ink);
}
.accept-lines td { padding: 12px 10px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
.accept-lines .num { text-align: right; }
.accept-lines .muted { font-size: 12.5px; }
.accept-option { color: var(--ink-3); }
.accept-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 16px 10px 0; font-size: 15px;
}
.accept-total strong { font-size: 22px; letter-spacing: -0.02em; }

/* Subtotal and tax above the figure they are agreeing to. Quieter than the
   total, and with no top padding of its own, so the block reads as one. */
.accept-subtotal {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 4px 10px 0; font-size: 13.5px; color: var(--ink-2);
}
.accept-subtotal span:last-child { font-variant-numeric: tabular-nums; }
.accept-subtotal + .accept-total { padding-top: 10px; }

.accept-terms { margin-top: 28px; font-size: 13px; color: var(--ink-2); }
.accept-terms h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }

.accept-form {
  margin-top: 32px; padding: 22px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r);
}
.accept-form h2 { font-size: 19px; margin: 0 0 6px; }
.accept-form > .muted { font-size: 13px; margin: 0 0 18px; }

/* Tall enough to sign in properly — a cramped box produces a scrawl nobody
   would recognise as theirs. */
.signature-pad { position: relative; }
.signature-pad canvas {
  width: 100%; height: 150px; touch-action: none;
  background: #fff; border: 1px dashed var(--line-2); border-radius: var(--r);
  cursor: crosshair; display: block;
}
.signature-clear {
  position: absolute; top: 8px; right: 8px;
  background: none; border: none; cursor: pointer;
  font-size: 12px; color: var(--ink-3);
}
.signature-clear:hover { background: none; color: var(--ink); }

.accept-agree { align-items: flex-start; gap: 10px; margin: 18px 0; font-size: 14px; line-height: 1.5; }
.accept-actions .button { width: 100%; padding: 13px; font-size: 15px; }

.accept-decline { margin-top: 20px; }
.accept-decline > summary { cursor: pointer; font-size: 13px; color: var(--ink-3); }
.accept-decline > summary:hover { color: var(--ink); }

.accept-foot { margin-top: 34px; font-size: 12px; color: var(--ink-3); text-align: center; }

.document-body { background: var(--paper); display: block; min-height: 100vh; }
.document-body .flash-stack { max-width: 720px; margin: 0 auto; padding: 16px 20px 0; }

/* Won work reads as won, not as another warning. */
.tile.is-good { border-color: var(--ok, #3F7A52); }
.tile.is-good .tile-value { color: var(--ok, #3F7A52); }
.attention-right.is-task { color: var(--ink-2); }

/* The totals block sits flush to the table above it, so the signature card
   needs its own room rather than butting against the total. */
.signature-card { margin-top: 26px; }

/* Which site you're looking at. Sits under the brand because it changes the
   meaning of nearly everything below it. */
.location-switch { padding: 10px 10px 0; }
.location-switch select {
  width: 100%; padding: 6px 8px; font: 500 12.5px var(--ui);
  color: #fff; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14); border-radius: 6px;
}
.location-switch select:hover { background: rgba(255,255,255,.13); }
.location-switch option { color: var(--ink); }
.location-single {
  padding: 10px 12px 0; font-size: 11.5px; color: rgba(255,255,255,.4);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
body.nav-collapsed .location-switch,
body.nav-collapsed .location-single { display: none; }
.num.is-alert { color: var(--danger); }

/* Where their order is, on the page they reached from their email. Reads as
   the same kind of block as the shop page's `pub-standing`, because it is the
   same news. */
.accept-standing {
  margin: 18px 0; padding: 14px 16px;
  background: var(--sunken); border: 1px solid var(--line);
  border-radius: var(--r);
}
.accept-standing h2 { font: 600 14px var(--ui); margin: 0 0 6px; }
.accept-standing p { margin: 0 0 4px; font-size: 13.5px; }
