/* ==========================================================================
   Blusstunter: componentenbibliotheek
   Vereist tokens.css. Zie UI-PLAN.md §3.5.
   ========================================================================== */

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--t-md);
  line-height: var(--lh);
  color: var(--ink-2);
  background: var(--canvas);
}
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: var(--lh-tight); font-weight: 700; }
h1 { font-size: var(--t-xl); }
h2 { font-size: var(--t-lg); }
h3 { font-size: var(--t-md); }
p  { margin: 0; }
a  { color: var(--info); }
img { max-width: 100%; }

/* Zichtbare focus: ontbrak volledig */
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
:focus:not(:focus-visible) { outline: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--s4); top: -100px; z-index: 200;
  background: var(--surface); color: var(--ink); padding: var(--s3) var(--s4);
  border-radius: var(--r-sm); box-shadow: var(--shadow-2); font-weight: 600;
}
.skip-link:focus { top: var(--s3); }

/* ---------- App-shell: kopbalk ---------- */
.appbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: var(--s4);
  min-height: var(--appbar-h);
  padding: var(--s2) var(--s4);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.appbar__brand { display: flex; align-items: center; gap: var(--s3); text-decoration: none; flex-shrink: 0; }
.appbar__brand img { height: 32px; width: auto; display: block; }
.appbar__titles { display: none; }
.appbar__title { font-size: var(--t-sm); font-weight: 700; color: var(--ink); line-height: 1.2; }
.appbar__sub   { font-size: var(--t-xs); color: var(--ink-3); line-height: 1.2; }

.appbar__nav { display: flex; gap: var(--s1); flex: 1; }
.navlink {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: 0 var(--s4); height: var(--tap);
  border-radius: var(--r-sm);
  font-size: var(--t-sm); font-weight: 600;
  color: var(--ink-3); text-decoration: none;
  white-space: nowrap;
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease);
}
.navlink:hover { background: var(--surface-2); color: var(--ink); }
.navlink[aria-current="page"] { background: var(--brand); color: #fff; }
.navlink svg { width: 18px; height: 18px; flex-shrink: 0; }

.appbar__tools { display: flex; align-items: center; gap: var(--s2); flex-shrink: 0; }

/* Zoekknop in de kop */
.searchbtn {
  display: inline-flex; align-items: center; gap: var(--s2);
  height: var(--tap); min-width: 240px;
  padding: 0 var(--s3);
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--surface-2); color: var(--ink-3);
  font: inherit; font-size: var(--t-sm); cursor: pointer;
  transition: border-color var(--speed) var(--ease);
}
.searchbtn:hover { border-color: var(--brand); color: var(--ink-2); }
.searchbtn__label { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
kbd {
  font: inherit; font-size: var(--t-xs); font-weight: 600;
  padding: 2px 6px; border: 1px solid var(--line-2); border-bottom-width: 2px;
  border-radius: 6px; background: var(--surface); color: var(--ink-3);
}

/* ---------- App-shell: tabbalk op mobiel ---------- */
.tabbar { display: none; }

@media (max-width: 860px) {
  .appbar__nav { display: none; }
  .appbar { gap: var(--s2); padding: var(--s2) var(--s3); }
  .appbar__titles { display: block; flex: 1; min-width: 0; }
  .appbar__title, .appbar__sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .searchbtn { min-width: 0; width: var(--tap); padding: 0; justify-content: center; }
  .searchbtn__label, .searchbtn kbd { display: none; }

  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: repeat(var(--tabs, 4), minmax(0, 1fr));
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .tabbar__item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; min-height: var(--tabbar-h);
    font-size: var(--t-xs); font-weight: 600;
    color: var(--ink-3); text-decoration: none;
  }
  .tabbar__item svg { width: 22px; height: 22px; }
  .tabbar__item[aria-current="page"] { color: var(--brand); }
  .tabbar__item[aria-current="page"] svg { stroke-width: 2.5; }

  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }
  body.no-tabbar { padding-bottom: 0; }
}

/* ---------- Pagina-omhulsel ---------- */
.page { max-width: var(--page-max); margin: 0 auto; padding: var(--s5) var(--s4); }
.page--narrow { max-width: 880px; }
.page--flush { padding: 0; max-width: none; }

.pagehead { display: flex; align-items: flex-start; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s5); }
.pagehead__text { flex: 1; min-width: 200px; }
.pagehead__sub { font-size: var(--t-sm); color: var(--ink-3); margin-top: 2px; }
.pagehead__actions { display: flex; gap: var(--s2); flex-wrap: wrap; }

