/* BEDA Privé — zelfde stijl als BEDA Admin: zwart/wit, rustig, goed leesbaar op gsm en pc */
:root {
    --ink: #111111;
    --ink-2: #3a3a3a;
    --muted: #6b6b6b;
    --line: #e4e4e4;
    --bg: #f6f6f5;
    --card: #ffffff;
    --side: #111111;
    --side-ink: #d9d9d9;
    --accent: #111111;
    --ok: #1f7a3d;
    --ok-bg: #e9f5ee;
    --warn: #9a5b00;
    --warn-bg: #fdf3e2;
    --err: #b3261e;
    --err-bg: #fbeaea;
    --info-bg: #eef2f7;
    --radius: 8px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 var(--font); color: var(--ink); background: var(--bg); }
a { color: var(--ink); }
h1 { font-size: 1.5rem; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
h2, .h2 { font-size: 1.1rem; font-weight: 600; margin: 0 0 .75rem; }
code, .mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.ok { color: var(--ok); }
.warn { color: var(--warn); }

/* ---------- Wordmark ---------- */
.brand-mark { font-weight: 300; letter-spacing: .42em; font-size: 1.25rem; }
.brand-sub { font-size: .62rem; letter-spacing: .32em; color: var(--muted); padding-left: .8rem; margin-left: .8rem; border-left: 1px solid currentColor; }

/* ---------- Shell ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 220px; flex: 0 0 220px; background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; padding: 1.4rem 1.2rem; color: #fff; text-decoration: none; }
.brand .brand-sub { color: #9a9a9a; border-color: #555; }
.nav { display: flex; flex-direction: column; padding: .5rem 0; flex: 1; overflow-y: auto; }
.nav-item { display: flex; align-items: center; gap: .7rem; padding: .6rem 1.2rem; color: var(--side-ink); text-decoration: none; border-left: 3px solid transparent; }
.nav-item:hover { background: #1c1c1c; color: #fff; }
.nav-item.is-active { background: #222; color: #fff; border-left-color: #fff; }
.nav-item.is-soon { color: #5d5d5d; cursor: default; }
.nav-item.is-soon:hover { background: none; }
.nav-item small { margin-left: auto; font-size: .7rem; color: #555; }
.sidebar-foot { padding: 1rem 1.2rem; font-size: .75rem; color: #555; }

.icon { width: 18px; height: 18px; flex: 0 0 18px; display: inline-block; background: currentColor; opacity: .85;
    -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.icon-home     { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M3 11l9-7 9 7v9a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E"); }
.icon-users    { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20c.8-3.6 3.4-5.5 6.5-5.5s5.7 1.9 6.5 5.5'/%3E%3Cpath d='M15.5 4.8a3.5 3.5 0 0 1 0 6.4M18 14.8c1.8.8 3 2.5 3.5 5.2'/%3E%3C/svg%3E"); }
.icon-wrench   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M14.5 6.5a4 4 0 0 0 5 5L12 19a2.1 2.1 0 0 1-3-3l7.5-7.5a4 4 0 0 1-2-2z'/%3E%3C/svg%3E"); }
.icon-file     { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M6 3h8l4 4v14H6z'/%3E%3Cpath d='M14 3v4h4M9 12h6M9 16h6'/%3E%3C/svg%3E"); }
.icon-car      { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M3 16v-4l2-5h14l2 5v4H3z'/%3E%3Ccircle cx='7.5' cy='16.5' r='1.8'/%3E%3Ccircle cx='16.5' cy='16.5' r='1.8'/%3E%3Cpath d='M3 12h18'/%3E%3C/svg%3E"); }
.icon-inbox    { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M3 13l3-8h12l3 8v6H3z'/%3E%3Cpath d='M3 13h5l1 2h6l1-2h5'/%3E%3C/svg%3E"); }
.icon-paperclip { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M20 11l-8.5 8.5a5 5 0 0 1-7-7L13 4a3.5 3.5 0 0 1 5 5l-8.5 8.5a2 2 0 0 1-3-3L14 7'/%3E%3C/svg%3E"); }
.icon-dots { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Ccircle cx='5' cy='12' r='2'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Ccircle cx='19' cy='12' r='2'/%3E%3C/svg%3E"); }
.icon-wallet { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Crect x='3' y='6' width='18' height='13' rx='2'/%3E%3Cpath d='M3 10h18M16 14h2'/%3E%3C/svg%3E"); }
.icon-flag { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M5 21V4h12l-2 4 2 4H5'/%3E%3C/svg%3E"); }
.icon-mail { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); }
.icon-percent  { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M19 5L5 19'/%3E%3Ccircle cx='7' cy='7' r='2.5'/%3E%3Ccircle cx='17' cy='17' r='2.5'/%3E%3C/svg%3E"); }
.icon-box      { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M3 7l9-4 9 4v10l-9 4-9-4z'/%3E%3Cpath d='M3 7l9 4 9-4M12 11v10'/%3E%3C/svg%3E"); }
.icon-pen      { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M4 20l4-1 11-11-3-3L5 16z'/%3E%3Cpath d='M13 8l3 3M4 20h16'/%3E%3C/svg%3E"); }
.icon-chart    { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M4 20h16M7 16V9M12 16V5M17 16v-6'/%3E%3C/svg%3E"); }
.icon-calendar { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.icon-settings { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 2v3M12 19v3M2 12h3M19 12h3M4.9 4.9l2.1 2.1M17 17l2.1 2.1M4.9 19.1L7 17M17 7l2.1-2.1'/%3E%3C/svg%3E"); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 1rem; padding: .7rem 1.5rem; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.topbar form { margin: 0; }
.user-link { text-decoration: none; font-weight: 500; }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.4rem; cursor: pointer; padding: 0 .3rem; }
.division-switch { display: inline-flex; border: 1px solid var(--ink); border-radius: 999px; overflow: hidden; }
.seg { border: 0; background: transparent; padding: .3rem .9rem; font: inherit; font-size: .85rem; cursor: pointer; color: var(--ink); }
.seg.is-on { background: var(--ink); color: #fff; }

.content { padding: 1.5rem; max-width: 1200px; width: 100%; }
.page-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.toolbar { display: flex; gap: .5rem; margin-bottom: 1rem; flex-wrap: wrap; }

/* ---------- Kaarten, tabellen ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.25rem; }
.card.narrow { max-width: 520px; }
.narrow-form { max-width: 720px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.card-head h2 { margin: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.grid-2 > .card { margin-bottom: 0; }
.grid-2 { margin-bottom: 1.25rem; }
.grid-2 + .card, .grid-2 + section { margin-top: 1.25rem; }

.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-weight: 500; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: .5rem .6rem; border-bottom: 1px solid var(--line); }
.table td { padding: .55rem .6rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; white-space: nowrap; }
.table input[type=text] { min-width: 140px; }
.table .actions { display: flex; gap: .4rem; justify-content: flex-end; }
.table .actions form { margin: 0; }
.is-muted td { color: var(--muted); }

.pill { display: inline-block; padding: .2rem .7rem; border-radius: 999px; background: #ececea; font-size: .82rem; }
.dl { display: grid; grid-template-columns: 140px 1fr; gap: .4rem 1rem; margin: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; }

.steps { margin: 0; padding: 0; list-style: none; }
.steps li { padding: .15rem 0 .15rem 1.4rem; color: var(--muted); position: relative; }
.steps li::before { content: "○"; position: absolute; left: 0; }
.steps li.done { color: var(--ok); }
.steps li.done::before { content: "✓"; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { padding: .2rem 0; }

.logo-preview { max-height: 40px; max-width: 220px; }
.logo-text { display: inline-flex; align-items: center; }

.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; overflow-x: auto; }
.tab { padding: .55rem .9rem; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); border-bottom-color: var(--ink); font-weight: 500; }

/* ---------- Formulieren ---------- */
label { display: flex; flex-direction: column; gap: .3rem; font-size: .88rem; font-weight: 500; }
label .muted { font-weight: 400; }
label.check { flex-direction: row; align-items: center; gap: .5rem; font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=tel], input[type=search], input[type=file], select, textarea {
    font: inherit; font-size: 15px; padding: .55rem .65rem; border: 1px solid #cfcfcf; border-radius: 6px; background: #fff; color: var(--ink); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: -1px; border-color: var(--ink); }
input:disabled, input[readonly] { background: #f2f2f1; color: var(--muted); }
textarea { resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.form-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1.25rem; }
.stack { display: flex; flex-direction: column; gap: 1rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .55rem 1rem; border: 1px solid var(--ink); border-radius: 6px; background: #fff; color: var(--ink); font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: #f0f0ef; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #333; }
.btn-danger { border-color: var(--err); color: var(--err); }
.btn-small { padding: .3rem .65rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn.is-disabled { opacity: .35; cursor: default; }
.btn-link { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; text-decoration: underline; }
.quick { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }

.alert { padding: .75rem 1rem; border-radius: 6px; margin-bottom: 1rem; border: 1px solid transparent; }
.alert-success { background: var(--ok-bg); border-color: #cbe7d5; color: #174f2a; }
.alert-error { background: var(--err-bg); border-color: #f1c9c7; color: #7d1a15; }
.alert-info { background: var(--info-bg); border-color: #d6dfea; }

/* ---------- Login / installatie ---------- */
body.bare { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 1rem; }
.bare-box { width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 2rem; }
.bare-box .card { border: 0; padding: 0; }
.bare-brand { display: flex; align-items: center; justify-content: center; margin-bottom: 1.75rem; }

/* ---------- Gsm en tablet ---------- */
@media (max-width: 900px) {
    .grid-2 { grid-template-columns: 1fr; }
    .form-grid.cols-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    .sidebar { position: fixed; left: 0; top: 0; z-index: 20; transform: translateX(-100%); transition: transform .2s; }
    .sidebar.is-open { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.35); }
    .menu-toggle { display: block; }
    .content { padding: 1rem; }
    .topbar { padding: .6rem 1rem; }
    .form-grid, .form-grid.cols-4 { grid-template-columns: 1fr; }
    .span-2, .span-3 { grid-column: auto; }
    .table { display: block; overflow-x: auto; white-space: nowrap; }
    .user-link { display: none; }
}

/* ---------- Klanten en voertuigen (stap 1.3) ---------- */
.page-actions { margin-left: auto; display: flex; gap: .5rem; }
.back { text-decoration: none; color: var(--muted); font-size: .9rem; }
.back:hover { color: var(--ink); }
.searchbar { display: flex; gap: .5rem; margin-bottom: .75rem; }
.searchbar input { flex: 1; }
.list-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.card.flush { padding: 0; overflow: hidden; }
.card.flush .table th:first-child, .card.flush .table td:first-child { padding-left: 1.1rem; }
.card.flush .table th:last-child, .card.flush .table td:last-child { padding-right: 1.1rem; }
.table td a { text-decoration: none; }
.table td a:hover { text-decoration: underline; }
.strong { font-weight: 600; }
.empty { text-align: center; color: var(--muted); padding: 2rem 1rem !important; }
.tag { display: inline-block; font-size: .72rem; padding: .05rem .45rem; border-radius: 4px; background: #ececea; color: var(--ink-2); margin-left: .35rem; vertical-align: middle; }
.tag-warn { background: var(--warn-bg); color: var(--warn); }
.plate { display: inline-block; font-family: var(--mono); font-size: .82rem; padding: .05rem .4rem; border: 1px solid #b3261e; color: #b3261e; border-radius: 3px; background: #fff; letter-spacing: .03em; }
.vehicle { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: .75rem 0; border-top: 1px solid var(--line); }
.vehicle:first-of-type { border-top: 0; }
.vehicle.is-muted { color: var(--muted); align-items: center; }
.vehicle-ids { display: flex; gap: .6rem; align-items: center; margin: .25rem 0; flex-wrap: wrap; }
.note { margin-top: 1rem; padding: .75rem; background: #fafaf8; border-left: 3px solid var(--line); font-size: .9rem; }
.danger-zone { margin-top: 1rem; display: flex; justify-content: flex-end; }
.segmented { display: inline-flex; border: 1px solid #cfcfcf; border-radius: 6px; overflow: hidden; margin-bottom: 1.25rem; }
.seg-option { flex-direction: row; align-items: center; gap: .4rem; padding: .45rem .9rem; cursor: pointer; font-weight: 400; }
.seg-option + .seg-option { border-left: 1px solid #cfcfcf; }
.seg-option:has(input:checked) { background: var(--ink); color: #fff; }
.seg-option input { margin: 0; }
.input-row { display: flex; gap: .5rem; }
.input-row input { flex: 1; }
.input-row select.unit { width: 5rem; flex: 0 0 5rem; }
.hint { font-weight: 400; font-size: .82rem; color: var(--muted); min-height: 1em; }
.hint.ok { color: var(--ok); }
.hint.err { color: var(--err); }
.upper { text-transform: uppercase; }
.span-4 { grid-column: span 4; }
.pagination { display: flex; gap: 1rem; align-items: center; justify-content: center; margin: 1rem 0; }
.form-grid [data-only].is-hidden, .is-hidden { display: none !important; }
.import-drop { border: 2px dashed #cfcfcf; border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.stat-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.stat { background: #fafaf8; border: 1px solid var(--line); border-radius: 6px; padding: .75rem 1rem; min-width: 150px; }
.stat b { display: block; font-size: 1.4rem; font-weight: 600; }
@media (max-width: 760px) {
    .span-4 { grid-column: auto; }
    .searchbar { flex-direction: column; }
    .page-actions { margin-left: 0; width: 100%; }
}
.form-actions.center { justify-content: center; }
.mt { margin-top: 1.5rem; }
.table-wrap { overflow-x: auto; }
.dash-search { display: flex; gap: .5rem; margin-bottom: 1.25rem; }
.dash-search input { flex: 1; font-size: 1.05rem; padding: .7rem .8rem; }

/* ---------- Werkorders en documenten (stap 1.4) ---------- */
.count { display: inline-block; min-width: 1.4em; padding: 0 .35em; margin-left: .25rem; border-radius: 999px; background: #ececea; font-size: .75rem; text-align: center; }
.status { display: inline-block; font-size: .78rem; padding: .12rem .55rem; border-radius: 999px; background: #ececea; white-space: nowrap; }
.status-open { background: #eef2f7; color: #264a7a; }
.status-bezig { background: var(--warn-bg); color: var(--warn); }
.status-klaar { background: var(--ok-bg); color: var(--ok); }
.status-gefactureerd { background: #111; color: #fff; }
.status-geannuleerd { background: #f2f2f1; color: var(--muted); text-decoration: line-through; }
.ellipsis { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-bar { display: flex; align-items: center; gap: .4rem; margin-bottom: 1rem; flex-wrap: wrap; }
.seg-btn { border: 1px solid #cfcfcf; background: #fff; padding: .35rem .8rem; border-radius: 999px; font: inherit; font-size: .85rem; cursor: pointer; }
.seg-btn.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-link.danger { color: var(--err); margin-left: auto; }
.picker-chosen { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 6px; background: #fafaf8; margin-bottom: .75rem; }
.picker-search { position: relative; margin-bottom: .75rem; display: flex; flex-direction: column; gap: .35rem; }
.picker-results { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 6px; max-height: 320px; overflow-y: auto; }
.picker-results:empty { display: none; }
.picker-item { text-align: left; background: #fff; border: 0; border-bottom: 1px solid var(--line); padding: .55rem .75rem; font: inherit; cursor: pointer; }
.picker-item:hover { background: #f4f4f2; }
.picker-empty { padding: .6rem .75rem; color: var(--muted); }
.lines-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .5rem; }
.lines-toolbar h2 { margin: 0; }
.lines-table td { padding: .3rem .3rem; }
.lines-table input, .lines-table select { padding: .4rem .45rem; font-size: 14px; }
.lines-table .col-code { width: 150px; }
.lines-table .col-qty { width: 80px; }
.lines-table .col-price { width: 110px; }
.lines-table .col-disc { width: 75px; }
.lines-table .col-vat { width: 120px; }
.lines-table .col-total { width: 110px; font-variant-numeric: tabular-nums; }
.lines-table .col-del { width: 32px; }
.lines-table .col-qty input, .lines-table .col-price input, .lines-table .col-disc input { text-align: right; }
.line-kind { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 4px; background: #ececea; font-size: .72rem; font-weight: 600; }
.line-arbeid .line-kind { background: #eef2f7; color: #264a7a; }
.line-tekst .line-kind { background: #fafaf8; color: var(--muted); }
.line-tekst input { font-style: italic; }
.icon-btn { border: 0; background: none; font-size: 1.3rem; line-height: 1; color: var(--muted); cursor: pointer; padding: .2rem .4rem; }
.icon-btn:hover { color: var(--err); }
.lines-add { display: flex; gap: .4rem; margin: .75rem 0; flex-wrap: wrap; }
.totals { margin-left: auto; max-width: 360px; border-top: 1px solid var(--line); padding-top: .6rem; }
.totals-row { display: flex; justify-content: space-between; padding: .15rem 0; font-variant-numeric: tabular-nums; }
.totals-row.grand { font-size: 1.1rem; border-top: 1px solid var(--ink); margin-top: .35rem; padding-top: .45rem; }
.quick-fill { display: flex; gap: .4rem; margin-top: .75rem; flex-wrap: wrap; }
.sticky-actions { position: sticky; bottom: 0; background: var(--bg); padding: .75rem 0; border-top: 1px solid var(--line); }
.doc-list .num { font-variant-numeric: tabular-nums; }
.card-head.pad { padding: 1rem 1.1rem .25rem; margin: 0; }
.vehicle-actions { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }
.upload-row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.upload-row input[type=file] { flex: 1; min-width: 220px; }

/* Facturen en offertes */
.filterbar { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip { border: 1px solid #cfcfcf; background: #fff; padding: .3rem .8rem; border-radius: 999px; font: inherit; font-size: .85rem; cursor: pointer; color: var(--ink); }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter-fields { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.filter-fields input[type="search"] { flex: 1 1 260px; }
label.inline { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; color: var(--muted); margin: 0; }
label.inline input { width: auto; }
tr.is-concept td { color: var(--muted); font-style: italic; }
tr.is-concept td a { color: var(--ink-2); }
.overdue { display: inline-block; margin-left: .3rem; font-size: .72rem; padding: .05rem .4rem; border-radius: 4px; background: var(--err-bg); color: var(--err); font-weight: 600; }
.table tfoot td { border-top: 2px solid var(--ink); background: #fafaf9; }
.action-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem 1rem; margin-bottom: .75rem; }
.action-bar form { margin: 0; }
.action-info { flex: 1 1 320px; display: flex; flex-wrap: wrap; gap: .3rem 1.25rem; font-size: .9rem; }
.links { margin: 0 0 1rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .25rem .9rem; }
.inline-actions, .inline-form { display: inline-flex; gap: .4rem; margin: 0; }
.status-bar.inline { margin: 0; }
.seg-btn[disabled] { opacity: .5; cursor: default; }
.payment-form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-end; margin-top: .75rem; }
.payment-form label { flex: 1 1 140px; margin: 0; }
.status-concept { background: #f2f2f1; color: var(--muted); border: 1px dashed #bdbdbd; }
.status-deels { background: var(--warn-bg); color: var(--warn); }
.status-betaald { background: var(--ok-bg); color: var(--ok); }
.status-aanvaard { background: var(--ok-bg); color: var(--ok); }
.status-geweigerd { background: var(--err-bg); color: var(--err); }
.status-omgezet { background: #111; color: #fff; }
.status-definitief { background: #eef2f7; color: #264a7a; }
.status-gecrediteerd { background: #f2f2f1; color: var(--muted); text-decoration: line-through; }

/* Testmodus */
.test-banner { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; background: #fff4d6; border: 2px dashed #d08a00; color: #6b4500; border-radius: var(--radius); padding: .6rem 1rem; margin-bottom: 1rem; }
.test-banner span { flex: 1 1 300px; }
.test-banner form, .test-banner button { margin: 0; }
.card.is-test { border: 2px dashed #d08a00; background: #fffbf0; }
.btn[disabled] { opacity: .45; cursor: default; }

/* Nieuw-knop met keuze divisie (zonder JavaScript) */
details.menu { position: relative; }
details.menu > summary { list-style: none; cursor: pointer; }
details.menu > summary::-webkit-details-marker { display: none; }
.menu-list { position: absolute; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 6px 20px rgba(0,0,0,.12); min-width: 180px; z-index: 20; padding: .3rem 0; }
.menu-list a { display: block; padding: .55rem 1rem; text-decoration: none; }
.menu-list a:hover { background: var(--bg); }
.chips-sub .chip { font-size: .8rem; padding: .2rem .7rem; }

/* Verzonden per mail / Peppol */
td.sent { white-space: nowrap; }
.sent-badge { display: inline-block; font-size: .7rem; padding: .05rem .4rem; border-radius: 4px; border: 1px dashed #c9c9c9; color: #aaa; margin-right: .2rem; }
.sent-badge.is-on { border: 1px solid var(--ok); background: var(--ok-bg); color: var(--ok); font-weight: 600; }
.sent-log td { font-size: .88rem; }
.mail-form textarea { min-height: 220px; font-family: inherit; }
.sent-summary .sent-badge { font-size: .76rem; padding: .1rem .5rem; }
.access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1rem; border-top: 1px solid var(--line); padding-top: .75rem; }
.access-grid p { grid-column: 1 / -1; margin: 0; }
@media (max-width: 700px) { .access-grid { grid-template-columns: 1fr; } }
.tab.is-shared::after { content: " ⇄"; color: var(--muted); font-size: .8em; }
.settings-scope { margin: -.4rem 0 1rem; }
.pill-live { background: var(--err-bg); color: var(--err); font-weight: 600; }
.code-block { background: #f4f4f3; border: 1px solid var(--line); border-radius: 6px; padding: .75rem; font-family: var(--mono); font-size: .8rem; max-height: 320px; overflow: auto; white-space: pre-wrap; word-break: break-all; }

/* Dashboard: cijfers en grafiek (kleuren: gevalideerd categorisch palet, slots 1-3) */
.viz-root { --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a; --viz-grid: #e7e6e2; --viz-axis: #6b6b6b; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; text-decoration: none; color: var(--ink); display: block; }
a.kpi:hover { border-color: var(--ink); }
.kpi-label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.kpi-value { font-size: 1.45rem; font-weight: 600; letter-spacing: -.01em; margin-top: .15rem; white-space: nowrap; }
.kpi-sub { font-size: .8rem; color: var(--muted); }
.kpi.is-alert .kpi-value { color: var(--err); }
.viz-legend { display: flex; gap: 1rem; font-size: .85rem; color: var(--ink-2); margin-bottom: .4rem; }
.viz-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.viz-swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.viz-swatch.viz-s1 { background: var(--series-1); } .viz-swatch.viz-s2 { background: var(--series-2); } .viz-swatch.viz-s3 { background: var(--series-3); }
.viz-svg { width: 100%; height: auto; display: block; }
.viz-svg path.viz-s1 { fill: var(--series-1); } .viz-svg path.viz-s2 { fill: var(--series-2); } .viz-svg path.viz-s3 { fill: var(--series-3); }
.viz-grid { stroke: var(--viz-grid); stroke-width: 1; }
.viz-base { stroke: #c9c8c3; }
.viz-axis { fill: var(--viz-axis); font-size: 11px; font-family: var(--font); }
.viz-hit { fill: transparent; }
.viz-bar:hover .viz-hit { fill: rgba(0, 0, 0, .04); }
.viz-table { margin-top: .5rem; font-size: .88rem; }
.viz-table summary { cursor: pointer; color: var(--muted); }

/* Betalingen en herinneringen */
.bank-table td { vertical-align: top; }
.bank-pick { max-width: 280px; font-size: .85rem; }
.pad { padding-left: 1rem; padding-right: 1rem; }
.form-actions.pad { padding-bottom: 1rem; }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions form { display: inline; margin: 0; }
.reminded { font-size: .72rem; color: var(--muted); display: block; }

/* Aankopen: voorbeeld van het document */
.doc-preview { width: 100%; height: 780px; border: 1px solid var(--line, #ddd); border-radius: 8px; margin-top: 12px; background: #fff; }
.doc-preview-img { display: block; max-width: 100%; max-height: 900px; margin-top: 12px; border: 1px solid var(--line, #ddd); border-radius: 8px; }

/* Snel betaald zetten: datum en betaalwijze kiezen */
.quick-paid { display: inline-block; vertical-align: middle; }
.row-actions form.quick-paid-form, form.quick-paid-form { display: flex; flex-direction: column; gap: .45rem; padding: .75rem; width: 230px; text-align: left; white-space: normal; box-sizing: border-box; }
form.quick-paid-form input, form.quick-paid-form select { width: 100%; box-sizing: border-box; }
.card.flush:has(details[open]) { overflow: visible; }

/* Autohandel */
.status-voorbereiding { background: #f2f2f1; color: var(--muted); }
.status-beschikbaar { background: var(--ok-bg); color: var(--ok); }
.status-gereserveerd { background: var(--warn-bg); color: var(--warn); }
.status-verkocht { background: #111; color: #fff; }
.fig-table { width: 100%; border-collapse: collapse; }
.fig-table td { padding: .35rem 0; border-bottom: 1px solid var(--line); }
.fig-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.fig-table tr.fig-total td { font-weight: 600; border-bottom: 0; border-top: 2px solid var(--ink, #111); }
.stock-sections h3 { margin: 1.2rem 0 .6rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.stock-sections h3:first-child { margin-top: 0; }
.sub-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin-top: 1rem; background: var(--bg); }
.sub-card h3 { margin: 0 0 .7rem; font-size: 1rem; }
.inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem; margin-top: 1rem; }
.inline-form label { display: flex; flex-direction: column; gap: .25rem; font-size: .85rem; }
.inline-form select { max-width: 520px; }
.settle-menu .menu-list { width: 300px; right: auto; left: 0; }
.cost-table tfoot td { border-bottom: 0; padding-top: .3rem; padding-bottom: .3rem; }
.cost-table tr.cost-cat td { padding-top: .1rem; padding-bottom: .1rem; }
.cost-table tr.cost-result td { border-top: 2px solid var(--ink); font-size: 1.05rem; }
.cost-table tr.cost-purchase td { background: var(--bg); }
.cost-actions { display: grid; gap: .25rem; }
.inline-form label.grow { flex: 1 1 260px; }
.inline-form label.grow input { width: 100%; }
.card.flush.table-scroll { overflow-x: auto; }
/* BTW-aangifte */
.grid-row td:first-child { width: 3rem; }
.grid-sep td { padding: .2rem; border-bottom: 0; background: var(--bg); }
.grid-detail { background: var(--bg); padding: .4rem 1rem .6rem 3.5rem; }
.grid-detail .table td { border-bottom: 1px solid var(--line); }
ul.plain { margin: .4rem 0 0; padding-left: 1.2rem; }
.tag-warn { background: var(--warn-bg); color: var(--warn); }
.peppol-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-bottom: .75rem; }
.peppol-bar form { margin: 0; }
.bank-out td { background: color-mix(in srgb, var(--bg) 60%, transparent); }

/* Onderdelen (3.1) */
.art-pick { position: relative; display: block; }
.art-results { position: static; width: 100%; min-width: 11rem; margin-top: .3rem; background: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.12); max-height: 240px; }
.art-results .picker-item { white-space: normal; }
.lines-table .col-code { min-width: 9rem; }
.cart-table input.short { width: 4.5rem; }
.cart-table input.num { text-align: right; }
.cart-table td input[type=text]:not(.short) { min-width: 8rem; width: 100%; }
.cart-table select { min-width: 5.5rem; }
.cart-table td:last-child { white-space: nowrap; }
.pad-x { margin: .5rem 1rem; }
input.short { width: 6rem; }
.unit-label { align-self: center; color: var(--muted); }
.table.small td, .table.small th { font-size: .85rem; padding: .35rem .5rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.btn-shop { border-style: dashed; }

/* Klantenportaal (3.4) */
body.portal { background: #f4f4f2; margin: 0; }
.portal-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.5rem; background: #111; color: #fff; }
.portal-head .portal-contact { color: #bbb; }
.portal-brand { display: flex; align-items: baseline; gap: .6rem; }
.portal-brand .brand-mark { color: #fff; letter-spacing: .3em; font-weight: 600; }
.portal-brand .brand-sub { color: #999; letter-spacing: .2em; font-size: .7rem; }
.portal-main { max-width: 1000px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.portal-main .card { margin-bottom: 1rem; }
.portal-foot { text-align: center; padding: 1rem; }
.portal-link { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.portal-link input { flex: 1 1 320px; font-family: var(--mono, monospace); font-size: .85rem; }

/* Contracten (3.5) */
.contract-body { min-height: 420px; font-size: .85rem; line-height: 1.45; }
.contract-body-view { max-width: 820px; font-size: .95rem; line-height: 1.5; }
.contract-body-view h2 { font-size: 1.15rem; text-align: center; margin: .5rem 0 1rem; }
.contract-body-view h3 { font-size: .95rem; margin: 1rem 0 .25rem; color: #6d5f49; }
.contract-body-view p { margin: 0 0 .6rem; }
.contract-body-view ul { margin: 0 0 .6rem 1.2rem; }
.sign-pad-wrap { position: relative; margin: .5rem 0; }
.sign-pad { width: 100%; max-width: 600px; height: auto; aspect-ratio: 600 / 220; border: 1px dashed #999; border-radius: 8px; background: #fff; touch-action: none; display: block; }
.sign-clear { position: absolute; right: .5rem; top: .5rem; }
.mt { margin-top: .75rem; }
.pay-copy { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.pay-qr { text-align: center; }
.pay-qr-img { width: 220px; max-width: 80%; height: auto; margin: .5rem auto; display: block; }

/* Statistieken (3.8) */
.chart { width: 100%; height: auto; display: block; margin: .25rem 0 .75rem; }
.chart-axis { stroke: var(--line); stroke-width: 1; }
.chart-bar rect { fill: #2f2f2e; }
.chart-bar.is-neg rect { fill: #b3261e; }
.chart-bar:hover rect { fill: #7a6a52; }
.chart-val { font-size: 10px; fill: #444; }
.chart-month { font-size: 10px; fill: #888; text-transform: uppercase; }

/* Planning (3.7) */
.plan-grid th, .plan-grid td { vertical-align: top; }
.plan-grid th.is-today, .plan-cell.is-today { background: #fbf8f1; }
.plan-lane { width: 9rem; }
.plan-cell { min-width: 9.5rem; padding: .4rem; }
.plan-cell.is-absent { background: #f6f1f1; }
.plan-card { border: 1px solid var(--line); border-left: 3px solid #2f2f2e; border-radius: 6px; padding: .35rem .5rem; margin-bottom: .35rem; background: #fff; }
.plan-card.status-bezig { border-left-color: #b8860b; }
.plan-card.status-klaar, .plan-card.status-gefactureerd { border-left-color: #2e7d32; opacity: .75; }
.plan-time { font-weight: 600; margin-left: .3rem; }
.plan-edit summary { cursor: pointer; color: var(--muted); }
.plan-form { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; margin-top: .3rem; }
.plan-form input, .plan-form select { font-size: .85rem; padding: .25rem .4rem; }
.plan-form input.short { width: 4rem; }
.plan-total { margin-top: .2rem; }

/* Stap 3.9: foto's van voorraadwagens en de openbare website-pagina's */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .75rem; }
.photo-item { position: relative; border: 1px solid var(--border, #e3e3e0); border-radius: 8px; overflow: hidden; background: #fff; }
.photo-item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-actions { display: flex; justify-content: space-between; align-items: center; gap: .3rem; padding: .35rem .5rem; }
.photo-actions form { margin: 0; }
.web-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.web-card { display: block; background: #fff; border: 1px solid var(--border, #e3e3e0); border-radius: 10px; overflow: hidden; color: inherit; text-decoration: none; transition: box-shadow .15s; }
.web-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,.08); }
.web-photo { position: relative; aspect-ratio: 4 / 3; background: #ececea; display: flex; align-items: center; justify-content: center; }
.web-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.web-badge { position: absolute; top: .6rem; left: .6rem; background: #111; color: #fff; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; padding: .25rem .5rem; border-radius: 4px; }
.web-body { padding: .8rem 1rem 1rem; }
.web-specs { color: var(--muted); margin: .35rem 0 .5rem; }
.web-price { font-weight: 600; font-size: 1.1rem; }
.web-price.big { font-size: 1.7rem; }
.web-gallery { margin-bottom: 1rem; }
.web-gallery-main img { width: 100%; max-height: 560px; object-fit: contain; background: #111; border-radius: 10px; display: block; }
.web-gallery-thumbs { display: flex; gap: .4rem; overflow-x: auto; padding: .5rem 0; }
.web-thumb { flex: 0 0 96px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: none; cursor: pointer; }
.web-thumb.is-active { border-color: #111; }
.web-thumb img { display: block; width: 96px; height: 72px; object-fit: cover; }
.web-detail { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1rem; align-items: start; }
.web-specgrid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1rem; margin-top: 1rem; }
.web-spec { display: flex; flex-direction: column; }
.web-text { white-space: pre-line; }
@media (max-width: 720px) { .web-detail { grid-template-columns: 1fr; } }

/* ---------------- BEDA Privé — aanvullingen ---------------- */
.icon-list     { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01'/%3E%3C/svg%3E"); }
.icon-target   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Ccircle cx='12' cy='12' r='1.5'/%3E%3C/svg%3E"); }
.icon-tag      { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M3 12V4h8l10 10-8 8z'/%3E%3Ccircle cx='7.5' cy='8.5' r='1.5'/%3E%3C/svg%3E"); }
.icon-card     { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Crect x='3' y='6' width='18' height='13' rx='2'/%3E%3Cpath d='M3 10h18M7 15h4'/%3E%3C/svg%3E"); }

.topbar-search { flex: 1; max-width: 420px; }
.topbar-search input { width: 100%; }
.kpi-value.neg { color: var(--err); }
.amt-in { color: var(--ok); font-weight: 500; }
.amt-out { color: var(--ink); }
.nowrap { white-space: nowrap; }
.mt { margin-top: 1.5rem; }
.pad-x { padding: .5rem 1.1rem .9rem; margin: 0; }
.card-head.pad { padding: 1rem 1.1rem 0; }

.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; align-items: center; }
.filters input[type=search] { flex: 1; min-width: 200px; }
.filters select { max-width: 260px; }
.inline { display: inline-flex; gap: .5rem; align-items: center; margin: 0; }
.row-form { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.row-form .wide { flex: 1; min-width: 180px; }
input.tiny, select.tiny, .tiny { width: 7rem; }
input.slim, select.slim { padding: .25rem .4rem; font-size: .88rem; min-width: 0; }
input.slim.wide { width: 100%; min-width: 160px; }
input.slim.tiny { width: 6.5rem; }
input.num { text-align: right; }
.table.compact td { padding: .35rem .5rem; }
.table.tx .inline-cat { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin: 0; }
.table.tx .inline-cat select { max-width: 260px; padding: .25rem .4rem; font-size: .85rem; }
.table.tx tr.is-unknown td { background: #fffaf0; }
.table.tx tr.is-unknown td:first-child { border-left: 3px solid var(--warn); }
.inline-amount { display: inline-flex; gap: .3rem; margin: 0; justify-content: flex-end; }
.table .group-row td { background: #f2f2f1; font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: .45rem .6rem; }
.table .total-row td, .table tfoot th { font-weight: 600; border-top: 2px solid var(--ink); background: #fafaf8; }
.table .saldo-row td { font-weight: 600; background: var(--warn-bg); }
.table .saldo-row td.ok { background: var(--ok-bg); }
.matrix td, .matrix th { white-space: nowrap; font-size: .88rem; padding: .35rem .5rem; }
.matrix td:first-child { white-space: normal; min-width: 220px; }
.matrix td.num a { text-decoration: none; }
.scroll-x { overflow-x: auto; }
.prio { display: inline-block; width: 1.6rem; height: 1.6rem; line-height: 1.6rem; text-align: center; border-radius: 50%; background: #ececea; font-size: .8rem; font-weight: 600; }
.prio-1, .prio-2 { background: var(--err-bg); color: var(--err); }
.prio-3, .prio-4 { background: var(--warn-bg); color: var(--warn); }
.bar-cell { min-width: 140px; }
.bar { height: 8px; background: #ececea; border-radius: 999px; overflow: hidden; margin: .2rem 0 .1rem; }
.bar-fill { height: 100%; width: 0; background: var(--ok); border-radius: 999px; transition: width .3s; }
.bar-fill.near { background: var(--warn); }
.bar-fill.over { background: var(--err); }
.chart-bar.is-in rect { fill: #1f7a3d; }
.chart-bar.is-in:hover rect { fill: #2f9a53; }
.legend { display: flex; gap: 1.2rem; font-size: .8rem; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: .4rem; vertical-align: middle; background: #2f2f2e; }
.legend .legend-in::before { background: #1f7a3d; }
.checklist li.ok { color: var(--ok); }
.checklist li.warn { color: var(--err); }
@media (max-width: 760px) {
    .topbar-search { display: none; }
    .table.tx .inline-cat label { display: none; }
    .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .card.flush { overflow-x: auto; }
    .hide-m { display: none; }
    .kpis { grid-template-columns: 1fr 1fr; }
    .kpi-value { font-size: 1.2rem; }
}
.form-actions.pad-x { padding: .75rem 1.1rem 1rem; margin-top: 0; }
.status { display: inline-block; padding: .15rem .6rem; border-radius: 999px; background: #ececea; font-size: .8rem; }

/* Documenten */
.doc-nieuw { background: #eef2f7; color: #264a7a; }
.doc-verwerkt { background: var(--warn-bg); color: var(--warn); }
.doc-bevestigd { background: var(--ok-bg); color: var(--ok); }
.doc-genegeerd { background: #f2f2f1; color: var(--muted); }
.doc-fout { background: #fbe9e7; color: #b3261e; }
.doc-preview { max-width: 100%; border: 1px solid var(--line, #ddd); border-radius: 6px; }
.choices { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.choice { display: block; padding: .6rem .8rem; border: 1px solid var(--line, #ddd); border-radius: 8px; cursor: pointer; }
.choice:has(input[type=radio]:checked) { border-color: var(--accent, #111); background: #fafaf9; }
.choice > .small { display: block; margin-top: .3rem; margin-left: 1.4rem; }
.choice label.inline { margin-right: .6rem; }
.note.warn { color: var(--warn); }

/* Overzicht: grafieken */
.page-head.sub { margin-top: 1.5rem; }
.page-head.sub h2 { margin: 0; font-size: 1.15rem; }
.month-strip { display: flex; gap: .35rem; margin-top: .75rem; overflow-x: auto; padding-bottom: .25rem; }
.month-chip { flex: 1 0 auto; min-width: 58px; text-align: center; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: .35rem .4rem; background: #fafaf8; }
.month-chip:hover { border-color: var(--ink); }
.month-chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.month-chip.is-active .warn, .month-chip.is-active .ok { color: #fff; }
.month-chip-label { display: block; font-size: .72rem; color: var(--muted); }
.month-chip.is-active .month-chip-label { color: #ccc; }
.month-chip-val { display: block; font-size: .85rem; font-weight: 600; }
.kpi-value.small-value { font-size: 1.05rem; white-space: normal; }
.kpi-sub.warn { color: var(--warn); }
.h-sub { font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 1.25rem 0 .5rem; }
.hbars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.hbars.compact { gap: .3rem; }
.hbar { display: grid; grid-template-columns: 150px 1fr 120px; align-items: center; gap: .6rem; font-size: .9rem; }
.hbars.compact .hbar { grid-template-columns: 170px 1fr 90px; font-size: .84rem; }
.hbar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); text-decoration: none; }
.hbar-label:hover { text-decoration: underline; }
.hbar-track { position: relative; height: 14px; background: #efefed; border-radius: 4px; overflow: hidden; }
.hbar-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--ink); border-radius: 4px; transition: width .3s; }
.hbar-fill.is-over { background: #b3261e; }
.hbar-fill.is-in { background: var(--ok); }
.hbar-avg { position: absolute; top: -2px; bottom: -2px; width: 2px; background: #fff; box-shadow: 0 0 0 1px var(--muted); }
.hbar-val { text-align: right; white-space: nowrap; }
.spark-table td.spark-cell { width: 40%; }
.spark { height: 34px; width: 100%; max-width: 360px; display: block; }
.spark rect { fill: #c9c9c6; }
.spark rect.is-active { fill: var(--ink); }
@media (max-width: 700px) {
    .hbar, .hbars.compact .hbar { grid-template-columns: 100px 1fr 90px; }
    .spark-table th:nth-child(4), .spark-table td:nth-child(4), .spark-table th:nth-child(5), .spark-table td:nth-child(5) { display: none; }
}

/* Mail */
.maillist { list-style: none; margin: 0; padding: 0; }
.mailrow { display: grid; grid-template-columns: 150px 1fr auto; gap: .75rem 1rem; padding: .8rem 1.2rem; border-bottom: 1px solid var(--line); align-items: start; }
.mailrow:last-child { border-bottom: 0; }
.mailrow.imp-5 { border-left: 4px solid var(--err); }
.mailrow.imp-4 { border-left: 4px solid var(--warn); }
.mailrow.is-muted { opacity: .6; }
.mail-meta { display: flex; flex-direction: column; gap: .25rem; align-items: flex-start; }
.mail-box { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.mail-from { font-weight: 500; }
.mail-subject { margin-top: .1rem; }
.mail-summary { margin-top: .25rem; font-size: .9rem; color: var(--ink-2); }
.mail-action { margin-top: .25rem; font-size: .9rem; font-weight: 500; color: #264a7a; }
.mail-actions { display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; margin: 0; }
.mail-more summary { list-style: none; cursor: pointer; }
.mail-more summary::-webkit-details-marker { display: none; }
.mail-more-body { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .4rem; }
.cat-belangrijk { background: var(--err-bg); color: var(--err); }
.cat-financieel { background: var(--warn-bg); color: var(--warn); }
.cat-zakelijk { background: #eef2f7; color: #264a7a; }
.cat-persoonlijk { background: var(--ok-bg); color: var(--ok); }
.cat-reclame { background: #f2f2f1; color: var(--muted); }
.cat-overig { background: #ececea; }
li.empty.pad { padding: 1.5rem; color: var(--muted); text-align: center; }
@media (max-width: 700px) { .mailrow { grid-template-columns: 1fr; } .mail-meta { flex-direction: row; flex-wrap: wrap; } }

/* Schulden: verdeling */
.stackbar { display: flex; height: 28px; border-radius: 6px; overflow: hidden; background: #efefed; }
.stackbar-seg { display: flex; align-items: center; justify-content: center; font-size: .72rem; color: #fff; text-decoration: none; white-space: nowrap; overflow: hidden; min-width: 0; flex: 0 0 auto; width: 0; }
.stackbar-seg:hover { filter: brightness(1.15); }
.hbars.top-gap { margin-top: 1rem; }
.hbars.compact .hbar-label { }
.seg-0 { background: #111; } .seg-1 { background: #264a7a; } .seg-2 { background: #9a5b00; } .seg-3 { background: #1f7a3d; }
.seg-4 { background: #b3261e; } .seg-5 { background: #5b4a8a; } .seg-6 { background: #3a3a3a; } .seg-7 { background: #7a6a2b; }
.hbar-fill.seg-0, .hbar-fill.seg-1, .hbar-fill.seg-2, .hbar-fill.seg-3, .hbar-fill.seg-4, .hbar-fill.seg-5, .hbar-fill.seg-6, .hbar-fill.seg-7 { }
.hbars.wide-val .hbar { grid-template-columns: 200px 1fr 210px; }
@media (max-width: 700px) { .hbars.wide-val .hbar { grid-template-columns: 100px 1fr 130px; } }
.mail-file { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: .4rem; padding: .35rem .5rem; background: #fafaf8; border: 1px dashed var(--line); border-radius: 6px; font-size: .88rem; }
.mail-file-icon { font-size: .68rem; font-weight: 600; letter-spacing: .04em; padding: .1rem .35rem; border-radius: 3px; background: var(--ink); color: #fff; }
.mail-file form { margin: 0; }

/* Plan */
.plan-line { fill: none; stroke: var(--ink); stroke-width: 2.2; }
.plan-line.base { stroke: #b5b5b2; stroke-dasharray: 4 4; stroke-width: 1.6; }
.tag { display: inline-block; font-size: .7rem; padding: .05rem .4rem; border-radius: 4px; background: #ececea; color: var(--ink-2); margin-left: .35rem; vertical-align: middle; }
.chat-q { background: #f2f2f1; border-radius: 10px 10px 2px 10px; padding: .6rem .9rem; margin: .5rem 0 .3rem 20%; }
.chat-a { background: var(--card); border: 1px solid var(--line); border-radius: 10px 10px 10px 2px; padding: .7rem .9rem; margin: 0 20% .9rem 0; line-height: 1.5; }
@media (max-width: 700px) { .chat-q { margin-left: 8%; } .chat-a { margin-right: 8%; } }
.target-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.target-grid .kpi-value .small { font-size: .8rem; font-weight: 400; margin-left: .3rem; }
@media (max-width: 700px) { .target-grid { grid-template-columns: 1fr; } }
.pay-move { width: 44px; }
.pay-move form { margin: 0; }
.top-gap { margin-top: .75rem; }
.is-paid > td:first-child > a, .is-paid > td:first-child { color: var(--muted); }
.is-paid > td:nth-child(2) { color: var(--muted); text-decoration: line-through; }
.pay-tick { display: flex; gap: .3rem; align-items: center; flex-wrap: wrap; margin-top: .3rem; }
.pay-tick input[type=date] { width: auto; }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0 .2rem; font-size: 1em; }
.link-btn:hover { color: var(--err); }

/* Maandscherm */
.nav-more summary { list-style: none; cursor: pointer; }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-sub { padding-left: 2.2rem; font-size: .92rem; }
.mo-head { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: .25rem 0 1rem; }
.mo-title { margin: 0; font-size: 1.6rem; text-transform: capitalize; }
.mo-nav { font-size: 1.6rem; text-decoration: none; color: var(--muted); padding: 0 .6rem; }
.mo-nav:hover { color: var(--ink); }
.mo-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-bottom: 1.25rem; }
.mo-sum { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; text-align: center; }
.mo-sum-label { display: block; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.mo-sum-val { display: block; font-size: 1.7rem; font-weight: 600; margin-top: .2rem; }
.mo-sum.is-pos .mo-sum-val { color: var(--ok); }
.mo-sum.is-neg { background: var(--err-bg); border-color: #f0c9c5; }
.mo-sum.is-neg .mo-sum-val { color: var(--err); }
.mo-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1rem; align-items: start; }
.mo-col { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; }
.mo-h { margin: 0 0 .6rem; font-size: 1.05rem; }
.mo-group { margin-bottom: 1rem; }
.mo-group-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; padding: .35rem 0; border-bottom: 2px solid var(--ink); margin-bottom: .2rem; flex-wrap: wrap; }
.mo-group-title { font-weight: 600; }
.mo-group-rest { font-size: .85rem; color: var(--muted); }
.mo-group-rest.is-neg strong { color: var(--err); }
.mo-line > form { display: none; }
.mo-line { display: grid; grid-template-columns: minmax(0, 1fr) 96px 118px 34px 26px; gap: .35rem; align-items: center; padding: .3rem 0; border-bottom: 1px solid var(--line); }
.mo-line.is-done .mo-name, .mo-line.is-done .mo-amt { color: var(--muted); text-decoration: line-through; }
.mo-name, .mo-amt { border: 1px solid transparent; background: transparent; padding: .3rem .4rem; border-radius: 6px; font: inherit; min-width: 0; }
.mo-name:hover, .mo-amt:hover, .mo-name:focus, .mo-amt:focus { border-color: var(--line); background: #fff; }
.mo-amt { text-align: right; font-variant-numeric: tabular-nums; }
.mo-src { font-size: .82rem; padding: .25rem .3rem; border: 1px solid var(--line); border-radius: 6px; background: #fafaf8; width: 100%; }
.mo-tick { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-size: .95rem; color: var(--muted); }
.mo-tick:hover { border-color: var(--ok); color: var(--ok); }
.mo-tick.is-on { background: var(--ok); border-color: var(--ok); color: #fff; }
.mo-del { border: 0; background: none; color: #bbb; cursor: pointer; font-size: 1.1rem; }
.mo-del:hover { color: var(--err); }
.mo-add { display: grid; grid-template-columns: minmax(0, 1fr) 96px 118px 118px 34px; gap: .35rem; align-items: center; margin-top: .6rem; }
.mo-add .mo-name, .mo-add .mo-amt { border-color: var(--line); background: #fff; }
.mo-empty { color: var(--muted); font-size: .9rem; padding: .3rem 0; }
.mo-hint { font-size: .8rem; color: var(--muted); margin: .75rem 0 0; }
.mo-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 900px) { .mo-grid { grid-template-columns: 1fr; } .mo-summary { grid-template-columns: 1fr 1fr 1fr; gap: .4rem; } .mo-sum-val { font-size: 1.2rem; } .mo-line { grid-template-columns: minmax(0,1fr) 80px 30px 24px; } .mo-line .mo-src { grid-column: 1 / -1; } .mo-add { grid-template-columns: minmax(0,1fr) 80px 34px; } .mo-add .mo-src { grid-column: 1 / -1; } }
.mo-line.mo-in { grid-template-columns: minmax(0, 1fr) 110px 34px 26px; }
.mo-add.mo-in { grid-template-columns: minmax(0, 1fr) 110px 34px; }

/* === BEDA-programma's: zelfde wisselaar in Boekhouding, Privé Financiën en Website beheer (en op beheer.bedagarage.be) === */
.beda-apps{position:relative;margin-right:14px}
.beda-apps>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:8px;padding:6px 12px;border:1px solid #e3e3e0;border-radius:8px;background:#fff;font:600 13px/1.2 Arial,Helvetica,sans-serif;color:#111;white-space:nowrap}
.beda-apps>summary::-webkit-details-marker{display:none}
.beda-apps>summary .ba-mark{letter-spacing:.32em;font-weight:700}
.beda-apps>summary .ba-naam{font-weight:500;color:#444}
.beda-apps>summary::after{content:"";width:6px;height:6px;border-right:1.5px solid #666;border-bottom:1.5px solid #666;transform:rotate(45deg) translateY(-2px);margin-left:2px}
.beda-apps[open]>summary{border-color:#111}
.beda-apps-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:200;min-width:260px;background:#fff;border:1px solid #e3e3e0;border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.12);padding:6px}
.beda-apps-menu a{display:block;padding:9px 12px;border-radius:7px;color:#111;text-decoration:none;font:600 14px/1.25 Arial,Helvetica,sans-serif}
.beda-apps-menu a small{display:block;font-weight:400;font-size:11.5px;color:#888;margin-top:2px}
.beda-apps-menu a:hover{background:#f4f4f2}
.beda-apps-menu a.is-on{background:#111;color:#fff}
.beda-apps-menu a.is-on small{color:#bbb}
.beda-apps-menu .ba-alle{border-top:1px solid #eee;margin-top:6px;padding-top:10px;font-weight:500;color:#555;border-radius:0 0 7px 7px}
@media (max-width:640px){.beda-apps>summary .ba-naam{display:none}.beda-apps{margin-right:8px}}

.beda-home{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border:1px solid #e3e3e0;border-radius:8px;background:#fff;color:#111;text-decoration:none;font:600 13px/1.2 Arial,Helvetica,sans-serif;white-space:nowrap;margin-right:8px}
.beda-home:hover{border-color:#111}
.beda-backup{display:inline-flex;align-items:center;gap:7px;padding:6px 11px;border-radius:999px;font:600 12px/1.2 Arial,Helvetica,sans-serif;text-decoration:none;white-space:nowrap;margin-right:8px}
.beda-backup .bb-dot{width:8px;height:8px;border-radius:50%;background:currentColor}
.beda-backup.is-ok{background:#e8f6ee;color:#17693b}
.beda-backup.is-bad{background:#fdecea;color:#a1251b}
.beda-backup.is-off{background:#f1f1ef;color:#666}
@media (max-width:900px){.beda-backup{font-size:0;padding:7px}.beda-backup .bb-dot{width:10px;height:10px}}
@media (max-width:640px){.beda-home{font-size:0;padding:6px 10px}.beda-home::before{content:"⌂";font-size:16px}}

/* === Stijl A: licht & rustig (gedeeld door BEDA Boekhouding, Privé Financiën en Website beheer) === */
:root { --bg: #f5f5f3; --line: #ebebe8; --side: #ffffff; --side-ink: #4a4a4a; --radius: 12px; --shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 18px rgba(0,0,0,.05); }
body, body.beheer { background: var(--bg); }
.sidebar { background: #fff; color: var(--side-ink); border-right: 1px solid var(--line); }
.brand, .beheer .brand { color: var(--ink); padding: 1.5rem 1.3rem 1.3rem; }
.brand .brand-sub, .beheer .brand .brand-sub { color: #8a8a8a; border-color: #d9d9d6; }
.brand-mark { font-weight: 600; letter-spacing: .3em; font-size: 1.05rem; }
.brand .brand-sub { font-size: .55rem; letter-spacing: .22em; padding-left: .6rem; margin-left: .6rem; white-space: nowrap; }
.nav { padding: .4rem .7rem; gap: 2px; }
.nav-item, .beheer .nav-item { color: #4a4a4a; border-left: 0; border-radius: 9px; padding: .55rem .8rem; font-size: .93rem; font-weight: 500; }
.nav-item:hover { background: #f1f1ee; color: var(--ink); }
.nav-item.is-active { background: var(--ink); color: #fff; border-left: 0; }
.nav-item.is-active .icon { opacity: 1; }
.nav-item .teller { background: var(--ink); color: #fff; }
.nav-item.is-active .teller { background: #fff; color: var(--ink); }
.nav-sep { background: var(--line); margin: .5rem .4rem; }
.sidebar-foot { color: #9a9a9a; }
.sidebar-foot a { color: #777; }
.topbar { background: rgba(245,245,243,.86); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); padding: .8rem 1.6rem; }
.topbar h1, .beheer .topbar h1 { font-size: 1.25rem; }
.user-link { color: #333; }
.card, .beheer .paneel { background: #fff; border: 1px solid transparent; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.35rem; }
.bare-box { border: 0; box-shadow: var(--shadow); border-radius: 16px; padding: 2.2rem; }
.kpi { border: 1px solid transparent; box-shadow: var(--shadow); border-radius: var(--radius); }
a.kpi:hover { border-color: var(--ink); }
.kpi-value { font-size: 1.6rem; letter-spacing: -.02em; }
.table th { color: #8a8a8a; font-weight: 600; font-size: .74rem; letter-spacing: .06em; border-bottom: 1px solid var(--line); }
.table td { border-bottom: 1px solid #f1f1ee; }
.table tbody tr:hover td { background: #fafaf8; }
.btn { border-radius: 9px; border-color: #dcdcd8; }
.btn:hover { border-color: var(--ink); }
.btn-primary, .btn-primary:hover { border-color: var(--ink); }
.btn-primary:hover { background: #2a2a2a; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=tel], input[type=search], select, textarea { border-radius: 9px; border-color: #dcdcd8; background: #fff; }
.alert { border-radius: 10px; }
.pill { border-radius: 999px; }
.beda-apps > summary, .beda-home { border-color: #dcdcd8; }
.beda-apps > summary:hover, .beda-home:hover { border-color: var(--ink); }
@media (max-width: 760px) { .sidebar.is-open { box-shadow: 0 0 0 100vmax rgba(0,0,0,.35), 0 0 40px rgba(0,0,0,.2); } }
.beda-privacy{display:inline-flex;align-items:center;gap:7px;padding:6px 11px;border:1px solid #dcdcd8;border-radius:8px;background:#fff;color:#111;font:600 12.5px/1.2 Arial,Helvetica,sans-serif;cursor:pointer;white-space:nowrap;margin-right:8px}
.beda-privacy:hover{border-color:#111}
.beda-privacy.is-on{background:#111;color:#fff;border-color:#111}
.beda-privacy .bp-eye{width:14px;height:14px;display:inline-block;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center/contain no-repeat}
.beda-privacy.is-on .bp-eye{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 3l18 18M10.6 10.6a3 3 0 0 0 4.2 4.2M9.9 5.1A10.5 10.5 0 0 1 12 5c6.5 0 10 7 10 7a17 17 0 0 1-3.2 4.1M6.6 6.6C3.8 8.4 2 12 2 12s3.5 7 10 7c1.6 0 3-.3 4.3-.9'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 3l18 18M10.6 10.6a3 3 0 0 0 4.2 4.2M9.9 5.1A10.5 10.5 0 0 1 12 5c6.5 0 10 7 10 7a17 17 0 0 1-3.2 4.1M6.6 6.6C3.8 8.4 2 12 2 12s3.5 7 10 7c1.6 0 3-.3 4.3-.9'/%3E%3C/svg%3E")}
.privacy-form{margin:0}
body.is-privacy .chart, body.is-privacy .bar-chart, body.is-privacy .kpi-sub, body.is-privacy .stat-table, body.is-privacy [data-cijfers]{filter:blur(7px);pointer-events:none;user-select:none}
@media (max-width:640px){.beda-privacy .bp-txt{display:none}}

/* ---------- Schuldbemiddeling (1.9.0) ---------- */
.sb-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.5rem; align-items: center; }
.sb-hero-date { font-size: 2.2rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; margin: .1rem 0 .3rem; }
.sb-progress { height: 14px; border-radius: 999px; background: #ececea; overflow: hidden; }
.sb-progress-fill { height: 100%; background: linear-gradient(90deg, #1f7a3d, #58b87a); border-radius: 999px; min-width: 2px; transition: width .4s; }
.sb-progress-text { margin-top: .5rem; font-size: .9rem; color: var(--muted); }
.sb-progress-text strong { color: var(--ink); }
.sb-area { fill: rgba(31, 122, 61, .12); }
.sb-line { fill: none; stroke: #1f7a3d; stroke-width: 2; }
.sb-dot { fill: #fff; stroke: #1f7a3d; stroke-width: 2; }
.sb-order td { padding: .45rem .5rem; }
.sb-order tr.is-next td { background: var(--ok-bg); font-weight: 600; }
.sb-legend { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: .7rem; font-size: .85rem; }
.sb-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: .4rem; vertical-align: -1px; }
.sb-vast { background: #6b6b6b; } .sb-aflos { background: #2f4f7f; } .sb-leef { background: #c48a2a; } .sb-res { background: #8a6bbf; } .sb-extra { background: #1f7a3d; }
.stackbar-seg.sb-vast, .stackbar-seg.sb-aflos, .stackbar-seg.sb-leef, .stackbar-seg.sb-res, .stackbar-seg.sb-extra { min-width: 0; }
.sb-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .75rem; margin-bottom: 1.25rem; }
.sb-step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; }
.sb-step b { display: block; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.sb-step span { font-size: 1.1rem; font-weight: 600; }
.sb-close { background: #fafaf8; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; margin-top: 1.25rem; }
.sb-close .form-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.sb-stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: .2rem; }
.sb-stars label { cursor: pointer; font-size: 1.3rem; color: #c9c9c6; }
.sb-stars input { position: absolute; opacity: 0; }
.sb-stars label:has(input:checked) span, .sb-stars label:has(input:checked) ~ label span, .sb-stars label:hover span, .sb-stars label:hover ~ label span { color: #c48a2a; }
.sb-done { border-left: 3px solid var(--ok); }
.sb-compare td { padding: .4rem .5rem; }
@media (max-width: 760px) { .sb-hero { grid-template-columns: 1fr; } .sb-hero-date { font-size: 1.7rem; } }
.sb-prio { width: 56px; }
.sb-pill-klein { font-size: .7rem; vertical-align: middle; }
.sb-order .form-actions.pad-x { padding-bottom: 1rem; }
.sb-pad-b { padding-bottom: 1rem; }

/* ================= BEDA Privé 2.0 ================= */
.v2-hero { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: end; }
.v2-hero-num { font-size: 2rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; white-space: nowrap; }
.v2-hero-num.is-neg, .v2-neg { color: var(--err); }
.v2-hero-num.is-pos, .v2-pos { color: var(--ok); }
.v2-hero-foot { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: .9rem; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; font-size: .92rem; }
.v2-hero-foot strong { font-weight: 600; }
.v2-chart .v2-grid { stroke: var(--line); stroke-width: 1; }
.v2-line { fill: none; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.v2-area { stroke: none; opacity: .12; }
.v2-line.c-debt { stroke: #b3261e; } .v2-area.c-debt { fill: #b3261e; }
.v2-line.c-assets { stroke: #1f7a3d; } .v2-area.c-assets { fill: #1f7a3d; }
.v2-line.c-net { stroke: #111; }
.v2-line.c-inleg { stroke: #8d8d8a; stroke-dasharray: 5 5; stroke-width: 1.8; }
.v2-dot { fill: #fff; stroke: #111; stroke-width: 2; }
.v2-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: .6rem; font-size: .85rem; color: var(--ink-2); }
.v2-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: .4rem; vertical-align: -1px; }
.v2-legend i.c-debt { background: #b3261e; } .v2-legend i.c-assets { background: #1f7a3d; } .v2-legend i.c-net { background: #111; } .v2-legend i.c-inleg { background: #8d8d8a; }
.k-kost { background: #6b6b6b; } .k-afbetaling { background: #2f4f7f; } .k-pot { background: #c48a2a; } .k-extra { background: #b3261e; } .k-opbouw { background: #1f7a3d; } .k-vrij { background: #b9b9b5; }
.k-noodpot { background: #c48a2a; } .k-buffer { background: #7a6a2b; } .k-sparen { background: #1f7a3d; } .k-doel { background: #58b87a; }
.k-pensioen { background: #2f4f7f; } .k-beleggen { background: #111; } .k-obligaties { background: #5b4a8a; } .k-crypto { background: #b3261e; }
.v2-miles { list-style: none; margin: 0; padding: 0; }
.v2-miles li { display: flex; gap: .9rem; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.v2-miles li:last-child { border-bottom: 0; }
.v2-miles time { flex: 0 0 5.5rem; color: var(--muted); font-size: .88rem; text-transform: capitalize; }
.v2-items { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1.25rem; }
.v2-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; }
.v2-item.is-done { opacity: .6; }
.v2-item-head { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: .5rem 1rem; align-items: center; }
.v2-item-name { font-weight: 600; }
.v2-item-name .tag { margin-left: 0; margin-right: .35rem; }
.v2-item-sub { font-size: .82rem; color: var(--muted); }
.v2-fig { text-align: right; white-space: nowrap; }
.v2-fig b { display: block; font-size: 1.05rem; font-weight: 600; }
.v2-fig span { font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.v2-item .bar { margin-top: .6rem; }
.v2-item details { margin-top: .6rem; }
.v2-item details > summary { cursor: pointer; font-size: .85rem; color: var(--muted); }
.v2-item details[open] > summary { margin-bottom: .75rem; color: var(--ink); }
.v2-forms { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.25rem; }
.v2-forms h3, .v2-h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 .6rem; font-weight: 500; }
.v2-forms .form-grid { gap: .7rem; }
.form-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.v2-month-nav { display: flex; align-items: center; gap: .5rem; }
.v2-pay { margin-bottom: 1.25rem; }
.v2-pay-head { display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; }
.v2-pay-head h2 { margin: 0; }
.v2-pay-head .v2-pay-amt { margin-left: auto; font-size: 1.25rem; font-weight: 600; }
.v2-lines { list-style: none; margin: .75rem 0 0; padding: 0; }
.v2-line-row { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) auto auto; gap: .6rem; align-items: center; padding: .5rem 0; border-top: 1px solid var(--line); }
.v2-line-row.is-done .v2-line-label { color: var(--muted); }
.v2-line-row.is-done .v2-line-text { text-decoration: line-through; }
.v2-line-row.is-tekort { color: var(--err); font-weight: 600; }
.v2-line-label small { display: block; font-size: .76rem; color: var(--muted); text-decoration: none; }
.v2-line-amt { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 500; }
.v2-line-row form { margin: 0; }
.v2-tick { width: 1.9rem; height: 1.9rem; border-radius: 999px; border: 2px solid #cfcfcb; background: #fff; cursor: pointer; font-size: 1rem; line-height: 1; color: transparent; padding: 0; }
.v2-tick:hover { border-color: var(--ok); color: var(--ok); }
.v2-tick.is-on { background: var(--ok); border-color: var(--ok); color: #fff; }
.v2-tick[disabled] { opacity: .4; cursor: default; }
.v2-line-edit { display: flex; gap: .35rem; align-items: center; }
.v2-line-edit input { width: 6.2rem; text-align: right; padding: .25rem .45rem; }
.v2-x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 1.1rem; padding: 0 .2rem; }
.v2-x:hover { color: var(--err); }
.v2-budget { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.v2-budget table { width: 100%; border-collapse: collapse; }
.v2-budget td { padding: .35rem 0; border-bottom: 1px solid var(--line); }
.v2-budget td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.v2-budget tr.total td { font-weight: 600; border-bottom: 0; border-top: 2px solid var(--ink); }
.v2-budget i, .v2-key { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: .5rem; }
.v2-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.v2-info > div { border-left: 3px solid var(--line); padding-left: .9rem; font-size: .9rem; }
.v2-info h3 { font-size: .95rem; margin: 0 0 .3rem; }
.v2-info p { margin: 0 0 .4rem; }
.v2-edit-table input.slim, .v2-edit-table select.slim { width: 100%; }
.v2-edit-table td { vertical-align: middle; }
.v2-edit-table input.pct { width: 5rem; }
.v2-edit-table input.amt { width: 6.5rem; }
.v2-checklist { margin: .5rem 0 1rem; padding-left: 1.2rem; }
.v2-checklist li { margin: .2rem 0; }
@media (max-width: 900px) {
    .v2-forms, .v2-budget { grid-template-columns: 1fr; }
    .form-grid.cols-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    .v2-hero { grid-template-columns: 1fr; gap: .9rem; }
    .v2-hero-num { font-size: 1.6rem; }
    .v2-item-head { grid-template-columns: 1fr 1fr 1fr; }
    .v2-item-head > :first-child { grid-column: 1 / -1; }
    .v2-fig { text-align: left; }
    .form-grid.cols-3 { grid-template-columns: 1fr; }
    .v2-line-row { grid-template-columns: 2.2rem minmax(0, 1fr) auto; }
    .v2-line-row .v2-line-edit { grid-column: 2 / -1; justify-content: flex-end; }
}

.row-form select { width: auto; }
.row-form label.inline { flex-direction: row; }
.row-form input.tiny { flex: 0 0 7rem; }
.v2-item details .row-form { margin-bottom: .6rem; }
@media (max-width: 760px) { .v2-line-row > span:empty:last-child { display: none; } }
.v2-note { margin-top: .15rem; }
.v2-note > summary { cursor: pointer; font-size: .78rem; color: var(--muted); list-style: none; }
.v2-note > summary::-webkit-details-marker { display: none; }
.v2-note[open] > summary { margin-bottom: .35rem; }
.v2-note .row-form { margin-bottom: 0; }
.v2-bonus-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem; }
.v2-bonus-head h2 { margin: 0; }
.v2-bonus-head .v2-pay-amt { margin-left: auto; font-size: 1.25rem; font-weight: 600; }
.v2-follow { border-top: 1px solid var(--line); padding: .9rem 0; }
.v2-follow:first-of-type { border-top: 0; }
.v2-follow-head { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: baseline; }
.v2-follow-head a { font-weight: 600; text-decoration: none; }
.v2-follow-note { margin: .5rem 0 0; padding: .6rem .8rem; background: #fafaf8; border-left: 3px solid var(--line); white-space: pre-line; font-size: .92rem; }
.v2-follow ul { margin: .4rem 0 0; padding-left: 1.1rem; font-size: .88rem; color: var(--ink-2); }
.v2-step-detail { margin: .3rem 0 0; font-size: .9rem; color: var(--ink-2); max-width: 70ch; }
.v2-line-row.is-done .v2-step-detail { color: var(--muted); }
