/* FlowRo-platform (admin, superadmin, inloggen, aanmelden): de huisstijl van flowro.io. */
:root {
  /* Kleuren van flowro.io: warm gebroken wit, zand-tinten en een groen accent */
  --bg: #faf8f4;
  --surface: #ffffff;
  --surface-2: #f3f0ea;
  --text: #1c1b19;
  --muted: #706b63;
  --line: #e8e3da;
  --line-strong: #dbd4c8;
  --sand: #ece2d2;
  --accent: #2f7d4a;
  --accent-hover: #276b3f;
  --on-accent: #ffffff;
  --accent-soft: #e9f4ec;
  --ok: #2f7d4a;
  --ok-bg: #e9f4ec;
  --ok-line: #c6e3cf;
  --warn: #b45309;
  --warn-bg: #fdf4e7;
  --warn-line: #f2d6ae;
  --bad: #b42318;
  --bad-bg: #fcefed;
  --bad-line: #f1c8c2;
  --tile: #2b2925;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(60, 45, 30, 0.05);
  --shadow-card: 0 1px 2px rgba(60, 45, 30, 0.05), 0 8px 24px -8px rgba(60, 45, 30, 0.1);
  --shadow-lift: 0 2px 4px rgba(60, 45, 30, 0.06), 0 24px 48px -16px rgba(60, 45, 30, 0.18);
  --serif: "Instrument Serif", Georgia, serif;
  color-scheme: light;
}
/* Altijd lichte weergave: geen donkere modus */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font: 14px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; }
a { color: inherit; }
.muted { color: var(--muted); margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg { display: block; flex: none; }

/* --- Knoppen en velden ------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 500; border-radius: 999px; padding: 9px 18px; transition: background-color .15s, border-color .15s, color .15s; border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap; background: none; color: var(--text); }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { background: var(--surface); border-color: var(--line-strong); box-shadow: var(--shadow); }
.btn-outline:hover { background: var(--surface-2); }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn.btn-unavailable { background: var(--line, #e3e7e4); color: var(--muted, #6b7280); border-color: transparent; opacity: 1; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.bordered { border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow); }
:is(.btn, .icon-btn, .nav-item, input, select, textarea):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.field { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: 13px; }
input, textarea, select { font: inherit; color: var(--text); }
.field input, .field textarea, .color-row input, .area-row input, .weekday-row input[type="time"] {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; padding: 9px 12px; width: 100%; font-weight: 400; font-size: 14px;
}
.field input:focus, .field textarea:focus, .area-row input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; }
input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; cursor: pointer; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fields.three { grid-template-columns: repeat(3, 1fr); }
.span-2 { grid-column: 1 / -1; }
.form-error { color: var(--bad); min-height: 1.2em; margin: 0; font-size: 13px; }
.form-error:empty { min-height: 0; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; }
.color-row { display: grid; grid-template-columns: 44px 1fr; gap: 8px; }
.color-row input[type="color"] { padding: 3px; height: 40px; cursor: pointer; }

/* --- Logo en avatars ----------------------------------------------------------- */
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.logo-mark { display: block; width: 28px; height: 28px; border-radius: 8px; background: url("/assets/flowro-icon.svg") center / 100% no-repeat; font-size: 0; color: transparent; flex: none; }
.logo-mark svg { width: 18px; height: 18px; }
.avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); color: var(--text); font-weight: 600; font-size: 13px; flex: none; border: 1px solid var(--line); }
.avatar-green { background: var(--accent-soft); color: var(--accent); border-color: var(--ok-line); }
.avatar.sm { width: 24px; height: 24px; font-size: 11px; }

/* --- Inloggen ------------------------------------------------------------------ */
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-lift); }
.login-card .logo { margin-bottom: 28px; }
.login-card h1 { font-family: var(--serif); font-size: 32px; font-weight: 400; line-height: 1.1; letter-spacing: -0.01em; margin-bottom: 6px; }
.login-card form { display: grid; gap: 14px; }

/* --- Opbouw: zijbalk en werkvlak ---------------------------------------------- */
.shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.sidebar { display: flex; flex-direction: column; gap: 20px; padding: 24px 16px 20px 20px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar-top { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.sidebar-close, .menu-btn, .sidebar-backdrop { display: none; }
.tenant-card { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; box-shadow: var(--shadow); }
.tenant-text, .user-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.tenant-text strong, .user-text strong { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tenant-text small, .user-text small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: 11.5px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin: 14px 8px 6px; }
.nav-label:first-child { margin-top: 0; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: var(--text); font-weight: 500; border: 1px solid transparent; }
.nav-item svg { width: 18px; height: 18px; color: var(--muted); }
.nav-item:hover { background: rgba(0, 0, 0, 0.03); }
.nav-item.active { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); font-weight: 600; }
.nav-item.active svg { color: var(--accent); }

.sidebar-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.user-card { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding: 14px 4px 0; }
.user-card .icon-btn { margin-left: auto; }

.main { padding: 16px 16px 16px 0; min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px 32px 32px; min-height: calc(100vh - 32px); box-shadow: var(--shadow); }

.topbar { display: flex; align-items: center; gap: 12px; min-height: 40px; }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: var(--muted); min-width: 0; }
.breadcrumb svg { width: 17px; height: 17px; }
.breadcrumb strong { color: var(--accent); font-weight: 600; }
.breadcrumb .sep { color: var(--line-strong); }
.topbar-actions { margin-left: auto; display: flex; gap: 8px; }

