/* Renewal Personeel — huisstijl van renewalconcept.com */
:root {
  --bg: #212121;
  --bg-alt: #1a1a1a;
  --surface: #2b2b2b;
  --surface-2: #343434;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f4f4f4;
  --muted: #a9a9a9;
  --accent: #ffa102;
  --accent-soft: rgba(255, 161, 2, 0.14);
  --danger: #ff5a4e;
  --ok: #33b679;
  --radius: 4px;
  --radius-lg: 10px;
  --top-h: 68px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
h2 { font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
h2 small { font-weight: 500; color: var(--muted); text-transform: none; letter-spacing: 0; margin-left: 6px; }
h3 { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
code { font-size: 0.85em; background: var(--bg-alt); padding: 2px 6px; border-radius: var(--radius); word-break: break-all; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.eyebrow { color: var(--accent); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 10px; }
.muted { color: var(--muted); }
.small { font-size: 0.82rem; }
.spacer { flex: 1; }

/* ---------- Knoppen & formulieren ---------- */
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 22px; min-height: 44px;
  border: 2px solid var(--accent); border-radius: var(--radius);
  background: var(--accent); color: #161616;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn:hover { background: transparent; color: var(--accent); }
.btn:disabled { opacity: 0.5; pointer-events: none; }
.btn--small { padding: 8px 14px; min-height: 36px; font-size: 0.72rem; }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--danger { background: transparent; border-color: rgba(255, 90, 78, 0.5); color: var(--danger); }
.btn--danger:hover { background: var(--danger); color: #161616; border-color: var(--danger); }
.btn--block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--muted); transition: background 0.15s, color 0.15s; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.link { color: var(--accent); font-weight: 600; font-size: 0.82rem; }
.link:hover { text-decoration: underline; }
.link--muted { color: var(--muted); }
.link--danger { color: var(--danger); }

label, .label { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
label > input, label > select, label > textarea { margin-top: 6px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 12px; min-height: 44px;
  text-transform: none; letter-spacing: 0;
  transition: border-color 0.15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { resize: vertical; min-height: 80px; }
input[type="date"], input[type="time"] { min-width: 0; }
::-webkit-calendar-picker-indicator { filter: invert(0.8); cursor: pointer; }
.input--big { font-size: 1.25rem; font-weight: 600; background: transparent; border: 0; border-bottom: 2px solid var(--line); border-radius: 0; padding: 8px 0; }
.input--big:focus { border-bottom-color: var(--accent); }
.form-error { color: var(--danger); font-size: 0.85rem; min-height: 1.3em; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack + .stack { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.row > label { min-width: 0; }
.row--when { grid-template-columns: 1.4fr 1fr; }
.is-allday .time { visibility: hidden; }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.note { font-size: 0.82rem; color: var(--muted); background: var(--accent-soft); border-left: 3px solid var(--accent); padding: 10px 12px; border-radius: var(--radius); margin-bottom: 16px; }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; text-transform: none; letter-spacing: 0; font-size: 0.9rem; color: var(--text); font-weight: 500; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch span { width: 38px; height: 22px; border-radius: 22px; background: var(--surface-2); position: relative; transition: background 0.15s; border: 1px solid var(--line); }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform 0.15s, background 0.15s; }
.switch input:checked + span { background: var(--accent-soft); border-color: var(--accent); }
.switch input:checked + span::after { transform: translateX(16px); background: var(--accent); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.swatch { cursor: pointer; }
.swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch span { display: block; width: 30px; height: 30px; border-radius: 50%; background: var(--c); border: 2px solid transparent; box-shadow: inset 0 0 0 2px var(--surface); transition: transform 0.1s; }
.swatch:hover span { transform: scale(1.1); }
.swatch input:checked + span { border-color: var(--text); }
.swatch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Inloggen ---------- */
.login { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(circle at 30% 10%, rgba(255, 161, 2, 0.12), transparent 50%), var(--bg); }
.login__card { width: min(380px, 100%); display: flex; flex-direction: column; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 28px; }
.login__logo { width: 180px; height: auto; margin-bottom: 6px; }
.login .eyebrow { margin-bottom: 4px; }

/* ---------- Bovenbalk / navigatie ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  height: var(--top-h); padding: 0 clamp(16px, 3vw, 36px);
  display: flex; align-items: center; gap: 24px;
  background: rgba(33, 33, 33, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar__brand img { height: 34px; width: auto; display: block; }
.tabs { display: flex; gap: 4px; margin-left: auto; }
.tabs a { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--radius); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); transition: color 0.15s, background 0.15s; }
.tabs a:hover { color: var(--text); background: var(--surface); }
.tabs a.is-active { color: var(--accent); background: var(--accent-soft); }
.topbar__user { font-size: 0.82rem; color: var(--muted); font-weight: 600; padding-left: 16px; border-left: 1px solid var(--line); }

main { padding: clamp(20px, 3vw, 36px) clamp(16px, 3vw, 36px) 48px; }
.page { max-width: 1100px; margin: 0 auto; }
.page--wide { max-width: 1400px; }
.page--narrow { max-width: 640px; }
.page__head { margin-bottom: 28px; }
.page--narrow > * + * { margin-top: 18px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; min-height: 36px; }
.card p + p { margin-top: 10px; }
.card > p .btn, .card > .btn { margin-top: 14px; }
.card--list { border-top: 3px solid var(--c); }
.empty { color: var(--muted); padding: 28px 0 12px; text-align: center; }
.empty-line { color: var(--muted); font-size: 0.85rem; padding: 4px 0; }

/* ---------- Taken ---------- */
.lists { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 14px; margin-bottom: 4px; scrollbar-width: none; }
.lists::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: 0.85rem; font-weight: 600; white-space: nowrap; transition: border-color 0.15s, background 0.15s; }
.chip i { width: 10px; height: 10px; border-radius: 50%; }
.chip b { font-size: 0.72rem; color: var(--muted); background: var(--bg-alt); border-radius: 99px; padding: 1px 7px; }
.chip:hover { border-color: var(--line-strong); }
.chip.is-active { border-color: var(--accent); background: var(--accent-soft); }
.chip--add { color: var(--muted); border-style: dashed; }

.quickadd { display: flex; gap: 8px; margin-bottom: 14px; }
.quickadd input[name="title"] { flex: 1; }
.quickadd input[type="date"] { width: 160px; flex: none; color: var(--muted); }
.quickadd .btn { padding: 0; width: 48px; font-size: 1.4rem; font-weight: 600; }

.todos { list-style: none; margin: 0; padding: 0; }
.todo { display: flex; align-items: flex-start; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.todo:last-child { border-bottom: 0; }
.check { flex: none; width: 26px; height: 26px; margin: 9px 0 0 2px; border-radius: 50%; border: 2px solid var(--c); display: grid; place-items: center; color: transparent; transition: background 0.15s, color 0.15s, transform 0.15s; }
.check svg { width: 15px; height: 15px; stroke-width: 3; }
.check:hover { background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); }
.todo.is-done .check { background: var(--c); color: #161616; }
.todo.is-popping .check { animation: pop 0.3s ease; }
@keyframes pop { 50% { transform: scale(1.25); } }
.todo__body { flex: 1; min-width: 0; text-align: left; padding: 10px 0; display: flex; flex-direction: column; gap: 4px; }
.todo__title { font-size: 0.98rem; font-weight: 500; overflow-wrap: anywhere; transition: color 0.2s; }
.todo.is-done .todo__title { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--muted); }
.todo__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.75rem; }
.badge { padding: 2px 8px; border-radius: 99px; background: var(--bg-alt); color: var(--muted); font-weight: 600; }
.badge--today { background: var(--accent-soft); color: var(--accent); }
.badge--late { background: rgba(255, 90, 78, 0.14); color: var(--danger); }
.tag { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-weight: 600; }
.tag i { width: 8px; height: 8px; border-radius: 50%; }
.meta-icon { color: var(--muted); font-weight: 800; }
.group-title { margin: 18px 0 2px; }
.group-title:first-of-type { margin-top: 6px; }

.done-head { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.done-toggle { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.done-toggle::before { content: "›"; font-size: 1.2rem; line-height: 1; transition: transform 0.15s; }
.done-toggle.is-open::before { transform: rotate(90deg); }

/* ---------- Agenda-lijst ---------- */
.agenda-day + .agenda-day { margin-top: 18px; }
.agenda-day h3 { margin-bottom: 8px; }
.agenda { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.agenda__item { width: 100%; display: grid; grid-template-columns: 4px 96px 1fr; align-items: center; gap: 12px; text-align: left; padding: 10px 12px 10px 0; border-radius: var(--radius); background: var(--bg-alt); transition: background 0.15s; overflow: hidden; }
.agenda__item:hover { background: var(--surface-2); }
.agenda__bar { align-self: stretch; background: var(--c); border-radius: 0 3px 3px 0; }
.agenda__time { font-size: 0.78rem; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.agenda__title { font-weight: 600; overflow-wrap: anywhere; }
.agenda__title small { display: block; font-weight: 400; color: var(--muted); font-size: 0.78rem; }
.agenda + .todos { margin-top: 10px; }

/* ---------- Maandkalender ---------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.cal-head__nav, .cal-head__side { display: flex; align-items: center; gap: 8px; }
.cal-head__side { gap: 14px; }
.cal-title { margin-left: 10px; font-size: clamp(1.4rem, 3vw, 2rem); }
.sync { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.sync i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(51, 182, 121, 0.2); }
.sync--off i { background: var(--muted); box-shadow: none; }
.sync--off:hover { color: var(--accent); }

.cal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.cal__dow { display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 1px solid var(--line); }
.cal__dow span { padding: 10px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); text-align: center; }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: minmax(118px, calc((100vh - var(--top-h) - 210px) / var(--weeks))); }
.cal__cell { position: relative; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px 4px 6px; display: flex; flex-direction: column; gap: 2px; cursor: pointer; min-width: 0; transition: background 0.1s; }
.cal__cell:nth-child(7n) { border-right: 0; }
.cal__cell:hover { background: rgba(255, 255, 255, 0.025); }
.cal__cell.is-weekend { background: rgba(0, 0, 0, 0.08); }
.cal__cell.is-outside .cal__num { color: rgba(255, 255, 255, 0.28); }
.cal__cell.is-drop { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.cal__num { align-self: center; font-size: 0.78rem; font-weight: 600; min-width: 26px; height: 26px; padding: 0 6px; display: grid; place-items: center; border-radius: 99px; color: var(--text); pointer-events: none; }
.cal__cell.is-today .cal__num { background: var(--accent); color: #161616; font-weight: 800; }
.cal__items { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.cal__dots { display: none; }

.ev { display: flex; align-items: center; gap: 5px; width: 100%; min-width: 0; padding: 2px 6px; border-radius: var(--radius); font-size: 0.75rem; line-height: 1.35; text-align: left; white-space: nowrap; cursor: pointer; transition: background 0.1s, opacity 0.1s; }
.ev::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.ev:hover { background: rgba(255, 255, 255, 0.08); }
.ev__time { color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.ev__title { overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.ev--fill { background: var(--c); color: #fff; font-weight: 600; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25); }
.ev--fill::before { display: none; }
.ev--fill:hover { background: var(--c); filter: brightness(1.1); }
.ev--fill .ev__time { color: inherit; opacity: 0.85; }
.ev--cont-l { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: -5px; width: calc(100% + 5px); }
.ev--cont-r { border-top-right-radius: 0; border-bottom-right-radius: 0; margin-right: -5px; width: calc(100% + 5px); }
.ev--cont-l.ev--cont-r { width: calc(100% + 10px); }
.ev--quiet .ev__title { visibility: hidden; }
.ev--todo::before { display: none; }
.ev__box { flex: none; width: 11px; height: 11px; border: 2px solid var(--c); border-radius: 3px; }
.ev--todo.is-done .ev__box { background: var(--c); }
.ev--todo.is-done .ev__title { text-decoration: line-through; color: var(--muted); }
.ev--more { color: var(--muted); font-weight: 600; }
.ev--more::before { display: none; }
.ev.is-dragging { opacity: 0.4; }

.day-panel { display: none; margin-top: 16px; }
.day-modal .card__head { justify-content: flex-end; margin-bottom: 12px; }

/* ---------- Verlof in de agenda ---------- */
.ev--leave { background: repeating-linear-gradient(135deg, var(--c) 0 6px, color-mix(in srgb, var(--c) 75%, #000) 6px 12px); }
.ev--leave:hover { background: repeating-linear-gradient(135deg, var(--c) 0 6px, color-mix(in srgb, var(--c) 75%, #000) 6px 12px); }
.head-btns { display: inline-flex; gap: 8px; }
.kinds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.kind { cursor: pointer; text-transform: none; letter-spacing: 0; }
.kind input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kind span { display: block; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-alt); color: var(--text); font-size: 0.92rem; font-weight: 600; text-align: center; transition: border-color 0.15s, background 0.15s; }
.kind input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.kind input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; }
.presets .chip { padding: 7px 12px; font-size: 0.8rem; }
.duration { font-size: 0.82rem; color: var(--accent); font-weight: 600; margin-top: -6px; min-height: 1.2em; }

/* ---------- Uren & ritten ---------- */
.seg-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 4px; }
.seg button { padding: 9px 18px; border-radius: 99px; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); transition: background 0.15s, color 0.15s; }
.seg button.is-active { background: var(--accent); color: #161616; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.stats div { background: var(--bg-alt); border-radius: var(--radius); padding: 12px 14px; }
.stats small { display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.stats b { font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.regs { list-style: none; margin: 0; padding: 0; }
.reg { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.reg:last-child { border-bottom: 0; }
.reg__body { flex: 1; min-width: 0; text-align: left; padding: 10px 0; display: flex; flex-direction: column; gap: 2px; }
.reg__main { font-weight: 600; overflow-wrap: anywhere; }
.reg__meta { font-size: 0.78rem; color: var(--muted); }
.reg__qty { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 0.9rem; }
.sync-ico { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 50%; font-size: 0.72rem; font-weight: 800; color: var(--muted); border: 1px solid var(--line-strong); }
.sync-ico--ok { color: var(--ok); border-color: rgba(51, 182, 121, 0.5); }
.sync-ico--err { color: #161616; background: var(--danger); border-color: var(--danger); }
.timer { display: flex; align-items: center; gap: 12px; }
.timer__info { flex: 1; min-width: 0; }
.timer__info b { display: block; font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.timer__info small { color: var(--muted); }
.timer__dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--danger); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: 0.3; } }
.timer-form .btn svg { width: 16px; height: 16px; }
.timer-banner { display: flex; align-items: center; gap: 10px; margin: -8px 0 20px; padding: 12px 16px; border-radius: var(--radius-lg); background: var(--accent-soft); border: 1px solid var(--accent); font-weight: 600; font-size: 0.9rem; }
.timer-banner b { font-variant-numeric: tabular-nums; color: var(--accent); }
.timer-banner__desc { color: var(--muted); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

.suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; margin-top: 4px; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5); overflow: hidden; }
label:has(> .suggest) { position: relative; }
.suggest__item { display: block; width: 100%; text-align: left; padding: 12px; font-size: 0.9rem; text-transform: none; letter-spacing: 0; color: var(--text); font-weight: 500; border-bottom: 1px solid var(--line); }
.suggest__item:last-child { border-bottom: 0; }
.suggest__item:hover, .suggest__item:focus { background: var(--accent-soft); outline: none; }
.route-hint { font-size: 0.82rem; color: var(--accent); font-weight: 600; margin-top: -6px; min-height: 1.2em; }
.route-hint--err { color: var(--danger); }
.reg__meta .client { color: var(--text); font-weight: 600; }
.per-client { margin-bottom: 18px; }
.per-client h3 { margin-bottom: 6px; }
.per-client ul { list-style: none; margin: 0; padding: 0; }
.per-client li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.per-client li:last-child { border-bottom: 0; }

/* Nederlands kenteken */
.plate { display: inline-flex; align-items: center; flex: none; height: 20px; padding: 0 6px 0 12px; margin-right: 6px; border-radius: 3px; background: #f7c600 linear-gradient(90deg, #1b4ba0 0 7px, transparent 7px); color: #111; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; vertical-align: middle; }
.team .plate { height: 26px; font-size: 0.82rem; padding-left: 14px; background: #f7c600 linear-gradient(90deg, #1b4ba0 0 9px, transparent 9px); }
.per-vehicle { margin-bottom: 18px; display: flex; flex-direction: column; gap: 10px; }
.per-vehicle__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.per-vehicle__head select { width: auto; min-height: 36px; padding: 4px 10px; font-size: 0.85rem; }
.vehicle { background: var(--bg-alt); border-radius: var(--radius); padding: 12px 14px; }
.vehicle__head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.vehicle__head b { flex: 1; }
.vehicle__nums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vehicle__nums small { display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.vehicle__nums b { font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.vehicle__tax { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
.vehicle__tax b { color: var(--ok); font-size: 1rem; white-space: nowrap; }
.switches { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Instellingen ---------- */
.nav-row { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: border-color 0.15s, background 0.15s; }
.nav-row:hover { border-color: var(--accent); }
.nav-row__icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.nav-row__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nav-row__text b { font-size: 0.9rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.nav-row__text small { color: var(--muted); font-size: 0.8rem; }
.nav-row__chev { color: var(--muted); }
.back { display: inline-flex; align-items: center; gap: 4px; margin: -4px 0 14px -4px; color: var(--accent); font-weight: 700; font-size: 0.85rem; }
.back svg { width: 18px; height: 18px; }
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 18px 8px 8px; }
.empty-state svg { width: 44px; height: 44px; color: var(--accent); stroke-width: 1.6; }
.empty-state .muted { max-width: 380px; font-size: 0.88rem; }
.empty-state .btn { margin-top: 6px; }

.group-heading { margin: 32px 0 -4px; font-size: 0.78rem; letter-spacing: 0.18em; color: var(--accent); }
.badge--ok { background: rgba(51, 182, 121, 0.15); color: var(--ok); }
.checks { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.cal-check { display: flex; align-items: flex-start; gap: 12px; padding: 4px 0; text-transform: none; letter-spacing: 0; font-size: 0.92rem; line-height: 1.35; color: var(--text); font-weight: 500; cursor: pointer; }
.cal-check > input { width: 20px; height: 20px; min-height: 0; margin: 0; padding: 0; accent-color: var(--accent); flex: none; }
.cal-check i { width: 10px; height: 10px; border-radius: 50%; flex: none; margin-top: 5px; }
.cal-check__text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.cal-check__text small { display: block; margin-top: 2px; color: var(--muted); font-size: 0.76rem; }
.backups { list-style: none; margin: 12px 0 0; padding: 0; }
.backups li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.backups li:last-child { border-bottom: 0; }
.backups small { color: var(--muted); margin-left: 8px; }

.status-ok { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.status-ok i { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(51, 182, 121, 0.2); }
.team { list-style: none; margin: 0 0 8px; padding: 0; }
.team li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 800; flex: none; }
.team__name { flex: 1; font-weight: 600; min-width: 0; }
.team__name small { display: block; color: var(--muted); font-weight: 400; font-size: 0.78rem; }
.copy { display: inline-block; margin-top: 6px; user-select: all; }

/* ---------- Venster ---------- */
.modal { width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 24px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6); overflow-y: auto; }
.modal::backdrop { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(2px); }
.modal[open] { animation: modal-in 0.18s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
.modal__head { display: flex; align-items: center; justify-content: space-between; margin: -6px -8px 0 0; }
.modal__foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 6px; }
.todo-done-toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; text-transform: none; letter-spacing: 0; font-size: 0.92rem; color: var(--text); font-weight: 600; }
.todo-done-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-lg { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--accent); display: grid; place-items: center; color: transparent; }
.check-lg svg { width: 16px; height: 16px; stroke-width: 3; }
.todo-done-toggle input:checked + .check-lg { background: var(--accent); color: #161616; }
.todo-done-toggle input:focus-visible + .check-lg { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Melding ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 16px; padding: 12px 18px; border-radius: var(--radius); background: #f4f4f4; color: #161616; font-weight: 600; font-size: 0.88rem; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); transition: opacity 0.2s, transform 0.2s; max-width: calc(100% - 32px); }
.toast.is-open { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { color: #c77800; font-weight: 800; text-transform: uppercase; font-size: 0.74rem; letter-spacing: 0.08em; white-space: nowrap; }

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
  .grid2 { grid-template-columns: 1fr; }
  .tabs a span { display: none; }
  .tabs a { padding: 10px; }
}

/* ---------- Telefoon: app-gevoel met onderbalk ---------- */
@media (max-width: 760px) {
  :root { --top-h: 56px; }
  body { font-size: 15px; }
  /* Geen backdrop-filter hier: die zou de vaste onderbalk binnen de bovenbalk vangen. */
  .topbar { padding-top: env(safe-area-inset-top); height: calc(var(--top-h) + env(safe-area-inset-top)); background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .topbar__brand img { height: 28px; }
  .topbar__user { margin-left: auto; border: 0; padding: 0; }
  .tabs {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0;
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: rgba(26, 26, 26, 0.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  .tabs a { flex-direction: column; gap: 3px; padding: 6px 0; font-size: 0.6rem; letter-spacing: 0.06em; }
  .tabs a span { display: block; }
  .tabs a svg { width: 22px; height: 22px; }
  .tabs a:hover { background: none; }
  .tabs a.is-active { background: none; }
  main { padding: 18px 16px calc(96px + env(safe-area-inset-bottom)); }
  .page__head { margin-bottom: 20px; }
  .card { padding: 16px; }
  .lists { margin: 0 -16px 4px; padding: 0 16px 12px; }
  .quickadd { flex-wrap: wrap; }
  .quickadd input[name="title"] { flex: 1 1 calc(100% - 56px); }
  .quickadd input[type="date"] { order: 3; width: 100%; }
  .agenda__item { grid-template-columns: 4px 72px 1fr; gap: 10px; }
  .agenda__time { font-size: 0.72rem; line-height: 1.3; }
  .cal { touch-action: pan-y; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }

  .cal-head { gap: 10px; }
  .cal-head__nav { width: 100%; }
  .cal-head__nav .btn { padding: 6px 10px; }
  .cal-title { margin-left: auto; font-size: 1.15rem; white-space: nowrap; }
  .cal-head__side { width: 100%; justify-content: space-between; }
  .cal { border-radius: var(--radius-lg); }
  .cal__dow span { padding: 8px 0; font-size: 0.62rem; }
  .cal__grid { grid-auto-rows: 58px; }
  .cal__cell { padding: 4px 0; align-items: center; }
  .cal__cell.is-selected { background: var(--accent-soft); }
  .cal__cell.is-selected .cal__num { box-shadow: inset 0 0 0 1.5px var(--accent); }
  .cal__cell.is-today.is-selected .cal__num { box-shadow: none; }
  .cal__num { font-size: 0.8rem; }
  .cal__items { display: none; }
  .cal__dots { display: flex; gap: 3px; margin-top: auto; padding-bottom: 4px; }
  .cal__dots i { width: 6px; height: 6px; border-radius: 50%; }
  .cal__dots i.sq { border-radius: 1px; background: var(--muted); }
  .day-panel { display: block; }

  .modal { width: 100%; max-width: none; max-height: 92dvh; margin: auto 0 0; border-radius: 16px 16px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); border-bottom: 0; }
  .modal[open] { animation: sheet-in 0.22s ease; }
  @keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } }
  .row { grid-template-columns: 1fr; }
  .row--when { grid-template-columns: 1.3fr 1fr; }
  .row--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .row--when { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .sync__label { display: none; }
  .tabs a { font-size: 0.56rem; letter-spacing: 0.04em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

#push-status { margin-bottom: 18px; }
.switch span { flex: none; }
@media (max-width: 760px) {
  .seg-row { flex-wrap: wrap; justify-content: flex-end; }
  .seg { flex: 1 1 100%; }
  .seg button { padding: 9px 6px; }
}

.btn-google { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 12px 20px; border-radius: var(--radius); background: #fff; color: #1f1f1f; font-weight: 600; font-size: 0.98rem; border: 1px solid #dadce0; transition: background 0.15s, box-shadow 0.15s; }
.btn-google:hover { background: #f5f5f5; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); }
.btn-google svg { width: 20px; height: 20px; }
.login__dev { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }

.vehicle__manual { margin-top: 8px; font-size: 0.8rem; color: var(--muted); }
.vehicle .link { display: inline-block; margin-top: 10px; }
