/* ============================================================
   EXTERUS × HILLBROOK, tijdelijke co-brand identiteit (Brandbook, november 2026)
   Primair:      Hillbrook Blue #0B1E60 · Exterus Orange #ED6D24
   Ondersteunend: Exterus Beige #F2F0E4 · Exterus Midnight #161A24 · Mist Blue #E7E9EF · White
   Tinten Hillbrook Blue: 80% #3C4B80 · 60% #6D78A0 · 40% #9DA5BF · 20% #CED2DF · 10% #E7E9EF
   Typografie: Heebo (primair), Arial (systeem/fallback). Koppen in Hillbrook Blue, tekst in Midnight,
   oranje als accent; hoofdletters alleen voor korte pretitels en CTA-labels.
   Motief: de schuine Hillbrook-streep en een korte oranje accentlijn.
   ============================================================ */
:root {
  --green:      #0B1E60;   /* (oude naam) = Hillbrook Blue */
  --teal:       #3C4B80;   /* (oude naam) = Hillbrook Blue 80% */
  --teal-600:   #0b1e6080;
  --orange:     #ED6D24;   /* EXTERUS Orange */
  --orange-dark:#cf5717;
  --amber:      #FD9F02;   /* Extra Orange / Amber */
  --beige:      #F2F0E4;
  --navy:       #0B1E60;   /* Hillbrook Blue */
  --mist:       #E7E9EF;   /* Mist Blue */
  --blue-80:    #3C4B80;
  --blue-60:    #6D78A0;
  --blue-40:    #9DA5BF;
  --blue-20:    #CED2DF;
  --navy-deep:  #08174B;
  --blue:       #3C4B80;
  --midnight:   #161A24;

  --bg:         #F2F0E4;   /* Exterus Beige */
  --surface:    #ffffff;
  --surface-2:  #faf8f2;
  --sidebar:    #0B1E60;   /* Hillbrook Blue */
  --sidebar-2:  #102470;
  --text:       #161A24;
  --muted:      #6b7280;
  --muted-2:    #9aa3ad;
  --border:     #e7e3d6;
  --border-2:   #efece1;

  --pos:        #3C4B80;
  --neg:        #c0492f;

  --radius:     16px;
  --radius-sm:  11px;
  --shadow:     0 1px 2px rgba(11,30,96,.05), 0 4px 14px rgba(11,30,96,.06);
  --shadow-lg:  0 18px 50px rgba(7,20,68,.22);
  --shadow-orange: 0 8px 20px rgba(237,109,36,.28);

  font-family: 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; max-width: 100%; }
