/*
  Fair Metals klantportaal
  Rustig en licht: kleuren en letter van fairmetals.nl, weinig lijnen, geen accentstrepen.
  Marineblauw is de standaard (html[data-theme="dark"], de kleur van het menu); licht is te kiezen in het menu.
*/
:root {
  --navy: #102b4f; --navy-d: #0c2342;
  --cyan: #45c5db; --cyan-d: #2aadc4; --cyan-ink: #1b7f90;
  --bg: #eff0f6; --bg-2: #e6e7f1; --surface: #fcfcfd; --surface-2: #f5f6fa; --glass: rgba(252,252,253,.72);
  /* Tekst en knoppen een tint blauwer dan het menu: #102B4F leest in kleine letters en knoppen als zwart */
  --ink: #1a4073; --ink-2: #345683; --muted: #64789a; --faint: #9aa8bd;
  --line: rgba(16,43,79,.09); --line-2: rgba(16,43,79,.06);
  --primary: #1d4a80; --primary-h: #285c9a; --on-primary: #ffffff;
  /* Accent = lichtere tinten van het marineblauw (geen cyaan meer): selectie, tegels, chips, voortgang */
  --accent: #5b85bd; --accent-soft: #e7eef7; --accent-ink: #1d4a80;
  --ok: #2f8a4c; --warn: #b7791f; --alert: #b4400f; --info: #1d4a80;
  --ok-soft: rgba(47,138,76,.1); --warn-soft: rgba(224,160,48,.14); --alert-soft: rgba(180,64,15,.1);
  --shadow: 0 1px 2px rgba(16,43,79,.04);
  --shadow-lg: 0 18px 48px rgba(16,43,79,.16);
  --r: 14px; --r-sm: 10px;
  --font: "museo-sans", "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "museo-sans-display", "museo-sans", "Nunito Sans", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
html[data-theme="dark"] {
  /* Marineblauw van het menu (#102B4F) als ondergrond; kaarten en tegels een tint lichter */
  --bg: #102b4f; --bg-2: #0d2647; --surface: #173863; --surface-2: #1e4474; --glass: rgba(23,56,99,.82);
  --ink: #f1f5fa; --ink-2: #c8d4e4; --muted: #a0b3cc; --faint: #7489a8;
  --line: rgba(255,255,255,.11); --line-2: rgba(255,255,255,.07);
  --primary: #9dbde3; --primary-h: #b8d0ec; --on-primary: #0b2343;
  --accent: #8fb1da; --accent-soft: rgba(143,177,218,.16); --accent-ink: #bcd3ee;
  --ok: #74cf95; --warn: #f0bf63; --alert: #f5925f; --info: #bcd3ee;
  --ok-soft: rgba(116,207,149,.15); --warn-soft: rgba(240,191,99,.15); --alert-soft: rgba(245,146,95,.16);
  --shadow: 0 1px 2px rgba(3,14,30,.18); --shadow-lg: 0 18px 48px rgba(3,14,30,.5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 500 15px/1.55 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; transition: background .2s, color .2s; }
body.no-scroll { overflow: hidden; }
/* Wat klikbaar is, krijgt een streepje eronder zodra je erover beweegt (Ralph, 5 nov 2026). Knoppen, menu's, tabbladen, tegels en lijsten
   hebben hun eigen vorm en zetten het streepje zelf uit. */
a { color: var(--accent-ink); font-weight: 700; text-decoration: none; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
.brand, .side-brand { text-decoration: none; }
h1, h2, h3 { margin: 0; color: var(--ink); letter-spacing: -.005em; }
h1 { font: 800 30px/1.2 var(--display); }
h2 { font: 800 18px/1.3 var(--font); }
h3 { font: 800 19px/1.3 var(--font); }
small { font-size: 12.5px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.block { display: block; }
.nowrap { white-space: nowrap; }
.pills { display: inline-flex; gap: 14px; flex-wrap: wrap; }
.mono { font-family: var(--mono); font-size: .92em; letter-spacing: .01em; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.logo-d { display: none !important; }
html[data-theme="dark"] .logo-l { display: none !important; }
html[data-theme="dark"] .logo-d { display: block !important; }

/* ---------- Knoppen en velden ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent; font: 800 14.5px var(--font); cursor: pointer; text-decoration: none !important; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; color: var(--ink); background: transparent; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-red { background: var(--primary); color: var(--on-primary); }
.btn-red:not(:disabled):hover { background: var(--primary-h); }
/* Drie soorten knoppen: hoofdknop (.btn-red, gevuld, één per scherm), gewone knop (.btn-ghost, wit met rand) en tekstlink (.link).
   .btn-cyan en .btn-dark zijn oude namen en zien eruit als een gewone knop. */
.btn-ghost, .btn-cyan, .btn-dark { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:not(:disabled):hover, .btn-cyan:not(:disabled):hover, .btn-dark:not(:disabled):hover { background: var(--surface-2); border-color: var(--faint); }
.btn-lg { height: 50px; padding: 0 22px; font-size: 15px; }
.btn-xl { height: 60px; padding: 0 24px; font-size: 16.5px; border-radius: 14px; }
.btn-xl small { font-weight: 600; opacity: .75; margin-left: 4px; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
.btn-xs { height: 28px; padding: 0 9px; font-size: 12.5px; border-radius: 8px; }
.btn-block { width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--accent-ink); font: inherit; font-weight: 700; cursor: pointer; }
.link { text-decoration: none; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.link:hover { text-decoration: underline; }
.lbl { display: block; font-weight: 700; font-size: 13px; margin: 0 0 6px; color: var(--ink-2); }
.opt { font-weight: 500; color: var(--muted); margin-left: 4px; }
.inp, .field input { width: 100%; height: 44px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; font: 500 15px var(--font); color: var(--ink); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
html[data-theme="dark"] .inp, html[data-theme="dark"] .field input { background: var(--surface-2); }
.inp::placeholder, .field input::placeholder { color: var(--faint); }
textarea.inp { height: auto; padding: 10px 13px; resize: vertical; line-height: 1.45; }
select.inp { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238796ad' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.inp:focus, .field input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.inp[readonly], .inp:disabled, .field input:disabled { background: var(--surface-2); color: var(--muted); }
.inp-sm { height: 36px; width: auto; font-size: 14px; }
.inp-xl { height: 52px; font-size: 16.5px; }
.inp-mini { width: 90px; height: 32px; display: inline-block; padding: 0 8px; }
.bad { border-color: var(--alert) !important; }
.err { color: var(--alert); font-size: 13px; margin-top: 4px; }
.err:empty { display: none; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.hint b { color: var(--ink-2); }
.warn { color: var(--warn); }
.inp-wrap { position: relative; }
.inp-wrap .sfx, .inp-wrap .pfx { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; color: var(--muted); font-size: 14px; pointer-events: none; }
.inp-wrap .sfx { right: 13px; }
.inp-wrap .pfx { left: 13px; font-weight: 700; }
.inp.pl { padding-left: 30px; }
.inp[type=number] { -moz-appearance: textfield; }
.inp[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; }
.form-err { color: var(--alert); font-weight: 700; font-size: 14px; margin-top: 12px; }
.form-err:empty { display: none; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; color: var(--ink-2); }
.check input { width: 17px; height: 17px; accent-color: var(--primary); }
.check.big { font-size: 15px; min-height: 52px; }
.check.big input { width: 22px; height: 22px; }

.seg { display: inline-flex; background: var(--surface-2); border-radius: 11px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg-o input, .chip input, .mat input, .role input { position: absolute; opacity: 0; pointer-events: none; }
.seg-o span { display: block; padding: 7px 12px; border-radius: 8px; font-weight: 700; font-size: 13.5px; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.seg-sm .seg-o span { padding: 7px 10px; }
.seg-o input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(16,43,79,.12); }
html[data-theme="dark"] .seg-o input:checked + span { background: #2b5288; }
.seg-o input:focus-visible + span, .chip input:focus-visible + span, .mat input:focus-visible + span, .role input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip span { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; font-size: 13.5px; cursor: pointer; transition: background .15s, border-color .15s; }
.chip span:hover { background: var(--surface-2); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.mini-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mini-btns button { border: 0; background: var(--surface-2); border-radius: 8px; padding: 4px 9px; font: 700 12.5px var(--font); color: var(--ink-2); cursor: pointer; }
.mini-btns button:hover { background: var(--accent-soft); color: var(--accent-ink); }
.stepper { display: flex; }
.stepper button { width: 44px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--ink-2); }
html[data-theme="dark"] .stepper button { background: var(--surface-2); }
.stepper button:first-child { border-radius: 10px 0 0 10px; border-right: 0; }
.stepper button:last-child { border-radius: 0 10px 10px 0; border-left: 0; }
.stepper .inp { border-radius: 0; text-align: center; font-weight: 800; font-size: 17px; }
.dates { display: flex; align-items: center; gap: 8px; }
.dates span { color: var(--muted); font-size: 13px; }
kbd { font: 700 11px var(--font); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; color: var(--muted); }
.kbd-hint { color: var(--muted); font-size: 12px; margin-left: auto; }

/* ---------- Login ---------- */
body.login { background: var(--bg-2); }
.lg { min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
.lg-top { display: flex; justify-content: space-between; align-items: center; height: 92px; width: 100%; }
.lg-logo { height: 46px; width: auto; display: block; }
.lg-top-r { display: flex; align-items: center; gap: 14px; }
.lg-site { color: var(--ink); font-weight: 800; font-size: 14.5px; }
.lg-main { flex: 1; display: grid; grid-template-columns: minmax(360px, 430px) minmax(0, 1fr); gap: 40px; align-items: start; width: 100%; padding-top: 6px; padding-bottom: 24px; }
.lg-left h1 { font-size: clamp(30px, 3.1vw, 42px); line-height: 1.14; margin: 4px 0 12px; }
.lg-intro { font-size: 16.5px; line-height: 1.7; color: var(--ink-2); margin: 0 0 22px; }
.lp-card { background: var(--glass); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border: 1px solid var(--line); border-radius: 20px; padding: 26px 28px 24px; }
.lp-card h2 { font-size: 20px; margin-bottom: 16px; }
.lp-card p { margin: 0 0 18px; }
.lg-art { position: relative; align-self: start; margin: 30px -16vw 0 -30px; }
.yard { position: relative; width: 100%; aspect-ratio: 1800 / 890; }
.yard-img, .yard-front, .yard-fx, .yard-fx2 { position: absolute; inset: 0; width: 100%; height: 100%; }
.yard-fx2 { z-index: 4; pointer-events: none; }
.yard-img { object-fit: contain; }
.yard-fx { z-index: 2; pointer-events: none; }
.yard-front { z-index: 3; pointer-events: none; }
.lg-foot { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding-top: 16px; padding-bottom: 24px; font-size: 13.5px; color: var(--muted); }
.lg-foot a { color: var(--ink-2); font-weight: 700; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 6px; color: var(--ink-2); }
.field input { height: 50px; }
.pw { position: relative; }
.pw-eye { position: absolute; right: 6px; top: 6px; bottom: 6px; width: 40px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 8px; }
.pw-eye:hover { background: var(--surface-2); }
.row-between { display: flex; justify-content: space-between; align-items: center; margin: 2px 0 18px; font-size: 14px; }
.demo { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.demo-note { font-size: 13px; color: var(--ink-2); }
.demo-note i { color: var(--accent-ink); margin-right: 4px; }
.demo-lbl { font-size: 13px; color: var(--muted); margin: 12px 0 8px; font-weight: 700; }
.demo-chips { display: grid; gap: 4px; }
.chip-login { display: flex; align-items: center; gap: 12px; text-align: left; padding: 8px 10px; border: 0; background: transparent; border-radius: 12px; cursor: pointer; font: inherit; color: var(--ink); transition: background .15s; }
.chip-login:hover { background: var(--surface-2); }
.chip-login b { display: block; font-size: 14px; font-weight: 800; }
.chip-login small { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-login > span:last-child { min-width: 0; }
.chip-ic { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; }
.lang { display: inline-flex; border-radius: 10px; padding: 2px; background: var(--surface-2); }
.lang button { border: 0; background: transparent; padding: 6px 10px; border-radius: 8px; font: 800 12.5px var(--font); color: var(--muted); cursor: pointer; }
.lang button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(16,43,79,.12); }
html[data-theme="dark"] .lang button.on { background: #2b5288; }
.theme-btn { width: 38px; height: 38px; border-radius: 10px; border: 0; background: var(--surface-2); color: var(--ink-2); cursor: pointer; display: grid; place-items: center; }
.theme-btn:hover { color: var(--ink); }
.inv-badge { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-size: 21px; margin-bottom: 16px; }
.strength { height: 4px; border-radius: 3px; background: var(--line); margin-top: 8px; overflow: hidden; }
.strength span { display: block; height: 100%; width: 0; transition: width .2s, background .2s; background: var(--alert); }
.strength .s3 { background: var(--warn); } .strength .s4 { background: var(--ok); }

/* ---------- Kop ---------- */
.hdr { position: sticky; top: 0; z-index: 30; background: var(--glass); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--line-2); }
.hdr-in { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand img { display: block; height: 38px; width: auto; }
.nav { display: flex; gap: 2px; flex: 1; }
.nav a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 800; font-size: 14.5px; text-decoration: none; white-space: nowrap; transition: color .15s, background .15s; }
.nav a i { display: none; }
.nav a:hover { color: var(--ink); }
.nav a.on { color: var(--ink); background: var(--surface-2); }
.nav-toggle { display: none; margin-left: auto; border: 0; background: var(--surface-2); width: 40px; height: 40px; border-radius: 10px; font-size: 17px; cursor: pointer; color: var(--ink); }
.hdr-right { display: flex; align-items: center; gap: 10px; }
.user { position: relative; display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 4px 8px 4px 4px; border-radius: 12px; }
.user:hover, .user.open { background: var(--surface-2); }
.user > i { color: var(--muted); font-size: 11px; }
.avatar { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font: 800 13px var(--font); }
.user-txt { display: flex; flex-direction: column; line-height: 1.25; }
.user-txt b { font-size: 13.5px; } .user-txt small { color: var(--muted); }
.menu { display: none; position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); min-width: 240px; padding: 6px; z-index: 40; }
.user.open .menu { display: block; }
.menu-head { padding: 10px 12px; font-size: 13.5px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
.menu-head small { color: var(--muted); }
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 9px 12px; border-radius: 8px; font: 600 14px var(--font); color: var(--ink); cursor: pointer; text-align: left; }
.menu button i { width: 16px; color: var(--muted); }
.menu button:hover { background: var(--surface-2); }


/* ---------- Pagina ---------- */
.main { padding: 36px 0 64px; min-height: calc(100vh - 72px - 90px); }
.page-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.page-h h1 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-acts { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.kicker { display: block; font: 600 13.5px var(--font); color: var(--muted); margin-bottom: 4px; }
.kicker i { display: none; }
.lead { margin: 6px 0 0; color: var(--muted); font-size: 15.5px; }
.back { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.card { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); padding: 22px 24px; margin-bottom: 20px; box-shadow: var(--shadow); }
.card-flush { padding: 0; overflow: hidden; }
.card-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 12px; }
.card-h a { font-size: 13.5px; display: inline-flex; gap: 6px; align-items: center; }
.card-h.pad { padding: 20px 24px 4px; }
.card-sub { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.empty { color: var(--muted); padding: 16px 24px; margin: 0; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cols > .card { margin-bottom: 20px; }

/* Welkom en snelle acties: geen kaart, geen illustratie */
.hero { display: block; margin: 0 0 28px; }
.hero-art { display: none; }
.hero h1 { font-size: 30px; }
.hero p { color: var(--muted); margin: 6px 0 20px; font-size: 15.5px; }
.quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.q { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); text-decoration: none !important; transition: background .15s, border-color .15s; }
.q > i:first-child { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--surface-2); color: var(--ink-2); font-size: 16px; }
.q > i:last-child { display: none; }
.q b { display: block; font-size: 14.5px; } .q small { color: var(--muted); display: block; line-height: 1.35; }
.q:hover { border-color: var(--line); background: var(--surface-2); }
.q-red > i:first-child { background: var(--primary); color: var(--on-primary); }

/* Kerncijfers */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpis-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpi { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); padding: 18px 20px; color: var(--ink); text-decoration: none !important; transition: background .15s; box-shadow: var(--shadow); }
.kpi:hover { background: var(--surface-2); }
.kpi-ic { display: none; }
.kpi-lbl { font-size: 13px; color: var(--muted); font-weight: 700; }
.kpi-val { font: 800 30px/1.15 var(--display); margin: 8px 0 4px; white-space: nowrap; }
.kpis-5 .kpi-val { font-size: 26px; }
.kpi-val small { font: 700 14px var(--font); color: var(--muted); margin-left: 2px; }
.kpi-sub { font-size: 12.5px; color: var(--muted); }
.kpi-warn .kpi-val { color: var(--warn); }

/* Lijsten */
.list { list-style: none; margin: 0; padding: 0; }
.list li + li { border-top: 1px solid var(--line-2); }
.list a { display: flex; align-items: center; gap: 14px; padding: 12px 2px; color: var(--ink); text-decoration: none; }
.list a:hover .li-main b { color: var(--accent-ink); }
.li-main { flex: 1; min-width: 0; }
.li-main b { font-size: 14.5px; transition: color .15s; }
.li-main small { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-end { font-size: 13px; color: var(--ink-2); font-weight: 700; white-space: nowrap; }
.li-ic { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); color: var(--muted); flex: none; font-size: 14px; }
.date-box { width: 44px; height: 46px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 11px; background: var(--surface-2); color: var(--ink); line-height: 1; }
.date-box b { font: 800 17px var(--font); }
.date-box small { font-size: 11px; text-transform: lowercase; color: var(--muted); margin-top: 3px; }
.cc { display: inline-block; font: 700 11px var(--font); letter-spacing: .04em; padding: 1px 5px; border-radius: 5px; background: var(--surface-2); color: var(--muted); vertical-align: 1px; }

/* Status: een stip met tekst, geen gekleurde blokken */
.badge, .pill { display: inline-flex; align-items: center; gap: 6px; font: 700 12.5px var(--font); color: var(--ink-2); white-space: nowrap; vertical-align: middle; --st: var(--faint); }
.badge::before, .pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--st); flex: none; }
h1 .badge { font-size: 13px; }
.b-concept { --st: var(--faint); color: var(--muted); }
.b-bevestigd, .b-gepland { --st: var(--accent); }
.b-in-uitvoering, .b-geladen { --st: var(--warn); }
.b-verscheept { --st: #7b74d6; }
.b-afgerond, .b-gefactureerd { --st: var(--ok); }
.b-geannuleerd { --st: var(--faint); color: var(--muted); text-decoration: line-through; }
/* Statussen uit Zoho CRM (verkoop leveringen en contracten) */
.b-klaar-voor-inspectie, .b-aangemaakt, .b-nieuw { --st: var(--accent); }
.b-gedeelte-afgerond, .b-deels-afgerond { --st: var(--warn); }
.b-gecrediteerd { --st: var(--alert); color: var(--muted); }
.p-actief { --st: var(--ok); }
.p-uitgenodigd { --st: var(--warn); }
.p-geen-toegang { --st: var(--faint); color: var(--muted); }
.st-sel { appearance: none; border: 1px solid transparent; background: var(--surface-2); font: 700 12.5px var(--font); color: var(--ink-2); padding: 5px 26px 5px 10px; border-radius: 8px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='6'%3E%3Cpath d='M1 1l3.5 3.5L8 1' stroke='%238796ad' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; }
.st-sel:hover { border-color: var(--line); }

/* Tabel */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font: 700 12.5px var(--font); color: var(--muted); padding: 12px 16px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tr[data-href], .tbl tr[data-bon] { cursor: pointer; }
.tbl tbody tr[data-href]:hover td, .tbl tbody tr[data-bon]:hover td { background: var(--surface-2); }
.tbl .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl td.acts { text-align: right; white-space: nowrap; }
.tbl td.acts > * + * { margin-left: 6px; }
.tbl a { color: var(--ink); }
.tbl td.neg { color: var(--alert); font-weight: 800; }

/* Voortgang */
.prog { min-width: 140px; }
.prog-bar { position: relative; height: 6px; border-radius: 4px; background: var(--line); overflow: hidden; }
.prog-bar span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; }
.prog-planned { background: var(--accent); opacity: .45; }
.prog-loaded { background: var(--ink); }
.prog-txt { font-size: 12.5px; margin-top: 5px; color: var(--ink-2); }
.units { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.u { width: 32px; height: 28px; display: grid; place-items: center; border-radius: 7px; background: var(--surface-2); color: var(--faint); font-size: 12px; }
.u-planned { background: var(--accent-soft); color: var(--accent-ink); }
.u-loaded { background: var(--ink); color: var(--bg); }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); margin-top: 12px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 9px; height: 9px; border-radius: 3px; background: var(--surface-2); display: inline-block; }
.d-loaded { background: var(--ink); } .d-planned { background: var(--accent); opacity: .6; }

/* Kenmerken */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0; padding: 6px 0; }
.fact { padding: 14px 22px; display: flex; flex-direction: column; }
.fact span { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.fact b { font: 800 16.5px var(--font); margin-top: 4px; }
.fact small { color: var(--muted); margin-top: 2px; }

/* Werkbalk, filters, tabs */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.filters { display: inline-flex; gap: 2px; flex-wrap: wrap; background: var(--surface-2); padding: 3px; border-radius: 11px; }
.filters a { padding: 6px 12px; border-radius: 8px; color: var(--muted); font-weight: 700; font-size: 13.5px; text-decoration: none; }
.filters a span { color: var(--faint); font-weight: 600; margin-left: 2px; }
.filters a.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(16,43,79,.1); }
html[data-theme="dark"] .filters a.on { background: #2b5288; }
.search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; height: 40px; min-width: 300px; color: var(--muted); }
.search input { border: 0; outline: 0; font: 500 14px var(--font); width: 100%; background: none; color: var(--ink); }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tabs { display: inline-flex; background: var(--surface-2); border-radius: 12px; padding: 3px; gap: 2px; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 9px; font-weight: 800; font-size: 14px; color: var(--muted); text-decoration: none; }
.tabs a i { display: none; }
.tabs a.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(16,43,79,.1); }
html[data-theme="dark"] .tabs a.on { background: #2b5288; }

/* ---------- Snel registreren ---------- */
.reg { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
.reg-form { padding: 6px 26px 26px; }
.reg-side { position: sticky; top: 24px; }
.step { display: grid; grid-template-columns: 28px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line-2); }
.step-last { border-bottom: 0; padding-bottom: 0; }
.step-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 800 12.5px var(--font); color: var(--muted); background: var(--surface-2); }
.grid { display: grid; gap: 16px 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-price { grid-template-columns: minmax(150px, 1fr) auto auto; }
.mats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.mat span { display: block; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; height: 100%; transition: border-color .15s, background .15s; }
.mat span:hover { background: var(--surface-2); }
.mat b { display: block; font-size: 13.5px; line-height: 1.3; }
.mat small { color: var(--muted); font-size: 11.5px; }
.mat input:checked + span, .role input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.cust-card, .con-card { display: none; margin-top: 10px; padding: 12px 14px; border-radius: 11px; background: var(--surface-2); gap: 12px; align-items: center; }
.cust-card.on { display: flex; }
.con-card.on { display: block; }
.cust-card b, .con-card b { font-size: 14px; }
.cust-card small, .con-card small { display: block; color: var(--muted); }
.cust-cc { width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--surface); color: var(--ink); font: 800 13px var(--font); letter-spacing: .04em; border: 1px solid var(--line-2); }
.con-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; align-items: flex-start; }
.con-per { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; font-weight: 700; }
.actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.sum { padding: 22px; }
.sum h3 { margin-bottom: 2px; }
.sum .kicker { margin-bottom: 2px; }
.sum-big { font: 800 28px/1.1 var(--display); margin: 12px 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); }
.sum-big small { display: block; font: 600 12.5px var(--font); color: var(--muted); margin-top: 4px; }
.sum-dl { display: grid; grid-template-columns: 92px 1fr; gap: 9px 10px; margin: 0; font-size: 14px; }
.sum-dl dt { color: var(--muted); font-size: 13px; }
.sum-dl dd { margin: 0; font-weight: 700; }
.sum-dl dd small { display: block; color: var(--muted); font-weight: 500; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-2); font-size: 12.5px; color: var(--faint); }
.checks .ok { color: var(--ok); font-weight: 700; }
.crm-note { font-size: 12.5px; color: var(--muted); margin: 0 4px; line-height: 1.5; }

/* ---------- Klanten ---------- */
.cust-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.cust { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.cust-link { display: flex; gap: 12px; align-items: center; color: var(--ink); text-decoration: none !important; }
.cust-link b { display: block; font-size: 15px; line-height: 1.3; }
.cust-link small { color: var(--muted); }
.cust-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink-2); }
.cust-stats i { color: var(--faint); margin-right: 3px; }
.cust-acts { display: flex; gap: 8px; margin-top: auto; }

/* ---------- Venster ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(16,43,79,.5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow-y: auto; animation: fade .15s; }
.modal { background: var(--surface); border-radius: 18px; width: 100%; max-width: 520px; box-shadow: var(--shadow-lg); animation: pop .18s ease-out; border: 1px solid var(--line-2); }
.modal-wide { max-width: 940px; }
.modal-h { position: relative; padding: 22px 26px 4px; }
.modal-h h2 { font-size: 20px; }
.modal-h p { margin: 2px 0 0; }
.modal-b { padding: 14px 26px 24px; }
.x { position: absolute; right: 16px; top: 16px; width: 34px; height: 34px; border: 0; border-radius: 9px; background: var(--surface-2); cursor: pointer; font-size: 15px; color: var(--ink-2); }
.inv { display: grid; grid-template-columns: 1fr 1fr; }
.inv form { padding: 18px 26px 26px; }
.inv form .lbl { margin-top: 14px; }
.inv form .grid .lbl { margin-top: 0; }
.roles { display: grid; gap: 8px; }
.role span { display: block; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; }
.role b { display: block; font-size: 14px; } .role small { color: var(--muted); }
.mail { background: var(--surface-2); border-left: 1px solid var(--line-2); border-radius: 0 18px 18px 0; padding: 18px 22px 22px; display: flex; flex-direction: column; }
.mail-top { padding-bottom: 10px; }
.mail-subj { font-weight: 800; font-size: 15px; margin: 4px 0 2px; }
.mail-from { font-size: 12.5px; color: var(--muted); }
.mail-body { background: #fff; color: #3d5170; border-radius: 12px; padding: 20px 22px; font-size: 14px; flex: 1; }
.mail-body img { margin-bottom: 14px; display: block; }
.mail-body p { margin: 0 0 12px; }
.mail-body blockquote { margin: 0 0 12px; padding: 8px 12px; color: #3d5170; font-style: italic; background: #f5f6fa; border-radius: 8px; }
.mail-btn span { display: inline-block; background: #1d4a80; color: #fff; font-weight: 800; padding: 11px 18px; border-radius: 12px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Meldingen ---------- */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; width: max-content; max-width: calc(100vw - 32px); }
.toast { background: #1d4a80; color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: 14px; animation: pop .2s ease-out; transition: opacity .3s, transform .3s; }
html[data-theme="dark"] .toast { background: #2b5288; }
.toast a { color: #c9dbf1; font-weight: 800; margin-left: 6px; }
.toast i { color: #c9dbf1; }
.toast.out { opacity: 0; transform: translateY(6px); }

/* ---------- Voet ---------- */
.ftr { border-top: 1px solid var(--line-2); }
.ftr-in { display: flex; gap: 40px; align-items: center; padding-top: 26px; padding-bottom: 30px; font-size: 13.5px; color: var(--muted); flex-wrap: wrap; }
.ftr-in p { margin: 6px 0 0; }
.ftr-in a { color: var(--ink-2); }
.ftr-in img { display: block; height: 30px; width: auto; }
.ftr-note { margin-left: auto; }
.ftr .pill { --st: var(--warn); }
.nf { text-align: center; padding: 60px 0; }
.nf img { margin-bottom: 18px; }
.nf h1 { margin-bottom: 18px; }

/* ---------- Managementdashboard ---------- */
.trend { font-weight: 800; white-space: nowrap; }
.trend.up { color: var(--ok); } .trend.down { color: var(--alert); }
.trend i { font-size: 10px; }
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.dash-grid .card { margin: 0; }
.dash-grid .wide { grid-column: 1 / -1; }
.dash-prijzen { margin-bottom: 20px; }
.dash-kop { margin: 4px 0 12px; }
.dash-kop h2 { margin: 0; font-size: 18px; }
.dash-kop .card-sub { margin: 2px 0 0; }
.dash-onder { align-items: start; }
/* Leveringen: vaste kolommen, lange teksten breken netjes af */
.tbl-vast { table-layout: fixed; width: 100%; }
.tbl-vast-breed { min-width: 980px; }
.tbl-vast td, .tbl-vast th { overflow: hidden; vertical-align: middle; }
.tbl-vast td .badge { max-width: 100%; }
.tbl-vast .een { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Filters vanuit het dashboard */
.f-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 14px; color: var(--muted); }
.f-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft, rgba(42,111,176,.15)); color: var(--ink); font-weight: 700; font-size: 13px; text-decoration: none; }
.f-chip:hover { background: var(--line); }
.f-wis { font-size: 13px; }
.f-docs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.f-conts { display: flex; flex-wrap: wrap; gap: 8px; }
.f-cont { padding: 4px 10px; border-radius: 6px; background: var(--line); font-size: 13px; }
.facts-in { box-shadow: none; padding: 0; border: 0; background: none; }
.facts-in .fact { padding: 10px 0; }
/* Gegevens van een contract, levering of relatie als losse tegels: even breed, even hoog, netjes uitgelijnd (Ralph, 5 nov 2026) */
.tegels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.tegels .fact { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px 20px; min-height: 92px; min-width: 0; }
.tegels .fact b { overflow-wrap: anywhere; }
@media (max-width: 1100px) { .tegels { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .tegels { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .tegels .fact { padding: 12px 14px; min-height: 0; } }
.f-geen { color: var(--alert); font-weight: 700; }
.f-verlopen { color: var(--warn); font-weight: 700; }
.chart-box canvas.klikbaar { cursor: pointer; }
.tbl-vast .nm { font-family: var(--font); font-weight: 700; }
.dash-stack { display: grid; gap: 20px; align-content: start; }
.dash-stack .card { margin: 0; }
.chart-card .card-h { align-items: flex-start; flex-wrap: wrap; }
.chart-box { position: relative; height: 250px; }
.lg-chart { margin: 2px 0 0; flex-wrap: wrap; justify-content: flex-end; color: var(--ink-2); }
.lg-chart .dot { width: 9px; height: 9px; border-radius: 3px; }
.dash { display: inline-block; width: 16px; border-top: 2px dashed var(--ink-2); vertical-align: middle; }
.cols-6-4 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.share { height: 6px; border-radius: 4px; background: var(--line); width: 110px; overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 8px; }
.share span { display: block; height: 100%; background: #2a6fb0; border-radius: 4px; }
html[data-theme="dark"] .share span { background: #4f93da; }
.count { min-width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); font: 800 12.5px var(--font); padding: 0 8px; }
.alerts { list-style: none; margin: 0; padding: 0; }
.alerts li + li { border-top: 1px solid var(--line-2); }
.al a { display: flex; gap: 12px; align-items: flex-start; padding: 12px 2px; color: var(--ink); text-decoration: none; font-size: 14px; line-height: 1.45; font-weight: 500; }
.al a:hover { color: var(--ink); }
.al-ic { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 9px; font-size: 13px; background: var(--surface-2); color: var(--muted); }
.al-lvl { display: block; font: 800 12.5px var(--font); margin-bottom: 1px; }
.al-crit .al-ic { background: var(--alert-soft); color: var(--alert); } .al-crit .al-lvl { color: var(--alert); }
.al-serious .al-ic { background: var(--warn-soft); color: var(--warn); } .al-serious .al-lvl { color: var(--warn); }
.al-warn .al-ic { background: var(--warn-soft); color: var(--warn); } .al-warn .al-lvl { color: var(--warn); }
.al-info .al-ic { background: var(--accent-soft); color: var(--accent-ink); } .al-info .al-lvl { color: var(--accent-ink); }
.dash-note { margin-top: 4px; }

/* ---------- Weegbrug ---------- */
.wb { display: flex; flex-direction: column; gap: 16px; }
/* Weegbalk als gewone kaart, net als de rest van het portaal; het gewicht valt op door de grootte, niet door een donker vlak */
.wb-bar { display: flex; align-items: center; gap: 28px; padding: 18px 26px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); color: var(--ink); }
.wb-read { display: flex; align-items: baseline; gap: 10px; min-width: 330px; }
.wb-kg { font: 800 64px/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.bar-onstabiel .wb-kg { color: var(--warn); }
.bar-nul .wb-kg { color: var(--faint); }
.wb-unit { font: 700 20px var(--font); color: var(--muted); }
.wb-meta { display: flex; flex-direction: column; gap: 8px; }
.wb-st { display: inline-flex; align-items: center; gap: 8px; font: 800 16px var(--font); }
.st-stabiel { color: var(--ok); } .st-onstabiel { color: var(--warn); } .st-nul { color: var(--muted); } .st-fout, .st-geen { color: var(--alert); }
.bar-geen .wb-kg, .bar-fout .wb-kg { color: var(--faint); }
.wb-conn.off .dotc { background: var(--alert); }
.wb-conn { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.dotc { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }
.wb-lights { margin-left: auto; display: flex; gap: 10px; }
.light { display: flex; align-items: center; gap: 10px; border: 0; background: var(--surface-2); color: var(--ink); padding: 10px 14px 10px 10px; border-radius: 14px; cursor: pointer; font: 800 15px var(--font); min-height: 60px; }
.light:hover { background: var(--line); }
.lamp { display: flex; flex-direction: column; gap: 4px; padding: 5px; border-radius: 9px; background: var(--navy); }
.lamp i { width: 16px; height: 16px; border-radius: 50%; background: rgba(255,255,255,.14); transition: background .2s, box-shadow .2s; }
.lt-rood .l-r { background: #e25a4a; box-shadow: 0 0 10px rgba(226,90,74,.7); }
.lt-groen .l-g { background: #5fd38a; box-shadow: 0 0 10px rgba(95,211,138,.7); }
.wb-demo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-radius: 14px; border: 1px dashed var(--line); font-size: 13.5px; }
.wb-demo-l { font-weight: 800; color: var(--muted); margin-right: 4px; }
.wb-demo-l i { color: var(--accent-ink); }
.wb-demo .inp-sm { min-width: 260px; }
.site-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site { width: 100%; text-align: left; display: grid; gap: 3px; padding: 12px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); font: inherit; cursor: pointer; transition: background .15s, border-color .15s; }
.site:hover { background: var(--surface-2); }
.site.on { border-color: var(--accent); background: var(--accent-soft); }
.site-top { display: flex; justify-content: space-between; align-items: center; }
.plate { font: 800 15.5px var(--mono); letter-spacing: .02em; }
.site-rel { font-weight: 700; font-size: 13.5px; }
.site-mat { font-size: 12.5px; color: var(--muted); }
.site-bot { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.site-bot i { color: var(--faint); margin-right: 3px; }
.site.late .site-min { color: var(--warn); font-weight: 800; }
.site.late .site-min i { color: var(--warn); }
.dir { font: 800 11.5px var(--font); padding: 2px 7px; border-radius: 6px; letter-spacing: .03em; }
.dir-in { background: var(--accent-soft); color: var(--accent-ink); }
.dir-uit { background: rgba(123,116,214,.14); color: #6159c2; }
html[data-theme="dark"] .dir-uit { color: #a9a3f0; }
.wb-empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.wb-empty img { width: 220px; height: auto; opacity: .9; margin-bottom: 14px; }
.wb-empty h2 { margin-bottom: 6px; }
.dirs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.dirb { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 64px; border-radius: 14px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 800 17px var(--font); cursor: pointer; transition: background .15s, border-color .15s; }
.dirb i { color: var(--faint); }
.dirb:not(:disabled):hover { background: var(--surface-2); }
.dirb.on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.dirb.on i { color: inherit; }
.dirb:disabled:not(.on) { opacity: .4; cursor: default; }
.dirb:disabled.on { cursor: default; }
.wb-row { margin-top: 16px; }
.mlines { display: grid; gap: 8px; margin-bottom: 10px; }
.mline { display: grid; grid-template-columns: 22px minmax(0, 1fr) 130px 30px; gap: 8px 10px; align-items: center; padding: 10px 0; }
.mline + .mline { border-top: 1px solid var(--line-2); }
.mline-n { font: 800 13px var(--font); color: var(--muted); text-align: center; }
.mline-net { font: 800 15px var(--font); text-align: right; font-variant-numeric: tabular-nums; }
.mline-net .muted { font-weight: 600; font-size: 12.5px; }
.x-sm { width: 30px; height: 30px; border: 0; border-radius: 8px; background: var(--surface-2); color: var(--muted); cursor: pointer; }
.wb-weigh { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 10px; }
.wb-weigh .btn-xl { width: 100%; }
.mt-row { margin-top: 2px; }
.mt { display: grid; grid-template-columns: 160px 1fr; gap: 10px; }
.photos { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.photos img { border-radius: 9px; display: block; }
.photo-add { width: 96px; height: 66px; border-radius: 9px; border: 1px dashed var(--line); background: transparent; color: var(--muted); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font: 700 12.5px var(--font); }
.photo-add:hover { background: var(--surface-2); color: var(--ink); }
.photo-add.need { border: 2px dashed var(--warn); color: var(--warn); background: var(--warn-soft); }
.ph { position: relative; display: block; }
.ph-x { position: absolute; top: -8px; right: -8px; background: var(--surface); box-shadow: var(--shadow); }
.wstep h3 small.req { font: 700 11.5px var(--font); text-transform: uppercase; letter-spacing: .04em; color: var(--warn); margin-left: 6px; }
.hint.warn { color: var(--warn); }
.v-big { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; margin: 6px 0 14px; }
.v-big div { background: var(--surface-2); border-radius: 12px; padding: 14px 16px; }
.v-big span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 700; }
.v-big b { font: 800 24px var(--display); font-variant-numeric: tabular-nums; }
.v-big div:first-child b { font-size: 30px; }
.v-lines { list-style: none; padding: 0; margin: 0 0 6px; }
.v-lines li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.cancel-note { color: var(--alert); font-weight: 700; margin: 0 0 12px; }
.tare-cmp { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.tare-cmp > div:not(.arrow) { flex: 1; background: var(--surface-2); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; }
.tare-cmp span { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.tare-cmp b { font: 800 22px var(--display); }
.tare-cmp .arrow { color: var(--faint); }
.bon-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

/* De bon zelf is altijd papier: licht, ook in donkere modus */
.bon { background: #fff; color: #102b4f; border-radius: 10px; padding: 16px 16px 12px; font-size: 12.5px; line-height: 1.45; border: 1px solid rgba(16,43,79,.1); }
.bon-h { margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid rgba(16,43,79,.12); }
.bon-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.bon-top img { display: block; width: 56%; max-width: 250px; height: auto; flex: 0 1 auto; min-width: 0; }
.bon-top .bon-ttl { flex: 0 1 auto; min-width: 0; }
.bon-adr { margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(16,43,79,.06); font-size: 10.5px; line-height: 1.5; color: #6c7a90; }
.bon-ttl { text-align: right; display: flex; flex-direction: column; }
.bon-ttl b { font-size: 16px; }
.bon-ttl span { font-size: 12px; color: #3d5170; }
.bon-h i { font-style: normal; color: #9aa5b6; }
.bon-int small { color: #9aa5b6; }
.bon-dl { display: grid; grid-template-columns: 110px 1fr; gap: 3px 8px; margin: 0 0 10px; }
.bon-dl dt { color: #6c7a90; }
.bon-dl dd { margin: 0; font-weight: 700; }
.bon-t { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.bon-t th { text-align: left; color: #6c7a90; font-weight: 700; padding: 4px 0; border-bottom: 1px solid rgba(16,43,79,.12); }
.bon-t td { padding: 4px 0; border-bottom: 1px solid rgba(16,43,79,.06); vertical-align: top; }
.bon-t .r { text-align: right; padding-left: 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bon-t th.r { white-space: normal; }
.bon-t .b { font-weight: 800; }
.bon-t small { display: block; color: #6c7a90; }
.bon-t tfoot td { font-weight: 800; border-bottom: 0; border-top: 1px solid rgba(16,43,79,.2); }
.bon-t .pend td { color: #9aa5b6; font-style: italic; }
.bon-sum td { font-weight: 700; }
.bon-note { margin: 6px 0; color: #3d5170; }
.bon-f { display: flex; justify-content: space-between; gap: 8px; color: #6c7a90; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(16,43,79,.1); }
.bon-addr { color: #9aa5b6; font-size: 11px; margin-top: 4px; }
.bon-x .bon-dl, .bon-x .bon-t { opacity: .5; text-decoration: line-through; }
.bon-cancel { color: #b4400f; font-weight: 800; margin-bottom: 8px; }
.bon-cancel small { display: block; font-weight: 600; }
.modal-b .bon { margin-bottom: 4px; }
.wb-today { margin: 0; }
.today-h { width: 100%; display: flex; align-items: center; gap: 14px; padding: 18px 24px; border: 0; background: none; color: var(--ink); cursor: pointer; font: inherit; text-align: left; }
.today-h h2 { margin: 0; }
.today-h i { margin-left: auto; color: var(--muted); }
.today-b { border-top: 1px solid var(--line-2); }
.tbl td > a > b, .tbl td.mono, .tbl .mono { white-space: nowrap; }
.tbl tr.is-x td { color: var(--faint); text-decoration: line-through; }
.tbl tr.sel td { background: var(--accent-soft); }
.tots { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-2); }
.tot { padding: 16px 24px 20px; }
.tot + .tot { border-left: 1px solid var(--line-2); }
.tot h3 { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.tot ul { list-style: none; margin: 0; padding: 0; }
.tot li { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; }
.tot li b { font-variant-numeric: tabular-nums; }
.tot li.sum { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 8px; font-weight: 800; }

/* Printen: alleen de bon */
#print-area { display: none; }
@media print {
  body.printing > *:not(#print-area) { display: none !important; }
  body.printing #print-area { display: block; }
  body.printing, html:has(body.printing) { background: #fff !important; }
  #print-area .bon { border: 0; max-width: 560px; margin: 0 auto; font-size: 13px; }
}



/* Type weging, stralingsdetectie, materiaalregels en verpakking (fase 2) */
/* Stralingspoort: goedgekeurd zacht groen, afgekeurd zacht rood (bewuste uitzondering op 'geen rood': dit is een veiligheidsmelding) */
.seg-o input[name="f-rad"][value="goedgekeurd"]:checked + span { background: #e3f1e7; color: #2c6b43; box-shadow: inset 0 0 0 1px #b9dcc4; }
.seg-o input[name="f-rad"][value="afgekeurd"]:checked + span { background: #f7e1df; color: #a2372e; box-shadow: inset 0 0 0 1px #e8bdb8; }
html[data-theme="dark"] .seg-o input[name="f-rad"][value="goedgekeurd"]:checked + span { background: rgba(116,207,149,.18); color: #a6e3bb; box-shadow: inset 0 0 0 1px rgba(116,207,149,.35); }
html[data-theme="dark"] .seg-o input[name="f-rad"][value="afgekeurd"]:checked + span { background: rgba(232,120,110,.2); color: #f2b3ac; box-shadow: inset 0 0 0 1px rgba(232,120,110,.4); }
.rad-ok i { color: var(--ok); }
.lines-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.lines-h .lbl { margin: 0; }
.mline .packs { grid-column: 2 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.pk { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pk select.inp { width: 220px; height: 38px; font-size: 14px; }
.pk input.inp { width: 76px; height: 38px; font-size: 14px; }
.pk .muted { font-size: 13px; }
.link.small { font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
.kg-in { display: inline-flex; align-items: center; gap: 6px; }
.kg-in .inp { width: 100px; height: 40px; text-align: right; font-weight: 800; }
.kg-in span { font-weight: 600; font-size: 13px; color: var(--muted); }
.dist { margin: 10px 0 0; font-size: 14px; font-weight: 700; }
.dist .ok { color: var(--ok); } .dist .warn { color: var(--warn); } .dist i { margin-right: 4px; }
.site-type { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 700; }
.badge.b-afgekeurd { --st: var(--alert); }
.tbl tr.is-afk td { color: var(--muted); }
.afk { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 12px; background: var(--alert-soft); margin: 6px 0 16px; }
.afk-ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--surface); color: var(--alert); font-size: 18px; }
.afk p { margin: 4px 0 6px; }
/* T182: gestort en later gesorteerd */
.badge.b-later { --st: var(--warn); }
.wb-home .wb-verdeel { grid-column: 1 / -1; }
.wb-col-ic.later { background: var(--warn-soft); color: var(--warn); }
.wb-col-h h2 .count { display: inline-grid; vertical-align: middle; margin-left: 6px; }
.v-open { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 12px; background: var(--warn-soft); margin: 6px 0 16px; }
.v-open > i, .v-open > svg { color: var(--warn); font-size: 20px; flex: none; }
.v-open > div { flex: 1; } .v-open p { margin: 4px 0 0; color: var(--muted); }
.bon-rad { margin: 6px 0; color: #2f6b45; }
.bon-rad span { color: #6c7a90; white-space: nowrap; }
@media (max-width: 760px) { .mline { grid-template-columns: 22px minmax(0, 1fr) 30px; } .mline-net { grid-column: 2 / 3; text-align: left; } .pk select.inp { width: 100%; } }

/* Terugvalstand */
.wb-fb { display: flex; gap: 14px; align-items: flex-start; padding: 14px 18px; border-radius: 14px; background: var(--alert-soft); color: var(--alert); }
.wb-fb i { font-size: 18px; margin-top: 2px; }
.wb-fb b { display: block; } .wb-fb span { color: var(--ink-2); font-size: 14px; }
.fb-in { padding: 14px; border-radius: 12px; background: var(--alert-soft); }
.bon-man { margin: 6px 0; color: #b4400f; font-weight: 700; }


/* ---------- Menu links (marineblauw zoals fairmetals.nl) ---------- */
body.in { --side-w: 248px; padding-left: var(--side-w); }
body.in.side-is-mini { --side-w: 76px; }
.side { position: fixed; top: 0; bottom: 0; left: 0; width: var(--side-w); z-index: 40; display: flex; flex-direction: column; gap: 6px; padding: 22px 14px 14px; background: var(--navy); color: #fff; overflow-y: auto; overflow-x: hidden; transition: width .18s; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
html[data-theme="dark"] .side { background: #102b4f; box-shadow: 1px 0 0 rgba(255,255,255,.09); }
/* Bij een laag scherm scrolt het menu, in plaats van dat het logo en de knoppen in elkaar gedrukt worden */
.side > * { flex-shrink: 0; }
.side-brand { display: block; padding: 0 8px 22px; overflow: hidden; }
.side-brand img { display: block; height: 43px; width: auto; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: 10px; color: rgba(255,255,255,.74); font-weight: 700; font-size: 14.5px; text-decoration: none !important; white-space: nowrap; transition: background .15s, color .15s; }
.side-nav a i { width: 20px; flex: none; text-align: center; font-size: 15px; color: rgba(255,255,255,.5); transition: color .15s; }
.side-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-nav a:hover i { color: rgba(255,255,255,.8); }
.side-nav a.on { background: rgba(255,255,255,.11); color: #fff; }
.side-nav a.on i { color: #a9c6ea; }
.side :focus-visible { outline-color: #a9c6ea; }
.side-low { margin-top: auto; display: flex; flex-direction: column; gap: 6px; padding-top: 18px; }
.side-label { display: block; padding: 0 12px 6px; font: 700 11.5px var(--font); letter-spacing: .09em; text-transform: uppercase; color: rgba(255,255,255,.42); white-space: nowrap; }
.side-foot { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.side .lang { align-self: flex-start; margin: 0 4px 4px; background: rgba(255,255,255,.07); }
.side .lang button { color: rgba(255,255,255,.7); }
.side .lang button.on { background: rgba(255,255,255,.16); color: #fff; }
.side .user { padding: 6px; border-radius: 12px; color: #fff; }
.side .user:hover, .side .user.open { background: rgba(255,255,255,.06); }
.side .avatar { background: rgba(169,198,234,.18); color: #dbe7f5; flex: none; }
.side .user-txt { min-width: 0; flex: 1; }
.side .user-txt b, .side .user-txt small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side .user-txt small { color: rgba(255,255,255,.55); }
.side .user > i { color: rgba(255,255,255,.5); font-size: 14px; padding: 0 4px; }
.side .menu { position: fixed; left: calc(var(--side-w) + 10px); right: auto; top: auto; bottom: 14px; color: var(--ink); }
.side-acts { display: flex; flex-direction: column; gap: 2px; }
.side-btn { display: flex; align-items: center; gap: 12px; width: 100%; height: 38px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: rgba(255,255,255,.74); font: 700 13.5px var(--font); cursor: pointer; white-space: nowrap; text-align: left; }
.side-btn i { width: 20px; text-align: center; color: rgba(255,255,255,.5); }
.side-btn:hover, .demo-sw.open .side-btn { background: rgba(255,255,255,.06); color: #fff; }
.demo-sw { position: relative; }
.demo-sw.open .demo-menu { display: block; }
.side .demo-menu { bottom: 60px; width: 320px; max-height: calc(100vh - 80px); overflow-y: auto; }
.demo-menu button { align-items: center; }
.demo-menu button span { display: flex; flex-direction: column; line-height: 1.3; flex: 1; min-width: 0; }
.demo-menu button small { color: var(--muted); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.demo-menu button.on { background: var(--accent-soft); }
.demo-menu button > i:last-child { width: auto; color: var(--accent-ink); }
.side-is-mini .side-btn { justify-content: center; padding: 0; }
.side-is-mini .side-btn span { display: none; }
.side-mini { display: flex; align-items: center; gap: 12px; height: 36px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: rgba(255,255,255,.5); font: 600 13px var(--font); cursor: pointer; white-space: nowrap; }
.side-mini i { width: 20px; text-align: center; transition: transform .18s; }
.side-mini:hover { color: #fff; background: rgba(255,255,255,.06); }
/* Ingeklapt: alleen pictogrammen */
.side-is-mini .side { padding-left: 12px; padding-right: 12px; }
.side-is-mini .side-brand { padding: 0 2px 22px; }
.side-is-mini .side-brand img { width: 46px; object-fit: cover; object-position: left center; }
.side-is-mini .side-nav a, .side-is-mini .side-mini { justify-content: center; padding: 0; }
.side-is-mini .side-nav a span, .side-is-mini .side-mini span, .side-is-mini .user-txt, .side-is-mini .user > i, .side-is-mini .side .lang { display: none; }
.side-is-mini .side-label { font-size: 0; padding: 0; height: 1px; margin: 4px 10px 8px; background: rgba(255,255,255,.12); }
.side-is-mini .side-mini i { transform: rotate(180deg); }
.side-is-mini .side-is-mini .side .user { justify-content: center; }
/* Inhoud naast het menu: meer breedte dan met de bovenbalk */
body.in .wrap { max-width: none; }
.main { min-height: 100vh; }
.mtop, .side-back { display: none; }
@media (max-width: 1020px) {
  body.in, body.in.side-is-mini { --side-w: 264px; padding-left: 0; }
  .mtop { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 30; height: 60px; padding: 0 16px; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-2); }
  .mtop .nav-toggle { display: grid; place-items: center; margin: 0; }
  .mtop .brand img { height: 30px; width: auto; display: block; }
  .side { transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  body.nav-open .side { transform: none; }
  body.nav-open .side-back { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(7,27,53,.45); }
  .side-mini { display: none; }
  .side-is-mini .side-nav a span, .side-is-mini .side-mini span, .side-is-mini .user-txt, .side-is-mini .user > i { display: revert; }
  .side-is-mini .side-nav a { justify-content: flex-start; padding: 0 12px; }
  .side-is-mini .side-brand img { width: auto; }
  .side .menu { left: 14px; right: 14px; bottom: 14px; }
  .side .demo-menu { width: auto; bottom: 14px; }
  .side-is-mini .side-btn { justify-content: flex-start; padding: 0 12px; }
  .side-is-mini .side-btn span { display: revert; }
}

/* ---------- Leveranciers en verwerkers ---------- */
.per { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.per-dates { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.per-dates label { display: inline-flex; align-items: center; gap: 8px; }
.per-k { margin: 18px 0 0; }
.per-k .kpi { cursor: default; }
.pad-x { padding: 0 24px 18px; margin: 0; }

/* ---------- Beheer ---------- */
.b-tabs { margin: -6px 0 20px; }
.b-note { margin: 14px 0 0; }
.tbl-plain td { padding: 10px 0; } .tbl-plain td + td { padding-left: 20px; }
.b-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.b-chips li { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); font-weight: 700; font-size: 13.5px; }
.b-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; font-size: 14px; }
.b-dl dt { color: var(--muted); } .b-dl dd { margin: 0; }
.b-add { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 24px 16px; }
.b-add .inp-sm { width: 160px; }
.b-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.b-links .card { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.b-links .card p { margin: 0; font-size: 14px; }
.b-link-h { display: flex; gap: 14px; align-items: flex-start; }
.b-ic { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); color: var(--ink-2); font-size: 17px; }
.b-st { display: block; margin-top: 4px; }
.b-src { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 6px; }
.b-search { width: 320px; max-width: 100%; }
.b-fb { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.b-fb b { display: block; font-size: 14px; } .b-fb.on { background: var(--alert-soft); } .b-fb.on b { color: var(--alert); }
@media print { .side, .mtop, .side-back { display: none !important; } body.in { padding-left: 0; } }

/* ---------- Weegbrug: rustige opzet (21 okt) ----------
   Overzicht met twee even grote kolommen en overal dezelfde tegel; werkscherm met genummerde stappen. */
.wb { gap: 18px; }
@media (min-width: 1021px) { .wb-bar { position: sticky; top: 12px; z-index: 20; box-shadow: 0 -12px 0 6px var(--bg), 0 10px 28px rgba(16,43,79,.16); } }
.wb-st { font-size: 19px; }
.wb-meta { gap: 6px; }
.wb-demo { padding: 8px 12px; font-size: 13px; }
.wb-src { margin: 2px 0 0; font-size: 12.5px; color: var(--faint); display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.wb-src select { font: inherit; color: var(--muted); background: transparent; border: 0; border-bottom: 1px dashed var(--line); padding: 2px 0; cursor: pointer; }
.wb-src select option { color: #102b4f; }

.wb-home { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.wb-col { margin: 0; padding: 22px 24px; display: flex; flex-direction: column; }
.wb-col-h { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; align-items: center; min-height: 56px; }
.wb-col-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-size: 20px; }
.wb-col-ic.out { background: rgba(123,116,214,.14); color: #6159c2; }
html[data-theme="dark"] .wb-col-ic.out { color: #a9a3f0; }
.wb-col-h h2 { margin: 0; }
.wb-col-h p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.wb-list-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 10px; min-height: 30px; }
.wb-list-h h3 { margin: 0; font: 700 14.5px var(--font); color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tile { width: 100%; min-height: 96px; display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 16px 14px 18px; border-radius: 14px; border: 1px solid transparent; background: var(--surface-2); color: var(--ink); font: inherit; text-align: left; }
button.tile { cursor: pointer; transition: border-color .15s, background .15s, transform .1s; }
button.tile:hover { border-color: var(--accent); background: var(--accent-soft); }
button.tile:active { transform: scale(.995); }
.tile-when { display: flex; flex-direction: column; gap: 2px; }
.tile-when b { font: 800 22px var(--display); font-variant-numeric: tabular-nums; }
.tile-when small { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.tile.late .tile-when small { color: var(--warn); }
.tile-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.tile-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tile-type { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.tile-rel { font-weight: 800; font-size: 16.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-sub { font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-sub .warn { color: var(--warn); }
.tile-go { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px 0 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 800; font-size: 15px; white-space: nowrap; }
button.tile:hover .tile-go { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.tile-later { opacity: .72; }
.tile.flash { border-color: var(--accent); background: var(--accent-soft); animation: wbflash 1.4s ease 3; }
@keyframes wbflash { 50% { box-shadow: 0 0 0 5px var(--accent-soft); } }
.tiles-empty { padding: 26px 18px; border-radius: 14px; border: 1px dashed var(--line); color: var(--muted); text-align: center; line-height: 1.6; }
.wb-list-f { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }
.wb-list-f i { color: var(--ok); margin-right: 4px; }

/* Kenteken als echte gele plaat: dat herkent iedereen op de werf */
.kplaat { display: inline-block; font: 800 15px var(--mono); letter-spacing: .04em; color: #102b4f; background: #f3cd2c; border-radius: 5px; padding: 3px 9px; border: 1px solid rgba(16,43,79,.25); white-space: nowrap; }
.kplaat.big { font-size: 22px; padding: 6px 14px; border-radius: 7px; }

.wb-workwrap { width: 100%; display: flex; flex-direction: column; gap: 14px; }
.wb-work-h { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wb-work { display: grid; gap: 18px; align-items: start; }
.with-bon .wb-work { grid-template-columns: minmax(0, 1fr) 420px; }
.wb-form { margin: 0; padding: 26px 30px 28px; }
.wb-form-h { margin-bottom: 14px; }
.wb-form-h h2 { margin: 0; font-size: 25px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wb-bon { margin: 0; padding: 18px; position: sticky; top: 140px; }

.wstep { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-top: 1px solid var(--line-2); }
.wstep-n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); font: 800 17px var(--font); }
.wstep.done .wstep-n { background: var(--accent-soft); color: var(--accent-ink); }
.wstep-b { min-width: 0; }
.wstep-b h3 { margin: 8px 0 14px; font-size: 18px; }
.wstep-b > .hint { margin-top: 10px; }
.wstep-weigh .wstep-n { background: var(--primary); color: var(--on-primary); }
.wstep-weigh .wstep-b { display: flex; flex-direction: column; gap: 10px; }
.wstep-weigh .wstep-b h3 { margin-bottom: 4px; }
.wstep-weigh .btn-xl { width: 100%; }
.types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.type-t { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-height: 108px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background .15s, border-color .15s; }
.type-t i { font-size: 20px; color: var(--accent-ink); margin-bottom: 8px; }
.type-t b { font-size: 16.5px; }
.type-t small { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.type-t:hover { background: var(--surface-2); }
.type-t.on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.type-t.on i, .type-t.on small { color: inherit; }
.type-t.on small { opacity: .8; }
.io { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.io .lbl { margin: 0; }
.seg-lg .seg-o span { padding: 12px 18px; font-size: 15.5px; }
.lines-h { margin-bottom: 8px; }
.wb-extra { margin-top: 4px; border-top: 1px solid var(--line-2); padding-top: 14px; }
.wb-extra summary { cursor: pointer; font-weight: 700; color: var(--ink-2); padding: 6px 0; }
.wb-extra summary i { color: var(--faint); margin-right: 4px; }
.wb-extra[open] summary { margin-bottom: 12px; }
.wb-cancel { margin: 18px 0 0; text-align: center; }
.wb-cancel .link { color: var(--muted); font-weight: 600; }

.rit-sum { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 18px; border-radius: 14px; background: var(--surface-2); margin-bottom: 8px; }
.rit-who { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rit-who b { font-size: 17px; }
.rit-who > span { font-size: 13.5px; color: var(--ink-2); }
.rit-who .rad-ok { color: var(--muted); }
.rad-ok i { color: var(--ok); }
.rit-first { text-align: right; display: flex; flex-direction: column; }
.rit-first span { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.rit-first b { font: 800 24px var(--display); font-variant-numeric: tabular-nums; }
.rit-first small { color: var(--muted); }
.wb-done-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.v-one { font-weight: 700; margin: 0; }
.wb-done-acts .wide { grid-column: 1 / -1; }

.today-h .today-sum { display: flex; gap: 8px 20px; flex-wrap: wrap; color: var(--ink-2); font-size: 14.5px; }
.today-h .today-k i { margin: 0 4px 0 0; color: var(--faint); }
.today-h .today-more { margin-left: auto; display: inline-flex; gap: 8px; align-items: center; color: var(--accent-ink); font-weight: 700; font-size: 14px; white-space: nowrap; }
.today-h .today-more i { margin: 0; color: inherit; }

@media (max-width: 1180px) { .with-bon .wb-work { grid-template-columns: 1fr; } .wb-bon { position: static; } }
@media (max-width: 1020px) { .wb-home { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .types { grid-template-columns: 1fr 1fr; }
  .wb-form { padding: 18px; }
  .wstep { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
  .wstep-n { width: 32px; height: 32px; font-size: 15px; }
  .wstep-b h3 { margin-top: 4px; }
  .rit-sum { grid-template-columns: 1fr; gap: 10px; } .rit-first { text-align: left; }
  .wb-done-acts { grid-template-columns: 1fr; }
  .wb-col { padding: 18px; }
  .wb-col-h { grid-template-columns: 40px minmax(0, 1fr); } .wb-col-ic { width: 40px; height: 40px; font-size: 17px; }
  .wb-col-h .btn { grid-column: 1 / -1; width: 100%; }
  .tile { grid-template-columns: 62px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .tile-go { grid-column: 1 / -1; justify-content: center; }
  .tile-sub { white-space: normal; }
  .wb-work-h .btn { flex: 1; }
  .today-h { flex-wrap: wrap; }
}

/* ---------- Kleinere schermen ---------- */
@media (max-width: 1180px) {
  .reg { grid-template-columns: 1fr; } .reg-side { position: static; }
  .kpis-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cols-6-4 { grid-template-columns: 1fr; }
}
@media (max-width: 1020px) {
  .lg-main { grid-template-columns: 1fr; gap: 10px; }
  .lg-art { margin: 0 -24px; }
  .lg-site { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols, .dash-grid { grid-template-columns: 1fr; }
  .quick { grid-template-columns: 1fr; }
  .inv { grid-template-columns: 1fr; } .mail { border-left: 0; border-top: 1px solid var(--line-2); border-radius: 0 0 18px 18px; }
  .wb-bar { flex-wrap: wrap; gap: 14px; } .wb-lights { margin-left: 0; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  h1, .hero h1 { font-size: 25px; }
  .lg-top { height: 76px; } .lg-logo { height: 36px; }
  .lg-intro { font-size: 15.5px; margin-bottom: 18px; }
  .lp-card { padding: 22px 18px; }
  .main { padding-top: 22px; }
  .kpis, .kpis-3, .kpis-5 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 14px; } .kpi-val, .kpis-5 .kpi-val { font-size: 22px; }
  .g2, .g3, .g-price { grid-template-columns: 1fr; }
  .reg-form { padding: 4px 16px 20px; }
  .step { grid-template-columns: 1fr; gap: 10px; }
  .step-n { display: none; }
  .search { min-width: 0; width: 100%; }
  .tabs { width: 100%; } .tabs a { flex: 1; justify-content: center; }
  .kbd-hint { display: none; }
  .actions .btn { width: 100%; }
  .card { padding: 18px; }
  .card-h.pad { padding: 16px 18px 4px; }
  .brand img { height: 30px; }
  .hdr-in { gap: 12px; }
  .ftr-note { margin-left: 0; }
  .cust-grid { grid-template-columns: 1fr; }
  .wb-kg { font-size: 48px; } .wb-read { min-width: 0; }
  .tots { grid-template-columns: 1fr; } .tot + .tot { border-left: 0; border-top: 1px solid var(--line-2); }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Meekijken: balk bovenin zolang een medewerker als klant meekijkt (29 okt) */
.mk-bar { position: sticky; top: 0; z-index: 40; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 9px 20px; background: #c8102e; color: #fff; font: 600 14px var(--font); }
.mk-bar > span { flex: 1 1 320px; min-width: 0; }
.mk-bar b { font-weight: 800; }
.mk-stop { flex: none; display: inline-flex; align-items: center; gap: 7px; background: #fff; color: #a10d25; border: 0; border-radius: 999px; padding: 6px 14px; font: 800 13.5px var(--font); cursor: pointer; }
.mk-stop:hover { background: #fde8eb; }
.mk-search { margin: 6px 26px 10px; min-width: 0; }
.mk-list { list-style: none; margin: 0; padding: 0 14px 18px; max-height: 420px; overflow: auto; }
.mk-list button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.mk-list button:hover, .mk-list button:focus-visible { background: var(--accent-soft); }
.mk-list button > .fa-arrow-right { color: var(--faint); }
.mk-ic { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--accent-ink); }
.mk-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mk-who small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Rollen: raster met rollen als kolommen en functies als rijen (29 okt) */
.tbl.rg th, .tbl.rg td { text-align: center; }
.tbl.rg thead th { white-space: normal; min-width: 104px; vertical-align: bottom; }
.tbl.rg thead th small { display: block; font-weight: 600; color: var(--accent-ink); }
.tbl.rg thead th.rg-ik { color: var(--ink); }
.tbl.rg th[scope="row"], .tbl.rg thead th:first-child { text-align: left; position: sticky; left: 0; background: var(--surface); z-index: 1; min-width: 240px; white-space: normal; font: 400 14px var(--font); color: var(--ink); }
.tbl.rg th[scope="row"] small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.tbl.rg thead th:first-child { font: 700 12.5px var(--font); color: var(--muted); }
.tbl.rg tr.rg-groep th { text-align: left; position: static; background: var(--surface-2); font: 800 11.5px var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 8px 16px; }
.tbl.rg td { padding: 8px 10px; }
.rg-cel { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; border: 1.5px solid var(--line); cursor: pointer; transition: background .15s, border-color .15s; }
.rg-cel input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rg-cel span { display: none; color: var(--on-primary); font-size: 15px; }
.rg-cel.on { background: var(--primary); border-color: var(--primary); }
.rg-cel.on span { display: block; }
.rg-cel:hover { border-color: var(--primary); }
.rg-cel:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.rg-cel:has(input:disabled) { cursor: default; opacity: .55; }
.rg-cel:has(input:disabled):hover { border-color: var(--line); }
.rg-cel.on:has(input:disabled):hover { border-color: var(--primary); }

/* Inloggen via de server (29 okt): code per mail, wachtwoord vergeten, beheer van gebruikers en mails */
.inp-code { font: 700 26px/1.2 var(--mono, monospace); letter-spacing: .3em; text-align: center; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm, 10px); background: var(--surface); color: var(--ink); }
.inp-code:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-ok { color: var(--ok); font-weight: 600; margin: 8px 0 12px; }
.form-ok:empty, .form-err:empty { display: none; }
.lg-more { margin-top: 16px; font-size: 14px; }
.btn.is-busy { opacity: .7; cursor: progress; }
.ct .acts { white-space: nowrap; text-align: right; }
.ct .acts .btn + .btn { margin-left: 6px; }
.tbl td.acts { text-align: right; }
.tbl td.acts .btn { margin: 2px 0 2px 6px; }
.b-h3 { font: 800 13px var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 26px 0 10px; }
.ml-list { padding: 0; overflow: hidden; }
.ml-row { padding: 18px 22px; border-top: 1px solid var(--line); }
.ml-row:first-child { border-top: 0; }
.ml-row.open { background: var(--surface-2); }
.ml-head { display: flex; gap: 18px; align-items: center; justify-content: space-between; }
.ml-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ml-info b { font-size: 16px; }
.ml-info > span { color: var(--muted); font-size: 14px; }
.ml-info .ml-talen { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.ml-talen i { color: var(--muted); }
.ml-aang { font-style: normal; color: var(--warn); font-weight: 700; }
.ml-body { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.ml-head .btn { flex: none; }
@media (max-width: 640px) { .ml-head { flex-direction: column; align-items: flex-start; } }
.ml-text { font: 14px/1.55 var(--mono, monospace); min-height: 260px; resize: vertical; }
.ml-row code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: 12.5px; }
.pad { padding: 4px 26px 22px; }

/* Ophalen uit Zoho CRM */
.crm-imp { display: flex; flex-direction: column; gap: 12px; }
.ci-uitleg { margin: 0; }
.ci-bar { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.ci-bar .search { flex: 1 1 260px; }
.ci-bulk { display: inline-flex; align-items: center; gap: 8px; }
.ci-list { max-height: 46vh; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-sm); }
.ci-list .tbl td { vertical-align: middle; }
.ci-list .ck { width: 36px; }
.ci-list tr.is-off td { color: var(--muted); }
.ci-uitkomst { padding: 12px 14px; border-radius: var(--r-sm); background: var(--warn-soft); font-size: 14px; }

/* T180: weegplateau, balie en kasbon */
.wb-plaats { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.wb-plaats .lbl { margin: 0; }
.wb-home .wb-balie { grid-column: 1 / -1; }
.balie-zoek { display: flex; gap: 10px; margin-top: 14px; max-width: 520px; }
.balie-zoek .inp { flex: 1; font-size: 22px; letter-spacing: .04em; }
.pl-start { margin-bottom: 18px; }
.pl-line { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto 130px 30px; gap: 8px 10px; align-items: center; padding: 10px 0; }
.pl-line + .pl-line { border-top: 1px solid var(--line-2); }
.pl-geld { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.pl-tot { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.pl-tot div, .pl-te { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--surface-2); }
.pl-tot span, .pl-te span { color: var(--muted); font-size: 13px; font-weight: 700; }
.pl-tot b, .pl-te b { font: 800 26px var(--display, var(--font)); font-variant-numeric: tabular-nums; }
.pl-te { margin: 16px 0 4px; }
.pl-al { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0 4px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--ok-soft); color: var(--ok); }
.pl-al div { display: flex; flex-direction: column; color: var(--ink); }
.pl-klaar { text-align: center; padding: 40px 28px; }
.pl-ok { font-size: 64px; color: var(--ok); }
.pl-klaar h2 { font-size: 34px; margin: 14px 0 8px; }
.pl-klaar > p.muted { font-size: 19px; }
.pl-nr { font-size: 96px; font-weight: 800; letter-spacing: .06em; margin: 18px 0 8px; line-height: 1; }
.pl-klaar > p:not(.muted) { font-size: 26px; font-weight: 800; }
.pl-klaar .pl-acts.drie { max-width: 820px; }
.pl-klaar .pl-acts .btn { min-height: 96px; font-size: 24px; }
.pl-klaar .wb-done-acts { justify-content: center; }
@media (max-width: 760px) { .pl-line { grid-template-columns: 22px 1fr; } .pl-line > *:nth-child(n+3) { grid-column: 2; } .wb-plaats { align-items: flex-start; } }
/* Weegplateau als touchscreen: de bediener staat buiten bij het hokje. Grote tegels en knoppen, alles op één scherm. */
.pl-kop { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.pl-kop h1 { margin: 0; }
.pl-kop .wb-plaats .lbl { display: none; }
.pl .wb-bar { padding-top: 14px; padding-bottom: 14px; }
.pl-tarra { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--surface-2); font-size: 15px; font-weight: 800; color: var(--ink-2); }
.pl-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 16px; align-items: start; margin-bottom: 16px; }
.pl-card { padding: 22px; }
.pl-card h2 { font-size: 22px; margin: 0 0 4px; }
.pl-sub { color: var(--muted); font-size: 15px; margin: 0 0 16px; min-height: 1.4em; }
.pl-sub.warn { color: var(--warn); font-weight: 700; }
.pl-soort { display: grid; gap: 14px; }
.pl-soort .type-t { min-height: 150px; padding: 22px; border-radius: 16px; }
.pl-soort .type-t i { font-size: 32px; }
.pl-soort .type-t b { font-size: 24px; }
.pl-soort .type-t small { font-size: 15.5px; }
.pl-tegels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pl-tegels button { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 8px; min-height: 124px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: inherit; text-align: left; cursor: pointer; touch-action: manipulation; transition: transform .08s, background .15s; }
.pl-tegels button:active:not(:disabled) { transform: scale(.97); background: var(--primary); color: var(--on-primary); }
.pl-tegels button b { font-size: 18.5px; line-height: 1.2; }
.pl-tegels button small { color: var(--muted); font-size: 14.5px; font-weight: 700; }
.pl-tegels .dot { width: 16px; height: 16px; border-radius: 50%; }
.pl-tegels button.on { border-color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary); }
.pl-tegels .n { position: absolute; top: 12px; right: 12px; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 15px; background: var(--primary); color: var(--on-primary); font-size: 14px; font-weight: 800; display: grid; place-items: center; }
.pl-tegels .zoek { border-style: dashed; background: transparent; align-items: center; justify-content: center; color: var(--ink-2); }
.pl-tegels .zoek i { font-size: 26px; }
.pl-tegels.uit button:not(.zoek) { opacity: .45; cursor: not-allowed; }
.pl-tegels.klein button { min-height: 90px; }
.pl-tip { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; color: var(--muted); font-size: 14.5px; }
.pl-soortkop { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; font-weight: 800; color: var(--ink-2); margin-bottom: 8px; }
.pl-regels { margin-bottom: 14px; }
.pl-r { display: grid; grid-template-columns: minmax(0, 1fr) auto 44px; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.pl-r b { font-size: 16px; }
.pl-r small { display: block; color: var(--muted); font-size: 13px; }
.pl-r .w { font: 800 20px var(--display, var(--font)); font-variant-numeric: tabular-nums; text-align: right; }
.pl-r .we { display: flex; flex-direction: column; align-items: flex-end; }
.pl-r .e { font-weight: 700; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pl-x { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: none; color: var(--muted); font-size: 16px; cursor: pointer; }
.pl-leeg { color: var(--muted); font-size: 15px; padding: 18px 0; margin: 0; border-bottom: 1px solid var(--line-2); }
.pl-tot small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 700; margin-top: 2px; }
.pl-tot .krap small { color: var(--warn); }
.pl-teveel-b { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: 14px; background: var(--surface-2); border: 2px solid var(--danger, #e05a4f); margin-bottom: 14px; }
.pl-teveel-b i { font-size: 34px; color: var(--danger, #e05a4f); }
.pl-teveel-b b { display: block; font: 800 32px var(--display, var(--font)); }
.pl-teveel-b span { font-size: 16px; }
.pl-teveel p { font-size: 16.5px; }
.pl-tot b.sm { font-size: 21px; }
.pl-acts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 10px; }
.pl-acts.een { grid-template-columns: 1fr; }
.pl-acts.drie { grid-template-columns: 1fr 1fr; max-width: 640px; margin: 18px auto 0; }
.pl-acts .btn { min-width: 0; white-space: normal; line-height: 1.2; min-height: 76px; font-size: 19px; border-radius: 16px; padding: 0 22px; }
.pl-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; }
.pl-links .link { font-size: 15.5px; padding: 8px 0; }
.pl-geenfav { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; margin: 0 0 12px; border-radius: 14px; border: 1px dashed var(--line); font-size: 15px; color: var(--ink-2); }
.pl-geenfav i { color: var(--warn); margin-top: 3px; }
.pr-lijst { max-height: 55vh; overflow: auto; }
.pl-ander { display: grid; gap: 12px; }
.pl-ander .inp { height: 58px; font-size: 17px; }
.pl-arts { display: grid; gap: 8px; max-height: 60vh; overflow: auto; }
.pl-art { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.pl-art-k { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 64px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.pl-art-k b { font-size: 16.5px; }
.pl-art-k small { color: var(--muted); font-weight: 700; }
.pl-art-k .dot { width: 14px; height: 14px; border-radius: 50%; }
.pl-ster { display: inline-flex; gap: 8px; align-items: center; justify-content: center; width: 180px; min-height: 64px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: none; color: var(--muted); font: 700 14.5px var(--font); cursor: pointer; }
.pl-ster.aan { color: var(--warn); border-color: var(--warn); }
.pl-bank-k { min-height: 64px; font-size: 17px; margin-bottom: 14px; }
.pl-liever { margin: -6px 0 12px; }
.pl-liever .link { font-size: 15px; }
.pl-bankblok { border-color: var(--accent-ink); }
.pl-bankblok .pl-reg-h i { color: var(--accent-ink); }
.pl-bankblok .pl-why { margin: -4px 0 0; }
.pl-al-bank { background: var(--surface-2); color: var(--accent-ink); }
.pl-teveel .pl-acts .btn { min-height: 64px; font-size: 17px; }
.ub-h { font-size: 17px; margin: 18px 0 10px; }
.ub-boven { margin-bottom: 12px; }
.ub-keuze { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ub-keuze .btn { min-height: 64px; font-size: 17px; min-width: 0; white-space: normal; line-height: 1.2; }
.ub-bank { display: grid; gap: 10px; margin-top: 12px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); }
.ub-bank .inp { height: 54px; font-size: 16px; }
.ub-bank[hidden] { display: none; }
.pl-reg { display: grid; gap: 10px; padding: 14px; margin-bottom: 14px; border-radius: 14px; border: 1px solid var(--warn); background: var(--surface-2); }
.pl-reg-h { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.pl-reg-h i { color: var(--warn); font-size: 18px; margin-top: 2px; }
.pl-reg .inp { height: 58px; font-size: 16.5px; }
.pl-reg .btn { height: 58px; font-size: 16.5px; }
.pl-plaat.klein { font-size: 21px !important; }
.pl-naam { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-bottom: 12px; }
.pl-naam .inp, .pl-naam .btn { height: 58px; font-size: 16.5px; }
.pl-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pl-2 .btn { height: 60px; font-size: 16.5px; }
.pl-opm { height: 56px; font-size: 16px; margin-bottom: 12px; }
.pl-opm-b { display: inline-flex; gap: 8px; align-items: center; font-size: 15.5px; margin-bottom: 14px; padding: 6px 0; }
.pl-form { display: grid; gap: 16px; }
.pl-form .inp { height: 60px; font-size: 18px; }
.pl-plaat { background: #f2c200 !important; color: #111 !important; border-color: #c99f00 !important; font: 800 28px ui-monospace, SFMono-Regular, Menlo, monospace !important; letter-spacing: .08em; text-transform: uppercase; }
.pl-hint { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); font-size: 15px; margin-bottom: 14px; }
.pl-hint i { color: var(--ok); font-size: 18px; margin-top: 2px; }
.pl-why { color: var(--warn); font-weight: 700; font-size: 14.5px; min-height: 1.3em; margin: 10px 0 0; }
.pl .wb-src { display: flex; gap: 14px; align-items: center; justify-content: flex-end; }
@media (max-width: 1000px) { .pl-grid { grid-template-columns: 1fr; } .pl-tegels { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pl-kop { flex-direction: column; align-items: flex-start; } }
.kasbon { width: 72mm; margin: 0 auto; text-align: center; color: #000; background: #fff; font-family: Arial, Helvetica, sans-serif; padding: 2mm 0; }
.kasbon img { display: block; margin: 0 auto 4mm; width: 46mm; height: auto; }
.kb-soort { display: block; font-size: 15pt; text-transform: uppercase; letter-spacing: .08em; }
.kb-nr { font: 700 30pt 'Courier New', monospace; letter-spacing: .04em; margin: 3mm 0 2mm; }
.kb-tijd { font-size: 10pt; }
@media print { body.printing #print-area.pa-kasbon { width: 80mm; padding: 3mm; box-sizing: border-box; background: #fff; } }

/* Relaties en contracten uit Zoho CRM */
.crm-stempel { margin: 0; font-size: 12.5px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.page-acts .crm-stempel { margin-right: 6px; }
.b-nieuw { --st: var(--info); }
.b-deels-afgerond { --st: var(--warn); }
.ctiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ctile { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); }
.ctile-h { display: flex; gap: 10px; align-items: center; }
.ctile-h b { display: block; }
.ctile-h small { color: var(--muted); }
.ctile-av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font: 800 13px var(--font); flex: none; }
.ctile-b { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: var(--ink-2); word-break: break-all; }
.ctile-b i { color: var(--muted); margin-right: 4px; }
.ctile-f { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: auto; }

/* Sorteren per kolom */
.tbl-sort th[data-s] { cursor: pointer; user-select: none; }
.tbl-sort th[data-s]:hover { color: var(--ink); }
.tbl-sort .s-ar { display: inline-block; width: 0; height: 0; margin-left: 6px; vertical-align: middle; border-left: 4px solid transparent; border-right: 4px solid transparent; opacity: 0; }
.tbl-sort th[aria-sort="ascending"] .s-ar { border-bottom: 5px solid currentColor; opacity: 1; }
.tbl-sort th[aria-sort="descending"] .s-ar { border-top: 5px solid currentColor; opacity: 1; }
.tbl-sort th[aria-sort="none"]:hover .s-ar { opacity: .5; border-top: 5px solid currentColor; }
#rel-cs .card-h { gap: 14px; flex-wrap: wrap; }
#rel-cs .search { flex: 0 1 320px; }

/* T97: de weegbon op A5 staand (148 x 210 mm, binnen de marges 128 mm breed). Eén pagina, ook met drie materialen. */
@media print {
  body.printing #print-area.pa-a5 { width: 128mm; margin: 0; padding: 0; }
  body.printing #print-area.pa-a5 .bon { max-width: none; width: 100%; box-sizing: border-box; margin: 0; padding: 0; border: 0; border-radius: 0; font-size: 9pt; line-height: 1.35; color: #102b4f; }
  #print-area.pa-a5 .bon-h { margin-bottom: 4mm; padding-bottom: 3mm; }
  #print-area.pa-a5 .bon-top img { width: 52mm; max-width: none; }
  #print-area.pa-a5 .bon-ttl b { font-size: 14pt; }
  #print-area.pa-a5 .bon-ttl span { font-size: 10pt; }
  #print-area.pa-a5 .bon-adr { font-size: 7.5pt; margin-top: 2mm; padding-top: 2mm; }
  #print-area.pa-a5 .bon-dl { grid-template-columns: 34mm 1fr; gap: 0.6mm 3mm; margin-bottom: 3mm; }
  #print-area.pa-a5 .bon-t { margin-bottom: 2.5mm; }
  #print-area.pa-a5 .bon-t th, #print-area.pa-a5 .bon-t td { padding: 1mm 0; }
  #print-area.pa-a5 .bon-t small { font-size: 7.5pt; }
  #print-area.pa-a5 .bon-rad, #print-area.pa-a5 .bon-note, #print-area.pa-a5 .bon-man { margin: 1.5mm 0; font-size: 8pt; }
  #print-area.pa-a5 .bon-f { font-size: 7.5pt; margin-top: 3mm; padding-top: 2mm; }
  #print-area.pa-a5 .bon, #print-area.pa-a5 .bon-t, #print-area.pa-a5 .bon-dl { break-inside: avoid; page-break-inside: avoid; }
  body.printing #print-area.pa-a4 .bon { max-width: 180mm; font-size: 10pt; }
}
@media print { html:has(body.printing), body.printing { background: #fff !important; } }

/* Gebruikers: Meekijken en één menu Beheren per regel */
.uacts { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; }
.uacts-leeg { display: inline-block; width: 104px; }
.umenu { position: relative; display: inline-block; }
.umenu .btn i { font-size: 10px; margin-left: 2px; }
.umenu-list { position: fixed; z-index: 60; min-width: 250px; padding: 6px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 2px; text-align: left; }
.umenu-list[hidden] { display: none; }
.umenu-i { display: flex; gap: 10px; align-items: flex-start; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); cursor: pointer; text-align: left; font: inherit; }
.umenu-i:hover, .umenu-i:focus-visible { background: var(--surface-2); outline: none; }
.umenu-i > i { width: 16px; margin-top: 3px; color: var(--muted); }
.umenu-i b { display: block; font-size: 13.5px; }
.umenu-i small { display: block; color: var(--muted); font-size: 12px; }
.umenu-i.gevaar, .umenu-i.gevaar > i { color: var(--alert); }
.umenu-i.gevaar { border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: 4px; padding-top: 10px; }
/* Registratie particulier: soort document als grote knoppen (29 okt 2026) */
.pl-doc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pl-doc button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 700 16.5px var(--font); cursor: pointer; touch-action: manipulation; }
.pl-doc button small { font-weight: 600; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pl-doc button.on { border-color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary); background: var(--surface-2); }
.pl-reg .pl-buiten.on { border-color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary); }
.pl-reg .pl-why { margin: 0; }
.pl-regok { color: var(--ok); }
.ub-reg { background: var(--surface-2); color: var(--ink-2); margin-top: 0; margin-bottom: 14px; }
#ub-prijs { margin-top: 10px; }
.pl-veld { display: grid; gap: 4px; }
.pl-veld[hidden] { display: none; }
.pl-veld > span { font-size: 13.5px; font-weight: 700; color: var(--muted); }
.pl-veld > span small { font-weight: 600; }
.pl-2 { align-items: end; }
/* Sterk wachtwoord (29 okt 2026) */
.strength .s1 { background: var(--alert); }
.pw-tip { font-size: 13px; color: var(--muted); margin-top: 7px; min-height: 1.4em; line-height: 1.4; }
.pw-tip.nee { color: var(--warn); font-weight: 600; }
.pw-tip.ok { color: var(--ok); font-weight: 700; }

/* Klikbare rijen: het nummer of de naam vooraan krijgt het streepje, zodat je ziet dat de rij opent */
tr[data-href]:hover td:first-child b, tr[data-href]:hover td:first-child a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
/* Aandachtspunten en stille klanten: het vetgedrukte nummer of de naam krijgt het streepje */
.al a:hover b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
/* Een link in een tegel (zoals het contractnummer) heeft de kleur van de andere waarden; het streepje bij aanwijzen laat zien dat hij klikbaar is */
.tegels .fact b a { color: inherit; }

/* Filters voor de klant: keuzelijsten naast de tabbladen */
.k-sel { display: inline-flex; }
.k-select { height: 38px; padding: 0 12px; min-width: 160px; max-width: 260px; }
.k-rechts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* Documenten bij een contract */
.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.docs a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; color: var(--ink); }
.docs a:hover { background: var(--line); text-decoration: none; }
.docs a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.docs a > i { font-size: 20px; color: var(--accent-ink); }
#o-docs .docs { margin-bottom: 12px; }

/* Containerblokjes bij Voortgang: klikbaar naar de levering */
a.u { cursor: pointer; text-decoration: none; transition: transform .1s, box-shadow .1s; }
a.u:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--accent-ink); text-decoration: none; }
/* Voorbeeldkaartje bij aanwijzen */
.preview { position: fixed; z-index: 1000; pointer-events: none; display: flex; flex-direction: column; gap: 2px; min-width: 180px; max-width: 280px; padding: 10px 12px; border-radius: 10px; background: #1d4a80; color: #fff; font-size: 13px; line-height: 1.4; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.preview b { font-size: 14px; margin-bottom: 2px; }
.preview small { margin-top: 4px; opacity: .7; font-size: 12px; }
html[data-theme="dark"] .preview { background: #2a5d99; }

/* Documenten (5 nov 2026): de popup met de velden en de Annex VII op A4. Het papier blijft wit, ook in het donkere thema. */
.dx-types { display: grid; gap: 14px; max-width: 760px; }
.dx-type { display: flex; align-items: center; gap: 18px; padding: 20px 24px; color: inherit; text-decoration: none; }
.dx-type:hover { border-color: var(--accent); text-decoration: none; }
.dx-type h2 { font-size: 18px; margin: 0 0 4px; }
.dx-type p { margin: 0; }
.dx-type > .fa-chevron-right { margin-left: auto; color: var(--faint); }
.dx-ic { flex: 0 0 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 19px; }
.dx .dx-sec { padding: 16px 0 18px; border-bottom: 1px solid var(--line-2); }
.dx .dx-sec:first-child { padding-top: 4px; }
.dx-sec h3 { font-size: 15.5px; margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.dx-sec h3 span { font: 700 11.5px var(--font); color: var(--muted); background: var(--surface-2); border-radius: 6px; padding: 3px 7px; }
.dx-sec > .hint { margin: 0 0 12px; }
.dx-g, .dx-g3, .dx-st { display: grid; gap: 12px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 10px; }
.dx-g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dx-st { margin-top: 0; grid-column: 1 / -1; }
.dx-g > .dx-v:has(textarea) { grid-row: span 2; }
.dx-v.dx-breed { grid-column: 1 / -1; }
.dx-v .lbl { font-size: 12.5px; margin-bottom: 4px; }
.dx-v .inp { height: 40px; font-size: 14.5px; }
.dx-v textarea.inp { height: auto; min-height: 92px; }
.dx-ct { margin: 12px 0 10px; }
.dx-ct th { font-size: 12px; }
.dx-ct td { padding: 4px 6px 4px 0; border: 0; }
.dx-ct .inp { height: 38px; font-size: 14px; }
.dx-ct td:last-child { width: 44px; }
.dx-det { border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; margin-top: 10px; }
.dx-det > summary { cursor: pointer; padding: 12px 0; font-weight: 700; font-size: 14px; }
.dx-det[open] { padding-bottom: 14px; }
.dx-det .dx-st { margin-top: 12px; }
.dx-vast { margin-top: 18px; background: var(--surface-2); }
.dx-h4 { font-size: 13px; margin: 16px 0 0; color: var(--ink-2); }
.dx-keus { display: flex; gap: 22px; margin: 4px 0 10px; font-weight: 600; font-size: 14px; }
.dx-keus label, .dx-check { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.dx-check { font-size: 14px; margin-bottom: 4px; }
.dx-acts { padding-top: 6px; }
@media (max-width: 640px) { .dx-g, .dx-g3, .dx-st { grid-template-columns: 1fr; } .dx-ct thead { display: none; } .dx-ct tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding-bottom: 10px; } }

.dx-preview { overflow-x: auto; padding: 6px 0 24px; display: grid; gap: 24px; justify-content: center; }
.ax-paper { position: relative; width: 210mm; box-sizing: border-box; padding: 12mm 12mm 14mm; background: #fff; color: #000; box-shadow: var(--shadow-lg); border-radius: 4px;
  font: 8.6pt/1.3 Roboto, Arial, Helvetica, sans-serif; }
.ax-paper * { color: #000; }
.ax-ref { position: absolute; top: 10mm; right: 12mm; border: 1px solid #000; padding: 1.2mm 3mm; font-size: 8.6pt; }
.ax-t { text-align: center; margin: 2mm 0 5mm; }
.ax-t b { display: block; font-size: 10pt; line-height: 1.25; }
.ax-sub { font-size: 9.5pt; margin-bottom: 1mm; }
.ax-sub sup, .ax sup { font-size: 6pt; font-style: italic; }
table.ax { width: 100%; border-collapse: collapse; table-layout: fixed; }
table.ax > tbody > tr > td { border: 1px solid #000; vertical-align: top; padding: 1.2mm 1.6mm 1.6mm; }
table.ax > tbody > tr { break-inside: avoid; page-break-inside: avoid; }
.ax h4 { font-size: 8.4pt; font-weight: 700; margin: 0 0 1mm; line-height: 1.3; }
.ax h4 i { font-weight: 400; }
.ax-f { margin: .5mm 0; }
.ax-f > span { font-size: 7.8pt; }
.ax-f > b { font-weight: 500; font-size: 9pt; }
.ax-v { font-weight: 500; font-size: 9pt; padding: 1mm 0; min-height: 5mm; }
.ax-m { font-family: 'Roboto Mono', Consolas, monospace; letter-spacing: .02em; }
.ax-sig { margin-top: 3mm; font-size: 7.8pt; }
.ax-sp { display: inline-block; width: 8mm; }
.ax-cb { display: inline-block; width: 3mm; height: 3mm; border: 1px solid #000; vertical-align: -.4mm; margin: 0 1mm; position: relative; }
.ax-cb.on::after { content: ''; position: absolute; inset: .35mm; background: linear-gradient(45deg, transparent 44%, #000 44%, #000 56%, transparent 56%), linear-gradient(-45deg, transparent 44%, #000 44%, #000 56%, transparent 56%); }
.ax-land { width: 100%; border-collapse: collapse; table-layout: fixed; margin-top: 1mm; }
.ax-land th, .ax-land td { border: 1px solid #000; padding: .8mm 1.5mm; font-size: 8.2pt; text-align: center; }
.ax-land th { font-weight: 400; }
.ax-land td { height: 6mm; font-weight: 500; }
.ax-ond { display: grid; grid-template-columns: 1.3fr 1fr .8fr; gap: 3mm; margin-top: 5mm; align-items: end; }
.ax-ond.ax-hoog { margin-top: 4mm; }
.ax-band { text-align: center; font-size: 9.4pt; letter-spacing: .02em; }
.ax-fn { list-style: none; margin: 3mm 0 0; padding: 0; font-size: 6.6pt; line-height: 1.35; }
.ax-fn li { display: grid; grid-template-columns: 7mm 1fr; margin-bottom: .6mm; }
@media print {
  body.printing #print-area.pa-doc { width: auto; margin: 0; padding: 0; }
  #print-area.pa-doc .ax-paper { width: auto; padding: 0; box-shadow: none; border-radius: 0; }
  #print-area.pa-doc .ax-ref { top: 0; right: 0; }
  #print-area.pa-doc .ax-paper + .ax-paper { break-before: page; page-break-before: always; }
  #print-area.pa-doc * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Licht of donker: een knopje rechtsboven in plaats van een regel in het menu (Ralph, 5 nov 2026) */
.main { position: relative; }
.thema-knop { position: absolute; top: 12px; right: 18px; z-index: 5; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--muted); display: grid; place-items: center; cursor: pointer; font-size: 15px; transition: color .15s, border-color .15s; }
.thema-knop:hover { color: var(--ink); border-color: var(--accent); }
@media print { .thema-knop { display: none !important; } }

/* CMR (5 nov 2026): A4 met het formulier als SVG en de gegevens er los overheen, in millimeters */
.cmr-pg { position: relative; width: 210mm; height: 297mm; background: #fff; overflow: hidden; box-shadow: var(--shadow-lg); border-radius: 4px; }
.cmr-form { position: absolute; inset: 0; width: 100%; height: 100%; }
.cmr-schim .cmr-form { opacity: .28; }
.cmr-laag { position: absolute; inset: 0; }
.cmr-v { position: absolute; color: #000; font: 8.5pt/1.22 Arial, Helvetica, sans-serif; overflow: hidden; word-wrap: break-word; }
.cmr-v b { font-weight: 700; }
.cmr-v.cmr-r { text-align: right; }
.cmr-v.cmr-nr { font-size: 10.5pt; }
.cmr-m { font-family: Consolas, 'Courier New', monospace; letter-spacing: .02em; }
.cx-keus { padding: 18px 22px; margin-bottom: 14px; display: grid; gap: 14px; }
.cx-stand { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cx-stand label { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.cx-stand label.on { border-color: var(--accent); background: var(--accent-soft); }
.cx-stand input { margin-top: 3px; }
.cx-stand small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.cx-schuif .hint { margin: 0 0 8px; }
.cx-mm { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.cx-mm label { display: inline-flex; gap: 8px; align-items: center; }
.cx-mm .inp { width: 90px; }
@media (max-width: 640px) { .cx-stand { grid-template-columns: 1fr; } }
@media print {
  body.printing #print-area.pa-cmr { width: 210mm; margin: 0; padding: 0; }
  #print-area.pa-cmr .cmr-pg { box-shadow: none; border-radius: 0; break-after: page; page-break-after: always; }
  #print-area.pa-cmr .cmr-pg:last-child { break-after: auto; page-break-after: auto; }
  #print-area.pa-cmr * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
