/* Service Booking — design system (phone-first, approved mockup) */

@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 400; font-display: swap; src: url('fonts/plus-jakarta-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 500; font-display: swap; src: url('fonts/plus-jakarta-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 600; font-display: swap; src: url('fonts/plus-jakarta-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 700; font-display: swap; src: url('fonts/plus-jakarta-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-display: swap; src: url('fonts/plus-jakarta-sans-latin-800-normal.woff2') format('woff2'); }

:root {
    --bg: #F4F5F7;
    --surface: #FFFFFF;
    --ink: #14181F;
    --muted: #5B6472;
    --faint: #8A929E;
    --line: #E4E7EB;
    --line-strong: #D3D8DE;
    --accent: #0E6B5C;
    --accent-dark: #0A5246;
    --accent-soft: #E3F1EE;
    --danger: #B42318;
    --danger-soft: #FDECEC;
    --warn: #8A4B00;
    --warn-soft: #FFF4E5;
    --radius: 16px;
    --tap: 44px;
}

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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.45;
}

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- App shell ---------- */
.app { max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; position: relative; }
.app--wide { max-width: 760px; }
.app-main { flex: 1 0 auto; display: flex; flex-direction: column; }
.spacer { flex: 1 1 auto; }

.topbar { display: flex; align-items: center; gap: 12px; padding: 20px 20px 12px; }
.topbar__text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.topbar__title { font-size: 18px; font-weight: 800; line-height: 1.2; }
.topbar__sub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-title { font-size: 24px; font-weight: 800; line-height: 1.2; }
.page-kicker { font-size: 13px; font-weight: 600; color: var(--muted); }

