:root {
    --ink: #1B1A17;
    --bg: #F7F6F2;
    --card: #FFFFFF;
    --line: #E4E1D8;
    --muted: #5E5B54;
    --accent: #F2B33D;
    --on-accent: #1B1A17;
    --accent-text: #8A5A00;
    --green: #2E6B3A;
    --red: #9A2E1C;
    --gutter: 16px;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: 'Manrope', system-ui, sans-serif;
    background: var(--bg);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
}

a { color: var(--accent-text); }

[x-cloak] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Pagina's voor inloggen (smal, op pc als kaart in het midden) ---------- */

.page { max-width: 440px; margin: 0 auto; padding: 32px var(--gutter); }

@media (min-width: 640px) {
    .page-auth { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
    .page-auth .auth-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 32px; }
}

.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 32px; font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 36px; height: 36px; border-radius: 12px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; flex-shrink: 0; }
.brand-word { font-weight: 800; font-size: 22px; letter-spacing: -0.04em; }

h1 { font-size: 24px; line-height: 1.25; margin: 0 0 4px; }
h2 { font-size: 18px; margin: 0 0 12px; }
.lead { color: var(--muted); margin: 0 0 24px; font-size: 15px; }

/* ---------- Beheer: kopbalk en inhoud ---------- */

.appbar { background: var(--card); border-bottom: 1px solid var(--line); }
.appbar-inner { max-width: 960px; margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; gap: 12px; min-height: 64px; }
.appbar .brand { margin: 0; font-size: 16px; min-width: 0; }
.appbar .brand span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.content { max-width: 960px; margin: 0 auto; padding: 24px var(--gutter) 48px; }
.content-narrow { max-width: 720px; }

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.eyebrow { font-size: 14px; color: var(--muted); margin: 0; }
.back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-weight: 600; text-decoration: none; color: var(--muted); margin: -8px 0 4px; }

@media (min-width: 768px) {
    :root { --gutter: 24px; }
    h1 { font-size: 28px; }
}

/* ---------- Formulieren ---------- */

label, .label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field { margin-bottom: 16px; min-width: 0; }
.hint { font-size: 14px; color: var(--muted); margin: 6px 0 0; }

input[type=email], input[type=password], input[type=text], input[type=tel], input[type=number], input[type=date], input[type=time], select, textarea {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card);
    font: inherit;
    color: var(--ink);
}
textarea { padding: 12px 14px; min-height: 96px; resize: vertical; }
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='%235E5B54' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--ink); }

.input-prefix { position: relative; }
.input-prefix span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-prefix input { padding-left: 34px; }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 16px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 500; font-size: 16px; margin: 0; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--ink); flex-shrink: 0; margin: 0; }

.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.form-actions .btn { flex: 1 1 200px; }
@media (min-width: 640px) { .form-actions .btn { flex: 0 0 auto; min-width: 180px; } }

/* ---------- Knoppen ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 18px;
    border: 1px solid var(--line); border-radius: 12px;
    background: var(--card); color: var(--ink);
    font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
    text-align: center;
}
.btn:hover { border-color: var(--muted); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { border-color: var(--ink); }
.btn-block { width: 100%; }
.btn-small { min-height: 44px; font-size: 15px; padding: 0 14px; }
.btn-danger { color: var(--red); }
.btn-link { background: none; border: 0; padding: 0 4px; min-height: 44px; color: var(--accent-text); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-align: left; }

.center { text-align: center; margin-top: 20px; font-size: 15px; }

/* ---------- Meldingen ---------- */

.error { color: var(--red); font-size: 14px; margin-top: 6px; }
.notice { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 0; padding: 12px 14px; margin-bottom: 20px; font-size: 15px; }
.notice-error { border-left-color: var(--red); }

/* ---------- Kaarten en lijsten ---------- */

.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-bottom: 12px; }
@media (min-width: 768px) { .card { padding: 20px 24px; } }
.card-title { font-size: 14px; color: var(--muted); margin: 0 0 12px; font-weight: 600; }
.card-dashed { border-style: dashed; color: var(--muted); font-size: 15px; }

