/* Ratoomal's Sales CRM — one stylesheet.
   Colours follow the website admin (ink, brass, warm paper). */
:root {
  --ink: #13222e;
  --ink-2: #2a3a48;
  --muted: #66707b;
  --faint: #9aa1a9;
  --line: #e4ddcc;
  --line-soft: #eee8da;
  --canvas: #f5f1e8;
  --paper: #ffffff;
  --brass: #a5642b;
  --brass-soft: #f4e6cf;
  --blue: #2f5d8a;
  --blue-soft: #e2ecf6;
  --green: #2f7a4d;
  --green-soft: #e0efe5;
  --grey: #7d838a;
  --grey-soft: #ecedee;
  --red: #b64a2a;
  --red-soft: #f8e4dc;
  --amber: #8a5a12;
  --amber-soft: #fbefd5;
  --violet: #6b5ea8;
  --violet-soft: #ece9f6;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(19, 34, 46, .06), 0 4px 16px rgba(19, 34, 46, .05);
  --side: 220px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Poppins', var(--font);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 15px/1.5 var(--font); }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; margin: 0; line-height: 1.25; }
h1 { font-size: 1.45rem; }
h2 { font-size: 1.05rem; }
h3 { font-size: .95rem; }
button, input, select, textarea { font: inherit; color: inherit; }
.boot { padding: 48px; color: var(--muted); text-align: center; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Layout ---------- */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; background: linear-gradient(to right, var(--ink) var(--side), transparent var(--side)); }
.side { background: var(--ink); color: #dfe5ea; padding: 18px 12px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: #22384a; color: #e9c9a0; display: grid; place-items: center; font-weight: 700; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: #c9d2da; font-weight: 600; }
.nav a:hover { background: #1c3142; color: #fff; text-decoration: none; }
.nav a.on { background: #24405a; color: #fff; }
.nav a .soon { margin-left: auto; font-size: .68rem; font-weight: 700; color: #8fa3b4; border: 1px solid #3a536a; border-radius: 99px; padding: 0 7px; }
.nav svg { width: 18px; height: 18px; flex: none; }
.side-foot { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid #22384a; font-size: .85rem; }
.side-foot .who { color: #fff; font-weight: 700; }
.side-foot .role { color: #8fa3b4; }
.side-foot a { color: #c9d2da; }
.main { min-width: 0; padding: 26px 32px 64px; max-width: 1240px; }
.page-head { display: flex; align-items: flex-start; gap: 16px; justify-content: space-between; flex-wrap: wrap; margin-bottom: 18px; }
.page-head .sub { color: var(--muted); margin-top: 4px; font-size: .92rem; }
.back { display: inline-block; margin-bottom: 10px; font-weight: 600; font-size: .9rem; }

/* Phone: menu moves to the bottom of the screen. */
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; background: none; }
  .side { position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; flex-direction: row; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); z-index: 40; gap: 0; }
  .brand, .side-foot { display: none; }
  .nav { display: flex; width: 100%; justify-content: space-around; }
  .nav a { flex-direction: column; gap: 2px; padding: 6px 4px; font-size: .7rem; flex: 1; text-align: center; }
  .nav a .soon { display: none; }
  .main { padding: 16px 16px 96px; }
  .nav a.only-wide { display: none; }
}
@media (min-width: 821px) { .only-phone { display: none !important; } }

/* ---------- Cards, grids ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 16px 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px 0; }
.card-body { padding: 12px 18px 16px; }
.stack { display: grid; gap: 16px; align-content: start; }
.buyer-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
@media (max-width: 1180px) { .buyer-grid { grid-template-columns: 280px minmax(0, 1fr); } .buyer-grid > .col-right { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } }
@media (max-width: 820px) { .buyer-grid { display: flex; flex-direction: column; align-items: stretch; } .buyer-grid > .col-right { grid-template-columns: 1fr; order: 1; } .buyer-grid > .col-mid { order: 2; } }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .92rem; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- Buttons, forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 8px; padding: 8px 14px; font-weight: 700; font-size: .9rem; cursor: pointer; text-decoration: none; white-space: nowrap; min-height: 38px; }
.btn:hover { border-color: #cfc6b1; text-decoration: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: #1f3445; }
.btn.call { background: var(--green); border-color: var(--green); color: #fff; }
.btn.danger { color: var(--red); }
.btn.small { padding: 4px 10px; min-height: 30px; font-size: .82rem; }
.btn.link { border: none; background: none; padding: 0; min-height: 0; color: var(--blue); font-weight: 700; box-shadow: none; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
label.field { display: grid; gap: 4px; font-size: .85rem; font-weight: 700; color: var(--ink-2); }
label.field .hint { font-weight: 500; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=search], select, textarea {
  width: 100%; border: 1px solid #d8d0bd; background: #fff; border-radius: 8px; padding: 9px 11px; font-size: .95rem; min-height: 40px;
}
textarea { resize: vertical; min-height: 80px; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible { outline: 2px solid #8fb2d4; outline-offset: 1px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.err { color: var(--red); font-weight: 600; font-size: .88rem; }
.ok-text { color: var(--green); font-weight: 600; font-size: .88rem; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: .9rem; }

/* ---------- Pills ---------- */
.pill { display: inline-block; padding: 1px 9px; border-radius: 99px; font-size: .75rem; font-weight: 800; white-space: nowrap; background: var(--grey-soft); color: var(--grey); }
.pill.list { background: var(--blue-soft); color: var(--blue); }
.pill.quoted { background: var(--brass-soft); color: var(--brass); }
.pill.won { background: var(--green-soft); color: var(--green); }
.pill.lost { background: var(--grey-soft); color: var(--grey); }
.pill.owner { background: var(--violet-soft); color: var(--violet); }
.pill.off { background: var(--red-soft); color: var(--red); }
.pill.kind { background: #f1ede3; color: var(--ink-2); }

/* ---------- Toolbar + list ---------- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .search { flex: 1 1 260px; max-width: 420px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--paper); border-radius: 99px; padding: 5px 12px; font-weight: 700; font-size: .84rem; cursor: pointer; color: var(--ink-2); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.toolbar select { width: auto; min-width: 150px; }
table.list { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.list th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 800; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #faf8f3; }
table.list td { padding: 11px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.list tr.row { cursor: pointer; }
table.list tr.row:hover td { background: #fbf9f4; }
table.list tr:last-child td { border-bottom: none; }
.name-cell strong { display: block; }
.name-cell span { color: var(--muted); font-size: .85rem; }
.cards-list { display: none; }
@media (max-width: 820px) {
  table.list.collapse, .table-card { display: none; }
  .cards-list { display: grid; gap: 10px; }
}
.item-card { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; color: var(--ink); }
.item-card:hover { text-decoration: none; border-color: #cfc6b1; }
.item-card .top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.item-card .meta { color: var(--muted); font-size: .85rem; margin-top: 2px; }
.empty { padding: 36px 18px; text-align: center; color: var(--muted); }
.count-line { color: var(--muted); font-size: .85rem; margin: 10px 2px; }

/* ---------- Buyer page ---------- */
.buyer-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 16px; }
.buyer-head .line2 { color: var(--muted); margin-top: 4px; font-size: .92rem; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.person { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.person:last-child { border-bottom: none; }
.person .top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.person .phone { font-weight: 700; }
.person .actions { display: flex; gap: 12px; margin-top: 4px; font-size: .84rem; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.timeline li:last-child { border-bottom: none; }
.tl-icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--grey-soft); color: var(--ink-2); }
.tl-icon svg { width: 15px; height: 15px; }
.tl-icon.call { background: var(--green-soft); color: var(--green); }
.tl-icon.note { background: var(--amber-soft); color: var(--amber); }
.tl-icon.quote { background: var(--brass-soft); color: var(--brass); }
.tl-icon.enquiry { background: var(--blue-soft); color: var(--blue); }
.tl-icon.whatsapp { background: #ddf3e6; color: #1f8a4c; }
.tl-icon.visit { background: var(--violet-soft); color: var(--violet); }
.tl-title { font-weight: 700; font-size: .92rem; }
.tl-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .92rem; color: var(--ink-2); margin-top: 2px; }
.tl-meta { color: var(--faint); font-size: .8rem; margin-top: 2px; }
.tl-filter { display: flex; gap: 6px; flex-wrap: wrap; }
details.transcript summary { cursor: pointer; color: var(--blue); font-weight: 700; font-size: .84rem; margin-top: 4px; }
details.transcript div { white-space: pre-wrap; font-size: .86rem; background: #faf8f3; border-radius: 8px; padding: 8px 10px; margin-top: 6px; }
.deal-row { display: flex; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); align-items: center; }
.deal-row:last-child { border-bottom: none; }
.deal-row .amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.note-box { display: grid; gap: 8px; margin-bottom: 8px; }
.banner { border-radius: var(--radius); padding: 12px 14px; font-size: .92rem; margin-bottom: 14px; }
.banner.info { background: var(--blue-soft); color: #1d4466; }
.banner.warn { background: var(--amber-soft); color: var(--amber); }
.banner.hidden-b { background: var(--grey-soft); color: var(--ink-2); }

/* ---------- Dialog ---------- */
dialog.modal { border: none; border-radius: 14px; padding: 0; width: min(560px, calc(100vw - 24px)); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
dialog.modal::backdrop { background: rgba(19, 34, 46, .45); }
.modal-head { padding: 18px 20px 0; display: flex; justify-content: space-between; align-items: center; }
.modal-body { padding: 14px 20px; display: grid; gap: 12px; max-height: 70vh; overflow: auto; }
.modal-foot { padding: 12px 20px 18px; display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.secret { font: 700 1.2rem/1.4 ui-monospace, Menlo, monospace; background: #faf8f3; border: 1px dashed var(--line); border-radius: 8px; padding: 10px 12px; text-align: center; user-select: all; }
.x { border: none; background: none; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 4px 8px; }

/* ---------- Sign-in pages ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth .card { width: min(420px, 100%); padding: 28px 26px; }
.auth .brand { color: var(--ink); padding: 0 0 14px; }
.auth .brand-mark { background: var(--ink); }
.auth form { display: grid; gap: 14px; margin-top: 16px; }
.auth p { margin: 6px 0 0; }

/* ---------- Coming soon ---------- */
.soon-page { max-width: 640px; }
.soon-page ul { padding-left: 20px; }

/* ---------- Settings ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.tabs a { padding: 8px 14px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--ink); border-color: var(--brass); }
.tabs a:hover { text-decoration: none; color: var(--ink); }
.progress { height: 10px; background: var(--line-soft); border-radius: 99px; overflow: hidden; }
.progress > div { height: 100%; background: var(--green); width: 0; transition: width .3s; }
.stat-row { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 12px; }
.stat-row div strong { display: block; font-size: 1.25rem; font-family: var(--font-head); }
.stat-row div span { color: var(--muted); font-size: .82rem; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 100; width: min(440px, calc(100vw - 24px)); }
.toast { background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 10px; box-shadow: var(--shadow); font-weight: 600; font-size: .92rem; }
.toast.bad { background: var(--red); }
@media (max-width: 820px) { .toasts { bottom: 84px; } }

/* ==================== Step 2 (2026-10-19): Today, Leads, Deals, tasks, calls, recordings ==================== */
input[type=date], input[type=time], input[type=number], input[type=datetime-local] {
  width: 100%; border: 1px solid #d8d0bd; background: #fff; border-radius: 8px; padding: 9px 11px; font-size: .95rem; min-height: 40px;
}
.stack-s { display: grid; gap: 10px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.field-label { font-size: .85rem; font-weight: 700; color: var(--ink-2); margin-bottom: -4px; }
.chip .count, h2 .count { color: inherit; opacity: .7; font-weight: 700; }
.warn-text { color: var(--amber); font-weight: 600; }

/* Pills: deal stages and lead status */
.pill.new { background: var(--blue-soft); color: var(--blue); }
.pill.contacted { background: #e6eef0; color: #2e6670; }
.pill.negotiating { background: var(--violet-soft); color: var(--violet); }
.pill.lead-new { background: var(--amber-soft); color: var(--amber); }
.pill.lead-tried { background: #f6eadf; color: #8a4a12; }
.pill.lead-talked { background: var(--blue-soft); color: var(--blue); }
.pill.lead-converted { background: var(--green-soft); color: var(--green); }
.pill.lead-not_suitable { background: var(--grey-soft); color: var(--grey); }

/* Due dates */
.due { color: var(--muted); }
.due.today { color: var(--blue); font-weight: 700; }
.due.over { color: var(--red); font-weight: 700; }

/* Lead page: sort buttons */
.sort-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin: -4px 0 16px; box-shadow: var(--shadow); }

/* Tasks card */
.task-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.task-row:last-of-type { border-bottom: none; }
.task-title { font-weight: 700; }
.stage-select { width: auto; min-height: 32px; padding: 4px 8px; font-size: .84rem; font-weight: 700; }

/* Today */
.today-stats { margin: 4px 0 16px; }
.today-sec { margin-bottom: 16px; }
.today-sec .card-head { flex-wrap: wrap; }
.today-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); align-items: center; flex-wrap: wrap; }
.today-row:last-child { border-bottom: none; }
.today-row .what { min-width: 0; flex: 1 1 260px; display: grid; gap: 1px; }
.today-row .name { font-weight: 800; color: var(--ink); font-size: 1rem; }
.today-row .pills { margin-top: 3px; }
.row-actions { justify-content: flex-end; }
details.upcoming > summary { list-style: none; cursor: pointer; padding-bottom: 14px; }
details.upcoming > summary::-webkit-details-marker { display: none; }

/* Deals board */
.board { display: grid; grid-template-columns: repeat(6, minmax(158px, 1fr)); gap: 10px; align-items: start; overflow-x: auto; padding-bottom: 8px; }
.deal-col { background: #efe9dc; border-radius: var(--radius); padding: 8px; min-height: 120px; }
.deal-col.won, .deal-col.lost { background: #f2f0ea; }
.deal-col.drop { outline: 2px dashed var(--blue); outline-offset: -2px; }
.deal-col header { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; padding: 4px 6px 8px; }
.deal-col header h2 { font-size: .92rem; }
.col-body { display: grid; gap: 8px; }
.deal-card { background: var(--paper); border: 1px solid var(--line); border-radius: 9px; padding: 9px 10px; cursor: pointer; display: grid; gap: 2px; }
.deal-card:hover { border-color: #cfc6b1; }
.deal-card.dragging { opacity: .5; }
.deal-card .top { display: flex; justify-content: space-between; gap: 6px; align-items: baseline; }
.deal-card .top strong { font-size: .92rem; }
.deal-card .amt { font-weight: 800; font-size: .86rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.deal-card .meta { font-size: .8rem; color: var(--muted); }
.deal-card .foot { display: grid; gap: 4px; margin-top: 4px; }
.deal-card .foot .stage-select { width: 100%; }
.deal-card .stage-select { min-height: 28px; font-size: .76rem; padding: 2px 6px; }
.stage-tabs { margin-bottom: 10px; }
@media (max-width: 820px) {
  .board { display: block; }
  .board .deal-col { display: none; background: none; padding: 0; }
  .board[data-phone-stage="new"] .deal-col.new, .board[data-phone-stage="contacted"] .deal-col.contacted,
  .board[data-phone-stage="quoted"] .deal-col.quoted, .board[data-phone-stage="negotiating"] .deal-col.negotiating,
  .board[data-phone-stage="won"] .deal-col.won, .board[data-phone-stage="lost"] .deal-col.lost { display: block; }
  .board .deal-col header { display: none; }
  .today-row .row-actions { justify-content: flex-start; width: 100%; }
}

/* Recording */
.recbar { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 90; background: var(--ink); color: #fff; border-radius: 99px; padding: 6px 8px 6px 14px; display: flex; gap: 10px; align-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); font-size: .9rem; }
.recbar .btn { min-height: 30px; }
.recdot { width: 10px; height: 10px; border-radius: 50%; background: #e5484d; animation: recblink 1s infinite; flex: none; }
.recdot.saving { background: #e9c9a0; }
@keyframes recblink { 50% { opacity: .3; } }
.btn.rec-on { background: #fde8e8; border-color: #e5a5a5; color: #a32020; }
.tl-audio { width: 100%; max-width: 360px; height: 36px; }

/* ==================== Step 3 (2026-10-19): Quote builder ==================== */
.q-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.q-side { position: sticky; top: 16px; }
@media (max-width: 1080px) { .q-grid { grid-template-columns: minmax(0, 1fr); } .q-side { position: static; } }
.q-grid > *, .q-grid .stack > *, .q-grid .card { min-width: 0; }
.q-suggest { display: grid; gap: 4px; max-height: 360px; overflow: auto; }
.q-suggest:empty { display: none; }
.q-sugg { display: flex; gap: 10px; align-items: center; text-align: left; border: 1px solid var(--line-soft); background: #fff; border-radius: 8px; padding: 6px 8px; cursor: pointer; font: inherit; color: inherit; }
.q-sugg:hover, .q-sugg:focus-visible { border-color: var(--blue); background: #f7fafd; }
.q-sugg img, .q-prod-head img { width: 44px; height: 44px; object-fit: contain; border-radius: 6px; background: #faf8f3; flex: none; }
.q-table-wrap { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }
.q-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 560px; }
.q-table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 6px 6px; border-bottom: 1px solid var(--line); }
.q-table td { padding: 7px 6px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.q-table .r { text-align: right; }
.q-table tr.q-prod td { background: #faf8f3; border-top: 1px solid var(--line); }
.q-prod-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.q-prod-name { flex: 1 1 200px; min-width: 0; }
.q-table tr.off td { opacity: .5; }
.q-table tr.over .q-qty { border-color: var(--amber); background: var(--amber-soft); }
.q-qty { width: 76px !important; }
.q-price { width: 96px !important; }
.q-disc { width: 70px !important; min-height: 32px !important; padding: 4px 8px !important; }
.q-disc-lbl { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; color: var(--ink-2); }
.q-totals { display: grid; gap: 4px; }
.q-totals > div { display: flex; justify-content: space-between; color: var(--muted); }
.q-totals > div.grand { color: var(--ink); font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; }
.q-actions { display: grid; gap: 8px; }
.q-actions > .btn.primary { min-height: 44px; font-size: 1rem; }
.wa-preview { white-space: pre-wrap; font: .88rem/1.45 var(--font); background: #e7f7dd; border-radius: 10px; padding: 10px 12px; margin: 0; max-height: 420px; overflow: auto; }
.wa-edit { font: .88rem/1.45 var(--font); }
.ok-text { color: var(--green); font-weight: 600; }

/* Reports (step 5) */
.report-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.report-tiles .tile { padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.report-tiles .tile strong { font-family: var(--font-head); font-size: 1.5rem; }
.report-tiles .tile span { color: var(--muted); font-size: .85rem; font-weight: 700; }
.report-tiles .tile small { color: var(--ink-2); font-size: .82rem; }
.report-h { margin: 26px 0 8px; font-size: 1.1rem; }
.report-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.report-table table.list th, .report-table table.list td { white-space: nowrap; padding-left: 10px; padding-right: 10px; }
.report-table td.num, .report-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.report-table tfoot td { font-weight: 800; border-top: 1px solid var(--line); background: #faf8f3; }
.report-table .over { color: var(--red, #b42318); font-weight: 800; }