/* ---------- Kruimelpad ---------- */
.breadcrumb { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; font-size: var(--t-sm); margin-bottom: var(--s3); }
.breadcrumb a { color: var(--info); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb__sep { color: var(--ink-4); }
.breadcrumb__current { font-weight: 700; color: var(--ink); }

/* ---------- Knoppen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: var(--tap); padding: 0 var(--s4);
  border: 1px solid transparent; border-radius: var(--r-sm);
  font: inherit; font-size: var(--t-sm); font-weight: 600;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }

.btn--primary   { background: var(--brand); color: #fff; }
.btn--primary:hover:not(:disabled) { background: var(--brand-hover); }
.btn--secondary { background: var(--surface); color: var(--ink-2); border-color: var(--line-2); }
.btn--secondary:hover:not(:disabled) { background: var(--surface-2); border-color: var(--ink-4); }
.btn--ghost     { background: transparent; color: var(--ink-3); }
.btn--ghost:hover:not(:disabled) { background: var(--surface-2); color: var(--ink); }
.btn--ok        { background: var(--ok); color: #fff; }
.btn--ok:hover:not(:disabled) { background: var(--ok-ink); }
.btn--danger    { background: var(--surface); color: var(--danger); border-color: #FCA5A5; }
.btn--danger:hover:not(:disabled) { background: var(--danger-soft); border-color: var(--danger); }

.btn--sm  { min-height: 36px; padding: 0 var(--s3); font-size: var(--t-xs); }
.btn--lg  { min-height: var(--tap-lg); padding: 0 var(--s5); font-size: var(--t-md); }
.btn--block { width: 100%; }

/* Laadstand */
.btn[data-loading="true"] { position: relative; color: transparent !important; pointer-events: none; }
.btn[data-loading="true"]::after {
  content: ''; position: absolute; width: 16px; height: 16px;
  border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%;
  color: #fff; animation: spin .6s linear infinite;
}
.btn--secondary[data-loading="true"]::after, .btn--ghost[data-loading="true"]::after { color: var(--ink-2); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Icoonknop */
.iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--tap); height: var(--tap);
  border: 1px solid transparent; border-radius: var(--r-sm);
  background: transparent; color: var(--ink-3); cursor: pointer;
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease);
}
.iconbtn svg { width: 18px; height: 18px; }
.iconbtn:hover { background: var(--surface-2); color: var(--ink); }
.iconbtn--danger:hover { background: var(--danger-soft); color: var(--danger); }
.iconbtn--sm { width: 36px; height: 36px; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: var(--s1);
  padding: 3px var(--s2); border-radius: var(--r-sm);
  font-size: var(--t-xs); font-weight: 600; white-space: nowrap;
}
.badge--nieuw        { background: var(--info-soft); color: var(--info-ink); }
.badge--gebeld       { background: var(--brand-soft); color: var(--brand-ink); }
.badge--bevestigd    { background: var(--ok-soft); color: var(--ok-ink); }
.badge--afgewezen    { background: var(--danger-soft); color: var(--danger-ink); }
.badge--afgehandeld  { background: var(--ok-soft); color: var(--ok-ink); }
.badge--gefactureerd { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line-2); }
.badge--opnieuw      { background: var(--warn-soft); color: var(--warn-ink); }
.badge--controle     { background: var(--danger-soft); color: var(--danger-ink); }
.badge--open         { background: var(--info-soft); color: var(--info-ink); }
.badge--neutraal     { background: var(--surface-2); color: var(--ink-3); }

