:root {
  --navy: #1f3a5f; --accent: #2f7fc1; --bg: #f5f7fa; --card: #fff; --line: #d9dee5; --muted: #6b7280;
  --red: #c0392b; --orange: #e08e0b; --green: #2e8b57; --text: #1f2937;
}
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); }
.top { background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 10px 24px; }
.brand { font-weight: 600; font-size: 16px; }
.brand small { font-weight: 400; opacity: .7; margin-left: 10px; }
.logo { color: #7fb8e8; margin-right: 6px; }
nav button { background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff; }
main { max-width: 1180px; margin: 22px auto; padding: 0 20px 60px; }
h1 { font-size: 22px; margin: 0 0 4px; color: var(--navy); }
h2 { font-size: 16px; color: var(--navy); margin: 22px 0 8px; }
.sub { color: var(--muted); margin: 0 0 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.spacer { flex: 1; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.scan-card { cursor: pointer; transition: box-shadow .15s; }
.scan-card:hover { box-shadow: 0 2px 10px rgba(31,58,95,.15); }
.scan-card h3 { margin: 0 0 4px; font-size: 15px; color: var(--navy); }
.scan-card .meta { color: var(--muted); font-size: 12px; }
button, .btn { font: inherit; padding: 6px 12px; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: var(--text); cursor: pointer; text-decoration: none; display: inline-block; }
button:hover, .btn:hover { border-color: var(--accent); }
button.primary, .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.danger { color: var(--red); }
button.small { padding: 2px 8px; font-size: 12px; }
input, select, textarea { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; width: 100%; }
textarea { min-height: 70px; resize: vertical; }
label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin: 10px 0 3px; }
label.check { display: flex; align-items: center; gap: 6px; font-weight: 400; color: var(--text); font-size: 13px; margin: 8px 0; }
label.check input { width: auto; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 14px 0 16px; flex-wrap: wrap; }
.tabs button { border: none; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; padding: 8px 14px; color: var(--muted); }
.tabs button.on { border-color: var(--accent); color: var(--navy); font-weight: 600; }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
th { text-align: left; background: #eef1f5; color: var(--navy); font-size: 12px; padding: 8px 10px; }
td { padding: 7px 10px; border-top: 1px solid #edf0f4; vertical-align: top; }
tr.click { cursor: pointer; }
tr.click:hover td { background: #f7fafd; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 11px; background: #e5e7eb; color: #374151; }
.badge.hoog { background: #f8d7d3; color: var(--red); } .badge.midden { background: #fbe8c5; color: #9a5b00; } .badge.laag { background: #d5eddf; color: var(--green); }
.badge.stub { background: #fde2e2; color: var(--red); } .badge.esb { background: #cfe4f6; color: #1d5b91; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; text-align: center; }
.kpi b { display: block; font-size: 26px; color: var(--navy); }
.kpi span { color: var(--muted); font-size: 12px; }
.light { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.light.rood { background: var(--red); } .light.oranje { background: var(--orange); } .light.groen { background: var(--green); }
dialog { border: none; border-radius: 10px; padding: 0; width: min(860px, 94vw); max-height: 92vh; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
dialog::backdrop { background: rgba(15,23,42,.45); }
.dlg-h { padding: 14px 20px; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--navy); font-size: 16px; }
.dlg-b { padding: 6px 20px 14px; overflow: auto; max-height: calc(92vh - 130px); }
.dlg-f { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; background: #fafbfc; }
.int-row { display: grid; grid-template-columns: 2fr 1.1fr 1.6fr auto 1.5fr auto; gap: 6px; align-items: center; margin-bottom: 6px; }
.int-row.head { font-size: 11px; color: var(--muted); font-weight: 600; }
.int-row label.check { margin: 0; white-space: nowrap; }
.finding { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.finding.uit { opacity: .5; }
.finding input[type=checkbox] { width: auto; margin-top: 4px; }
.finding h3 { margin: 0 0 3px; font-size: 14px; }
.finding p { margin: 3px 0; }
.finding .rec { color: #1d5b91; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 9px 18px; border-radius: 8px; z-index: 99; }
.toast.err { background: var(--red); }
.empty { color: var(--muted); padding: 24px; text-align: center; }
.login { max-width: 340px; margin: 80px auto; }
.diagram-wrap { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px; overflow: auto; }
.diagram-wrap svg { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.legend { color: var(--muted); font-size: 12px; margin-top: 8px; }
.hint { background: #eef6fc; border: 1px solid #cfe4f6; border-radius: 6px; padding: 8px 12px; font-size: 13px; }
.dl-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.dl-grid .card h3 { margin: 0 0 4px; font-size: 14px; color: var(--navy); }
.dl-grid .card p { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
@media (max-width: 760px) { .cols2, .int-row { grid-template-columns: 1fr; } }
