/* 4Bizz - CASE202405729 - Vormgeving backoffice - 04-11-2026 -->> */
/* Backoffice: planning, werkbonnen en stamdata. Alle kleuren komen uit thema.css, hier worden
   alleen de namen van de backoffice daaraan gekoppeld.

   Omslagpunten, gelijk aan het monteurscherm:
   - tot 700 px: één kolom, navigatie onderin, tabellen worden kaarten
   - vanaf 700 px: smalle zijbalk, filters en account in het paneel onder Meer
   - vanaf 1100 px: brede vaste zijbalk met navigatie, filters en account */
:root {
  --surface: var(--vlak);
  --surface-2: var(--vlak-2);
  --text: var(--tekst);
  --text-2: var(--tekst-2);
  --text-3: var(--tekst-3);
  --seg-inactive: var(--tekst-2);
  --border: var(--lijn);
  --border-input: var(--lijn-sterk);
  --sep: var(--lijn);
  --sep-2: var(--lijn);
  --track: var(--vlak-2);
  --weekend: var(--vlak-2);
  --alarm: var(--fout);
  --prio: var(--fout-tekst);
  --prio-bg: var(--fout-zacht);
  --success: var(--ok);
  --dark: var(--tekst);
  --shadow-card: var(--schaduw);
  --shadow-toast: var(--schaduw-hoog);
  --shadow-drawer: var(--schaduw-hoog);
  --knop: 40px;
  --knop-klein: 34px;
  --veld: 40px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); font-size: 14px; line-height: 1.45; color: var(--text); background: var(--bg); -webkit-text-size-adjust: 100%; overflow-wrap: anywhere; }