/* ---------- Kaarten ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s4);
}
.card + .card { margin-top: var(--s4); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s3); flex-wrap: wrap; }
.card__title { font-size: var(--t-md); font-weight: 700; color: var(--ink); }
.card__sub { font-size: var(--t-sm); color: var(--ink-3); }

/* ---------- Statustegels (tevens filter) ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: var(--s2); margin-bottom: var(--s4); }
.stat {
  display: flex; flex-direction: column; gap: 2px;
  padding: var(--s3) var(--s4); min-height: 72px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); cursor: pointer; text-align: left;
  font: inherit; color: inherit;
  transition: border-color var(--speed) var(--ease), background var(--speed) var(--ease);
}
.stat:hover { border-color: var(--ink-4); }
.stat__label { font-size: var(--t-xs); font-weight: 600; color: var(--ink-3); }
.stat__value { font-size: var(--t-lg); font-weight: 700; color: var(--ink); }
.stat[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.stat[aria-pressed="true"] .stat__label { color: var(--brand-ink); }
.stat[aria-pressed="true"] .stat__value { color: var(--brand-ink); }

/* ---------- Segmented control ---------- */
.segmented {
  display: inline-flex; padding: var(--s1); gap: var(--s1);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow-x: auto; max-width: 100%; scrollbar-width: none;
}
.segmented::-webkit-scrollbar { display: none; }
.segmented__item {
  display: inline-flex; align-items: center; gap: var(--s2);
  min-height: 38px; padding: 0 var(--s4);
  border: none; border-radius: var(--r-sm); background: transparent;
  font: inherit; font-size: var(--t-sm); font-weight: 600; color: var(--ink-3);
  cursor: pointer; white-space: nowrap;
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease);
}
.segmented__item:hover { color: var(--ink); }
.segmented__item[aria-selected="true"] { background: var(--surface); color: var(--brand-ink); box-shadow: var(--shadow-1); }
.segmented__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--line); color: var(--ink-3); font-size: var(--t-xs); font-weight: 700;
}
.segmented__item[aria-selected="true"] .segmented__num { background: var(--brand); color: #fff; }
.segmented__item[data-done="true"] .segmented__num { background: var(--ok); color: #fff; }

/* ---------- Werkbalk ---------- */
.toolbar { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s4); }
.toolbar__spacer { flex: 1; }

/* ---------- Formulier ---------- */
.field { display: flex; flex-direction: column; gap: var(--s1); }
.field__label { font-size: var(--t-xs); font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .4px; }
.input, .select, .textarea {
  width: 100%; min-height: var(--tap);
  padding: var(--s2) var(--s3);
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  font: inherit;
  font-size: var(--t-md);   /* 16px: voorkomt inzoomen op iOS */
  color: var(--ink);
  background: var(--surface);
}
.textarea { min-height: 96px; resize: vertical; padding: var(--s3); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }

.searchfield { position: relative; flex: 1; min-width: 200px; }
.searchfield svg { position: absolute; left: var(--s3); top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-4); pointer-events: none; }
.searchfield .input { padding-left: 42px; }

/* ---------- Tabel ---------- */
/* Op tabletbreedte is de tabel breder dan het scherm: dan schuift hij
   binnen zijn kader, in plaats van dat de actieknoppen worden afgesneden. */
.tablewrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table caption { text-align: left; padding: var(--s3) var(--s4); font-size: var(--t-sm); color: var(--ink-3); }
.table th {
  text-align: left; padding: var(--s3) var(--s4);
  background: var(--surface-2); border-bottom: 1px solid var(--line);
  font-size: var(--t-xs); font-weight: 700; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: .4px; white-space: nowrap;
}
.table th[aria-sort] { cursor: pointer; user-select: none; }
.table th[aria-sort]:hover { color: var(--ink); }
.table th[aria-sort="ascending"]::after  { content: ' ↑'; color: var(--brand); }
.table th[aria-sort="descending"]::after { content: ' ↓'; color: var(--brand); }
.table td { padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); font-size: var(--t-sm); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr[aria-selected="true"] { background: var(--brand-soft); }
.table .cel-naam { font-weight: 600; color: var(--ink); }
.table .cel-acties { text-align: right; white-space: nowrap; }
.table input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--brand); cursor: pointer; }

/* ---------- Voortgang ---------- */
.progress { height: 8px; background: var(--line); border-radius: var(--r-full); overflow: hidden; }
.progress__bar { height: 100%; background: var(--ok); border-radius: var(--r-full); transition: width var(--speed) var(--ease); }

/* ---------- Lege staat ---------- */
.empty { text-align: center; padding: var(--s7) var(--s4); }
.empty svg { width: 48px; height: 48px; color: var(--ink-4); margin-bottom: var(--s3); }
.empty__title { font-size: var(--t-md); font-weight: 700; color: var(--ink); margin-bottom: var(--s1); }
.empty__text { font-size: var(--t-sm); color: var(--ink-3); margin-bottom: var(--s4); }

/* ---------- Skeleton ---------- */
.skeleton { background: linear-gradient(90deg, var(--line) 25%, var(--surface-2) 50%, var(--line) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--r-sm); }
@keyframes shimmer { to { background-position: -200% 0; } }
.skeleton-row { height: 18px; margin: var(--s4); }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 120;
  display: none; align-items: center; justify-content: center;
  padding: var(--s4); background: rgb(17 24 39 / .55);
}
.modal[data-open="true"] { display: flex; }
.modal__box {
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-3);
  width: 100%; max-width: 520px; max-height: 90vh; overflow: auto; padding: var(--s5);
}
.modal__title { font-size: var(--t-lg); font-weight: 700; color: var(--ink); margin-bottom: var(--s2); }
.modal__text { font-size: var(--t-sm); color: var(--ink-3); margin-bottom: var(--s5); }
.modal__actions { display: flex; gap: var(--s2); justify-content: flex-end; flex-wrap: wrap; }

