/* =========================================================================
   VetFusion Adserver — gedeeld designsysteem (admin + adverteerdersportaal)
   Kleuren afgeleid van vetfusion.nl (amber, donkere inkt) en vetjobs.nl
   (diep petrol-blauw #143341, lichtblauw vlak #EEF8FC).
   ========================================================================= */
:root {
  --navy: #143341;
  --navy-2: #1f3c50;
  --navy-3: #2f4f66;
  --ink: #0f2733;
  --muted: #52708a;
  --muted-2: #7d96a8;
  --line: #d5e0e7;
  --line-2: #e6eef3;
  --sky: #eef8fc;
  --sky-2: #ddeff7;
  --bg: #f5f9fb;
  --white: #ffffff;
  --amber: #fcb334;
  --amber-2: #f2a118;
  --amber-soft: #fff4dc;
  --ok: #1b8a57;
  --ok-soft: #e3f5ec;
  --warn: #a55f00;
  --warn-soft: #fff4dc;
  --danger: #c23a3a;
  --danger-soft: #fdecec;
  --info: #25709f;
  --info-soft: #e1f0f8;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(20, 51, 65, .06);
  --shadow-md: 0 8px 24px rgba(20, 51, 65, .09);
  --shadow-lg: 0 20px 50px rgba(20, 51, 65, .18);
  --sidebar-w: 252px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--info); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; background: var(--sky); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 6px; color: var(--navy); }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------ Layout ------------------------------ */
.shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar { background: var(--navy); color: #cfe0ea; display: flex; flex-direction: column; padding: 22px 16px 16px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 20px; }
.logo { width: 40px; height: 40px; border-radius: 11px; background: #fff; display: grid; place-items: center; flex: none; overflow: hidden; }
.logo img { width: 40px; height: 40px; display: block; }
.brand-name { color: #fff; font-weight: 700; font-size: 15px; line-height: 1.2; }
.brand-sub { color: #8fb0c4; font-size: 12px; }
.btn-new { width: 100%; justify-content: center; margin-bottom: 18px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #7fa2b8; padding: 14px 12px 6px; font-weight: 600; }
.nav a { display: flex; align-items: center; gap: 11px; color: #cfe0ea; padding: 10px 12px; border-radius: 10px; font-weight: 500; font-size: 14px; text-decoration: none; transition: background .12s, color .12s; }
.nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav a.active { background: rgba(252,179,52,.16); color: #fff; box-shadow: inset 3px 0 0 var(--amber); }
.nav a.active svg { color: var(--amber); }
.sidebar-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; gap: 2px; }
.sidebar-foot button { all: unset; display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; color: #b7cfdd; cursor: pointer; font-size: 13.5px; font-weight: 500; }
.sidebar-foot button:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar-foot button:focus-visible { outline: 2px solid var(--amber); }
.server-tag { font-size: 11.5px; color: #7fa2b8; padding: 10px 12px 0; }

.main { min-width: 0; }
.topbar { display: none; }
.content { max-width: 1200px; margin: 0 auto; padding: 30px 32px 70px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { font-size: 26px; font-weight: 750; color: var(--navy); }
.page-head .sub { color: var(--muted); margin-top: 4px; max-width: 640px; }
.crumbs { font-size: 13px; margin-bottom: 8px; display: flex; gap: 6px; align-items: center; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--navy); }

/* ------------------------------ Cards ------------------------------ */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 22px; margin-bottom: 20px; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.card-head h2 { font-size: 16px; font-weight: 700; color: var(--navy); }
.card-head .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.card.flush .card-head { padding: 20px 22px 0; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-grid .span-2 { grid-column: span 2; }

.kpi { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 4px; position: relative; }
.kpi .kpi-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 10px; background: var(--sky); color: var(--navy); }
.kpi .kpi-ico.amber { background: var(--amber-soft); color: var(--warn); }
.kpi .kpi-ico.green { background: var(--ok-soft); color: var(--ok); }
.kpi .n { font-size: 28px; font-weight: 750; letter-spacing: -.02em; color: var(--navy); line-height: 1.1; }
.kpi .label { color: var(--muted); font-size: 13px; }
.kpi .delta { font-size: 12px; color: var(--muted-2); }

/* ------------------------------ Buttons ------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; background: var(--amber); color: var(--navy); padding: 10px 16px; border-radius: 10px; font: inherit; font-weight: 650; cursor: pointer; transition: background .12s, box-shadow .12s, transform .05s, border-color .12s; text-decoration: none; line-height: 1.2; white-space: nowrap; }
.btn:hover { background: var(--amber-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid rgba(252,179,52,.45); outline-offset: 2px; }
.btn.secondary { background: var(--white); color: var(--navy); border-color: var(--line); }
.btn.secondary:hover { background: var(--sky); border-color: var(--muted-2); }
.btn.navy { background: var(--navy); color: #fff; }
.btn.navy:hover { background: var(--navy-2); }
.btn.ghost { background: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--sky); color: var(--navy); }
.btn.danger { background: var(--white); color: var(--danger); border-color: #efc3c3; }
.btn.danger:hover { background: var(--danger-soft); }
.btn.danger.solid { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn.danger.solid:hover { background: #a92f2f; }
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.btn.icon { padding: 8px; }
.btn.block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn .spinner { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------ Forms ------------------------------ */
.field { margin-bottom: 16px; min-width: 0; }
.field > label, .field > .label { display: block; font-weight: 600; font-size: 13px; color: var(--navy); margin-bottom: 6px; }
.field .req { color: var(--danger); margin-left: 3px; }
.field .opt { color: var(--muted-2); font-weight: 500; margin-left: 6px; font-size: 12px; }
.field .hint { color: var(--muted); font-size: 12.5px; margin-top: 5px; }
.field .error { color: var(--danger); font-size: 12.5px; margin-top: 5px; font-weight: 500; display: flex; gap: 6px; align-items: center; }
.field.has-error input, .field.has-error select, .field.has-error textarea, .field.has-error .radio-cards, .field.has-error .dropzone { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
input[type=text], input[type=email], input[type=url], input[type=password], input[type=number], input[type=date], input:not([type]), select, textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: var(--white); color: var(--ink); transition: border-color .12s, box-shadow .12s; }
input::placeholder, textarea::placeholder { color: #9ab0bf; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-3); box-shadow: 0 0 0 3px var(--sky-2); }
input:disabled, select:disabled { background: var(--sky); color: var(--muted-2); cursor: not-allowed; }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer; }
select:invalid, select.placeholder { color: #9ab0bf; }
select option { color: var(--ink); }
textarea { resize: vertical; min-height: 76px; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-weight: 500; }
.check input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--navy); flex: none; }
.input-row { display: flex; gap: 8px; }
.input-row > input { flex: 1; }
.section-title { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin: 6px 0 12px; }

.radio-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border: 1px solid transparent; border-radius: 12px; }
.radio-card { position: relative; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px 14px 46px; cursor: pointer; background: var(--white); transition: border-color .12s, background .12s, box-shadow .12s; }
.radio-card:hover { border-color: var(--muted-2); }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card::before { content: ""; position: absolute; left: 16px; top: 17px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); background: #fff; transition: all .12s; }
.radio-card.selected { border-color: var(--navy); background: var(--sky); box-shadow: 0 0 0 3px var(--sky-2); }
.radio-card.selected::before { border-color: var(--navy); background: radial-gradient(circle, var(--navy) 0 4px, #fff 5px); }
.radio-card:focus-within { outline: 3px solid rgba(252,179,52,.45); outline-offset: 1px; }
.radio-card .t { font-weight: 650; color: var(--navy); }
.radio-card .d { color: var(--muted); font-size: 12.5px; margin-top: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 13px; font-size: 13px; font-weight: 550; color: var(--navy); cursor: pointer; transition: all .12s; font-family: inherit; }
.chip:hover { border-color: var(--muted-2); background: var(--sky); }
.chip.selected { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip .count { opacity: .7; margin-left: 6px; font-weight: 500; }
.segmented { display: inline-flex; background: var(--sky); border-radius: 10px; padding: 3px; gap: 2px; }
.segmented button { border: 0; background: transparent; padding: 6px 14px; border-radius: 8px; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.segmented button.active { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
details.adv { border: 1px solid var(--line); border-radius: 12px; padding: 0; margin: 4px 0 16px; background: var(--bg); }
details.adv > summary { cursor: pointer; padding: 12px 16px; font-weight: 650; color: var(--navy); list-style: none; display: flex; align-items: center; gap: 8px; }
details.adv > summary::-webkit-details-marker { display: none; }
details.adv > summary::after { content: "+"; margin-left: auto; font-size: 18px; color: var(--muted); }
details.adv[open] > summary::after { content: "−"; }
details.adv .adv-body { padding: 4px 16px 4px; border-top: 1px solid var(--line-2); padding-top: 16px; background: #fff; border-radius: 0 0 12px 12px; }

/* ------------------------------ Tables ------------------------------ */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; padding: 12px 16px; background: var(--bg); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 14px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.clickable { cursor: pointer; transition: background .1s; }
tbody tr.clickable:hover { background: var(--sky); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.cell-title { font-weight: 650; color: var(--navy); }
.cell-sub { color: var(--muted); font-size: 12.5px; }
.table-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; flex-wrap: wrap; border-bottom: 1px solid var(--line-2); }
.search { position: relative; min-width: 240px; }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted-2); width: 16px; height: 16px; }
.search input { padding-left: 34px; }

/* ------------------------------ Pills & badges ------------------------------ */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.active { background: var(--ok-soft); color: var(--ok); }
.pill.draft { background: var(--info-soft); color: var(--info); }
.pill.paused { background: var(--warn-soft); color: var(--warn); }
.pill.finished { background: #eceff2; color: #667684; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--sky); color: var(--navy-3); white-space: nowrap; }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge svg.i { width: 13px; height: 13px; }

/* ------------------------------ Callouts ------------------------------ */
.callout { display: flex; gap: 14px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--sky); margin-bottom: 20px; align-items: flex-start; }
.callout .c-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: #fff; color: var(--info); }
.callout .c-title { font-weight: 700; color: var(--navy); }
.callout .c-body { color: var(--ink); margin-top: 2px; }
.callout .c-actions { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.callout.ok { background: var(--ok-soft); border-color: #bfe5cf; }
.callout.ok .c-ico { color: var(--ok); }
.callout.warn { background: var(--warn-soft); border-color: #f4dba5; }
.callout.warn .c-ico { color: var(--warn); }
.callout.danger { background: var(--danger-soft); border-color: #f0c7c7; }
.callout.danger .c-ico { color: var(--danger); }
.callout ul { margin: 6px 0 0; padding-left: 18px; }

/* ------------------------------ Checklist (aan de slag) ------------------------------ */
.steps-card { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; border: 0; }
.steps-card .card-head h2 { color: #fff; }
.steps-card .sub { color: #a9c3d3; }
.progress { height: 6px; background: rgba(255,255,255,.15); border-radius: 99px; overflow: hidden; margin: 6px 0 18px; }
.progress > i { display: block; height: 100%; background: var(--amber); border-radius: 99px; transition: width .3s; }
.todo { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.todo-item { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.todo-item.done { opacity: .6; }
.todo-item .num { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.14); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.todo-item.done .num { background: var(--amber); color: var(--navy); }
.todo-item .t { font-weight: 650; }
.todo-item .d { color: #a9c3d3; font-size: 12.5px; flex: 1; }
.todo-item .btn { align-self: flex-start; }

/* ------------------------------ Attention list ------------------------------ */
.attn { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.attn li { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line-2); align-items: flex-start; }
.attn li:last-child { border-bottom: 0; padding-bottom: 0; }
.attn li:first-child { padding-top: 0; }
.attn .a-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--warn-soft); color: var(--warn); }
.attn .a-ico.info { background: var(--info-soft); color: var(--info); }
.attn .a-t { font-weight: 600; color: var(--navy); }
.attn .a-d { color: var(--muted); font-size: 12.5px; }
.attn .a-go { margin-left: auto; align-self: center; }

/* ------------------------------ Banner cards ------------------------------ */
.banner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.banner-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.banner-prev { background: repeating-conic-gradient(#f3f7fa 0% 25%, #fff 0% 50%) 50% / 16px 16px; padding: 14px; display: grid; place-items: center; min-height: 120px; cursor: zoom-in; border-bottom: 1px solid var(--line-2); }
.banner-prev img { max-width: 100%; max-height: 190px; border-radius: 4px; box-shadow: 0 1px 4px rgba(20,51,65,.18); display: block; }
.banner-info { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.banner-title { font-weight: 650; color: var(--navy); }
.banner-meta { color: var(--muted); font-size: 12.5px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.mini-stats b { display: block; font-size: 16px; color: var(--navy); font-variant-numeric: tabular-nums; }
.mini-stats span { color: var(--muted); font-size: 11.5px; }
.banner-actions { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.pick { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px; cursor: pointer; background: #fff; text-align: left; font: inherit; display: flex; flex-direction: column; gap: 8px; position: relative; }
.pick img { width: 100%; max-height: 80px; object-fit: contain; background: var(--bg); border-radius: 6px; }
.pick .p-t { font-weight: 600; font-size: 13px; color: var(--navy); }
.pick .p-d { color: var(--muted); font-size: 12px; }
.pick:hover { border-color: var(--muted-2); }
.pick.selected { border-color: var(--navy); background: var(--sky); box-shadow: 0 0 0 3px var(--sky-2); }

/* ------------------------------ Dropzone ------------------------------ */
.dropzone { border: 2px dashed #b9cbd8; border-radius: 14px; padding: 22px; text-align: center; background: var(--bg); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.over { border-color: var(--navy-3); background: var(--sky); }
.dropzone:focus-visible { outline: 3px solid rgba(252,179,52,.45); outline-offset: 2px; }
.dz-ico { width: 44px; height: 44px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; margin: 0 auto 10px; color: var(--navy-3); }
.dz-title { font-weight: 650; color: var(--navy); }
.dz-sub { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.dz-preview img { max-width: 100%; max-height: 150px; border-radius: 6px; box-shadow: 0 1px 4px rgba(20,51,65,.2); }
.dz-preview .dz-file { margin-top: 10px; font-size: 13px; color: var(--muted); }
.dz-status { margin-top: 8px; display: inline-flex; gap: 6px; align-items: center; font-weight: 600; font-size: 13px; }
.dz-status.ok { color: var(--ok); }
.dz-status.warn { color: var(--warn); }
.size-hint { display: inline-flex; align-items: center; gap: 8px; background: var(--sky); border: 1px solid var(--sky-2); color: var(--navy); padding: 6px 11px; border-radius: 9px; font-size: 13px; font-weight: 550; margin-bottom: 10px; }

/* ------------------------------ Stepper / wizard ------------------------------ */
.stepper { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: 13.5px; font-family: inherit; cursor: default; }
.step .s-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--sky); color: var(--navy-3); font-size: 13px; font-weight: 700; }
.step.current { border-color: var(--navy); color: var(--navy); box-shadow: 0 0 0 3px var(--sky-2); }
.step.current .s-n { background: var(--navy); color: #fff; }
.step.done { color: var(--navy); cursor: pointer; }
.step.done .s-n { background: var(--ok); color: #fff; }
.step.done:hover { background: var(--sky); }
.wizard { max-width: 860px; }
.wizard-card { padding: 28px; }
.wizard-card h2 { font-size: 20px; color: var(--navy); }
.wizard-card .lead { color: var(--muted); margin: 6px 0 22px; }
.wizard-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.banner-form { border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 16px; background: #fff; position: relative; }
.banner-form .bf-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.banner-form .bf-head h3 { font-size: 15px; color: var(--navy); }
.summary { display: grid; grid-template-columns: 170px 1fr; gap: 10px 18px; margin: 0; }
.summary dt { color: var(--muted); font-weight: 500; }
.summary dd { margin: 0; font-weight: 600; color: var(--navy); }
.summary-block { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 14px; }
.summary-block h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 10px; }

/* ------------------------------ Modal / toast ------------------------------ */
.backdrop { position: fixed; inset: 0; background: rgba(15,39,51,.5); backdrop-filter: blur(2px); display: grid; place-items: center; z-index: 900; padding: 20px; animation: fade .15s; }
.modal { background: #fff; border-radius: 16px; width: min(520px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: pop .16s ease-out; }
.modal.wide { width: min(760px, 100%); }
.modal-head { padding: 22px 24px 8px; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.modal-head h3 { font-size: 18px; color: var(--navy); }
.modal-head .sub { color: var(--muted); font-size: 13px; margin-top: 3px; }
.modal-body { padding: 14px 24px 8px; overflow-y: auto; }
.modal-foot { padding: 16px 24px 22px; display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.zoom-modal { background: #fff; border-radius: 16px; padding: 18px; max-width: min(92vw, 1100px); box-shadow: var(--shadow-lg); }
.zoom-modal img { max-width: 100%; max-height: 78vh; display: block; margin: 0 auto 12px; border-radius: 6px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
#toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 1000; }
.toast { background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 10px; max-width: 380px; animation: pop .16s ease-out; font-weight: 500; }
.toast svg { flex: none; }
.toast.success svg { color: #6fe0a3; }
.toast.error { background: var(--danger); }
.toast.warn svg { color: var(--amber); }

/* ------------------------------ Empty / skeleton ------------------------------ */
.empty { text-align: center; padding: 46px 24px; }
.empty .e-ico { width: 56px; height: 56px; border-radius: 16px; background: var(--sky); color: var(--navy-3); display: grid; place-items: center; margin: 0 auto 14px; }
.empty .e-ico svg { width: 26px; height: 26px; }
.empty h3 { color: var(--navy); font-size: 16px; }
.empty p { color: var(--muted); margin: 6px auto 18px; max-width: 420px; }
.skeleton { background: linear-gradient(90deg, #e9f1f5 25%, #f6fafc 37%, #e9f1f5 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 8px; }
.sk-line { height: 14px; margin: 14px 0; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ------------------------------ Chart ------------------------------ */
.chart { position: relative; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid-line { stroke: var(--line-2); stroke-width: 1; }
.chart .axis { fill: var(--muted-2); font-size: 11px; }
.chart .bar { fill: var(--navy-3); transition: opacity .1s; }
.chart .bar.amber { fill: var(--amber); }
.chart .bar:hover, .chart .bar.hl { opacity: .8; }
.chart-tip { position: absolute; pointer-events: none; background: var(--navy); color: #fff; padding: 7px 10px; border-radius: 8px; font-size: 12.5px; transform: translate(-50%, -110%); white-space: nowrap; box-shadow: var(--shadow-md); z-index: 5; }
.chart-tip b { display: block; }

/* ------------------------------ Login ------------------------------ */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 1fr) minmax(360px, 1fr); }
.auth-hero { background: var(--navy); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-hero::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(252,179,52,.22), transparent 65%); right: -180px; bottom: -160px; }
.auth-hero::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(221,239,247,.12), transparent 65%); left: -120px; top: -100px; }
.auth-hero h1 { font-size: 34px; line-height: 1.15; max-width: 440px; font-weight: 750; letter-spacing: -.02em; position: relative; }
.auth-hero p { color: #b7cfdd; margin-top: 14px; max-width: 420px; font-size: 15px; position: relative; }
.auth-hero .brand { padding: 0; position: relative; }
.auth-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 12px; position: relative; color: #dbe9f1; }
.auth-points li { display: flex; gap: 10px; align-items: center; }
.auth-points svg { color: var(--amber); }
.auth-form-wrap { display: grid; place-items: center; padding: 32px; background: var(--sky); }
.auth-box { width: min(400px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 34px; box-shadow: var(--shadow-md); }
.auth-box h2 { font-size: 22px; color: var(--navy); }
.auth-box .lead { color: var(--muted); margin: 6px 0 22px; }
.auth-msg { color: var(--danger); font-size: 13px; margin-top: 12px; min-height: 18px; font-weight: 500; }

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 800; width: 280px; transform: translateX(-100%); transition: transform .2s; height: 100vh; }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .topbar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 700; }
  .topbar button { all: unset; cursor: pointer; padding: 6px; display: grid; place-items: center; border-radius: 8px; }
  .topbar .logo { width: 32px; height: 32px; }
  .topbar .logo img { width: 24px; height: 24px; }
  .content { padding: 22px 16px 60px; }
  .auth { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .grid-3 { grid-template-columns: 1fr; }
  .summary { grid-template-columns: 1fr; gap: 2px 0; }
  .summary dd { margin-bottom: 10px; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .page-head h1 { font-size: 22px; }
  .wizard-card { padding: 20px; }
  .step span.s-t { display: none; }
  .step.current span.s-t { display: inline; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Aandachtslijst: knop onder de tekst zodat smalle kolommen niet inknijpen */
.attn li { flex-wrap: wrap; }
.attn li > div:nth-child(2) { flex: 1 1 calc(100% - 50px); min-width: 0; }
.attn .a-go { margin-left: 42px; align-self: flex-start; }

/* VetFusion logo */
.auth-logo { display: block; height: 34px; width: auto; margin: 0 0 24px; }
.top-logo { height: 28px; width: auto; display: block; }
.top-div { width: 1px; height: 28px; background: var(--line); margin: 0 4px; }

/* Ranglijst-balkje (dashboard: best presterende posities) */
.rank-bar { height: 8px; background: var(--sky); border-radius: 999px; overflow: hidden; min-width: 60px; }
.rank-bar i { display: block; height: 100%; background: var(--navy-3); border-radius: 999px; }
@media (max-width: 640px) { .rank-col, .tu-key { display: none; } }

/* ---------- Waar staat wat ---------- */
.pl-sites { margin-bottom: 20px; }
.pl-group { margin-top: 26px; }
.pl-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 18px 20px; margin-bottom: 14px; }
.pl-card-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.pl-title { font-size: 16px; font-weight: 700; color: var(--navy); }
.pl-desc { color: var(--muted); font-size: 13px; margin-top: 3px; max-width: 640px; }
.pl-stat { text-align: right; flex: none; }
.pl-stat b { display: block; font-size: 18px; color: var(--navy); }
.pl-stat span { font-size: 12px; color: var(--muted); }
.pl-screens { display: grid; gap: 14px; }
.pl-screens.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pl-screen { border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; background: #fbfcfd; min-width: 0; }
.pl-screen-head { display: flex; align-items: center; gap: 8px; color: var(--navy); margin-bottom: 10px; flex-wrap: wrap; }
.pl-screen-head svg.i { width: 16px; height: 16px; }
.pl-key { font-size: 12px; color: var(--muted); }
.pl-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.pl-tile { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "thumb thumb" "meta share"; gap: 8px 10px; align-items: center; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 10px 10px; }
.pl-thumb { grid-area: thumb; position: relative; height: 92px; display: grid; place-items: center; background: repeating-conic-gradient(#f3f7fa 0% 25%, #fff 0% 50%) 50% / 12px 12px; border-radius: 6px; cursor: zoom-in; overflow: hidden; }
.pl-thumb img { max-width: 100%; max-height: 92px; display: block; }
.pl-meta { grid-area: meta; min-width: 0; }
.pl-share { grid-area: share; }
.pl-more { position: absolute; right: 4px; bottom: 4px; background: var(--navy); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 6px; }
.pl-camp { font-weight: 650; color: var(--navy); text-decoration: none; }
.pl-camp:hover { text-decoration: underline; }
.pl-sub { font-size: 12px; color: var(--muted); }
.pl-share { font-weight: 750; color: var(--navy); font-size: 15px; padding-right: 4px; }
.pl-note, .pl-empty { display: flex; gap: 6px; align-items: center; font-size: 13px; margin-bottom: 8px; }
.pl-note { color: var(--info); }
.pl-empty { color: var(--warn); }
.pl-note svg.i, .pl-empty svg.i { width: 15px; height: 15px; flex: none; }
.pl-idle { font-size: 12px; color: var(--muted); margin-top: 8px; }
.pl-idle a { color: var(--muted); }
.pl-off { margin-top: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.pl-off summary { cursor: pointer; font-weight: 650; color: var(--navy); }
.pl-off-list { display: grid; gap: 6px; margin-top: 10px; font-size: 13px; }
.pl-foot { margin: 22px 0 8px; font-size: 13px; }
@media (max-width: 900px) { .pl-screens.two { grid-template-columns: 1fr; } .pl-card-head { flex-direction: column; } .pl-stat { text-align: left; } }