.page-head { display: flex; align-items: center; gap: 18px; margin: 28px 0 28px; }
.page-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: var(--tile); color: #fff; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.2), 0 4px 10px rgba(60, 45, 30, 0.12); flex: none; }
.page-icon svg { width: 28px; height: 28px; }
.page-head h1 { font-family: var(--serif); font-size: 36px; font-weight: 400; line-height: 1.05; letter-spacing: -0.01em; }

/* --- Boekingen: filterbalk, tabel, paginering --------------------------------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.select-btn { position: relative; display: inline-flex; }
.select-btn select { appearance: none; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 34px 8px 12px; font-weight: 500; cursor: pointer; box-shadow: var(--shadow); }
.select-btn::after { content: ""; position: absolute; right: 13px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 12px; box-shadow: var(--shadow); color: var(--muted); }
.search svg { width: 16px; height: 16px; }
.search input { border: 0; background: none; padding: 8px 0; width: 180px; outline: none; }
.search:focus-within { outline: 2px solid var(--accent); outline-offset: -1px; }

.table-wrap { overflow-x: auto; border-radius: 12px; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 980px; }
.table th { text-align: left; font-weight: 500; color: var(--muted); background: var(--surface-2); padding: 12px 14px; white-space: nowrap; }
.table th:first-child { border-radius: 12px 0 0 12px; }
.table th:last-child { border-radius: 0 12px 12px 0; }
.table td { padding: 14px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
.table tbody tr.row { cursor: pointer; }
.table tbody tr.row:hover td { background: var(--surface-2); }
.table tbody tr.selected td { background: var(--accent-soft); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table td.num { font-weight: 600; }
.col-check { width: 44px; }
.col-menu { width: 48px; text-align: right; }
.table .id { font-variant-numeric: tabular-nums; font-weight: 500; }
.table .email { color: var(--muted); }
.guest { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px 3px 3px; font-weight: 500; box-shadow: var(--shadow); background: var(--surface); }
.detail-row td { background: var(--surface-2); white-space: normal; padding: 0; }
.detail { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px 24px; padding: 16px 20px 18px 58px; }
.detail dt { color: var(--muted); font-size: 12px; margin-bottom: 2px; }
.detail dd { margin: 0; overflow-wrap: anywhere; }
.empty-cell { text-align: center; color: var(--muted); padding: 48px 14px !important; white-space: normal !important; }

.pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 500; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.pill.warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.pill.bad { background: var(--bad-bg); color: var(--bad); border-color: var(--bad-line); }

.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.pages { display: flex; align-items: center; gap: 4px; }
.page-btn { min-width: 30px; height: 30px; border-radius: 8px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.page-btn:hover { background: var(--surface-2); color: var(--text); }
.page-btn[aria-current="page"] { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.pagination .gap { color: var(--muted); padding: 0 4px; }
.pagination .count { color: var(--muted); font-size: 13px; }

.menu-pop { position: fixed; z-index: 30; min-width: 180px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(60, 45, 30, 0.14); padding: 6px; }
.menu-pop a, .menu-pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 8px; border: 0; background: none; font: inherit; color: var(--text); text-decoration: none; cursor: pointer; text-align: left; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--surface-2); }
.menu-pop svg { width: 16px; height: 16px; color: var(--muted); }

/* --- Instellingen ---------------------------------------------------------------- */
.stack { display: grid; gap: 16px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-card); display: grid; gap: 16px; align-content: start; }
.card-head { display: grid; gap: 4px; }
.card-head.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-head h2 { font-size: 15px; font-weight: 600; }
.service-form.inactive { background: var(--surface-2); }
.empty-card { color: var(--muted); padding: 32px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); }