h1, h2, h3, h4, h5, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: inherit; }
svg { flex: none; }
:focus-visible { outline: 3px solid var(--primary-tekst); outline-offset: 2px; }
[hidden] { display: none !important; }
code { font-family: Consolas, ui-monospace, monospace; font-size: 13px; }
::-webkit-scrollbar { height: 10px; width: 10px; }
::-webkit-scrollbar-thumb { background: var(--lijn-sterk); border-radius: 5px; }
::-webkit-scrollbar-track { background: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .3; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes drawer-in { from { transform: translateX(24px); opacity: .5; } to { transform: none; opacity: 1; } }
@keyframes modal-in { from { transform: translate(-50%, calc(-50% + 8px)); opacity: 0; } to { transform: translate(-50%, -50%); opacity: 1; } }

/* ---------- Knoppen & velden ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--knop); padding: 0 16px; border-radius: 10px; white-space: nowrap;
  font-size: 14px; font-weight: 600; background: var(--vlak); color: var(--text); text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--lijn-sterk);
  transition: background .12s ease, transform .08s ease;
}
.btn:hover:not(:disabled) { background: var(--vlak-2); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: inset 0 0 0 1.5px var(--knop-rand); }
.btn-primary:hover:not(:disabled) { background: var(--primary-2); }
.btn-danger { background: var(--fout-zacht); color: var(--fout-tekst); box-shadow: inset 0 0 0 1.5px var(--fout); }
.btn-danger:hover:not(:disabled) { background: var(--fout-zacht); }
.btn-ghost { background: transparent; box-shadow: none; }
.btn-sm { min-height: var(--knop-klein); padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-hoofd { font-weight: 700; }
.link { color: var(--primary-tekst); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.select { width: 100%; font: inherit; color: var(--text); background: var(--vlak); border: 1.5px solid var(--lijn-sterk); border-radius: 10px; padding: 8px 10px; cursor: pointer; }
.check, .check-inline { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check { margin-top: 10px; min-height: 32px; }
.check input, .check-inline input { width: 18px; height: 18px; accent-color: var(--primary-tekst); margin: 0; flex: none; }
.muted { font-size: 13px; color: var(--text-2); }

/* ---------- Schil ---------- */
.app { height: 100dvh; display: flex; overflow: hidden; }
.werk { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.header {
  flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  padding: calc(env(safe-area-inset-top) + 10px) 16px 10px; background: var(--surface); border-bottom: 1px solid var(--border);
}
.h-left { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 auto; }
.h-titles { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.pagina-titel { font-size: 20px; font-weight: 700; line-height: 1.2; }
.sync-line { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); text-align: left; border-radius: 4px; }
.sync-line:hover { color: var(--text); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.h-right { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; flex: 1 1 100%; }
#search {
  flex: 1 1 0; min-width: 0; height: var(--veld); padding: 0 12px; border: 1.5px solid var(--border-input); border-radius: 10px;
  font: inherit; color: var(--text); background: var(--vlak); outline: none;
}
#search:focus { border-color: var(--primary-tekst); box-shadow: 0 0 0 2px var(--primary-rand); }
.row-disabled td { color: var(--text-2); }

/* Merk: logo of letters, met de klantnaam als er geen logo is */
.merk { display: flex; align-items: center; gap: 10px; min-width: 0; flex: none; }
.merk-naam { display: none; font-size: 16px; font-weight: 700; line-height: 1.2; min-width: 0; }
.logo {
  width: 38px; height: 38px; flex: none; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: var(--primary); color: var(--on-primary); box-shadow: inset 0 0 0 1.5px var(--knop-rand); font-weight: 700; font-size: 14px;
}
/* Vaste hoogte, breedte volgt het logo. Wordt de maximale breedte geraakt, dan schaalt het mee en rekt het niet uit. */
.logo.logo-img { width: auto; height: auto; padding: 0; background: none; box-shadow: none; border-radius: 0; }
.logo.logo-img img { display: block; height: 34px; width: auto; max-width: 130px; object-fit: contain; object-position: left center; }

/* Navigatie: onderin op de telefoon */
.zijbalk { display: contents; }
.hoofdnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 2px; padding: 6px 6px calc(env(safe-area-inset-bottom) + 6px);
  background: var(--vlak); border-top: 1px solid var(--lijn);
}
.nav-item {
  position: relative; flex: 1 1 0; min-width: 0; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border-radius: 12px; font-size: 12.5px; font-weight: 600; color: var(--tekst-2); transition: background .12s ease;
}
.nav-item span { overflow-wrap: normal; }
.nav-item svg { width: 24px; height: 24px; }
.nav-item:hover { background: var(--vlak-2); }
.nav-item.active { color: var(--primary-tekst); font-weight: 700; background: var(--primary-zacht); }
.aantal {
  position: absolute; top: 3px; left: calc(50% + 7px); min-width: 20px; padding: 0 5px; border-radius: 10px; font-size: 12px; font-weight: 700; font-style: normal; line-height: 20px; text-align: center;
  background: var(--accent); color: var(--on-accent);
}
.main { flex: 1; min-height: 0; overflow: auto; padding: 14px 16px calc(env(safe-area-inset-bottom) + 84px); position: relative; }
.banner { margin-bottom: 14px; padding: 12px 14px; border-radius: 12px; background: var(--primary-zacht); color: var(--text); border: 1px solid var(--primary-rand); }

/* Paneel met filters en account: schuift in beeld onder de knop Meer */
.paneel-achter { position: fixed; inset: 0; z-index: 34; background: var(--sluier); display: none; }
body.paneel-open .paneel-achter { display: block; animation: fade-in .16s ease-out; }
.paneel {
  position: fixed; top: 0; bottom: 0; right: 0; z-index: 35; width: min(340px, 92vw); display: flex; flex-direction: column; gap: 14px; overflow-y: auto;
  padding: calc(env(safe-area-inset-top) + 12px) 16px calc(env(safe-area-inset-bottom) + 16px); background: var(--vlak); box-shadow: var(--shadow-drawer);
  visibility: hidden; transform: translateX(100%); transition: transform .18s ease, visibility .18s;
}
body.paneel-open .paneel { visibility: visible; transform: none; }
.paneel-kop { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.paneel-kop h2 { font-size: 17px; font-weight: 700; }

.user-menu { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.um-wie { display: flex; flex-direction: column; line-height: 1.25; }
.um-wie b { font-weight: 600; }
.um-wie span { font-size: 13px; color: var(--text-2); }
.user-menu .btn { justify-content: flex-start; }

/* ---------- Filters ---------- */
.sidebar { display: flex; flex-direction: column; gap: 18px; }
.side-h { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.side-list { display: flex; flex-direction: column; gap: 2px; }
.side-row { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 36px; padding: 6px 8px; border-radius: 8px; text-align: left; color: var(--text-3); }
.side-row .lbl { text-decoration: line-through; }
.side-row:hover { background: var(--vlak-2); }
.side-row.active { color: var(--text); }
.side-row.active .lbl { text-decoration: none; }
.side-row .lbl { flex: 1; font-size: 14px; min-width: 0; }
.side-row .cnt { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.side-empty { font-size: 14px; color: var(--text-2); }
.side-credit { margin-top: auto; padding-top: 8px; text-align: center; font-size: 12px; color: var(--text-3); }
.color-row { display: flex; align-items: center; gap: 8px; }
.color-row input[type="color"] { width: 48px; height: var(--veld); padding: 3px; border: 1.5px solid var(--border-input); border-radius: 8px; background: var(--vlak); flex: none; }
.sdot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.sdot.lg { width: 11px; height: 11px; }
.sdot.sm { width: 8px; height: 8px; margin-left: 4px; }

/* ---------- Werkbalk ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.toolbar .range { margin-left: 8px; font-size: 15px; font-weight: 700; }
.toolbar .hint { flex: 1 1 100%; font-size: 13px; color: var(--text-2); }
.segmented { display: flex; gap: 4px; background: var(--vlak-2); border-radius: 12px; padding: 4px; }
.seg { min-height: 32px; padding: 4px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--seg-inactive); }
.seg:hover { color: var(--text); }
.seg.active { background: var(--primary); color: var(--on-primary); box-shadow: inset 0 0 0 1.5px var(--knop-rand); font-weight: 700; }
.toolbar .segmented.seg-sm { margin-left: 4px; padding: 3px; }

/* ---------- Status ---------- */
.pil-status {
  display: inline-flex; align-items: center; gap: 5px; width: fit-content; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--tekst);
  background: color-mix(in srgb, var(--status, var(--tekst-3)) 11%, var(--vlak));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--status, var(--tekst-3)) 28%, var(--vlak));
}
.pil-status svg { width: 15px; height: 15px; color: var(--status, var(--tekst-3)); }
.reg-st { display: inline-flex; align-items: center; gap: 5px; color: var(--tekst); }

/* ---------- Kanban ---------- */
.kanban { display: flex; gap: 14px; align-items: flex-start; height: 100%; }
.k-col { width: 268px; flex: none; display: flex; flex-direction: column; gap: 10px; max-height: 100%; border-radius: 12px; }
.k-col.drop-over { background: var(--primary-zacht); outline: 2px dashed var(--primary-tekst); outline-offset: 4px; }
.k-head { display: flex; align-items: center; gap: 8px; padding: 2px 4px; }
.k-title { font-size: 15px; font-weight: 700; }
.badge-count { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--text-2); background: var(--vlak); border: 1px solid var(--lijn); border-radius: 10px; padding: 0 8px; }
.k-list { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; padding: 2px 2px 8px; min-height: 60px; }
.k-empty { padding: 16px; border: 1.5px dashed var(--lijn-sterk); border-radius: 12px; text-align: center; font-size: 13px; color: var(--text-2); }
.card {
  display: flex; flex-direction: column; gap: 6px; padding: 14px; cursor: grab; touch-action: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-card); transition: border-color .12s ease;
}
.card:hover { border-color: var(--lijn-sterk); }
.card.dragging { opacity: .4; }
.card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.ordernr { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.prio { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--fout-zacht); color: var(--fout-tekst); }
.prio svg { width: 13px; height: 13px; color: var(--fout); }
.card-item { font-size: 15px; font-weight: 700; line-height: 1.25; }
.card-meta, .card-uren { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--text-2); }
.card-meta { margin-top: 2px; }
.nog-plannen { color: var(--let-op-tekst); font-weight: 600; }
.progress { height: 6px; margin-top: 2px; border-radius: 3px; background: var(--track); overflow: hidden; }
.progress.lg { height: 8px; margin-top: 0; }
.progress > div { height: 100%; border-radius: 3px; }
.live-badge { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--let-op-tekst); background: var(--let-op-zacht); }
.live-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--let-op); animation: pulse 1.4s ease-in-out infinite; }
.steps-mini { display: flex; gap: 4px; margin-top: 4px; }
.sm-step { flex: 1; padding: 2px 0; border-radius: 4px; text-align: center; font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); }
.sm-step.st-bezig { color: var(--let-op-tekst); background: var(--let-op-zacht); }
.sm-step.st-pauze { color: var(--primary-tekst); background: var(--primary-zacht); }
.sm-step.st-gereed { color: var(--ok-tekst); background: var(--ok-zacht); }

