/* ContractBoks design tokens and base styles */
:root {
  --navy: #1B2D4F;
  --blue: #3B82F6;
  --blue-600: #2563EB;
  --blue-light: #E8F0FE;
  --bg: #F6F8FB;
  --surface: #FFFFFF;
  --surface-2: #FBFCFE;
  --border: #E4E9F0;
  --border-strong: #D3DBe6;
  --ink: #0F1B33;
  --ink-2: #475569;
  --ink-3: #7C8AA0;
  --ink-4: #9AA7BC;
  --green: #15803D;
  --green-bg: #DCFCE7;
  --green-soft: #1E9E54;
  --green-sbg: #ECFDF5;
  --amber: #B45309;
  --amber-bg: #FEF3C7;
  --red: #DC2626;
  --red-bg: #FEE2E2;
  --red-dim: #B0322C;
  --red-dimbg: #FBEEED;
  --info: #1D4ED8;
  --info-bg: #DBEAFE;
  --navy-glow: rgba(59,130,246,.16);
  --r-sm: 7px;
  --r: 10px;
  --r-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(16,27,51,.05), 0 1px 3px rgba(16,27,51,.05);
  --shadow: 0 1px 2px rgba(16,27,51,.04), 0 6px 18px rgba(16,27,51,.06);
  --sidebar-w: 252px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: 'DM Sans', system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--blue-light); color: var(--navy); }
body { min-height: 100vh; }