/* ---------- Toasts ---------- */
.toasts {
  position: fixed; z-index: 150; right: var(--s4); bottom: var(--s4);
  display: flex; flex-direction: column; gap: var(--s2); max-width: min(380px, calc(100vw - 32px));
}
.toast {
  display: flex; align-items: flex-start; gap: var(--s2);
  padding: var(--s3) var(--s4);
  background: var(--ink); color: #fff;
  border-radius: var(--r-md); box-shadow: var(--shadow-3);
  font-size: var(--t-sm); animation: toast-in var(--speed) var(--ease);
}
.toast--ok     { background: var(--ok-ink); }
.toast--danger { background: var(--danger-ink); }
.toast svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 860px) {
  .toasts { right: var(--s3); left: var(--s3); bottom: calc(var(--tabbar-h) + var(--s3) + env(safe-area-inset-bottom, 0px)); max-width: none; }
}

/* ---------- Commandopalet ---------- */
.palette {
  position: fixed; inset: 0; z-index: 140;
  display: none; justify-content: center; align-items: flex-start;
  padding: clamp(16px, 12vh, 120px) var(--s4) var(--s4);
  background: rgb(17 24 39 / .5);
}
.palette[data-open="true"] { display: flex; }
.palette__box {
  width: 100%; max-width: 580px; background: var(--surface);
  border-radius: var(--r-lg); box-shadow: var(--shadow-3); overflow: hidden;
  display: flex; flex-direction: column; max-height: 70vh;
}
.palette__input {
  width: 100%; border: none; border-bottom: 1px solid var(--line);
  padding: var(--s4); font: inherit; font-size: var(--t-md); color: var(--ink);
}
.palette__input:focus { outline: none; }
.palette__list { overflow-y: auto; padding: var(--s2); }
.palette__group { padding: var(--s2) var(--s3) var(--s1); font-size: var(--t-xs); font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .4px; }
.palette__item {
  display: flex; align-items: center; gap: var(--s3); width: 100%;
  padding: var(--s3); border: none; border-radius: var(--r-sm);
  background: transparent; font: inherit; text-align: left; cursor: pointer; color: var(--ink-2);
  text-decoration: none;
}
.palette__item:hover, .palette__item[data-active="true"] { background: var(--brand-soft); color: var(--brand-ink); }
.palette__item svg { width: 18px; height: 18px; color: var(--ink-4); flex-shrink: 0; }
.palette__item[data-active="true"] svg { color: var(--brand); }
.palette__main { flex: 1; min-width: 0; }
.palette__name { font-size: var(--t-sm); font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette__meta { font-size: var(--t-xs); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette__empty { padding: var(--s6); text-align: center; color: var(--ink-3); font-size: var(--t-sm); }
.palette__foot { border-top: 1px solid var(--line); padding: var(--s2) var(--s4); display: flex; gap: var(--s4); font-size: var(--t-xs); color: var(--ink-3); }

/* ---------- Pincode-overlay ---------- */
.pin { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: var(--s4); background: var(--ink); }
.pin[data-open="true"] { display: flex; }
.pin__box { background: var(--surface); border-radius: var(--r-lg); padding: var(--s6); text-align: center; width: 100%; max-width: 360px; box-shadow: var(--shadow-3); }
.pin__box img { height: 44px; margin-bottom: var(--s4); }
.pin__label { font-size: var(--t-sm); color: var(--ink-3); margin-bottom: var(--s4); }
.pin__input { width: 100%; text-align: center; letter-spacing: .5em; font-size: var(--t-lg); font-weight: 700; margin-bottom: var(--s3); }
.pin__error { color: var(--danger); font-size: var(--t-sm); font-weight: 600; margin-bottom: var(--s3); }

/* ---------- Hulpklassen ---------- */
.stack  { display: flex; flex-direction: column; gap: var(--s4); }
.row    { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.muted  { color: var(--ink-3); }
.small  { font-size: var(--t-sm); }
.xsmall { font-size: var(--t-xs); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hide { display: none !important; }
@media (max-width: 860px) { .hide-mobile { display: none !important; } }
@media (min-width: 861px) { .hide-desktop { display: none !important; } }

/* ---------- Printen ---------- */
@media print {
  .appbar, .tabbar, .toasts, .palette, .pin, .no-print { display: none !important; }
  body { background: #fff; padding: 0; }
  .page { max-width: none; padding: 0; }
  .card { border: none; padding: 0; break-inside: avoid; }
}

/* Statustegels op mobiel: één horizontaal schuivende rij in plaats van
   vier rijen tegels. Scheelt ruim 280px voordat de lijst begint. */
@media (max-width: 860px) {
  .stats {
    display: flex; gap: var(--s2);
    overflow-x: auto; scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin-left: calc(var(--s4) * -1); margin-right: calc(var(--s4) * -1);
    padding: 0 var(--s4) var(--s1);
  }
  .stats::-webkit-scrollbar { display: none; }
  .stat {
    flex: 0 0 auto; min-width: 104px; min-height: 60px;
    padding: var(--s2) var(--s3); scroll-snap-align: start;
  }
  .stat__value { font-size: var(--t-md); }
}

/* Koppen op mobiel iets compacter */
@media (max-width: 560px) {
  h1 { font-size: 22px; }
  h2 { font-size: 18px; }
}

/* Met vijf bestemmingen past de brede zoekknop niet meer op een smal
   scherm of een tablet: daar wordt hij een icoon, en verliezen de links
   hun icoon voordat ze van het scherm lopen. */
@media (max-width: 1180px) {
  .searchbtn { min-width: 0; width: var(--tap); padding: 0; justify-content: center; }
  .searchbtn__label, .searchbtn kbd { display: none; }
}
@media (max-width: 1000px) and (min-width: 861px) {
  .navlink { padding: 0 var(--s3); }
  .navlink svg { display: none; }
}

/* ---------- OneDrive-pagina ---------- */
.odgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--s4); margin-bottom: var(--s4); }
.odgrid > .card { margin: 0; }
.od-stip { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 8px; background: var(--line-2); vertical-align: middle; flex-shrink: 0; }
[data-od="ok"] .od-stip { background: var(--ok); }
[data-od="let-op"] .od-stip { background: var(--danger); }
[data-od="bezig"] .od-stip { background: var(--warn); }
.od-regel { display: flex; align-items: center; font-weight: 600; margin-bottom: var(--s2); }
.od-feiten { display: grid; grid-template-columns: auto 1fr; gap: var(--s1) var(--s4); font-size: var(--t-sm); margin: var(--s3) 0; }
.od-feiten dt { color: var(--ink-3); }
.od-feiten dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.od-fouten { list-style: none; margin: var(--s2) 0 0; padding: 0; font-size: var(--t-sm); }
.od-fouten li { padding: var(--s2) 0; border-top: 1px solid var(--line); }
.od-acties { display: flex; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s3); }
.od-stappen { margin: var(--s2) 0 var(--s3) var(--s5); font-size: var(--t-sm); }
.od-stappen li { margin-bottom: var(--s1); }
.od-code { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; }
.od-code code { background: var(--surface-2); padding: 2px 6px; border-radius: var(--r-sm); overflow-wrap: anywhere; }
.od-getallen { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: var(--s2); margin: var(--s3) 0; }
.od-getal { background: var(--surface-2); border-radius: var(--r-md); padding: var(--s2) var(--s3); }
.od-getal strong { display: block; font-size: var(--t-lg); color: var(--ink); }
.od-getal span { font-size: var(--t-xs); color: var(--ink-3); }
.od-schakel { display: flex; gap: var(--s2); align-items: center; font-size: var(--t-sm); margin-top: var(--s3); min-height: var(--tap); }
.od-schakel input { width: 20px; height: 20px; }
.odkruimels { margin-bottom: var(--s3); flex-wrap: wrap; }
.odkruimels button { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-ink); cursor: pointer; min-height: 32px; text-decoration: underline; }
.odlijst { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.odlijst th { text-align: left; font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .03em; color: var(--ink-3); padding: var(--s2); border-bottom: 1px solid var(--line); }
.odlijst td { padding: var(--s2); border-bottom: 1px solid var(--line); vertical-align: middle; }
.odlijst tr:last-child td { border-bottom: 0; }
.odnaam { display: flex; align-items: center; gap: var(--s2); min-width: 0; }
.odnaam svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--ink-3); }
.odnaam button { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; text-align: left; min-height: 32px; }
.odnaam button:hover { text-decoration: underline; }
.odlijst__acties { white-space: nowrap; text-align: right; }
@media (max-width: 700px) {
  .odlijst .od-verberg { display: none; }
}
.od-codeblok { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s3) var(--s4); background: var(--surface-2); }
.od-codeblok p { margin-bottom: var(--s2); }
.od-code--groot code { font-size: 28px; font-weight: 700; letter-spacing: .12em; padding: var(--s2) var(--s3); background: var(--surface); }