/* ---------- Agenda ---------- */
.agenda { display: flex; flex-direction: column; gap: 14px; }
.days { display: flex; gap: 6px; }
.day {
  flex: 1 1 0; min-width: 0; max-width: 76px; display: flex; flex-direction: column; align-items: center; padding: 8px 0; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
}
.day:hover { background: var(--vlak-2); }
.day.today:not(.active) { border: 2px solid var(--primary-tekst); }
.day.active { background: var(--primary); border-color: var(--knop-rand); color: var(--on-primary); }
.day .dow { font-size: 12px; }
.day .num { font-size: 17px; font-weight: 700; }
.lanes { display: flex; flex-direction: column; gap: 12px; }
.lane { padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-card); }
.lane-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 10px; }
.lane-name { font-size: 15px; font-weight: 700; }
.lane-count { margin-left: auto; font-size: 13px; color: var(--text-2); }
.lane-empty { padding: 8px 0; font-size: 14px; color: var(--text-2); }
.cap { display: flex; align-items: center; gap: 6px; margin-left: 4px; }
.cap-bar { width: 70px; height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; }
.cap-bar > div { height: 100%; border-radius: 3px; }
.cap-lbl { font-size: 12px; color: var(--text-2); }
.chips { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.chip-wrap { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1 1 280px; max-width: 460px; }
.chip { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 8px 12px; text-align: left; background: var(--vlak); border: 1px solid var(--border); border-radius: 10px; }
.chip:hover { background: var(--vlak-2); }
.chip-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.chip-t { font-size: 14px; font-weight: 600; }
.chip-s { font-size: 13px; color: var(--text-2); }
.seq { width: 24px; height: 24px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 7px; background: var(--primary-zacht); color: var(--primary-tekst); font-size: 12px; font-weight: 700; }

/* ---------- Planning (Gantt) ---------- */
.gantt-wrap { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.gantt { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow-x: auto; box-shadow: var(--shadow-card); }
.g-head { display: flex; min-width: 860px; border-bottom: 1px solid var(--border); }
.g-label { width: 150px; flex: none; background: var(--vlak-2); position: sticky; left: 0; z-index: 5; border-right: 1px solid var(--lijn); }
.g-head .g-label { padding: 10px 14px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.g-days { flex: 1; display: flex; }
.g-day { flex: 1 0 0; padding: 6px 2px; text-align: center; border-left: 1px solid var(--sep); min-width: 0; }
.g-day.weekend { background: var(--weekend); }
.g-day.today { color: var(--primary-tekst); background: var(--primary-zacht); }
.g-day .dow { font-size: 12px; }
.g-day .num { font-size: 14px; font-weight: 700; }
.g-row { display: flex; min-width: 860px; border-bottom: 1px solid var(--sep-2); }
.g-row:last-child { border-bottom: 0; }
.g-row .g-label { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; padding: 12px 14px; font-size: 14px; font-weight: 600; }
.g-name { min-width: 0; }
.capdot { width: 9px; height: 9px; flex: none; border-radius: 50%; }
.cap-tekst { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; color: var(--text-2); font-variant-numeric: tabular-nums; }
.g-track { flex: 1; position: relative; min-width: 0; }
.g-grid { position: absolute; inset: 0; display: flex; pointer-events: none; }
.g-grid > div { flex: 1 0 0; border-left: 1px solid var(--sep); }
.g-grid > .weekend { background: var(--weekend); }
.g-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); z-index: 1; pointer-events: none; }
.g-bar {
  position: absolute; z-index: 2; height: 36px; display: flex; align-items: center; gap: 6px; padding: 0 12px 0 8px; touch-action: none;
  border: 1px solid; border-left-width: 4px; border-radius: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; cursor: grab; color: var(--tekst);
}
.g-bar:hover { filter: brightness(.97); }
.g-bar.clip-l { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.g-bar.clip-r { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.g-bar.dragging { opacity: .5; }
.g-bar.st-gereed { cursor: pointer; }
.g-bar.st-bezig { border-width: 2px; border-left-width: 4px; }
.g-bar.resizing { z-index: 4; box-shadow: 0 0 0 2px var(--primary-tekst); }
.g-bar svg { width: 14px; height: 14px; }
.g-lbl { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.g-check { font-size: 12px; }
.g-live { width: 8px; height: 8px; flex: none; border-radius: 50%; background: currentColor; animation: pulse 1.4s ease-in-out infinite; }
.g-resize { position: absolute; top: 0; right: 0; bottom: 0; width: 12px; cursor: ew-resize; touch-action: none; border-radius: 0 7px 7px 0; }
.g-resize::after { content: ''; position: absolute; top: 30%; bottom: 30%; right: 3px; width: 2px; border-radius: 1px; background: currentColor; opacity: .35; }
.g-bar:hover .g-resize::after, .g-bar.resizing .g-resize::after { opacity: .8; }
.g-drop { position: absolute; top: 4px; bottom: 4px; z-index: 3; pointer-events: none; border: 2px dashed var(--primary-tekst); border-radius: 8px; background: var(--primary-zacht); }

/* ---------- Panelen ---------- */
.backdrop { position: fixed; inset: 0; z-index: 40; background: var(--sluier); animation: fade-in .16s ease-out; }
.drawer {
  position: fixed; top: 0; right: 0; z-index: 41; width: 100%; height: 100dvh; margin: 0; display: flex; flex-direction: column;
  background: var(--surface); box-shadow: var(--shadow-drawer); animation: drawer-in .2s cubic-bezier(.2, .8, .3, 1);
}
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: calc(env(safe-area-inset-top) + 16px) 20px 16px; border-bottom: 1px solid var(--border); }
.d-nr { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.d-item { margin-top: 2px; font-size: 15px; font-weight: 600; color: var(--text-2); }
.close-x { width: 44px; height: 44px; flex: none; border-radius: 10px; font-size: 26px; line-height: 1; color: var(--text-2); margin: -6px -8px 0 0; }
.close-x:hover { background: var(--vlak-2); color: var(--text); }
.drawer-body { flex: 1; display: flex; flex-direction: column; gap: 16px; padding: 18px 20px; overflow-y: auto; }
.status-badge { width: fit-content; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.d-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.d-prio { background: var(--fout-zacht); color: var(--fout-tekst); }
.d-bc { background: var(--vlak-2); color: var(--text-2); }
.d-kop, .d-adres h5 { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.d-tekst { margin: 0; white-space: pre-wrap; }
.d-adressen { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.d-sterk { font-weight: 600; }
.d-planning { margin: 0; padding: 0; list-style: none; }
.d-planning li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--sep); }
.d-planning li span:last-child { font-weight: 600; text-align: right; }
.d-regels { width: 100%; border-collapse: collapse; }
.d-regels td { padding: 8px 0; border-bottom: 1px solid var(--sep); vertical-align: top; }
.d-aantal { text-align: right; white-space: nowrap; font-weight: 600; padding-left: 12px !important; }
.d-onderdelen { margin: 4px 0 0; padding-left: 16px; font-size: 13px; color: var(--text-2); }
.d-handtekening { display: block; max-width: 100%; max-height: 130px; margin-top: 4px; border: 1px solid var(--border); border-radius: 10px; background: var(--vlak); }
.d-bestemmingen { margin: 4px 0 0; padding: 0; list-style: none; font-size: 13px; }
.d-bestemmingen .ok { color: var(--ok-tekst); }
.d-bestemmingen .fout { color: var(--fout-tekst); }
.field-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--sep); }
.field-row span:first-child { color: var(--text-2); }
.field-row span:last-child { font-weight: 600; text-align: right; }
.prog-head { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 13px; color: var(--text-2); }
.sync-note { font-size: 13px; color: var(--text-2); }
.sync-note.error { color: var(--fout-tekst); }
.drawer-foot { display: flex; gap: 10px; padding: 14px 20px calc(env(safe-area-inset-bottom) + 14px); border-top: 1px solid var(--border); }
.drawer-foot .btn { flex: 1; min-height: 48px; }
.drawer-body > .hint { font-size: 13px; color: var(--text-2); }

/* Uren en afronding in het paneel */
.stappen { display: flex; flex-direction: column; gap: 10px; }
.stap { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; }
.stap.st-bezig { border-color: var(--let-op); background: var(--let-op-zacht); }
.stap.st-gereed { background: var(--surface-2); }
.stap-head { display: flex; align-items: center; gap: 8px; }
.stap-nr { width: 22px; height: 22px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; color: var(--on-primary); background: var(--primary); font-size: 12px; font-weight: 700; }
.stap-naam { font-size: 15px; font-weight: 700; }
.stap-st { margin-left: auto; font-size: 13px; font-weight: 600; text-align: right; }
.stap-plan, .stap-tijd { font-size: 13px; color: var(--text-2); }
.stap.st-bezig .stap-plan, .stap.st-bezig .stap-tijd { color: var(--tekst); }
.stap-tijd b { color: var(--text); }
.stap-tijd .over { color: var(--fout-tekst); font-weight: 600; }
.stap-tijd .onder { color: var(--ok-tekst); font-weight: 600; }
.timer { font-variant-numeric: tabular-nums; color: var(--text) !important; }
.stap-regs { margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--text-2); }
.stap-regs li { display: grid; grid-template-columns: 1fr auto 56px; gap: 8px; padding: 6px 0; border-top: 1px solid var(--sep); }
.stap-regs li span:last-child { text-align: left; }
.stap-regs.regs-4 li { grid-template-columns: 1fr 1fr auto 56px; }
.stap-regs.regs-uren li { grid-template-columns: 1fr 1fr 1.3fr 44px auto; align-items: baseline; }
.reg-acties { display: inline-flex; gap: 8px; }
.reg-stagnatie { grid-column: 1 / -1; color: var(--let-op-tekst); }
.stap-acties { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 2px; }
.stap-acties .btn { min-width: 84px; }
.stap-note { font-size: 13px; color: var(--text-2); }
.warn-note { padding: 10px 12px; border-radius: 10px; color: var(--let-op-tekst); background: var(--let-op-zacht); }
.stap-form-h { flex-direction: row; align-items: center; gap: 8px; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--sep); font-weight: 700; }

/* ---------- Formulieren ---------- */
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.f.full { grid-column: 1 / -1; }
.f label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.f .opt { font-weight: 400; color: var(--text-3); }
.f input, .f select, .tbl input:not([type=checkbox]):not([type=color]), .tbl select {
  height: var(--veld); padding: 0 10px; border: 1.5px solid var(--border-input); border-radius: 10px;
  font: inherit; color: var(--text); background: var(--vlak); outline: none; width: 100%;
}
.f input:focus, .f select:focus, .tbl input:focus, .tbl select:focus { border-color: var(--primary-tekst); box-shadow: 0 0 0 2px var(--primary-rand); }
.f textarea, .regel-rij textarea, .regel-rij input {
  padding: 8px 10px; border: 1.5px solid var(--border-input); border-radius: 10px; font: inherit; color: var(--text); background: var(--vlak); outline: none; width: 100%; resize: vertical; min-height: var(--veld);
}
.f textarea:focus, .regel-rij input:focus, .regel-rij textarea:focus { border-color: var(--primary-tekst); box-shadow: 0 0 0 2px var(--primary-rand); }
.f.err input, .f.err select, td:has(.errmsg) input { border-color: var(--fout); }
.errmsg { font-size: 13px; color: var(--fout-tekst); }
.form-error { padding: 10px 12px; border-radius: 10px; background: var(--fout-zacht); color: var(--fout-tekst); }
.range-row { display: flex; align-items: center; gap: 10px; }
.range-row input[type=range] { flex: 1; height: auto; padding: 0; border: 0; box-shadow: none; accent-color: var(--primary-tekst); }
.range-row input[type=number] { width: 72px; flex: none; }
.f input[type=file] { height: auto; padding: 8px; }
.f .check-inline { margin-top: 4px; font-weight: 400; color: var(--text); }
.f .check-inline input { width: 18px; height: 18px; padding: 0; box-shadow: none; }
.form-kop { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--sep); font-size: 16px; font-weight: 700; }
.eind-preview { height: var(--veld); display: flex; align-items: center; padding: 0 10px; border-radius: 10px; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.blokken, .regels { display: flex; flex-direction: column; gap: 10px; }
.blok-rij { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.blok-velden { display: grid; grid-template-columns: minmax(0, 1.6fr) 76px minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.blok-weg { font-size: 18px; }
.m-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.m-chip { cursor: pointer; }
.m-chip input { position: absolute; opacity: 0; pointer-events: none; }
.m-chip span { display: inline-flex; align-items: center; min-height: 36px; padding: 2px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--vlak); color: var(--text-2); box-shadow: inset 0 0 0 1.5px var(--lijn-sterk); }
.m-chip input:checked + span { background: var(--primary); color: var(--on-primary); box-shadow: inset 0 0 0 1.5px var(--knop-rand); }
.m-chip input:checked + span::before { content: '✓'; margin-right: 6px; }
.m-chip input:focus-visible + span { outline: 3px solid var(--primary-tekst); outline-offset: 2px; }
.regel-rij { display: grid; grid-template-columns: 96px minmax(0, 1fr) 76px 76px auto; gap: 6px; align-items: center; }
.regel-rij textarea { grid-column: 1 / -1; font-size: 13px; }

/* ---------- Stamdata ---------- */
.modal { position: fixed; inset: 0; z-index: 41; display: flex; flex-direction: column; background: var(--surface); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: calc(env(safe-area-inset-top) + 14px) 20px 10px; }
.modal-title { font-size: 18px; font-weight: 700; }
.tabs { display: flex; flex: none; gap: 2px; padding: 0 12px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: thin; }
.tab { flex: none; min-height: 46px; padding: 8px 12px; font-size: 14px; font-weight: 600; color: var(--seg-inactive); white-space: nowrap; box-shadow: none; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary-tekst); font-weight: 700; box-shadow: inset 0 -3px 0 var(--primary-tekst); }
.modal-body { flex: 1; min-height: 0; padding: 16px 20px calc(env(safe-area-inset-bottom) + 20px); overflow: auto; }
.intro { margin: 0 0 12px; color: var(--text-2); max-width: 80ch; }
.modal-body > .warn { color: var(--fout-tekst); background: var(--fout-zacht); border-radius: 10px; padding: 10px 12px; margin: 0 0 10px; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { padding: 8px; text-align: left; font-size: 13px; font-weight: 700; color: var(--text-2); border-bottom: 1px solid var(--border); }
.tbl td { padding: 8px; vertical-align: middle; border-bottom: 1px solid var(--sep); }
.tbl tr:hover td { background: var(--vlak-2); }
.tbl tr.editing td { background: var(--primary-zacht); vertical-align: top; }
.tbl .num { width: 90px; }
.tbl .actions { text-align: right; }
.tbl .actions .btn { margin: 2px 0 2px 4px; }
.tbl .empty { padding: 16px 8px; color: var(--text-2); }
.tbl .errmsg { display: block; margin-top: 3px; }
.tbl input[type=color] { width: 48px; height: var(--veld); padding: 3px; border: 1.5px solid var(--border-input); border-radius: 8px; background: var(--vlak); }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--vlak-2); color: var(--text-2); }
.pill.on { background: var(--ok-zacht); color: var(--ok-tekst); }
.section { margin-bottom: 22px; }
.section:last-child { margin-bottom: 0; }
.section h4 { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.section p { margin: 0 0 10px; color: var(--text-2); max-width: 80ch; }
.section .hint { font-size: 13px; color: var(--text-2); margin: 6px 0 10px; }
.section .warn, .warn { color: var(--let-op-tekst); background: var(--let-op-zacht); border-radius: 10px; padding: 10px 12px; margin: 0 0 10px; max-width: 80ch; }
.kv { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--text-2); }
.kv b { color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.audit { margin: 0; padding: 0; list-style: none; font-size: 13px; }
.audit li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--sep); }
.audit time { width: 104px; flex: none; color: var(--text-2); }
.logo-preview { margin-bottom: 6px; }
.logo-preview img { display: block; height: 60px; width: auto; max-width: 240px; object-fit: contain; object-position: left center; padding: 4px; border: 1px solid var(--border); border-radius: 8px; background: var(--vlak); }