.list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 16px; }
@media (min-width: 768px) { .list-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.list-item {
    display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px;
    background: var(--card); border: 1px solid var(--line); border-radius: 14px;
    color: var(--ink); text-decoration: none; min-width: 0;
}
a.list-item:hover { border-color: var(--muted); }
.list-item-main { flex: 1; min-width: 0; }
.list-item-main p { margin: 0; overflow: hidden; text-overflow: ellipsis; }
.list-item-end { flex-shrink: 0; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.is-muted { opacity: .6; }

.group-label { font-size: 14px; color: var(--muted); font-weight: 600; margin: 20px 0 8px; }
.group-label:first-child { margin-top: 0; }

.person { display: flex; align-items: center; gap: 12px; min-height: 52px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--line); display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.avatar-accent { background: var(--accent); color: var(--on-accent); }
.avatar-photo { object-fit: cover; background: var(--line); display: block; }

.photo-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.photo-actions { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 200px; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.person-name { margin: 0; font-weight: 600; }
.person-meta { margin: 0; font-size: 14px; color: var(--muted); }

.badge { display: inline-block; font-size: 13px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); }

.list-button { width: 100%; justify-content: space-between; margin-bottom: 10px; min-height: 56px; }

/* ---------- Tabbladen medewerker ---------- */

.tabs { display: flex; gap: 4px; padding: 4px; margin: 0 0 20px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: 1 0 auto; min-height: 44px; padding: 0 14px; display: flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.tabs a[aria-current=page] { background: var(--ink); color: #FFF; }

/* Op een smalle telefoon passen vier tabs niet naast elkaar: 2 x 2. */
@media (max-width: 479px) {
    .tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tabs a { font-size: 14px; padding: 0 8px; }
}

.toolbar { display: flex; justify-content: flex-end; margin-bottom: 16px; }
@media (max-width: 479px) {
    .toolbar .btn, .page-head > .btn { width: 100%; }
}

/* ---------- Werktijden ---------- */

.day { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin-bottom: 10px; }
.day-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.day-off { color: var(--muted); font-size: 15px; margin: 0; }
.blocks { margin-top: 8px; }
.block { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.block input { flex: 1 1 0; min-width: 0; }
.block .dash { color: var(--muted); }
.icon-btn { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--muted); cursor: pointer; font: inherit; font-size: 20px; line-height: 1; }
.icon-btn:hover { color: var(--red); border-color: var(--red); }
.day-tools { display: flex; flex-wrap: wrap; gap: 0 12px; }

@media (min-width: 768px) {
    .day { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; align-items: start; padding: 14px 20px; }
    .day-head { padding-top: 2px; }
    .blocks { margin-top: 0; }
    .day-off { min-height: 44px; display: flex; align-items: center; }
    .block input { flex: 0 1 150px; }
}

/* ---------- Toggle (checkbox als schakelaar) ---------- */

.switch { display: flex; width: fit-content; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-weight: 600; }
.switch input { appearance: none; width: 44px; height: 26px; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; margin: 0; flex-shrink: 0; transition: background .15s; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #FFF; transition: transform .15s; }
.switch input:checked { background: var(--green); }
.switch input:checked::after { transform: translateX(18px); }
.switch input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Bedrijf: kleur, logo, boeklink ---------- */

.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--swatch); border: 1px solid rgba(27, 26, 23, .15); cursor: pointer; margin: 0; display: grid; place-items: center; }
.swatch:has(input:checked), .swatch-custom.is-custom { outline: 3px solid var(--ink); outline-offset: 3px; }
.swatch:has(input:focus-visible) { outline: 3px solid var(--accent-text); outline-offset: 3px; }
.swatch-custom { background: var(--card); border: 1px dashed var(--muted); font-size: 22px; color: var(--muted); }
.swatch-custom.is-custom { background: var(--swatch); border-style: solid; color: transparent; }
.swatch-custom input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }

.preview-button { display: flex; align-items: center; justify-content: center; min-height: 48px; max-width: 280px; border-radius: 12px; font-weight: 700; margin: 6px 0 4px; }

.brand-logo { height: 36px; width: auto; max-width: 120px; object-fit: contain; flex-shrink: 0; }
.logo-preview { max-height: 80px; max-width: 200px; object-fit: contain; background: var(--bg); border-radius: 12px; padding: 8px; }

.copy-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.copy-value { flex: 1 1 200px; min-width: 0; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; font-size: 14px; overflow-wrap: anywhere; }
.code-block { margin: 0 0 10px; padding: 12px 14px; background: var(--ink); color: #F7F6F2; border-radius: 12px; font-size: 13px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }

/* ---------- Boekingsflow (klant) ---------- */

.booking-body { background: var(--bg); }
.booking-shell { max-width: 560px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
.booking-head { display: flex; align-items: center; gap: 10px; padding: 14px var(--gutter); min-height: 64px; }
.booking-salon { font-weight: 700; font-size: 17px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.booking-close { margin-left: auto; font-size: 24px; color: var(--ink); }
.booking-main { flex: 1; padding: 8px var(--gutter) 32px; }
.booking-foot { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px var(--gutter) 20px; font-size: 13px; color: var(--muted); }
.booking-foot strong { color: var(--ink); font-weight: 800; letter-spacing: -0.02em; }

@media (min-width: 640px) {
    .booking-body:not(.is-embed) { padding: 32px 16px; }
    .booking-body:not(.is-embed) .booking-shell { min-height: 0; background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
    .booking-body:not(.is-embed) .booking-head { border-bottom: 1px solid var(--line); }
    .booking-body:not(.is-embed) .booking-main { padding-top: 20px; }
}

.steps-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
.steps-label { margin: 0 0 0 auto; font-size: 14px; color: var(--muted); font-weight: 600; }
.back-btn { min-height: 44px; padding: 0 8px 0 0; background: none; border: 0; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }
.steps-bar { display: flex; gap: 4px; margin: 4px 0 20px; }
.steps-bar i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.steps-bar i.on { background: var(--accent); }

.booking-title { font-size: 22px; margin: 0 0 16px; }

.choice {
    display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 12px 16px;
    background: var(--card); border: 1px solid var(--line); border-radius: 14px;
    color: var(--ink); font: inherit; text-align: left; cursor: pointer;
}
.choice:hover:not(:disabled) { border-color: var(--muted); }
.choice[aria-pressed=true] { border: 2px solid var(--ink); padding: 11px 15px; }
.choice:disabled { opacity: .5; cursor: not-allowed; }
.choice:focus-visible, .day-btn:focus-visible, .time-btn:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; }

.checkmark { width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--muted); flex-shrink: 0; display: grid; place-items: center; }
.service-choice[aria-pressed=true] .checkmark { background: var(--ink); border-color: var(--ink); }
.service-choice[aria-pressed=true] .checkmark::after { content: ''; width: 10px; height: 6px; border: solid #FFF; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }

.has-bar { padding-bottom: 140px; }
.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); }
.bottom-bar-inner { max-width: 528px; margin: 0 auto; }
.bottom-bar-summary { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: 15px; }

.week-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.week-head strong::first-letter { text-transform: uppercase; }
.week-nav { display: flex; gap: 8px; }
.week-nav .icon-btn { color: var(--ink); font-size: 22px; }
.week-nav .icon-btn:hover:not(:disabled) { color: var(--ink); border-color: var(--muted); }
.icon-btn:disabled { opacity: .35; cursor: not-allowed; }

.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 20px; }
.day-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; padding: 6px 0; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.day-btn strong { font-size: 17px; }
.day-btn[aria-selected=true] { background: var(--ink); border-color: var(--ink); color: #FFF; }
.day-btn:disabled { background: transparent; color: #B4B2A9; cursor: not-allowed; }
.day-title { font-weight: 700; margin: 0 0 4px; }
.day-title::first-letter { text-transform: uppercase; }

.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-bottom: 8px; }
.time-btn { min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.time-btn:hover { border-color: var(--muted); }
.time-btn[aria-pressed=true] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.summary p { margin: 0; }
.summary .person-name::first-letter { text-transform: uppercase; }

.confirm-head { text-align: center; margin: 8px 0 16px; }
.confirm-icon { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: var(--green); color: #FFF; display: grid; place-items: center; font-size: 28px; font-weight: 700; }
.confirm-icon.is-cancelled { background: var(--muted); }
.stack { display: grid; gap: 10px; }

/* ---------- Afsprakenlijst (beheer) ---------- */

.first-up::first-letter { text-transform: uppercase; }

.agenda-week { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.agenda-week .days { flex: 1; margin: 0; gap: 4px; }
.agenda-week .icon-btn { color: var(--ink); font-size: 22px; text-decoration: none; }
.agenda-week .day-btn { text-decoration: none; min-height: 64px; }
.agenda-week .day-btn[aria-current=date] { background: var(--ink); border-color: var(--ink); color: #FFF; }
.agenda-week .day-btn[data-today]:not([aria-current]) { border-color: var(--ink); }
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-text); }
.day-btn[aria-current=date] .dot { background: #FFF; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #FFF; }

.totals { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; margin-bottom: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }

.appt { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px; margin-bottom: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; }
.appt:hover { border-color: var(--muted); }
.appt.is-selected { border: 2px solid var(--ink); padding: 11px 15px; }
.appt.is-cancelled { opacity: .6; }
.appt.is-cancelled .appt-name { text-decoration: line-through; }
.appt-time { font-weight: 700; min-width: 48px; }

.detail-name { font-size: 22px; margin: 0 0 2px; }
.line { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.line-total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.contact p { margin: 10px 0 0; }
.contact p:first-child { margin-top: 0; }
.contact a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; overflow-wrap: anywhere; }

/* Telefoon: óf de lijst óf het detail. Pc: naast elkaar. */
.agenda.has-detail .agenda-list { display: none; }
@media (min-width: 1024px) {
    .agenda.has-detail { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
    .agenda.has-detail .agenda-list { display: block; }
    .agenda-detail { position: sticky; top: 16px; }
    .agenda-detail .back { display: none; }
}

/* ---------- Mijn dag ---------- */

.day-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.day-nav .icon-btn { color: var(--ink); font-size: 22px; text-decoration: none; }
.day-nav-title { flex: 1; text-align: center; min-width: 0; }
.day-nav-title h1 { font-size: 20px; margin: 0; }
.day-summary { text-align: center; color: var(--muted); font-size: 15px; margin: 0 0 16px; }

.timeline { list-style: none; margin: 0; padding: 0; }
.tl-row { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px; align-items: start; margin-bottom: 8px; }
.tl-time { font-size: 14px; font-weight: 600; color: var(--muted); padding-top: 14px; }
.tl-item { border-radius: 14px; padding: 12px 14px; min-height: 48px; }
.tl-appt { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.tl-appt:hover { border-color: var(--muted); }
.tl-appt .person-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tl-appt.is-next { border: 2px solid var(--ink); padding: 11px 13px; }
.tl-appt.is-selected { border: 2px solid var(--ink); padding: 11px 13px; }
.tl-appt.is-done { opacity: .6; }
.tl-free { border: 1px dashed var(--line); color: var(--muted); text-align: center; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.tl-break, .tl-blocked { background: repeating-linear-gradient(135deg, #ECEAE3 0 8px, var(--bg) 8px 16px); color: var(--muted); font-size: 14px; display: flex; align-items: center; flex-wrap: wrap; }
.tl-blocked strong { color: var(--ink); }
.tl-now { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px; align-items: center; margin: 4px 0 12px; color: var(--red); font-size: 13px; font-weight: 700; }
.tl-now::after { content: ''; height: 2px; background: var(--red); border-radius: 2px; }

.badge-ok { background: #EAF3DE; border-color: #C0DD97; color: var(--green); }

.status-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.status-buttons form { display: contents; }
.status-btn { min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; padding: 0 4px; }
.status-btn:hover { border-color: var(--muted); }
.status-btn[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: #FFF; }
.muted-name { color: var(--muted); font-weight: 600; }

/* ---------- Menu: links op de pc, tabbalk onderaan op telefoon en tablet ---------- */

.sidebar { display: none; }
.appbar-tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.appbar-tools a, .appbar-tools button {
    min-height: 44px; min-width: 44px; padding: 0 12px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
    color: var(--ink); text-decoration: none; font: inherit; font-weight: 600; font-size: 15px; background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.appbar-tools a:hover, .appbar-tools button:hover { background: var(--bg); }
.appbar-tools .nav-icon { display: none; }
.appbar-tools .appbar-new { display: none; }
.appbar-search { display: none; }

.tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
    background: var(--card); border-top: 1px solid var(--line);
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
}
.tabbar > a, .tab-more-wrap > button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 100%;
    min-height: 56px; padding: 4px 2px; border: 0; border-radius: 12px; background: none; cursor: pointer;
    font: inherit; font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; text-decoration: none; white-space: nowrap;
}
.tabbar span { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@media (max-width: 359px) {
    .tabbar > a, .tab-more-wrap > button { font-size: 11px; letter-spacing: -0.01em; padding: 4px 0; }
}
.tabbar [aria-current=page] { color: var(--ink); }
.tabbar [aria-current=page] .tab-icon { stroke-width: 2.5; }
.tab-more { position: absolute; right: 8px; bottom: calc(100% + 8px); min-width: 200px; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 32px rgba(27, 26, 23, .16); }
.tab-more a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 12px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; }
.tab-more a:hover, .tab-more a[aria-current=page] { background: var(--bg); }

body.has-tabbar { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
body.has-tabbar .bottom-bar { bottom: calc(68px + env(safe-area-inset-bottom)); }

@media (max-width: 599px) {
    .appbar .brand-name { display: inline; font-size: 16px; }
    .appbar-tools { gap: 0; }
    .appbar-tools .nav-label { display: none; }
    .appbar-tools .nav-icon { display: block; font-size: 18px; }
    .appbar-tools a, .appbar-tools button { padding: 0 8px; }
}

@media (min-width: 1024px) {
    .shell { display: flex; min-height: 100vh; }
    .sidebar {
        display: flex; flex-direction: column; flex: 0 0 240px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
        padding: 16px 14px; background: var(--card); border-right: 1px solid var(--line);
    }
    .sidebar-brand { margin: 0 0 20px; padding: 4px 6px; font-size: 16px; min-width: 0; }
    .sidebar-brand .brand-name { line-height: 1.25; overflow-wrap: anywhere; }
    .side-nav { display: flex; flex-direction: column; gap: 2px; }
    .side-nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; }
    .side-nav a:hover { background: var(--bg); }
    .side-nav a[aria-current=page] { background: var(--ink); color: #FFF; }
    .sidebar-foot { margin-top: auto; padding: 16px 6px 4px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
    .sidebar-foot a { font-weight: 700; }
    .shell-body { flex: 1 1 auto; min-width: 0; }
    .appbar-brand { display: none; }
    .appbar-search { display: block; flex: 0 1 380px; }
    .appbar-search input { min-height: 44px; }
    .appbar-inner { max-width: none; padding: 10px 24px; }
    .appbar-tools .appbar-new { display: inline-flex; background: var(--accent); color: var(--on-accent); padding: 0 16px; }
    .appbar-tools .appbar-new:hover { background: var(--accent); filter: brightness(.96); }
    body:has(.fab) .appbar-tools .appbar-new { display: none; }
    .tabbar { display: none; }
    body.has-tabbar { padding-bottom: 0; }
    body.has-tabbar .bottom-bar { bottom: 0; }
    .fab { right: max(16px, calc((100vw - 240px - 960px) / 2 + 16px)); }
}

.agenda-narrow:not(.has-detail) { max-width: 720px; margin: 0 auto; }

/* ---------- Nieuw: afspraak, inloop, blokkeren ---------- */

.segmented { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; margin-bottom: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.segmented button { min-height: 44px; border: 0; border-radius: 10px; background: none; font: inherit; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; padding: 0 4px; }
.segmented button[aria-selected=true] { background: var(--ink); color: #FFF; }

.picked { display: flex; align-items: center; gap: 12px; }
.picked p { margin: 0; }
.results { display: grid; gap: 6px; margin-top: 8px; }
.results .choice { min-height: 56px; }
.results .choice p { margin: 0; }
.chip { cursor: pointer; font: inherit; font-weight: 600; font-size: 15px; }
button.chip { appearance: none; }

.fab { position: fixed; right: max(16px, calc((100vw - 960px) / 2 + 16px)); bottom: 24px; z-index: 15; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: 30px; font-weight: 600; text-decoration: none; box-shadow: 0 6px 16px rgba(27, 26, 23, .2); }
@media (max-width: 1023px) {
    .fab { bottom: calc(80px + env(safe-area-inset-bottom)); }
}
a.tl-free { text-decoration: none; }
a.tl-free:hover { border-color: var(--muted); color: var(--ink); }
.content:has(.fab) { padding-bottom: 104px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:disabled:hover { border-color: var(--line); }

/* ---------- Dagagenda in kolommen ---------- */

.view-switch { display: flex; justify-content: center; gap: 16px; margin: -4px 0 12px; font-size: 15px; }
.view-switch a { min-height: 44px; display: inline-flex; align-items: center; }

.board-scroll { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 8px; }
.board { display: grid; grid-template-columns: 52px repeat(var(--cols), minmax(150px, 1fr)); min-width: min-content; }
.board-corner, .board-head { position: sticky; top: 0; z-index: 3; background: var(--card); border-bottom: 1px solid var(--line); min-height: 52px; }
.board-head { display: flex; align-items: center; gap: 8px; padding: 0 10px; font-weight: 700; border-left: 1px solid var(--line); min-width: 0; }
.board-head span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.board-axis { position: relative; }
.board-axis span { position: absolute; right: 8px; transform: translateY(-50%); font-size: 12px; font-weight: 600; color: var(--muted); }
.board-axis span:first-child { transform: none; top: 4px !important; }

.board-col { position: relative; border-left: 1px solid var(--line); background: repeating-linear-gradient(135deg, #F1EFE8 0 6px, #F7F6F2 6px 12px); cursor: copy; }
.board-col .work { position: absolute; left: 0; right: 0; background: var(--card); }
.board-col .hour-line { position: absolute; left: 0; right: 0; height: 1px; background: var(--line); pointer-events: none; z-index: 1; }
.board-col .col-off { position: absolute; top: 12px; left: 0; right: 0; text-align: center; color: var(--muted); font-size: 13px; margin: 0; }
.board-col .off { position: absolute; left: 4px; right: 4px; z-index: 1; border-radius: 8px; background: repeating-linear-gradient(135deg, #E4E1D8 0 6px, #ECEAE3 6px 12px); color: var(--muted); font-size: 12px; font-weight: 600; padding: 4px 8px; overflow: hidden; cursor: default; }

.slot { position: absolute; left: 4px; right: 4px; z-index: 2; display: flex; flex-direction: column; gap: 1px; overflow: hidden; padding: 4px 8px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); color: var(--ink); text-decoration: none; font-size: 12px; line-height: 1.3; box-shadow: 0 1px 2px rgba(27, 26, 23, .06); }
.slot strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot.is-short { flex-direction: row; align-items: center; gap: 6px; padding-top: 0; padding-bottom: 0; }
.slot.is-short span { display: none; }
.slot.is-done { opacity: .55; }
.slot.is-selected { border: 2px solid var(--ink); border-left-width: 4px; }
.slot:hover { border-color: var(--muted); }
.board-col .now-line { position: absolute; left: 0; right: 0; height: 2px; background: var(--red); z-index: 4; pointer-events: none; }

/* Telefoon en kleine tablet: één medewerker tegelijk, wisselen met de knoppen. */
.agenda-chips { display: none; }
@media (max-width: 767px) {
    .agenda-chips { display: flex; }
    .board { grid-template-columns: 44px minmax(0, 1fr); }
    .board-head:not(.is-sel), .board-col:not(.is-sel) { display: none; }
}

/* Pc met detail open: agenda krijgt de meeste ruimte. */
@media (min-width: 1024px) {
    .agenda-board.has-detail { grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); }
}

/* ---------- Stoelhuur ---------- */

.head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 479px) {
    .head-actions { width: 100%; }
    .head-actions .btn { flex: 1 1 140px; }
}

.rent-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.rent-totals > div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rent-totals strong { font-size: 18px; }
.rent-totals .is-open { color: var(--red); }
@media (max-width: 359px) { .rent-totals { grid-template-columns: minmax(0, 1fr); } }

.rent-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.rent-head p { margin: 0; }
.rent-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.rent-row:first-child { border-top: 0; }
.rent-row p { margin: 0; }
.rent-main { flex: 1 1 200px; min-width: 0; }
.rent-end { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.rent-end strong { font-size: 17px; }
.rent-pay-form { display: flex; gap: 8px; flex-wrap: wrap; }
.rent-pay-form input { min-height: 44px; flex: 1 1 160px; }
.badge-open { background: #FCEBEB; border-color: #F7C1C1; color: var(--red); }

.input-suffix { position: relative; }
.input-suffix .suffix { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }

/* Vijf tabbladen op de telefoon: het laatste over de hele breedte. */
@media (max-width: 479px) {
    .tabs a:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ---------- Dashboard eigenaar ---------- */

.dash-title { margin-bottom: 20px; }
.dash-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.dash-kpis .card { margin: 0; }
.dash-kpi { display: flex; flex-direction: column; gap: 2px; min-width: 0; color: var(--ink); text-decoration: none; }
a.dash-kpi:hover { border-color: var(--muted); }
.dash-kpi-label { font-size: 13px; color: var(--muted); }
.dash-kpi-value { font-size: 24px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.dash-kpi-value.is-open { color: var(--red); }
.dash-kpi-note { font-size: 12px; color: var(--muted); }
.dash-two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 16px; }
.dash-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.dash-card-head a { font-weight: 700; font-size: 14px; text-decoration: none; }
.dash-next { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 56px; padding: 6px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.dash-next:first-of-type { border-top: 0; }
.dash-next-main { display: flex; flex-direction: column; min-width: 0; font-weight: 600; }
.dash-next-main .person-meta { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-bar p { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 4px; }
.dash-bar + .dash-bar { margin-top: 14px; }
.dash-bar-track { height: 10px; background: #F1EFE8; border-radius: 999px; overflow: hidden; }
.dash-bar-fill { height: 100%; background: var(--accent); border-radius: 999px; }
.dash-todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dash-todo li { overflow-wrap: anywhere; }
.dash-todo .btn-small { margin-left: 4px; vertical-align: middle; }
.dash-link { font-weight: 700; }

@media (min-width: 768px) {
    .dash-kpi-value { font-size: 28px; }
    .dash-kpi { padding: 20px; }
}
@media (min-width: 1100px) {
    .dash-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
    .dash-two { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
}

/* ---------- Klanten ---------- */

.cust-search { display: flex; gap: 8px; margin-bottom: 12px; }
.cust-search input { flex: 1; min-width: 0; }
.cust-filters { display: flex; gap: 8px; margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.cust-filters::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .cust-filters { flex-wrap: wrap; overflow: visible; } }
.cust-filters .chip { flex-shrink: 0; min-height: 44px; font-size: 14px; padding: 0 14px; white-space: nowrap; }
.cust-list .list-item[aria-current] { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.cust-list .person-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cust-pages { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; }
.badge-late { background: #FFF7E6; border-color: #F5D9A3; color: var(--accent-text); }
.cust-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.cust-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-bottom: 16px; }
.cust-next { background: #FFF7E6; border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; }
.cust-next-label { margin: 0 0 2px; font-size: 13px; font-weight: 700; color: var(--accent-text); }
.cust-dl { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px 12px; margin: 0 0 16px; }
.cust-dl dt { color: var(--muted); font-size: 14px; }
.cust-dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.cust-hist { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.cust-delete { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.cust-delete summary { color: var(--red); font-weight: 700; font-size: 15px; cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.cust.has-detail .cust-list { display: none; }
@media (max-width: 379px) {
    .cust-actions { grid-template-columns: minmax(0, 1fr); }
    .cust-dl { grid-template-columns: 92px minmax(0, 1fr); }
    .cust-detail { padding: 14px; }
}
.cust-detail .back { margin-top: -4px; }

@media (min-width: 1024px) {
    .cust.has-detail { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, 1fr); gap: 24px; align-items: start; }
    .cust.has-detail .cust-list { display: block; }
    .cust-detail { position: sticky; top: 16px; margin: 0; }
    .cust-detail .back { display: none; }
}

/* ---------- Proefperiode, pauze en pakket ---------- */

.trial-box { background: #FFF7E6; border: 1px solid #F2DDAE; border-radius: 12px; padding: 12px; margin-bottom: 14px; }
.trial-box-title { margin: 0 0 2px; font-weight: 800; font-size: 14px; }
.trial-box .person-meta { font-size: 13px; }
.trial-track { height: 6px; background: #F2DDAE; border-radius: 999px; margin: 8px 0; overflow: hidden; }
.trial-track div { height: 100%; background: var(--accent); border-radius: 999px; }
.trial-box a { font-weight: 700; font-size: 14px; }
.state-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding: 10px var(--gutter); font-size: 14px; border-bottom: 1px solid; }
.state-bar a { font-weight: 700; min-height: 32px; display: inline-flex; align-items: center; }
.state-bar-trial { background: #FFF7E6; border-color: #F2DDAE; }
.state-bar-paused { background: #FCEBEB; border-color: #F7C1C1; color: var(--red); }
.state-bar-paused a { color: var(--red); }
@media (min-width: 1024px) {
    .state-bar-trial { display: none; }
    .state-bar { padding: 10px 24px; }
}
.plan-options { display: grid; gap: 8px; margin-bottom: 8px; }
.plan-option { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); cursor: pointer; margin: 0; font-weight: 400; }
.plan-option.is-on { border: 2px solid var(--ink); padding: 13px 15px; }
.plan-option:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.plan-option-name { font-weight: 800; font-size: 17px; }
.plan-option-price { font-weight: 700; }
@media (min-width: 640px) { .plan-options { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.booking-paused { text-align: center; padding: 32px 0; }
.booking-paused h1 { margin-bottom: 8px; }
.is-paused .fab { display: none; }
.paused-card { border-color: #F7C1C1; }

/* ---------- Aanmelden ---------- */

.signup { min-height: 100vh; display: grid; }
.signup-main { padding: 32px var(--gutter) 48px; }
.signup-form { max-width: 480px; margin: 0 auto; }
.signup-form .brand { margin-bottom: 28px; }
.signup-kicker { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--accent-text); }
.signup-form h1 { font-size: 28px; }
.signup-form .segmented button[aria-selected=true] { background: var(--ink); color: #FFF; }
.signup-aside { background: var(--ink); color: #FFF; padding: 40px var(--gutter); display: flex; align-items: center; }
.signup-aside > div { max-width: 420px; margin: 0 auto; }
.signup-aside-title { margin: 0 0 18px; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.signup-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.signup-points li { display: flex; gap: 10px; }
.signup-points li::before { content: '✓'; color: var(--accent); font-weight: 800; }
.signup-mail-icon { margin: 0 auto 16px; width: 64px; height: 64px; border-radius: 50%; background: #FFF7E6; display: grid; place-items: center; font-size: 30px; }
@media (min-width: 1024px) {
    .signup { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .signup-main { padding: 48px 64px; display: flex; align-items: center; }
    .signup-form { margin: 0; width: 100%; }
    .signup-aside { padding: 64px; }
}

/* ---------- Eerste stappen ---------- */

.onboarding { border-color: #F2DDAE; }
.onboarding-track { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.onboarding-track div { height: 100%; background: var(--green); border-radius: 999px; }
.onboarding-steps { list-style: none; margin: 0; padding: 0; }
.onboarding-steps li { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 0; border-top: 1px solid var(--line); }
.onboarding-steps li:first-child { border-top: 0; }
.onboarding-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.onboarding-steps .is-done .onboarding-dot { background: var(--green); border-color: var(--green); color: #FFF; }
.onboarding-steps .is-done .onboarding-title { color: var(--muted); text-decoration: line-through; }
.onboarding-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.onboarding-title { font-weight: 700; color: var(--ink); }
a.onboarding-title { text-decoration: none; }
a.onboarding-title:hover { text-decoration: underline; }
.onboarding-link { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 6px; overflow-wrap: anywhere; }
.state-bar-demo { background: var(--ink); border-color: var(--ink); color: #FFF; }
.state-bar-demo strong { color: var(--accent); }
.state-bar-demo a:not(.btn) { color: var(--accent); }
.state-bar-demo .btn { min-height: 36px; }
