/* Beheerpaneel kaart-sites: rustige dashboard-stijl, licht thema. Los van de sitestijlen. */
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --line: #e4e7ec;
  --line-2: #d0d5dd;
  --text: #101828;
  --text-2: #475467;
  --muted: #667085;
  --accent: #2a78d6;
  --accent-2: #1f5fae;
  --accent-soft: #eaf2fc;
  --ok: #067647; --ok-bg: #ecfdf3;
  --warn: #93370d; --warn-bg: #fffaeb;
  --bad: #b42318; --bad-bg: #fef3f2;
  --side: #0f172a;
  --side-2: #1e293b;
  --side-text: #cbd5e1;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-2: 0 4px 12px rgba(16, 24, 40, .08);
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.adm { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.55 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; color: var(--text); }
h1 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 1.1rem; font-weight: 600; }
h3, .h3 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 .8em; }
img { max-width: 100%; height: auto; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr-only--focus:focus { position: fixed; left: 12px; top: 12px; width: auto; height: auto; clip: auto; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; box-shadow: var(--shadow-2); }
.ico { flex: none; }

/* ---- Shell ---- */
.adm-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(to right, var(--side) 248px, transparent 248px); }
.adm-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--side); color: var(--side-text); display: flex; flex-direction: column; padding: 18px 12px; }
.adm-brand { display: flex; gap: 10px; align-items: center; padding: 2px 8px 18px; color: #fff; }
.adm-brand small { display: block; color: #94a3b8; font-size: .78rem; }
.adm-brand__logo { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, #2a78d6, #1baf7a); display: grid; place-items: center; font-weight: 700; color: #fff; }
.adm-nav__sec { margin: 14px 10px 6px; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #64748b; }
.adm-nav ul { list-style: none; margin: 0; padding: 0; }
.adm-nav a, .adm-nav__btn { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--side-text); font-size: .9rem; text-decoration: none; width: 100%; background: none; border: 0; font: inherit; cursor: pointer; text-align: left; }
.adm-nav a:hover, .adm-nav__btn:hover { background: var(--side-2); color: #fff; text-decoration: none; }
.adm-nav a[aria-current="page"] { background: #1d3a5f; color: #fff; box-shadow: inset 3px 0 0 #60a5fa; }
.adm-nav a span { flex: 1; }
.adm-count { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: #334155; color: #e2e8f0; font-size: .72rem; font-weight: 600; text-align: center; }
.adm-count--hot { background: #ef4444; color: #fff; }
.adm-side__foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--side-2); }
.adm-side__foot .adm-nav__btn { color: var(--side-text); }
.adm-user { display: flex; gap: 8px; align-items: center; font-size: .8rem; color: #94a3b8; padding: 0 10px; margin: 0 0 6px; overflow: hidden; }
.adm-user span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-scrim { display: none; }
.adm-main-col { min-width: 0; display: flex; flex-direction: column; }
.adm-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 10px 28px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.adm-burger { display: none; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 7px; cursor: pointer; color: var(--text); }
.adm-filter { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 0 4px 0 10px; background: #fff; }
.adm-filter__dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.adm-filter select { border: 0; background: transparent; padding: 8px 4px; font: inherit; font-size: .9rem; max-width: 220px; color: var(--text); }
.adm-search { flex: 1; max-width: 460px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; background: var(--surface-2); color: var(--muted); }
.adm-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 9px 0; font: inherit; font-size: .9rem; color: var(--text); }
.adm-search input:focus { outline: none; }
.adm-search:focus-within { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px var(--accent-soft); }
.adm-top__site { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; font-size: .85rem; color: var(--text-2); white-space: nowrap; }
.adm-content { padding: 24px 28px 60px; max-width: 1400px; width: 100%; }
.adm-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.adm-head h1 { margin: 0; }
.adm-head__sub { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.adm-head__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-filterinfo { font-size: .85rem; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---- Kaal (inloggen) ---- */
.adm--bare { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(1200px 600px at 10% -10%, #dbeafe 0, transparent 60%), radial-gradient(900px 500px at 110% 110%, #d1fae5 0, transparent 60%), var(--bg); }
.adm-bare { width: 100%; max-width: 400px; padding: 20px 16px; }
.login-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: var(--shadow-2); }
.login-card .adm-brand { color: var(--text); padding: 0 0 18px; }
.login-card .adm-brand small { color: var(--muted); }

/* ---- Knoppen & formulieren ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 8px; border: 1px solid var(--accent); background: var(--accent); color: #fff; font: 600 .9rem/1.2 inherit; font-family: inherit; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); text-decoration: none; color: #fff; }
.btn--sm { padding: 6px 11px; font-size: .82rem; }
.btn--ghost { background: #fff; color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--surface-2); color: var(--text); border-color: var(--line-2); }
.btn--danger { background: #fff; color: var(--bad); border-color: #fecdca; }
.btn--danger:hover { background: var(--bad-bg); color: var(--bad); border-color: #fda29b; }
.btn--ok { background: var(--ok); border-color: var(--ok); }
.btn--block { width: 100%; }
form.inline { display: inline; margin: 0; }
.form { display: grid; gap: 12px; }
.form label, label.fld { display: grid; gap: 5px; font-size: .85rem; font-weight: 500; color: var(--text-2); }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=date], input[type=number], input[type=url], input[type=tel], select, textarea {
  font: inherit; font-size: .92rem; color: var(--text); background: #fff; border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { resize: vertical; line-height: 1.5; }
.form .row, .row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
label.check, .form label.check { display: flex; flex-direction: row; gap: 8px; align-items: center; font-weight: 400; }
label.check input { width: 16px; height: 16px; }

/* ---- Kaarten / panelen ---- */
.panel, .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); margin: 0 0 16px; }
.card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.card__head h2 { margin: 0; }
.card__head a { font-size: .85rem; }
.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .grid--main { grid-template-columns: 1fr; } }
.grid > .card, .grid > .panel { margin: 0; }

/* ---- KPI's ---- */
.kpis { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-bottom: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; color: var(--text); text-decoration: none; position: relative; }
a.kpi:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); text-decoration: none; }
.kpi__label { font-size: .8rem; color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 6px; }
.kpi__value { font-size: 1.65rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.kpi__sub { font-size: .8rem; color: var(--text-2); }
.kpi--hot { border-color: #fecdca; background: linear-gradient(180deg, #fff, #fffbfa); }
.kpi--hot .kpi__value { color: var(--bad); }
.kpi--good .kpi__value { color: var(--ok); }
.delta { font-size: .75rem; font-weight: 600; padding: 1px 6px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); }
.delta--up { background: var(--ok-bg); color: var(--ok); }

/* ---- Grafieken ---- */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { font: 11px Inter, system-ui, sans-serif; fill: var(--muted); }
.chart .grid-l { stroke: var(--line); stroke-width: 1; }
.chart .axis-l { stroke: var(--line-2); stroke-width: 1; }
.chart .hit { fill: transparent; cursor: default; }
.chart .hit:hover + .hl, .chart g.col:hover .hl { opacity: 1; }
.chart .hl { fill: var(--accent-soft); opacity: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .82rem; color: var(--text-2); margin: 0 0 8px; padding: 0; list-style: none; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.chart-tip { position: fixed; z-index: 50; pointer-events: none; background: #101828; color: #fff; font-size: .8rem; padding: 7px 10px; border-radius: 8px; box-shadow: var(--shadow-2); white-space: nowrap; }
.chart-tip[hidden] { display: none; }
.chart-tip b { font-weight: 600; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.bars li { display: grid; grid-template-columns: minmax(90px, 160px) 1fr auto; gap: 10px; align-items: center; font-size: .86rem; }
.bars__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.bars__track { height: 10px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.bars__fill { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--s1); min-width: 2px; }
.bars__val { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 40px; text-align: right; }
.stack { display: flex; height: 14px; border-radius: 4px; overflow: hidden; gap: 2px; background: var(--surface-2); margin: 6px 0 10px; }
.stack span { display: block; height: 100%; }
details.tableview { margin-top: 8px; font-size: .85rem; }
details.tableview summary { cursor: pointer; color: var(--muted); }

/* ---- Lijsten ---- */
.todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.todo a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--text); text-decoration: none; }
.todo a:hover { background: var(--surface-2); }
.todo .ico { color: var(--muted); }
.todo span { flex: 1; }
.todo b { font-variant-numeric: tabular-nums; min-width: 26px; text-align: center; padding: 1px 8px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); font-size: .8rem; }
.todo-empty { padding: 14px; text-align: center; color: var(--ok); background: var(--ok-bg); border-radius: 8px; font-size: .9rem; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 8px 1fr auto; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
.feed li:last-child { border-bottom: 0; }
.feed__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); transform: translateY(-1px); }
.feed__dot--warn { background: #f79009; } .feed__dot--error { background: #f04438; } .feed__dot--info { background: var(--s1); }
.feed time { color: var(--muted); font-size: .78rem; white-space: nowrap; }

/* ---- Tabellen ---- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); margin: 0 0 16px; }
.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; background: #fff; }
.panel .tbl, .card .tbl { margin: 0; }
table.tbl:not(.tbl-wrap table) { display: block; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin: 0 0 16px; }
.tbl-wrap table.tbl { display: table; border: 0; box-shadow: none; margin: 0; }
.tbl th, .tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; vertical-align: middle; }
.tbl th { background: var(--surface-2); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl--click tr:hover td { background: #fafbfc; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---- Badges / flashes ---- */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #f2f4f7; color: #344054; vertical-align: middle; white-space: nowrap; }
.badge--pro { background: var(--accent-soft); color: var(--accent-2); }
.badge--top { background: #fdf2fa; color: #c11574; }
.badge--wait { background: var(--warn-bg); color: var(--warn); }
.badge--no { background: var(--bad-bg); color: var(--bad); }
.badge--ok { background: var(--ok-bg); color: var(--ok); }
.badge--mail { background: #f4f3ff; color: #5925dc; }
.flash { padding: 11px 14px; border-radius: 10px; margin: 0 0 14px; font-size: .9rem; border: 1px solid; }
.flash-ok { background: var(--ok-bg); border-color: #abefc6; color: var(--ok); }
.flash-error { background: var(--bad-bg); border-color: #fecdca; color: var(--bad); }
.flash-info { background: var(--accent-soft); border-color: #b2d1f5; color: var(--accent-2); }
.site-chip { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--text-2); white-space: nowrap; }
.site-chip i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* ---- Bestaande beheeronderdelen ---- */
.acc-item { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); margin: 0 0 10px; }
.acc-item > div:first-child { min-width: 0; flex: 1 1 320px; }
.acc-item p { margin: 6px 0; }
.acc-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }
.acc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.section-title { display: flex; align-items: center; gap: 8px; margin: 26px 0 10px; }
.section-title:first-child { margin-top: 0; }
.section-title .badge { font-size: .78rem; }
.bulk-bar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 0 0 10px; padding: 9px 12px; border: 1px solid #b2d1f5; border-radius: 10px; background: var(--accent-soft); }
.bulk-bar .check { display: inline-flex; gap: 6px; align-items: center; margin: 0; font-size: .88rem; color: var(--text); }
.bulk-check { display: inline-flex; align-items: center; margin-right: 8px; cursor: pointer; vertical-align: middle; }
.bulk-check input { width: 17px; height: 17px; }
.filters, .tabs-inline { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 14px; }
.chip-link { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: .85rem; color: var(--text-2); background: #fff; text-decoration: none; }
.chip-link small { color: var(--muted); font-weight: 600; }
.chip-link:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.chip-link.is-actief { background: var(--text); border-color: var(--text); color: #fff; }
.chip-link.is-actief small { color: #cbd5e1; }
.ad-thumb { display: block; max-width: 360px; width: 100%; aspect-ratio: 4 / 1; object-fit: cover; border-radius: 8px; margin: 6px 0; border: 1px solid var(--line); }
.ad-thumb--groot { max-width: 600px; }
.adm-ad__edit summary { cursor: pointer; font-size: .9rem; color: var(--accent); margin-top: 8px; }
.news-review .form { max-width: none; }
.news-review__side { flex-direction: column; align-items: stretch; max-width: 280px; }
.thumb { border-radius: 8px; object-fit: cover; }
.crm-pipe { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.crm-pipe__step { display: grid; gap: 2px; padding: 12px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--c, #98a2b3); text-decoration: none; color: var(--text); }
.crm-pipe__step:hover { text-decoration: none; box-shadow: var(--shadow-2); }
.crm-pipe__step strong { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.crm-pipe__step span { color: var(--muted); font-size: .82rem; }
.crm-stage--nieuw { --c: #98a2b3; } .crm-stage--benaderd { --c: #2e90fa; } .crm-stage--interesse { --c: #f79009; }
.crm-stage--offerte { --c: #7a5af8; } .crm-stage--klant { --c: #12b76a; } .crm-stage--geen { --c: #f04438; }
.badge.crm-stage { background: color-mix(in srgb, var(--c) 14%, #fff); color: color-mix(in srgb, var(--c) 70%, #000); }
.crm-due { color: var(--bad); font-weight: 700; }
.crm__grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .crm__grid { grid-template-columns: 1fr 1fr; } }
.crm__contact { display: flex; flex-wrap: wrap; gap: 8px; }
.crm__log { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); max-height: 420px; overflow-y: auto; }
.crm__log li { margin: 0 0 12px; }
.crm__log p { margin: 2px 0 0; font-size: .9rem; }
.crm__kind { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
.site-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.site-card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--sc, var(--accent)); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
.site-card__kop { display: flex; gap: 12px; align-items: center; }
.site-card__logo { width: 38px; height: 38px; border-radius: 10px; background: var(--sc, var(--accent)); color: #fff; font-weight: 700; display: grid; place-items: center; flex: none; }
.site-card__knoppen { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.site-card p { margin: 0; }
.zoek, .admin-filter { margin: 0 0 16px; }
.zoek { display: flex; gap: 8px; max-width: 520px; }

/* ---- Gesprek (inbox + support) ---- */
.ticket-thread, .thread { display: grid; gap: 12px; margin: 0 0 16px; }
.ticket-msg, .msg { max-width: 820px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.ticket-msg p, .msg p { margin: 0 0 .6em; }
.ticket-msg p:last-child, .msg p:last-child { margin-bottom: 0; }
.ticket-msg--admin, .msg--out { margin-left: auto; background: #f3f8fe; border-color: #cfe1f7; }
.ticket-msg__meta, .msg__meta { font-size: .8rem; color: var(--muted); margin-bottom: 6px !important; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.msg__body { white-space: pre-wrap; word-wrap: break-word; font-size: .93rem; }
.msg__err { color: var(--bad); font-size: .8rem; margin-top: 6px; }

/* Inbox */
.inbox { display: grid; gap: 16px; grid-template-columns: 1fr; }
.inbox-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 0 0 12px; }
.inbox-tools form { display: flex; gap: 8px; }
.inbox-list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.inbox-list li + li { border-top: 1px solid var(--line); }
.inbox-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 12px; padding: 12px 16px; color: var(--text); text-decoration: none; align-items: start; }
.inbox-row:hover { background: #fafbfc; text-decoration: none; }
.inbox-row__dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; background: transparent; }
.inbox-row.is-new .inbox-row__dot { background: var(--accent); }
.inbox-row.is-new .inbox-row__who, .inbox-row.is-new .inbox-row__subj { font-weight: 700; }
.inbox-row__top { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.inbox-row__who { font-weight: 500; }
.inbox-row__subj { display: block; margin-top: 2px; }
.inbox-row__prev { display: block; color: var(--muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-row time { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.inbox-empty { padding: 40px 16px; text-align: center; color: var(--muted); background: #fff; border: 1px dashed var(--line-2); border-radius: var(--radius); }
.reply-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.reply-box__from { font-size: .84rem; color: var(--text-2); background: var(--surface-2); border-radius: 8px; padding: 8px 10px; margin: 0 0 12px; display: grid; gap: 2px; }
.reply-box__from b { color: var(--text); font-weight: 600; }
.tpls { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.tpls button { font: inherit; font-size: .8rem; padding: 5px 10px; border-radius: 999px; border: 1px dashed var(--line-2); background: #fff; color: var(--text-2); cursor: pointer; }
.tpls button:hover { border-color: var(--accent); color: var(--accent); border-style: solid; }
.reply-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-top: 10px; }
.side-facts { display: grid; gap: 8px; font-size: .88rem; margin: 0; }
.side-facts dt { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.side-facts dd { margin: 0 0 6px; word-break: break-word; }
.search-group { margin-bottom: 18px; }

/* ---- Responsief ---- */
@media (max-width: 960px) {
  .adm-shell { grid-template-columns: 1fr; background: none; }
  .adm-side { position: fixed; left: 0; top: 0; bottom: 0; width: 272px; z-index: 40; transform: translateX(-100%); transition: transform .2s ease; visibility: hidden; }
  body.adm-open .adm-side { transform: none; visibility: visible; }
  .adm-scrim { display: block; position: fixed; inset: 0; z-index: 30; background: rgba(15, 23, 42, .45); }
  .adm-scrim[hidden] { display: none; pointer-events: none; }
  .adm-burger { display: inline-flex; }
  .adm-top { padding: 10px 16px; flex-wrap: wrap; }
  .adm-top__site span { display: none; }
  .adm-content { padding: 18px 16px 48px; }
}
@media (max-width: 640px) {
  .adm-search { order: 5; flex-basis: 100%; max-width: none; }
  .adm-filter { flex: 1; }
  .adm-filter select { max-width: none; width: 100%; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi__value { font-size: 1.3rem; }
  h1 { font-size: 1.3rem; }
  .bars li { grid-template-columns: 96px 1fr auto; }
  .inbox-row { grid-template-columns: 8px minmax(0, 1fr); }
  .inbox-row time { grid-column: 2; }
  .news-review__side { max-width: none; }
  .panel, .card { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) { .adm-side { transition: none; } }
@media (max-width: 1100px) { .grid--dash > :last-child { order: -1; } }
.tbl--compact th, .tbl--compact td { padding: 8px 7px; }
.form > .btn, .form > button, .form > div > .btn:only-child { justify-self: start; }
.form .btn--block { justify-self: stretch; }
input[type=file] { font: inherit; font-size: .88rem; }

/* Mail sturen */
.adm-cols { display: grid; gap: 18px; align-items: start; }
@media (min-width: 1100px) { .adm-cols { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.sent-list { list-style: none; margin: 0; padding: 0; }
.sent-list li { padding: 10px 0; border-top: 1px solid var(--line, #e6e6e2); display: grid; gap: 2px; }
.sent-list li:first-child { border-top: 0; }

/* Mailautomatisering */
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1000px) { .grid-2 { grid-template-columns: 1fr; } }
.badge--ok { background: #e7f2ec; color: #085041; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* Mailworkflows: overzicht en builder (tijdlijn) */
.wf-kaarten { display: grid; gap: 10px; margin-top: 10px; }
.wf-kaart { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.wf-kaart:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.wf-kaart__kop { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wf-kaart__flow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.wf-chip { font-size: .8rem; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); }
.wf-chip--als { background: var(--accent-soft); border-color: transparent; color: var(--accent); font-weight: 600; }
.wf-pijl { color: var(--muted); font-size: .85rem; }
.wf-kop__grid { display: grid; grid-template-columns: 1fr 260px; gap: 14px; }
.wf-lijn { list-style: none; margin: 0 0 16px; padding: 0 0 0 26px; position: relative; display: grid; gap: 14px; }
.wf-lijn::before { content: ""; position: absolute; left: 9px; top: 18px; bottom: 18px; width: 2px; background: var(--line-2, var(--line)); }
.wf-node { position: relative; }
.wf-node::before { content: ""; position: absolute; left: -23px; top: 14px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.wf-node--trigger { padding: 14px 16px; border-radius: var(--radius); background: var(--accent-soft); }
.wf-node--trigger::before { background: var(--accent); }
.wf-node__tag { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-right: 8px; }
.wf-trigger select { font-weight: 600; min-width: 260px; }
.wf-trigger { display: inline-block; margin: 0; }
.wf-wacht { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.wf-wacht input[type=number] { width: 72px; }
.wf-wacht select { width: auto; }
.wf-inline { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 500; }
.wf-mail { margin: 0; }
.wf-mail__kop { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.wf-voorbeeld summary { cursor: pointer; font-size: .85rem; color: var(--accent); margin-top: 6px; }
.wf-plus { padding-left: 0; }
@media (max-width: 760px) { .wf-kop__grid { grid-template-columns: 1fr; } .wf-trigger select { min-width: 0; width: 100%; } }
.form .wf-wacht label.wf-inline { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; margin: 0; }
.form .wf-trigger { display: block; margin: 0; }