/* Huisstijl: voorbeeld met de gekozen kleuren en het logo */
.hs-voorbeeld { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; padding: 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--bg); }
.hs-kop { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 12px; border-radius: 10px; background: var(--vlak); border: 1px solid var(--lijn); }
.hs-letters { width: 38px; height: 38px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--primary); color: var(--on-primary); box-shadow: inset 0 0 0 1.5px var(--knop-rand); font-weight: 700; }
.hs-kop img { display: block; height: 36px; width: auto; max-width: 200px; object-fit: contain; object-position: left center; }
.hs-naam { font-weight: 700; min-width: 0; }
.met-logo .hs-naam { display: none; }
.hs-rij { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hs-nav { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 10px; font-weight: 700; color: var(--primary-tekst); background: var(--primary-zacht); }
.hs-accent { display: inline-flex; min-width: 22px; padding: 0 7px; border-radius: 11px; font-size: 13px; font-weight: 700; line-height: 22px; justify-content: center; background: var(--accent); color: var(--on-accent); }
#kleur-waarschuwing .warn { margin: 10px 0 0; }

/* ---------- Meldingen ---------- */
#toast-root { position: fixed; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom) + 84px); z-index: 60; display: flex; justify-content: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 8px; max-width: 480px; padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--op-status); box-shadow: var(--shadow-toast); }
.toast-success { background: var(--ok); }
.toast-info { background: var(--tekst); }
.toast-error { background: var(--fout); }
.spinner { width: 16px; height: 16px; flex: none; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }

/* ---------- Inloggen ---------- */
.auth-backdrop { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; background: var(--bg); padding: 7vh 16px 16px; }
.auth-card { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 420px; padding: 26px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-card); }
.auth-logo { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--primary); color: var(--on-primary); box-shadow: inset 0 0 0 1.5px var(--knop-rand); font-weight: 700; font-size: 18px; }
.auth-logo-img { display: block; height: 64px; width: auto; max-width: 260px; align-self: flex-start; object-fit: contain; object-position: left center; }
.auth-card h1 { margin: 0 0 4px; font-size: 21px; font-weight: 700; }
.auth-hint { margin: 0; color: var(--text-2); }
.auth-steps { margin: 0; padding-left: 18px; color: var(--text-2); display: flex; flex-direction: column; gap: 4px; }
.auth-qr { display: flex; justify-content: center; padding: 8px 0; }
.auth-qr svg { width: 176px; height: 176px; border: 1px solid var(--border); border-radius: 8px; }
.auth-secret { display: block; width: fit-content; margin: 4px auto 0; padding: 6px 10px; background: var(--surface-2); border-radius: 8px; letter-spacing: .05em; font-size: 14px; }
.auth-credit { margin: 4px 0 0; text-align: center; font-size: 13px; color: var(--text-3); }
.auth-card .f input { height: 52px; font-size: 16px; }
.auth-card .btn { min-height: 56px; font-size: 16px; }
.auth-card .btn-primary { font-size: 18px; font-weight: 700; }