body { background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
/* Voorkom horizontale paginascroll: flex-item en grid-kolommen mogen krimpen onder hun inhoud */
.main { min-width: 0; }
.grid > * { min-width: 0; }
[x-cloak] { display: none !important; }
a { color: var(--teal); }

/* ---------- Layout ---------- */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: 254px; background: linear-gradient(165deg, #0B1E60 0%, #08174B 45%, #071444 100%); color: #e7e9ef;
  display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; height: 100vh;
  overflow: hidden; z-index: 20;
}
/* Hillbrook-streep als watermerk in de sidebar */
.sidebar::before {
  content: ""; position: absolute; right: -60px; top: -40px; width: 340px; height: 120%;
  background:
    linear-gradient(117deg, transparent 49.7%, rgba(242,239,227,.10) 49.7% 50.1%, transparent 50.1%),
    linear-gradient(117deg, transparent 62.6%, rgba(237,109,36,.16) 62.6% 62.9%, transparent 62.9%);
  pointer-events: none;
}
.sidebar::after {
  content: ""; position: absolute; left: -120px; bottom: -80px; width: 260px; height: 260px;
  background: radial-gradient(circle at 40% 40%, rgba(11,30,96,.4), transparent 60%);
  pointer-events: none;
}

.brand { padding: 26px 20px 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; position: relative; z-index: 2; }
.brand-logo { width: 100%; max-width: 206px; height: auto; display: block; filter: drop-shadow(0 6px 18px rgba(0,0,0,.25)); }
.brand-mark { display: none; width: 38px; height: 38px; }
.brand .brand-dept { font-size: 10.5px; letter-spacing: 1.8px; text-transform: uppercase; color: #9da5bf; font-weight: 700;
  padding: 4px 10px; border: 1px solid rgba(242,239,227,.14); border-radius: 999px; background: rgba(255,255,255,.04); }
.brand .mark { width: 40px; height: 40px; flex: none; filter: drop-shadow(0 3px 8px rgba(237,109,36,.35)); }
.brand .wordmark { font-size: 23px; font-weight: 800; letter-spacing: -.5px; color: var(--beige); line-height: 1; }
.brand .wordmark .x { color: var(--orange); }
.brand .tag { font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase; color: #9da5bf; margin-top: 3px; font-weight: 600; }

/* Afdelingsschakelaar */
.dept-switch { display: flex; gap: 4px; margin: 6px 14px 0; padding: 4px; background: rgba(255,255,255,.06); border-radius: 11px; position: relative; z-index: 2; }
.dept-switch button {
  flex: 1; border: none; background: none; color: #ced2df; padding: 8px 6px; border-radius: 8px;
  cursor: pointer; font-size: 13px; font-weight: 700; font-family: inherit; transition: .16s; letter-spacing: .2px;
}
.dept-switch button:hover { color: #fff; }
.dept-switch button.active { background: var(--beige); color: var(--green); box-shadow: 0 2px 6px rgba(0,0,0,.15); }

.nav { padding: 14px 12px; flex: 1; overflow-y: auto; position: relative; z-index: 2; }

/* HubSpot pijplijn */
.hs-stage { display: grid; grid-template-columns: 220px 1fr 120px; align-items: center; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--border-2); }
.hs-stage:last-child { border-bottom: none; }
.hs-stage-lbl { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.hs-track { height: 16px; background: #eceadf; border-radius: 999px; overflow: hidden; }
.hs-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--teal), var(--amber)); transition: width .6s; min-width: 3px; }
.hs-fill.won { background: linear-gradient(90deg, #16a34a, #4ade80); }
.hs-fill.lost { background: #cbc7ba; }
.hs-val { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }

/* Leads inzicht-chips */
.lead-insight { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.li-chip { display: inline-flex; align-items: center; gap: 7px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 13px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--muted); transition: .14s; text-transform: capitalize; }
.li-chip:hover { border-color: var(--teal); color: var(--text); }
.li-chip.active { background: var(--teal); color: #fff; border-color: var(--teal); }
.li-chip b { font-weight: 800; }
.li-chip .dot { width: 9px; height: 9px; }

/* Periode-selector (segmented) */
.period-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: none; background: none; padding: 7px 13px; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--muted); font-family: inherit; transition: .14s; white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button.active { background: var(--teal); color: #fff; box-shadow: var(--shadow); }

/* Trendgrafieken */
svg.trend { width: 100%; height: 160px; display: block; }
svg.trend.sm { height: 120px; }
svg.trend .line { fill: none; stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
svg.trend.fill { height: 100%; }
svg.trend .grid { stroke: rgba(22, 26, 36, .09); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 3 4; }

/* Interactieve grafiek: y-as + hover-tooltip per punt */
.chartbox { display: flex; gap: 8px; }
.chartbox .ylab { flex: 0 0 46px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; font-size: 10px; font-weight: 700; color: var(--muted-2); padding: 1px 2px 1px 0; white-space: nowrap; }
.chartbox .plot { position: relative; flex: 1; min-width: 0; cursor: crosshair; }
.hovline { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed rgba(22, 26, 36, .3); pointer-events: none; }
.hovdot { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 2.5px solid var(--teal); transform: translate(-50%, -50%); pointer-events: none; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.hovtip { position: absolute; background: var(--midnight); color: #fff; padding: 5px 11px; border-radius: 8px; font-size: 11px; line-height: 1.5; white-space: nowrap; pointer-events: none; z-index: 6; box-shadow: 0 4px 14px rgba(0, 0, 0, .28); }
.hovtip .d { color: rgba(255, 255, 255, .62); font-size: 10px; font-weight: 600; }
.hovtip .v { font-weight: 800; font-size: 13px; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.chart-title { font-size: 12px; font-weight: 700; letter-spacing: .4px; color: var(--muted); }
.chart-val { font-size: 22px; font-weight: 800; color: var(--midnight); letter-spacing: -.5px; }
.chart-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted-2); margin-top: 8px; }

/* Breadcrumb (Google Ads drill-down) */
.crumbs { display: flex; align-items: center; gap: 8px; margin: 4px 0 16px; font-size: 14px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--teal); }
.crumbs a.active, .crumbs .active { color: var(--midnight); font-weight: 800; }
.crumbs .sep { color: var(--muted-2); margin: 0 2px; }

.crumb-back { color: var(--teal); text-decoration: none; font-weight: 700; }
.crumb-back:hover { color: var(--orange); }
.linklike { cursor: pointer; border-bottom: 1px dashed transparent; }
.linklike:hover { color: var(--teal); border-bottom-color: var(--teal); }

/* Klikbare rijen */
tr.clickable { cursor: pointer; }
tr.clickable:hover { background: rgba(11,30,96,.06); }
td.chev { color: var(--muted-2); font-weight: 800; font-size: 18px; text-align: right; width: 24px; }
tr.clickable:hover td.chev { color: var(--orange); }

/* Sub-tabs (bv. Instellingen) */
.subtabs { display: flex; gap: 6px; margin-bottom: 22px; border-bottom: 2px solid var(--border); }
.subtabs button {
  border: none; background: none; padding: 10px 16px; cursor: pointer; font-size: 14px; font-weight: 700;
  color: var(--muted); font-family: inherit; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: .16s;
}
.subtabs button:hover { color: var(--text); }
.subtabs button.active { color: var(--teal); border-bottom-color: var(--orange); }
.nav .nav-label { font-size: 10.5px; letter-spacing: 1.4px; text-transform: uppercase; color: #6d78a0; padding: 6px 14px 8px; font-weight: 700; }
.nav button {
  width: 100%; text-align: left; background: none; border: none; color: #ced2df;
  padding: 11px 14px; border-radius: 11px; cursor: pointer; font-size: 14px; font-weight: 500;
  display: flex; align-items: center; gap: 12px; margin-bottom: 3px; transition: .16s; position: relative;
}
.nav button:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav button.active { background: linear-gradient(90deg, var(--orange), #f0803f); color: #fff; font-weight: 700; box-shadow: var(--shadow-orange); }
.nav button.active .ico { transform: scale(1.05); }
.nav .ico { width: 20px; text-align: center; font-size: 16px; transition: .16s; }
/* Submenu (bv. HubSpot > Leads / Deals) */
.nav-sub { margin: -1px 0 6px 22px; padding-left: 8px; border-left: 1px solid rgba(255,255,255,.12); }
.nav .nav-sub button { padding: 8px 12px; font-size: 13.5px; margin-bottom: 2px; }
.nav .nav-sub .ico { font-size: 14px; }
.nav button.has-sub.open:not(.active) { color: #fff; font-weight: 600; }

.sidebar-foot { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12.5px; color: #9da5bf; position: relative; z-index: 2; }
.sidebar-foot .who { color: #e7e9ef; font-weight: 600; }
.sidebar-foot a { color: var(--amber); text-decoration: none; font-weight: 600; }
.sidebar-foot a:hover { color: #ffb733; }

.main { margin-left: 254px; flex: 1; padding: 30px 40px 70px; max-width: 1560px; }

/* ---------- Page header ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 26px; gap: 16px; flex-wrap: wrap; }
.pretitle { font-size: 11.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--teal); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pretitle::after { content: ""; width: 46px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--amber), transparent); }
.page-head h1 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.8px; color: var(--navy); }
.page-head p { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; }

/* ---------- Buttons ---------- */
.btn {
  background: var(--orange); color: #fff; border: none; padding: 10px 18px; border-radius: 11px;
  cursor: pointer; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px;
  transition: .16s; box-shadow: var(--shadow-orange); font-family: inherit;
}
.btn:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.secondary { background: var(--surface); color: var(--midnight); border: 1px solid var(--border); box-shadow: var(--shadow); }
.btn.secondary:hover { background: var(--surface-2); border-color: #d9d3c2; }
.btn.ghost { background: none; color: var(--muted); border: 1px solid transparent; padding: 6px 10px; box-shadow: none; }
.btn.ghost:hover { background: var(--surface-2); color: var(--midnight); }
.btn.danger { background: var(--neg); box-shadow: none; }
.btn.danger:hover { background: #a23c26; }
.btn.sm { padding: 6px 12px; font-size: 12.5px; border-radius: 9px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Cards & grid ---------- */
.grid { display: grid; gap: 18px; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px 22px; transition: .18s;
}
.card.hover:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(7,20,68,.12); }
.card.pad-lg { padding: 26px 28px; }

/* KPI */
.kpi { position: relative; overflow: hidden; }
.kpi .label { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; }
.kpi .value { font-size: 30px; font-weight: 800; margin-top: 8px; letter-spacing: -1px; color: var(--midnight); line-height: 1.05; }
.kpi .sub { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.kpi .value.pos { color: var(--teal); }
.kpi .value.neg { color: var(--neg); }
.kpi-ico { position: absolute; right: 18px; top: 18px; width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; background: rgba(11,30,96,.1); }
.kpi.accent-orange .kpi-ico { background: rgba(237,109,36,.12); }
.kpi.accent-amber .kpi-ico { background: rgba(253,159,2,.14); }

/* Hero KPI (omzet) */
.kpi-hero {
  background: linear-gradient(135deg, var(--green) 0%, #1a2d75 60%, var(--teal) 130%);
  color: var(--beige); border: none; position: relative; overflow: hidden;
}
.kpi-hero::before {
  content: ""; position: absolute; right: -40px; top: -30px; width: 200px; height: 200px;
  background: linear-gradient(133deg, transparent 49.7%, rgba(242,239,227,.10) 49.7% 50%, transparent 50%), linear-gradient(133deg, transparent 63%, rgba(237,109,36,.28) 63% 63.35%, transparent 63.35%);
}
.kpi-hero .label { color: #9da5bf; }
.kpi-hero .value { color: #fff; font-size: 34px; }
.kpi-hero .sub { color: #ced2df; }
.kpi-hero .kpi-ico { background: rgba(255,255,255,.12); }

.section-title { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--teal); margin: 34px 0 14px; display: flex; align-items: center; gap: 10px; }
.section-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--border), transparent); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .7px; color: var(--muted-2); padding: 12px 14px; border-bottom: 2px solid var(--border); white-space: nowrap; font-weight: 700; }
td { padding: 13px 14px; border-bottom: 1px solid var(--border-2); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tbody tr { transition: .12s; }
tbody tr:hover { background: var(--surface-2); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.row-actions { display: flex; gap: 5px; justify-content: flex-end; opacity: .25; transition: .15s; }
tr:hover .row-actions { opacity: 1; }

/* ---------- Badges & pills ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.gepland    { background: rgba(11,30,96,.1); color: #0b1e60; }
.badge.actief     { background: rgba(253,159,2,.16); color: #b5730a; }
.badge.gepauzeerd { background: #f3efe2; color: #8a7a4a; }
.badge.afgerond   { background: #eceef0; color: #55606b; }
.badge.prospect   { background: rgba(237,109,36,.12); color: var(--orange-dark); }
.badge.inactief   { background: #eceef0; color: #78828d; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); font-size: 12px; font-weight: 600; color: #55606b; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; vertical-align: middle; }

/* Rol-badges */
.badge.role-beheerder            { background: rgba(11,30,96,.14); color: #0b1e60; }
.badge.role-marketing_manager    { background: rgba(11,30,96,.14); color: #0b1e60; }
.badge.role-marketing_medewerker { background: rgba(11,30,96,.09); color: #6d78a0; }
.badge.role-sales_manager        { background: rgba(237,109,36,.14); color: var(--orange-dark); }
.badge.role-sales_medewerker     { background: rgba(253,159,2,.16); color: #b5730a; }

/* Inline selects in leads-tabel */
select.lead-status, select.owner-select {
  padding: 6px 9px; font-size: 12.5px; font-weight: 600; border-radius: 8px; max-width: 190px;
  background: var(--surface-2); cursor: pointer;
}
select.lead-status { text-transform: capitalize; }
select.lead-status.st-gewonnen { color: #0b1e60; border-color: var(--teal); background: rgba(11,30,96,.08); }
select.lead-status.st-verloren { color: var(--neg); border-color: #e2b3a8; background: rgba(192,73,47,.06); }
select.lead-status.st-nieuw    { color: var(--orange-dark); border-color: #f0c3a6; background: rgba(237,109,36,.06); }

.roi.pos { color: var(--teal); font-weight: 800; }
.roi.neg { color: var(--neg); font-weight: 800; }
.stars { color: var(--amber); letter-spacing: 2px; }
.muted { color: var(--muted); }
.right { text-align: right; }
.center { text-align: center; }

/* ---------- Progress ---------- */
.progress { height: 9px; background: #eceadf; border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--amber)); border-radius: 999px; transition: width .5s; }
.progress.big { height: 14px; }

/* ---------- Bar chart ---------- */
.bar-chart { display: flex; align-items: flex-end; gap: 16px; height: 240px; padding-top: 18px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 9px; height: 100%; justify-content: flex-end; }
.bar-track { position: relative; width: 100%; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.bar-target { position: absolute; left: 6%; right: 6%; border-top: 2px dashed var(--orange); z-index: 3; }
.bar-target::after { content: attr(data-lbl); position: absolute; right: 0; top: -16px; font-size: 9.5px; color: var(--orange-dark); font-weight: 700; }
.bar-fill { width: 100%; max-width: 56px; border-radius: 8px 8px 0 0; background: linear-gradient(180deg, var(--teal), var(--green)); transition: height .5s; min-height: 3px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.bar-fill.current { background: linear-gradient(180deg, var(--orange), var(--orange-dark)); }
.bar-label { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.bar-value { font-size: 11.5px; color: var(--midnight); font-weight: 800; }
.legend { display: flex; gap: 18px; margin-top: 14px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.legend b { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: middle; margin-right: 6px; }

/* ---------- Forms / modal ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(7,20,68,.55); backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center; padding: 44px 16px; z-index: 60; overflow-y: auto; }
.modal { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); width: 100%; max-width: 640px; overflow: hidden; }
.modal-head { padding: 20px 26px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; background: var(--surface-2); }
.modal-head h3 { margin: 0; font-size: 19px; font-weight: 800; color: var(--midnight); }
.modal-body { padding: 24px 26px; max-height: 66vh; overflow-y: auto; }
.modal-foot { padding: 16px 26px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; align-items: center; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { font-size: 12.5px; font-weight: 700; color: #3c4650; }
input, select, textarea {
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 14px; font-family: inherit;
  background: var(--surface); color: var(--text); width: 100%; transition: .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(11,30,96,.15); }
input[type=color] { padding: 4px; height: 42px; }
textarea { resize: vertical; min-height: 70px; }
.hint { font-size: 12px; color: var(--muted); }
.hint code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; border: 1px solid var(--border); }

/* ---------- Toolbar ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar input[type=search], .toolbar select { max-width: 250px; }
.spacer { flex: 1; }
.count-chip { background: var(--surface); border: 1px solid var(--border); border-radius: 9px; padding: 7px 12px; font-size: 12.5px; color: var(--muted); font-weight: 600; box-shadow: var(--shadow); }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 24px; right: 24px; background: var(--midnight); color: #fff; padding: 14px 20px; border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 100; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 10px; border-left: 4px solid var(--teal); }
.toast.err { border-left-color: var(--neg); }

/* ---------- Empty ---------- */
.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.spin { display: inline-block; animation: spin 1.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty .big { font-size: 44px; margin-bottom: 10px; opacity: .8; }

/* ---------- Integrations ---------- */
.integ { display: flex; align-items: center; gap: 16px; }
.integ .ilogo { width: 48px; height: 48px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; font-size: 18px; flex: none; box-shadow: var(--shadow); }
.integ .imeta { flex: 1; }
.integ .imeta strong { font-size: 15px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.status-dot.on { background: var(--teal); box-shadow: 0 0 0 3px rgba(11,30,96,.15); }
.status-dot.off { background: #c9c3b2; }
.status-dot.err { background: var(--neg); }

/* channel card mini */
.chan-card { position: relative; overflow: hidden; }
.chan-card .barline { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; }

@media (max-width: 900px) {
  .sidebar { width: 68px; }
  .brand-logo, .brand .brand-dept { display: none; } .brand-mark { display: block; } .brand { align-items: center; }
  .brand .wordmark, .brand .tag, .nav button span.lbl, .nav .nav-label, .sidebar-foot, .dept-switch { display: none; }
  .brand { justify-content: center; padding: 20px 0; }
  .nav button { justify-content: center; padding: 12px 0; }
  .nav-sub { margin-left: 0; padding-left: 0; border-left: none; }
  .nav .nav-sub button { padding: 9px 0; }
  .filter-grid { grid-template-columns: 1fr 1fr; }
  .main { margin-left: 68px; padding: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 24px; }
}

/* ---------- HubSpot: filters, opvolging, deals-bord ---------- */
.hs-lbl { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 11px; padding: 4px; box-shadow: var(--shadow); }
.seg button { border: none; background: none; padding: 7px 13px; border-radius: 8px; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; transition: .15s; }
.seg button:hover:not(:disabled) { color: var(--text); background: var(--surface-2); }
.seg button.active { background: var(--teal); color: #fff; }
.seg button:disabled { opacity: .45; cursor: not-allowed; }
.filter-card { padding: 16px 18px; }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px 14px; align-items: end; }
.filter-grid label { display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.filter-grid input, .filter-grid select { padding: 8px 10px; font-size: 13.5px; text-transform: none; letter-spacing: 0; }
.filter-grid label:first-child { grid-column: span 2; }
.filter-reset { display: flex; align-items: center; min-height: 38px; }
table.sortable th { cursor: pointer; user-select: none; }
table.sortable th:hover { color: var(--teal); }
.follow { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.follow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.follow.ok    { background: rgba(22,163,74,.1);  color: #15803d; }
.follow.warn  { background: rgba(253,159,2,.16); color: #b5730a; }
.follow.late  { background: rgba(192,73,47,.1);  color: var(--neg); }
.follow.never { background: #eceef0; color: #6b7280; }
.pill.st-gewonnen { background: rgba(22,163,74,.1); border-color: rgba(22,163,74,.25); color: #15803d; }
.pill.st-verloren { background: #f1efe9; color: #8a8f96; text-decoration: line-through; }
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; padding: 14px 0 4px; font-size: 13px; color: var(--muted); font-weight: 600; }
.hs-stage.clickable { cursor: pointer; border-radius: 8px; }
.hs-stage.clickable:hover { background: var(--surface-2); }
.board { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px; align-items: flex-start; }
.board-col { flex: 0 0 270px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px; max-height: 75vh; overflow-y: auto; border-top: 4px solid var(--teal); }
.board-col.won { border-top-color: #16a34a; }
.board-col.lost { border-top-color: #cbc7ba; }
.board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 4px 4px 10px; font-size: 13.5px; position: sticky; top: -10px; background: var(--surface-2); z-index: 1; }
.board-val { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 13px; color: var(--green); }
.deal-card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: .15s; }
.deal-card:hover { border-color: var(--teal); transform: translateY(-1px); }
.dc-name { font-weight: 700; font-size: 13.5px; line-height: 1.3; }
.dc-company { font-size: 12px; margin-top: 2px; }
.dc-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 7px; font-size: 12px; }
.table-wrap td.num, .table-wrap .pill, .follow { white-space: nowrap; }
.seg-n { font-size: 11px; font-weight: 700; opacity: .65; margin-left: 2px; }
.seg button.active .seg-n { opacity: .85; }

/* Google Ads: kosten per maand */
table.ga-month th, table.ga-month td { padding: 10px 9px; font-size: 13px; }
table.ga-month td:first-child { min-width: 220px; }
table.ga-month tfoot td { border-top: 2px solid var(--border); background: var(--surface-2); }
.ga-stale { background: rgba(253,159,2,.14); border: 1px solid rgba(253,159,2,.4); color: #8a5a06; border-radius: 11px;
            padding: 11px 14px; font-size: 13px; margin-bottom: 14px; }

/* Marketing-dashboard: maandtrend */
.seg-select { border: none; background: none; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--text);
              padding: 6px 8px; width: auto; box-shadow: none; cursor: pointer; }
.seg-select:focus { box-shadow: none; }
.mtrend { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; align-items: end; height: 210px; }
.mt-col { display: flex; flex-direction: column; align-items: center; height: 100%; border: none; background: none;
          cursor: pointer; padding: 4px 0; border-radius: 10px; font-family: inherit; transition: .15s; }
.mt-col:hover { background: var(--surface-2); }
.mt-col.active { background: rgba(237,109,36,.09); box-shadow: inset 0 0 0 1px rgba(237,109,36,.35); }
.mt-val { font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 4px; white-space: nowrap; }
.mt-bar { flex: 1; width: 62%; display: flex; flex-direction: column; justify-content: flex-end; }
.mt-bar > div { width: 100%; min-height: 0; }
.mt-ga { background: var(--orange); border-radius: 6px 6px 0 0; }
.mt-camp { background: linear-gradient(180deg, var(--teal), var(--green)); }
.mt-bar > div:last-child { border-radius: 0 0 4px 4px; }
.mt-lbl { font-size: 11.5px; font-weight: 700; color: var(--muted); margin-top: 6px; text-transform: capitalize; }
.mt-col.active .mt-lbl { color: var(--orange-dark); }
.tfoot-total td { border-top: 2px solid var(--border); background: var(--surface-2); }

.ga-cov { margin: -8px 0 14px; color: #8a5a06; }

.origin-tag { font-size: 12.5px; font-weight: 600; white-space: nowrap; }

.bel-tag { display: inline-block; font-size: 11.5px; font-weight: 700; color: #0b1e60; background: rgba(11,30,96,.1);
           border-radius: 6px; padding: 2px 7px; margin-right: 4px; white-space: nowrap; }
.hs-link-line { font-size: 11.5px; color: var(--teal); font-weight: 600; margin-top: 2px; }
.hs-camp { border-left: 4px solid #ff7a59; }
input:disabled { background: var(--surface-2); color: var(--muted); }

/* ================= Managementrapportages ================= */
.rep-form { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.rep-form > label { display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); min-width: 190px; }
.rep-form select { text-transform: none; }
.rep-checks { display: flex; gap: 14px; align-items: center; padding-bottom: 10px; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer; }
.chk input { width: auto; }
.rep-pill { margin-right: 4px; }
.rep-pill.rep-marketing { background: rgba(11,30,96,.1); color: #0b1e60; border-color: rgba(11,30,96,.25); }
.rep-pill.rep-sales { background: rgba(237,109,36,.1); color: var(--orange-dark); border-color: rgba(237,109,36,.25); }

.report { background: #fff; max-width: 1060px; margin: 0 auto; border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; color: var(--midnight); }
.rep-cover { background: radial-gradient(120% 140% at 0% 0%, #1A2D75 0%, #0B1E60 45%, #071444 100%); color: #fff; padding: 44px 52px 36px; position: relative; overflow: hidden; }
.rep-cover::after { content: ""; position: absolute; right: -40px; top: -60px; width: 520px; height: 520px;
  background: linear-gradient(133deg, transparent 49.6%, rgba(242,239,227,.22) 49.6% 50%, transparent 50%),
              linear-gradient(133deg, transparent 64.6%, rgba(237,109,36,.55) 64.6% 65.1%, transparent 65.1%); }
.rep-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 34px; }
.rep-mark { width: 40px; height: 40px; }
.rep-logo { height: 54px; width: auto; display: block; }
.rep-wm { font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.rep-wm span { color: var(--orange); }
.rep-kicker { font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--amber); font-weight: 700; }
.rep-title { font-size: 44px; font-weight: 800; margin: 6px 0 14px; letter-spacing: -1px; text-transform: capitalize; }
.rep-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: #ced2df; }
.rep-toc { display: flex; gap: 10px; margin-top: 22px; }
.rep-toc span { background: rgba(255,255,255,.1); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 700; }

.rep-chapter { padding: 40px 52px 30px; }
.rep-chapter + .rep-chapter { border-top: 8px solid var(--beige); }
.rep-ch-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.rep-ch-no { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; font-weight: 800; color: #fff; background: var(--teal); }
.rep-sales .rep-ch-no { background: var(--orange); }
.rep-ch-kicker { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.rep-ch-head h2 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.5px; }
.rep-chapter h3 { font-size: 15px; font-weight: 800; color: var(--teal); margin: 30px 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--beige); }
.rep-sales h3 { color: var(--orange-dark); }

.rep-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.rep-kpi { border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; background: var(--surface-2); }
.rep-kpi .l { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 700; }
.rep-kpi .v { font-size: 26px; font-weight: 800; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.rep-kpi .d { font-size: 12px; color: var(--muted); }
.rep-kpi.hero { background: var(--green); border-color: var(--green); color: #fff; }
.rep-sales .rep-kpi.hero { background: linear-gradient(135deg, var(--orange), #f0803f); border-color: var(--orange); }
.rep-kpi.hero .l, .rep-kpi.hero .d { color: rgba(255,255,255,.75); }
.rep-kpi .pos { color: #15803d; font-weight: 800; } .rep-kpi .neg { color: var(--neg); font-weight: 800; }
.rep-kpi.hero .pos, .rep-kpi.hero .neg { color: #fff; }
.rep-split { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.rep-split b { color: var(--midnight); margin-left: 4px; }

.rep-table { width: 100%; border-collapse: collapse; font-size: 12.8px; }
.rep-table th { background: var(--beige); color: var(--green); font-size: 10.5px; text-transform: uppercase; letter-spacing: .6px; padding: 8px 10px; text-align: left; border: none; }
.rep-table td { padding: 7px 10px; border-bottom: 1px solid var(--border-2); vertical-align: top; }
.rep-table tfoot td { border-top: 2px solid var(--border); background: var(--surface-2); }
.rep-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rep-table .neg { color: var(--neg); font-weight: 700; }
.nowrap { white-space: nowrap; } .small { font-size: 11.5px; }

.rep-grid2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; }
.rep-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.rep-note { background: var(--surface-2); border-left: 4px solid var(--teal); border-radius: 10px; padding: 14px 16px; font-size: 13.5px; line-height: 1.55; }
.rep-sub { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.rep-bar-row { display: grid; grid-template-columns: 170px 1fr 110px; gap: 10px; align-items: center; padding: 4px 0; font-size: 12.8px; }
.rep-grid3 .rep-bar-row { grid-template-columns: 110px 1fr 34px; }
.rep-bar-row .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.rep-bar-row .bar { height: 10px; background: #eceadf; border-radius: 999px; overflow: hidden; }
.rep-bar-row .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--green)); border-radius: 999px; }
.rep-bar-row .bar.orange i { background: linear-gradient(90deg, var(--amber), var(--orange)); }
.rep-bar-row .val { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; white-space: nowrap; }
.rep-pipe { border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; }
.rep-pipe-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; font-size: 13.5px; }
.rep-pipe-head .muted { font-size: 12px; }

.rep-trend { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; height: 190px; align-items: end; }
.rt-col { display: flex; flex-direction: column; align-items: center; height: 100%; border-radius: 8px; padding: 4px 0; }
.rt-col.cur { background: rgba(237,109,36,.08); }
.rt-v { font-size: 10.5px; font-weight: 700; color: var(--muted); margin-bottom: 3px; white-space: nowrap; }
.rt-bar { flex: 1; width: 60%; display: flex; align-items: flex-end; }
.rt-bar i { display: block; width: 100%; background: linear-gradient(180deg, var(--teal), var(--green)); border-radius: 5px 5px 2px 2px; }
.rep-trend.orange .rt-bar i { background: linear-gradient(180deg, var(--amber), var(--orange)); }
.rt-l { font-size: 11px; font-weight: 700; margin-top: 5px; text-transform: capitalize; }
.rt-n { font-size: 10px; color: var(--muted); }
.rep-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 52px; background: var(--beige); font-size: 11.5px; color: var(--muted); }

@media (max-width: 900px) {
  .rep-kpis { grid-template-columns: 1fr 1fr; } .rep-grid2, .rep-grid3 { grid-template-columns: 1fr; }
  .rep-cover, .rep-chapter { padding-left: 22px; padding-right: 22px; }
}

/* Afdrukken / PDF: alleen het rapport, A4-vriendelijk */
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff !important; }
  .sidebar, .no-print, .toast, .modal-overlay { display: none !important; }
  .main { margin: 0 !important; padding: 0 !important; }
  .report { box-shadow: none; border-radius: 0; max-width: none; }
  .rep-cover, .rep-kpi.hero, .rep-ch-no, .rep-table th, .rep-bar-row .bar i, .rt-bar i, .rep-foot, .rt-col.cur
    { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rep-chapter { padding: 24px 8px; }
  .rep-sales { break-before: page; }
  .rep-table tr, .rep-pipe, .rep-kpi { break-inside: avoid; }
  .rep-chapter h3 { break-after: avoid; }
}

/* Campagne per periode */
.cper-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 15px; text-transform: capitalize; }
.cper-head .btn { text-transform: none; }
.cper-bar { display: inline-block; width: calc(var(--w) * .6); max-width: 60px; height: 8px; border-radius: 4px; background: var(--teal); opacity: .35; margin-right: 8px; vertical-align: middle; }
.subtabs .seg-n { margin-left: 4px; }

.sc-list { border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; background: var(--surface-2); }
.sc-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 4px 0; font-size: 13.5px; }
.sc-item + .sc-item { border-top: 1px solid var(--border-2); }

/* Conversies → HubSpot */
.conv-compare { display: grid; grid-template-columns: 1fr auto 1fr 1fr 1fr 1fr 1fr; gap: 12px; align-items: center; }
.cc-v.neg { color: var(--neg); }
.conv-compare > div:not(.cc-arrow) { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.cc-v { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cc-v.pos { color: #15803d; }
.cc-l { font-size: 12px; color: var(--muted); margin-top: 2px; }
.cc-arrow { font-size: 22px; color: var(--muted-2); font-weight: 800; }
.conv-kind { font-size: 12.5px; font-weight: 700; }
.conv-deal { font-size: 12.5px; }
.conv-deal a { color: var(--teal); font-weight: 600; text-decoration: none; }
.row-muted td { opacity: .6; }
.pill.st-open { background: rgba(253,159,2,.14); border-color: rgba(253,159,2,.35); color: #b5730a; }
@media (max-width: 900px) { .conv-compare { grid-template-columns: 1fr 1fr; } .cc-arrow { display: none; } }

/* Gebruikersrollen */
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.role-box { border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; background: var(--surface-2); display: flex; flex-direction: column; gap: 6px; }
.role-box.off { opacity: .45; }
.rb-t { font-weight: 800; font-size: 13.5px; margin-bottom: 2px; }
.role-box .chk { font-weight: 500; font-size: 13.5px; }
.role-box .chk .muted { font-size: 12px; }

.tcode { display: flex; align-items: center; gap: 6px; font-size: 12.5px; white-space: nowrap; }
.tcode b { font-family: Consolas, monospace; letter-spacing: 1px; font-size: 13.5px; }
.tcode-big { font-size: 40px; font-weight: 800; letter-spacing: 8px; color: var(--green); background: var(--beige);
             border-radius: 14px; padding: 16px; margin: 12px 0; font-variant-numeric: tabular-nums; }

/* ================= Afdelingskeuze (uitklaplijst) ================= */
.dept-pick { position: relative; margin: 6px 14px 0; z-index: 30; }
.dp-btn { width: 100%; display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1);
          color: #fff; border-radius: 11px; padding: 10px 12px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.dp-btn:hover { background: rgba(255,255,255,.12); }
.dp-lbl { flex: 1; text-align: left; }
.dp-chev { font-size: 11px; color: #9da5bf; transition: transform .15s; }
.dp-chev.up { transform: rotate(180deg); }
.dp-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: #0d2268; border: 1px solid rgba(255,255,255,.12);
           border-radius: 11px; overflow: hidden; box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.dp-list button { width: 100%; display: flex; align-items: center; gap: 10px; background: none; border: none; color: #e7e9ef;
                  padding: 10px 12px; font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.dp-list button:hover { background: rgba(255,255,255,.07); color: #fff; }
.dp-list button.active { background: var(--orange); color: #fff; font-weight: 700; }
@media (max-width: 900px) { .dept-pick { margin: 6px 6px 0; } .dp-lbl, .dp-chev { display: none; } .dp-btn { justify-content: center; padding: 10px 0; } }

/* ================= HR ================= */
.hr-bar { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; margin: 0 0 18px; }
.hr-bar label { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); min-width: 220px; }
.hr-bar select { text-transform: none; }
.hr-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; padding: 20px 24px; }
.hk { display: flex; gap: 14px; align-items: center; }
.hk-i { font-size: 28px; width: 44px; height: 44px; display: grid; place-items: center; background: var(--beige); border-radius: 12px; flex: none; }
.hk-l { font-size: 12.5px; color: var(--teal); font-weight: 700; }
.hk-v { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.15; }
.hk-g { display: flex; gap: 16px; margin-top: 2px; }
.hk-g small { display: block; font-size: 11px; color: var(--muted); }
.hk-g b { font-size: 22px; font-weight: 800; }
.hr-g3 { grid-template-columns: repeat(3, 1fr); margin-top: 18px; }
.hr-g2 { grid-template-columns: 1fr 1.6fr; margin-top: 18px; }
.hr-g2b { grid-template-columns: 1fr 2fr; margin-top: 18px; }
.donut-wrap { display: flex; align-items: center; gap: 18px; margin-top: 14px; }
.donut { width: 150px; height: 150px; border-radius: 50%; position: relative; flex: none; }
.donut::after { content: ""; position: absolute; inset: 28%; background: var(--surface); border-radius: 50%; }
.donut span { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; font-weight: 800; font-size: 20px; }
.donut-legend { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; min-width: 0; flex: 1; }
.donut-legend div { display: grid; grid-template-columns: 12px 1fr auto; gap: 8px; align-items: center; }
.donut-legend i { width: 11px; height: 11px; border-radius: 50%; }
.donut-legend span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.donut-legend b { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 700; }
.hbars { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.hbar { display: grid; grid-template-columns: 140px 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.hbar .l { display: flex; align-items: center; gap: 6px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hbar .b { height: 14px; background: #eceadf; border-radius: 999px; overflow: hidden; }
.hbar .b i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--green)); border-radius: 999px; }
.hbar .v { color: var(--muted); font-weight: 600; font-size: 12px; text-align: right; }
.hbar.big { grid-template-columns: 110px 1fr; }
.hbar.big .b { height: 34px; border-radius: 8px; }
.hbar.big .b i { border-radius: 8px; color: #fff; font-style: normal; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.hbar.big .b i.o { background: linear-gradient(90deg, var(--amber), var(--orange)); }
.hbar .sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.hbars .hbar:has(.sw) { grid-template-columns: 1fr auto; }
.stackbar { display: flex; height: 26px; border-radius: 8px; overflow: hidden; margin-top: 12px; background: #eceadf; }
.stackbar i { display: block; min-width: 2px; }
.hr-line { width: 100%; height: 170px; }
.hr-line path { fill: none; stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.hr-table th, .hr-table td { padding: 8px 10px; font-size: 13px; }
.hr-mbars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; height: 200px; align-items: end; }
.hm-col { display: flex; flex-direction: column; height: 100%; }
.hm-bars { flex: 1; display: flex; align-items: flex-end; gap: 3px; justify-content: center; }
.hm-bars i { display: block; width: 28%; max-width: 16px; border-radius: 4px 4px 1px 1px; min-height: 1px; }
.hm-l { text-align: center; font-size: 11.5px; font-weight: 700; color: var(--muted); margin-top: 6px; text-transform: capitalize; }
.hr-salary-box { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--surface-2); }
.role-grid { grid-template-columns: repeat(3, 1fr) !important; }
@media (max-width: 1100px) { .hr-g3, .hr-g2, .hr-g2b { grid-template-columns: 1fr; } .role-grid { grid-template-columns: 1fr !important; } }

.mt-btn { background: var(--green); }
.mt-btn:hover { background: #1a2d75; }

/* ================= Compliance / WWFT ================= */
.wwft-status { grid-template-columns: 1fr 1fr 1.2fr; }
.wwft-src { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; }
.ws-i { font-size: 26px; width: 44px; height: 44px; display: grid; place-items: center; background: var(--beige); border-radius: 12px; flex: none; }
.ws-l { font-size: 12px; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: .5px; }
.ws-v { font-size: 18px; font-weight: 800; margin: 2px 0; }
.ws-v.pos { color: #15803d; }
.wwft-counts { display: flex; gap: 16px; margin-top: 4px; flex-wrap: wrap; }
.wwft-counts span { font-size: 12px; color: var(--muted); display: flex; flex-direction: column; }
.wwft-counts b { font-size: 22px; font-weight: 800; color: var(--text); }
.wwft-counts b.pos { color: #15803d; } .wwft-counts b.neg { color: var(--neg); }
.json-pre { background: #0a1a55; color: #e7e9ef; border-radius: 10px; padding: 12px 14px; font-size: 12px; max-height: 260px; overflow: auto; white-space: pre-wrap; }
.code-ta { font-family: Consolas, monospace; font-size: 12px; min-height: 150px; }
.role-grid { grid-template-columns: repeat(2, 1fr) !important; }
@media (max-width: 1100px) { .wwft-status { grid-template-columns: 1fr; } }

.wwft-person{display:flex;gap:6px;align-items:center;margin-bottom:6px}
.wwft-person input{flex:1;min-width:0}
.wwft-person .chk{white-space:nowrap;font-size:12.5px}

.wiz-steps{display:flex;gap:4px;padding:0 22px 4px;flex-wrap:wrap}
.wiz-steps button{display:flex;align-items:center;gap:6px;border:0;background:transparent;padding:8px 10px;border-radius:10px;font:inherit;font-size:13px;color:var(--muted);cursor:pointer}
.wiz-steps button b{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--line, #e5e1d8);font-size:12px}
.wiz-steps button.active{color:var(--ink, #1a1a1a);font-weight:700}
.wiz-steps button.active b{background:var(--orange, #ED6D24);color:#fff}
.wiz-steps button.done b{background:var(--teal, #3C4B80);color:#fff}
.emp-list{max-height:300px;overflow-y:auto;border:1px solid var(--line, #e5e1d8);border-radius:10px}
.emp-item{display:flex;align-items:center;gap:10px;padding:9px 12px;border-bottom:1px solid var(--line, #eee);cursor:pointer;font-size:14px}
.emp-item:last-child{border-bottom:0}
.emp-item input{width:auto}
.emp-item.sel{background:rgba(237,109,36,.08);font-weight:700}

.type-cards{display:flex;gap:14px;flex-wrap:wrap}
.type-cards button{flex:1;min-width:170px;display:flex;flex-direction:column;align-items:center;gap:6px;padding:14px;border:2px solid var(--teal, #3C4B80);border-radius:10px;background:#fff;color:var(--teal, #3C4B80);font:inherit;font-size:13.5px;cursor:pointer;opacity:.75}
.type-cards button span{font-size:22px}
.type-cards button.sel{background:rgba(60,75,128,.1);font-weight:700;opacity:1}

/* performance-dashboard */
.dash-switch button { font-weight: 700; }
.perf-target .pt-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.perf-target .pt-big { font-size: 30px; font-weight: 800; color: var(--ink, #1a1a1a); line-height: 1.15; }
.pt-badge { padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.pt-badge.ok { background: rgba(60,75,128,.12); color: var(--teal); }
.pt-badge.behind { background: rgba(237,109,36,.12); color: var(--orange-dark, #c4561a); }
.pt-bar { position: relative; height: 16px; border-radius: 999px; background: var(--surface-2, #f1eee7); margin-top: 14px; overflow: visible; }
.pt-real { position: absolute; left: 0; top: 0; bottom: 0; background: var(--teal); border-radius: 999px 0 0 999px; }
.pt-fc { position: absolute; top: 0; bottom: 0; background: rgba(60,75,128,.3); }
.pt-exp { position: absolute; top: -5px; bottom: -5px; width: 3px; margin-left: -1px; background: var(--orange); border-radius: 2px; }
.pt-stats { grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 16px; }
.pt-stats > div { font-size: 12.5px; }
.pt-stats strong { display: block; font-size: 18px; margin: 2px 0; }
@media (max-width: 900px) { .pt-stats { grid-template-columns: 1fr 1fr; } }
.pt-need { margin-top: 14px; padding: 10px 14px; border-radius: 10px; background: rgba(237,109,36,.07); font-size: 13.5px; }
.perf-table tr.group td { background: var(--surface-2, #f7f5f0); }
.perf-table tr.total td { border-top: 2px solid var(--line, #e5e1d8); font-weight: 700; }

/* salesdashboard */
.sales-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 1000px) { .sales-grid2 { grid-template-columns: 1fr; } }
.sum-row td { font-weight: 700; border-top: 2px solid var(--line, #e5e1d8); }
.attn-list { display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; }
.attn-list > div { padding-left: 12px; border-left: 3px solid var(--line, #e5e1d8); }
.attn-list > div.warn { border-left-color: var(--orange); }

/* HubSpot-lead (0-136) */
.hs-lead-pill { text-decoration: none; font-weight: 700; background: rgba(237,109,36,.12); color: var(--orange-dark, #c4561a); }
.hs-lead-pill.hl-in_progress { background: rgba(60,75,128,.12); color: var(--teal); }
.hs-lead-pill.hl-qualified { background: rgba(46,160,90,.14); color: #1f7a45; }
.hs-lead-pill.hl-unqualified { background: rgba(120,120,120,.14); color: #666; }
.hl-lbl-hot { background: rgba(220,53,69,.12); color: #b42334; }
.hl-lbl-warm { background: rgba(237,109,36,.12); color: #c4561a; }
.hl-lbl-cold { background: rgba(60,120,200,.12); color: #2c5d9c; }

.view-stages { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.view-stages .chk { font-size: 13.5px; }
.mt-pair { display: flex; align-items: flex-end; gap: 3px; height: 100%; }
.mt-pair > div { border-radius: 4px 4px 0 0; min-height: 0; }
.mp-prev { flex: 1; background: #c9d1d3; }
.mp-cur { flex: 2; background: var(--teal); }
.tb-ov { background: #b9c3c6; }
.tb-dig { background: var(--orange); }
.tb-bel { background: var(--teal); }

/* meerkeuze-filter (fases) */
.ms-field { position: relative; display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.ms-btn { text-align: left; padding: 8px 30px 8px 10px; font: inherit; font-size: 13.5px; text-transform: none; letter-spacing: 0; color: var(--text);
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23555' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 10px center; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-pop { position: absolute; top: 100%; left: 0; z-index: 40; margin-top: 4px; min-width: 100%; width: max-content; max-width: 340px; max-height: 340px; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.12); padding: 6px; text-transform: none; letter-spacing: 0; }
.ms-actions { display: flex; justify-content: space-between; padding: 4px 8px 8px; border-bottom: 1px solid var(--line, #eee); margin-bottom: 4px; font-size: 12.5px; }
.ms-actions a { color: var(--teal); font-weight: 700; text-decoration: none; }
.ms-opt { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 7px; font-size: 13.5px; color: var(--text); cursor: pointer; }
.ms-opt:hover { background: var(--surface-2, #f5f3ee); }
.ms-opt input { width: auto; margin: 0; }
.filter-grid .ms-opt { flex-direction: row; align-items: center; gap: 8px; font-size: 13.5px; text-transform: none; letter-spacing: 0; color: var(--text); }
.filter-grid .ms-opt input { width: auto; padding: 0; flex: none; }

/* Ads */
.ads-cols { grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .ads-cols { grid-template-columns: 1fr; } }
.ads-card { border-top: 4px solid var(--orange); }
.ads-card.ads-linkedin { border-top-color: #0A66C2; }
.ads-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.ads-name { font-weight: 800; font-size: 17px; }
.ads-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 14px; }
.ads-kpis > div { display: flex; flex-direction: column; gap: 2px; }
.ads-kpis span { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.ads-kpis b { font-size: 17px; }
@media (max-width: 600px) { .ads-kpis { grid-template-columns: 1fr 1fr; } }
.ads-ga { background: var(--orange); }
.ads-li { background: #0A66C2; }
.legend b.ads-ga, .legend b.ads-li { display: inline-block; }
.li-steps { line-height: 1.7; padding-left: 20px; }
.li-steps code { word-break: break-all; }
.li-pill { background: rgba(10,102,194,.12); color: #0A66C2; }

/* hoofdcampagnes */
.camp-parent td { background: var(--surface-2, #f7f5f0); }
.camp-child td:first-child { padding-left: 34px; }
.camp-indent { color: var(--muted); margin-right: 4px; }
.camp-toggle { border: 0; background: none; cursor: pointer; font-size: 13px; color: var(--muted); padding: 0 4px 0 0; }
.hoofd-pill { background: rgba(60,75,128,.12); color: var(--teal); font-weight: 700; }
.li-group-row td { background: var(--surface-2, #f7f5f0); font-weight: 700; }
.brochure-line { font-size: 11.5px; margin-top: 3px; color: var(--teal); font-weight: 600; }
.stage-badge { display:inline-block; padding:3px 10px; border-radius:999px; font-size:12.5px; font-weight:700; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); white-space:nowrap; }
.rep-cost tr.grp td { background: var(--beige, #F2F0E4); font-weight: 800; }
.rep-cost td.ind { padding-left: 26px; }
.rep-field { display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.rep-field .seg { text-transform: none; letter-spacing: 0; }
.rep-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line, #ece8dc); }
.rep-action { display: flex; flex-direction: column; gap: 8px; }
.rep-action .btn { width: 100%; justify-content: center; }
.rep-action p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
@media (max-width: 900px) { .rep-actions { grid-template-columns: 1fr; } }
.fc-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.fc-tile { text-align: left; cursor: pointer; padding: 14px 16px; border: 1.5px solid transparent; font: inherit; color: inherit; }
.fc-tile:hover { border-color: var(--teal); }
.fc-tile.active { border-color: var(--teal); background: #f3f4f7; }
.fc-tile.dim { opacity: .55; }
.fc-l { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.fc-v { font-size: 30px; font-weight: 900; letter-spacing: -1px; margin-top: 4px; }
.fc-s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.fc-s .pos { color: #15803d; font-weight: 700; } .fc-s .neg { color: #c0492f; font-weight: 700; }
.fc-g2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 1100px) { .fc-g2 { grid-template-columns: 1fr; } }
.fc-h { margin: 0 0 10px; font-size: 15px; font-weight: 800; }
.fc-month td, .fc-month th { white-space: nowrap; }
.fc-month tbody tr:last-child td { font-weight: 800; border-top: 2px solid var(--line, #ece8dc); }

/* ===== Marketing performance-dashboard (px) ===== */
.px { animation: pxIn .45s ease both; }
@keyframes pxIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.px-hero { position: relative; overflow: hidden; border-radius: 22px; padding: 22px 26px 24px; color: #f3f4f7;
  background: radial-gradient(900px 420px at 85% -20%, #3c4b80 0%, transparent 60%), radial-gradient(700px 400px at -10% 120%, rgba(237,109,36,.28), transparent 60%),
              linear-gradient(135deg, #0B1E60 0%, #0a1a55 55%, #06103a 100%); box-shadow: 0 18px 40px -18px rgba(11,30,96,.55); }
.px-hero::after { content: ""; position: absolute; right: -40px; top: -80px; width: 520px; height: 140%; pointer-events: none;
  background: linear-gradient(133deg, transparent 49.7%, rgba(242,239,227,.12) 49.7% 50%, transparent 50%), linear-gradient(133deg, transparent 63%, rgba(237,109,36,.35) 63% 63.35%, transparent 63.35%); }
.px-hero-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.px-period { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.px-pill { border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: #e7e9ef; border-radius: 999px; padding: 6px 13px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.px-pill:hover { background: rgba(255,255,255,.12); }
.px-pill.on { background: #ED6D24; border-color: #ED6D24; color: #fff; box-shadow: 0 6px 16px -6px rgba(237,109,36,.7); }
.px-nav { display: inline-flex; align-items: center; gap: 2px; margin-left: 6px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 2px; }
.px-nav button { background: none; border: 0; color: #e7e9ef; font-size: 16px; padding: 2px 9px; cursor: pointer; border-radius: 999px; }
.px-nav button:disabled { opacity: .3; cursor: default; }
.px-nav select { background: transparent; border: 0; color: #fff; font: inherit; font-size: 12.5px; font-weight: 700; padding: 4px 2px; width: auto; }
.px-nav select option { color: #111; }
.px-upd { margin-left: auto; font-size: 11.5px; color: #9da5bf; }
.px-hero-main { display: grid; grid-template-columns: minmax(280px, 1.05fr) 1.6fr; gap: 22px; margin-top: 18px; position: relative; z-index: 1; }
.px-k { font-size: 11.5px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: #9da5bf; }
.px-num { font-size: 76px; font-weight: 900; letter-spacing: -3px; line-height: 1; margin-top: 8px; color: #fff; }
.px-chip { display: inline-block; margin-top: 10px; font-size: 12.5px; font-weight: 800; padding: 4px 11px; border-radius: 999px; background: rgba(255,255,255,.1); color: #e7e9ef; }
.px-chip.up { background: rgba(111,227,192,.18); color: #6fe3c0; } .px-chip.down { background: rgba(255,155,122,.18); color: #ffad92; }
.px-spark { width: 100%; height: 70px; display: block; margin-top: 14px; }
.px-spark-l { display: flex; justify-content: space-between; font-size: 10.5px; color: #9da5bf; margin-top: 2px; }
.px-glass-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.px-glass { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 15px 17px; backdrop-filter: blur(6px); }
.px-v { font-size: 32px; font-weight: 900; letter-spacing: -1px; color: #fff; margin-top: 6px; line-height: 1.05; }
.px-v small { font-size: 16px; font-weight: 700; color: #9da5bf; letter-spacing: 0; }
.px-s { font-size: 12px; color: #ced2df; margin-top: 6px; }
.px-s .up { color: #6fe3c0; font-weight: 800; } .px-s .down { color: #ffad92; font-weight: 800; }

.px-sec { display: flex; align-items: baseline; gap: 12px; margin: 26px 2px 10px; }
.px-sec h2 { margin: 0; font-size: 18px; font-weight: 900; letter-spacing: -.3px; color: var(--green); }
.px-sec span { font-size: 12.5px; color: var(--muted); }
.px-sec a { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--teal); text-decoration: none; }
.px-sec.in { margin: 0 0 14px; }
.px-note { font-size: 12px; color: var(--muted); margin: 8px 2px 0; line-height: 1.5; }

.px-funnel { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; padding: 22px 10px 18px; }
.px-step { position: relative; text-align: center; padding: 0 10px; }
.px-step + .px-step { border-left: 1px dashed var(--line, #e4e0d3); }
.px-step-bar { height: 92px; display: flex; align-items: flex-end; justify-content: center; }
.px-step-bar span { width: 74%; height: var(--w); min-height: 6px; border-radius: 12px 12px 4px 4px; background: linear-gradient(180deg, var(--c), color-mix(in srgb, var(--c) 70%, #000)); box-shadow: 0 10px 20px -12px var(--c); animation: pxGrow .8s cubic-bezier(.2,.8,.2,1) both; transform-origin: bottom; }
@keyframes pxGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.px-step-ico { font-size: 18px; margin-top: 10px; }
.px-step-n { font-size: 28px; font-weight: 900; letter-spacing: -1px; color: var(--green); line-height: 1.1; }
.px-step-l { font-size: 13px; font-weight: 800; color: var(--text); }
.px-step-s { font-size: 11.5px; color: var(--muted); }
.px-rate { position: absolute; left: -22px; top: 34px; background: #fff; border: 1.5px solid var(--line, #e4e0d3); color: var(--teal); font-size: 11px; font-weight: 800; padding: 3px 7px; border-radius: 999px; box-shadow: 0 4px 10px -6px rgba(0,0,0,.2); z-index: 1; }

.px-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.px-card { padding: 20px 22px; }
.px-donut-wrap { display: grid; grid-template-columns: 190px 1fr; gap: 18px; align-items: center; }
.px-donut-box svg { width: 190px; height: 190px; display: block; }
.px-seg { transition: stroke-dasharray .8s; }
.px-donut-n { font-size: 24px; font-weight: 900; fill: var(--green); }
.px-donut-l { font-size: 9px; fill: #6b7280; text-transform: uppercase; letter-spacing: 1px; }
.px-legend { display: flex; flex-direction: column; gap: 8px; }
.px-leg { display: grid; grid-template-columns: 12px 1fr auto 42px; gap: 9px; align-items: center; font-size: 13px; }
.px-leg b { width: 12px; height: 12px; border-radius: 4px; }
.px-leg .n { font-weight: 800; } .px-leg .pc { color: var(--muted); text-align: right; font-size: 12px; }
.px-leg.dim { opacity: .45; }
.px-types { display: flex; flex-direction: column; gap: 11px; }
.px-type-h { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.px-type-h .nm { font-weight: 700; } .px-type-h .d { margin-left: auto; font-size: 11.5px; font-weight: 800; color: var(--muted); }
.px-type-h .d.up { color: #15803d; } .px-type-h .d.down { color: #c0492f; }
.px-type-h b { min-width: 34px; text-align: right; font-size: 15px; }
.px-type-bar { height: 8px; border-radius: 999px; background: #f0eee6; margin-top: 5px; overflow: hidden; }
.px-type-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #ED6D24, #FD9F02); transition: width .8s; }

.px-trend { padding: 16px 18px 14px; }
.px-tsvg { width: 100%; height: auto; display: block; }
.px-tsvg .grid { stroke: #eceae2; stroke-width: 1; }
.px-tsvg .ax { font-size: 11px; fill: #8a9297; } .px-tsvg .ax.sel { fill: var(--orange); font-weight: 800; }
.px-tsvg .val { font-size: 11px; font-weight: 800; fill: #08174b; }
.px-tsvg .b-bel { fill: #3C4B80; } .px-tsvg .b-dig { fill: #ED6D24; } .px-tsvg .b-ov { fill: #c9d1d3; }
.px-tsvg .faded { opacity: .38; }
.px-tsvg .cost { fill: none; stroke: #08174b; stroke-width: 2.5; stroke-linejoin: round; }
.px-tsvg .costd { fill: #fff; stroke: #08174b; stroke-width: 2; }

.px-chans { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 14px; }
.px-chan { padding: 16px 18px 14px; border-top: 4px solid var(--c); transition: transform .15s, box-shadow .15s; }
.px-chan:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -18px rgba(11,30,96,.5); }
.px-chan-h { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; color: var(--muted); }
.px-chan-h .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.px-chan-n { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; }
.px-chan-n > span { font-size: 34px; font-weight: 900; letter-spacing: -1px; color: var(--green); }
.px-chan-n small { color: var(--muted); font-size: 12px; }
.px-chan-n em { margin-left: auto; font-style: normal; font-size: 11.5px; font-weight: 800; color: var(--muted); }
.px-chan-n em.up { color: #15803d; } .px-chan-n em.down { color: #c0492f; }
.px-chan-spark { width: 100%; height: 30px; display: block; margin: 4px 0 8px; }
.px-chan-f { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; border-top: 1px solid var(--line, #ece8dc); padding-top: 9px; }
.px-chan-f div { display: flex; flex-direction: column; } .px-chan-f b { font-size: 14px; } .px-chan-f span { font-size: 11px; color: var(--muted); }

.px-stack { display: flex; height: 22px; border-radius: 999px; overflow: hidden; background: #f0eee6; }
.px-stack span { height: 100%; transition: width .8s; }
.px-stack span + span { box-shadow: inset 2px 0 0 #fff; }
.px-stage-list { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 18px; margin-top: 16px; }
.px-stage { display: grid; grid-template-columns: 11px 1fr auto 38px; gap: 8px; align-items: center; font-size: 13px; }
.px-stage b { width: 11px; height: 11px; border-radius: 3px; } .px-stage .n { font-weight: 800; } .px-stage .pc { color: var(--muted); font-size: 12px; text-align: right; }
.px-ads { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.px-ad { border-radius: 14px; padding: 14px 15px; background: #fbf7ee; border: 1px solid #f3e6c9; }
.px-ad.linkedin { background: #f1f6fe; border-color: #d7e5fb; }
.px-ad-h { font-weight: 900; font-size: 14px; color: var(--green); }
.px-ad-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.px-ad-grid div { display: flex; flex-direction: column; } .px-ad-grid b { font-size: 20px; font-weight: 900; letter-spacing: -.5px; } .px-ad-grid span { font-size: 11px; color: var(--muted); }
.px-ad-cost { margin-top: 10px; padding-top: 8px; border-top: 1px dashed rgba(0,0,0,.1); font-size: 12px; color: var(--muted); }
.px-ad-cost b { color: var(--text); }

.px-top { padding: 8px 10px; }
.px-top-row { display: grid; grid-template-columns: 28px 92px minmax(160px, 1.4fr) 1fr 120px 90px 140px; gap: 12px; align-items: center; padding: 10px 8px; font-size: 13px; }
.px-top-row + .px-top-row { border-top: 1px solid var(--line, #f0ece2); }
.px-top-row .rk { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 12px; background: #f0eee6; color: var(--green); }
.px-top-row:nth-of-type(1) .rk { background: #FD9F02; color: #fff; } .px-top-row:nth-of-type(2) .rk { background: #b9c3c6; color: #fff; } .px-top-row:nth-of-type(3) .rk { background: #c98b5a; color: #fff; }
.px-top-row .src { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; padding: 3px 8px; border-radius: 999px; text-align: center; background: #eceef3; color: var(--teal); }
.px-top-row .src.google { background: #fff3dc; color: #b26b00; } .px-top-row .src.linkedin { background: #e6effd; color: #1d5bbf; }
.px-top-row .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.px-top-row .bar { height: 8px; background: #f0eee6; border-radius: 999px; overflow: hidden; } .px-top-row .bar i { display: block; height: 100%; background: linear-gradient(90deg, #3C4B80, #6fd3c6); border-radius: 999px; }
.px-top-row .res b { font-size: 15px; } .px-top-row .res span, .px-top-row .cpr { color: var(--muted); font-size: 12px; } .px-top-row .cost { text-align: right; font-weight: 700; }
.px-details { margin-top: 22px; padding: 14px 18px; } .px-details summary { cursor: pointer; font-weight: 800; color: var(--green); } .px-details[open] summary { margin-bottom: 12px; }

@media (max-width: 1200px) { .px-hero-main, .px-row2 { grid-template-columns: 1fr; } .px-funnel { grid-template-columns: repeat(3, 1fr); row-gap: 22px; }
  .px-step:nth-child(4) { border-left: 0; } .px-top-row { grid-template-columns: 28px 88px 1fr 90px 80px; } .px-top-row .bar, .px-top-row .cpr { display: none; } }
@media (max-width: 700px) { .px-num { font-size: 58px; } .px-glass-grid, .px-ads, .px-stage-list { grid-template-columns: 1fr; } .px-funnel { grid-template-columns: repeat(2, 1fr); }
  .px-donut-wrap { grid-template-columns: 1fr; justify-items: center; } .px-rate { display: none; } }

/* ===== Sales-dashboard (ss), bouwt voort op de px-stijl ===== */
.ss-hero-main { grid-template-columns: minmax(330px, 1.05fr) 1.5fr; }
.ss-hero-left { display: flex; gap: 22px; align-items: center; }
.ss-ring svg { width: 168px; height: 168px; display: block; filter: drop-shadow(0 8px 18px rgba(237,109,36,.25)); }
.ss-ring-n { font-size: 26px; font-weight: 900; fill: #fff; letter-spacing: -1px; }
.ss-ring-l { font-size: 9px; fill: #9da5bf; text-transform: uppercase; letter-spacing: 1px; }
.ss-num { font-size: 50px; letter-spacing: -2px; }
.ss-target-line { margin-top: 10px; font-size: 13px; color: #ced2df; } .ss-target-line b { color: #fff; }
.ss-status { margin-top: 10px; display: inline-block; font-size: 12.5px; font-weight: 800; padding: 6px 12px; border-radius: 10px; }
.ss-status.ok { background: rgba(111,227,192,.16); color: #6fe3c0; } .ss-status.behind { background: rgba(255,155,122,.16); color: #ffad92; }
.ss-need { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: #fff5ee; border-left: 4px solid var(--orange); font-size: 13px; }
.ss-tabs { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; background: #f2f0e4; padding: 3px; border-radius: 999px; }
.ss-tabs button { border: 0; background: none; font: inherit; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.ss-tabs button.on { background: #fff; color: var(--green); box-shadow: 0 2px 6px -2px rgba(0,0,0,.18); }
.ss-pipe-tot { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.ss-pipe-tot div { background: #f7f5ef; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
.ss-pipe-tot b { font-size: 18px; font-weight: 900; color: var(--green); letter-spacing: -.5px; } .ss-pipe-tot span { font-size: 11px; color: var(--muted); }
.ss-funnel { display: flex; flex-direction: column; gap: 9px; }
.ss-fstage { display: grid; grid-template-columns: minmax(120px, 170px) 1fr 120px; gap: 12px; align-items: center; }
.ss-fl { font-size: 13px; font-weight: 700; display: flex; gap: 6px; align-items: baseline; } .ss-fl em { font-style: normal; font-size: 11px; color: var(--muted); font-weight: 600; }
.ss-fbar { height: 26px; display: flex; justify-content: center; }
.ss-fbar span { height: 100%; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px;
  background: linear-gradient(90deg, #3C4B80, #0B1E60); animation: ssGrow .7s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 60ms); }
@keyframes ssGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ss-fv { display: flex; flex-direction: column; text-align: right; } .ss-fv b { font-size: 13.5px; } .ss-fv span { font-size: 11px; color: var(--muted); }
.ss-leg { grid-template-columns: 12px 1fr auto 96px; }
.ss-alerts { display: flex; flex-direction: column; gap: 9px; }
.ss-alert { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #f4f8f6; border-left: 4px solid #16a34a; }
.ss-alert.amber { background: #fff8ec; border-left-color: #FD9F02; } .ss-alert.red { background: #fff1ec; border-left-color: #e0583a; }
.ss-alert-n { font-size: 24px; font-weight: 900; letter-spacing: -1px; color: var(--green); text-align: center; }
.ss-alert.red .ss-alert-n { color: #c0492f; } .ss-alert.amber .ss-alert-n { color: #b26b00; }
.ss-alert-t { font-weight: 800; font-size: 13.5px; } .ss-alert-s { font-size: 12px; color: var(--muted); }
.ss-deals { display: flex; flex-direction: column; }
.ss-deal, .ss-tl { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 9px 6px; border-radius: 10px; text-decoration: none; color: inherit; }
.ss-deal + .ss-deal, .ss-tl + .ss-tl { border-top: 1px solid var(--line, #f0ece2); }
.ss-deal:hover, .ss-tl:hover { background: #f8f6f0; }
.ss-deal .rk { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 12px; background: #f0eee6; color: var(--green); }
.ss-deal:nth-of-type(1) .rk { background: #FD9F02; color: #fff; } .ss-deal:nth-of-type(2) .rk { background: #b9c3c6; color: #fff; } .ss-deal:nth-of-type(3) .rk { background: #c98b5a; color: #fff; }
.ss-deal .mid, .ss-tl .mid { display: flex; flex-direction: column; min-width: 0; }
.ss-deal .mid b, .ss-tl .mid b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-deal small, .ss-tl small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-dbar { height: 5px; background: #f0eee6; border-radius: 999px; margin-top: 5px; overflow: hidden; } .ss-dbar i { display: block; height: 100%; background: linear-gradient(90deg, #ED6D24, #FD9F02); border-radius: 999px; }
.ss-deal .end { display: flex; flex-direction: column; text-align: right; } .ss-deal .end b { font-size: 14.5px; } .ss-deal .end small.neg { color: #c0492f; font-weight: 700; }
.ss-tl { grid-template-columns: 44px 1fr auto; }
.ss-tl .dt { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, #0B1E60, #3C4B80); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.ss-tl .dt b { font-size: 17px; } .ss-tl .dt small { color: #ced2df; font-size: 10px; text-transform: uppercase; margin-top: 2px; }
.ss-tl .end { font-weight: 800; font-size: 14px; }
.ss-won { display: flex; flex-wrap: wrap; gap: 8px; }
.ss-won-chip { display: flex; flex-direction: column; padding: 8px 12px; border-radius: 12px; background: linear-gradient(135deg, #fff4e8, #fdebd9); text-decoration: none; color: inherit; border: 1px solid #f8d9bd; }
.ss-won-chip b { font-size: 13px; } .ss-won-chip span { font-size: 11.5px; color: #9a5a2a; }
@media (max-width: 1200px) { .ss-hero-main { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .ss-hero-left { flex-direction: column; align-items: flex-start; } .ss-num { font-size: 40px; }
  .ss-pipe-tot { grid-template-columns: 1fr 1fr; } .ss-fstage { grid-template-columns: 1fr; gap: 4px; } .ss-fv { text-align: left; flex-direction: row; gap: 8px; } .ss-tabs { margin-left: 0; } }
.px-recon { display: grid; grid-template-columns: auto auto 1fr 1fr; gap: 12px; align-items: center; background: #fbf7ee; border: 1px solid #f3e6c9; border-radius: 14px; padding: 12px 16px; margin-bottom: 8px; }
.px-recon div { display: flex; flex-direction: column; } .px-recon b { font-size: 24px; font-weight: 900; letter-spacing: -.5px; color: var(--green); line-height: 1.1; }
.px-recon span { font-size: 11.5px; color: var(--muted); } .px-recon i { font-style: normal; font-size: 20px; color: var(--orange); font-weight: 900; }
.px-recon .nw b { color: #ED6D24; } .px-recon .ex b { color: #b08a5a; }
.px-recon-note { font-size: 12px; color: var(--muted); margin: 0 2px 14px; }
.px-type-bar { position: relative; } .px-type-bar span { position: absolute; left: 0; top: 0; }
.px-type-bar span.all { background: #f8c99d; } .px-type-bar span.new { background: linear-gradient(90deg, #ED6D24, #f08a3e); }
.px-type-s { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
@media (max-width: 700px) { .px-recon { grid-template-columns: 1fr 1fr; } .px-recon i { display: none; } }
.px-sub-sec { display: flex; align-items: baseline; margin: 22px 0 12px; padding-top: 18px; border-top: 1px solid var(--line, #ece8dc); }
.px-sub-sec h3 { margin: 0; font-size: 16px; font-weight: 900; color: var(--green); }
.px-sub-sec a { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--teal); text-decoration: none; }
.px-v-sm { font-size: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.px-glass.alert { border-color: rgba(253,159,2,.55); background: rgba(253,159,2,.12); }
.px-glass[style*="cursor:pointer"]:hover { background: rgba(255,255,255,.1); }
.kx-hero { margin-bottom: 18px; }
.sb-hero { margin-bottom: 4px; }
.sb-tag { font-style: normal; font-size: 9.5px; letter-spacing: .6px; padding: 1px 6px; border-radius: 999px; background: rgba(255,255,255,.1); color: #9da5bf; margin-left: 4px; vertical-align: 1px; }
.kx-split { grid-column: 1 / -1; }
.kx-row { display: grid; grid-template-columns: 110px 1fr 90px 64px; gap: 10px; align-items: center; margin-top: 9px; font-size: 13px; color: #e7e9ef; }
.kx-row .bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; } .kx-row .bar i { display: block; height: 100%; border-radius: 999px; }
.kx-row b { text-align: right; color: #fff; } .kx-row em { font-style: normal; font-size: 11.5px; font-weight: 800; color: #9da5bf; text-align: right; }
.kx-row em.up { color: #6fe3c0; } .kx-row em.down { color: #ffad92; }
.kx-row:hover .nm { color: #fff; text-decoration: underline; }
.px-funnel-in { padding: 6px 0 4px; }
.ss-bar { margin-bottom: 4px; }
.ss-bar .ss-num { font-size: 60px; letter-spacing: -2px; }
.ss-goalbar { margin-top: 22px; }
.ss-goalbar .track { position: relative; height: 14px; border-radius: 999px; background: rgba(255,255,255,.1); }
.ss-goalbar .track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, #3C4B80, #FD9F02); }
.ss-goalbar .track b { position: absolute; top: -5px; width: 3px; height: 24px; margin-left: -1px; background: #fff; border-radius: 2px; box-shadow: 0 0 0 3px rgba(255,255,255,.15); }
.ss-goalbar .lbls { display: flex; justify-content: space-between; font-size: 11px; color: #9da5bf; margin-top: 7px; }
.ss-story { position: relative; z-index: 1; margin-top: 18px; padding: 14px 18px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); font-size: 14px; line-height: 1.6; color: #e7e9ef; }
.ss-story b { color: #fff; }
.px-qbars { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; align-items: end; height: 96px; margin-top: 14px; }
.px-qbars .q { display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; gap: 4px; }
.px-qbars .v { font-size: 11.5px; font-weight: 800; color: #e7e9ef; }
.px-qbars .b { width: 100%; max-width: 34px; flex: 1; display: flex; align-items: flex-end; }
.px-qbars .b i { display: block; width: 100%; border-radius: 6px 6px 2px 2px; background: rgba(253,159,2,.35); }
.px-qbars .sel .b i { background: linear-gradient(180deg, #FD9F02, #ED6D24); }
.px-qbars .part .b i { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.18) 0 4px, transparent 4px 8px); }
.px-qbars .l { font-size: 10.5px; color: #9da5bf; white-space: nowrap; } .px-qbars .sel .l { color: #FD9F02; font-weight: 800; }
.px-qbars .sel.part .b i { background: repeating-linear-gradient(45deg, rgba(255,255,255,.25) 0 4px, transparent 4px 8px), linear-gradient(180deg, #FD9F02, #ED6D24); }
.px-q3 { margin-top: 10px; } .px-q3svg { width: 100%; height: auto; display: block; overflow: visible; }
.px-q3svg .v { font-size: 13px; font-weight: 900; fill: #fff; } .px-q3svg .l { font-size: 10.5px; fill: #9da5bf; } .px-q3svg .l.cur { fill: #FD9F02; font-weight: 800; }
.report.no-compare .rep-cmp { display: none !important; }
.rep-step { display: flex; align-items: center; gap: 14px; margin: 34px 0 16px; padding: 14px 18px; border-radius: 14px; background: var(--green); color: #fff; }
.rep-ch-head + .rep-step { margin-top: 6px; }
.rep-step .n { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--orange); font-weight: 900; font-size: 17px; }
.rep-step h3 { margin: 0; padding: 0; border: 0; color: #fff; font-size: 19px; font-weight: 800; }
.rep-step p { margin: 1px 0 0; font-size: 12.5px; color: rgba(255,255,255,.75); }
.rep-kpis.three { grid-template-columns: repeat(3, 1fr); }
.rep-grid2.even { grid-template-columns: 1fr 1fr; }
.rep-missing { margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: var(--surface-2); border-left: 4px solid var(--amber); font-size: 12.5px; color: var(--muted); }
@media print { .rep-step { break-after: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
@media (max-width: 800px) { .rep-kpis.three, .rep-grid2.even { grid-template-columns: 1fr; } }
.rep-kpis.auto { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.rep-joint .rep-kpi.hero { min-height: 0; }
.rep-goal { background: var(--green); color: #fff; border-radius: 16px; padding: 20px 24px; margin-bottom: 16px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.rep-goal-h { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; } .rep-goal-h .t { font-size: 18px; font-weight: 800; } .rep-goal-h .s { font-size: 12.5px; color: rgba(255,255,255,.7); }
.rep-goal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 14px; }
.rep-goal-grid div { display: flex; flex-direction: column; gap: 2px; } .rep-goal-grid span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .6px; color: rgba(255,255,255,.7); font-weight: 700; }
.rep-goal-grid b { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; } .rep-goal-grid b.up { color: #6fe3c0; } .rep-goal-grid b.down { color: #ffad92; }
.rep-goal-grid em { font-style: normal; font-size: 12px; color: rgba(255,255,255,.75); }
.rep-goal-bar { position: relative; height: 12px; margin-top: 16px; border-radius: 999px; background: rgba(255,255,255,.15); }
.rep-goal-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, #6fd3c6, #FD9F02); }
.rep-goal-bar u { position: absolute; top: -4px; width: 3px; height: 20px; margin-left: -1px; background: #fff; border-radius: 2px; }
.rep-goal p { margin: 12px 0 0; font-size: 13.5px; line-height: 1.55; color: rgba(255,255,255,.9); }
@media (max-width: 800px) { .rep-goal-grid { grid-template-columns: 1fr 1fr; } }
.rep-kpi.hero.orange { background: var(--orange); border-color: var(--orange); color: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }

/* TIKL */
.tikl-steps { margin: 0; padding-left: 20px; line-height: 1.65; font-size: 13.5px; }
.tikl-steps li { margin-bottom: 8px; }
.tikl-ips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.tikl-ips code { background: #f3f5f7; border: 1px solid #e3e7ea; border-radius: 6px; padding: 3px 8px; font-weight: 700; }
.badge.tk-high { background: rgba(200,40,40,.12); color: #b42318; }
.badge.tk-mid  { background: rgba(253,159,2,.16); color: #b5730a; }
.badge.tk-low  { background: rgba(11,30,96,.1); color: #0b1e60; }

/* RegLab archief */
.arc-tiles { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.arc-tiles .card { padding: 18px 20px; }
.arc-n { font-size: 30px; font-weight: 800; color: #0b1e60; margin: 4px 0 2px; }
.arc-n.sm { font-size: 22px; }
.arc-tiles .muted { font-size: 12.5px; }
.arc-run { display: flex; align-items: center; gap: 10px; padding: 12px 18px; margin-bottom: 14px; font-size: 13.5px; flex-wrap: wrap; }
.arc-dot { width: 10px; height: 10px; border-radius: 50%; background: #ed6d24; animation: arcPulse 1.2s infinite; }
@keyframes arcPulse { 50% { opacity: .3; } }
.arc-row { cursor: pointer; }
.arc-row:hover td { background: rgba(11,30,96,.05); }
.arc-sec { margin-bottom: 20px; }
.arc-sec h4 { margin: 0 0 10px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #3c4b80; }
.arc-dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 18px; margin: 0; }
.arc-dl > div { min-width: 0; }
.arc-dl dt { font-size: 11.5px; color: #78828d; }
.arc-dl dd { margin: 1px 0 0; font-size: 13.5px; font-weight: 600; word-break: break-word; }
.arc-card { border: 1px solid #e9ecef; border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.arc-links { display: flex; flex-wrap: wrap; gap: 8px; }
.arc-links a { display: flex; flex-direction: column; gap: 2px; border: 1px solid #e3e7ea; border-radius: 10px; padding: 8px 12px; color: inherit; text-decoration: none; font-size: 13px; }
.arc-links a:hover { border-color: #3c4b80; }
.arc-links a.off { opacity: .55; pointer-events: none; }
.arc-links .muted { font-size: 11.5px; }

/* Uitklapbaar submenu en instellingen onderin */
.nav-chev { margin-left: auto; font-size: 12px; opacity: .7; padding: 2px 4px; border-radius: 6px; transition: transform .15s; }
.nav-chev:hover { opacity: 1; background: rgba(255,255,255,.1); }
.nav-chev.up { transform: rotate(180deg); }
.sidebar-foot { display: flex; align-items: center; gap: 10px; }
.sidebar-foot .sf-text { flex: 1; min-width: 0; }
.sf-gear { flex: none; width: 40px; height: 40px; border-radius: 11px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04);
  font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: .16s; }
.sf-gear:hover { background: rgba(255,255,255,.1); }
.sf-gear.active { background: linear-gradient(90deg, var(--orange), #f0803f); border-color: transparent; box-shadow: var(--shadow-orange); }
@media (max-width: 900px) {
  .sidebar-foot { display: flex; justify-content: center; padding: 12px 0; }
  .sidebar-foot .sf-text, .nav-chev { display: none; }
}

/* Afdrukken / PDF: dezelfde indeling als op het scherm.
   Een A4 is smaller dan 900px, waardoor anders de mobiele indeling (alles onder elkaar) zou gelden. */
@media print {
  .rep-kpis { grid-template-columns: repeat(4, 1fr) !important; gap: 10px; }
  .rep-kpis.three { grid-template-columns: repeat(3, 1fr) !important; }
  .rep-kpis.auto { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important; }
  .rep-grid2 { grid-template-columns: 1.3fr 1fr !important; gap: 18px; }
  .rep-grid2.even { grid-template-columns: 1fr 1fr !important; }
  .rep-grid3 { grid-template-columns: repeat(3, 1fr) !important; }
  .rep-goal-grid { grid-template-columns: repeat(4, 1fr) !important; }
  .rep-actions { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .rep-cover, .rep-chapter { padding-left: 8px; padding-right: 8px; }
  .rep-kpi .v { font-size: 22px; }
  .rep-table { font-size: 10.5px; table-layout: auto; }
  .rep-table th { font-size: 8.5px; letter-spacing: .3px; padding: 6px 6px; white-space: normal; }
  .rep-table td { padding: 5px 6px; }
  .rep-table td div, .rep-table td small { font-size: 9.5px; }
  .rep-step, .rep-goal, .rep-kpis { break-inside: avoid; }
}

/* AFAS */
.afas-h { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #3c4b80; font-weight: 800; margin-top: 6px; }
.afas-ds { border: 1px solid #e9ecef; border-radius: 12px; padding: 10px 12px; }
.afas-ds-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.afas-ds-h b { min-width: 150px; }
.afas-ds-h .muted { font-size: 12px; min-width: 70px; }
.afas-ds-h input { flex: 1; min-width: 200px; }
.afas-map { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 12px; margin-top: 10px; }
.afas-map label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: #55606b; font-weight: 600; }
.inv-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 3px 0; }
.inv-top span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fin-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 10px; height: 220px; align-items: end; margin-top: 8px; }
.fin-col { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.fin-col span { font-size: 11.5px; color: #78828d; }
.fin-b { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.fin-b i { width: 40%; max-width: 18px; background: #ed6d24; border-radius: 4px 4px 0 0; min-height: 1px; }
.fin-b i.p { background: #c9d1d3; }
.fin-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; align-items: start; }
@media (max-width: 1000px) { .fin-g2 { grid-template-columns: 1fr; } }

.tikl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tikl-chips button { border: 1px solid #d6dde0; background: #fff; border-radius: 999px; padding: 5px 12px; font-size: 12.5px; cursor: pointer; }
.tikl-chips button.on { background: #3c4b80; border-color: #3c4b80; color: #fff; font-weight: 700; }

/* Compliance-overzicht */
.kyc-tiles { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.kyc-tiles .card { padding: 16px 18px; }
.kyc-t { cursor: pointer; transition: .15s; }
.kyc-t:hover { box-shadow: 0 6px 18px rgba(11,30,96,.12); transform: translateY(-1px); }
.kyc-src { display: flex; gap: 4px; flex-wrap: wrap; }
.kyc-src button { border: none; border-radius: 6px; padding: 3px 8px; font-size: 11px; font-weight: 800; cursor: pointer; }
.kyc-src .s-tikl { background: #e3eefc; color: #1d4ed8; }
.kyc-src .s-reglab { background: #ede7fb; color: #5b3fb5; }
.kyc-src .s-archief { background: #eceef0; color: #55606b; }
.kyc-src .s-dossier { background: rgba(237,109,36,.14); color: #b25a1a; }
.kyc-src button:hover { filter: brightness(.95); text-decoration: underline; }
/* TIKL-cliëntdossier */
.modal.tikl-doc { max-width: 1180px; width: 96vw; padding: 0; overflow: hidden; display: flex; flex-direction: column; max-height: 92vh; }
.tikl-doc-head { background: #08174b; color: #fff; padding: 20px 24px; display: flex; gap: 10px; align-items: flex-start; }
.tikl-doc-head h3 { margin: 4px 0 8px; font-size: 22px; color: #fff; }
.tikl-doc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tikl-doc-chips span { background: rgba(255,255,255,.12); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; }
.tikl-doc-chips span.tk-high { background: #fde2e1; color: #b42318; }
.tikl-doc-chips span.tk-mid { background: #fdecc8; color: #93590b; }
.tikl-doc-chips span.tk-low { background: #e7e9ef; color: #0b1e60; }
.tikl-doc-chips span.tag { background: #1d4ed8; }
.tikl-doc-body { display: flex; min-height: 0; flex: 1; }
.tikl-doc-nav { width: 230px; flex: none; background: #f4f6f7; border-right: 1px solid #e3e7ea; padding: 12px 8px; overflow: auto; }
.tikl-doc-nav button { display: flex; justify-content: space-between; width: 100%; text-align: left; border: none; background: none; padding: 9px 12px; border-radius: 8px; font-size: 13.5px; cursor: pointer; color: #1f2a30; }
.tikl-doc-nav button i { font-style: normal; font-size: 11px; color: #78828d; }
.tikl-doc-nav button:hover { background: #e9eef0; }
.tikl-doc-nav button.on { background: #3c4b80; color: #fff; font-weight: 700; }
.tikl-doc-nav button.on i { color: #e7e9ef; }
.tikl-doc-main { flex: 1; overflow: auto; padding: 20px 26px; }
.tikl-doc-title { margin: 0 0 14px; font-size: 18px; }
.tikl-tbl th { white-space: nowrap; }
.tikl-tbl td { font-size: 12.5px; }
@media (max-width: 800px) { .tikl-doc-body { flex-direction: column; } .tikl-doc-nav { width: auto; display: flex; overflow-x: auto; } .tikl-doc-nav button { width: auto; white-space: nowrap; } }

.th-sort { cursor: pointer; user-select: none; white-space: nowrap; }
.th-sort:hover { color: #3c4b80; }

/* + Nieuw met keuze */
.new-dd { position: relative; display: inline-block; }
.new-dd-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; background: #fff; border-radius: 12px; min-width: 300px;
  box-shadow: 0 14px 34px rgba(7,20,68,.18); padding: 6px; border: 1px solid #e3e7ea; }
.new-dd-menu button { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; border: none; background: none; padding: 10px 12px; border-radius: 9px; cursor: pointer; }
.new-dd-menu button:hover { background: #f1f5f6; }
.new-dd-menu b { font-size: 14px; color: #1f2a30; }
.new-dd-menu span { font-size: 12px; color: #78828d; }