.weekday-rows { display: grid; gap: 4px; }
.weekday-row { display: grid; grid-template-columns: 140px 130px 130px 1fr; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.weekday-row:last-child { border-bottom: 0; }
.weekday-row input[type="time"]:disabled { opacity: 0.4; }
.weekday-row .count { color: var(--muted); font-size: 13px; }

.area-row { display: grid; grid-template-columns: 120px 120px 1fr auto; gap: 10px; align-items: end; }
.area-row label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(8px); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; margin: 0; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; z-index: 40; }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* --- Smaller scherm: zijbalk als uitschuifmenu ---------------------------------- */
@media (max-width: 960px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 20; background: var(--bg); transform: translateX(-100%); transition: transform 0.2s; box-shadow: 0 0 40px rgba(0, 0, 0, 0.15); }
  .shell.menu-open .sidebar { transform: none; }
  .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.3); z-index: 15; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
  .shell.menu-open .sidebar-backdrop { opacity: 1; pointer-events: auto; }
  .sidebar-close, .menu-btn { display: inline-grid; }
  .main { padding: 0; }
  .panel { border-radius: 0; border: 0; padding: 12px 16px 32px; min-height: 100vh; }
  .page-head { margin: 16px 0 20px; }
}
@media (max-width: 640px) {
  .fields, .fields.three { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .page-icon { width: 48px; height: 48px; border-radius: 12px; }
  .page-icon svg { width: 22px; height: 22px; }
  .page-head h1 { font-size: 30px; }
  .breadcrumb #crumb-section, .breadcrumb .sep:first-of-type { display: none; }
  .toolbar-right { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .search { grid-column: 1 / -1; }
  .toolbar-right .btn { width: 100%; }
  .search input { width: 100%; }
  .btn-outline .label-long { display: none; }
  .weekday-row { grid-template-columns: 1fr 1fr; }
  .weekday-row .check, .weekday-row .count { grid-column: 1 / -1; }
  .area-row { grid-template-columns: 1fr 1fr; }
  .area-row label:nth-child(3) { grid-column: 1 / -1; }
  .topbar-actions .btn span.text { display: none; }
}

/* --- Afdrukken (Exporteer PDF): alleen de tabel ---------------------------------- */
@media print {
  body { background: #fff; color: #000; }
  .sidebar, .topbar, .toolbar, .pagination, .col-check, .col-menu, .menu-pop, .toast, .page-icon { display: none !important; }
  .shell { display: block; }
  .main, .panel { padding: 0; border: 0; box-shadow: none; min-height: 0; }
  .table { min-width: 0; font-size: 11px; }
  .table td, .table th { padding: 6px 8px; }
  .detail-row { display: none; }
  .print-all tr.row { display: table-row !important; }
}

/* Monteurs */
.tech-title { display: flex; align-items: center; gap: 10px; }
.sub-head { font-size: 13px; font-weight: 600; margin: 0 0 4px; color: var(--muted); }
.hint-inline { color: var(--muted); font-weight: 400; font-size: 12px; }
.tech-pill { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.tech-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.tech-pill.none { color: var(--muted); }
.reassign { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.reassign select { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; padding: 6px 10px; }
.reassign .btn { padding: 6px 12px; }
.reassign .form-error { flex-basis: 100%; }

/* Mijn planning (monteur) */
.planning-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.planning-list { display: grid; gap: 10px; }
.planning-day { font-weight: 600; margin: 12px 0 2px; }
.planning-day:first-child { margin-top: 0; }
.planning-day small { color: var(--muted); font-weight: 400; margin-left: 6px; }
.job { display: grid; grid-template-columns: 76px 1fr; gap: 4px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.job-time { grid-row: span 3; font-weight: 700; font-size: 17px; line-height: 1.2; }
.job-time small { display: block; color: var(--muted); font-weight: 500; font-size: 13px; }
.job-title { font-weight: 600; }
.job-meta { color: var(--muted); }
.job-meta a { color: inherit; }
.job-notes { grid-column: 2; background: var(--surface-2); border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.job-actions { grid-column: 2; display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.job-actions .btn { padding: 7px 12px; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; min-width: 0; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 10px; font-size: 12.5px; color: var(--muted); }
.off-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.off-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--surface-2); border-radius: 8px; padding: 8px 10px; }
.off-list li small { color: var(--muted); }
.off-list .empty { background: none; color: var(--muted); padding: 0; }
.off-add { display: grid; grid-template-columns: 150px 150px 1fr auto; gap: 10px; align-items: end; margin-top: 10px; }
.tech-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; border-top: 1px solid var(--line); padding-top: 16px; }
.small { font-size: 13px; margin-bottom: 8px; }
@media (max-width: 960px) {
  .planning-layout, .tech-extra { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .off-add { grid-template-columns: 1fr 1fr; }
  .off-add .field:nth-child(3), .off-add .btn { grid-column: 1 / -1; }
  .job { grid-template-columns: 1fr; }
  .job-time { grid-row: auto; }
  .job-notes, .job-actions { grid-column: 1; }
}

/* Monteurkaarten: naam en ondertitel */
.tech-head-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.35; }
.tech-name { font-weight: 600; font-size: 15px; }
.chevron { color: var(--muted); display: inline-grid; transition: transform 0.15s; }
.chevron svg { width: 18px; height: 18px; }

/* Schakelaars in plaats van vinkjes voor aan/uit-instellingen (selectievakjes in de tabel blijven vinkjes) */
.check input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; flex: none; position: relative;
  width: 36px; height: 20px; margin: 0; border-radius: 999px; cursor: pointer;
  background: var(--line-strong); transition: background-color 0.15s;
}
.check input[type="checkbox"]::before {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); transition: transform 0.15s;
}
.check input[type="checkbox"]:checked { background: var(--accent); }
.check input[type="checkbox"]:checked::before { transform: translateX(16px); }
.check input[type="checkbox"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.check input[type="checkbox"]:disabled { opacity: 0.5; cursor: not-allowed; }

/* Werktijden per weekdag */
.weekday-row { grid-template-columns: 130px 120px 120px minmax(0, 1fr); }

/* Popup */
.modal { border: 1px solid var(--line); border-radius: 16px; padding: 0; width: min(480px, calc(100vw - 32px)); background: var(--surface); color: var(--text); box-shadow: 0 20px 60px rgba(60, 45, 30, 0.25); }
.modal::backdrop { background: rgba(60, 45, 30, 0.4); }
.modal form { display: grid; gap: 16px; padding: 20px 24px 24px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-head h2 { font-size: 17px; font-weight: 600; }
.off-open { margin-top: 10px; }

/* Dashboard: kerncijfers */
.kpi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow-card); display: grid; gap: 6px; align-content: start; min-height: 150px; }
.kpi-label { color: var(--muted); font-weight: 500; }
.kpi-value { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi-delta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.delta { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 2px 10px 2px 6px; font-weight: 600; font-variant-numeric: tabular-nums; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); }
.delta svg { width: 14px; height: 14px; }
.delta.up { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.delta.down { background: var(--bad-bg); color: var(--bad); border-color: var(--bad-line); }
.kpi-sub { color: var(--muted); font-size: 13px; }

/* Dashboard: weekagenda */
.week-card { gap: 12px; }
.week-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.week-head h2 { font-size: 15px; font-weight: 600; }
.week-nav { display: flex; gap: 8px; }
.week-wrap { overflow-x: auto; }
.week-grid { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 820px; table-layout: fixed; }
.week-grid th, .week-grid td { border-bottom: 1px solid var(--line); padding: 8px; vertical-align: top; text-align: left; }
.week-grid thead th { padding: 0 4px 8px; border-bottom: 1px solid var(--line-strong); }
.week-grid .tech-col { width: 160px; font-weight: 600; padding-left: 0; vertical-align: middle; }
.day-btn { width: 100%; display: grid; gap: 1px; text-align: left; background: none; border: 1px solid transparent; border-radius: 10px; padding: 6px 8px; cursor: pointer; font: inherit; color: var(--text); }
.day-btn:hover { background: var(--surface-2); }
.day-btn .wd { font-weight: 600; text-transform: capitalize; }
.day-btn .dm { color: var(--muted); font-size: 12.5px; }
.day-btn.today .wd::after { content: " · vandaag"; color: var(--accent); font-weight: 500; font-size: 12px; }
.day-btn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.week-grid td.selected { background: var(--accent-soft); }
.week-grid td.today-col { box-shadow: inset 0 0 0 0 transparent; }
.cell { display: grid; gap: 4px; cursor: pointer; border-radius: 8px; padding: 4px; min-height: 48px; }
.cell:hover { background: var(--surface-2); }
.cell .hours { font-variant-numeric: tabular-nums; font-weight: 500; }
.cell .count { font-size: 12.5px; color: var(--muted); }
.cell .count strong { color: var(--text); }
.cell.off .hours, .cell.none .hours { color: var(--muted); font-weight: 400; }
.cell .pill { justify-self: start; font-size: 12px; padding: 1px 8px; }
.week-hint { margin: 0; }

/* Dashboard: dag in detail */
.day-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.day-card-head h2 { font-size: 17px; font-weight: 600; }
.day-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.day-col { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.day-col-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.day-col-head strong { display: block; }
.day-col-head small { color: var(--muted); }
.slot-list { list-style: none; margin: 0; padding: 0; }
.slot-list li { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.slot-list li:last-child { border-bottom: 0; }
.slot-list .t { font-weight: 600; font-variant-numeric: tabular-nums; }
.slot-list .free { color: var(--muted); }
.slot-list .booked { border-left: 3px solid var(--accent); padding-left: 8px; display: grid; gap: 2px; }
.slot-list .booked small { color: var(--muted); }
.slot-list .booked a { color: inherit; }
.day-col .empty-note { padding: 14px; color: var(--muted); margin: 0; }

@media (max-width: 760px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .kpi-value { font-size: 28px; }
}
@media print { .week-nav { display: none; } }
.day-btn.today .wd::after { text-transform: none; }

/* Instellingen onderaan de zijbalk, boven de link naar de boekingspagina */
.nav-settings { padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }

/* Instellingen: tabbladen in de kop en een sectiekop per onderdeel */
.settings-tabs { display: inline-flex; gap: 2px; padding: 3px; margin: -8px 0 24px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; max-width: 100%; overflow-x: auto; }
.settings-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 9px; border: 1px solid transparent; color: var(--muted); text-decoration: none; font-weight: 500; white-space: nowrap; }
.settings-tabs a svg { width: 16px; height: 16px; }
.settings-tabs a:hover { color: var(--text); }
.settings-tabs a.active { background: var(--surface); color: var(--text); border-color: var(--line); box-shadow: var(--shadow); font-weight: 600; }
.settings-tabs a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.settings-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.settings-head h2 { font-size: 18px; font-weight: 600; }
.settings-head p { font-size: 13px; }
.settings-actions:empty { display: none; }
.settings-actions { display: flex; gap: 8px; }

/* Instellingen: formulieren links, voorbeeld rechts */
.settings-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 20px; align-items: start; }
.preview-card { position: sticky; top: 16px; }
.preview-frame { position: relative; height: 560px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.preview-frame iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: top left; background: #fff; }
.preview-frame.mobile { height: 640px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; }
.narrow { max-width: 760px; }
.dns-help:empty { display: none; }
.dns-help { display: grid; gap: 10px; background: var(--surface-2); border-radius: 10px; padding: 12px 14px; font-size: 13px; }
.dns-help p { margin: 0; }
.dns-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 8px; overflow: hidden; }
.dns-table th, .dns-table td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.dns-table th { color: var(--muted); font-weight: 500; }
.dns-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dns-status .ok { color: var(--ok); font-weight: 500; }
.dns-status .warn { color: var(--warn); font-weight: 500; }
.check-list { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.cost-list { margin: 0; display: grid; gap: 10px; }
.cost-list div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; }
.cost-list dt { color: var(--muted); }
.cost-list dd { margin: 0; }
@media (max-width: 1180px) {
  .settings-split { grid-template-columns: minmax(0, 1fr); }
  .preview-card { position: static; }
}
@media (max-width: 640px) {
  .preview-frame { height: 460px; }
  .cost-list div { grid-template-columns: 1fr; gap: 2px; }
}

/* Keuzeknoppen naast elkaar (bijv. Desktop / Mobiel) */
.segmented { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; }
.segmented button { font: inherit; font-size: 13px; font-weight: 500; border: 1px solid transparent; background: none; color: var(--muted); padding: 4px 12px; border-radius: 7px; cursor: pointer; }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--text); border-color: var(--line); box-shadow: var(--shadow); }
.dns-help em { color: var(--muted); }
.form-actions.start { justify-content: flex-start; flex-wrap: wrap; }
.btn.danger { color: var(--bad); }
.btn.danger:hover { background: var(--bad-bg); }

/* Wettelijke gegevens */
.req { color: var(--bad); font-weight: 600; }
.notice { display: grid; gap: 2px; border-radius: 12px; padding: 12px 16px; border: 1px solid var(--line); }
.notice.warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn); }
.notice.warn span { color: var(--text); }
.field select.select { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; padding: 9px 12px; width: 100%; font-weight: 400; font-size: 14px; }

