/* Tellectra AI — public pages for crew and customers (no sign-in). Mobile first. */

.pub { width: min(720px, 100% - 24px); margin: 0 auto; padding: 18px 0 56px; display: flex; flex-direction: column; gap: 14px; }
.pub-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 4px 0; }
.pub-head .co { font-weight: 750; font-size: var(--fs-md); letter-spacing: -0.015em; min-width: 0; }
.pub-head .co small { display: block; font-weight: 600; font-size: var(--fs-xs); color: var(--ink-3); letter-spacing: 0; }
.pub-title { padding: 0 4px; }
.pub-title h1 { font-size: var(--fs-xl); letter-spacing: -0.025em; }
.pub-title p { color: var(--ink-3); margin-top: 4px; }
.pub .card { padding: 18px; }
.pub .card h3 { font-size: var(--fs-md); margin-bottom: 10px; }
.pub-foot { text-align: center; color: var(--ink-4); font-size: var(--fs-xs); padding-top: 8px; }

.status-pill { display: inline-flex; align-items: center; gap: 8px; }

/* Detail rows */
.rows { display: grid; gap: 0; }
.rows > .r { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rows > .r:last-child { border-bottom: 0; padding-bottom: 0; }
.rows > .r:first-child { padding-top: 0; }
.rows .ic { width: 34px; height: 34px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.rows .ic svg { width: 17px; height: 17px; }
.rows .lab { font-size: var(--fs-xs); font-weight: 650; color: var(--ink-3); }
.rows .val { font-weight: 600; font-size: var(--fs-md); overflow-wrap: anywhere; }
.rows .val a { color: var(--accent); }
.rows .sub { font-size: var(--fs-sm); color: var(--ink-3); font-weight: 500; }
.scope { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.note-box { padding: 12px 14px; border-radius: var(--r-md); background: var(--warn-soft); font-size: var(--fs-sm); }

/* Big action buttons for phones */
.actions { display: grid; gap: 10px; }
.actions .btn { --h: 48px; font-size: var(--fs-md); width: 100%; }
.actions.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 420px) { .actions.two { grid-template-columns: 1fr; } }
.stack-form { display: grid; gap: 12px; }

/* Tracker */
.tracker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; list-style: none; margin: 0; padding: 0; counter-reset: s; }
.tracker li { position: relative; text-align: center; font-size: var(--fs-xs); font-weight: 650; color: var(--ink-4); padding-top: 30px; }
.tracker li::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 22px; height: 22px; transform: translateX(-50%);
  border-radius: 50%; border: 2px solid var(--line); background: var(--solid);
}
.tracker li::after { content: ""; position: absolute; top: 10px; left: calc(50% + 14px); right: calc(-50% + 14px); height: 2px; background: var(--line); }
.tracker li:last-child::after { display: none; }
.tracker li.done { color: var(--ink-2); }
.tracker li.done::before { background: var(--ok); border-color: var(--ok); box-shadow: inset 0 0 0 4px var(--solid); }
.tracker li.done::after { background: var(--ok); }
.tracker li.now { color: var(--ink); }
.tracker li.now::before { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.tracker li.fail::before { border-color: var(--bad); }

/* Quote table */
.qt { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.qt th { text-align: left; font-size: var(--fs-xs); color: var(--ink-3); font-weight: 650; padding: 0 0 8px; border-bottom: 1px solid var(--line); }
.qt td { padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.qt .n { text-align: right; white-space: nowrap; padding-left: 10px; font-variant-numeric: tabular-nums; }
.qt .d small { display: block; color: var(--ink-3); }
@media (max-width: 520px) { .qt .hide-sm { display: none; } }
.pub .totals { margin: 14px 0 0 auto; width: min(100%, 280px); display: grid; gap: 6px; font-size: var(--fs-sm); }
.pub .totals > div { display: flex; justify-content: space-between; gap: 16px; }
.pub .totals .grand { border-top: 1px solid var(--line); padding-top: 8px; font-weight: 700; font-size: var(--fs-md, 1rem); }
.pub .table-wrap { overflow-x: auto; padding-right: 6px; }
.amount { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

.pay-box { white-space: pre-wrap; overflow-wrap: anywhere; padding: 12px 14px; border-radius: var(--r-md); background: var(--sunken); font-size: var(--fs-sm); line-height: 1.6; }
.state { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 10px 6px; }
.state .art { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); }
.state .state-title { font-size: 1.25rem; letter-spacing: -0.015em; margin-top: 6px; }
.state .art.wait { background: var(--info-soft); color: var(--info); }
.state .art.bad { background: var(--bad-soft); color: var(--bad); }
.state .art svg { width: 26px; height: 26px; }
.receipt { display: grid; gap: 6px; width: 100%; max-width: 360px; margin-top: 8px; text-align: left; font-size: var(--fs-sm); }
.receipt > div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.receipt b { font-variant-numeric: tabular-nums; }
.show-sm { display: none; }
@media (max-width: 520px) { .show-sm { display: block; } }

/* Booking and enquiry pages */
.day-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.day-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -2px; scroll-snap-type: x proximity; }
.pub .day-btn { flex: none; width: 58px; display: grid; justify-items: center; gap: 1px; padding: 8px 0; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--solid); color: var(--ink); font: inherit; cursor: pointer; scroll-snap-align: start; }
.pub .day-btn small { font-size: var(--fs-xs); color: var(--ink-3); font-weight: 600; }
.pub .day-btn b { font-size: 1.15rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.pub .day-btn:hover { border-color: var(--brand); }
.pub .day-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.pub .day-btn[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.pub .day-btn[aria-pressed="true"] small { color: inherit; opacity: .85; }
.pub .slot-btn { padding: 9px 14px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--solid); color: var(--ink); font: inherit; font-weight: 600; font-size: var(--fs-sm); cursor: pointer; min-height: 40px; }
.pub .slot-btn:hover { border-color: var(--brand); }
.pub .slot-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.pub .slot-btn[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pub .err[hidden] { display: none; }
.pub .err { color: var(--bad); font-weight: 600; }
.pub input[type="file"].input { padding: 8px 10px; height: auto; cursor: pointer; }
.pub input[type="file"]::file-selector-button { margin-right: 12px; padding: 7px 14px; border: 0; border-radius: var(--r-pill); background: var(--brand-soft); color: var(--brand); font: inherit; font-weight: 650; font-size: var(--fs-sm); cursor: pointer; }
.pub input[type="file"]::file-selector-button:hover { background: var(--brand); color: var(--on-brand); }
.pub-foot a { color: inherit; text-decoration: underline; }

/* Quote options, signature and deposit on the customer page; the customer account page */
.opt-cards { display: grid; gap: 10px; margin-top: 12px; }
.opt-card { display: grid; gap: 6px; padding: 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--solid); }
.opt-card.rec, .opt-card.chosen { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.opt-radios { display: grid; gap: 8px; }
.opt-radio { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--solid); cursor: pointer; }
.opt-radio:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.opt-radio span { display: flex; justify-content: space-between; flex: 1; gap: 10px; }
.opt-radio small { font-weight: 700; color: var(--ink); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.acc-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.acc-sum span { display: block; font-size: var(--fs-xs); color: var(--ink-3); font-weight: 600; }
.acc-sum b { font-size: var(--fs-lg); }
.acc-work { padding: 12px 0; border-bottom: 1px solid var(--line); }
.acc-work:last-child { border-bottom: 0; }
.acc-row { padding: 6px 0; }
.card h3 svg { width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; color: var(--accent); }
.sigpad-box { position: relative; height: 150px; border-radius: var(--r-md); border: 1.5px dashed var(--line); background: var(--solid); }
.sigpad.signed .sigpad-box { border-style: solid; border-color: var(--accent); }
.sigpad canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.sigpad-hint { position: absolute; left: 14px; top: 10px; font-size: var(--fs-xs); color: var(--ink-4); pointer-events: none; }
.sigpad.signed .sigpad-hint { display: none; }
.sigpad-line { position: absolute; left: 14px; right: 14px; bottom: 34px; border-bottom: 1px solid var(--line); pointer-events: none; }
.sigpad-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; gap: 8px; }

/* Connect WhatsApp page: the numbered steps (same look as the dashboard's). */
.pub .steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pub .steps li { display: flex; gap: 10px; align-items: flex-start; }
.pub .step-n { width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: var(--fs-xs); font-weight: 800; background: var(--brand-soft); color: var(--brand); margin-top: 1px; }
