/* Hubble Klantsysteem — huisstijl Hubblemedia (inkt, oranje, warmwit · Outfit + Inter) */
@font-face { font-family: Outfit; src: url(../assets/Outfit.ttf); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Inter; src: url(../assets/Inter.ttf); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #191919;
  --ink-2: #2A2926;
  --orange: #FF682C;
  --orange-d: #E8551A;
  --orange-50: #FFF3EC;
  --orange-100: #FFE3D4;
  --paper: #FAF8F3;
  --sand: #F3EFE6;
  --sand-2: #EAE4D7;
  --white: #FFFFFF;
  --line: #E8E2D5;
  --muted: #6E6960;
  --muted-2: #9A948A;
  --green: #2F7A55;
  --green-50: #E8F3EC;
  --heading: Outfit, system-ui, sans-serif;
  --body: Inter, system-ui, sans-serif;
  --r: 16px;
  --r-sm: 10px;
  --shadow: 0 1px 2px rgba(25, 25, 25, .04), 0 4px 16px rgba(25, 25, 25, .04);
  --shadow-lg: 0 24px 64px rgba(25, 25, 25, .18);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 14.5px/1.5 var(--body); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3 { font-family: var(--heading); margin: 0; letter-spacing: -.01em; }
:focus-visible { outline: 2.5px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
.ic { width: 18px; height: 18px; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.grow { flex: 1; }
.late { color: var(--orange-d); font-style: normal; font-weight: 600; }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; background: var(--ink); color: #EDE9E0; display: flex; flex-direction: column; padding: 26px 16px 18px; }
.brand { padding: 0 10px 30px; display: block; }
.brand img { width: 138px; display: block; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: #BDB8AE; font-weight: 500; transition: background .15s, color .15s; }
.nav-item:hover { background: #242320; color: #fff; }
.nav-item.is-active { background: #2A2825; color: #fff; }
.nav-item.is-active .ic { color: var(--orange); }
.nav-item span { flex: 1; }
.badge { background: var(--orange); color: var(--ink); font: 700 11.5px/1 var(--body); padding: 4px 7px; border-radius: 99px; }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.search-btn { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #232220; color: #A7A297; text-align: left; }
.search-btn span { flex: 1; }
.search-btn:hover { color: #fff; }
.search-btn kbd, kbd { font: 600 10.5px var(--body); background: #34322E; color: #CFCABF; padding: 3px 6px; border-radius: 6px; }
.me { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; text-align: left; color: #fff; border-top: 1px solid #2C2A27; border-radius: 0; padding-top: 14px; }
.me small { display: block; color: #8F8A80; font-size: 11.5px; }
.main { min-width: 0; }
.view { max-width: 1240px; margin: 0 auto; padding: 36px 40px 80px; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- koppen ---------- */
.eyebrow { font: 600 11.5px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--orange-d); margin: 0 0 6px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 40px; font-weight: 700; line-height: 1.05; }
.page-actions { display: flex; align-items: center; gap: 10px; }
.hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.hero h1 { font-size: clamp(34px, 4.4vw, 52px); font-weight: 700; line-height: 1.02; }
.hero h1 .dot, .dot { color: var(--orange); }
.hero-sub { margin: 10px 0 0; font-size: 16px; color: var(--muted); }
.hero-sub b { color: var(--ink); }
.hero-actions { display: flex; gap: 10px; }

/* ---------- knoppen ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); font-weight: 600; font-size: 14px; white-space: nowrap; transition: transform .1s, background .15s, border-color .15s, box-shadow .15s; }
.btn:hover { border-color: #D6CEBE; box-shadow: var(--shadow); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn-primary:hover { background: #FF7A42; border-color: #FF7A42; }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: #2C2B28; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--sand); box-shadow: none; border-color: transparent; }
.btn-danger { background: #fff; border-color: #F1C9B8; color: #B7410E; }
.btn-danger-ghost { background: transparent; border-color: transparent; color: #B7410E; }
.btn-danger-ghost:hover { background: #FBEDE6; border-color: transparent; box-shadow: none; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.icon-btn { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 10px; color: var(--muted); font-size: 18px; font-weight: 600; }
.icon-btn:hover { background: var(--sand); color: var(--ink); }
.link { color: var(--orange-d); font-weight: 600; font-size: 13px; }
.link:hover { text-decoration: underline; }

/* segmented */
.seg { display: inline-flex; background: var(--sand); border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { padding: 7px 14px; border-radius: 9px; font-weight: 600; font-size: 13px; color: var(--muted); }
.seg button small { color: var(--muted-2); font-weight: 500; margin-left: 3px; }
.seg button.is-on { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.seg-sm button { padding: 5px 10px; font-size: 12.5px; }

/* ---------- kaarten ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.card + .card, .dash-grid + .card, .card.activity { margin-top: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-head h2 { font-size: 18px; font-weight: 700; }
.card-head-right { display: flex; align-items: center; gap: 8px; font-family: var(--heading); }
.card-link { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 600; color: var(--orange-d); font-size: 13.5px; }
.card-link .ic { width: 16px; }

/* KPI's */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
a.kpi:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(25, 25, 25, .08); }
.kpi-label { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.kpi-value { font: 700 32px/1.1 var(--heading); letter-spacing: -.02em; }
.kpi-value small { font-size: 15px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.kpi-foot { font-size: 12.5px; color: var(--muted); }
.kpi-ring { flex-direction: row; align-items: center; gap: 16px; }
.kpi-ring > div { display: flex; flex-direction: column; gap: 2px; }
.kpi-dark { background: var(--ink); border-color: var(--ink); color: #fff; position: relative; overflow: hidden; }
.kpi-dark::after { content: ""; position: absolute; right: -16px; top: -18px; width: 78px; height: 78px; background: url(../assets/bb-oranje.svg) no-repeat center/contain; opacity: .95; }
.kpi-dark > * { position: relative; z-index: 1; }
.kpi-dark .kpi-label, .kpi-dark .kpi-foot { color: #B9B4AA; }
.kpi-dark .kpi-value small { color: #B9B4AA; }
.ring-bg { fill: none; stroke: var(--sand-2); }
.ring-fg { fill: none; stroke: var(--orange); stroke-linecap: round; transition: stroke-dashoffset .6s ease; }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.dash-side { display: flex; flex-direction: column; gap: 18px; }
.dash-side .card + .card { margin-top: 0; }

/* ---------- taken ---------- */
.task-list { display: flex; flex-direction: column; }
.task-list.card { padding: 6px 8px; }
.task { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: 12px; position: relative; transition: background .12s; }
.task + .task { border-top: 1px solid #F1ECE2; }
.task:hover { background: #FCFAF6; }
.task:hover + .task, .task:hover { border-color: transparent; }
.check { width: 24px; height: 24px; border-radius: 8px; border: 2px solid #CFC7B7; display: grid; place-items: center; flex: none; color: transparent; transition: all .15s; background: #fff; }
.check .ic { width: 15px; height: 15px; stroke-width: 3; }
.check:hover { border-color: var(--orange); color: var(--orange-100); }
.is-done .check { background: var(--orange); border-color: var(--orange); color: #fff; animation: pop .25s ease; }
.check.is-locked { opacity: .7; cursor: default; }
@keyframes pop { 50% { transform: scale(1.18); } }
.prio { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; flex: none; }
.prio:hover { background: var(--sand); }
.prio span, .prio-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.prio-urgent span, .prio-dot.prio-urgent { background: var(--orange); box-shadow: 0 0 0 3px var(--orange-100); }
.prio-hoog span, .prio-dot.prio-hoog { background: var(--ink); }
.prio-normaal span, .prio-dot.prio-normaal { background: #B8B0A0; }
.prio-laag span, .prio-dot.prio-laag { background: transparent; border: 2px solid #CFC7B7; }
.task-main { flex: 1; min-width: 0; }
.task-title { font-weight: 550; font-size: 14.5px; line-height: 1.35; }
.is-done .task-title { color: var(--muted-2); text-decoration: line-through; text-decoration-color: #CFC7B7; }
.task-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.task-meta .ic { width: 14px; height: 14px; }
.kind { display: inline-flex; align-items: center; gap: 4px; }
.kind-abo { color: #7A5B3F; }
.kind-bel { color: var(--green); }
.kind-lead { color: var(--orange-d); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px 2px 6px; background: var(--sand); border-radius: 99px; font-weight: 550; color: var(--ink); font-size: 12px; }
.chip:hover { background: var(--sand-2); }
.chip i { width: 8px; height: 8px; border-radius: 50%; }
.due { display: inline-flex; align-items: center; gap: 4px; }
.due.is-late { color: var(--orange-d); font-weight: 600; }
.due.is-today { color: var(--ink); font-weight: 600; }
.tag { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 99px; background: var(--sand); font-size: 11.5px; font-weight: 600; color: var(--muted); }
.tag-late { background: var(--orange-50); color: var(--orange-d); }
.is-overdue::before { content: ''; position: absolute; left: -2px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--orange); }
.task-who { border-radius: 99px; }
.task-more { opacity: 0; }
.task:hover .task-more, .task-more:focus-visible { opacity: 1; }
@media (hover: none) { .task-more { opacity: 1; } }

.avatar { --c: #999; width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--c); color: #fff; font: 700 11.5px/1 var(--heading); letter-spacing: .02em; flex: none; box-shadow: 0 0 0 2px #fff; }
.avatar.sm { width: 26px; height: 26px; font-size: 10.5px; }
.avatar.xs { width: 22px; height: 22px; font-size: 9.5px; }
.avatar-empty { background: var(--sand-2); color: var(--muted); }
.sidebar .avatar { box-shadow: 0 0 0 2px var(--ink); }
.mark { --c: #999; width: 44px; height: 44px; border-radius: 12px; display: inline-grid; place-items: center; background: var(--c); color: #fff; font: 700 15px/1 var(--heading); flex: none; }
.mark.sm { width: 30px; height: 30px; font-size: 11px; border-radius: 9px; }
.mark.xs { width: 20px; height: 20px; font-size: 8.5px; border-radius: 6px; }
.mark.lg { width: 64px; height: 64px; font-size: 22px; border-radius: 18px; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.period { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.period .seg { margin-right: 8px; }
.period-label { font-size: 22px; font-weight: 700; min-width: 0; text-transform: capitalize; }
.period-label span { color: var(--muted); font-weight: 500; font-size: 16px; text-transform: none; }
.period-progress { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); min-width: 260px; }
.period-progress .bar { flex: 1; }
.bar { height: 8px; background: var(--sand); border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--orange); border-radius: 99px; transition: width .5s ease; }

.quick-add { display: flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 6px 6px 6px 14px; margin-bottom: 14px; box-shadow: var(--shadow); }
.quick-add:focus-within { border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-50); }
.quick-add > .ic { color: var(--orange); }
.quick-add input[name=title] { flex: 1; border: 0; outline: 0; background: none; min-width: 120px; height: 34px; }
.quick-add select, .quick-add input[type=date] { border: 0; background: var(--sand); border-radius: 9px; height: 34px; padding: 0 10px; font-size: 13px; max-width: 170px; }
.quick-add-inline { margin: 12px 0 0; box-shadow: none; background: var(--paper); }

.filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.filter-label { font-size: 12.5px; color: var(--muted); }
.select-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 0 4px 0 10px; height: 36px; color: var(--muted); }
.select-pill .ic { width: 15px; }
.select-pill select { border: 0; background: transparent; height: 34px; font-size: 13px; font-weight: 550; color: var(--ink); outline: 0; cursor: pointer; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); cursor: pointer; margin-left: 6px; }
.toggle input { position: absolute; opacity: 0; }
.toggle span { width: 34px; height: 20px; border-radius: 99px; background: var(--sand-2); position: relative; transition: background .15s; }
.toggle span::after { content: ''; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.toggle input:checked + span { background: var(--ink); }
.toggle input:checked + span::after { transform: translateX(14px); }
.toggle input:focus-visible + span { outline: 2.5px solid var(--orange); outline-offset: 2px; }

.group { margin-bottom: 18px; }
.group-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-family: var(--body); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 8px 4px; color: var(--ink); }
.group-title > span:last-child { color: var(--muted-2); font-weight: 600; }
.gdot { width: 8px; height: 8px; border-radius: 3px; background: #B8B0A0; }
.g-urgent .gdot { background: var(--orange); }
.g-hoog .gdot { background: var(--ink); }
.g-laag .gdot { background: transparent; border: 2px solid #CFC7B7; }
.g-done .gdot { background: var(--green); }
.g-done .task-list { opacity: .85; }
.all-done { display: flex; align-items: center; gap: 14px; background: var(--ink); color: #fff; border-radius: var(--r); padding: 18px 20px; margin-bottom: 18px; }
.all-done .ic { width: 28px; height: 28px; color: var(--orange); }
.all-done b { display: block; font-family: var(--heading); font-size: 18px; }
.all-done span { color: #B9B4AA; font-size: 13px; }

.empty { text-align: center; padding: 28px 16px; color: var(--muted); }
.empty img { width: 46px; opacity: .9; margin-bottom: 10px; }
.empty h3 { font-size: 17px; color: var(--ink); margin-bottom: 4px; }
.empty p { margin: 0 0 12px; font-size: 13.5px; }

/* dashboard zijkaarten */
.call-mini { display: flex; flex-direction: column; gap: 4px; }
.call-mini-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.call-mini-row a { flex: 1; font-weight: 550; font-size: 14px; }
.call-mini-row a:hover { color: var(--orange-d); }
.dots { display: flex; gap: 6px; }
.dotbtn { width: 30px; height: 30px; border-radius: 50%; border: 2px dashed #CFC7B7; display: grid; place-items: center; color: var(--muted-2); transition: all .15s; }
.dotbtn .ic { width: 14px; height: 14px; }
.dotbtn:hover { border-color: var(--orange); color: var(--orange); border-style: solid; }
.dotbtn.is-done { background: var(--orange); border: 2px solid var(--orange); color: #fff; }
.dotbtn.is-missed { border: 2px solid var(--orange-100); background: var(--orange-50); color: var(--orange-d); }
.attn { display: flex; align-items: center; gap: 10px; padding: 8px; margin: 0 -8px; border-radius: 10px; }
.attn:hover { background: var(--paper); }
.attn > span:not(.mark) { flex: 1; display: flex; flex-direction: column; }
.attn small { color: var(--orange-d); font-size: 12px; }
.attn .ic { color: var(--muted-2); }
.funnel { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.funnel-step { background: var(--sand); padding: 10px 6px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.funnel-step:first-child { border-radius: 10px 0 0 10px; }
.funnel-step:last-child { border-radius: 0 10px 10px 0; }
.funnel-step b { font: 700 22px/1 var(--heading); }
.funnel-step span { font-size: 11px; color: var(--muted); }
.funnel-step.is-won { background: var(--orange); }
.funnel-step.is-won span { color: var(--ink); }
.progress-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 32px; }
.prog-row { display: flex; align-items: center; gap: 12px; padding: 7px 0; }
.prog-name { width: 170px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prog-row .bar { flex: 1; }
.prog-num { font: 600 13px var(--heading); color: var(--muted); width: 36px; text-align: right; }
.prog-row:hover .prog-name { color: var(--orange-d); }
.act { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13.5px; }
.act + .act { border-top: 1px solid #F3EEE5; }
.act > span:not(.avatar) { flex: 1; }
.act small { color: var(--muted-2); font-size: 12px; }

/* ---------- klanten ---------- */
.search-field { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; height: 38px; color: var(--muted); }
.search-field input { border: 0; outline: 0; background: none; width: 200px; }
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.client-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; text-align: left; }
.client-card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(25, 25, 25, .08); }
.cc-top { display: flex; gap: 12px; align-items: flex-start; }
.cc-name { flex: 1; min-width: 0; }
.cc-name h3 { font-size: 17px; }
.cc-name p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.cc-deal { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--paper); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.cc-deal span { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.cc-deal .ic { width: 15px; color: var(--orange-d); }
.cc-deal strong { font: 700 16px var(--heading); white-space: nowrap; }
.cc-deal small { font-size: 12px; color: var(--muted); font-weight: 500; }
.cc-prog { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.cc-prog .bar { flex: 1; }
.cc-prog b { font-family: var(--heading); color: var(--ink); }
.cc-foot { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--muted); padding-top: 12px; border-top: 1px solid #F1ECE2; }
.cc-foot > span:not(.avatar) { display: flex; align-items: center; gap: 5px; }
.cc-foot span:nth-child(2) { flex: 1; }
.cc-foot .ic { width: 14px; }
.client-add { align-items: center; justify-content: center; border: 2px dashed var(--sand-2); background: transparent; box-shadow: none; color: var(--muted); font-weight: 600; min-height: 200px; }
.client-add .ic { width: 28px; height: 28px; color: var(--orange); }
.client-add:hover { border-color: var(--orange); color: var(--ink); }
.pill { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.pill-actief { background: var(--green-50); color: var(--green); }
.pill-gepauzeerd { background: #FFF4DA; color: #946B00; }
.pill-gestopt { background: var(--sand); color: var(--muted); }

.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 600; font-size: 13px; margin-bottom: 14px; }
.back:hover { color: var(--ink); }
.client-head { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; flex-wrap: wrap; }
.ch-main { flex: 1; min-width: 220px; }
.ch-main h1 { font-size: 36px; font-weight: 700; line-height: 1.1; }
.ch-main p { margin: 4px 0 0; color: var(--muted); }
.ch-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.status-select { height: 40px; border-radius: 12px; border: 1px solid var(--line); padding: 0 12px; font-weight: 600; font-size: 13.5px; }
.status-actief { background: var(--green-50); color: var(--green); border-color: #CFE5D7; }
.status-gepauzeerd { background: #FFF4DA; color: #946B00; border-color: #F2DFA8; }
.status-gestopt { background: var(--sand); }
.client-grid-2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 18px; }
.col .card + .card { margin-top: 0; }
.deal-card { background: var(--ink); color: #fff; border-color: var(--ink); position: relative; overflow: hidden; }
.deal-card::after { content: ''; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px; background: url(../assets/bb-oranje.svg) no-repeat center/contain; opacity: .95; }
.deal-card .eyebrow { color: var(--orange); }
.deal-card h2 { font-size: 24px; position: relative; z-index: 1; }
.deal-card h2 span { color: var(--orange); }
.deal-price { font: 700 34px/1.1 var(--heading); margin: 10px 0 4px; letter-spacing: -.02em; }
.deal-price small { font: 500 13px var(--body); color: #B9B4AA; letter-spacing: 0; }
.deal-desc { color: #D9D4CA; font-size: 13.5px; margin: 8px 0 0; }
.deal-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid #34322E; }
.deal-facts dt { font-size: 11.5px; color: #9D988E; }
.deal-facts dd { margin: 2px 0 0; font-weight: 600; font-size: 13.5px; }
.stepper-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; font-size: 13.5px; color: var(--muted); }
.stepper-row b { color: var(--ink); }
.stepper { display: flex; align-items: center; background: var(--sand); border-radius: 12px; padding: 3px; }
.stepper b { font: 700 18px var(--heading); width: 40px; text-align: center; }
.stepper .icon-btn { background: #fff; color: var(--ink); }
.stepper .icon-btn:hover { background: var(--orange); }
.rec-list { list-style: none; margin: 0; padding: 0; }
.rec-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 14px; }
.rec-list li + li { border-top: 1px solid #F1ECE2; }
.rec-list li > span:not(.avatar) { flex: 1; }
.rec-list small { color: var(--muted); font-weight: 600; }
.rec-list .is-off { opacity: .45; }
.facts { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.facts li { display: flex; align-items: center; gap: 10px; }
.facts .ic { color: var(--muted-2); width: 16px; }
.facts a:hover { color: var(--orange-d); }
.notes-label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.notes { width: 100%; min-height: 90px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--paper); resize: vertical; }
.notes:focus { outline: 0; border-color: var(--orange); background: #fff; }
.log-form { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.log-form select, .log-form input { height: 36px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; background: var(--paper); font-size: 13px; }
.log-form input[name=text] { flex: 1; min-width: 160px; }
.timeline { display: flex; flex-direction: column; }
.tl-item { display: flex; gap: 12px; padding: 10px 0; position: relative; }
.tl-item + .tl-item { border-top: 1px solid #F3EEE5; }
.tl-ic { width: 32px; height: 32px; border-radius: 10px; background: var(--orange-50); color: var(--orange-d); display: grid; place-items: center; flex: none; }
.tl-ic .ic { width: 16px; }
.tl-item > div { flex: 1; }
.tl-item p { margin: 0; font-size: 14px; }
.tl-item small { color: var(--muted); font-size: 12px; }
.tl-del { opacity: 0; width: 28px; height: 28px; }
.tl-item:hover .tl-del { opacity: 1; }

/* ---------- pipeline ---------- */
.flow-explain { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; margin-bottom: 18px; box-shadow: var(--shadow); }
.flow-explain > div { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13.5px; }
.flow-explain > div > b { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 700 12px var(--heading); }
.flow-explain .won > b { background: var(--orange); color: var(--ink); }
.flow-explain .won > b .ic { width: 14px; stroke-width: 3; }
.flow-explain small { display: block; color: var(--muted); font-weight: 500; font-size: 11.5px; }
.flow-explain > .ic { color: var(--muted-2); width: 16px; }
.flow-explain p { flex-basis: 100%; margin: 4px 0 0; font-size: 12.5px; }
.board { display: grid; grid-template-columns: repeat(5, minmax(190px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.col-lane { background: var(--sand); border-radius: var(--r); padding: 12px; min-height: 200px; }
.col-lane h3 { display: flex; align-items: center; justify-content: space-between; font-size: 14px; margin: 2px 4px 12px; }
.col-lane h3 span { background: #fff; border-radius: 99px; padding: 2px 9px; font-size: 12px; }
.lane-won { background: var(--ink); color: #fff; }
.lane-won h3 span { background: var(--orange); color: var(--ink); }
.lane-body { display: flex; flex-direction: column; gap: 10px; }
.lane-empty { text-align: center; color: var(--muted-2); font-size: 13px; padding: 20px 0; margin: 0; }
.lane-won .lane-empty { color: #77736B; }
.lane-add { width: 100%; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; border-radius: 12px; border: 2px dashed var(--sand-2); color: var(--muted); font-weight: 600; font-size: 13px; }
.lane-add:hover { border-color: var(--orange); color: var(--ink); }
.lead-card { width: 100%; text-align: left; background: #fff; color: var(--ink); border-radius: 12px; padding: 12px; border: 1px solid transparent; box-shadow: 0 1px 3px rgba(25, 25, 25, .06); display: flex; flex-direction: column; gap: 8px; transition: transform .15s, box-shadow .15s; }
.lead-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(25, 25, 25, .1); }
.lead-card.is-late { border-color: var(--orange-100); }
.lc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lc-top b { font-family: var(--heading); font-size: 15px; }
.lc-sub { margin: -4px 0 0; font-size: 12.5px; color: var(--muted); }
.steps { display: flex; gap: 4px; }
.steps i { flex: 1; height: 4px; border-radius: 99px; background: var(--sand-2); }
.steps i.is-done { background: var(--ink); }
.steps i.is-now { background: var(--orange); }
.lc-next { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); background: var(--paper); border-radius: 8px; padding: 6px 8px; }
.lc-next .ic { width: 14px; }
.lc-next span { flex: 1; }
.lc-next b { color: var(--ink); white-space: nowrap; }
.lc-next.late { background: var(--orange-50); color: var(--orange-d); }
.lc-next.late b { color: var(--orange-d); }
.lc-next.today b { color: var(--orange-d); }
.lc-next.won { background: var(--orange-50); color: var(--ink); }
.lc-next.won .ic { color: var(--orange); }
.lc-val { font: 700 14px var(--heading); }
.lc-val small { color: var(--muted); font-weight: 500; font-size: 11.5px; }
.lost { margin-top: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; }
.lost summary { cursor: pointer; font-weight: 700; font-family: var(--heading); }
.lost summary span { color: var(--muted-2); margin-left: 4px; }
.lost-list { display: flex; flex-direction: column; margin-top: 10px; }
.lost-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid #F1ECE2; text-align: left; font-size: 14px; }
.lost-row span { color: var(--muted); font-size: 13px; }

/* lead-detail */
.lead-contact { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.lead-contact .avatar { margin-left: auto; }
.flow { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.flow li { display: flex; gap: 14px; position: relative; padding-bottom: 18px; }
.flow li:not(:last-child)::before { content: ''; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--sand-2); }
.flow li.is-done:not(:last-child)::before { background: var(--ink); }
.flow-dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); color: var(--muted); font: 700 13px var(--heading); flex: none; }
.flow-dot .ic { width: 16px; stroke-width: 2.6; }
.flow li b { display: block; font-size: 14.5px; margin-top: 5px; }
.flow li small { color: var(--muted); font-size: 12.5px; }
.flow li small em { font-style: normal; font-weight: 700; color: var(--ink); }
.flow .is-done .flow-dot { background: var(--ink); color: #fff; }
.flow .is-now .flow-dot { background: var(--orange); color: var(--ink); box-shadow: 0 0 0 5px var(--orange-50); }
.flow .is-late small em { color: var(--orange-d); }
.flow .is-todo { opacity: .55; }
.flow .is-won .flow-dot { background: var(--orange); color: var(--ink); }
.flow .is-lost .flow-dot { background: #F6DCD1; color: #B7410E; }
.lead-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px; background: var(--paper); border-radius: 14px; margin-top: 4px; }
.lead-notes { margin-top: 16px; }
.lead-notes p { margin: 0; white-space: pre-wrap; }

/* ---------- belrooster ---------- */
.call-stats { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.call-stats > div:first-child { display: flex; align-items: center; gap: 14px; color: var(--muted); }
.call-stats b { color: var(--ink); font-family: var(--heading); font-size: 18px; }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 6px; }
.lgd { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.lgd-done { background: var(--orange); }
.lgd-open { border: 2px dashed #CFC7B7; }
.lgd-missed { background: var(--orange-50); border: 2px solid var(--orange-100); }
.table-card { padding: 0; overflow-x: auto; }
.call-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.call-table th { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.call-table th small { display: block; font-weight: 500; color: var(--muted-2); }
.call-table td { padding: 12px 16px; border-bottom: 1px solid #F1ECE2; vertical-align: middle; }
.call-table tr:last-child td { border-bottom: 0; }
.call-table td .dotbtn { display: inline-grid; margin-right: 4px; }
.call-table .is-now { background: #FFF9F5; }
.call-table th.is-now { color: var(--orange-d); }
.call-client { display: flex; align-items: center; gap: 10px; }
.call-client > span:last-child { display: flex; flex-direction: column; }
.call-client small { color: var(--muted); font-size: 12px; }
.call-client:hover b { color: var(--orange-d); }

/* ---------- instellingen ---------- */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.settings-grid .card + .card { margin-top: 0; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.team-row, .pkg-row { display: flex; align-items: center; gap: 10px; }
.team-row input:not([type=color]), .pkg-row input { height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; background: var(--paper); flex: 1; min-width: 0; }
.team-row input[type=color] { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 3px; background: #fff; }
.pkg-row label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.pkg-row label input { width: 84px; flex: none; }
.form-foot { display: flex; justify-content: flex-end; }
.keys { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.keys li { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.keys span { margin-left: 8px; color: var(--muted); }
.keys kbd { background: var(--sand); color: var(--ink); }

/* ---------- modal ---------- */
.backdrop { position: fixed; inset: 0; background: rgba(25, 25, 25, .42); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; z-index: 50; animation: fadeIn .15s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.modal { background: var(--white); border-radius: 20px; width: min(560px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: rise .2s ease; overflow: hidden; }
.modal > form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.modal-lg { width: min(760px, 100%); }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 22px 24px 8px; }
.modal-head h2 { font-size: 22px; font-weight: 700; }
.modal-head p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.modal-body { padding: 12px 24px 20px; overflow-y: auto; }
.modal-foot { display: flex; align-items: center; gap: 8px; padding: 14px 24px; border-top: 1px solid var(--line); background: var(--paper); }
fieldset { border: 0; padding: 0; margin: 0 0 22px; }
legend { font: 700 12px var(--body); text-transform: uppercase; letter-spacing: .1em; color: var(--orange-d); margin-bottom: 10px; padding: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.f { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.f small { color: var(--muted-2); font-weight: 500; }
.f-span { grid-column: 1 / -1; }
.f input, .f select, .f textarea { height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: var(--paper); font-size: 14px; font-weight: 400; transition: border-color .15s, background .15s; }
.f textarea { height: auto; padding: 10px 12px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { outline: 0; border-color: var(--orange); background: #fff; box-shadow: 0 0 0 4px var(--orange-50); }
.euro { position: relative; display: flex; }
.euro span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 500; }
.euro input { padding-left: 28px; width: 100%; }
.check-f { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.check-f input { width: 18px; height: 18px; accent-color: var(--orange); }
.seg-form { display: flex; margin-bottom: 14px; width: 100%; }
.seg-form label { flex: 1; }
.seg-form input { position: absolute; opacity: 0; }
.seg-form span { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px; border-radius: 9px; font-weight: 600; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.seg-form input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.seg-form input:checked + span .ic { color: var(--orange); }
.seg-form input:focus-visible + span { outline: 2.5px solid var(--orange); }
.rec-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 16px 0 8px; font-size: 13px; font-weight: 700; }
.rec-head small { display: block; font-weight: 500; color: var(--muted); }
.rec-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.rec-row { display: grid; grid-template-columns: 1fr 96px 110px 140px 34px; gap: 8px; align-items: center; }
.rec-row input, .rec-row select { height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; background: var(--paper); font-size: 13.5px; min-width: 0; }
.rec-n { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.rec-n input { width: 52px; }
.hint { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); background: var(--paper); border-radius: 10px; padding: 10px 12px; margin: 14px 0 0; }
.hint .ic { color: var(--orange-d); width: 16px; }
.call-big { display: flex; align-items: center; gap: 14px; background: var(--ink); color: #fff; border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; font: 700 20px var(--heading); }
.call-big small { display: block; font: 500 12.5px var(--body); color: #B9B4AA; }
.call-big .ic { width: 22px; height: 22px; color: var(--orange); }
.call-big:hover { background: #2A2926; }

/* palette */
.modal-palette { width: min(600px, 100%); align-self: start; margin-top: 10vh; }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.palette-input .ic { color: var(--orange); width: 20px; height: 20px; }
.palette-input input { flex: 1; border: 0; outline: 0; font-size: 17px; background: none; }
.palette-results { padding: 8px; max-height: 420px; overflow-y: auto; }
.pal-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; }
.pal-item span:last-child { display: flex; flex-direction: column; }
.pal-item small { color: var(--muted); font-size: 12px; }
.pal-item.is-sel, .pal-item:hover { background: var(--orange-50); }
.pal-ic { width: 30px; height: 30px; border-radius: 9px; background: var(--sand); display: grid; place-items: center; }
.pal-ic .ic { width: 15px; }
.pal-empty { padding: 20px; text-align: center; }

/* menu */
.menu { position: fixed; z-index: 70; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(25, 25, 25, .16); padding: 6px; min-width: 200px; animation: rise .12s ease; }
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 9px; font-size: 13.5px; font-weight: 500; text-align: left; }
.menu button:hover { background: var(--paper); }
.menu button.is-active { background: var(--orange-50); font-weight: 650; }
.menu button.danger { color: #B7410E; }
.menu button .ic { width: 16px; color: var(--muted); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }

/* toasts */
.toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 80; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 14px; background: var(--ink); color: #fff; padding: 10px 10px 10px 16px; border-radius: 14px; box-shadow: var(--shadow-lg); font-size: 13.5px; animation: rise .2s ease; transition: opacity .3s, transform .3s; max-width: calc(100vw - 32px); }
.toast:not(:has(button)) { padding-right: 16px; }
.toast button { display: inline-flex; align-items: center; gap: 6px; color: var(--orange); font-weight: 700; padding: 6px 10px; border-radius: 9px; }
.toast button:hover { background: #2C2B28; }
.toast button .ic { width: 15px; }
.toast.is-out { opacity: 0; transform: translateY(8px); }

/* confetti */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: fall linear forwards; box-shadow: 0 0 0 1px rgba(25, 25, 25, .06); }
@keyframes fall { to { top: 105%; transform: translateX(60px) rotate(720deg); } }

/* ---------- responsive ---------- */
@media (max-width: 1240px) { .client-grid-2 { grid-template-columns: 1fr; } .kpis { grid-template-columns: 1fr 1fr; } }
@media (max-width: 1100px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .dash-grid, .client-grid-2 { grid-template-columns: 1fr; }
  .progress-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; flex-direction: row; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); z-index: 40; }
  .brand, .sidebar-foot { display: none; }
  .nav { flex-direction: row; justify-content: space-around; width: 100%; }
  .nav-item { flex-direction: column; gap: 3px; padding: 6px 4px; font-size: 10.5px; flex: 1; text-align: center; position: relative; }
  .nav-item span { flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .nav-item .badge { position: absolute; top: 2px; left: 55%; font-size: 10px; padding: 2px 5px; }
  .view { padding: 22px 16px 110px; }
  .page-head h1 { font-size: 32px; }
  .settings-grid, .grid-2 { grid-template-columns: 1fr; }
  .quick-add { flex-wrap: wrap; }
  .quick-add input[name=title] { flex-basis: calc(100% - 30px); }
  .quick-add select, .quick-add input[type=date] { flex: 1; max-width: none; }
  .rec-row { grid-template-columns: 1fr 1fr; }
  .rec-row input[name=rt] { grid-column: 1 / -1; }
  .board { grid-template-columns: repeat(5, 78vw); }
  .period-progress { min-width: 0; width: 100%; }
  .search-field input { width: 130px; }
  .client-grid { grid-template-columns: 1fr; }
  .prog-name { width: 120px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .modal { max-height: calc(100vh - 20px); }
  .backdrop { padding: 10px; align-items: end; }
  .toasts { bottom: 86px; }
}
@media (max-width: 520px) {
  .kpis { grid-template-columns: 1fr; }
  .kpi-value { font-size: 28px; }
  .filters .grow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .confetti { display: none; }
}
