:root {
  /* Prymetic: bordeaux, ivoor en goud. */
  --ink: #241a1a; --muted: #6a5f58; --line: #e6ddcf; --bg: #faf4ef; --card: #fff;
  --accent: #651233; --accent-soft: #f2e9d8; --side: #560c29; --side-line: #7b3550; --side-text: #efe6d6; --side-muted: #c9b79c; --gold: #d8b46a;
  --green: #127a4a; --green-bg: #e3f6ec; --amber: #8a5a00; --amber-bg: #fff3d6;
  --red: #b42318; --red-bg: #fde8e6; --violet: #5c4522; --violet-bg: #f2e9d8;
  --soft: #f3ede2; --soft-line: #e0d6c6; --serif: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 "Segoe UI", system-ui, -apple-system, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--accent); }
h1 { font-size: 24px; margin: 0 0 18px; }
h2 { font-size: 17px; margin: 0 0 12px; }
h3 { margin: 0 0 6px; font-size: 15px; }
code, .code { font-family: Consolas, monospace; background: var(--soft); padding: 2px 6px; border-radius: 6px; word-break: break-all; }
.code { display: block; padding: 12px; font-size: 18px; letter-spacing: 2px; text-align: center; }

/* layout */
.admin { display: flex; min-height: 100vh; }
.side { width: 236px; flex-shrink: 0; background: var(--side); color: #fff; padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.logo { font-size: 22px; font-weight: 800; letter-spacing: .5px; padding: 4px 10px 18px; color: var(--gold); }
.logo span { display: block; font-size: 11px; font-weight: 500; color: var(--side-muted); letter-spacing: 2px; text-transform: uppercase; }
.side nav a { display: flex; justify-content: space-between; align-items: center; color: var(--side-text); text-decoration: none; padding: 8px 12px; border-radius: 8px; margin-bottom: 2px; }
.side nav a:hover { background: rgba(255,255,255,.08); }
.side nav a.active { background: #fff; color: var(--accent); font-weight: 600; }
.soon { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--side-muted); border: 1px solid var(--side-line); padding: 0 6px; border-radius: 10px; }
.mode { padding: 14px 12px 6px; font-size: 13px; color: var(--side-muted); }
.logout { padding: 0 12px; }
.logout .link { color: var(--side-muted); }
.content { flex: 1; padding: 28px 32px; min-width: 0; }

.panel, .card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin-bottom: 18px; }
.panel.warn { border-color: #f3c7a6; background: #fff8f2; }
.panel.ok { border-color: #bfe5cf; background: #f5fcf8; }
.bare { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 16px; }
.narrow { max-width: 460px; width: 100%; }

/* onderdelen */
.btn { display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 10px; padding: 10px 16px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.08); }
.btn.secondary { background: var(--accent-soft); color: var(--accent); }
.btn.danger { background: var(--red-bg); color: var(--red); }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; font: inherit; text-decoration: underline; }
label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 10px; }
input, select, textarea { display: block; width: 100%; margin-top: 4px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; font: inherit; font-weight: 400; background: #fff; color: var(--ink); }
input[type=color] { height: 42px; padding: 3px; }
input[type=checkbox] { display: inline; width: auto; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0 0 12px; }
legend { font-weight: 700; padding: 0 6px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid2 .full, .grid2 h2, .grid2 h3 { grid-column: 1 / -1; }
.stack > * { width: 100%; margin-bottom: 10px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; align-items: center; }
.filters select, .filters input { width: auto; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.center { text-align: center; }
.error { color: var(--red); font-weight: 600; }
.flash { background: var(--violet-bg); color: var(--violet); padding: 10px 14px; border-radius: 10px; margin-bottom: 18px; font-weight: 600; }

.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 20px; white-space: nowrap; }
.badge.green { background: var(--green-bg); color: var(--green); }
.badge.amber { background: var(--amber-bg); color: var(--amber); }
.badge.red { background: var(--red-bg); color: var(--red); }
.badge.violet { background: var(--violet-bg); color: var(--violet); }
.badge.grey { background: var(--soft); color: #555; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.kpi span { display: block; font-size: 12px; color: var(--muted); }
.kpi strong { font-size: 22px; }
.kpi small { display: block; color: var(--muted); font-size: 11px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tab { padding: 6px 14px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); text-decoration: none; font-weight: 600; font-size: 14px; }
.tab.active { background: var(--accent); color: #fff; }

.brand-grid, .int-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.brand-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 20px 18px; overflow: hidden; }
.brand-card .stripe { position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--brand); }
.domains { padding-left: 18px; margin: 8px 0; font-size: 14px; }
.int-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.int-card p { margin: 6px 0; }
.facts { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.facts form { margin-top: 8px; }

.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 410px; gap: 20px; align-items: start; }
.block { background: #fdfbf6; }
.block-tools { display: flex; gap: 6px; justify-content: flex-end; }
.add-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 8px 0 16px; font-weight: 600; font-size: 13px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.preview { position: sticky; top: 20px; }
.phone { width: 390px; height: 720px; border: 10px solid #241a1a; border-radius: 34px; overflow: hidden; background: #fff; margin: 0 auto; }
.phone iframe { width: 100%; height: 100%; border: 0; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
ul.plain { list-style: none; padding: 0; margin: 0 0 10px; }
ul.plain li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
form.inline { display: inline; margin-left: 8px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.agenda-day { margin: 16px 0 6px; text-transform: capitalize; color: var(--muted); font-size: 13px; }
.agenda-item { display: grid; grid-template-columns: 110px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px;
  border-left: 4px solid var(--brand); background: #fdfbf6; border-radius: 8px; margin-bottom: 6px; }
.agenda-item .time { font-weight: 700; }
.agenda-actions { display: flex; gap: 10px; align-items: center; font-size: 13px; }

/* gesprekken */
.inbox { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.conv-list { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; max-height: 75vh; overflow-y: auto; }
.conv { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.conv:hover { background: #fdfbf6; }
.conv.active { background: var(--accent-soft); }
.conv .chan { grid-column: 1 / -1; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.conv .snippet { grid-column: 1 / -1; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unread { background: var(--accent); color: #fff; border-radius: 10px; font-size: 11px; padding: 0 7px; font-weight: 700; align-self: center; }
.thread-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.thread-head h2 { margin: 0; }
.thread { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; max-height: 55vh; overflow-y: auto; margin: 10px 0 14px; }
.bubble { max-width: 78%; padding: 9px 13px; border-radius: 14px; white-space: normal; word-wrap: break-word; }
.bubble.in { align-self: flex-start; background: var(--soft); border-bottom-left-radius: 4px; }
.bubble.out { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.bubble.note { align-self: center; background: var(--amber-bg); color: #5c4300; max-width: 90%; font-size: 14px; }
.bubble .meta { font-size: 11px; opacity: .75; margin-top: 4px; }
.bubble.out .error { color: #ffe0e0; }
.composer { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 18px; }
/* leads */
.lead-board { display: grid; grid-template-columns: repeat(6, minmax(210px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 18px; }
.lead-col { background: var(--soft); border-radius: 14px; padding: 10px; min-height: 120px; }
.lead-col h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .4px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.count { background: #fff; border-radius: 10px; padding: 0 7px; font-size: 12px; }
.lead-card { background: #fff; border-radius: 10px; padding: 10px; margin-bottom: 8px; border-left: 4px solid var(--brand); }
.lead-title { font-weight: 700; text-decoration: none; color: var(--ink); display: block; }
.lead-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 6px 0; font-size: 13px; }
.lead-move { display: flex; gap: 4px; justify-content: space-between; }
details.panel summary { cursor: pointer; }
.kpi strong a { color: inherit; text-decoration: none; }
@media (max-width: 900px) { .inbox { grid-template-columns: 1fr; } .conv-list { max-height: 40vh; } }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } .agenda-item { grid-template-columns: 1fr; } }
@media (max-width: 1100px) { .editor-layout { grid-template-columns: 1fr; } }
@media (max-width: 800px) {
  .admin { flex-direction: column; }
  .side { width: 100%; height: auto; position: static; padding: 10px; }
  .logo { padding: 4px 6px 8px; }
  .side nav { display: flex; overflow-x: auto; gap: 4px; padding-bottom: 6px; }
  .side nav a { white-space: nowrap; }
  .content { padding: 18px 16px; }
  .grid2 { grid-template-columns: 1fr; }
  .phone { width: 100%; max-width: 390px; }
  .facts { grid-template-columns: 1fr; }
}

/* ===== ORBIS aanvullingen ===== */
a.logo { display: block; text-decoration: none; }
.side nav hr { border: 0; border-top: 1px solid var(--side-line); margin: 10px 4px; }
.side-foot { padding: 14px 12px; font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.side-foot a, .side-foot .link { color: var(--side-muted); }
.langs { display: flex; gap: 6px; }
.langs a { color: inherit; text-decoration: none; font-size: 12px; padding: 1px 6px; border-radius: 6px; border: 1px solid transparent; }
.langs a.on { border-color: currentColor; }
.banner { padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; }
.banner.info { background: var(--violet-bg); color: var(--violet); }
.banner.warn { background: var(--red-bg); color: var(--red); }
.flash.error { background: var(--red-bg); color: var(--red); }
.flash.success { background: var(--green-bg); color: var(--green); }
.panel.warn { border-color: #f3c7a6; background: #fff8f2; }
.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.module { display: block; padding: 14px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); background: #fff; font-weight: 600; }
.module:hover { border-color: var(--accent); }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 12px; }
.grid4 .full, .grid4 h3 { grid-column: 1 / -1; }
.badge.st-active, .badge.st-internal { background: var(--green-bg); color: var(--green); }
.badge.st-trial, .badge.st-pending { background: var(--violet-bg); color: var(--violet); }
.badge.st-past_due { background: var(--amber-bg); color: var(--amber); }
.badge.st-suspended, .badge.st-canceled { background: var(--red-bg); color: var(--red); }
.btn.danger { background: var(--red-bg); color: var(--red); }
ul.plain { list-style: none; padding: 0; }
ul.plain li { padding: 6px 0; border-bottom: 1px solid var(--line); }
form.inline { display: inline-block; margin-left: 8px; }
.error { color: var(--red); font-size: 13px; display: block; font-weight: 600; }
/* publiek */
.public { background: #fff; }
.pub-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; border-bottom: 1px solid var(--line); flex-wrap: wrap; gap: 10px; }
.pub-logo { font-weight: 900; font-size: 24px; letter-spacing: 2px; color: var(--side); text-decoration: none; }
.pub-head nav { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.pub-head nav a { text-decoration: none; color: var(--ink); }
.pub-head nav a.btn { color: #fff; }
.pub { max-width: 1040px; margin: 0 auto; padding: 32px 20px; }
.pub .card.narrow { max-width: 460px; margin: 0 auto; }
.hero { text-align: center; padding: 50px 0 30px; }
.hero h1 { font-size: 42px; line-height: 1.15; }
.lead { font-size: 20px; color: var(--muted); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 30px; }
.features div { background: var(--bg); border-radius: 14px; padding: 18px; }
.features h3 { color: var(--accent); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.plan-card { border: 2px solid var(--line); border-radius: 18px; padding: 22px; }
.plan-card .price { font-size: 30px; font-weight: 800; color: var(--accent); margin: 6px 0; }
.plan-card .price small { font-size: 13px; color: var(--muted); font-weight: 400; }
.pub-foot { text-align: center; color: var(--muted); font-size: 13px; padding: 30px 16px; }
@media (max-width: 800px) { .grid4 { grid-template-columns: 1fr 1fr; } .hero h1 { font-size: 30px; } }
/* academy */
.video { position: relative; padding-top: 56.25%; border-radius: 14px; overflow: hidden; background: #000; margin-bottom: 16px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.guide p { margin: 0 0 12px; }
.progress { height: 8px; background: var(--line); border-radius: 6px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--accent); }
ol.lessons li { padding: 4px 0; }
.lesson-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.help-box { border-color: var(--soft-line); background: #fdfbf6; }
/* producten */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.product-card { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; text-decoration: none; color: var(--ink); }
.product-card img, .product-card .noimg { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--bg); }
.product-card .noimg { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }
.product-card.inactive { opacity: .55; }
.product-card span { color: var(--accent); font-weight: 700; }
img.thumb { max-width: 160px; border-radius: 10px; display: block; margin-bottom: 8px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid2 .full { grid-column: 1 / -1; }
@media (max-width: 800px) { .grid2 { grid-template-columns: 1fr; } }

[hidden] { display: none !important; }
.unread-item { border-left: 3px solid var(--accent); padding-left: 8px !important; }
/* paginabouwer en sites */
.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 410px; gap: 20px; align-items: start; }
.block { background: #fdfbf6; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0 0 12px; }
.block legend { font-weight: 700; padding: 0 6px; }
.block-tools { display: flex; gap: 6px; justify-content: flex-end; margin-top: 6px; }
.add-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 8px 0 16px; font-weight: 600; font-size: 13px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.preview { position: sticky; top: 20px; }
.phone { width: 390px; height: 720px; border: 10px solid #560c29; border-radius: 34px; overflow: hidden; background: #fff; margin: 0 auto; }
.phone iframe { width: 100%; height: 100%; border: 0; }
.img-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; font-weight: 600; font-size: 13px; }
.img-field img { max-width: 180px; border-radius: 8px; }
.list-row { border-left: 3px solid var(--accent-soft); padding-left: 10px; margin-bottom: 10px; }
.site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-bottom: 18px; }
.site-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 20px 16px 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); overflow: hidden; }
.site-card .stripe { position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--brand); }
.row-actions { display: flex; gap: 10px; }
.row-actions form { display: inline; }
.center { text-align: center; }
@media (max-width: 1100px) { .editor-layout { grid-template-columns: 1fr; } .phone { width: 100%; max-width: 390px; } }
/* inbox */
.inbox { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.conv-list { background: #fff; border: 1px solid var(--line); border-radius: 14px; max-height: 75vh; overflow-y: auto; }
.conv { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.conv.active { background: var(--accent-soft); }
.conv .chan { grid-column: 1 / -1; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.conv .snippet { grid-column: 1 / -1; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pad { padding: 14px; }
.thread-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.thread-head h2 { margin: 0; }
.thread { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; max-height: 55vh; overflow-y: auto; margin: 10px 0 14px; }
.bubble { max-width: 78%; padding: 9px 13px; border-radius: 14px; word-wrap: break-word; }
.bubble.in { align-self: flex-start; background: var(--soft); border-bottom-left-radius: 4px; }
.bubble.out { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.bubble.note { align-self: center; background: var(--amber-bg); color: #5c4300; max-width: 90%; font-size: 14px; }
.bubble .meta { font-size: 11px; opacity: .75; margin-top: 4px; }
.composer { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
@media (max-width: 900px) { .inbox { grid-template-columns: 1fr; } .conv-list { max-height: 40vh; } }

.domain-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.domain-row .muted { flex-basis: 100%; }

/* automatisering */
.recipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 20px; }
.recipe { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.recipe button { align-self: flex-start; margin-top: auto; }
.wf-steps { list-style: none; padding: 0; margin: 0 0 18px; max-width: 760px; }
.wf-steps > li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0 0 22px; }
.wf-steps > li:not(:last-child)::after { content: ""; position: absolute; left: 28px; bottom: -23px; height: 22px; border-left: 2px solid var(--line); }
.wf-steps > li.wf-trigger { background: var(--accent-soft); border-color: var(--accent-soft); }
.wf-steps > li.wait { background: var(--amber-bg); border-color: #f3e2b5; }
.wf-steps summary { cursor: pointer; }
.wf-steps form { margin-top: 12px; }
details.run { border-bottom: 1px solid var(--line); padding: 8px 0; }
details.run summary { cursor: pointer; }

/* marketing */
.mail-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.mail-preview { position: sticky; top: 12px; }
.mail-preview iframe { width: 100%; height: 640px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.tag-picks { display: flex; flex-wrap: wrap; gap: 4px 16px; }
@media (max-width: 1000px) { .mail-editor { grid-template-columns: 1fr; } .mail-preview { position: static; } }

/* koppelingen + socialeplanner */
.int-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 20px; }
.int-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.int-card h3 { margin: 0; }
a.link-card { text-decoration: none; color: var(--ink); }
a.link-card:hover { border-color: var(--accent); }
.post-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.post-when { font-size: 13px; }
.post-row .err { color: var(--red); }
@media (max-width: 700px) { .post-row { grid-template-columns: 1fr; } }

/* reputatie */
.rep-top { display: grid; grid-template-columns: 180px 1fr 200px; gap: 12px; }
.rep-score { text-align: center; }
.rep-avg { font-size: 40px; font-weight: 800; line-height: 1; }
.rep-stars { color: #f2b01e; letter-spacing: 2px; }
.rep-stars-sm { color: #f2b01e; }
.rep-bar { display: grid; grid-template-columns: 40px 1fr 30px; gap: 8px; align-items: center; font-size: 13px; }
.rep-bar .bar { background: var(--soft); border-radius: 6px; height: 8px; overflow: hidden; }
.rep-bar .bar span { display: block; height: 100%; background: #f2b01e; }
.rep-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.rep-head .filters { margin: 0; }
.rev-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.rev-row.low { border-left: 4px solid var(--red); padding-left: 10px; }
.rev-row p { margin: 6px 0; }
.rev-reply { background: var(--soft); border-radius: 8px; padding: 8px 12px; margin: 6px 0; font-size: 14px; }
@media (max-width: 800px) { .rep-top { grid-template-columns: 1fr; } }

/* AI-assistent */
.ai-layout { display: grid; grid-template-columns: 240px 1fr; gap: 14px; align-items: start; }
.ai-side li.on a { font-weight: 700; }
.ai-thread { display: flex; flex-direction: column; gap: 10px; min-height: 260px; max-height: 60vh; overflow-y: auto; margin-bottom: 12px; }
.ai-thread .bubble { max-width: 85%; }
.ai-thread .bubble.in { align-self: flex-start; background: var(--soft); }
.ai-examples { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-btn { white-space: nowrap; }
@media (max-width: 800px) { .ai-layout { grid-template-columns: 1fr; } }

/* rapportage */
.rep-filters { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 14px; }
.seg { display: inline-flex; flex-wrap: wrap; background: var(--soft); border-radius: 10px; padding: 3px; gap: 2px; }
.seg a { padding: 5px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 14px; }
.seg a.on { background: #fff; box-shadow: 0 1px 2px rgba(40,20,10,.1); font-weight: 600; }
.kpi-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 10px; }
@media (max-width: 500px) { .kpi { padding: 10px; } .kpi-value { font-size: 20px; } }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.kpi-label { font-size: 13px; color: var(--muted); }
.kpi-value { font-size: 24px; font-weight: 600; margin: 2px 0; }
.kpi-delta { font-size: 12px; }
.kpi-delta .up { color: var(--green); font-weight: 600; }
.kpi-delta .down { color: var(--red); font-weight: 600; }
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 12px; margin-top: 12px; }
.chart { margin: 0; }
.chart figcaption { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.chart-title { font-weight: 600; font-size: 16px; }
.chart-total { color: var(--muted); font-size: 13px; }
.chart svg { width: 100%; height: auto; max-height: 260px; display: block; overflow: visible; }
.chart .grid { stroke: var(--soft); stroke-width: 1; }
.chart .axis { stroke: var(--soft-line); stroke-width: 1; }
.chart .tick { fill: var(--muted); font-size: 11px; }
.chart .bar path { fill: var(--accent); }
.chart .bar .hit { fill: transparent; }
.chart .bar.on .hit, .chart .bar:focus .hit { fill: rgba(101,18,51,.07); }
.chart .bar:focus { outline: none; }
.chart-tip { position: fixed; z-index: 50; background: #241a1a; color: #fff; font-size: 13px; padding: 6px 10px; border-radius: 8px; pointer-events: none; white-space: nowrap; }
.chart-empty { padding: 40px 0; text-align: center; }
.ranked { list-style: none; margin: 0; padding: 0; }
.ranked li { display: grid; grid-template-columns: minmax(0, 1.2fr) 1fr auto; gap: 10px; align-items: center; padding: 5px 0; font-size: 14px; }
.ranked .r-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranked .r-bar { background: var(--soft); border-radius: 4px; height: 10px; overflow: hidden; }
.ranked .r-bar span { display: block; height: 100%; background: var(--accent); border-radius: 0 4px 4px 0; }
.ranked .r-val { font-variant-numeric: tabular-nums; color: var(--ink); min-width: 48px; text-align: right; }

/* Media Drive */
.drive-top { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.storage { min-width: 220px; }
.pbar-s { background: var(--soft); border-radius: 6px; height: 8px; overflow: hidden; margin-top: 4px; }
.pbar-s span { display: block; height: 100%; background: var(--accent); }
.upload-form { margin: 0; }
.drive { display: grid; grid-template-columns: 220px 1fr; gap: 14px; align-items: start; }
.drive-side { display: flex; flex-direction: column; gap: 4px; }
.drive-side a { padding: 6px 8px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.drive-side a.on { background: var(--accent-soft); font-weight: 600; }
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.file-card { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px; text-decoration: none; color: var(--ink); min-width: 0; }
.file-card.on, .file-card:hover { border-color: var(--accent); }
.file-card img, .file-card .ficon { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; background: var(--soft); }
.ficon { display: grid; place-items: center; font-size: 38px; }
.fname { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-detail { display: grid; grid-template-columns: 220px 1fr; gap: 16px; }
.fd-preview img, .fd-preview .ficon { width: 100%; border-radius: 8px; background: var(--soft); aspect-ratio: 4/3; object-fit: contain; }
@media (max-width: 800px) { .drive, .file-detail { grid-template-columns: 1fr; } }
.thumb-video { width: 100%; max-width: 360px; border-radius: 8px; background: #000; display: block; margin-bottom: 8px; }
.notice { background: var(--amber-bg); color: #5c4300; border-radius: 8px; padding: 8px 12px; }

/* leads-bord */
.lead-top { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.lead-top .filters { margin: 0; }
.lead-stats { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.kanban { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: flex-start; scroll-snap-type: x proximity; }
.kanban-col { flex: 0 0 272px; background: var(--soft); border-radius: 12px; padding: 10px; min-height: 140px; scroll-snap-align: start; transition: background .15s; }
.kanban-col.over { background: var(--accent-soft); outline: 2px dashed var(--accent); }
.kanban-col.won h3 { color: var(--green); } .kanban-col.lost h3 { color: var(--muted); }
.kanban-col h3 { display: flex; gap: 6px; align-items: baseline; font-size: 14px; margin: 2px 4px 10px; }
.kanban-col .count { background: #fff; border-radius: 10px; padding: 0 7px; font-size: 12px; }
.kanban-col .total { margin-left: auto; }
.cards { display: flex; flex-direction: column; gap: 8px; min-height: 40px; }
.deal-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: grab; box-shadow: 0 1px 2px rgba(40,20,10,.05); }
.deal-card.stale { border-left: 4px solid var(--red); }
.deal-card.dragging { opacity: .45; }
.deal-title { font-weight: 600; text-decoration: none; color: var(--ink); display: block; }
.deal-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; font-size: 13px; }
.deal-meta .owner { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.deal-move { display: flex; gap: 6px; align-items: center; }
.deal-move select { flex: 1; min-width: 0; font-size: 13px; padding: 4px 6px; }
.check-btn { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); background: #fff; color: var(--green); cursor: pointer; font-weight: 700; line-height: 1; padding: 0; }
.check-btn:hover { border-color: var(--green); background: var(--green-bg); }
.tasks-due form.inline { margin: 0 6px 0 0; }
@media (max-width: 700px) { .kanban-col { flex-basis: 84vw; } }

.meet-send{margin:.4em 0 0;gap:6px}.meet-send input{min-width:220px}

/* bedrijfskiezer */
.ws-switch{margin:0 0 10px;border:1px solid rgba(255,255,255,.18);border-radius:10px}
.ws-switch summary{cursor:pointer;padding:8px 12px;font-weight:600;list-style:none}
.ws-switch summary::after{content:" \25BE";opacity:.7}
.ws-switch summary::-webkit-details-marker{display:none}
.ws-switch-list{padding:0 6px 8px}
.ws-switch-list a{display:block}
.ws-switch-list a.ws-add{font-weight:600;border-top:1px solid rgba(255,255,255,.15);margin-top:4px;padding-top:8px}
.ws-switch-list p{margin:6px 8px 0}

/* webshops per merk */
.shop-tabs{display:flex;flex-wrap:wrap;gap:6px;align-items:flex-start}
.tab-add summary{cursor:pointer;padding:8px 12px;font-weight:600;list-style:none}
.tab-add[open]{flex-basis:100%}

/* ===== dashboard (startpagina) ===== */
.dash-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin:4px 0 20px}
.dash-title{font-family:Georgia,"Times New Roman",serif;font-size:clamp(26px,3.4vw,40px);margin:0;line-height:1.1}
.dash-sub{margin:6px 0 0;opacity:.75}
.dash-user{display:flex;align-items:center;gap:14px}
.dash-bell{position:relative;color:inherit;display:inline-flex}
.dash-bell.has::after{content:"";position:absolute;top:0;right:0;width:9px;height:9px;border-radius:50%;background:#c0392b}
.dash-avatar{width:44px;height:44px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:var(--accent,#7a1f35);color:#fff;font-weight:700;text-decoration:none}
.dash-news{display:flex;gap:12px;align-items:flex-start;background:#fff8e6;border:1px solid #ecd9a8;border-radius:12px;padding:12px 16px;margin-bottom:14px}
.dash-news p{margin:4px 0}
.dash-news form{margin-left:auto}
.dash-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}
.dash-kpi{display:flex;gap:12px;align-items:center;background:#fff;border-radius:14px;padding:16px;box-shadow:0 1px 3px rgba(0,0,0,.06)}
.dash-kpi strong{display:block;font-size:26px;line-height:1.15}
.dash-kpi-label{font-size:13px;opacity:.75}
.dash-ic{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:10px;background:#f6efe9;color:#7a5a3a;flex:none}
.dash-ic.big{width:56px;height:56px}
.dash-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:16px}
.dash-card{background:#fff;border-radius:14px;padding:18px 20px;box-shadow:0 1px 3px rgba(0,0,0,.06)}
.dash-card h2{font-family:Georgia,"Times New Roman",serif;margin:0 0 10px;font-size:22px}
.dash-list{list-style:none;margin:0;padding:0}
.dash-list li{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid #efe8e2}
.dash-list li:first-child{border-top:0}
.dash-list li>div{flex:1;min-width:0}
.dash-list strong{display:block}
.dash-list .plain{color:inherit;text-decoration:none}
.dash-dot{width:26px;height:26px;border-radius:50%;border:2px solid #cdbfb3;display:inline-flex;align-items:center;justify-content:center;flex:none;font-size:13px}
.dash-dot.done{background:#2e7d4f;border-color:#2e7d4f;color:#fff}
.btn-soft{display:inline-block;padding:6px 14px;border-radius:8px;border:1px solid #d9c7a0;background:#faf5ea;color:var(--accent,#7a1f35);font-weight:600;font-size:14px;text-decoration:none;white-space:nowrap}
.dash-progress{display:flex;align-items:center;gap:12px;font-size:14px;margin:8px 0 6px}
.dash-progress .bar{flex:1;height:8px;border-radius:8px;background:#efe6df;overflow:hidden}
.dash-progress .bar i{display:block;height:100%;background:var(--accent,#7a1f35)}
.dash-empty{padding:10px 0;opacity:.8}
.dash-empty-box{text-align:center;padding:12px 0}
.dash-empty-box p{margin:10px 0 14px}
.dash-table{width:100%}
.dash-table .r{text-align:right}
.dash-action{display:flex;align-items:center;gap:12px;padding:12px 16px;margin-bottom:10px;border-radius:10px;background:var(--accent,#7a1f35);color:#fff;font-weight:600;text-decoration:none}
.dash-action .ic{color:#fff}
.dash-2fa{margin-top:18px}
@media (max-width:900px){.dash-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.dash-grid{grid-template-columns:1fr}}
@media (max-width:480px){.dash-kpis{grid-template-columns:1fr}.dash-kpi strong{font-size:22px}}

/* welkomstvideo */
.welcome-veil{position:fixed;inset:0;background:rgba(40,25,30,.45);backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;padding:16px;z-index:1000}
.welcome-box{position:relative;background:#fffaf5;border-radius:18px;max-width:720px;width:100%;padding:26px 28px 18px;box-shadow:0 20px 60px rgba(0,0,0,.25);text-align:center;max-height:calc(100vh - 32px);overflow:auto}
.welcome-box h2{font-family:Georgia,"Times New Roman",serif;font-size:clamp(24px,3vw,34px);margin:0 0 6px}
.welcome-x{position:absolute;top:10px;right:14px}
.welcome-x button{background:none;border:0;font-size:30px;line-height:1;cursor:pointer;color:inherit}
.welcome-video{position:relative;aspect-ratio:16/9;margin:16px 0;border-radius:12px;overflow:hidden;background:#2a1a1f}
.welcome-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.welcome-play{position:absolute;inset:0;margin:auto;width:76px;height:76px;border-radius:50%;border:0;background:var(--accent,#7a1f35);color:#fff;font-size:28px;cursor:pointer;box-shadow:0 6px 20px rgba(0,0,0,.3)}
.welcome-veil.playing .welcome-play{display:none}
.welcome-actions{display:flex;justify-content:center;align-items:center;gap:18px;flex-wrap:wrap;margin:8px 0}
body.welcome-open{overflow:hidden}

.news-item{padding:8px 0;border-top:1px solid rgba(0,0,0,.06)}.news-item.unread strong::after{content:' \2022';color:#c0392b}

/* ===== Prymetic-huisstijl ===== */
h1 { font-family: var(--serif); font-weight: 600; font-size: 30px; }
.logo { font-family: var(--serif); font-weight: 600; text-transform: uppercase; letter-spacing: 3px; font-size: 21px; overflow-wrap: anywhere; }
.pub-logo { font-family: var(--serif); font-weight: 600; text-transform: uppercase; letter-spacing: 4px; color: var(--accent); }
.side nav a.active { background: rgba(255,255,255,.17); color: #fff; font-weight: 600; }
.side .muted { color: var(--side-muted); }
.side a:focus-visible, .side summary:focus-visible, .side .link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.side .unread { background: var(--gold); color: var(--side); }
.dash-ic { background: #f6eedd; color: #7d5c1e; }
.dash-kpi, .dash-card { border: 1px solid var(--line); }
/* Beheer: lichte zijbalk, zodat je meteen ziet dat je niet in een klantportaal zit */
.beheer { --side: #fffdf8; --side-line: #e6ddcf; --side-text: #3a2a26; --side-muted: #6a5f58; }
.beheer .side { border-right: 1px solid var(--line); border-top: 4px solid var(--gold); }
.beheer .side .logo { color: var(--accent); }
.beheer .side nav a:hover { background: var(--soft); }
.beheer .side nav a.active { background: var(--accent-soft); color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.beheer .side .unread { background: var(--accent); color: #fff; }
.beheer .logo .beheer-tag { display: inline-block; background: var(--accent); color: #fff; font-weight: 700; padding: 2px 10px; border-radius: 6px; margin-top: 8px; }
.ws-name { margin: 0 0 10px; padding: 6px 12px; font-weight: 600; color: var(--side-text); }
.plan-card .incl { margin: 0 0 10px; font-weight: 600; }
.plan-card .excl { display: block; }
.plan-card ul { padding-left: 18px; }
.sum { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; margin: 0 0 14px; }
.sum dt, .sum dd { margin: 0; }
.sum dd { text-align: right; font-variant-numeric: tabular-nums; }
.sum .tot { font-weight: 700; border-top: 1px solid var(--line); padding-top: 6px; }
@media (max-width: 800px) { .ws-name { white-space: nowrap; } }
/* 'System' recht (gecentreerd) onder de merknaam: klein en in een eigen kleur */
.logo, .pub-logo { width: fit-content; text-align: center; }
.logo { letter-spacing: 3px; }
.logo span, .pub-logo span { display: block; font: 500 9px/1 "Segoe UI", system-ui, sans-serif; letter-spacing: 4px; text-indent: 4px; text-transform: uppercase; margin: 3px 3px 0 0; }
.logo { color: #fff; }
.logo span { color: var(--gold); }
.pub-logo span, .beheer .logo span { color: #8a6116; margin-right: 4px; }
.beheer .logo .beheer-tag { display: block; width: fit-content; margin: 10px auto 0; font: 700 11px/1.5 "Segoe UI", system-ui, sans-serif; letter-spacing: 1.5px; }
.plans.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); max-width: 820px; margin: 0 auto; }
.plan-card { display: flex; flex-direction: column; }
.plan-card ul { flex: 1; }
.plan-card.best { border-color: var(--gold); }
.best-tag { align-self: flex-start; margin: 0 0 6px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 6px; }
.land-form { display: flex; justify-content: center; align-items: end; gap: 8px; margin: 18px 0 6px; flex-wrap: wrap; }
.on-company .company-fields { display: none; }
.on-company:has(input[name=is_company]:checked) .company-fields { display: block; }
.company-fields label, .stack .grid2 label { display: block; margin-bottom: 10px; }
.company-fields { padding: 10px 0 0 14px; border-left: 3px solid var(--gold); }
.order { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px; align-items: start; }
.order-plan { background: var(--bg); border: 2px solid var(--gold); border-radius: 18px; padding: 24px; }
.order-plan .price { font-size: 30px; font-weight: 800; color: var(--accent); margin: 14px 0 4px; }
.order-plan .price small { font-size: 13px; color: var(--muted); font-weight: 400; }
.points { list-style: none; padding: 0; }
.points li { padding: 5px 0 5px 28px; position: relative; }
.points li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.plan-card ul.points { padding-left: 0; }
.periods { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.period { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-weight: 400; cursor: pointer; }
.period input { width: auto; margin-top: 4px; }
.period em { font-style: normal; color: var(--green); font-size: 13px; }
.period:has(:checked) { border-color: var(--accent); background: var(--accent-soft); }
.order form .for-year { display: none; }
.order form:has([name=periode][value=year]:checked) .for-year { display: grid; }
.order form:has([name=periode][value=year]:checked) .for-month { display: none; }
@media (max-width: 800px) { .order { grid-template-columns: minmax(0, 1fr); } }
.set-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 18px; align-items: start; }
.set-grid .grid2 label { display: block; }
.c-admin { border-top: 1px solid var(--line); padding: 12px 0; overflow-wrap: anywhere; }
.c-img { max-width: 260px; border-radius: 10px; }
.c-comment { margin: 6px 0 6px 18px; }
.legal { max-width: 680px; margin: 0 auto; overflow-wrap: anywhere; }
.plan-card .btn { text-align: center; }

.recovery-codes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.recovery-codes code { display: block; padding: 8px; text-align: center; background: var(--soft); border: 1px solid var(--soft-line); border-radius: 8px; font-size: 15px; letter-spacing: .04em; white-space: nowrap; }

/* ===== dashboard 2: zoekbalk, cijfers met iconen, grafieken en drie kaarten ===== */
.side nav a { justify-content: flex-start; gap: 12px; }
.side nav a .ic { width: 20px; height: 20px; flex: none; }
.side nav a .unread { margin-left: auto; }
.side .ws-switch-list a { display: block; }
.dash-head { align-items: flex-start; flex-wrap: wrap; }
.dash-title { color: var(--accent); }
.dash-sub { font-family: var(--serif); font-style: italic; font-size: clamp(17px, 1.7vw, 22px); color: #94641c; opacity: 1; }
.dash-tools { margin-left: auto; display: flex; flex-direction: column; gap: 14px; align-items: flex-end; min-width: min(100%, 420px); }
.dash-tools .dash-user { width: 100%; justify-content: flex-end; }
.dash-search { position: relative; flex: 1; max-width: 360px; margin: 0; }
.dash-search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--accent); pointer-events: none; }
.dash-search input { margin: 0; padding: 11px 16px 11px 44px; border-radius: 24px; border: 1px solid #bda9a4; background: #fffdfb; }
.dash-search input::placeholder { color: #6e5d58; font-style: italic; opacity: 1; }
.dash-search input:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--accent); }
.dash-avatar { background: var(--accent); flex: none; }
.dash-quick { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.dash-quick form { margin: 0; }
.dash-quick .btn, .dash-quick .btn-line { display: inline-flex; align-items: center; gap: 10px; }
.btn-line { background: #fffdfb; color: var(--accent); border: 1px solid var(--accent); border-radius: 10px; padding: 9px 16px; font-weight: 600; text-decoration: none; }
.btn-line:hover { background: var(--accent-soft); }
.dash-kpi, .dash-card { background: #fffcf9; border-color: #ecdfd6; box-shadow: 0 2px 8px rgba(79,11,37,.06); }
a.dash-kpi { color: inherit; text-decoration: none; position: relative; padding: 18px 18px 22px; }
a.dash-kpi::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 12px; border-bottom: 2px solid #b98a3c; opacity: .75; }
a.dash-kpi:hover { border-color: var(--gold); }
a.dash-kpi > div { flex: 1; min-width: 0; }
.dash-kpi .dash-ic { width: 52px; height: 52px; border-radius: 50%; background: #f7ead6; color: #94641c; }
.dash-kpi .dash-ic .ic { width: 28px; height: 28px; }
.dash-kpi-row { display: flex; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; }
.dash-kpi strong { font-family: var(--serif); color: var(--accent); font-variant-numeric: lining-nums; }
.dash-kpi-label { font-size: 14px; opacity: 1; }
.dash-delta { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 10px; background: var(--green-bg); color: #0f6b40; white-space: nowrap; }
.dash-delta.down { background: var(--red-bg); color: var(--red); }
.dash-card h2 { color: var(--accent); font-weight: 600; }
.with-ic { display: flex; align-items: center; gap: 12px; }
.with-ic .ic { color: #94641c; flex: none; width: 26px; height: 26px; }
.with-ic .on-dot { margin-left: auto; width: 12px; height: 12px; border-radius: 50%; background: #1d8a3c; }
.with-ic + .dash-list { border-top: 1px solid #ecdfd6; margin-top: 12px; }
.dash-charts { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.dash-three { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 16px; margin-bottom: 16px; align-items: start; }
.dash-charts + .dash-three { align-items: stretch; }
.dash-card .sub { color: var(--muted); font-size: 13px; font-family: "Segoe UI", system-ui, sans-serif; font-weight: 400; margin-left: 8px; white-space: nowrap; }
.dash-svg { width: 100%; height: auto; display: block; overflow: visible; }
.dash-svg text { font: 12.5px "Segoe UI", system-ui, sans-serif; fill: #4a3a38; }
.dash-svg .g { stroke: #eadfd7; stroke-width: 1; }
.dash-svg .axis { stroke: #c9b5ad; }
.dash-svg .ln { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.dash-svg .pt circle.d { fill: #fff; stroke: var(--accent); stroke-width: 2.2; }
.dash-svg .pt.last circle.d { fill: #c2487a; stroke: #fff; stroke-width: 2.5; }
.dash-svg .pt:focus { outline: none; }
.dash-svg .pt .tip { opacity: 0; transition: opacity .12s; pointer-events: none; }
.dash-svg .pt.last .tip, .dash-svg .pt:hover .tip, .dash-svg .pt:focus .tip { opacity: 1; }
.dash-svg:hover .pt.last:not(:hover) .tip { opacity: 0; }
.dash-svg .tip rect { fill: var(--accent); }
.dash-svg .tip text { fill: #fff; font-weight: 600; }
.dash-svg .b0 { fill: #6b1237; } .dash-svg .b1 { fill: #a8536d; } .dash-svg .b2 { fill: #c98b98; } .dash-svg .b3 { fill: #dfb7b8; }
.dash-svg .val { font-weight: 700; fill: var(--ink); }
.time-chip { background: #f7ead6; border-radius: 8px; padding: 5px 12px; font-weight: 700; font-variant-numeric: tabular-nums; flex: none; }
.dash-list .ic { color: var(--accent); flex: none; }
.talk-av { width: 42px; height: 42px; border-radius: 50%; background: #efd9dd; color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.dash-list .when { font-size: 13px; color: var(--muted); align-self: flex-start; white-space: nowrap; }
.dash-list .cut { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-list .new strong::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #b98a3c; margin-left: 8px; vertical-align: 1px; }
.ai-box { background: #eef6ec; border-radius: 12px; padding: 6px 16px; margin: 12px 0; list-style: none; }
.ai-box li { display: flex; gap: 12px; align-items: center; padding: 8px 0; }
.ai-box .ic { color: #1d6b33; flex: none; }
.dash-more { font-size: 14px; font-weight: 600; }
@media (max-width: 1000px) { .dash-charts { grid-template-columns: 1fr; } }
@media (max-width: 800px) {
  .dash-tools { width: 100%; align-items: stretch; }
  .dash-search { max-width: none; }
  .dash-quick { justify-content: stretch; } .dash-quick > * { flex: 1; } .dash-quick .btn, .dash-quick .btn-line { width: 100%; justify-content: center; white-space: nowrap; }
}
@media (max-width: 480px) { .dash-kpis { grid-template-columns: 1fr 1fr; gap: 10px; } a.dash-kpi { flex-direction: column; align-items: flex-start; padding: 14px 14px 20px; gap: 8px; } a.dash-kpi::after { left: 14px; right: 14px; } .dash-kpi .dash-ic { width: 42px; height: 42px; } .dash-kpi strong { font-size: 21px; } .dash-svg text { font-size: 17px; } }

.dash-kpi strong { white-space: nowrap; }
@media (max-width: 600px) { a.dash-kpi { flex-direction: column; align-items: flex-start; padding: 14px 14px 22px; gap: 8px; } .dash-kpi .dash-ic { width: 42px; height: 42px; } .dash-kpi strong { font-size: 21px; } .dash-svg text { font-size: 17px; } .dash-svg .tip text { font-size: 14px; } }

.logo-img { display: block; width: 100%; max-width: 196px; height: auto; }
.side a.logo { width: auto; padding: 4px 8px 16px; }
.pub-logo .logo-img { max-width: 190px; }
@media (max-width: 800px) { .side .logo-img { max-width: 160px; } .pub-logo .logo-img { max-width: 140px; } }

.dash-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; grid-auto-flow: dense; }
.dash-cards > .wide { grid-column: span 2; }
.dash-kpis { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.week { list-style: none; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 4px 0 10px; padding: 0; text-align: center; }
.week li { padding: 6px 0 4px; border-radius: 10px; }
.week span { display: block; font-size: 12px; color: var(--muted); text-transform: lowercase; }
.week strong { display: block; font-variant-numeric: tabular-nums; }
.week i { display: inline-block; font: 600 11px/17px "Segoe UI", system-ui, sans-serif; min-width: 17px; height: 17px; border-radius: 9px; }
.week .has i { background: #f1d9a8; color: #5d400c; }
.week .today { background: var(--accent); color: #fff; } .week .today span { color: #f3dfe4; }
.time-chip small { display: block; font-weight: 500; font-size: 11px; }
.order-end { flex: none !important; text-align: right; } .order-end strong { white-space: nowrap; }
.icon-only { padding: 9px 11px; flex: none !important; width: auto !important; }
.dash-edit { text-align: right; margin: 0 0 8px; } .dash-edit a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.guide-search { max-width: 560px; margin-bottom: 14px; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.guide-grid .dash-card p { margin: 6px 0 12px; }
.info-bar { display: flex; gap: 14px; align-items: center; border-left: 4px solid var(--gold); } .info-bar .ic { color: #94641c; flex: none; width: 30px; height: 30px; }
.edit-list { list-style: none; padding: 0; margin: 0 0 14px; }
.edit-list li { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; margin-bottom: 8px; background: #fff; cursor: grab; }
.edit-list li.drag { opacity: .5; }
.edit-list label { flex: 1; margin: 0; font-size: 15px; font-weight: 500; }
.edit-move { display: flex; gap: 6px; } .edit-move button { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: var(--soft); cursor: pointer; font-size: 16px; color: var(--accent); }
.dash-card h2 .sub { white-space: normal; }
@media (max-width: 1150px) { .dash-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .dash-cards { grid-template-columns: minmax(0, 1fr); } .dash-cards > .wide { grid-column: auto; } .dash-kpis { grid-template-columns: 1fr 1fr; } }
.desk-head { text-align: center; margin: 10px 0 24px; } .desk-head .dash-title { margin-bottom: 18px; }
.desk-search { max-width: 680px; margin: 0 auto; } .desk-search input { font-size: 17px; padding: 14px 18px 14px 48px; }
.desk-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; margin-bottom: 26px; }
.desk-choices a { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: inherit; text-decoration: none; padding: 24px 18px; } .desk-choices a:hover { border-color: var(--gold); } .desk-choices strong { font-size: 17px; color: var(--accent); }
.desk-choices .dash-ic { border-radius: 50%; background: #f7ead6; color: #94641c; }
.desk-title { font-family: var(--serif); color: var(--accent); font-size: 24px; margin: 18px 0 14px; } .desk-ask { margin-top: 18px; }

.dash-cards > .full { grid-column: 1 / -1; }
.dash-2fa { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 0 0 16px; border-left: 4px solid var(--gold); } .dash-2fa > div { flex: 1; min-width: 200px; } .dash-2fa h2, .dash-2fa p { margin: 0; } .dash-2fa h2 { font-family: var(--serif); color: var(--accent); font-size: 20px; }
.dash-cards .dash-svg text { font-size: 13.5px; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }

/* ===== menu op de telefoon ===== */
.menu-btn, .tabbar { display: none; }
@media (max-width: 800px) {
  .side { position: sticky; top: 0; z-index: 60; padding: 0; height: auto; overflow: visible; box-shadow: 0 2px 10px rgba(40,5,20,.25); }
  .side-top { display: flex; align-items: center; justify-content: space-between; padding: calc(8px + env(safe-area-inset-top, 0px)) 14px 8px; }
  .side-top a.logo { padding: 0; margin: 0; } .side-top .logo-img { max-width: 146px; }
  .beheer .logo .beheer-tag { margin: 4px 0 0; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: rgba(255,255,255,.12); color: inherit; cursor: pointer; }
  .beheer .menu-btn { background: var(--accent-soft); color: var(--accent); }
  .side-body { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--side); max-height: calc(100vh - 62px); max-height: calc(100dvh - 62px); overflow-y: auto; padding: 8px 12px calc(90px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--side-line); overscroll-behavior: contain; }
  .side.open .side-body { display: block; }
  .side nav { display: block; overflow: visible; padding: 0; }
  .side nav a { padding: 12px 14px; white-space: normal; font-size: 16px; }
  .ws-name { white-space: normal; }
  .menu-open, .menu-open body { overflow: hidden; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: #fffcf9; border-top: 1px solid #e3d3ca; padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: 0 -2px 10px rgba(40,5,20,.08); }
  .tabbar a, .tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 58px; padding: 6px 2px; border: 0; background: none; color: #6a5a55; text-decoration: none; font: 600 11px/1.1 "Segoe UI", system-ui, sans-serif; cursor: pointer; min-width: 0; }
  .tabbar span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabbar .on, .tabbar [aria-expanded=true] { color: var(--accent); } .tabbar .on::before { content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 3px; border-radius: 0 0 3px 3px; background: var(--gold); }
  .tabbar b { position: absolute; top: 5px; left: calc(50% + 6px); min-width: 17px; height: 17px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 10px; line-height: 17px; text-align: center; padding: 0 4px; }
  .tabbar a:focus-visible, .tabbar button:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
  body.admin:has(.tabbar) .content { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
@media print { .tabbar { display: none !important; } }
