/* AnotherSight dashboard. Huisstijl uit de Elementor-kit van anothersight.nl:
   DM Sans 300/700, navy #2A343F, mint #02C7A5, hover #007561, steunkleur #F9F9F9. */

@font-face { font-family: "DM Sans"; font-weight: 300; font-style: normal; font-display: swap; src: url("/fonts/dm-sans-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/dm-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/dm-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/dm-sans-latin-700-normal.woff2") format("woff2"); }

:root {
    --navy: #2A343F;
    --navy-soft: #5b6672;
    --mint: #02C7A5;
    --mint-dark: #007561;
    --mint-tint: #e6faf6;
    --support: #F9F9F9;
    --white: #FFFFFF;
    --line: #e7e9ec;
    --good: #007561;
    --bad: #c2410c;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(42, 52, 63, .06), 0 4px 16px rgba(42, 52, 63, .05);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: "DM Sans", system-ui, sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 26px;
    color: var(--navy);
    background: var(--support);
}
h1, h2, h3 { font-weight: 700; margin: 0; color: var(--navy); }
h1 { font-size: 32px; line-height: 42px; }
h2 { font-size: 22px; line-height: 30px; }
h3 { font-size: 16px; line-height: 24px; }
p { margin: 0 0 12px; }
a { color: var(--mint); }
a:hover { color: var(--mint-dark); text-decoration: underline; }
strong { font-weight: 700; }

.wrap { max-width: 1420px; margin: 0 auto; padding: 0 20px; }

/* Header: donkerblauw met logo */
.topbar { background: var(--navy); color: rgba(255,255,255,.75); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; height: 32px; width: auto; }
.topbar nav { display: flex; align-items: center; gap: 20px; font-size: 14px; }
.topbar nav a, .topbar .link-button { color: rgba(255,255,255,.85); }
.topbar nav a:hover, .topbar .link-button:hover { color: var(--mint); }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--navy-soft); cursor: pointer; }
.link-button:hover { color: var(--mint-dark); text-decoration: underline; }

/* Hero: klantnaam en periodekiezer op donkerblauw */
.hero { background: var(--navy); color: var(--white); padding-bottom: 24px; border-top: 1px solid rgba(255,255,255,.08); }
.hero h1 { color: var(--white); }
.hero .page-head { padding: 28px 0 20px; }
.hero .page-head .sub, .hero .muted { color: rgba(255,255,255,.7); }
.hero .toolbar { margin-bottom: 0; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); }
.hero .toolbar .field label { color: rgba(255,255,255,.7); }
.hero select, .hero input[type=date] { background: var(--white); border-color: transparent; }
.js .toolbar .field-submit { display: none; }

/* Snelmenu: plakt bovenin tijdens scrollen */
.subnav { position: sticky; top: 0; z-index: 20; background: var(--navy); box-shadow: 0 6px 16px rgba(42, 52, 63, .18); }
.subnav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-top: 8px; padding-bottom: 8px; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a {
    flex: none; color: rgba(255,255,255,.8); text-decoration: none; font-size: 14px; font-weight: 500;
    padding: 6px 14px; border-radius: 50px; transition: background .15s, color .15s;
}
.subnav a:hover { background: rgba(255,255,255,.1); color: var(--white); text-decoration: none; }
.subnav a[aria-current="true"] { background: var(--mint); color: var(--navy); }
main > .card, main > section { scroll-margin-top: 72px; }
main.wrap { padding-top: 24px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Buttons, conform de site: mint, hover donkerder en pilvormig */
.btn {
    display: inline-block; border: 0; cursor: pointer;
    background: var(--mint); color: var(--white);
    font: 700 16px/26px "DM Sans", sans-serif;
    padding: 10px 18px; border-radius: var(--radius-sm);
    text-decoration: none; transition: background .2s, border-radius .2s;
}
.btn:hover, .btn:focus-visible { background: var(--mint-dark); border-radius: 50px; color: var(--white); text-decoration: none; }
.btn-secondary { background: var(--white); color: var(--navy); border: 1px solid var(--line); }
.btn-secondary:hover { background: var(--support); color: var(--navy); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }

/* Page */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 32px 0 24px; }
.page-head .sub { color: var(--navy-soft); margin: 4px 0 0; }
.segmented { display: inline-flex; background: var(--white); border: 1px solid var(--line); border-radius: 50px; padding: 4px; }
.segmented a { padding: 6px 14px; border-radius: 50px; color: var(--navy); text-decoration: none; font-size: 14px; font-weight: 400; }
.segmented a[aria-current="true"] { background: var(--navy); color: var(--white); }

