/* BULK CRM - huisstijl BULK Group: Middernacht, Mandarijn (spaarzaam), Wit. Letter: Inter. */
:root {
  --navy: #0A1640; --navy-2: #1F2F6B; --mandarin: #FF8A00;
  --bg: #F4F5F9; --line: #ECEEF4; --border: #D5D9E6; --muted: #5B6178; --text-2: #3A4260;
  --soft: #ECEEF4; --warn-bg: #FFF3E0; --warn: #5A3300;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, Arial, sans-serif; color: var(--navy); background: var(--bg); }
a { color: var(--navy); } a:hover { color: var(--navy-2); }
.layout { display: flex; flex-wrap: wrap; min-height: 100vh; }
.side { flex: 1 1 220px; max-width: 100%; background: var(--navy); padding: 32px 20px; display: flex; flex-direction: column; gap: 32px; }
.side .logo { display: block; padding: 4px 12px; } .side .logo img { width: 132px; display: block; }
.side nav { display: flex; flex-direction: column; gap: 4px; }
.side nav a { text-decoration: none; color: #C9CEE0; border-radius: 8px; padding: 12px 12px 12px 30px; font-weight: 500; font-size: 15px; }
.side nav a.on { color: #fff; background: rgba(255,255,255,.10); font-weight: 600; padding-left: 12px; display: flex; align-items: center; gap: 10px; }
.side nav a.on::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: var(--mandarin); }
.side .label { color: #8E95B3; font-size: 12px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; padding: 12px 12px 4px; }
.side .me { margin-top: auto; padding: 0 12px; display: flex; flex-direction: column; gap: 4px; color: #C9CEE0; font-size: 13px; }
.side .me strong { color: #fff; font-size: 14px; }
.side .me button { background: none; border: 0; color: #C9CEE0; text-decoration: underline; padding: 0; font: inherit; cursor: pointer; text-align: left; margin-top: 8px; }
main { flex: 999 1 560px; min-width: 0; padding: 32px 40px; display: flex; flex-direction: column; gap: 24px; }
h1 { margin: 0; font-size: 30px; font-weight: 800; } h2 { margin: 0; font-size: 18px; font-weight: 700; }
.sub { color: var(--muted); font-size: 15px; }
.head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; }
.card { background: #fff; border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.card.dark { background: var(--navy); color: #fff; } .card.dark .muted { color: #C9CEE0; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.tile { background: #fff; border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.tile .k { color: var(--muted); font-size: 14px; font-weight: 500; } .tile .v { font-size: 30px; font-weight: 800; } .tile .s { color: var(--muted); font-size: 13px; }
.tile.dark { background: var(--navy); } .tile.dark .k, .tile.dark .s { color: #C9CEE0; } .tile.dark .v { color: var(--mandarin); }
.row { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.muted { color: var(--muted); font-size: 14px; }
.pill { font-size: 13px; font-weight: 600; background: var(--soft); border-radius: 6px; padding: 4px 8px; white-space: nowrap; }
.pill.late { background: var(--mandarin); color: var(--navy); }
.badge { background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; border-radius: 6px; padding: 3px 8px; letter-spacing: .5px; }
.badge.light { background: var(--soft); color: var(--navy); }
.btn { display: inline-block; font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; border-radius: 8px; padding: 11px 16px; cursor: pointer; border: 1px solid var(--navy); background: var(--navy); color: #fff; }
.btn.light { background: #fff; color: var(--navy); border-color: var(--border); }
.btn.small { padding: 7px 10px; font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: 14px; border-radius: 999px; padding: 9px 14px; text-decoration: none; background: #fff; color: var(--navy); border: 1px solid var(--border); }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); font-weight: 600; }
.tabs { display: flex; flex-wrap: wrap; background: #E4E7F0; border-radius: 10px; padding: 4px; gap: 4px; width: fit-content; }
.tabs a { text-decoration: none; font-size: 14px; border-radius: 8px; padding: 10px 14px; color: var(--text-2); }
.tabs a.on { background: #fff; color: var(--navy); font-weight: 700; }
.table { background: #fff; border-radius: 12px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-size: 13px; font-weight: 600; padding: 14px 16px; }
td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
td.r, th.r { text-align: right; white-space: nowrap; } td.b { font-weight: 700; white-space: nowrap; }
form.stack { display: flex; flex-direction: column; gap: 14px; }
.fields { display: flex; flex-wrap: wrap; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 200px; min-width: 0; }
/* In een kolom (formulier onder elkaar) geen vaste hoogte per veld, anders staan de regels te ver uit elkaar */
.stack > .field, .box > .field { flex: none; }
label, .lbl { font-size: 14px; font-weight: 600; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=search], input[type=number], select, textarea {
  font: inherit; font-size: 14px; padding: 10px 12px; border: 1px solid #C3C8D8; border-radius: 8px; color: var(--navy); background: #fff; width: 100%; }
textarea { min-height: 80px; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--navy); }
.radio-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-chips label { font-weight: 500; }
.radio-chips input { position: absolute; opacity: 0; }
.radio-chips span { display: inline-block; border: 1px solid var(--border); border-radius: 999px; padding: 9px 14px; cursor: pointer; }
.radio-chips input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); font-weight: 600; }
.radio-chips input:focus-visible + span { outline: 2px solid var(--mandarin); outline-offset: 2px; }
.flash { background: var(--warn-bg); color: var(--warn); border-radius: 8px; padding: 10px 14px; font-size: 14px; font-weight: 500; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 190px; border-bottom: 1px solid var(--border); min-width: 520px; }
.bars .col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.bars .bar { width: 100%; max-width: 40px; background: var(--navy); border-radius: 6px 6px 0 0; min-height: 2px; }
.bars .bar.cur { background: var(--mandarin); }
.bars .val { font-size: 11px; font-weight: 600; color: var(--text-2); }
.bars-x { display: flex; gap: 10px; min-width: 520px; padding-top: 6px; } .bars-x span { flex: 1; text-align: center; font-size: 12px; color: var(--muted); }
.hbar { height: 10px; background: var(--soft); border-radius: 5px; } .hbar div { height: 10px; background: var(--navy); border-radius: 5px; }
.split { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.split > .left { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.split > .right { flex: 2 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
dl.kv { margin: 0; display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 8px 12px; font-size: 14px; }
dl.kv dt { color: var(--muted); } dl.kv dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
details summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.center { min-height: 100vh; background: var(--navy); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px; padding: 48px 20px; }
.center .box { width: 100%; max-width: 400px; background: #fff; border-radius: 16px; padding: 32px; }
.center .foot { color: #C9CEE0; font-size: 13px; }
@media (max-width: 700px) { main { padding: 24px 16px; } }