/* ---------- Aanraken: op tablet en telefoon alles een maat groter ---------- */
@media (max-width: 1099.98px), (pointer: coarse) {
  :root { --knop: 46px; --knop-klein: 44px; --veld: 48px; }
  body { font-size: 15px; }
  .f input, .f select, .f textarea, #search, .tbl input:not([type=checkbox]), .tbl select, .regel-rij input, .regel-rij textarea { font-size: 16px; }
  .link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
  .btn-sm { min-width: 44px; }
  .side-row { min-height: 44px; }
  .seg { min-height: 40px; }
  .check { min-height: 44px; }
}

/* ---------- Telefoon: werkbon- en invoerschermen zonder horizontaal scrollen ---------- */
@media (max-width: 699.98px) {
  .fgrid, .d-adressen { grid-template-columns: 1fr; }
  .btn-hoofd { flex: none; }
  .blok-velden { grid-template-columns: minmax(0, 1fr) 84px; }
  .blok-velden .f:first-child { grid-column: 1 / -1; }
  .blok-velden .f-eind { grid-column: 1; }
  .regel-rij { grid-template-columns: minmax(0, 1fr) 76px 76px 44px; }
  .regel-rij input[name=regel_nr] { grid-column: 1 / -1; }
  .regel-rij input[name=regel_oms] { grid-column: 1 / -1; }
  .regel-rij input[name=regel_aantal] { grid-column: 1 / 2; }
  .regel-rij input[name=regel_eenheid] { grid-column: 2 / 4; }
  .stap-regs.regs-uren li { grid-template-columns: 1fr auto; }
  .stap-regs.regs-uren li > span:nth-child(3) { grid-column: 1; }
  .g-label { width: 110px; }
  .toolbar .hint { display: none; }
  .chip-wrap { flex-basis: 100%; max-width: none; }

  /* Tabellen worden kaarten, met de kolomnaam voor de waarde */
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl thead { display: none; }
  .tbl tr { padding: 6px 12px; margin-bottom: 10px; border: 1px solid var(--lijn); border-radius: 12px; }
  .tbl tr.editing { background: var(--primary-zacht); }
  .tbl td, .tbl tr:hover td { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; padding: 6px 0; border: 0; background: none; }
  .tbl tr.editing td { background: none; }
  .tbl td[data-label]::before { content: attr(data-label); font-size: 13px; font-weight: 600; color: var(--text-2); }
  .tbl td > input:not([type=checkbox]):not([type=color]), .tbl td > select { flex: 1 1 160px; }
  .tbl .actions { justify-content: flex-start; text-align: left; }
  .tbl .actions .btn { margin: 0; }
  .tbl .num { width: 100%; }
}