/* Weekagenda: om de rij licht groen, en de kolom van vandaag gemarkeerd */
.week-grid tbody tr:nth-child(even) > * { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.week-grid td.today { background: color-mix(in srgb, var(--accent) 13%, transparent); box-shadow: inset 2px 0 0 var(--accent), inset -2px 0 0 var(--accent); }
.week-grid tbody tr:nth-child(even) > td.today { background: color-mix(in srgb, var(--accent) 19%, transparent); }
.week-grid tbody tr:last-child > td.today { box-shadow: inset 2px 0 0 var(--accent), inset -2px 0 0 var(--accent), inset 0 -2px 0 var(--accent); }
.week-grid thead th.today { background: color-mix(in srgb, var(--accent) 13%, transparent); border-radius: 10px 10px 0 0; box-shadow: inset 2px 0 0 var(--accent), inset -2px 0 0 var(--accent), inset 0 2px 0 var(--accent); }
.week-grid thead th.today .day-btn .wd, .week-grid thead th.today .day-btn .dm { color: var(--accent); }
.week-grid th, .week-grid td { border-bottom-color: transparent; }
.week-grid tbody th.tech-col { padding-left: 12px; border-radius: 10px 0 0 10px; }
.week-grid tbody tr > td:last-child { border-radius: 0 10px 10px 0; }
.week-grid td.selected { outline: 2px solid var(--accent); outline-offset: -4px; border-radius: 8px; }

/* Popup van een boeking */
.modal.wide { width: min(820px, calc(100vw - 32px)); }
.modal-body { display: grid; gap: 18px; padding: 20px 24px 24px; }
.modal-title { display: flex; align-items: center; gap: 10px; }
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.info-block { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.info-block h3 { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 8px; text-transform: uppercase; letter-spacing: 0.04em; }
.info-block dl { display: grid; gap: 2px; margin: 0; }
.info-block dt { color: var(--muted); font-size: 12px; margin-top: 6px; }
.info-block dt:first-child { margin-top: 0; }
.info-block dd { margin: 0; overflow-wrap: anywhere; }
.info-block a { color: inherit; }
.change-box { display: grid; gap: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.change-box h3 { font-size: 15px; font-weight: 600; margin: 0; }
.table tbody tr.row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (max-width: 760px) {
  .info-grid { grid-template-columns: 1fr; }
}

/* Popup van een boeking, ingedeeld als orderdetail */
.modal.xwide { width: min(1080px, calc(100vw - 32px)); max-height: calc(100vh - 32px); }
.bd-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.bd-stat { padding: 12px 16px; border-left: 1px solid var(--line); display: grid; gap: 4px; align-content: start; }
.bd-stat:first-child { border-left: 0; }
.bd-stat dt { font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.bd-stat dd { margin: 0; font-size: 17px; font-weight: 500; }
.bd-stat .pill { justify-self: start; }
.bd-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.bd-main, .bd-edit { display: grid; gap: 16px; }
.bd-card { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.bd-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.bd-card-head h3 { font-size: 15px; font-weight: 600; margin: 0; }
.bd-card-body { padding: 14px 16px; display: grid; gap: 12px; }
.bd-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.bd-row:last-child { border-bottom: 0; }
.bd-row .label { color: var(--muted); }
.bd-row .value { font-weight: 500; text-align: right; }
.bd-row .value.big { font-size: 18px; font-weight: 700; }
.bd-row a { color: var(--accent); }
.bd-customer-head { padding: 16px; border-bottom: 1px solid var(--line); }
.bd-customer-head strong { display: block; font-size: 18px; color: var(--accent); font-weight: 600; }
.bd-customer-head small { color: var(--muted); }
.bd-link { display: block; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--accent); text-decoration: none; overflow-wrap: anywhere; background: var(--surface-2); }
.bd-link:hover { text-decoration: underline; }
.bd-map { display: block; height: 170px; margin: 16px 16px 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.bd-map iframe { width: 100%; height: 100%; border: 0; }
.bd-address { padding: 12px 16px 16px; display: grid; gap: 2px; }
.bd-address .muted { margin-bottom: 4px; }
.bd-notes { padding: 0 16px 16px; }
.bd-notes p { margin: 4px 0 0; background: var(--surface-2); border-radius: 8px; padding: 8px 10px; }
.bd-actions { display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); padding-top: 16px; }
.btn-danger { background: var(--surface); color: var(--bad); border-color: var(--bad); }
.btn-danger:hover { background: var(--bad-bg); }
.danger-zone { border-color: var(--bad-line); }
.danger-zone .bd-card-head { background: var(--bad-bg); }
.danger-zone .bd-card-head h3 { color: var(--bad); }
@media (max-width: 860px) {
  .bd-grid { grid-template-columns: minmax(0, 1fr); }
  .bd-stats { grid-template-columns: 1fr 1fr; }
  .bd-stat:nth-child(3) { border-left: 0; }
  .bd-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
.inline-actions { display: flex; gap: 6px; flex-wrap: wrap; } .inline-actions .btn { padding: 6px 10px; font-size: 13px; }
.modal form.bd-card { display: block; padding: 0; gap: 0; }

/* Huisstijl */
.logo-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.logo-preview { width: 240px; height: 96px; display: grid; place-items: center; border: 1px dashed var(--line-strong); border-radius: 12px; padding: 12px;
  background: repeating-conic-gradient(var(--surface-2) 0% 25%, var(--surface) 0% 50%) 50% / 16px 16px; }
.logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.file-btn { cursor: pointer; }
.swatch { display: inline-flex; align-self: flex-start; align-items: center; margin-top: 4px; border-radius: 8px; padding: 7px 14px; font-weight: 600; font-size: 13px; background: #1d4ed8; color: #fff; }
.photo-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.photo-preview { width: 240px; aspect-ratio: 4 / 3; display: grid; place-items: center; text-align: center; padding: 8px; border: 1px dashed var(--line-strong); border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.photo-preview img { width: calc(100% + 16px); height: calc(100% + 16px); object-fit: cover; margin: -8px; }

/* Logo zoals het op website en boekingspagina staat */
.logo-preview:has(.logo-sample) { width: auto; height: auto; padding: 0; border: 0; background: none; display: flex; gap: 12px; flex-wrap: wrap; }
.logo-sample { margin: 0; width: 220px; height: 88px; border: 1px solid var(--line); border-radius: 12px; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 10px 12px 6px; }
.logo-sample img { max-width: 100%; max-height: 48px; object-fit: contain; }
.logo-sample figcaption { font-size: 11.5px; color: var(--muted); background: rgba(255, 255, 255, 0.9); border-radius: 999px; padding: 0 8px; }

/* Voordelen op de website */
.usp-rows { display: grid; gap: 10px; }
.usp-row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr) auto; gap: 10px; align-items: end; }
.usp-tools { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .usp-row { grid-template-columns: 1fr auto; }
  .usp-row .field:first-child { grid-column: 1 / -1; }
}
.field-block { display: grid; gap: 6px; }
.field-label { font-weight: 500; font-size: 13px; }
.field-block .photo-row { margin-top: 4px; }

/* Kleuren in twee groepen */
.color-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.color-group { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px 16px; display: grid; gap: 12px; margin: 0; }
.color-group legend { font-weight: 600; padding: 0 6px; margin-left: -6px; }
.color-sample { display: grid; gap: 8px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; padding-bottom: 10px; }
.sample-band { padding: 10px 12px; font-weight: 600; font-size: 13px; background: #1d4ed8; color: #fff; }
.sample-button { justify-self: start; margin-left: 12px; border-radius: 8px; padding: 7px 14px; font-weight: 600; font-size: 13px; background: #1d4ed8; color: #fff; }
@media (max-width: 760px) { .color-groups { grid-template-columns: 1fr; } }

/* Koppelingen (Instellingen → Betalen) */
.integrations { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.integration { display: flex; flex-direction: column; gap: 8px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.integration-logo { display: grid; place-items: center; height: 72px; margin-bottom: 4px; }
.integration-logo.mollie { font: 700 26px/1 system-ui, sans-serif; letter-spacing: -0.04em; color: #000; }
.integration h3 { margin: 0; font-size: 15px; }
.integration p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.integration-action { display: grid; gap: 6px; margin-top: 8px; }
.integration-status { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); font-weight: 600; }
.integration-status span:nth-child(2) { flex: 1; }
.integration-status .icon-btn { width: 32px; height: 32px; }
.integration-status .icon-btn svg { width: 18px; height: 18px; }
.integration-status .icon-btn[aria-expanded="true"] { background: var(--line); color: var(--text); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.status-dot.ok { background: #22a04b; }
.status-dot.warn { background: #f59e0b; }
.status-dot.bad { background: var(--bad); }
.integration-link { border: 0; background: none; padding: 0; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; }
.integration-more { text-align: center; font-size: 14px; color: var(--accent); }

/* Offertes */
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--warn); color: #fff; font-size: 12px; font-weight: 600; display: inline-grid; place-items: center; }
.quote-list { display: grid; gap: 16px; }
.quote-card.inactive { background: var(--surface-2); }
.quote-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; margin: 4px 0 16px; }
.quote-message { margin: 0; white-space: normal; line-height: 1.55; }
.quote-customer { display: grid; gap: 8px; margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.quote-customer div { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 8px; }
.quote-customer dt { color: var(--muted); font-size: 13px; }
.quote-customer dd { margin: 0; overflow-wrap: anywhere; }
.quote-card .btn svg { width: 16px; height: 16px; }
@media (max-width: 720px) { .quote-body { grid-template-columns: minmax(0, 1fr); } }

/* Soort dienst: afspraak of offerte */
.kind-choice { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.kind-choice legend { padding: 0; margin-bottom: 8px; font-size: 14px; }
.kind-option { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--surface); }
.kind-option:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; background: var(--accent-soft); }
.kind-option input { width: 16px; height: 16px; margin: 3px 0 0; padding: 0; flex: none; accent-color: var(--accent); }
.kind-option span { display: grid; gap: 2px; }
.kind-option small { color: var(--muted); font-size: 13px; }

/* Google-reviews */
.field select { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; padding: 9px 12px; width: 100%; font-weight: 400; font-size: 14px; }
.search-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.reviews-results { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.reviews-results:empty { display: none; }
.reviews-results button { width: 100%; text-align: left; display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: inherit; cursor: pointer; }
.reviews-results button:hover { border-color: var(--accent); }
.reviews-results small { color: var(--muted); }
.reviews-linked { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.reviews-linked > span:nth-child(2) { display: grid; flex: 1; }
.reviews-linked small { color: var(--muted); }

/* Werkgebied per monteur */
.tech-sub { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tech-sub.bad { color: var(--bad); }
.area-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.area-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 500; background: var(--surface); }
.area-chip:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.area-chip input { width: 15px; height: 15px; }

/* Monteurs: lijst met rijen, klikken opent de popup */
.tech-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px 20px; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.tech-row:hover { background: var(--surface-2); }
.tech-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tech-row.inactive { background: var(--surface-2); }
#technician-list { gap: 10px; }

/* Popup van een monteur met tabbladen */
.modal.tech-modal { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 32px); }
.tech-modal form { gap: 18px; }
.modal-tabs { margin: 0; align-self: start; justify-self: start; }
.modal-tabs button { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 9px; border: 1px solid transparent; background: none; color: var(--muted); font: inherit; font-weight: 500; white-space: nowrap; cursor: pointer; }
.modal-tabs button svg { width: 16px; height: 16px; }
.modal-tabs button:hover { color: var(--text); }
.modal-tabs button.active { background: var(--surface); color: var(--text); border-color: var(--line); box-shadow: var(--shadow); font-weight: 600; }
.modal-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.tech-panels { display: grid; }
/* Alle tabbladen liggen op dezelfde plek: de popup is zo hoog als het hoogste tabblad en verspringt niet */
.tech-panel { grid-area: 1 / 1; display: grid; gap: 20px; align-content: start; }
.tech-panel:not(.active) { visibility: hidden; pointer-events: none; }
.tech-panel .hint-inline { margin: -8px 0 0; }
.tech-block { display: grid; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.tech-block .sub-head { margin: 0; }
.tech-modal .weekday-row { grid-template-columns: 140px 120px 120px minmax(0, 1fr); }
@media (max-width: 640px) {
  .tech-modal .weekday-row { grid-template-columns: 1fr 1fr; }
}

/* Inloggen: wachtwoord, authenticator-app instellen, herstelcodes */
.logo-mark { font-weight: 700; font-size: 15px; }
.login-card .notice.ok { background: var(--accent-soft); border-color: var(--ok-line); color: var(--accent); margin: 0; }
.login-step { display: grid; gap: 14px; }
.link-btn { border: 0; background: none; padding: 2px 0; color: var(--muted); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; justify-self: center; }
.link-btn:hover { color: var(--text); }
.otp { letter-spacing: .35em; font-size: 20px !important; text-align: center; font-variant-numeric: tabular-nums; }
.setup-steps { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: 14px; }
.qr { width: 184px; margin: 10px 0 4px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.qr svg { display: block; width: 100%; height: auto; }
.setup details summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.secret { display: block; margin-top: 6px; padding: 8px 10px; background: var(--surface-2); border-radius: 8px; font-size: 13px; letter-spacing: .04em; overflow-wrap: anywhere; user-select: all; }
.recovery { list-style: none; margin: 0; padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.recovery code { font-size: 14px; letter-spacing: .03em; }
.recovery-actions { display: flex; gap: 8px; }
.recovery-actions .btn { flex: 1; }
.login-status { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; margin-top: -8px; }
.login-status .hint-inline { margin: 0; flex: 1 1 260px; }
.btn-sm { padding: 6px 10px; font-size: 12.5px; }
.signup-hint { margin: 4px 0 0; text-align: center; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
.signup-hint a { color: var(--accent); font-weight: 600; }
.signup-card { max-width: 440px; }
.signup-card .terms { font-weight: 400; font-size: 13px; align-items: flex-start; }

/* Stappenplan voor een nieuwe klant */
.onboarding { min-height: 100vh; }
.ob-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 28px; background: var(--surface); border-bottom: 1px solid var(--line); }
.ob-top .logo { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.ob-shell { max-width: 1040px; margin: 0 auto; padding: 28px; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.ob-steps { position: sticky; top: 20px; }
.ob-hello { font-size: 18px; font-weight: 600; margin: 0 0 4px; }
.ob-steps ol { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 4px; }
.ob-steps button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 10px; background: none; font: inherit; color: var(--muted); text-align: left; cursor: pointer; }
.ob-steps button small { color: var(--muted); font-size: 11.5px; }
.ob-steps button:hover { background: var(--surface-2); color: var(--text); }
.ob-steps button.current { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow); border: 1px solid var(--line); }
.ob-num { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 12px; font-weight: 600; flex: none; background: var(--surface); }
.ob-steps button.done .ob-num { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.ob-steps button.current .ob-num { border-color: var(--accent); color: var(--accent); }
.ob-steps button.current.done .ob-num { color: var(--on-accent); }
.ob-card { gap: 14px; padding: 28px; }
.ob-card h1 { font-family: var(--serif); font-size: 32px; font-weight: 400; line-height: 1.1; margin: 0; }
.ob-count { margin: 0; color: var(--muted); font-size: 13px; font-weight: 500; }
.ob-form { display: grid; gap: 16px; }
.ob-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 4px; }
.ob-right { display: flex; gap: 8px; }
.slug-row { display: flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; background: var(--surface); }
.slug-row input { border: 0 !important; border-radius: 0 !important; flex: 1; min-width: 0; }
.slug-prefix, .slug-suffix { display: grid; place-items: center; padding: 0 10px; background: var(--surface-2); color: var(--muted); font-weight: 400; font-size: 14px; }
.ob-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ob-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; }
.ob-list li span { display: grid; gap: 2px; }
.ob-list li small { color: var(--muted); }
.ob-list li.empty { color: var(--muted); justify-content: center; border-style: dashed; }
.ob-add { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 0; display: grid; gap: 14px; }
.ob-add legend { font-weight: 600; padding: 0 6px; }
.ob-add .btn { justify-self: start; }
.ob-areas { display: grid; gap: 8px; }
.ob-area { display: grid; grid-template-columns: 130px 130px minmax(0, 1fr) auto; gap: 8px; }
.ob-area input { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; padding: 9px 12px; font: inherit; font-size: 14px; min-width: 0; }
.ob-logo { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ob-logo img { max-height: 48px; max-width: 200px; }
.ob-mollie { display: flex; gap: 8px; flex-wrap: wrap; }
.ob-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ob-check li { display: flex; align-items: center; gap: 10px; }
.ob-check li > span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 12px; font-weight: 700; flex: none; }
.ob-check li.done > span { background: var(--ok-bg); color: var(--ok); border: 1px solid var(--ok-line); }
.ob-check li.open > span { background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-line); }
.ob-check .link-btn { justify-self: auto; }
.ob-done { max-width: 520px; margin: 48px auto; padding: 32px; text-align: center; gap: 14px; }
.ob-party { font-size: 44px; }
.ob-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 860px) {
  .ob-shell { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 16px; }
  .ob-steps { min-width: 0; }
  .ob-steps { position: static; }
  .ob-steps ol { grid-auto-flow: column; overflow-x: auto; grid-auto-columns: max-content; }
  .ob-area { grid-template-columns: 1fr 1fr; }
  .ob-area input[name="place"] { grid-column: 1 / -1; }
  .ob-top { padding: 12px 16px; }
}

/* --- Voorwaarden (app.flowro.io/voorwaarden) ------------------------------------ */
.signup-card .terms a { color: var(--accent); font-weight: 500; }
.legal-top { padding: 16px 24px; border-bottom: 1px solid var(--line); background: var(--surface); }
.legal-top .logo { text-decoration: none; }
.legal { max-width: 720px; margin: 0 auto; padding: 40px 16px 72px; font-size: 15px; line-height: 1.65; }
.legal h1 { font-family: var(--serif); font-size: 44px; font-weight: 400; line-height: 1.05; letter-spacing: -0.01em; }
.legal-meta { color: var(--muted); font-size: 13px; margin: 8px 0 24px; }
.legal-lead { font-size: 17px; background: var(--accent-soft); border: 1px solid var(--ok-line); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 24px; }
.legal-toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow-card); margin-bottom: 16px; }
.legal-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.legal-toc a { color: var(--text); text-decoration: none; }
.legal-toc a:hover { color: var(--accent); text-decoration: underline; }
.legal section { scroll-margin-top: 16px; padding-top: 16px; }
.legal h2 { font-family: var(--serif); font-size: 26px; font-weight: 400; margin: 16px 0 8px; }
.legal h3 { font-size: 15px; font-weight: 600; margin: 18px 0 4px; }
.legal p { margin: 0 0 10px; }
.legal ul { margin: 0 0 10px; padding-left: 20px; }
.legal a { color: var(--accent); }
.legal mark { background: #fbe7b5; color: var(--text); border-radius: 4px; padding: 0 4px; }
.legal-annex { margin-top: 32px; border-top: 1px solid var(--line-strong); }
.legal-foot { margin-top: 32px; color: var(--muted); font-size: 13px; }
@media (max-width: 560px) { .legal h1 { font-size: 34px; } .legal-toc ol { columns: 1; } }
