/* Styles for the rebuilt sales pages (2026-09-23, from storykeeper-mockups-v2/remaining.html). v2.css vocabulary first; only what it lacks goes here. */

/* ── record pages (quote, invoice) ─────────────────────────────────────────────────────────── */
/* Four tiles across on a desktop, two on a phone. */
.sl-vitals{grid-template-columns:repeat(4,1fr)}
@media (max-width:700px){.sl-vitals{grid-template-columns:1fr 1fr}.sl-vitals .vit:nth-child(2){border-right:0}.sl-vitals .vit:nth-child(-n+2){border-bottom:1px solid var(--rule-2)}}

/* The quote's status path: Draft → Sent → Accepted → Invoiced, and the two other ways it can end. */
.sl-path{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.sl-path .ar{color:var(--muted);opacity:.6}
.sl-acts{display:flex;flex-direction:column;gap:8px;margin-top:14px}
.sl-acts .btn{justify-content:center}

/* The original quote document, inline. */
.sl-doc{width:100%;height:720px;border:1px solid var(--rule);border-radius:8px;background:var(--surface-2);display:block}
.sl-docimg{max-width:100%;display:block;border:1px solid var(--rule);border-radius:8px}
@media (max-width:700px){.sl-doc{height:480px}}

/* Free text on a record (quote notes). */
.sl-text{white-space:pre-line;color:var(--ink-2);font-size:14.5px;line-height:1.5}

/* Delete / void asks first — a quiet confirm line in place. */
.sl-confirm{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.sl-confirm .sp{flex:1}

/* The invoice sheet's head: the company on the left, who pays and where the work was on the right. */
.sl-sheet-h{align-items:flex-start;flex-wrap:wrap}
.sl-billto{text-align:right;min-width:0}
.sl-billto .no{font-size:18px;font-weight:700}
.sl-billto .src{font-size:11.5px;color:var(--muted);margin-top:2px}
@media (max-width:640px){.sl-billto{text-align:left}}

/* Money columns in the totals rows of a record's line table. */
.sl-items tfoot td.lbl{text-align:right}
.sl-items tfoot tr + tr td{border-top:0}
.sl-items tfoot .grand{font-size:16px}

/* Record-payment form inside the Payment card. */
.sl-pay{border-top:1px solid var(--rule-2);margin-top:14px;padding-top:14px}
.sl-pay .hd{font-weight:700;margin-bottom:10px}

/* ── forms (new / edit quote and invoice) ──────────────────────────────────────────────────── */
/* The shared pickers (CustomerPicker, ProductPicker) render an app.css .form-control; on these forms they take
   the v2 input look so the page reads as one. */
.sl-form .form-control{height:36px;padding:0 10px;border:1px solid var(--rule);border-radius:8px;background:var(--surface);color:var(--ink);font:inherit;font-size:14px;width:100%;box-shadow:none}
.sl-form .form-control:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft);outline:0}
.sl-form textarea.in{height:auto;min-height:96px;padding:8px 10px;resize:vertical;line-height:1.45}
.sl-form .in.num{text-align:right}
.sl-form .ro{display:flex;align-items:center;background:var(--surface-2);color:var(--muted)}
.sl-form .bad .form-control,.sl-form .bad .lp-chosen{border-color:var(--crit)}
.sl-dates{grid-template-columns:minmax(0,2fr) 1fr 1fr}
.sl-dates.four{grid-template-columns:minmax(0,2fr) 1fr 1fr 1fr}
@media (max-width:900px){.sl-dates,.sl-dates.four{grid-template-columns:1fr 1fr}.sl-dates>.field:first-child{grid-column:1/-1}}
@media (max-width:520px){.sl-dates,.sl-dates.four{grid-template-columns:1fr}}

/* The line editor. No .tbl-wrap round it: its overflow would clip the product list that drops out of a cell. */
.sl-lines .tbl td{vertical-align:top}
.sl-lines .tbl td.r.num{padding-top:19px}
.sl-lines .sl-addrow td{border-bottom:0}
.sl-lines .sl-addrow a{cursor:pointer}
.sl-totals{display:grid;grid-template-columns:auto 150px;gap:6px 20px;justify-content:end;padding:14px 20px;border-top:1px solid var(--rule-2)}
.sl-totals>:nth-child(even){text-align:right}
.sl-totals .grand{font-size:18px}
@media (max-width:700px){
  .sl-lines thead{display:none}
  .sl-lines tbody tr{display:grid;grid-template-columns:1fr 1fr auto auto;align-items:center;border-bottom:1px solid var(--rule-2)}
  .sl-lines tbody td{border-bottom:0;padding:6px 10px}
  .sl-lines tbody td:first-child{grid-column:1/-1;padding-top:12px}
  .sl-lines .tbl td.r.num{padding-top:6px}
  .sl-lines .sl-addrow{display:block}
  .sl-totals{grid-template-columns:auto 120px}
}

/* Sticky bar: the running total, Cancel and Save stay in view on a long quote. */
.sl-bar{position:sticky;bottom:0;z-index:5;display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:12px 20px;box-shadow:var(--shadow)}
.sl-bar .tot{font-size:18px}
.sl-bar .sp{flex:1}
.sl-err{color:var(--crit);font-size:13.5px;font-weight:600}