/* ---------- Tablet: smalle zijbalk, paneel onder Meer ---------- */
@media (min-width: 700px) {
  :root { --zij: 104px; }
  .app { padding-left: var(--zij); }
  .zijbalk { position: fixed; top: 0; left: 0; bottom: 0; z-index: 30; display: flex; width: var(--zij); flex-direction: column; background: var(--vlak); border-right: 1px solid var(--lijn); }
  .hoofdnav { position: static; flex: 1; flex-direction: column; gap: 6px; padding: calc(env(safe-area-inset-top) + 12px) 8px 12px; border: 0; background: none; }
  .nav-item { flex: none; min-height: 68px; }
  .nav-item.active { box-shadow: inset 3px 0 0 var(--primary-tekst); }
  .nav-meer { margin-top: auto; }
  .aantal { left: calc(50% + 6px); top: 4px; }
  .header { padding: 12px 24px; }
  .h-left { flex: 0 1 auto; }
  .h-right { flex: 1 1 300px; }
  #search { flex: 0 1 300px; }
  .main { padding: 18px 24px 24px; }
  .merk-naam { display: block; max-width: 200px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .logo-img + .merk-naam { display: none; }
  .logo.logo-img img { max-width: 180px; }
  .merk { padding-right: 12px; border-right: 1px solid var(--lijn); }
  .paneel { left: var(--zij); right: auto; transform: translateX(-100%); }
  .drawer { width: 520px; }
  .fgrid { grid-template-columns: 1fr 1fr; }
  .modal {
    inset: auto; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(980px, calc(100vw - 32px)); height: min(820px, calc(100dvh - 48px));
    border-radius: 16px; box-shadow: var(--shadow-drawer); animation: modal-in .18s ease-out;
  }
  .modal-head { padding-top: 16px; }
  #toast-root { left: auto; right: 24px; bottom: 24px; }
  .toolbar .hint { flex: 1 1 100%; }
}

/* ---------- Desktop: brede vaste zijbalk met navigatie, filters en account ---------- */
@media (min-width: 1100px) {
  :root { --zij: 256px; }
  .zijbalk { overflow-y: auto; padding: 92px 14px 14px; gap: 18px; }
  .hoofdnav { flex: none; padding: 0; gap: 4px; }
  .nav-item { flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 48px; padding: 0 14px; font-size: 15px; }
  .nav-meer { display: none; }
  .aantal { position: static; margin-left: auto; }
  .paneel { position: static; flex: 1; width: auto; padding: 0; overflow: visible; visibility: visible; transform: none; box-shadow: none; background: none; transition: none; }
  .paneel-kop, .paneel-achter, body.paneel-open .paneel-achter { display: none; }
  /* Op desktop staat het merk bovenin de zijbalk. Het blijft in de opmaak van de kop, zodat het logo maar één keer in de pagina zit. */
  .merk { position: fixed; z-index: 31; top: 20px; left: 20px; width: calc(var(--zij) - 40px); padding: 0; border: 0; }
  .merk-naam { max-width: none; }
  .logo.logo-img img { height: 48px; max-width: 216px; }
  .header { padding: 14px 28px; }
  .main { padding: 20px 28px 28px; }
  .toolbar .hint { flex: 1 1 320px; margin-left: 8px; }
}

/* De animatie van de modal hoort alleen bij het openen, niet bij elke wijziging erin */
.al-open .backdrop, .al-open .drawer, .al-open .modal { animation: none; }
@media (prefers-reduced-motion: reduce) { .backdrop, .drawer, .modal, .paneel, .card, .btn, .live-badge::before, .g-live { animation: none !important; transition: none !important; } }
/* 4Bizz - CASE202405729 - Vormgeving backoffice - 04-11-2026 <<-- */

/* 4Bizz - CASE202405729 - Zakelijk ontwerp afstemmen - 04-11-2026 -->> */
/* Dezelfde zakelijke vormgeving in alle backoffice-schermen.
   Gantt-rijen, balkhoogten en sleepcoordinaten blijven gelijk aan de bestaande planning. */
:root { --knop: 48px; --knop-klein: 40px; --veld: 48px; }
body { font-size: 16px; background: var(--papier); }
.header { gap: 16px; padding: calc(env(safe-area-inset-top) + 16px) 20px 16px; }
.pagina-titel { font-size: 26px; letter-spacing: -.6px; }
.h-right { gap: 12px; }
.sync-line { font-size: 14px; margin-top: 4px; }
.btn { font-size: 15px; border-radius: 8px; padding: 0 18px; }
.btn-sm { font-size: 14px; padding: 0 12px; }
.btn-hoofd { min-height: 50px; font-size: 16px; }
#search { border-radius: 8px; font-size: 15px; }
.logo { width: 46px; height: 46px; font-size: 20px; border-radius: 8px; }
.merk-naam { font-size: 21px; letter-spacing: -.4px; }
.logo.logo-img img { width: auto; height: auto; max-width: min(180px, 40vw); max-height: 40px; }
.auth-logo-img { width: auto; height: auto; max-width: min(260px, 100%); max-height: 64px; }
.main { padding: 22px 20px calc(env(safe-area-inset-bottom) + 100px); }
.nav-item { border-radius: 7px; font-size: 13px; font-weight: 500; }
.nav-item.active { background: transparent; box-shadow: inset 0 3px 0 var(--primary-tekst); }
.hoofdnav { padding-top: 0; }
.toolbar { gap: 12px; margin-bottom: 6px; }
.toolbar .range { font-size: 17px; }
.toolbar .hint { font-size: 14px; }
.segmented { background: var(--vlak-2); border-radius: 8px; }
.seg { min-height: 38px; font-size: 14px; border-radius: 6px; }
.pil-status { border-radius: 5px; box-shadow: none; padding: 4px 9px; }
.kanban { gap: 22px; }
.k-col { width: 300px; gap: 16px; }
.k-head { padding: 8px 4px; }
.k-title { font-size: 18px; }
.k-list { gap: 16px; }
.card { padding: 22px 20px; gap: 10px; border-radius: 10px; border-color: var(--huisstijl-rand); box-shadow: none; }
.card:hover { border-color: var(--primary-tekst); }
.ordernr { font-size: 16px; }
.card-item { font-size: 18px; line-height: 1.35; }
.card-meta, .card-uren { font-size: 14px; flex-wrap: wrap; }
.day { padding: 12px 0; border-radius: 8px; }
.day .dow { font-size: 14px; }
.day .num { font-size: 21px; }
.agenda { gap: 22px; }
.banner, .warn, .section .warn { border-radius: 8px; padding: 16px 18px; }
.drawer { background: var(--papier); }
.drawer-head, .modal-head { padding: 22px 24px; background: var(--vlak); border-bottom: 1px solid var(--lijn); }
.d-nr, .modal-title { font-size: 26px; letter-spacing: -.4px; }
.drawer-body, .modal-body { padding: 24px; }
.stap { border-radius: 10px; border-color: var(--huisstijl-rand); padding: 18px; }
.d-item { font-size: 18px; }
.d-kop, .d-adres h5 { font-size: 15px; }
.f > label, .f label { font-size: 14px; }
.f input, .f select, .f textarea, .tbl input, .tbl select { border-radius: 8px; }
.fgrid { gap: 18px; }
.form-kop, .section h4 { font-size: 19px; }
.section { margin-bottom: 30px; }
.tabs { gap: 12px; padding: 0 20px; background: var(--vlak); }
.tab { min-height: 56px; font-size: 16px; padding: 10px 14px; }
.tbl th { font-size: 14px; padding: 14px 12px; }
.tbl td { padding: 14px 12px; }
.tbl { font-size: 15px; }
.user-menu { gap: 12px; padding-top: 20px; }
.um-wie { gap: 4px; }
.um-wie b { font-size: 16px; font-weight: 500; }
.side-h { font-size: 14px; margin-bottom: 10px; }
.side-row { min-height: 42px; padding: 8px 10px; }
.side-row .lbl { font-size: 15px; }
.side-row .cnt { font-size: 14px; }
.sidebar { gap: 24px; }
.auth-card { border-radius: 12px; border-color: var(--huisstijl-rand); padding: 32px 28px; gap: 16px; }
.auth-card h1 { font-size: 26px; letter-spacing: -.5px; }
.hs-voorbeeld { border-radius: 10px; padding: 20px; background: var(--papier); }
.hs-nav { border-radius: 7px; background: var(--huisstijl-vlak); }
@media (max-width: 699.98px) {
  .h-right { flex-wrap: wrap; }
  #search { flex: 1 1 160px; }
  .btn-hoofd { white-space: normal; padding: 10px 14px; }
  .pagina-titel { font-size: 23px; }
  .tbl td { padding: 10px 0; }
  .tbl tr { padding: 12px 16px; border-color: var(--huisstijl-rand); border-radius: 10px; background: var(--vlak); }
  .drawer-head, .modal-head { padding: 18px 20px; }
  .drawer-body, .modal-body { padding: 20px; }
  .kanban { gap: 16px; }
  .k-col { width: min(300px, calc(100vw - 48px)); }
}
@media (min-width: 700px) {
  .header { padding: 24px 30px; }
  .main { padding: 28px 30px; }
  .nav-item.active { background: var(--huisstijl-vlak); box-shadow: none; }
  .hoofdnav { gap: 10px; }
  .drawer { width: min(620px, calc(100vw - 120px)); }
  .modal { border-radius: 12px; }
  .merk { padding-right: 20px; }
}
@media (min-width: 1100px) {
  :root { --zij: 240px; }
  .zijbalk { padding: 112px 16px 22px; gap: 28px; }
  .merk { top: 32px; left: 24px; width: calc(var(--zij) - 48px); gap: 12px; padding: 0; }
  .logo.logo-img img { height: auto; max-width: 192px; max-height: 48px; }
  .nav-item { min-height: 56px; font-size: 17px; padding: 0 16px; gap: 16px; }
  .nav-item svg { width: 25px; height: 25px; }
  .hoofdnav { gap: 10px; }
  .header { padding: 32px 44px; }
  .pagina-titel { font-size: 34px; }
  .main { padding: 32px 44px; }
  .paneel { gap: 24px; }
  .user-menu { margin-top: auto; }
  .side-credit { font-size: 11px; }
}
/* 4Bizz - CASE202405729 - Zakelijk ontwerp afstemmen - 04-11-2026 <<-- */