/* Layout */
.app-shell { display: flex; min-height: 100vh; }
.main-column { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.content-area { padding: 30px 34px 60px; flex: 1; }

/* Sidebar */
.sidebar { width: var(--sidebar-w); flex-shrink: 0; background: var(--navy); display: flex; flex-direction: column; color: #fff; position: sticky; top: 0; height: 100vh; }
.sidebar-logo { padding: 24px 22px 20px; display: flex; align-items: center; gap: 10px; }
.sidebar-logo img { height: 26px; }
.sidebar-logo span { font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.sidebar-nav { padding: 6px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.nav-section { font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.36); padding: 16px 12px 7px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); color: rgba(255,255,255,.72); font-size: 14px; font-weight: 500; position: relative; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: rgba(59,130,246,.16); color: #fff; }
.nav-item.active::before { content: ''; position: absolute; left: -12px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--blue); }
.nav-badge { margin-left: auto; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; min-width: 19px; height: 19px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.sidebar-user { margin: 12px; padding: 12px; border-radius: var(--r); background: rgba(255,255,255,.05); display: flex; align-items: center; gap: 11px; border: 1px solid rgba(255,255,255,.07); }
.avatar-circle, .avatar-circle-lg { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: #2c4a7e; color: #fff; font-weight: 700; }
.avatar-circle { width: 36px; height: 36px; }
.avatar-circle-lg { width: 56px; height: 56px; font-size: 18px; }
.user-name { font-size: 13px; font-weight: 600; }
.user-role { font-size: 11.5px; color: rgba(255,255,255,.7); }
.icon-btn { width: 38px; height: 38px; border-radius: var(--r-sm); display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.08); color: #fff; }
.icon-btn:hover { background: rgba(255,255,255,.12); }

/* Topbar */
.topbar { height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 34px; background: rgba(246,248,251,.85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.topbar-search { display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--border-strong); border-radius: var(--r-sm); padding: 0 13px; height: 38px; width: 320px; color: var(--ink-3); }
.topbar-search input { border: none; outline: none; flex: 1; font-size: 13.5px; color: var(--ink); background: none; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.topbar-bell { position: relative; }
.topbar-bell .dot { position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border-radius: 999px; background: var(--red); border: 2px solid var(--bg); }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.card-table { overflow: hidden; }
/* Typography */
.page-title { font-size: 27px; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.page-sub { color: var(--ink-3); margin-top: 3px; }
.serif { font-family: 'Playfair Display', Georgia, serif; }
.muted { color: var(--ink-3); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; height: 38px; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 600; border: 1px solid transparent; transition: all .15s ease; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-600); }
.btn-soft { background: var(--blue-light); color: var(--blue-600); }
.btn-soft:hover { background: #dbe8fd; }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--ink-2); }
.btn-ghost:hover { background: #fff; }
.btn-sm { height: 32px; font-size: 12.5px; padding: 0 12px; }
.btn-lg { height: 46px; font-size: 15px; padding: 0 22px; }
.link-btn { color: var(--blue-600); font-weight: 600; font-size: 13px; }
.link-btn:hover { text-decoration: underline; }

/* Tables */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; }
.tbl thead th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.tbl tbody td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 13.5px; color: var(--ink-2); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover { background: var(--surface-2); }
.text-right { text-align: right; }

/* Badge */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.badge-getekend { background: var(--green-bg); color: var(--green); }
.badge-stilzwijgend { background: var(--green-sbg); color: var(--green-soft); }
.badge-openstaand { background: var(--amber-bg); color: var(--amber); }
.badge-geweigerd { background: var(--red-bg); color: var(--red); }
.badge-verlopen { background: var(--red-dimbg); color: var(--red-dim); }
.badge-herzien { background: var(--info-bg); color: var(--info); }
.badge-concept { background: var(--ink-4); color: var(--ink-2); }

/* Pills */
.pkg { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.pkg-basis { background: #EDF1F7; color: #5B6B85; }
.pkg-plus { background: #E5EFFF; color: #2563EB; }
.pkg-premium { background: #FBF0D8; color: #9A6B12; }
.pkg-none { background: #F1F3F7; color: #8A95A8; }

/* Inputs */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.input, .textarea, .select { width: 100%; border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: #fff; padding: 0 13px; height: 42px; font-size: 14px; color: var(--ink); }
.textarea { min-height: 108px; padding: 11px 13px; resize: vertical; line-height: 1.5; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237C8AA0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--navy-glow); }

/* Utility */
.row { display: flex; align-items: center; }
.between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mb-6 { margin-bottom: 24px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }

/* Specific components */
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; margin-bottom: 20px; }
.kpi-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.kpi-icon { width: 38px; height: 38px; border-radius: var(--r-sm); display: grid; place-items: center; margin-bottom: 14px; }
.kpi-value { font-size: 32px; font-weight: 700; color: var(--ink); }
.kpi-label { color: var(--ink-2); margin-top: 7px; font-weight: 500; }
.kpi-delta { display: inline-flex; align-items: center; gap: 6px; margin-top: 9px; font-size: 12px; font-weight: 600; }
.kpi-delta.up { color: var(--green); }
.kpi-delta.down { color: var(--red); }
.kpi-delta.flat { color: var(--ink-3); }
.alert-banner { display: flex; align-items: center; gap: 14px; padding: 15px 18px; border-radius: var(--r-lg); background: var(--red-bg); border: 1px solid #f3c7c5; color: var(--red); margin-bottom: 22px; }
.alert-banner .txt p { margin-top: 2px; color: #b4413e; }
.alert-action { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-weight: 700; }
.search-box { display: flex; align-items: center; gap: 9px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); padding: 0 13px; height: 40px; background: #fff; }
.search-box input { border: none; outline: none; width: 280px; height: 100%; }
.pill-group { display: inline-flex; gap: 6px; background: var(--surface-2); border: 1px solid var(--border); padding: 4px; border-radius: var(--r); }
.pill { display: inline-flex; align-items: center; padding: 7px 13px; border-radius: var(--r-sm); color: var(--ink-2); font-weight: 600; }
.pill.active { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.rem-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--ink-2); }
.rem-pill.full { background: var(--green-sbg); color: var(--green-soft); border-color: transparent; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 60px 20px; }
.empty-ico { width: 70px; height: 70px; border-radius: 999px; display: grid; place-items: center; background: var(--blue-light); color: var(--blue); margin-bottom: 18px; }
.crumbs { display: flex; align-items: center; gap: 7px; font-size: 13px; margin-bottom: 5px; }
.crumb-link { color: var(--ink-3); font-weight: 500; }
.crumb-link:hover { color: var(--blue); }
.crumb-cur { color: var(--ink-2); font-weight: 600; }
.tab { padding: 11px 16px; font-size: 14px; font-weight: 600; color: var(--ink-3); position: relative; }
.tab.active { color: var(--navy); }
.tab.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2.5px; background: var(--blue); border-radius: 2px; }
.detail-head { display: flex; align-items: flex-start; gap: 18px; margin: 14px 0 24px; }

.audit-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; align-items: start; }

/* login */
.login-page { display: flex; min-height: 100vh; }
.login-art { flex: 1; display: none; background: linear-gradient(160deg, #1B2D4F 0%, #16243f 60%, #101a30 100%); color: #fff; position: relative; overflow: hidden; }
.login-art-inner { padding: 64px 60px; max-width: 540px; display: flex; flex-direction: column; justify-content: center; height: 100%; }
.login-title { font-size: 52px; line-height: 1.02; margin: 28px 0 18px; letter-spacing: -.02em; }
.login-sub { color: rgba(255,255,255,.72); font-size: 16px; line-height: 1.65; max-width: 420px; }
.login-feats { margin-top: 40px; display: flex; flex-direction: column; gap: 16px; }
.login-feat { display: flex; align-items: center; gap: 13px; font-size: 14.5px; color: rgba(255,255,255,.85); }
.login-feat .feat-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: rgba(59,130,246,.18); }
.login-art-glow { position: absolute; width: 600px; height: 600px; border-radius: 999px; right: -200px; top: -150px; background: radial-gradient(circle, rgba(59,130,246,.28), transparent 65%); filter: blur(20px); }
.login-form-side { width: 100%; display: flex; align-items: center; justify-content: center; padding: 32px; background: var(--bg); }
.login-card { width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl); padding: 38px 38px 30px; box-shadow: var(--shadow); }
.login-card-logo { height: 26px; margin-bottom: 26px; }
.login-card h2 { margin: 0; font-size: 23px; font-weight: 700; color: var(--ink); }
.login-card .muted { color: var(--ink-3); font-size: 14px; margin-top: 5px; margin-bottom: 26px; }
.alert-error { border: 1px solid #FECACA; background: #FEE2E2; color: #B91C1C; border-radius: var(--r-sm); padding: 12px 14px; margin-bottom: 16px; }
.form-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; margin-bottom: 22px; }
.checkbox-row { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--ink-2); }
.checkbox { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border: 1px solid var(--border); border-radius: 6px; background: var(--blue); color: white; }
.login-foot { color: var(--ink-3); font-size: 12px; text-align: center; margin-top: 22px; }

@media (min-width: 940px) { .login-art { display: block; } }
@media (max-width: 1100px) { .kpi-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 860px) { .app-shell { flex-direction: column; } .sidebar { position: relative; width: 100%; height: auto; } .topbar { padding: 0 18px; } .content-area { padding: 24px 18px 40px; } }

/* ============ Missing components & utilities ============ */

/* Toolbar row */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.select-mini { height: 40px; border: 1px solid var(--border-strong); background: #fff; border-radius: var(--r-sm); padding: 0 32px 0 13px; font-size: 13.5px; color: var(--ink-2); font-weight: 500; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237C8AA0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; cursor: pointer; }

/* Table — strong cell */
.tbl .t-strong { color: var(--ink); font-weight: 600; }

/* Section / card headers */
.sec-title { font-size: 16px; font-weight: 700; color: var(--ink); }
.card-header { display: flex; align-items: center; justify-content: space-between; padding: 17px 20px 16px; }
.page-head { margin-bottom: 24px; }

/* Divider */
.divider { height: 1px; background: var(--border); }

/* Crumb separator */
.crumb-sep { color: var(--ink-4); }

/* Eyebrow / hint */
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.hint { font-size: 11.5px; color: var(--ink-3); }

/* Utility spacing / display */
.text-xs { font-size: 12px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mb-4 { margin-bottom: 16px; }
.justify-end { justify-content: flex-end; }
.space-y-4 > * + * { margin-top: 16px; }
.flex { display: flex; }
.items-center { align-items: center; }
.flex-col { flex-direction: column; }

/* Nav icon wrapper (sidebar) */
.nav-icon { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; opacity: .85; }
.nav-item.active .nav-icon { opacity: 1; }
.nav-icon svg { width: 18px; height: 18px; }

/* Avatar */
.avatar-circle { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: #2c4a7e; color: #fff; font-weight: 700; width: 36px; height: 36px; font-size: 14px; }
.avatar-circle-lg { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: #1B2D4F; color: #fff; font-weight: 700; width: 56px; height: 56px; font-size: 18px; }

/* Login brand */
.login-brand { height: 26px; margin-bottom: 0; }

/* Document badge large (audit detail) */
.doc-badge-lg { width: 56px; height: 56px; border-radius: 14px; background: var(--blue-light); color: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 26px; }

/* Timeline */
.timeline { display: flex; flex-direction: column; }
.tl-row { display: flex; gap: 15px; }
.tl-rail { display: flex; flex-direction: column; align-items: center; }
.tl-node { width: 34px; height: 34px; border-radius: 99px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px; }
.tl-line { width: 2px; flex: 1; background: var(--border); margin: 4px 0; min-height: 16px; }
.tl-body { flex: 1; padding-bottom: 22px; }
.tl-title { font-size: 14px; font-weight: 600; color: var(--ink); }
.tl-time { font-size: 12.5px; color: var(--ink-3); margin-left: 10px; }
.tl-meta { margin-top: 9px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 11px 13px; display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--ink); }
.tl-meta .muted { display: inline-block; width: 84px; }

/* Audit detail — weigering / hash */
.hashline { display: block; margin-top: 12px; font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 8px 11px; }
.weiger-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; font-size: 13.5px; color: var(--ink); }
.weiger-grid > div { display: flex; flex-direction: column; gap: 2px; }
.weiger-grid .muted { font-size: 11.5px; }
.weiger-reason { margin-top: 14px; background: rgba(255,255,255,.6); border: 1px solid #f0c4c2; border-radius: var(--r-sm); padding: 12px 14px; }
.weiger-reason p { font-size: 13.5px; color: #7c2420; line-height: 1.55; margin-top: 5px; font-style: italic; }
@media (max-width: 980px) { .audit-layout { grid-template-columns: 1fr; } }

/* Reminder chip (mailing log settings) */
.rem-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--blue-light); padding: 7px 9px 7px 13px; border-radius: 99px; }
.rem-chip button { color: var(--blue-600); display: flex; opacity: .6; }
.rem-chip button:hover { opacity: 1; }

/* Instellingen — pakket rows */
.pkg-row { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.pkg-row:last-of-type { border-bottom: none; }
.color-dot { width: 26px; height: 26px; border-radius: 7px; display: inline-block; cursor: pointer; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border-strong); flex-shrink: 0; }
.pkg-name-input { border: 1px solid transparent; background: transparent; font-size: 14.5px; font-weight: 600; color: var(--ink); padding: 6px 9px; border-radius: var(--r-sm); width: 160px; transition: all .12s; }
.pkg-name-input:hover { background: var(--surface-2); }
.pkg-name-input:focus { outline: none; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 3px var(--navy-glow); }
.switch { width: 36px; height: 21px; border-radius: 99px; background: var(--border-strong); position: relative; transition: background .18s; flex-shrink: 0; cursor: pointer; display: inline-flex; align-items: center; }
.switch span { position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 99px; background: #fff; transition: transform .18s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch.on { background: var(--green); }
.switch.on span { transform: translateX(15px); }

/* Wizard (document aanmaken) */
.wizard { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.wiz-steps { display: flex; padding: 22px 26px; border-bottom: 1px solid var(--border); background: var(--surface-2); gap: 0; overflow-x: auto; }
.wiz-step { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--ink-3); flex: 1; position: relative; min-width: 0; white-space: nowrap; }
.wiz-dot { width: 28px; height: 28px; border-radius: 99px; background: #fff; border: 1.6px solid var(--border-strong); display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; transition: all .18s; }
.wiz-step.active { color: var(--navy); cursor: default; }
.wiz-step.active .wiz-dot { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 0 4px var(--navy-glow); }
.wiz-step.done { color: var(--ink-2); cursor: pointer; }
.wiz-step.done .wiz-dot { background: var(--green); border-color: var(--green); color: #fff; }
.wiz-line { position: absolute; left: 38px; right: -10px; top: 14px; height: 2px; background: var(--border); z-index: -1; }
.wiz-step.done .wiz-line { background: var(--green); }
.wiz-body { padding: 30px 32px; min-height: 320px; }
.wiz-pane { animation: fadeUp .3s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wiz-h { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 18px; }
.wiz-foot { display: flex; justify-content: space-between; padding: 18px 26px; border-top: 1px solid var(--border); background: var(--surface-2); }

/* Wizard step 1 — radio type cards */
.radio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; max-width: 660px; }
.radio-card { display: flex; gap: 13px; align-items: flex-start; padding: 16px 18px; border: 1.6px solid var(--border); border-radius: var(--r); cursor: pointer; transition: all .15s; }
.radio-card:hover { border-color: #c2cee0; background: var(--surface-2); }
.radio-card.sel { border-color: var(--blue); background: var(--blue-light); }
.radio-dot { width: 20px; height: 20px; border-radius: 99px; border: 2px solid var(--border-strong); flex-shrink: 0; margin-top: 1px; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.radio-card.sel .radio-dot { border-color: var(--blue); }
.radio-card.sel .radio-dot span { width: 10px; height: 10px; border-radius: 99px; background: var(--blue); display: block; }
.rc-title { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.rc-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; line-height: 1.4; }

/* Wizard step 2 — pakket note */
.pkg-note { margin-top: 18px; font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
.pkg-note.ok { color: var(--ink-2); }
.pkg-note.warn { background: var(--amber-bg); border: 1px solid #f0d896; color: #92600c; padding: 13px 15px; border-radius: var(--r); align-items: flex-start; max-width: 480px; }

/* Wizard step 3 — template grid */
.tpl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tpl-card { border: 1.6px solid var(--border); border-radius: var(--r); padding: 16px 18px; cursor: pointer; transition: all .15s; background: #fff; }
.tpl-card:hover { border-color: #c2cee0; box-shadow: var(--shadow-sm); }
.tpl-card.sel { border-color: var(--blue); box-shadow: 0 0 0 3px var(--navy-glow); }
.tpl-ico { width: 38px; height: 38px; border-radius: 9px; background: var(--blue-light); color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.tpl-title { font-size: 14.5px; font-weight: 700; color: var(--ink); margin: 12px 0 5px; }
.tpl-desc { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.tpl-meta { font-size: 11.5px; color: var(--ink-4); margin-top: 10px; }

/* Wizard step 4 — form grid */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 640px; }

/* Wizard step 5 — document preview */
.doc-preview { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); padding: 28px; display: flex; justify-content: center; }
.doc-paper { background: #fff; width: 100%; max-width: 560px; padding: 40px 44px; border-radius: 4px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.doc-p { font-size: 14px; line-height: 1.7; color: var(--ink-2); margin-bottom: 13px; }
.doc-h { font-family: 'Playfair Display', Georgia, serif; font-size: 16px; color: var(--ink); margin: 16px 0 8px; }
.doc-sign { margin-top: 30px; padding-top: 20px; border-top: 1px dashed var(--border-strong); font-size: 13px; color: var(--ink-3); }

/* Templates list */
.tpl-list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tpl-list-card { padding: 18px 20px; display: flex; flex-direction: column; }
@media (max-width: 1180px) { .tpl-list-grid { grid-template-columns: repeat(2, 1fr); } }

/* Event badge variants (audit log) */
.badge-link_geopend { background: #EEF2F7; color: #475569; }
.badge-stilzwijgend_geaccepteerd { background: var(--green-sbg); color: var(--green-soft); }
.badge-pdf_gedownload { background: #E0F2FE; color: #0369A1; }
.badge-link_verlopen { background: var(--red-dimbg); color: var(--red-dim); }
.badge-reeds_getekend { background: #FFEDD5; color: #C2410C; }

@media (max-width: 760px) { .radio-grid, .tpl-grid, .form-grid, .tpl-list-grid { grid-template-columns: 1fr; } }
