/* Arcavo design tokens (SPEC §10, mockup). Own design, no third-party copy. */
:root {
  --bg: #F6F4EF; --sidebar: #EFECE4; --card: #FFFFFF; --border: #E4E0D6; --border-soft: #EFECE4;
  --text: #1C1B19; --text-2: #3D3A34; --muted: #5F5B53;
  --accent: #1F5C57; --accent-hover: #153F3C; --accent-light: #E3EFEC; --accent-text: #174A46;
  --warn-text: #7A4210; --warn-bg: #FBEFE2; --warn-chip: #F6E3CC; --warn-chip-text: #6E3B0E;
  --block-text: #6B3A2C; --block-bg: #FBF3F0; --block-border: #E8CFC6; --block-btn: #A04A33; --block-btn-text: #8A3B26;
  --bv: #A5642A; --radius: 14px; --radius-s: 10px; --radius-xs: 8px;
  --serif: Newsreader, Georgia, serif; --sans: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.45; }
a { color: var(--accent); } a:hover { color: var(--accent-hover); }
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 400; margin: 0; }
h1 { font-size: 40px; line-height: 1.1; } h2 { font-size: 24px; font-weight: 500; } h3 { font-size: 20px; font-weight: 500; }
code { font-size: 13px; background: var(--sidebar); padding: 2px 6px; border-radius: 4px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .strong { font-weight: 600; } .right { text-align: right; }
.inline { display: inline; }
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 248px; flex-shrink: 0; padding: 32px 20px; display: flex; flex-direction: column; gap: 32px; border-right: 1px solid var(--border); background: var(--sidebar); position: sticky; top: 0; height: 100vh; }
.brand { padding: 0 12px; } .brand-name { font-family: var(--serif); font-size: 22px; font-weight: 500; } .brand-sub { font-size: 13px; color: var(--muted); }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 12px; border-radius: var(--radius-xs); color: var(--text-2); text-decoration: none; font-size: 15px; }
.nav a:hover { background: rgba(255,255,255,.6); } .nav a.active { background: #fff; color: var(--text); font-weight: 600; }
.nav a.disabled { color: var(--muted); cursor: default; }
.badge { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.sidebar-foot { margin-top: auto; padding: 16px 12px 0; border-top: 1px solid #DDD8CC; display: flex; flex-direction: column; gap: 4px; }
.main { flex-grow: 1; padding: 40px 48px; display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head .sub { font-size: 14px; color: var(--muted); margin-top: 6px; }
.grid { display: grid; gap: 16px; } .grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.span-2 { grid-column: span 2; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.kpi .label { font-size: 14px; color: var(--muted); } .kpi .value { font-family: var(--serif); font-size: 34px; line-height: 1.1; } .kpi .delta { font-size: 13px; color: var(--muted); } .kpi .delta.up { color: var(--accent); } .kpi .delta.down { color: var(--warn-text); }
.row { display: flex; align-items: center; gap: 16px; } .row.between { justify-content: space-between; } .col { display: flex; flex-direction: column; gap: 4px; } .grow { flex-grow: 1; min-width: 0; }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; } .kv span:first-child { color: var(--muted); }
.list-item { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-s); }
.list-item.blocked { background: var(--block-bg); border-color: var(--block-border); } .list-item.blocked .muted { color: var(--block-text); }
.tile { padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-s); display: flex; flex-direction: column; gap: 4px; }
.chip { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.chip-high { background: var(--accent-light); color: var(--accent-text); } .chip-mid { background: var(--warn-bg); color: var(--warn-text); } .chip-low { background: var(--block-bg); color: var(--block-text); }
.chip-neutral { background: var(--sidebar); color: var(--text-2); } .chip-source { background: var(--accent); color: #fff; } .chip-assume { background: var(--warn-chip); color: var(--warn-chip-text); }
.chip-estimate { border: 1.5px dashed var(--muted); color: var(--text-2); padding: 3px 10px; }
.status-ok { color: var(--accent-text); } .status-warn { color: var(--warn-text); } .status-err { color: var(--block-text); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: var(--radius-xs); border: 1px solid var(--accent); background: #fff; color: var(--accent); font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { color: var(--accent-hover); border-color: var(--accent-hover); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); } .btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-danger { border-color: var(--block-btn); color: var(--block-btn-text); } .btn-small { min-height: 36px; padding: 0 12px; font-size: 13px; }
.btn-ghost { border-color: var(--border); color: var(--text-2); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.linklike { background: none; border: none; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; min-height: 44px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 10px; background: var(--sidebar); } .seg a, .seg button { min-height: 36px; min-width: 52px; padding: 0 12px; border-radius: 6px; border: none; background: transparent; color: var(--text-2); font: inherit; font-size: 13px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; } .seg .active { background: var(--text); color: #fff; }
.bar { height: 8px; border-radius: 4px; background: var(--sidebar); overflow: hidden; } .bar > div { height: 8px; border-radius: 4px; background: var(--accent); } .bar > div.bv { background: var(--bv); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; } table.data th { text-align: left; font-weight: 600; color: var(--muted); font-size: 13px; padding: 8px 10px; border-bottom: 1px solid var(--border); } table.data td { padding: 12px 10px; border-bottom: 1px solid var(--border-soft); vertical-align: top; } table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; } table.data tr:last-child td { border-bottom: none; }
table.data a.rowlink { color: inherit; text-decoration: none; font-weight: 600; } table.data a.rowlink:hover { color: var(--accent); }
form.stack { display: flex; flex-direction: column; gap: 12px; } label { font-size: 13px; font-weight: 600; color: var(--text-2); display: block; margin-bottom: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input:not([type]), select, textarea { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-xs); font: inherit; background: #fff; color: var(--text); }
textarea { min-height: 96px; } input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.field { display: flex; flex-direction: column; gap: 2px; } .fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 16px; } .fields .full { grid-column: 1 / -1; }
.help { font-size: 12px; color: var(--muted); }
.flashes { display: flex; flex-direction: column; gap: 8px; } .flash { padding: 12px 16px; border-radius: var(--radius-s); border: 1px solid var(--border); background: #fff; font-size: 14px; } .flash-success { background: var(--accent-light); color: var(--accent-text); border-color: transparent; } .flash-error { background: var(--block-bg); color: var(--block-text); border-color: var(--block-border); } .flash-info { background: var(--warn-bg); color: var(--warn-text); border-color: transparent; }
.notice { padding: 12px 16px; border-radius: var(--radius-s); font-size: 14px; } .notice-warn { background: var(--warn-bg); color: var(--warn-text); } .notice-block { background: var(--block-bg); color: var(--block-text); border: 1px solid var(--block-border); } .notice-info { background: var(--accent-light); color: var(--accent-text); }
.auth-main { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.auth-card h1 { font-size: 28px; } .auth-card form { display: flex; flex-direction: column; gap: 12px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .filters select, .filters input { width: auto; min-width: 160px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; } .doc-frame { width: 100%; height: 720px; border: 1px solid var(--border); border-radius: var(--radius-s); background: #fff; }
.pre { white-space: pre-wrap; font-family: inherit; font-size: 14px; max-height: 720px; overflow: auto; }
.diff td.old { color: var(--muted); text-decoration: line-through; } .diff td.new { font-weight: 600; }
.sparkline { width: 100%; height: 200px; }
.legend { display: flex; gap: 12px; font-size: 12px; color: var(--muted); } .dot { width: 10px; height: 10px; border-radius: 5px; display: inline-block; margin-right: 6px; vertical-align: middle; }
.signals { display: flex; flex-direction: column; gap: 8px; } .signal { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-s); border: 1px solid var(--border); background: #fff; font-size: 14px; } .signal.fout { border-color: var(--block-border); background: var(--block-bg); } .signal.aandacht { background: var(--warn-bg); border-color: transparent; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .grid-3 { grid-template-columns: 1fr; } .span-2 { grid-column: auto; } .split { grid-template-columns: 1fr; } }
@media (max-width: 800px) { .shell { flex-direction: column; } .sidebar { width: auto; height: auto; position: static; padding: 16px; gap: 12px; } .main { padding: 16px; } .grid-4, .grid-2, .fields { grid-template-columns: 1fr; } h1 { font-size: 30px; } }
@media print { .sidebar, .btn, .flashes { display: none !important; } .main { padding: 0; } .card { break-inside: avoid; } }

/* --- Screens: register, documents, settings, dashboard chart (additions; tokens unchanged) --- */
.chart { width: 100%; height: auto; display: block; }
.chart .gridline { stroke: var(--border-soft); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; font-family: var(--sans); }
.chart .area { fill: var(--accent-light); }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot-last { fill: var(--accent); }
.sensitive { display: inline-flex; align-items: baseline; gap: 6px; } .sensitive .lock { font-size: 12px; opacity: .7; }
.kv-grid .kv { flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--border-soft); }
.kv-grid .kv span:last-child { font-size: 15px; color: var(--text); }
.total { font-size: 22px; }
.filters.card { flex-direction: row; align-items: flex-end; gap: 12px 16px; padding: 16px 24px; }
.filters .filters-actions { display: flex; gap: 8px; align-items: center; }
.subnav { display: flex; gap: 6px; flex-wrap: wrap; } .subnav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--sidebar); color: var(--text-2); text-decoration: none; font-size: 14px; } .subnav a:hover { background: #fff; color: var(--accent); }
.scroll-y { max-height: 520px; overflow: auto; }
ul.plain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
label.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 500; } label.check input { width: 20px; height: 20px; margin: 0; }
details.cat-fields { border: 1px solid var(--border); border-radius: var(--radius-s); padding: 8px 14px; } details.cat-fields summary { cursor: pointer; min-height: 36px; display: flex; align-items: center; font-weight: 600; } details.cat-fields .fields { padding: 8px 0 12px; }
details summary { cursor: pointer; }
h4 { font-family: var(--sans); font-size: 14px; font-weight: 600; margin: 8px 0 0; }
input[type=file] { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-xs); background: #fff; font: inherit; }
select[multiple] { min-height: 160px; }
.card > form.row { align-items: flex-end; }

/* --- Screens: voorstellen, noodmap & overdracht (additions; tokens unchanged) --- */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
table.proposal-fields input.compact, table.proposal-fields select { min-height: 40px; padding: 6px 10px; font-size: 14px; }
table.proposal-fields td { vertical-align: middle; }
.score { font-variant-numeric: tabular-nums; margin-left: 4px; }
.doc-image { width: 100%; height: auto; max-height: 720px; object-fit: contain; border: 1px solid var(--border); border-radius: var(--radius-s); background: #fff; }
.seg a .small { font-weight: 400; margin-left: 4px; opacity: .8; }
.page-head .sub .chip { vertical-align: middle; }
tr.muted td { color: var(--muted); }