.brand-mark { width: 46px; height: 46px; border-radius: 14px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; letter-spacing: .5px; flex: 0 0 auto; overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.brand-mark--lg { width: 64px; height: 64px; border-radius: 18px; font-size: 22px; }

.section { padding: 0 20px; display: flex; flex-direction: column; gap: 10px; }
.section + .section { margin-top: 16px; }
.section-label { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .6px; text-transform: uppercase; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.strong { font-weight: 700; }
.price { font-size: 16px; font-weight: 800; white-space: nowrap; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.row--between { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-sm { display: flex; flex-direction: column; gap: 6px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Cards & lists ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.card--flush { padding: 0; overflow: hidden; }

.choice-list { background: var(--surface); border: 1px solid var(--line); border-top: none; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.choice { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 8px 14px; border: none; border-top: 1px solid var(--line); background: var(--surface); text-align: left; cursor: pointer; width: 100%; }
.choice__dot { width: 22px; height: 22px; border-radius: 11px; border: 2px solid #B9C1CA; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.choice__text { display: flex; flex-direction: column; gap: 1px; flex: 1 1 auto; min-width: 0; }
.choice__name { font-size: 15px; font-weight: 700; }
.choice__meta { font-size: 12px; font-weight: 600; color: var(--muted); }
.choice[aria-checked="true"] { background: var(--accent-soft); }
.choice[aria-checked="true"] .choice__dot { background: var(--accent); border-color: var(--accent); }
.choice[aria-checked="true"] .choice__dot::after { content: ''; width: 9px; height: 5px; border-left: 2.6px solid #fff; border-bottom: 2.6px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.choice[aria-checked="true"] .choice__meta { color: var(--accent-dark); }

.link-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.link-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; text-decoration: none; color: var(--ink); border-top: 1px solid var(--line); background: none; width: 100%; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; cursor: pointer; }
.link-row:first-child { border-top: none; }
.link-row:hover { background: #FAFBFC; color: var(--ink); }
.link-row__icon { width: 38px; height: 38px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.link-row__chev { color: var(--faint); }

/* ---------- Date strip & slots ---------- */
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day { height: 64px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; padding: 0; }
.day__dow { font-size: 11px; font-weight: 600; color: var(--muted); }
.day__num { font-size: 18px; font-weight: 800; }
.day.is-selected { background: var(--accent); border-color: var(--accent); color: #fff; }
.day.is-selected .day__dow { color: #fff; }
.day:disabled { background: transparent; border-style: dashed; border-color: var(--line-strong); color: var(--faint); cursor: default; }
.day:disabled .day__num { text-decoration: line-through; font-weight: 700; }
.day.is-full:not(.is-selected) .day__num { color: var(--faint); }

.week-nav { display: flex; align-items: center; gap: 6px; }

.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.slot { height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 15px; font-weight: 700; cursor: pointer; }
.slot.is-selected { background: var(--accent); border-color: var(--accent); color: #fff; }
.slot:disabled { background: #EBEDF0; border-color: #EBEDF0; color: var(--faint); text-decoration: line-through; cursor: default; font-weight: 600; }
.slots-empty { grid-column: 1 / -1; padding: 16px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: 12px; font-size: 14px; }

/* ---------- Bottom action bar ---------- */
.bar { position: sticky; bottom: 0; z-index: 5; background: var(--surface); border-top: 1px solid var(--line); border-radius: 22px 22px 0 0; padding: 14px 20px calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn { min-height: 52px; border-radius: 14px; border: 1px solid transparent; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; font-weight: 700; cursor: pointer; text-decoration: none; line-height: 1.2; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-secondary { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn-secondary:hover { background: #FAFBFC; color: var(--ink); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #912018; color: #fff; }
.btn-ghost { background: transparent; color: var(--accent); border: none; min-height: var(--tap); padding: 0 6px; }
.btn-block { width: 100%; }
.btn-sm { min-height: 44px; font-size: 14px; border-radius: 12px; }
.btn:disabled, .btn[aria-disabled="true"] { background: #D9DDE2; color: var(--muted); border-color: #D9DDE2; cursor: not-allowed; }
.btn-row { display: flex; gap: 8px; }
.btn-row > * { flex: 1 1 0; white-space: nowrap; padding-left: 10px; padding-right: 10px; }

.icon-btn { width: var(--tap); height: var(--tap); border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); cursor: pointer; flex: 0 0 auto; text-decoration: none; }
.icon-btn:hover { color: var(--ink); background: #FAFBFC; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 12px; }
.field { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
.field > .input, .field > .select, .field > .textarea, .field > .field-error, .field > input[type=file] { display: block; margin-top: 4px; }
.field > .seg { margin-top: 4px; }
.field > .input.hidden, .field > .select[hidden] { display: none; }
.field__opt { font-weight: 500; }
.input, .select, .textarea { width: 100%; min-height: 46px; border: 1px solid var(--line-strong); border-radius: 12px; padding: 0 14px; font-size: 16px; color: var(--ink); background: var(--surface); font-weight: 500; }
.textarea { padding: 10px 14px; resize: vertical; min-height: 64px; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235B6472' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 12px; font-weight: 600; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink); min-height: var(--tap); font-weight: 500; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); flex: 0 0 auto; }
.uppercase { text-transform: uppercase; }

/* ---------- Flash & notices ---------- */
.flashes { padding: 0 20px; display: flex; flex-direction: column; gap: 8px; }
.flash { border-radius: 12px; padding: 12px 14px; font-size: 14px; font-weight: 600; }
.flash--success { background: var(--accent-soft); color: var(--accent-dark); }
.flash--error { background: var(--danger-soft); color: #8A1C12; }
.flash--info { background: #EEF2F6; color: #2E3742; }
.notice { border-radius: 12px; padding: 12px 14px; font-size: 14px; background: var(--warn-soft); color: var(--warn); font-weight: 600; }

/* ---------- Owner: stats & diary ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.stat__num { font-size: 20px; font-weight: 800; }
.stat__label { font-size: 12px; color: var(--muted); font-weight: 600; }

.diary { display: flex; flex-direction: column; gap: 6px; }
.slot-row { display: flex; align-items: center; gap: 12px; border-radius: 14px; padding: 10px 12px; min-height: 54px; text-decoration: none; color: var(--ink); width: 100%; text-align: left; font-size: 14px; }
.slot-row__time { width: 48px; font-size: 14px; font-weight: 800; flex: 0 0 auto; }
.slot-row__body { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.slot-row__title { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-row__meta { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-row--booked { background: var(--accent); color: #fff; }
.slot-row--booked:hover { background: var(--accent-dark); color: #fff; }
.slot-row--booked .slot-row__meta { opacity: .9; }
.slot-row--free { background: transparent; border: 1.5px dashed #B9C1CA; cursor: pointer; }
.slot-row--free:hover { background: var(--surface); }
.slot-row--blocked { background: #E1E4E8; color: #3D4550; }
.slot-row--past { background: transparent; color: var(--faint); border: 1px solid var(--line); }
.slot-row--conflict { background: var(--warn-soft); color: #5C3300; border: 2px solid #B54708; }
.slot-row--break { min-height: 28px; padding: 2px 12px; color: var(--muted); font-size: 13px; font-weight: 600; }
.slot-row--break .line { flex: 1 1 auto; height: 1px; background: var(--line-strong); }
.tag { font-size: 11px; font-weight: 800; letter-spacing: .5px; border-radius: 8px; padding: 4px 7px; white-space: nowrap; text-transform: uppercase; }
.tag--light { background: #fff; color: var(--accent-dark); }
.tag--accent { background: var(--accent); color: #fff; }
.tag--grey { background: #E1E4E8; color: #3D4550; }
.tag--warn { background: #B54708; color: #fff; }
.tag--danger { background: var(--danger-soft); color: var(--danger); }
.day-banner { border-radius: 14px; padding: 14px; background: #E1E4E8; color: #2E3742; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }

/* ---------- Month calendar ---------- */
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.month__dow { font-size: 11px; font-weight: 700; color: var(--muted); text-align: center; padding-bottom: 2px; }
.mday { aspect-ratio: 1 / 1.05; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 15px; }
.mday--blank { background: transparent; border: none; }
.mday--off, .mday--closed, .mday--vacation { background: transparent; border-style: dashed; color: var(--faint); }
.mday--today { outline: 2px solid var(--accent); outline-offset: -2px; }
.mday__dots { font-size: 10px; font-weight: 800; line-height: 1; min-height: 10px; color: var(--accent); }
.mday--vacation .mday__dots, .mday--closed .mday__dots { color: var(--faint); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); font-weight: 600; }

/* ---------- Bottom navigation ---------- */
.bottom-nav { position: sticky; bottom: 0; z-index: 6; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border-top: 1px solid var(--line); height: calc(64px + env(safe-area-inset-bottom)); padding: 4px 6px env(safe-area-inset-bottom); margin-top: 16px; }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 700; min-height: var(--tap); }
.bottom-nav a[aria-current="page"] { color: var(--accent); font-weight: 800; }

/* ---------- Segmented tabs ---------- */
.tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: #E9ECEF; border-radius: 12px; padding: 4px; gap: 4px; }
.tabs a { text-align: center; padding: 9px 6px; border-radius: 9px; text-decoration: none; color: var(--muted); font-weight: 700; font-size: 14px; }
.tabs a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(20, 24, 31, .08); }

/* ---------- Sheets (dialogs) ---------- */
dialog.sheet { border: none; padding: 0; width: 100%; max-width: 480px; margin: auto auto 0; border-radius: 22px 22px 0 0; background: var(--surface); color: var(--ink); max-height: 92dvh; }
dialog.sheet::backdrop { background: rgba(20, 24, 31, .45); }
.sheet__body { padding: 18px 20px calc(22px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; }
.sheet__grip { width: 40px; height: 4px; border-radius: 2px; background: var(--line-strong); margin: 0 auto 4px; }
.sheet__title { font-size: 18px; font-weight: 800; }

/* ---------- Misc ---------- */
.empty { text-align: center; color: var(--muted); padding: 28px 16px; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); font-size: 14px; }
.success-mark { width: 84px; height: 84px; border-radius: 42px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.kv > :first-child { color: var(--muted); }
.kv > :last-child { font-weight: 700; text-align: right; }
.qr-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; justify-content: center; }
.qr-box canvas { width: 240px; height: 240px; image-rendering: pixelated; }
.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; background: #EEF2F6; padding: 10px 12px; border-radius: 10px; word-break: break-all; color: var(--ink); }
.week-table { display: flex; flex-direction: column; gap: 8px; }
.week-day { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.week-day__head { display: flex; align-items: center; justify-content: space-between; }
.week-day__times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.search-results { display: flex; flex-direction: column; gap: 6px; }
.search-hit { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; text-align: left; width: 100%; }

@media (min-width: 720px) {
    .app { padding-top: 12px; }
    .bar { border-radius: 22px; margin: 16px 20px 20px; position: static; }
}

@media print {
    .bottom-nav, .no-print { display: none !important; }
    body { background: #fff; }
}

/* ---------- Build A additions ---------- */
.mday--past { opacity: .55; }
.day--loading { background: #ECEEF1; border-color: #ECEEF1; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .day--loading { animation: none; } }
.choice--more { justify-content: center; color: var(--accent); gap: 6px; min-height: 46px; }
.choice--more .choice__name { font-size: 14px; }
.slot-row--free, .slot-row--blocked { border: none; font: inherit; cursor: pointer; }
.slot-row--free { border: 1.5px dashed #B9C1CA; background: transparent; }
.topbar__text.center { align-items: center; }
.card .link-row__icon { flex: 0 0 auto; }
.service-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); background: var(--surface); }
.service-row:first-child { border-top: none; }
.service-row.is-off { background: #FAFBFC; }
.service-row.is-off .strong { color: var(--muted); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-strong); border-radius: 12px; padding: 10px 12px; background: var(--surface); cursor: pointer; font-weight: 700; color: var(--ink); font-size: 14px; min-height: 52px; }
.seg input { accent-color: var(--accent); width: 18px; height: 18px; }
.seg label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }
.switch { display: inline-block; position: relative; width: 46px; height: 28px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: #C9CFD6; border-radius: 14px; transition: background .15s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 11px; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.week-day.is-off .week-day__times, .week-day.is-off .week-day__breaks { display: none; }
.week-day__breaks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.week-day__breaks .field { font-size: 11px; }
details.more > summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--accent); list-style: none; padding: 4px 0; }
details.more > summary::-webkit-details-marker { display: none; }
.settings-head { display: flex; align-items: center; gap: 14px; }
.logo-preview { width: 64px; height: 64px; }
.search-hit:hover { border-color: var(--accent); }
.selected-customer { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; }
.timeline { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.timeline div { display: flex; gap: 10px; }
.timeline span:first-child { color: var(--muted); width: 90px; flex: 0 0 auto; }
.week-day.is-off .week-day__times, .week-day.is-off .week-day__breaks-wrap { display: none; }
@media print { .topbar .icon-btn, .flashes { display: none !important; } .qr-box { border: none; } }

/* Owner pages: the action bar sits just above the bottom navigation. */
.app--owner .bar { bottom: calc(64px + env(safe-area-inset-bottom)); margin-bottom: -16px; padding-bottom: 14px; box-shadow: 0 -6px 16px rgba(20, 24, 31, .05); }
@media (min-width: 720px) { .app--owner .bar { margin: 16px 20px 0; } }

/* ---------- Build B ---------- */
.invoice__sheet { padding: 22px; gap: 18px; }
.invoice__logo { width: 56px; height: 56px; object-fit: contain; border-radius: 10px; }
.invoice__table { width: 100%; border-collapse: collapse; font-size: 14px; }
.invoice__table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; padding: 8px 6px; border-bottom: 1px solid var(--line-strong); }
.invoice__table td { padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.invoice__table .num { text-align: right; white-space: nowrap; }
.invoice__totals { display: flex; flex-direction: column; gap: 6px; margin-left: auto; width: 100%; max-width: 300px; }
.invoice__total { font-size: 16px; border-top: 1px solid var(--line-strong); padding-top: 8px; }
.invoice__total > :first-child { color: var(--ink) !important; font-weight: 800; }
.invoice__due > :last-child { font-size: 17px; }
.money-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pay-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.pay-row:first-child { border-top: none; padding-top: 0; }
.charge-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.charge-row:first-of-type { border-top: none; }
.tag--ok { background: var(--accent-soft); color: var(--accent-dark); }
.steps { display: flex; gap: 6px; font-size: 12px; font-weight: 700; color: var(--faint); }
.steps span { flex: 1 1 0; text-align: center; padding: 6px 0; border-radius: 8px; background: #EBEDF0; }
.steps span.is-done { background: var(--accent-soft); color: var(--accent-dark); }
.steps span.is-now { background: var(--accent); color: #fff; }
@media print {
    .app { max-width: none; padding: 0; }
    .card.invoice__sheet { border: none; padding: 0; }
}

/* ---------- Build C ---------- */
.month-strip { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-dark); text-decoration: none; font-size: 13px; font-weight: 600; }
.month-strip:hover { color: var(--accent-dark); background: #D5EAE5; }
.slot-row--travel { min-height: 26px; padding: 0 12px; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 600; }
.slot-row--travel .slot-row__time { font-size: 12px; font-weight: 700; color: var(--faint); }

/* Booking page: saved postcode line */
.postcode-known { display: flex; flex-direction: row; align-items: center; gap: 8px; padding: 4px 4px 4px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-size: 14px; }
.postcode-known strong { color: var(--ink); }
.postcode-known .btn { margin-left: auto; }