.grid { display: grid; gap: 20px; margin-bottom: 20px; }
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.card h2 { margin-bottom: 12px; }
.muted { color: var(--navy-soft); }
.small { font-size: 14px; line-height: 22px; }

/* Weekanalyse: het belangrijkste blok */
.analysis { border-left: 4px solid var(--mint); }
.analysis .label { display: inline-block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--mint-dark); margin-bottom: 6px; }
.analysis .body { font-size: 18px; line-height: 30px; max-width: 75ch; }
.analysis.draft { border-left-color: var(--navy-soft); background: repeating-linear-gradient(135deg, var(--white), var(--white) 12px, var(--support) 12px, var(--support) 24px); }
.analysis.draft .label { color: var(--navy-soft); }

/* KPI-kaarten */
.kpis { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.kpi .name { font-size: 14px; color: var(--navy-soft); margin-bottom: 4px; }
.kpi .value { font-size: 30px; line-height: 38px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kpi .delta { font-size: 14px; font-weight: 500; margin-top: 4px; }
.kpi .delta.good { color: var(--good); }
.kpi .delta.bad { color: var(--bad); }
.kpi .target { font-size: 13px; color: var(--navy-soft); }

.chart { width: 100%; height: 320px; }

/* Tabel */
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-weight: 500; color: var(--navy-soft); font-size: 13px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
td { padding: 12px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
td.num, th.num { text-align: right; }
tr:last-child td { border-bottom: 0; }

/* Notities */
.notes { list-style: none; margin: 0; padding: 0; }
.notes li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.notes li:last-child { border-bottom: 0; }
.notes time { font-size: 14px; color: var(--navy-soft); }
.badge { display: inline-block; font-size: 12px; font-weight: 500; padding: 0 8px; border-radius: 50px; background: var(--support); color: var(--navy-soft); margin-left: 6px; }
.badge.internal { background: #fff4e5; color: #9a5b00; }

.empty { text-align: center; padding: 48px 24px; }

/* Login */
.auth-body { background: var(--navy); }
.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 24px; }
.auth-logo { height: 52px; width: auto; }
.auth .card { width: 100%; max-width: 420px; padding: 32px; }
.auth h1 { font-size: 26px; line-height: 34px; margin-bottom: 8px; }
label { display: block; font-weight: 500; font-size: 14px; margin: 20px 0 6px; }
input[type=email] {
    width: 100%; font: 300 16px/24px "DM Sans", sans-serif; color: var(--navy);
    padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white);
}
input[type=email]:focus { border-color: var(--mint); outline: none; box-shadow: 0 0 0 3px var(--mint-tint); }
.auth .btn { width: 100%; margin-top: 16px; }
.notice { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; line-height: 22px; margin-top: 16px; }
.notice.ok { background: var(--mint-tint); color: var(--mint-dark); }
.notice.err { background: #fdecea; color: #9f1d1d; }
.divider { text-align: center; color: var(--navy-soft); font-size: 13px; margin: 24px 0 8px; }

.footer { padding: 32px 0 40px; font-size: 13px; color: var(--navy-soft); }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer p { margin: 0; }
.footer-logo { height: 28px; width: auto; opacity: .8; }

@media (max-width: 767px) {
    .wrap { padding: 0 12px; }
    h1 { font-size: 28px; line-height: 36px; }
    .card { padding: 18px; }
    .analysis .body { font-size: 16px; line-height: 26px; }
    .chart { height: 260px; }
    .notes li { grid-template-columns: 1fr; gap: 2px; }
    .hide-sm { display: none; }
}

.btn-block { display: block; width: 100%; text-align: center; }

/* Periodekiezer */
.toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; margin-bottom: 20px; padding: 18px 24px; }
.toolbar .field { display: flex; flex-direction: column; min-width: 150px; }
.toolbar .field label { margin: 0 0 6px; font-size: 13px; color: var(--navy-soft); font-weight: 500; }
.toolbar .field-submit { margin-left: auto; }
select, input[type=date] {
    font: 400 15px/22px "DM Sans", sans-serif; color: var(--navy);
    padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white);
    min-height: 44px;
}
select:focus, input[type=date]:focus { border-color: var(--mint); outline: none; box-shadow: 0 0 0 3px var(--mint-tint); }

/* Kaartkop met tabs */
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.card-head h2 { margin: 0; }
.segmented button {
    border: 0; background: none; cursor: pointer; font: 400 14px/20px "DM Sans", sans-serif; color: var(--navy);
    padding: 6px 14px; border-radius: 50px;
}
.segmented button[aria-selected="true"] { background: var(--navy); color: var(--white); }

/* Kanalen */
.channel-list { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.channel { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.channel h3 { margin-bottom: 10px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px 16px; margin: 0; }
.stats dt { font-size: 13px; color: var(--navy-soft); }
.stats dd { margin: 2px 0 0; font-size: 20px; line-height: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Veranderingen */
.chip { display: inline-block; font-size: 12px; line-height: 18px; font-weight: 500; padding: 0 6px; border-radius: 50px; margin-left: 4px; vertical-align: middle; white-space: nowrap; }
.chip.good { background: var(--mint-tint); color: var(--good); }
.chip.bad { background: #fdeee7; color: var(--bad); }
.chip.flat { background: var(--support); color: var(--navy-soft); }
.kpi .delta.flat { color: var(--navy-soft); }
.kpi .delta .muted { font-weight: 300; }

.table-wrap { overflow-x: auto; }
.share { display: inline-flex; align-items: center; gap: 8px; }
.share-bar { display: inline-block; height: 6px; border-radius: 3px; background: var(--mint); }
.share-0 { width: 0.0px; }
.share-5 { width: 3.0px; }
.share-10 { width: 6.0px; }
.share-15 { width: 9.0px; }
.share-20 { width: 12.0px; }
.share-25 { width: 15.0px; }
.share-30 { width: 18.0px; }
.share-35 { width: 21.0px; }
.share-40 { width: 24.0px; }
.share-45 { width: 27.0px; }
.share-50 { width: 30.0px; }
.share-55 { width: 33.0px; }
.share-60 { width: 36.0px; }
.share-65 { width: 39.0px; }
.share-70 { width: 42.0px; }
.share-75 { width: 45.0px; }
.share-80 { width: 48.0px; }
.share-85 { width: 51.0px; }
.share-90 { width: 54.0px; }
.share-95 { width: 57.0px; }
.share-100 { width: 60.0px; }

@media (max-width: 767px) {
    .toolbar { padding: 16px; }
    .toolbar .field { min-width: calc(50% - 8px); flex: 1; }
    .toolbar .field-submit { margin-left: 0; min-width: 100%; }
    .toolbar .btn { width: 100%; }
    .channel-list { grid-template-columns: 1fr; }
    .stats dd { font-size: 18px; }
}

/* Sorteerbare tabellen */
.table-tools { margin-bottom: 12px; }
.table-filter {
    width: 100%; max-width: 360px; font: 400 15px/22px "DM Sans", sans-serif; color: var(--navy);
    padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); min-height: 44px;
}
.table-filter:focus { border-color: var(--mint); outline: none; box-shadow: 0 0 0 3px var(--mint-tint); }
th button.sort {
    background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: inherit;
    display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
}
th button.sort::after { content: "↕"; font-size: 11px; opacity: .35; }
th[aria-sort="ascending"] button.sort::after { content: "▲"; opacity: .9; color: var(--mint-dark); }
th[aria-sort="descending"] button.sort::after { content: "▼"; opacity: .9; color: var(--mint-dark); }
th.num button.sort { flex-direction: row-reverse; }
th.num { text-align: right; }
.data-table td { vertical-align: top; }
.data-table td.num .chip { display: block; width: max-content; margin: 2px 0 0 auto; }
.explain { max-width: 80ch; margin-bottom: 16px; }
[hidden] { display: none !important; }

/* Totaalrij */
.data-table tfoot th, .data-table tfoot td { border-top: 2px solid var(--navy); font-weight: 700; padding: 12px; background: var(--support); }
.data-table tfoot th { text-align: left; }

/* Bronnenfilter */
.toolbar .sources { border: 0; padding: 0; margin: 0; min-width: 0; flex: 1 1 100%; }
.toolbar .sources legend { padding: 0; margin: 0 0 6px; font-size: 13px; font-weight: 500; color: var(--navy-soft); }
.hero .toolbar .sources legend { color: rgba(255,255,255,.7); }
.source-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.toolbar .field .source-chip {
    display: inline-flex; align-items: center; gap: 8px; margin: 0; cursor: pointer; user-select: none;
    font-size: 14px; font-weight: 500; line-height: 20px; padding: 7px 14px 7px 10px; border-radius: 50px;
    background: rgba(255,255,255,.08); color: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.14);
    transition: background .15s, color .15s, border-color .15s;
}
.toolbar .field .source-chip:hover { border-color: rgba(255,255,255,.4); }
.toolbar .field .source-chip input { position: absolute; opacity: 0; pointer-events: none; }
.toolbar .field .source-chip:has(input:checked) { background: var(--white); color: var(--navy); border-color: var(--white); }
.toolbar .field .source-chip:has(input:focus-visible) { outline: 2px solid var(--mint); outline-offset: 2px; }
.toolbar .field .source-chip img { width: 16px; height: 16px; object-fit: contain; }
.toolbar .field .source-chip:not(:has(input:checked)) img { filter: grayscale(1); opacity: .6; }
.source-chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--navy-soft); flex: none; }
.toolbar .field .source-chip:not(:has(input:checked)) .dot { background: transparent !important; box-shadow: inset 0 0 0 2px rgba(255,255,255,.45); }
.src-google_ads .dot { background: #1A73E8; }
.src-facebook .dot { background: #0866FF; }
.src-facebook_organic .dot { background: #5B8DEF; }
.src-linkedin .dot { background: #0A66C2; }
.src-linkedin_organic .dot { background: #4F8FD1; }
.src-googleanalytics4 .dot { background: #E37400; }
.src-searchconsole .dot { background: #34A853; }
.src-instagram_public .dot { background: #D62976; }
.src-google_merchant .dot { background: #FBBC04; }

/* Contactpersoon */
.contact { display: flex; align-items: center; gap: 18px; }
.contact-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; background: var(--support); }
.contact-initials { display: grid; place-items: center; font-weight: 700; font-size: 24px; color: var(--white); background: var(--navy); }
.contact .who { font-weight: 700; font-size: 18px; line-height: 24px; color: var(--navy); }
.contact .role { font-size: 14px; color: var(--navy-soft); margin-bottom: 6px; }
.contact .lines { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 15px; }
.contact .lines a { color: var(--mint-dark); }
.contact-card { margin-bottom: 0; }
.contact-card .label { display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--mint-dark); margin-bottom: 12px; }
.footer-contact { flex: 1 1 420px; }

/* Grafiekweergave dag/week/maand */
.chart-title { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.segmented-sm a { padding: 4px 12px; font-size: 13px; }
.analysis-meta { margin: 12px 0 0; }

/* Campagnefilter */
.campaign-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin: 4px 0 16px; padding: 16px; background: var(--support); border-radius: var(--radius-sm); }
.campaign-filter .field { display: flex; flex-direction: column; min-width: 180px; flex: 1 1 180px; }
.campaign-filter .field label { margin: 0 0 6px; font-size: 13px; color: var(--navy-soft); font-weight: 500; }
.campaign-filter .field-actions { flex: 0 0 auto; flex-direction: row; gap: 8px; min-width: 0; }
.campaign-filter input[type=text] {
    font: 400 15px/22px "DM Sans", sans-serif; color: var(--navy); min-height: 44px;
    padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white);
}
.campaign-filter input[type=text]:focus { border-color: var(--mint); outline: none; box-shadow: 0 0 0 3px var(--mint-tint); }
.campaign-filter .filter-help { flex: 1 1 100%; margin: 0; }

/* Tooltip van de grafiek: uitsplitsing per bron */
.tt-parts { border-collapse: collapse; margin-top: 6px; font-size: 12px; width: 100%; }
.tt-parts td { padding: 1px 0; border: 0; color: var(--navy-soft); }
.tt-parts td.tt-num { text-align: right; padding-left: 12px; color: var(--navy); font-variant-numeric: tabular-nums; }
.tt-parts td.tt-share { color: var(--navy-soft); }

/* Leadwaarde-rekenhulp */
.lv-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.lv-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.lv-fields .field { display: flex; flex-direction: column; }
.lv-fields label { margin: 0 0 6px; font-size: 13px; color: var(--navy-soft); font-weight: 500; }
.input-prefix, .input-suffix { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); min-height: 44px; }
.input-prefix:focus-within, .input-suffix:focus-within { border-color: var(--mint); box-shadow: 0 0 0 3px var(--mint-tint); }
.input-prefix span, .input-suffix span { padding: 0 10px; color: var(--navy-soft); font-size: 14px; }
.input-prefix input, .input-suffix input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: 400 15px/22px "DM Sans", sans-serif; color: var(--navy); padding: 9px 12px 9px 0; }
.input-suffix input { padding: 9px 0 9px 12px; }
.lv-actions { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; margin: 0; }
.lv-actions legend { font-size: 13px; font-weight: 500; color: var(--navy-soft); padding: 0 4px; }
label.lv-action { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; margin: 0; padding: 6px 0; font-weight: 400; font-size: 15px; border-bottom: 1px solid var(--line); cursor: pointer; }
label.lv-action:last-of-type { border-bottom: 0; }
.lv-action input { accent-color: var(--mint-dark); width: 18px; height: 18px; }
.lv-count { font-variant-numeric: tabular-nums; font-weight: 500; }
.lv-actions > p { margin: 8px 0 0; }
.lv-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.lv-results > div { background: var(--support); border-radius: var(--radius-sm); padding: 12px 14px; }
.lv-results dt { font-size: 13px; color: var(--navy-soft); }
.lv-results dd { margin: 2px 0 0; font-size: 22px; line-height: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lv-results .lv-highlight { background: var(--mint-tint); }
.lv-results .lv-highlight dd { color: var(--mint-dark); }
@media (max-width: 900px) {
    .lv-grid { grid-template-columns: 1fr; }
    .lv-fields { grid-template-columns: 1fr 1fr; }
}

/* KPI-tegels: titels, waarden, verschil en vergelijking op één lijn (subgrid) */
.kpis { grid-auto-rows: auto; }
.kpi { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 4px; align-content: start; }
.kpi .name { margin-bottom: 0; }
.kpi .delta, .kpi .target { margin-top: 0; }
.kpi .delta:empty, .kpi .target:empty { min-height: 1px; }
.segmented-sm button { padding: 4px 12px; font-size: 13px; }
.segmented button:disabled { opacity: .4; cursor: default; }
.tt-compare { color: var(--navy-soft); }
.card-head { row-gap: 10px; }

/* Vragen */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.question-form { display: grid; gap: 12px; margin-bottom: 20px; }
.question-form .field { display: flex; flex-direction: column; }
.question-form label { margin: 0 0 6px; font-size: 13px; color: var(--navy-soft); font-weight: 500; }
.qf-row { display: grid; grid-template-columns: 220px 1fr; gap: 12px; }
.question-form .btn { justify-self: start; }
.question-form input[type=text], .question-form textarea, .q-reply textarea {
    font: 400 15px/22px "DM Sans", sans-serif; color: var(--navy); width: 100%;
    padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white);
}
.question-form input[type=text]:focus, .question-form textarea:focus, .q-reply textarea:focus { border-color: var(--mint); outline: none; box-shadow: 0 0 0 3px var(--mint-tint); }
.question-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.question { border-bottom: 1px solid var(--line); scroll-margin-top: 72px; }
.question summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 14px 0; cursor: pointer; list-style: none; }
.question summary::-webkit-details-marker { display: none; }
.question summary::before { content: "›"; font-size: 18px; color: var(--navy-soft); transition: transform .15s; }
.question details[open] summary::before { transform: rotate(90deg); }
.q-subject { font-weight: 700; }
.q-status { margin-left: auto; font-size: 12px; font-weight: 500; padding: 0 10px; border-radius: 50px; line-height: 22px; }
.q-open { background: #fff4e5; color: #9a5b00; }
.q-answered { background: var(--mint-tint); color: var(--mint-dark); }
.q-closed { background: var(--support); color: var(--navy-soft); }
.q-thread { list-style: none; margin: 0 0 12px; padding: 0 0 0 22px; display: grid; gap: 10px; }
.q-thread li { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--support); max-width: 75ch; }
.q-thread li.from-team { background: var(--mint-tint); }
.q-author { margin-bottom: 4px; }
.q-reply { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: start; padding: 0 0 16px 22px; }
@media (max-width: 767px) {
    .qf-row { grid-template-columns: 1fr; }
    .q-reply { grid-template-columns: 1fr; }
}

/* Mediabudget */
.media h3 { margin: 8px 0 12px; }
.media-now { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; }
.media-history-title { margin-top: 24px !important; }
@media (max-width: 767px) { .media-now { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Knoppen in de donkere kop */
.btn-ghost { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.35); font-weight: 500; font-size: 14px; padding: 8px 14px; }
.btn-ghost:hover, .btn-ghost:focus-visible { background: rgba(255,255,255,.1); color: var(--white); }
.js-only { display: none; }
.js .js-only { display: inline-block; }
.print-only { display: none; }

/* Tosti-donderdag: klein en vriendelijk, nooit in de weg */
.footer .tosti { flex: 1 1 300px; max-width: 460px; padding: 18px 20px; box-shadow: none; border: 1px dashed var(--line); background: #fffdf6; }
.tosti-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.tosti-icon { width: 22px; height: 22px; }
.tosti .label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #9a5b00; }
.tosti-next { margin: 0 0 10px; font-size: 14px; line-height: 22px; color: var(--navy); }
.tosti-status { color: var(--mint-dark); margin: 0 0 8px; }
.tosti-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 13px; }
.tosti-actions summary { cursor: pointer; color: var(--mint-dark); }
.tosti-form { display: flex; gap: 8px; margin-top: 8px; }
.tosti-form input { flex: 1; min-width: 0; font: 400 14px/20px "DM Sans", sans-serif; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.tosti-form .btn { font-size: 13px; padding: 6px 12px; }
.tosti-book { color: var(--mint-dark); font-size: 13px; }

/* Afdrukken en opslaan als pdf */
@media print {
    @page { size: A4; margin: 14mm 12mm; }
    html { scroll-behavior: auto; }
    body { background: #fff; font-size: 12px; line-height: 18px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .topbar, .subnav, .toolbar, #print-button, .table-tools, .campaign-filter, .question-form, .q-reply,
    #chart-view, .chart-title nav, #chart-tabs, .lv-inputs, .tosti, .footer .contact-card, .js-only,
    .questions, .analysis.draft { display: none !important; }
    .print-only { display: block; }
    .hero { background: #fff; color: var(--navy); padding: 0; border: 0; }
    .hero h1, .hero .page-head .sub, .hero .muted { color: var(--navy); }
    .hero .page-head { padding: 0 0 8px; border-bottom: 2px solid var(--navy); margin-bottom: 12px; }
    .print-meta { font-size: 10px; color: var(--navy-soft); margin: 0 0 4px; }
    main.wrap, .wrap { max-width: none; padding: 0; }
    .card { box-shadow: none; border: 1px solid var(--line); padding: 12px 14px; break-inside: avoid; page-break-inside: avoid; }
    .grid { gap: 10px; margin-bottom: 10px; }
    .kpis { grid-template-columns: repeat(3, 1fr); }
    .kpi .value { font-size: 20px; line-height: 26px; }
    h2 { font-size: 15px; line-height: 20px; }
    .chart { height: 240px; }
    .data-table { font-size: 10.5px; }
    td, th { padding: 4px 6px; }
    .data-table tbody tr { break-inside: avoid; }
    .table-wrap { overflow: visible; }
    .lv-grid { grid-template-columns: 1fr; }
    a { color: inherit; text-decoration: none; }
    .footer { padding: 12px 0 0; }
}
