:root {
  --blue: #001489;
  --blue-900: #000a4a;
  --blue-600: #1a2fa3;
  --sky: #62b5e5;
  --sky-50: #eef7fd;
  --ink: #141a33;
  --muted: #646a82;
  --line: #e2e6ef;
  --bg: #f4f6fb;
  --danger: #c0262d;
  --ok: #12805c;
  --radius: 12px;
  --font: "Century Gothic", CenturyGothic, "Questrial", system-ui, sans-serif;
  --font-head: "Century Gothic", CenturyGothic, "Outfit", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 var(--font); color: var(--ink); background: var(--bg); }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); margin: 0; line-height: 1.2; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.1rem; }
code { background: rgba(0, 20, 137, .07); padding: 1px 6px; border-radius: 4px; font-size: .9em; }
.icon { width: 18px; height: 18px; flex: none; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.strong { font-weight: 700; text-decoration: none; color: var(--ink); }
.strong:hover { color: var(--blue); }
.stack { display: grid; gap: 14px; }
.narrow { max-width: 560px; }

/* Knoppen */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 9px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); font: 600 .92rem/1.2 var(--font-head);
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: #c8cfdf; background: #fafbfe; }
.btn--primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.btn--outline { border: 1.5px dashed #b8c2dd; color: var(--blue); background: transparent; padding: 14px; }
.btn--outline:hover { border-color: var(--blue); background: var(--sky-50); }
.btn--ghost { background: transparent; }
.btn--danger { color: var(--danger); }
.btn--danger:hover { background: #fdeced; border-color: #f2c4c6; }
.btn--sm { padding: 6px 11px; font-size: .84rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .6; cursor: default; }
.iconbtn { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.iconbtn:hover { background: var(--bg); color: var(--ink); }
.iconbtn:disabled { opacity: .3; cursor: default; }
.linkbtn { background: none; border: 0; padding: 0; color: #aab4dd; cursor: pointer; font: inherit; font-size: .85rem; }
.linkbtn:hover { color: #fff; }

/* Layout */
.shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--blue-900); color: #c9d1f3; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; padding: 18px 14px calc(18px + env(safe-area-inset-bottom)); }
.sidebar__brand { display: block; background: #fff; border-radius: 10px; padding: 10px 12px 8px; margin-bottom: 22px; text-decoration: none; }
.sidebar__brand img { width: 100%; height: auto; display: block; }
.sidebar__brand span { display: block; font: 700 .7rem var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 6px; text-align: center; }
.sidebar__nav { display: grid; gap: 2px; }
.sidebar__nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; color: #c9d1f3; text-decoration: none; font: 600 .95rem var(--font-head); }
.sidebar__nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.sidebar__nav a.is-active { background: var(--blue); color: #fff; box-shadow: inset 3px 0 0 var(--sky); }
.sidebar__nav .icon { color: var(--sky); }
.badge { margin-left: auto; background: var(--sky); color: var(--blue-900); border-radius: 999px; font-size: .75rem; padding: 1px 8px; }
.sidebar__foot { margin-top: auto; display: grid; gap: 12px; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 14px; }
.sidebar__site { display: flex; gap: 8px; align-items: center; color: #fff; text-decoration: none; font-weight: 600; padding: 0 12px; }
.sidebar__user { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px 0 12px; }
.sidebar__user a { display: flex; gap: 10px; align-items: center; color: #fff; text-decoration: none; font-weight: 600; min-width: 0; }
.sidebar__user small { display: block; color: #aab4dd; font-weight: 400; }
/* Bekijken als: keuze onderin het menu (beheerder) en de balk bovenaan zolang je als een ander account kijkt. */
.viewas-pick { margin: 0; padding: 0 4px 0 12px; }
.viewas-pick label { display: grid; gap: 4px; }
.viewas-pick__label { font-size: .75rem; color: #aab4dd; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.viewas-pick select { width: 100%; min-height: 36px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #fff; padding: 0 8px; font: inherit; font-size: .85rem; }
.viewas-pick select option, .viewas-pick select optgroup { color: #0d1330; background: #fff; }
.viewas { position: relative; z-index: 60; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 8px 16px; background: #ffb83d; color: #2a1600; font-size: .9rem; }
.viewas__text { flex: 1 1 320px; line-height: 1.4; }
.viewas__text .icon { width: 18px; height: 18px; vertical-align: -4px; margin-right: 6px; }
.viewas form { margin: 0; }
.viewas .viewas-pick { padding: 0; }
.viewas .viewas-pick label { display: flex; align-items: center; gap: 8px; }
.viewas .viewas-pick__label { color: #2a1600; }
.viewas .viewas-pick select { width: auto; max-width: 260px; background: #fff; color: #0d1330; border-color: rgba(42, 22, 0, .25); }
.viewas__stop { min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: #050c3a; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sky); color: var(--blue-900); font-weight: 700; flex: none; }
.main { padding: 28px clamp(16px, 3vw, 40px) 60px; min-width: 0; }
.mobilebar { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 60; left: 0; width: 270px; transform: translateX(-100%); transition: transform .25s; }
  .sidebar.is-open { transform: none; box-shadow: 20px 0 60px rgba(0, 0, 0, .3); }
  .mobilebar { display: flex; align-items: center; gap: 12px; margin: -12px 0 18px; padding-top: env(safe-area-inset-top); }
  .mobilebar__out { margin: 0 0 0 auto; }
  .main { padding-top: 20px; }
}

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head p { margin: 4px 0 0; }
.page-head p.muted:first-child { margin: 0 0 4px; }
.page-head p a { color: var(--muted); }
.page-head__actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.page-head--sticky { position: sticky; top: 0; z-index: 20; background: rgba(244, 246, 251, .94); backdrop-filter: blur(6px); padding: 14px 0; margin-top: -14px; border-bottom: 1px solid transparent; }
.save-state { font-size: .85rem; color: var(--muted); }
.save-state.is-dirty { color: #a46200; }
.save-state.is-ok { color: var(--ok); }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.panel--flush { padding: 0; overflow-x: auto; }
.panel__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.panel__title { font-size: 1rem; margin-bottom: 14px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.grid2 > .panel { margin-bottom: 0; }
@media (max-width: 1100px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }
.empty { padding: 32px; text-align: center; color: var(--muted); margin: 0; }
.notice { background: #fff7e6; border: 1px solid #f3dfb3; color: #6f4b00; padding: 12px 16px; border-radius: 10px; margin-bottom: 20px; }
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-weight: 600; }
.flash--success { background: #e7f6ef; color: #0b5d43; }
.flash--error { background: #fdeced; color: var(--danger); }

/* Statistieken */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; text-decoration: none; color: var(--ink); }
.stat:hover { border-color: var(--sky); }
.stat__num { display: block; font: 700 2rem/1 var(--font-head); color: var(--blue); margin-bottom: 6px; }
.stat__label { color: var(--muted); font-size: .88rem; }
.stat--hot { background: var(--blue); border-color: var(--blue); }
.stat--hot .stat__num { color: #fff; }
.stat--hot .stat__label { color: #c9d1f3; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.list { list-style: none; margin: 0; padding: 0; }
.list li a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.list li:first-child a { border-top: 0; }
.list small { color: var(--muted); }
.list .is-unread strong::before, .table tr.is-unread .strong::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); margin-right: 8px; vertical-align: middle; }
.quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.quick a { display: flex; gap: 10px; align-items: center; padding: 14px; border-radius: 10px; background: var(--bg); text-decoration: none; color: var(--ink); font-weight: 600; }
.quick a:hover { background: var(--sky-50); color: var(--blue); }
.quick .icon { color: var(--blue); }

/* Tabellen */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font: 700 .75rem var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #fafbfe; }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions form { display: inline; }
.thumbcell { width: 72px; }
.thumbcell img { width: 56px; height: 42px; object-fit: cover; border-radius: 6px; display: block; }
.pill { display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--sky-50); color: var(--blue); font: 700 .75rem var(--font-head); white-space: nowrap; }
.pill--muted { background: var(--bg); color: var(--muted); }
.pill--schade { background: #fdeced; color: var(--danger); }
.pill--offerte { background: #fff3dc; color: #8a5a00; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #c3c8d6; margin-right: 7px; }
.dot--ok { background: var(--ok); }
.dot--warn { background: #d99a00; }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.tabs a { padding: 7px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; }
.tabs a.is-active { background: var(--blue); color: #fff; }
.details { margin: 0; display: grid; gap: 0; }
.details div { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.details div:first-child { border-top: 0; }
.details dt { font-weight: 700; color: var(--muted); }
.details dd { margin: 0; white-space: pre-wrap; }
@media (max-width: 600px) { .details div { grid-template-columns: 1fr; gap: 2px; } }
.row-actions { display: flex; gap: 10px; }

/* Formuliervelden */
.fld { display: grid; gap: 6px; margin-bottom: 14px; }
.fld > span { font: 700 .85rem var(--font-head); color: var(--ink); }
.fld small { color: var(--muted); font-size: .8rem; }
.fld input, .fld textarea, .fld select, .repeat input, .repeat select {
  width: 100%; padding: 9px 12px; border: 1px solid #d5dbe8; border-radius: 8px; font: inherit; color: var(--ink); background: #fff;
}
.fld input:focus, .fld textarea:focus, .fld select:focus, .repeat input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 20, 137, .1); }
.fld textarea { resize: vertical; }
.fld--sm { margin: 8px 0; }
.fld--sm input { padding: 6px 9px; font-size: .85rem; }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fld-row .fld--narrow { max-width: 140px; }
.check { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); }
.input-prefix { display: flex; align-items: stretch; border: 1px solid #d5dbe8; border-radius: 8px; overflow: hidden; background: #fff; }
.input-prefix span { padding: 9px 4px 9px 12px; color: var(--muted); background: var(--bg); white-space: nowrap; }
.input-prefix input { border: 0 !important; box-shadow: none !important; border-radius: 0; }
.counter { font-size: .78rem; color: var(--muted); text-align: right; }
.counter.is-over { color: #a46200; }
.repeat { display: grid; gap: 8px; margin-bottom: 10px; }
.repeat__row { display: grid; grid-template-columns: 1fr 1.4fr 34px; gap: 8px; align-items: center; }

/* Pagina-editor */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.editor__side { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }
@media (max-width: 1100px) { .editor { grid-template-columns: minmax(0, 1fr); } .editor__side { position: static; } }
.blocks { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.blk { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.blk.is-hidden { opacity: .6; }
.blk.is-dragging { opacity: .4; }
.blk.drop-before { box-shadow: 0 -3px 0 var(--sky); }
.blk__head { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; background: #fafbfe; border-radius: 10px; cursor: pointer; user-select: none; }
.blk.is-open .blk__head { border-bottom: 1px solid var(--line); border-radius: 10px 10px 0 0; }
.blk__grip { cursor: grab; color: #a3abc2; display: grid; place-items: center; }
.blk__type { font: 700 .72rem var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: var(--blue); background: var(--sky-50); padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.blk__summary { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.blk__tools { display: flex; gap: 2px; }
.blk__body { display: none; padding: 18px; }
.blk.is-open .blk__body { display: block; }
.subitems { display: grid; gap: 10px; margin-bottom: 10px; }
.subitem { border: 1px solid var(--line); border-radius: 9px; padding: 14px; background: #fcfcfe; }
.subitem__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font: 700 .85rem var(--font-head); color: var(--muted); }
.fieldgroup { border: 0; padding: 0; margin: 0 0 14px; }
.fieldgroup > legend { font: 700 .85rem var(--font-head); margin-bottom: 8px; padding: 0; }
.add-block { margin-top: 14px; }

.rte { background: #fff; border-radius: 8px; }
.rte .ql-toolbar.ql-snow { border-color: #d5dbe8; border-radius: 8px 8px 0 0; font-family: var(--font); }
.rte .ql-container.ql-snow { border-color: #d5dbe8; border-radius: 0 0 8px 8px; font: 15px/1.6 var(--font); }
.rte .ql-editor { min-height: 120px; max-height: 520px; overflow-y: auto; }
.rte .ql-editor h2 { font-size: 1.35rem; color: var(--blue); }
.rte .ql-editor h3 { font-size: 1.1rem; color: var(--blue); }
[data-post-form] .rte .ql-editor { min-height: 320px; }

.imgfield { display: grid; gap: 8px; }
.imgfield__preview img { width: 100%; max-width: 320px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.imgfield__preview:empty::before { content: "Geen afbeelding gekozen"; display: grid; place-items: center; max-width: 320px; aspect-ratio: 16 / 10; border: 1.5px dashed #ccd3e3; border-radius: 8px; color: var(--muted); font-size: .85rem; }
.imgfield__btns { display: flex; gap: 8px; }

.iconpick { display: flex; flex-wrap: wrap; gap: 6px; }
.iconpick button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; color: var(--blue); }
.iconpick button.is-active { background: var(--blue); color: #fff; border-color: var(--blue); }
.iconpick .icon { width: 20px; height: 20px; }

/* Modals */
.modal { border: 0; border-radius: 14px; padding: 0; width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-shadow: 0 30px 80px rgba(0, 10, 74, .35); }
.modal--wide { width: min(1100px, calc(100vw - 32px)); }
.modal::backdrop { background: rgba(0, 10, 74, .45); }
.modal__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; flex-wrap: wrap; }
.modal__tools { display: flex; gap: 8px; align-items: center; }
.modal__tools input[type="search"] { padding: 7px 10px; border: 1px solid #d5dbe8; border-radius: 8px; font: inherit; }
.picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 20px; }
.picker button { text-align: left; border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: #fff; cursor: pointer; font: inherit; }
.picker button:hover { border-color: var(--blue); background: var(--sky-50); }
.picker strong { display: block; font-family: var(--font-head); color: var(--blue); margin-bottom: 2px; }
.picker span { color: var(--muted); font-size: .86rem; }
@media (max-width: 600px) { .picker { grid-template-columns: 1fr; } }

/* Media */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.media-grid--pick { padding: 20px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.media-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.media-item__thumb { display: block; aspect-ratio: 4 / 3; background: var(--bg); }
.media-item__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-item__pdf { display: grid; place-items: center; height: 100%; font: 700 1.4rem var(--font-head); color: var(--danger); }
.media-item__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.media-item__body strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.media-item__body small { color: var(--muted); font-size: .78rem; }
.media-item__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.media-item__actions form { display: inline; }
.pick-item { border: 2px solid transparent; border-radius: 10px; padding: 0; background: var(--bg); cursor: pointer; overflow: hidden; text-align: left; font: inherit; }
.pick-item:hover { border-color: var(--blue); }
.pick-item img, .pick-item .media-item__pdf { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: grid; }
.pick-item span { display: block; padding: 6px 8px; font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: #fff; }
.dropzone { border: 2px dashed #c8d0e2; border-radius: var(--radius); padding: 22px; text-align: center; color: var(--muted); margin-bottom: 20px; background: #fff; transition: all .15s; }
.dropzone.is-over { border-color: var(--blue); background: var(--sky-50); color: var(--blue); }

/* Login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(130deg, var(--blue-900), var(--blue)); }
.login__card { width: min(420px, 100%); background: #fff; border-radius: 16px; padding: 36px; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); border-top: 5px solid var(--sky); }
.login__logo { width: 220px; height: auto; display: block; margin: 0 auto 22px; }
.login h1 { text-align: center; font-size: 1.3rem; margin-bottom: 20px; }
.login__back { display: block; text-align: center; margin-top: 18px; color: var(--muted); font-size: .9rem; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 10px; z-index: 100; font-weight: 600; }

/* Telefoon/tablet: invoervelden minimaal 16px zodat iOS niet inzoomt; knoppen goed aantikbaar */
@media (max-width: 900px) {
  .fld input, .fld textarea, .fld select, .repeat input, .repeat select, .modal__tools input[type="search"] { font-size: 16px; }
  .page-head h1 { font-size: 1.4rem; }
  .page-head__actions { width: 100%; }
  .page-head--sticky .page-head__actions .btn { flex: 1; }
  .table .actions { white-space: normal; }
  .table .actions .btn { margin: 2px 0; }
  .repeat__row { grid-template-columns: 1fr 1fr 34px; }
  .fld-row { grid-template-columns: 1fr; }
  .fld-row .fld--narrow { max-width: none; }
  .quick { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); }
  .blk__head { flex-wrap: wrap; }
  .blk__summary { flex-basis: 100%; order: 3; }
  .blk__tools { margin-left: auto; }
}
@media (max-width: 480px) { .list li a { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Schade-intake workflow ---------- */
.tabs__count { display: inline-block; min-width: 22px; padding: 0 7px; margin-left: 4px; border-radius: 999px; background: rgba(0, 20, 137, .08); font-size: .78rem; text-align: center; }
.tabs a.is-active .tabs__count { background: rgba(255, 255, 255, .2); }
.status-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.status-filter a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .88rem; border: 1px solid transparent; }
.status-filter a:hover { background: #fff; border-color: var(--line); }
.status-filter a.is-active { background: #fff; border-color: var(--blue); }

.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font: 700 .76rem/1.5 var(--font-head); white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .8; }
.status--lg { font-size: .9rem; padding: 6px 14px; }
.status--nieuw { background: #e6ebff; color: #1a2fa3; }
.status--contact { background: #fff3dc; color: #8a5a00; }
.status--gepland { background: #e3f3fc; color: #0c6a9c; }
.status--binnen { background: #efe8ff; color: #5b37b1; }
.status--afgerond { background: #e7f6ef; color: #0b6b4a; }
.status--geannuleerd { background: #f0f1f4; color: #6b7184; }
.status--warn { background: #fdeced; color: var(--danger); }
.plate-mini { display: inline-block; padding: 2px 8px; border-radius: 5px; background: #f7c300; color: #111; font: 700 .82rem/1.4 "Outfit", var(--font-head); letter-spacing: .06em; box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .7); white-space: nowrap; }
.plate-mini--lg { font-size: 1rem; padding: 4px 12px; }

.intake-admin { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.intake-admin__side { position: sticky; top: 20px; }
.grid2--tight { gap: 20px; margin-bottom: 20px; }
.details--compact div { grid-template-columns: 130px 1fr; padding: 8px 0; }
.visit-box { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 12px; background: var(--blue); color: #fff; margin-bottom: 10px; }
.visit-box .icon { width: 28px; height: 28px; color: var(--sky); }
.visit-box strong { display: block; font: 700 1.2rem var(--font-head); }
.visit-box span { color: #c9d2f5; }
.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.note-form { display: grid; gap: 8px; justify-items: start; margin-bottom: 16px; }
.note-form .fld { width: 100%; margin: 0; }
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.notes li { padding: 12px 14px; border-radius: 10px; background: #fff8e6; border: 1px solid #f3e2b3; }
.notes__meta { font-size: .82rem; color: var(--muted); margin-bottom: 4px; }
.notes form { margin-top: 6px; }
.linkbtn--danger { color: var(--danger); font-size: .8rem; }
.linkbtn--danger:hover { color: #8f1c21; text-decoration: underline; }
.status-steps { display: grid; gap: 6px; margin: 12px 0; }
.status-step { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font: 600 .92rem var(--font-head); color: var(--ink); cursor: pointer; text-align: left; }
.status-step:hover { border-color: var(--blue); background: #fafbfe; }
.status-step.is-current { border-color: var(--blue); background: var(--sky-50); color: var(--blue); cursor: default; opacity: 1; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; padding: 0; }
.status-dot::before { display: none; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.timeline li { display: grid; gap: 3px; justify-items: start; padding-left: 12px; border-left: 2px solid var(--line); }
.timeline small { color: var(--muted); }
@media (max-width: 1100px) { .intake-admin { grid-template-columns: minmax(0, 1fr); } .intake-admin__side { position: static; order: -1; } }

/* Tabel als kaarten op telefoon */
@media (max-width: 760px) {
  .table--cards thead { display: none; }
  .table--cards, .table--cards tbody, .table--cards tr, .table--cards td { display: block; width: 100%; }
  .table--cards tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .table--cards td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border: 0; text-align: right; }
  .table--cards td::before { content: attr(data-label); font: 700 .75rem var(--font-head); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; text-align: left; }
  .table--cards tr:hover td { background: none; }
  .details--compact div { grid-template-columns: 1fr; }
}
.nowrap { white-space: nowrap; }
.insurer-flag { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #fff4e0; color: #6b4300; font-size: .88rem; }
.insurer-flag .icon { flex: none; color: #c77700; margin-top: 2px; }
.status-filter + .panel .status--warn { margin-top: 4px; }

/* Beschikbaarheid intake */
.sched-panel { margin-top: 20px; }
.sched { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0; min-width: 0; }
.sched legend { font: 700 .95rem var(--font-head); padding: 0 6px; }
.sched__table { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.sched__table th { text-align: left; font: 700 .72rem var(--font-head); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 6px 4px; }
.sched__table td { padding: 4px; }
.sched__table input[type="time"] { width: 100%; min-width: 0; padding: 7px 8px; border: 1px solid #d5dbe8; border-radius: 8px; font: inherit; }
.check--inline { margin: 0; justify-content: center; }
.fld--inline { grid-template-columns: auto 110px; align-items: center; gap: 12px; margin: 0; }
.notice--sm { font-size: .85rem; padding: 10px 12px; margin: 12px 0 0; }
@media (max-width: 480px) { .sched__table th:nth-child(2) { font-size: 0; } }
.status--taxatie { background: #001489; color: #fff; }
.visit-box--taxatie { background: linear-gradient(120deg, #000a4a, #001489); box-shadow: inset 4px 0 0 #62b5e5; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sched__scroll { overflow-x: auto; margin-bottom: 12px; }
.sched__scroll .sched__table { margin-bottom: 0; min-width: 330px; }
@media (max-width: 480px) { .sched { padding: 10px; } .sched__table td { padding: 3px 2px; } .sched__table input[type="time"] { padding: 6px 4px; font-size: 16px; } }
.btn-stack { display: grid; gap: 8px; }
.demo-banner { padding: 8px 16px; background: #fff3dc; color: #5c3d00; font-size: .88rem; text-align: center; }

/* Vacature-editor: snelnavigatie, "nog in te vullen" en herhaalbare blokken (voordelen, werkdag, foto's) */
.vnav { position: sticky; top: 76px; z-index: 4; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; padding: 8px; background: rgba(244, 246, 251, .94); border-radius: var(--radius); backdrop-filter: blur(6px); }
.vnav a { padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font: 700 .8rem var(--font-head); text-decoration: none; }
.vnav a:hover { border-color: var(--blue); }
.editor__main .panel[id] { scroll-margin-top: 140px; }
.panel--todo { background: #fff8e8; border-color: #f2d9a2; }
.todo-list { margin: 8px 0 0; padding-left: 20px; }
.todo-list li { margin-bottom: 2px; }
.vrow { display: block; position: relative; padding: 14px 14px 4px; border: 1px solid var(--line); border-radius: var(--radius); background: #fbfcfe; }
.vrow__tools { position: absolute; top: 6px; right: 6px; display: flex; gap: 2px; }
.vrow__grid { display: grid; grid-template-columns: 150px minmax(0, 1fr) 150px; gap: 10px; padding-right: 110px; }
.vrow__grid--day { grid-template-columns: 220px minmax(0, 1fr); }
.vrow__grid--gallery { grid-template-columns: 220px minmax(0, 1fr); padding-right: 110px; }
.vrow .fld { margin-bottom: 10px; }
.vrow textarea, .vrow input, .vrow select { width: 100%; }
.imgfield--sm .imgfield__preview img, .imgfield--sm .imgfield__preview:empty::before { max-width: 200px; }
.vfld-spaced { margin-top: 18px; }
@media (max-width: 760px) { .vrow__grid, .vrow__grid--day, .vrow__grid--gallery { grid-template-columns: 1fr; padding-right: 0; } .vrow { padding-top: 44px; } }

/* ---------- Werkplaats (fotoregistratie) ---------- */
/* Gebouwd voor de telefoon in de werkplaats: grote knoppen, weinig tekst, camera in de duimzone. */
.btn--xl { min-height: 56px; padding: 14px 22px; font-size: 1.05rem; border-radius: 12px; }
.ws-hero { padding: 22px; }
.ws-hero h1 { margin-bottom: 14px; }
.ws-search { display: flex; gap: 10px; margin-bottom: 10px; }
.ws-plate { flex: 1; min-width: 0; }
.ws-plate input { width: 100%; min-height: 56px; padding: 10px 14px; border: 2px solid #111; border-radius: 10px; background: #f7c300; color: #111;
  font: 700 1.5rem/1 "Outfit", var(--font-head); letter-spacing: .08em; text-transform: uppercase; text-align: center; }
.ws-plate input::placeholder { color: rgba(0, 0, 0, .45); }
.ws-plate input:focus { outline: none; box-shadow: 0 0 0 4px rgba(0, 20, 137, .25); }
.ws-section-title { margin: 24px 0 10px; font-size: 1.05rem; }
.ws-grow { flex: 1; min-width: 0; margin: 0; }
.ws-grow input { min-height: 48px; }
.ws-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ws-list a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 14px 16px; min-height: 64px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); }
.ws-list a:hover { border-color: var(--sky); }
.ws-list strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-list small { grid-column: 2 / -1; color: var(--muted); }
.ws-list .icon { color: var(--muted); }
.ws-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(130px, 40%), 1fr)); gap: 10px; }
.ws-tiles form { margin: 0; }
.ws-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 84px; padding: 12px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: 700 1rem var(--font-head); cursor: pointer; text-decoration: none; text-align: center; }
.ws-tile:hover { border-color: var(--blue); background: var(--sky-50); }
.ws-tile .icon { width: 26px; height: 26px; color: var(--blue); }
.ws-tile small { font: 400 .78rem var(--font); color: var(--muted); }
.ws-tile--primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.ws-tile--primary .icon, .ws-tile--primary small { color: #c9d1f3; }
.ws-tile--primary:hover { background: var(--blue-600); }
.ws-vehicle { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.ws-vehicle__name { font: 700 1.15rem var(--font-head); }
.ws-candidate { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; margin-bottom: 8px;
  border: 1px solid #bfe0f4; border-radius: 12px; background: var(--sky-50); }
.ws-candidate form { margin: 0; }
.ws-pending { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 12px 14px; margin-bottom: 14px; border-radius: 10px;
  background: #fff3dc; color: #6f4b00; font-weight: 700; }
.ws-pending--err { background: #fdeced; color: var(--danger); }
.ws-pending[hidden], .ws-photos [hidden] { display: none; }
.ws-pending a { color: inherit; }
.ws-photos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.ws-photo { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--bg); border: 1px solid var(--line); }
.ws-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ws-photo__open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.ws-photo__noimg { display: grid; place-items: center; height: 100%; font: 700 .8rem var(--font-head); color: var(--muted); }
.ws-state { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .95); font: 700 .72rem/1.4 var(--font-head); color: var(--ink); pointer-events: none; }
.ws-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.ws-state--wacht { color: #6b7184; }
.ws-state--bezig { color: #1a2fa3; }
.ws-state--opgeslagen { color: #0b6b4a; }
.ws-state--mislukt { background: var(--danger); color: #fff; pointer-events: auto; cursor: pointer; border: 0; }
.ws-photo__meta { position: absolute; top: 6px; left: 6px; padding: 1px 7px; border-radius: 999px; background: rgba(0, 10, 74, .7); color: #fff; font-size: .7rem; }
.ws-dock { position: sticky; bottom: 0; z-index: 30; display: flex; gap: 10px; margin: 18px calc(-1 * clamp(16px, 3vw, 40px)) -60px; padding: 12px clamp(16px, 3vw, 40px) calc(14px + env(safe-area-inset-bottom));
  background: rgba(244, 246, 251, .96); border-top: 1px solid var(--line); backdrop-filter: blur(6px); }
.ws-shutter { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; border-radius: 16px;
  background: var(--blue); color: #fff; font: 700 1.15rem var(--font-head); cursor: pointer; box-shadow: 0 8px 24px rgba(0, 20, 137, .25); }
.ws-shutter .icon { width: 28px; height: 28px; }
.ws-shutter--side { flex: none; padding: 0 16px; background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; font-size: .95rem; }
.ws-shutter--side .icon { width: 22px; height: 22px; color: var(--blue); }
.ws-file { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ws-shutter.is-disabled { opacity: .5; pointer-events: none; }
.ws-group { margin-bottom: 22px; }
.ws-group__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin-bottom: 10px; }
.ws-group__head h3 { font-size: 1rem; }
.ws-lightbox { width: min(1000px, calc(100vw - 16px)); }
.ws-lightbox__body { padding: 12px; background: #0b0f24; }
.ws-lightbox__body img { display: block; max-width: 100%; max-height: 72vh; margin: 0 auto; }
.ws-lightbox__bar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; padding: 12px 16px; }
.ws-lightbox__bar form { margin: 0; }
.ws-lightbox__nav { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-lightbox [hidden] { display: none; }
@media (max-width: 900px) {
  .ws-hero { padding: 16px; }
  .ws-search { flex-direction: column; }
  /* Camera altijd onderaan in de duimzone, ook bij een korte pagina */
  .ws-dock { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; }
  [data-ws-session] { padding-bottom: 100px; }
}

/* ---------- Werkplaatssysteem: kentekenpagina ---------- */
.ws-filter { min-width: min(320px, 100%); }
.ws-inline { margin: 0; }
.ws-inline select { padding: 6px 8px; border: 1px solid #d5dbe8; border-radius: 8px; font: inherit; background: #fff; max-width: 190px; }
.ws-platelink { text-decoration: none; }
.ws-table td { vertical-align: middle; }
.ws-jump { position: sticky; top: 0; z-index: 25; display: flex; gap: 6px; overflow-x: auto; margin: 0 0 16px; padding: 8px 0; background: rgba(244, 246, 251, .95); backdrop-filter: blur(6px); }
.ws-jump a { flex: none; padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font: 700 .82rem var(--font-head); text-decoration: none; color: var(--ink); }
.ws-jump a:hover { border-color: var(--blue); }
.ws-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
@media (max-width: 1100px) { .ws-cols { grid-template-columns: minmax(0, 1fr); } }
.ws-cols [id] { scroll-margin-top: 64px; }
.ws-work { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.ws-work li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.ws-work li form { margin: 0; }
.ws-work__body { flex: 1; min-width: 0; display: grid; }
.ws-work li.is-done strong { text-decoration: line-through; color: var(--muted); }
.ws-check { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; border: 2px solid #c3cbe0; background: #fff; color: #fff; cursor: pointer; padding: 0; }
.ws-check[aria-pressed="true"] { background: var(--ok); border-color: var(--ok); }
.ws-check .icon { width: 22px; height: 22px; }
.ws-addline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ws-addline .fld { margin: 0; }
.ws-phases { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ws-phase { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); border-left-width: 5px; }
.ws-phase > div { display: grid; }
.ws-phase--open { border-left-color: #c3c8d6; }
.ws-phase--bezig { border-left-color: #0c6a9c; background: #f3f9fd; }
.ws-phase--klaar { border-left-color: var(--ok); background: #f2faf6; }
.ws-phase--nvt { border-left-color: #e2e6ef; opacity: .75; }
.ws-seg { display: inline-flex; margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.ws-seg button { min-height: 40px; padding: 6px 12px; border: 0; border-left: 1px solid var(--line); background: #fff; font: 600 .84rem var(--font-head); color: var(--muted); cursor: pointer; }
.ws-seg button:first-child { border-left: 0; }
.ws-seg button.is-current { background: var(--blue); color: #fff; }
.ws-docs { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.ws-docs li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.ws-docs li > div { flex: 1; min-width: 160px; display: grid; }
.ws-docs li form { margin: 0; }
.ws-docs .icon { color: var(--blue); }
.ws-docs-restore { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 0; font-size: .88rem; }
.ws-restore { position: absolute; left: 6px; right: 6px; bottom: 6px; margin: 0; }
.ws-rdw { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 24px; }
.ws-rdw h3 { font-size: .9rem; margin: 10px 0 4px; color: var(--blue); }
.ws-rdw .details--compact div { grid-template-columns: 150px 1fr; }
.ws-rdw-mini { margin-top: 4px; }
@media (max-width: 760px) { .ws-seg { width: 100%; } .ws-seg button { flex: 1; padding: 6px 4px; } .ws-rdw .details--compact div { grid-template-columns: 1fr 1fr; } }
.ws-discard { color: inherit; font-weight: 700; text-decoration: underline; font-size: inherit; }
.ws-discard:hover { color: inherit; }

/* ---------- Werkvloer: Mijn werk, inklokken, werkscherm ---------- */
.ws-clockbar { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: var(--blue); color: #fff; text-decoration: none; font-size: .92rem; }
.ws-clockbar .icon { color: var(--sky); }
.ws-clockbar > span:nth-child(2) { flex: 1; min-width: 0; }
.ws-clockbar__go { font-weight: 700; text-decoration: underline; }
.ws-clockbar--warn { background: #8a5a00; }
.ws-work-list li.is-next a { border: 2px solid var(--blue); }
.ws-choose { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.ws-choose legend { font: 700 .9rem var(--font-head); margin-bottom: 8px; }
.ws-choice { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; border: 1px solid var(--line); border-left-width: 5px; border-radius: 10px; background: #fff; cursor: pointer; }
.ws-choice input { width: 22px; height: 22px; accent-color: var(--blue); }
.ws-choice span { display: grid; }
.ws-choice small { color: var(--muted); }
.ws-choice:has(input:checked) { border-color: var(--blue); background: var(--sky-50); }
.ws-seg--moment { display: flex; width: 100%; margin-bottom: 14px; }
.ws-seg--moment button { flex: 1; min-height: 48px; font-size: .95rem; }
.ws-deps summary { cursor: pointer; font-size: .88rem; }
.ws-deps form { display: grid; gap: 4px; margin-top: 8px; }
.ws-deps .check { display: flex; gap: 6px; align-items: center; font-size: .88rem; }
.ws-work-list strong { white-space: normal; }

/* ---------- Werkvloer: resultaten van de checklist in het dossier (de werkvloer zelf staat in kloksysteem.css) ---------- */
.icon--flip { transform: rotate(180deg); }
.ws-subtitle { font-size: .9rem; margin: 18px 0 8px; }
.ws-checklist-result { margin-bottom: 8px; font-size: .88rem; }
.ws-checklist-result summary { cursor: pointer; }
.ws-checklist-result ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.wv-res span { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #fff; font-size: .75rem; font-weight: 700; }
.wv-res--ja span { background: #23862b; }
.wv-res--nee span { background: var(--danger); }
.wv-res--nvt span { background: #8a8f9e; }

/* Gebruikers: kaart per gebruiker met toegang per onderdeel */
.ws-legend summary { cursor: pointer; font: 700 .9rem var(--font-head); color: var(--blue); }
.ws-legend__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 28px; margin-top: 12px; }
.ws-legend dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: .88rem; }
.ws-legend dt { font-weight: 700; }
.ws-legend dd { margin: 0; color: var(--muted); }
.ws-users { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
.ws-user { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 14px; scroll-margin-top: 16px; }
.ws-user:target { border-color: var(--sky); box-shadow: 0 0 0 3px rgba(98, 181, 229, .25); }
.ws-user--terminal { background: #fbfcff; }
.ws-user__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ws-user__avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--sky-50); color: var(--blue); font: 700 1rem var(--font-head); flex: none; }
.ws-user__id { flex: 1 1 220px; min-width: 0; }
.ws-user__id strong { font-family: var(--font-head); }
.ws-user__id small { display: block; color: var(--muted); font-size: .84rem; overflow-wrap: anywhere; }
.ws-user__role .fld { margin: 0; }
.ws-user__role select { min-width: 190px; }
.ws-user__body { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); gap: 14px 24px; }
.ws-user__label { font: 700 .72rem var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.ws-user__body p { margin: 6px 0 0; }
.ws-user__foot { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 10px; }
.ws-user__foot form { margin: 0; }
.ws-switches { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-switch { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 7px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font: 600 .85rem/1.2 var(--font-head); cursor: pointer; user-select: none; transition: background .15s, border-color .15s, color .15s; }
.ws-switch:hover { border-color: #c8cfdf; }
.ws-switch input { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 30px; height: 18px; margin: 0; border-radius: 999px; background: #cfd5e4; cursor: pointer; transition: background .15s; }
.ws-switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s; }
.ws-switch input:checked { background: var(--blue); }
.ws-switch input:checked::after { transform: translateX(12px); }
.ws-switch input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.ws-switch:has(input:checked), .ws-switch.is-static { border-color: #b9c3ea; background: var(--sky-50); color: var(--blue); }
.ws-switch.is-static { cursor: default; padding: 6px 12px; }
.ws-adduser__form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; align-items: start; }
@media (max-width: 760px) {
  .ws-legend__cols, .ws-user__body, .ws-adduser__form { grid-template-columns: minmax(0, 1fr); }
  .ws-user__role { width: 100%; }
  .ws-user__role select { width: 100%; }
}

/* Dossier: urenverantwoording (minuten en AE per afdeling, uitklapbaar naar de losse registraties) */
.ws-hrs { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 8px; }
.ws-hrs__row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.5fr) 90px 100px; gap: 4px 12px; align-items: center; padding: 11px 14px; }
.ws-hrs .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ws-hrs__head { padding-block: 8px; background: #fafbfe; font: 700 .72rem var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ws-hrs__dep { border-top: 1px solid var(--line); }
.ws-hrs__dep > summary { cursor: pointer; list-style: none; }
.ws-hrs__dep > summary::-webkit-details-marker { display: none; }
.ws-hrs__dep > summary:hover { background: #fafbfe; }
.ws-hrs__dep > summary:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.ws-hrs__name { display: flex; align-items: center; gap: 8px; font-weight: 700; min-width: 0; }
.ws-hrs__name .icon { width: 16px; height: 16px; color: var(--muted); transition: transform .15s; }
.ws-hrs__dep[open] .ws-hrs__name .icon { transform: rotate(90deg); }
.ws-hrs__live { padding: 1px 8px; border-radius: 999px; background: #dff3e6; color: #1d7a3e; font: 700 .7rem var(--font-head); font-style: normal; }
.ws-hrs__count, .ws-hrs__when { color: var(--muted); font-size: .88rem; }
.ws-hrs__ae { font-weight: 700; }
.ws-hrs__list { list-style: none; margin: 0; padding: 0 0 6px; background: #fafbfe; }
.ws-hrs__list .ws-hrs__row { padding-block: 7px; font-size: .9rem; }
.ws-hrs__list .ws-hrs__who { padding-left: 24px; }
.ws-hrs__list .ws-hrs__ae { font-weight: 400; }
.ws-hrs__total { border-top: 2px solid var(--ink); background: #fff; }
.ws-hrs__total .ws-hrs__ae { color: var(--blue); font-size: 1.05rem; }
@media (max-width: 600px) {
  /* Telefoon: twee regels per rij; naam en AE boven, aantal en minuten eronder. */
  .ws-hrs__head { display: none; }
  .ws-hrs__row { grid-template-columns: minmax(0, 1fr) auto; padding: 10px 12px; }
  .ws-hrs__name, .ws-hrs__who { grid-row: 1; grid-column: 1; }
  .ws-hrs__ae { grid-row: 1; grid-column: 2; }
  .ws-hrs__count, .ws-hrs__when { grid-row: 2; grid-column: 1; font-size: .8rem; }
  .ws-hrs__min { grid-row: 2; grid-column: 2; color: var(--muted); font-size: .8rem; }
  .ws-hrs__list .ws-hrs__who { padding-left: 24px; }
  .ws-hrs__list .ws-hrs__when { padding-left: 24px; }
}

/* Instellingen: locatie per afdeling */
.ws-locmap { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px 24px; }
.ws-locmap .fld--inline { grid-template-columns: 120px minmax(0, 1fr); }

/* Voertuigen: sorteren op datum in/uit */
.ws-sortlink { color: inherit; text-decoration: none; white-space: nowrap; }
.ws-sortlink:hover, .ws-sortlink.is-on { color: var(--blue); }
.ws-sortlink span { font-size: .8em; }
.ws-sort select { padding: 9px 10px; border: 1px solid #d5dbe8; border-radius: 9px; font: inherit; font-size: .9rem; background: #fff; }
.ws-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: min(520px, 100%); }
.ws-filter > .fld:first-of-type { flex: 1 1 220px; }

/* Uren: verwerkte uren per medewerker en uren toevoegen/bewerken */
.hrs-filter__form { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)) auto; gap: 12px; align-items: end; }
.hrs-filter__form .fld { margin: 0; }
.hrs-quick { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: .88rem; }
.hrs-list .num { text-align: right; font-variant-numeric: tabular-nums; }
.hrs-list tr.is-auto td { background: #fff8e8; }
.hrs-list small.muted { display: block; font-size: .78rem; }
.hrs-times3 { grid-template-columns: 1.3fr 1fr 1fr; }
.hrs-duration { margin: 0; min-height: 1.4em; color: var(--blue); font-weight: 700; }
.hrs-formbar { display: flex; gap: 10px; flex-wrap: wrap; }
.hrs-delete { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
[data-only-werk][hidden] { display: none; }
@media (max-width: 760px) {
  .hrs-filter__form { grid-template-columns: 1fr 1fr; }
  .hrs-filter__form .fld:first-child, .hrs-filter__form .btn { grid-column: 1 / -1; }
  .hrs-times3 { grid-template-columns: 1fr 1fr; }
  .hrs-times3 .fld:first-child { grid-column: 1 / -1; }
  .hrs-list td.actions { text-align: left; }
}
.hrs-sum small { display: block; font-size: .78rem; color: var(--muted); }
.hrs-filter__form input, .hrs-times3 input { min-width: 0; width: 100%; }

/* Personeel: lijst en medewerkerkaart */
.stf-filter { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: end; }
.stf-filter .fld { margin: 0; flex: 1 1 240px; }
.stf-filter .check { margin: 0 0 10px; }
.stf-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stf-table tr.is-out td { color: var(--muted); }
.stf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.stf-grid .stf-wide { grid-column: 1 / -1; }
.stf-grid input { min-width: 0; width: 100%; }
.stf-checks { display: grid; gap: 2px; margin-top: 4px; }
.stf-checks .check { margin-bottom: 8px; }
.stf-hours { margin-top: 20px; }
.stf-hours__table { border-collapse: collapse; }
.stf-hours__table th { text-align: left; font-size: .8rem; color: var(--muted); font-weight: 600; padding: 0 12px 6px 0; }
.stf-hours__table td { padding: 4px 12px 4px 0; }
.stf-hours__table td:first-child { min-width: 110px; font-weight: 600; }
.stf-hours__table input { width: 130px; }
.stf-deps { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.stf-deps .check { margin-bottom: 6px; }
.stf-login { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; max-width: 820px; }
.stf-login .fld { margin: 0; }
.stf-loginbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.stf-loginbar form { margin: 0; }
@media (max-width: 760px) {
  .stf-grid, .stf-login { grid-template-columns: minmax(0, 1fr); }
}

/* Beheer: werkzaamheden, urensoorten, feestdagen */
.bh-head, .bh-row { display: grid; grid-template-columns: minmax(0, 2.2fr) 90px 120px 80px 80px auto; gap: 8px 12px; align-items: center; }
.bh-head { padding: 0 10px 6px; font: 700 .72rem var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bh-rows { list-style: none; margin: 0 0 8px; padding: 0; border: 1px solid var(--line); border-radius: 10px; }
.bh-rows li { padding: 6px 10px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.bh-rows li:first-child { border-top: 0; }
.bh-rows li:target { background: var(--sky-50); }
.bh-rows li.is-off input:not([type="checkbox"]) { color: var(--muted); text-decoration: line-through; }
.bh-row { margin: 0; }
.bh-row input:not([type="checkbox"]) { width: 100%; min-width: 0; padding: 7px 9px; border: 1px solid #d5dbe8; border-radius: 8px; font: inherit; background: #fff; }
.bh-row .check { margin: 0; }
.bh-label { display: none; }
.bh-row--new { padding: 6px 10px; }
.bh-row--new .bh-label { display: block; font: 700 .72rem var(--font-head); color: var(--muted); margin-bottom: 2px; }
.bh-types { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.bh-types li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.bh-types .fld, .bh-types .check { margin: 0; }
.bh-types__new { padding-top: 8px; border-top: 1px dashed var(--line); }
.bh-year { grid-template-columns: auto 140px; align-items: center; gap: 10px; }
.bh-holidays { list-style: none; margin: 0 0 8px; padding: 0; border: 1px solid var(--line); border-radius: 10px; }
.bh-holidays li { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 12px; border-top: 1px solid var(--line); }
.bh-holidays li:first-child { border-top: 0; }
.bh-holidays form { margin: 0; }
.bh-holiday-new { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.bh-holiday-new .fld { margin: 0; }
.hrs-holiday { display: block; font-size: .68rem; color: #b42318; font-weight: 700; }
.hrs-table th.is-holiday { background: #fdecec; }
.ws-hrs__code { color: var(--muted); font-weight: 400; font-size: .8rem; }
@media (max-width: 860px) {
  .bh-head { display: none; }
  .bh-row { grid-template-columns: 1fr 1fr; }
  .bh-row > label:first-of-type { grid-column: 1 / -1; }
  .bh-label { display: block; font: 700 .72rem var(--font-head); color: var(--muted); margin-bottom: 2px; }
  .bh-holidays li, .bh-holiday-new { grid-template-columns: 1fr; }
  .bh-holidays li { grid-template-columns: 1fr auto; }
  .bh-holidays li span { grid-column: 1; }
}

/* Afwezigheid */
.stf-tabs { margin-bottom: 16px; }
.abs-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.abs-step { display: grid; gap: 2px; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--k, var(--blue)); color: var(--ink); text-decoration: none; }
.abs-step--nu { --k: var(--danger); } .abs-step--aankomend { --k: var(--sky); } .abs-step--medewerkers { --k: var(--blue); }
.abs-step strong { font: 700 1.6rem var(--font-head); }
.abs-step span { font-weight: 700; }
.abs-step small { color: var(--muted); font-size: .8rem; }
.abs-step.is-on { box-shadow: 0 0 0 3px rgba(0, 20, 137, .12); border-color: var(--k); }
.abs-list { list-style: none; margin: 0; padding: 0; }
.abs-list li + li { border-top: 1px solid var(--line); }
.abs-list a { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; gap: 4px 14px; align-items: center; padding: 12px 16px; color: var(--ink); text-decoration: none; }
.abs-list a:hover { background: #fafbfe; }
.abs-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--sky-50); color: var(--blue); font: 700 .85rem var(--font-head); }
.abs-who small { display: block; color: var(--muted); font-size: .84rem; }
.abs-days { color: var(--muted); font-size: .84rem; white-space: nowrap; }
.abs-kind { display: inline-block; padding: 2px 9px; border-radius: 999px; font: 700 .75rem var(--font-head); background: #eef1f7; color: #3b4466; white-space: nowrap; }
.abs-kind--verlof, .abs-kind--bijzonder-verlof, .abs-kind--compensatie, .abs-kind--adv { background: #e7f6ef; color: #0b6b4a; }
.abs-kind--ziek { background: #fdecec; color: #b42318; }
.abs-kind--huisarts, .abs-kind--tandarts { background: #fff3dc; color: #8a5a00; }
.abs-kind--cursus { background: #efe8ff; color: #5b37b1; }
.abs-people .num { text-align: right; font-variant-numeric: tabular-nums; }
.abs-filter { display: flex; gap: 8px; margin: 0; }
.abs-filter .fld { margin: 0; }
.abs-totals { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-bottom: 16px; }
.abs-totals div { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.abs-totals strong { font: 700 1.3rem var(--font-head); }
.abs-totals strong small, .abs-totals > div > small { font: 400 .8rem var(--font); color: var(--muted); }
.abs-series__head, .abs-series li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) 150px 150px minmax(0, 1.4fr); gap: 8px; align-items: center; }
.abs-series__head { padding: 0 0 6px; font: 700 .72rem var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.abs-series { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.abs-series select, .abs-series input { width: 100%; min-width: 0; padding: 8px 9px; border: 1px solid #d5dbe8; border-radius: 8px; font: inherit; background: #fff; }
.abs-series__label { display: none; }
.abs-dash { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; gap: 12px 24px; align-items: start; }
.abs-dash h2 { display: flex; align-items: center; gap: 8px; font-size: .95rem; margin-bottom: 8px; }
.abs-dash ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.abs-dash li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: .9rem; }
.abs-dash--3 { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
.abs-dash__more { align-self: center; display: inline-flex; align-items: center; gap: 4px; font-weight: 700; white-space: nowrap; }
[data-absence-times][hidden] { display: none; }
@media (max-width: 760px) {
  .abs-steps { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .abs-step { padding: 10px; } .abs-step strong { font-size: 1.2rem; } .abs-step small { display: none; }
  .abs-list a { grid-template-columns: 38px minmax(0, 1fr) auto; }
  .abs-days { grid-column: 2 / -1; }
  .abs-series__head { display: none; }
  .abs-series li { grid-template-columns: 1fr 1fr; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .abs-series li > label:first-child, .abs-series li > label:last-child { grid-column: 1 / -1; }
  .abs-series__label { display: block; font: 700 .72rem var(--font-head); color: var(--muted); margin-bottom: 2px; }
  .abs-dash, .abs-dash--3 { grid-template-columns: 1fr; }
}

/* Nieuwe schades (meldingen van de website) */
.tabs__count--hot { background: var(--danger); color: #fff; }
.tabs a.is-active .tabs__count--hot { background: #fff; color: var(--danger); }
.ws-group__head .tabs + .tabs { margin-left: auto; }
.intake-decide__row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.intake-decide__row form { margin: 0; }
.intake-decide__reject { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; flex: 1; min-width: 260px; }
.intake-decide__reject .fld { flex: 1; min-width: 200px; }
.intake-sign-img { display: block; width: 100%; max-width: 280px; margin-top: 6px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.ws-docs li details { flex-basis: 100%; }

/* Planning: aangenomen schademeldingen per dag */
.plan-weeknav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.plan-week { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 14px; }
.plan-day { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; min-height: 120px; }
.plan-day--today { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(0, 20, 137, .12); }
.plan-day--empty { background: var(--bg); }
.plan-day__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; text-transform: capitalize; }
.plan-day__count { font: 700 1.25rem/1 var(--font-head, inherit); color: var(--blue); }
.plan-day__count small { font-size: .72rem; font-weight: 600; color: var(--muted); }
.plan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.plan-card { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: grid; gap: 6px; background: #fff; }
.plan-card--binnen { background: var(--bg); }
.plan-card__main { display: flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; flex-wrap: wrap; }
.plan-card__car { font-weight: 600; font-size: .9rem; }
.plan-card__meta { display: flex; flex-wrap: wrap; gap: 4px; }
.plan-card__actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.plan-card__actions form { margin: 0; }
.plan-card__move input { font: inherit; font-size: .8rem; padding: 4px 6px; border: 1px solid var(--line); border-radius: 8px; }
.plan-late { border-color: #f2d9a2; }

/* RDW: belangrijkste gegevens bovenaan, de rest uitklapbaar */
.ws-rdw-key { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px 18px; margin: 0 0 10px; }
.ws-rdw-key dt { font-size: .78rem; color: var(--muted); }
.ws-rdw-key dd { margin: 2px 0 0; font-weight: 600; }
.ws-rdw-key__apk--binnenkort dd { color: #8a5a00; }
.ws-rdw-key__apk--verlopen dd { color: var(--danger); }
.ws-rdw-key__apk .icon { width: 16px; height: 16px; vertical-align: -3px; }

/* Alleen voor kantoor: de schademelding bij een dossier */
.ws-office { border-left: 4px solid var(--blue); }
.ws-office__grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

/* ---------- Leenauto's: beschikbaarheidsbalk naast de tabbladen (groen → geel bij ≤ 50% → rood bij ≤ 25%) ---------- */
.loan-bar { --c: #22a34c; display: flex; flex-wrap: wrap; align-items: center; align-self: center; gap: 6px 10px; flex: 1 1 260px; max-width: 470px; min-height: 42px; padding: 6px 14px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .85rem; }
.loan-bar:hover { border-color: var(--c); }
.loan-bar--warn { --c: #e8a317; }
.loan-bar--low { --c: #d0232b; }
.loan-bar--empty { --c: #8a93ad; border-style: dashed; }
.loan-bar--empty .loan-bar__count { white-space: normal; }
.loan-bar__label { display: inline-flex; align-items: center; gap: 6px; font: 700 .85rem var(--font-head); white-space: nowrap; }
.loan-bar__label .icon { width: 18px; height: 18px; color: var(--c); }
.loan-bar__track { position: relative; flex: 1 1 120px; height: 12px; border-radius: 999px; background: #e9edf5; overflow: hidden; }
.loan-bar__fill { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--c); transition: width .4s ease; }
.loan-bar__count { white-space: nowrap; color: var(--muted); }
.loan-bar__count b { color: var(--c); font: 700 1rem var(--font-head); }
.loan-bar__count small { font-size: .78rem; }
.pill--loan { display: inline-flex; align-items: center; gap: 4px; background: #e9f7ef; color: #0f7a35; }
.pill--loan .icon { width: 13px; height: 13px; }
.pill--loan-ask { background: #fff3dc; color: #8a5a00; }

/* Kleur op het kaartje (wie betaalt): groen = verzekering, rood = BTW / eigen risico, oranje = zakelijke rijder */
.pay-dot { display: inline-block; width: 13px; height: 13px; flex: none; border-radius: 50%; vertical-align: middle; margin-right: 6px;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(13, 19, 48, .15); }
.pay-dot--groen { background: #22a34c; }
.pay-dot--rood { background: #d0232b; }
.pay-dot--oranje { background: #f08a15; }
.pay-pick { display: inline-flex; align-items: center; gap: 4px; margin: 6px 0 0; }
.pay-pick__label { font-size: .78rem; color: var(--muted); margin-right: 4px; }
.pay-pick button { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.pay-pick button .pay-dot { margin: 0; width: 14px; height: 14px; box-shadow: none; opacity: .45; transition: opacity .15s, transform .15s; }
.pay-pick button:hover .pay-dot { opacity: 1; transform: scale(1.15); }
.pay-pick button[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.pay-pick button[aria-pressed="true"] .pay-dot { opacity: 1; }
.pay-pick__none { font-size: .9rem; color: var(--muted); }
.pay-pick--big { gap: 8px; flex-wrap: wrap; }
.pay-pick--big button { width: auto; height: 34px; padding: 0 12px 0 8px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 600 .82rem var(--font-head); color: var(--ink); grid-auto-flow: column; gap: 6px; }
.pay-pick--big button .pay-dot { opacity: 1; }
.pay-pick--big button[aria-pressed="true"] { box-shadow: none; border-color: var(--ink); background: var(--bg); }
.pay-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; margin: 0 0 8px; font-size: .8rem; color: var(--muted); }
.pay-legend span { display: inline-flex; align-items: center; }
.plan-card__loan { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0 0; }
.plan-card__loan select { flex: 1 1 140px; min-width: 0; padding: 5px 8px; border: 1px solid #d5dbe8; border-radius: 8px; font: inherit; font-size: .82rem; background: #fff; }
.bh-head.bh-loan, .bh-row.bh-loan { grid-template-columns: 130px minmax(0, 1fr) minmax(0, 1fr) minmax(150px, 1.2fr) 100px auto; }
.bh-loan__now a { font-weight: 600; }
@media (max-width: 760px) {
  .loan-bar { max-width: none; flex-basis: 100%; order: 3; padding: 10px 14px; }
  .loan-bar__track { order: 3; flex-basis: 100%; height: 14px; }
}
@media (max-width: 860px) { .bh-row.bh-loan { grid-template-columns: 1fr 1fr; } .bh-row.bh-loan .bh-loan__now { grid-column: 1 / -1; } }

/* Vrije plekken per dag volgens de reparatiekalender van de website */
.plan-cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: -2px 0 8px; font-size: .78rem; color: var(--muted); }
.plan-cap b { color: var(--text, #0b1b4d); font-size: .9rem; }
.plan-cap__item--vol b { color: var(--danger); }
.plan-cap--dicht { font-style: italic; }
.plan-cap__note { font-weight: 600; }

/* Afspraak verzetten of annuleren (geplande auto), met de e-mail aan de klant */
.appt-actions { display: grid; gap: 8px; margin-top: 14px; }
.appt { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.appt > summary { display: flex; align-items: center; gap: 8px; padding: 10px 14px; cursor: pointer; font-weight: 600; list-style: none; }
.appt > summary::-webkit-details-marker { display: none; }
.appt > summary .icon { width: 18px; height: 18px; color: var(--blue); }
.appt--cancel > summary .icon { color: var(--danger); }
.appt[open] > summary { border-bottom: 1px solid var(--line); }
.appt__form { display: grid; gap: 10px; padding: 12px 14px 14px; }
.appt__form textarea { width: 100%; font: inherit; }
.appt__form .btn { justify-self: start; }
.appt-cancelled { border-left: 4px solid var(--danger); }

/* Rapport: foto's kiezen voor PDF of ZIP */
.rp { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.rp__side { position: sticky; top: 14px; display: grid; gap: 0; }
@media (max-width: 900px) { .rp { grid-template-columns: 1fr; } .rp__side { position: static; } }
.rp__all { display: inline-flex; gap: 6px; }
.rp__photo label { display: block; height: 100%; cursor: pointer; }
.rp__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .15s, filter .15s; }
.rp__photo input { position: absolute; top: 6px; left: 6px; width: 20px; height: 20px; margin: 0; accent-color: var(--blue); z-index: 1; }
.rp__photo:has(input:not(:checked)) img, .rp__photo:has(input:not(:checked)) .ws-photo__noimg { opacity: .35; filter: grayscale(1); }
.rp__photo:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue); }
.rp__photo:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.rp__meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 4px; font-size: .72rem; color: #fff; background: linear-gradient(transparent, rgba(5, 12, 58, .75)); }
.rp__photo .ws-photo__noimg small { display: block; font-weight: 400; }
.rp fieldset { border: 0; padding: 0; margin: 0 0 14px; }
.rp legend { font: 700 .85rem var(--font-head); color: var(--ink); margin-bottom: 8px; }
.rp fieldset .check { margin-bottom: 6px; }
.rp__buttons { display: flex; flex-wrap: wrap; gap: 8px; }
