:root {
  --navy-950: #040F1F; --navy-900: #061830; --navy-800: #0B2340; --navy-700: #12305A;
  --green: #8BD62A; --green-deep: #5FA10C; --green-soft: #EEF8E0;
  --bg: #F3F5F8; --surface: #FFFFFF; --text: #0E1B2C; --muted: #5B6B7E; --line: #E1E6EC;
  --red: #C93A2E; --red-soft: #FCEBE9; --amber: #A86A00; --amber-soft: #FFF3D9; --blue: #1D5FB8; --blue-soft: #E7F0FC;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Montserrat", system-ui, sans-serif;
  --r: 12px; --side: 240px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font-body); font-size: 14px; line-height: 1.5; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.1; color: var(--navy-900); }
h1 { font-size: 2rem; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }
h2 { font-size: 1.35rem; font-weight: 700; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.hidden { display: none !important; }

/* Layout */
.app { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { background: var(--navy-900); color: #DCE5EF; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 22px 14px; }
.side__logo { display: block; padding: 0 10px 22px; }
.side__logo img { height: 34px; width: auto; }
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav__group { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #7F93AB; padding: 16px 12px 6px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; text-decoration: none; font-weight: 500; }
.nav a:hover { background: var(--navy-800); color: #fff; }
.nav a.active { background: var(--navy-700); color: #fff; box-shadow: inset 3px 0 0 var(--green); }
.nav svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.nav .count { margin-left: auto; background: var(--green); color: var(--navy-900); font-size: 11px; font-weight: 700; border-radius: 99px; padding: 1px 7px; }
.side__foot { border-top: 1px solid rgba(255,255,255,.09); padding: 14px 12px 0; font-size: 12px; color: #7F93AB; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.side__foot button { background: none; border: 0; color: #DCE5EF; cursor: pointer; padding: 4px; text-decoration: underline; }
.topbar { display: none; }
main { padding: 28px clamp(16px, 3vw, 40px) 60px; min-width: 0; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.head p { margin: 4px 0 0; color: var(--muted); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 16px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; font-size: 13.5px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--navy-700); }
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: var(--green); border-color: var(--green); color: var(--navy-900); }
.btn--primary:hover { background: #9BE23F; border-color: #9BE23F; }
.btn--navy { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.btn--navy:hover { background: var(--navy-700); }
.btn--danger { color: var(--red); }
.btn--danger:hover { border-color: var(--red); }
.btn--ghost { border-color: transparent; background: transparent; }
.btn--sm { min-height: 30px; padding: 0 11px; font-size: 12.5px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn { background: none; border: 0; cursor: pointer; color: var(--muted); padding: 6px; border-radius: 8px; display: inline-grid; place-items: center; }
.icon-btn:hover { color: var(--red); background: var(--red-soft); }
.icon-btn svg { width: 16px; height: 16px; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.card + .card { margin-top: 16px; }
.card__title { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.grid { display: grid; gap: 16px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; text-decoration: none; display: block; }
a.kpi:hover { border-color: var(--navy-700); }
.kpi__label { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.kpi__value { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--navy-900); line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi__sub { font-size: 12.5px; color: var(--muted); }
.kpi__sub.bad { color: var(--red); font-weight: 600; }
.kpi--accent { background: var(--navy-900); border-color: var(--navy-900); }
.kpi--accent .kpi__label, .kpi--accent .kpi__sub { color: #A9B8CA; }
.kpi--accent .kpi__value { color: var(--green); }
.two { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }

/* Chart */
.bars { display: flex; align-items: flex-end; gap: 8px; height: 170px; padding-top: 10px; }
.bars__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; height: 100%; justify-content: flex-end; }
.bars__pair { display: flex; gap: 2px; align-items: flex-end; height: 100%; width: 100%; justify-content: center; }
.bars__bar { width: 42%; max-width: 18px; border-radius: 4px 4px 0 0; min-height: 2px; }
.bars__bar--uit { background: var(--green-deep); }
.bars__bar--in { background: var(--navy-700); }
.bars__lbl { font-size: 11px; color: var(--muted); }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* Tables */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #FAFBFC; }
td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr.link { cursor: pointer; }
tbody tr.link:hover td { background: #F7FAF2; }
.card table th { background: none; padding-left: 0; }
.card table td { padding-left: 0; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: #EEF1F5; color: var(--muted); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--green { background: var(--green-soft); color: var(--green-deep); }
.badge--red { background: var(--red-soft); color: var(--red); }
.badge--amber { background: var(--amber-soft); color: var(--amber); }
.badge--blue { background: var(--blue-soft); color: var(--blue); }
.tag { font-size: 11px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }

/* Toolbar / tabs */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.tabs { display: inline-flex; background: #E7EBF0; border-radius: 99px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.tabs button { border: 0; background: none; padding: 6px 14px; border-radius: 99px; font-weight: 600; font-size: 13px; cursor: pointer; color: var(--muted); }
.tabs button.on { background: var(--surface); color: var(--navy-900); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.search { flex: 1; min-width: 180px; max-width: 320px; }

/* Forms */
label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.input, select.input, textarea.input { width: 100%; min-height: 38px; padding: 7px 11px; border: 1.5px solid var(--line); border-radius: 9px; background: var(--surface); }
textarea.input { min-height: 80px; resize: vertical; }
.input:focus { outline: none; border-color: var(--green-deep); box-shadow: 0 0 0 3px rgba(139, 214, 42, .25); }
.input[readonly], .input:disabled { background: #F6F7F9; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field-row { display: flex; gap: 8px; }
.field-row > :first-child { flex: 1; }

/* Editor */
.editor { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.editor--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.preview { position: sticky; top: 20px; height: calc(100vh - 40px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.preview iframe, .preview img { width: 100%; height: 100%; border: 0; object-fit: contain; }
.lines td { padding: 6px 4px; border-bottom: 1px solid var(--line); }
.lines th { padding: 8px 4px; }
.lines .input { min-height: 34px; padding: 5px 8px; }
.lines td.desc { min-width: 220px; }
.lines .w-num { width: 90px; }
.lines .w-unit { width: 70px; }
.lines .w-vat { width: 105px; }
.totals { margin-left: auto; max-width: 340px; margin-top: 14px; }
.totals div { display: flex; justify-content: space-between; padding: 4px 0; font-variant-numeric: tabular-nums; }
.totals .grand { border-top: 2px solid var(--green); margin-top: 6px; padding-top: 8px; font-weight: 700; font-size: 16px; color: var(--navy-900); }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--amber-soft); color: #6B4600; margin-bottom: 16px; font-size: 13.5px; }
.notice--info { background: var(--blue-soft); color: #173F78; }
.notice--ok { background: var(--green-soft); color: #36610A; }
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Dropzone */
.drop { border: 2px dashed #C5CED9; border-radius: var(--r); padding: 26px; text-align: center; background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.drop.over, .drop:hover { border-color: var(--green-deep); background: #F7FBF0; }
.drop strong { display: block; font-size: 15px; color: var(--navy-900); }

/* Dialog */
dialog { border: 0; border-radius: 16px; padding: 0; width: min(560px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(4, 15, 31, .35); }
dialog::backdrop { background: rgba(4, 15, 31, .55); }
.dlg { padding: 22px; }
.dlg h2 { margin-bottom: 16px; }
.dlg__foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

/* Toast */
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--navy-900); color: #fff; padding: 11px 18px; border-radius: 99px; font-weight: 600; z-index: 99; box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: calc(100vw - 32px); }
.toast.err { background: var(--red); }

/* Login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: radial-gradient(1200px 600px at 20% -10%, var(--navy-700), var(--navy-950)); }
.login form { background: var(--surface); border-radius: 20px; padding: 32px; width: min(380px, 100%); box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.login img { height: 40px; margin-bottom: 20px; }
.login h1 { font-size: 1.6rem; margin-bottom: 4px; }
.login p { color: var(--muted); margin: 0 0 20px; }
.login .btn { width: 100%; justify-content: center; margin-top: 14px; min-height: 44px; }
.err-text { color: var(--red); font-size: 13px; margin-top: 10px; min-height: 1em; }

.spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1100px) { .editor--split { grid-template-columns: 1fr; } .preview { position: static; height: 70vh; } .two { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(4,15,31,.5); }
  .topbar { display: flex; align-items: center; justify-content: space-between; background: var(--navy-900); padding: 10px 16px; position: sticky; top: 0; z-index: 40; }
  .topbar img { height: 28px; }
  .topbar button { background: none; border: 0; color: #fff; padding: 6px; cursor: pointer; }
  .topbar svg { width: 24px; height: 24px; }
  main { padding: 20px 16px 60px; }
  h1 { font-size: 1.6rem; }
  .hide-sm { display: none; }
}

/* Opvolging */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat { background: #F7F9FB; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.stat__n { font-family: var(--font-display); font-size: 1.45rem; font-weight: 800; color: var(--navy-900); line-height: 1.1; white-space: nowrap; }
.stat__l { font-size: 12px; color: var(--muted); }
.timeline { margin-top: 12px; }
.timeline summary { cursor: pointer; font-weight: 600; font-size: 13px; }
.timeline ol { list-style: none; margin: 10px 0 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); display: grid; gap: 8px; }
.timeline li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.check-row { display: flex; gap: 8px; align-items: center; color: var(--text); font-weight: 500; font-size: 13.5px; margin: 0; }
.check-row input { width: 17px; height: 17px; accent-color: var(--green-deep); }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.two > *, .editor > * { min-width: 0; }

/* Facturatie & voorwaarden */
.progress { height: 10px; background: #E7EBF0; border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--green-deep); border-radius: 99px; }
.choices { display: grid; gap: 10px; }
.choice { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; color: var(--text); font-weight: 400; font-size: 14px; margin: 0; }
.choice:has(input:checked) { border-color: var(--green-deep); background: #F7FBF0; }
.choice input { margin-top: 3px; accent-color: var(--green-deep); width: 17px; height: 17px; flex: none; }
.choice > span { display: grid; gap: 4px; }
.choice .muted { font-size: 12.5px; }
.pct-row { display: flex !important; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; line-height: 1.5; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Btw-schakelaar */
.vat-switch { display: inline-flex; align-items: center; gap: 4px; background: #F1F4F7; border-radius: 99px; padding: 3px 3px 3px 12px; font-size: 12.5px; }
.vat-switch .muted { margin-right: 4px; }
.seg { border: 0; background: transparent; border-radius: 99px; padding: 5px 12px; font-weight: 700; font-size: 13px; cursor: pointer; color: var(--navy-900); }
.seg:hover { background: #E3E8EE; }
.seg.on { background: var(--green); color: var(--navy-900); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* Lijnen op smalle schermen: elke lijn als kaartje, alles zichtbaar */
@media (max-width: 760px) {
  .lines thead { display: none; }
  .lines, .lines tbody { display: block; }
  .lines tr[data-i] { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); position: relative; }
  .lines tr[data-i] td { display: block; border: 0; padding: 0; width: auto; min-width: 0; }
  .lines tr[data-i] td::before { content: attr(data-l); display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 3px; }
  .lines tr[data-i] td.desc { grid-column: 1 / -1; padding-right: 36px; }
  .lines tr[data-i] td.del { position: absolute; top: 28px; right: 0; }
  .lines tr[data-i] td.del::before { display: none; }
  .lines tr[data-i] td[data-total] { text-align: left; align-self: end; font-weight: 700; padding-bottom: 8px; }
  .lines .w-num, .lines .w-unit, .lines .w-vat { width: auto; }
}

/* ===== Leads, planningsbord, projecten ===== */
.back { text-decoration: none; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.back svg { width: 14px; height: 14px; }
.label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.dl dd { margin: 0; }
.steps { display: flex; flex-wrap: wrap; gap: 6px; }
.step { border: 1.5px solid var(--line); background: var(--surface); border-radius: 99px; padding: 6px 14px; font-weight: 600; font-size: 13px; cursor: pointer; color: var(--muted); }
.step:hover:not([disabled]) { border-color: var(--navy-700); color: var(--navy-900); }
.step.done { background: var(--green-soft); border-color: #CBE9A3; color: var(--green-deep); }
.step.on { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.step[disabled] { cursor: default; opacity: .6; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 10px; align-items: start; }
.col { background: #E9EDF2; border-radius: 12px; padding: 10px; min-height: 140px; transition: background .15s; }
.col.over { background: #DDEFC7; }
.col--pre { background: #EEF1F5; }
.col header { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 10px; }
.col h2 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .02em; }
.col__n { font-size: 12px; font-weight: 700; background: var(--surface); border-radius: 99px; padding: 1px 8px; color: var(--muted); }
.col__body { display: grid; gap: 8px; }
.col__empty { color: var(--muted); font-size: 12.5px; text-align: center; margin: 14px 0; }
.kcard { display: grid; gap: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; text-decoration: none; font-size: 13px; cursor: pointer; }
.kcard a { text-decoration: none; }
.kcard:hover { border-color: var(--navy-700); }
.kcard.dragging { opacity: .5; }
.kcard .muted { font-size: 12px; }
.kcard__row { display: flex; justify-content: space-between; gap: 8px; }
.kcard__nav { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); border-radius: 99px; padding: 5px 12px; font-size: 13px; color: var(--text); font-weight: 500; margin: 0; cursor: pointer; }
.chip:has(input:checked) { border-color: var(--green-deep); background: #F7FBF0; }
.chip input { accent-color: var(--green-deep); }
.hours-form { display: grid; grid-template-columns: 1fr 90px 1fr; gap: 10px; align-items: end; }
.hours-form .full { grid-column: 1 / -1; }
.mat td { padding: 6px 4px; }
.mat .input { min-height: 34px; padding: 5px 8px; }
.mat input[type=checkbox], .checklist input { width: 18px; height: 18px; accent-color: var(--green-deep); }
.mat-add { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.mat-add #m-desc { flex: 1; min-width: 200px; }
.sub { font-family: var(--font-body); font-size: 14px; margin: 18px 0 6px; }
.checklist { display: grid; gap: 6px; max-height: 240px; overflow: auto; }
.drop--sm { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 16px; text-align: left; }
.drop--sm svg { width: 22px; height: 22px; color: var(--green-deep); flex: none; }
.drop--sm strong { display: inline; font-size: 14px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.gallery figcaption { font-size: 11.5px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.doc-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 10px; background: #F7F9FB; text-decoration: none; font-size: 12px; padding: 8px; text-align: center; word-break: break-word; }
.doc-tile svg { width: 26px; height: 26px; color: var(--navy-700); }
.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.pcard { text-decoration: none; display: block; }
.pcard:hover { border-color: var(--navy-700); }
.pcard h2 { margin-top: 8px; }
.neg { color: var(--red); }
.vat .qrow td { background: #F3F6F9; font-weight: 700; border-bottom: 2px solid var(--line); }
.vat tr.now td { background: #F7FBF0; }
.vat .pay { color: var(--red); font-weight: 600; }
.vat .refund { color: var(--green-deep); font-weight: 600; }
tr.inactive td { opacity: .55; }
.side__foot span:last-child { display: flex; gap: 6px; }
@media (max-width: 760px) { .hours-form { grid-template-columns: 1fr 1fr; } }

.quick-days { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.quick-days .seg { border: 1.5px solid var(--line); background: var(--surface); padding: 4px 10px; font-size: 12.5px; }
.quick-days .seg.on { border-color: var(--green-deep); }

/* Btw */
.tabs a.tab { padding: 6px 14px; border-radius: 99px; font-weight: 600; font-size: 13px; color: var(--muted); text-decoration: none; }
.tabs a.tab.on { background: var(--surface); color: var(--navy-900); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.vat .qrow.now td { background: #EEF8E0; }
.vat .qrow.total td { background: var(--navy-900); color: #fff; border: 0; }
.vat .qrow.total .pay { color: #FF9B90; } .vat .qrow.total .refund { color: var(--green); }
.vat-card { display: block; text-decoration: none; margin: 0 0 18px; border-left: 4px solid var(--green-deep); }
.vat-card:hover { border-color: var(--navy-700); border-left-color: var(--green-deep); }
.vat-card__main { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.vat-card .kpi__value { font-size: 1.7rem; }
.vat-pay { color: var(--red) !important; } .vat-refund { color: var(--green-deep) !important; }
.vat-card__calc { display: grid; grid-template-columns: auto auto; gap: 2px 14px; font-size: 13px; color: var(--muted); }
.vat-card__calc b { color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.vat-card__more { display: block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--navy-700); }

/* ===== Overzicht ===== */
.dash { margin-bottom: 20px; }
.dash__h { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .03em; margin: 0 0 10px; }
.dash__h svg { width: 18px; height: 18px; color: var(--green-deep); }
.dash__h .muted { font-family: var(--font-body); font-size: 13px; text-transform: none; letter-spacing: 0; font-weight: 500; }
.dash .kpis { margin-bottom: 0; }
.kpis--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpis--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpis--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi .bad { color: var(--red); font-weight: 600; }
.kpi--neg .kpi__value { color: var(--red); }
.kpi--accent .vat-pay, .kpi--accent .vat-refund { color: inherit !important; }
.pipeline .kpi { position: relative; }
.pipeline .kpi:not(:last-child)::after { content: "→"; position: absolute; right: -11px; top: 50%; transform: translateY(-50%); color: #A9B8CA; font-weight: 700; z-index: 1; }
.acts { display: grid; gap: 8px; }
.act { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; border-left-width: 4px; }
.act:hover { background: #F7F9FB; }
.act > span:last-child { display: grid; }
.act .muted { font-size: 12.5px; }
.act__n { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; min-width: 34px; text-align: center; }
.act--red { border-left-color: var(--red); } .act--red .act__n { color: var(--red); }
.act--amber { border-left-color: #E0A100; } .act--amber .act__n { color: var(--amber); }
.act--blue { border-left-color: var(--blue); } .act--blue .act__n { color: var(--blue); }
.week-n { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
@media (max-width: 1200px) { .kpis--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .kpis--5, .kpis--4, .kpis--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pipeline .kpi::after { display: none; } }
@media (max-width: 420px) { .kpis--5, .kpis--4, .kpis--3 { grid-template-columns: 1fr; } }

/* Lange labels in kaarten mogen afbreken (anders wordt de pagina te breed op gsm) */
.card table .badge { white-space: normal; }
.card table td:first-child { overflow-wrap: anywhere; }
