/* Huisstijl van het platform (admin + partner): donkerblauw + geel accent. */
:root {
  --ink: #0E1B2E;
  --ink-2: #1C2D45;
  --muted: #4A5A70;
  --soft: #6B7A8F;
  --line: #E3E8EF;
  --field: #D5DDE7;
  --ground: #F5F7FA;
  --card: #FFFFFF;
  --accent: #F5B82E;
  --danger: #B42318;
  --ok: #0F7B45;
  --radius: 12px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 15px;
}
a { color: var(--ink); }
button, input, select { font: inherit; }

.topbar { background: var(--ink); color: #fff; }
.topbar__inner { max-width: 1200px; margin: 0 auto; padding: 16px 24px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.brand { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.brand__mark { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); }
.brand small { color: #C9D3E0; font-weight: 500; }
.topbar__user { display: flex; gap: 14px; align-items: center; color: #C9D3E0; }

.page { max-width: 1200px; margin: 0 auto; padding: 32px 24px 64px; }
.page__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
h1 { margin: 0; font-size: 28px; letter-spacing: -0.02em; }
.lead { margin: 6px 0 0; color: var(--muted); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
td.muted { color: var(--soft); }

.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: #EEF2F6; color: var(--ink); }
.pill--on { background: #E3F4EA; color: var(--ok); }
.pill--off { background: #F2F4F7; color: var(--soft); }

.btn { height: 44px; padding: 0 18px; border-radius: 10px; border: 0; font-weight: 700; cursor: pointer; }
.btn--primary { background: var(--accent); color: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--field); }
.btn--small { height: 36px; padding: 0 12px; font-size: 14px; }
.btn--link { background: none; border: 0; color: #C9D3E0; text-decoration: underline; cursor: pointer; padding: 0; }
.btn:disabled { opacity: 0.6; cursor: default; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field select { height: 46px; border: 1.5px solid var(--field); border-radius: var(--radius); padding: 0 14px; font-size: 16px; color: var(--ink); background: #fff; }
.field input:focus, .field select:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.check input { width: 20px; height: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.alert { padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.alert--error { background: #FDECEC; color: var(--danger); }
.hidden { display: none !important; }

dialog { border: 0; border-radius: 18px; padding: 0; width: min(560px, calc(100vw - 32px)); box-shadow: 0 24px 60px rgba(14, 27, 46, 0.3); }
dialog::backdrop { background: rgba(14, 27, 46, 0.5); }
.dialog__body { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.dialog__body h2 { margin: 0; font-size: 21px; }
.dialog__actions { display: flex; gap: 10px; justify-content: flex-end; }

/* Inlogscherm */
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--ink); }
.login__card { width: min(420px, 100%); background: #fff; border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.login__card h1 { font-size: 24px; }
.row-actions { display: flex; gap: 8px; }

/* --- Fase 2: extra onderdelen --- */
.pill--wait { background: #FFF4D6; color: #8A5A00; }
.pill--bad { background: #FDECEC; color: var(--danger); }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.alert--info { background: #EEF2F6; color: var(--ink); }
.alert--warn { background: #FFF4D6; color: #6B4600; }
.alert--ok { background: #E3F4EA; color: var(--ok); }

.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a { color: #C9D3E0; text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { color: #fff; background: var(--ink-2); }
.nav a[aria-current="page"] { color: #fff; background: var(--ink-2); }

.stack { display: flex; flex-direction: column; gap: 20px; }
.section { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.section h2 { margin: 0; font-size: 19px; letter-spacing: -0.01em; }
.section__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.muted-text { color: var(--muted); margin: 0; }
.small { font-size: 13px; }

.layout-2 { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.layout-2 > .main { flex: 999 1 560px; min-width: 0; }
.layout-2 > .side { flex: 1 1 300px; min-width: 0; }

.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.checks label { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--field); border-radius: var(--radius); cursor: pointer; font-weight: 500; }
.checks input { width: 18px; height: 18px; flex-shrink: 0; }
.checks label:has(input:checked) { border-color: var(--ink); background: #F5F7FA; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
legend { font-size: 13px; font-weight: 600; color: var(--muted); padding: 0; margin-bottom: 4px; }
.field textarea { border: 1.5px solid var(--field); border-radius: var(--radius); padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink); resize: vertical; min-height: 90px; }
.field .hint { font-size: 13px; color: var(--soft); }

.kv { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: 8px 16px; margin: 0; }
.kv dt { color: var(--muted); font-size: 14px; }
.kv dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.list > li { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.list > li:last-child { border-bottom: 0; }
.list__main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.list__title { font-weight: 600; }
.list__actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.vehicle { border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.vehicle__head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.photo { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #DCE3EC; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo__bar { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.photo__bar .btn { height: 30px; padding: 0 10px; font-size: 13px; background: rgba(255, 255, 255, 0.95); }
.photo--add { display: flex; align-items: center; justify-content: center; border: 1.5px dashed var(--field); background: #fff; color: var(--muted); font-weight: 600; cursor: pointer; text-align: center; padding: 8px; }
.photo--add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.status-banner { border-radius: 16px; padding: 20px 24px; display: flex; flex-direction: column; gap: 8px; }
.status-banner h2 { margin: 0; font-size: 19px; }
.status-banner--pending { background: #FFF4D6; color: #5A3B00; }
.status-banner--approved { background: #E3F4EA; color: #0B5A33; }
.status-banner--rejected, .status-banner--blocked { background: #FDECEC; color: #8A1C12; }
.status-banner ul { margin: 0; padding-left: 18px; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs a { text-decoration: none; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--field); font-weight: 600; font-size: 14px; background: #fff; }
.tabs a[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.btn--danger { background: #fff; color: var(--danger); border: 1.5px solid #F3C2BE; }
.btn--ok { background: var(--ok); color: #fff; }
.row-link { color: var(--ink); font-weight: 600; text-decoration: none; }
.row-link:hover { text-decoration: underline; }

.toast { position: fixed; left: 50%; top: 20px; transform: translate(-50%, -20px); background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 12px; font-weight: 700; font-size: 16px; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; z-index: 50; max-width: calc(100vw - 32px); }
.toast--show { opacity: 1; transform: translate(-50%, 0); }
.toast--ok { background: var(--ok); }
.toast--error { background: var(--danger); }
.form-saved { color: var(--ok); font-weight: 700; }

/* Partner-inschrijving: breder kaartje */
.auth { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; background: var(--ink); }
.auth__card { width: min(760px, 100%); background: #fff; border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.auth__card h1 { font-size: 26px; }
.auth__foot { font-size: 14px; color: var(--muted); margin: 0; }
@media (max-width: 640px) { .auth__card, .login__card { padding: 22px; } .section { padding: 18px; } }

/* Documenten opladen: eigen regel onder de titel, past ook op gsm */
.pill { white-space: nowrap; }
legend { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.doc-upload { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.doc-upload .field { flex: 1 1 200px; min-width: 0; }
.doc-upload input[type="file"] { height: auto; padding: 10px; width: 100%; min-width: 0; font-size: 14px; }
.doc-upload .btn { height: 46px; }
.doc-upload .field--date { flex: 2 1 300px; }
.date-selects { display: grid; grid-template-columns: 1fr 1.6fr 1.1fr; gap: 8px; }
.date-selects select { width: 100%; min-width: 0; }
.list > li > details { flex-basis: 100%; }
.list > li > details summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.list > li > details[open] summary { margin-bottom: 10px; }
.doc-renew summary { list-style: none; display: inline-flex; color: var(--ink); }
.doc-renew summary::-webkit-details-marker { display: none; }
.doc-warn { flex-basis: 100%; margin: 0; }

/* --- Fase 3: aanvragen en offertes --- */
.page--narrow { max-width: 760px; }
.h-page { margin: 0; font-size: 22px; letter-spacing: -0.02em; }
.h-group { margin: 0; font-size: 15px; font-weight: 700; color: var(--muted); }
.stack--tight { gap: 12px; }
.center { text-align: center; }
.btn--wide { width: 100%; height: 52px; font-size: 16px; }
.btn--as-link { display: inline-flex; align-items: center; text-decoration: none; align-self: flex-start; }
.cell-wrap { white-space: normal; min-width: 220px; max-width: 360px; }
.field__label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field select optgroup { font-weight: 700; }
@media (max-width: 640px) { .grid-2--keep { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Samenvatting van een rit of levering */
.req { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.req__top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.req__when { font-weight: 700; color: var(--ink); }
.req__route { display: flex; flex-direction: column; gap: 2px; border-left: 3px solid var(--accent); padding-left: 12px; }
.req__place { font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.req__to { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--soft); font-weight: 700; }
.req__meta { color: var(--muted); font-size: 14px; }
.req__extra { margin: 0; background: var(--ground); border-radius: 10px; padding: 10px 12px; font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { padding: 3px 10px; border-radius: 999px; background: #FFF4D6; color: #6B4600; font-size: 13px; font-weight: 600; }

/* Offerte van het bedrijf */
.request-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.offer-box { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.offer-state { display: flex; align-items: baseline; gap: 10px; }
.offer-state__price { font-size: 20px; }
.offer-form { display: flex; flex-direction: column; gap: 12px; }
.offer-form__row { display: grid; grid-template-columns: minmax(140px, 200px) minmax(0, 1fr); gap: 12px; }
@media (max-width: 640px) { .offer-form__row { grid-template-columns: 1fr; } }
.offer-form__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.price-input { display: flex; align-items: center; border: 1.5px solid var(--field); border-radius: var(--radius); background: #fff; height: 46px; padding-left: 14px; }
.price-input:focus-within { outline: 2px solid var(--ink); outline-offset: 1px; }
.price-input span { font-weight: 700; color: var(--muted); }
.field .price-input input { border: 0; height: 42px; flex: 1; min-width: 0; padding: 0 10px; font-weight: 700; outline: none; }
.past summary { cursor: pointer; font-weight: 700; color: var(--muted); }
.past[open] summary { margin-bottom: 12px; }

/* Klantformulier */
.stepper { display: flex; align-items: center; justify-content: space-between; height: 46px; border: 1.5px solid var(--field); border-radius: var(--radius); background: #fff; }
.stepper__btn { width: 46px; height: 100%; border: 0; background: none; font-size: 22px; font-weight: 700; cursor: pointer; color: var(--ink); }
.stepper output { font-weight: 700; font-size: 17px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1.5px solid var(--field); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink); }
.chip:hover { border-color: var(--ink); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Offertes voor de klant */
.offer { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: grid; grid-template-columns: 180px minmax(0, 1fr); }
.offer--best { border: 2px solid var(--accent); }
.offer__photo { width: 100%; height: 100%; min-height: 130px; object-fit: cover; display: block; background: #DCE3EC; }
.offer__photo--empty { display: flex; align-items: center; justify-content: center; color: var(--soft); font-weight: 700; }
.offer__body { padding: 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.offer__head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.offer__price { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.offer__badge { align-self: flex-start; background: var(--accent); color: var(--ink); font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 6px; }
.offer__message { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.empty { align-items: flex-start; gap: 6px; }
@media (max-width: 640px) {
  .offer { grid-template-columns: 1fr; }
  .offer__photo { height: 170px; }
  .offer__photo--empty { height: 48px; min-height: 0; }
  .page { padding: 20px 16px 48px; }
}
.offer-form__row > .field, .offer-form .field { min-width: 0; }
.offer-form select, .price-input { width: 100%; min-width: 0; max-width: 100%; }
.offer-form select { text-overflow: ellipsis; }

/* --- Fase 4: klant kiest --- */
.won { background: #E3F4EA; border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; color: #0B5A33; }
.won__title { font-size: 17px; }
.won p { margin: 0; color: var(--ink); }
.won .kv dd a { color: var(--ink); font-weight: 700; }
.offer-state__price--off { color: var(--soft); text-decoration: line-through; }
.offer__actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.offer__more summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--muted); }
.offer__more[open] summary { margin-bottom: 8px; }
.offer__thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.offer__thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; }
.chosen { border: 2px solid var(--ok); }
.chosen__head { background: #E3F4EA; color: #0B5A33; padding: 12px 16px; font-weight: 700; }
.confirm-summary { background: var(--ground); border-radius: 12px; padding: 14px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }

/* Taalkeuze (partnerschermen) */
.lang-select { height: 34px; padding: 0 10px; border: 1.5px solid var(--field); border-radius: 8px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; }
.topbar .lang-select { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.topbar .lang-select option { color: var(--ink); }
.auth__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* Admin: één bedrijf */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.fact { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.fact__label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; }
.fact__value { font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.fact__value a { color: var(--ink); }
.doc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; align-items: start; }
.doc-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.doc-card--missing { border-style: dashed; background: #FAFBFC; }
.doc-card__head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.doc-card__preview { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #EEF2F6; }
.doc-card__preview img { width: 100%; height: 100%; object-fit: contain; display: block; }
.doc-card__pdf { display: flex; align-items: center; justify-content: center; height: 100%; font-weight: 800; font-size: 22px; color: var(--muted); text-decoration: none; }
.doc-card__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.photos--large { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.answers { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px 24px; }
.answers dt { color: var(--muted); font-size: 14px; }
.answers dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; white-space: pre-line; }
.photo > a { display: block; width: 100%; height: 100%; }
.save-row { align-items: center; flex-wrap: wrap; gap: 14px; }
.offer-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; align-items: start; }
.offer-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.offer-card--best { border: 2px solid var(--ok); }
.offer-card__head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.offer-card__price { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.offer-card__message { margin: 0; color: var(--ink); white-space: pre-line; }
.extra-info { margin: 0; padding: 12px 14px; border-radius: 10px; background: #F6F8FA; white-space: pre-line; }

/* Admin: commissie */
.commission-settings { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.commission-settings .field { width: 220px; }
.check--big { font-size: 17px; height: 46px; }
.check--big input { width: 24px; height: 24px; }
.commission-banner { display: grid; gap: 8px; margin-bottom: 16px; justify-items: start; }
.commission-banner p { margin: 0; }
a.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; align-self: center; }

/* --- Admin: paneel met menu links --- */
body.admin { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--ink); color: #fff; padding: 22px 16px; display: flex; flex-direction: column; gap: 28px; position: sticky; top: 0; height: 100vh; }
.sidebar .brand { padding: 0 8px; }
.sidebar__nav { display: grid; gap: 4px; }
.sidebar__nav a { color: #C9D3E0; text-decoration: none; font-weight: 600; padding: 10px 12px; border-radius: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sidebar__nav a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.sidebar__nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.1); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.nav-badge { background: var(--accent); color: var(--ink); border-radius: 999px; font-size: 12px; font-weight: 800; min-width: 22px; padding: 2px 7px; text-align: center; }
.sidebar__user { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); display: grid; gap: 6px; color: #C9D3E0; font-size: 14px; }
.sidebar__user .btn--link { color: #fff; justify-self: start; }
body.admin .page { max-width: 1240px; width: 100%; margin: 0; }
@media (max-width: 900px) {
  body.admin { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; }
  .sidebar #admin-name { display: none; }
  .sidebar__nav { display: flex; overflow-x: auto; order: 3; flex-basis: 100%; }
  .sidebar__nav a { white-space: nowrap; }
  .sidebar__user { margin: 0 0 0 auto; border: 0; padding: 0; display: flex; gap: 12px; }
  body.admin .page { padding: 20px 16px 48px; }
}

/* Admin: overzicht */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
@media (max-width: 640px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 14px; }
  .kpi__value { font-size: 24px; }
  .kpi__label { font-size: 11px; }
}
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: grid; gap: 6px; text-decoration: none; color: inherit; }
a.kpi:hover { border-color: var(--ink); }
.kpi__label { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.kpi__value { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.kpi__sub { font-size: 13px; color: var(--soft); }
.kpi--alert { border-color: var(--accent); background: #FFF8E6; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
