/*
  Ink & Blink helpdesk — rustig, dun, veel lucht (in de geest van app.repley.io),
  in de merkkleuren: #F2EEED, terracotta, salie, inkt.
*/
:root {
  --bg: #FFFFFF;
  --vlak: #FAF9F8;          /* zijbalk */
  --kaart: #FFFFFF;
  --merk: #F2EEED;          /* merkkleur: actief menu-item en zachte vlakken */
  --inkt: #1F1B17;
  --inkt-2: #3F3832;
  --zacht: #6F6760;         /* 5.3:1 op wit */
  --stil: #9A928B;          /* alleen mono-labels en randinfo */
  --lijn: rgba(31, 27, 23, .08);
  --lijn-2: rgba(31, 27, 23, .14);
  --hover: rgba(31, 27, 23, .04);
  --actief: #F2EEED;
  --terra: #B0714C;
  --terra-d: #93593A;
  --terra-bg: rgba(176, 113, 76, .09);
  --terra-rand: rgba(176, 113, 76, .3);
  /* duidelijke kleuren per soort, zoals Repley */
  --oranje: #E2682B;
  --oranje-bg: rgba(226, 104, 43, .1);
  --geel: #C98A06;
  --geel-bg: rgba(226, 170, 30, .14);
  --groen: #1F8F5F;
  --groen-bg: rgba(31, 143, 95, .1);
  --blauw: #2F6FDB;
  --blauw-bg: rgba(47, 111, 219, .1);
  --rood: #D93A2F;
  --rood-bg: rgba(217, 58, 47, .09);
  --salie: #1F8F5F;
  --salie-bg: rgba(31, 143, 95, .1);
  --r: 10px;
  --r-groot: 14px;
  --sans: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --snel: 160ms cubic-bezier(.2, .7, .3, 1);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--inkt); font: 14px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.02em; }
.verborgen { display: none !important; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .02em; color: var(--stil); }
.label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--stil); }

/* ── knoppen & velden ── */
.knop { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--lijn-2); background: var(--kaart); border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 500; white-space: nowrap; text-decoration: none; transition: background var(--snel), border-color var(--snel), color var(--snel); }
.knop:hover { border-color: rgba(42, 36, 29, .26); }
.knop:disabled { opacity: .45; cursor: default; }
.knop svg { width: 15px; height: 15px; flex: none; }
.knop.hoofd { background: var(--inkt); border-color: var(--inkt); color: #fff; }
.knop.hoofd:hover { background: #3b332b; }
.knop.accent { background: var(--terra-bg); border-color: var(--terra-rand); color: var(--terra-d); }
.knop.accent:hover { background: rgba(176, 113, 76, .15); }
.knop.stil { background: transparent; border-color: transparent; color: var(--inkt-2); }
.knop.stil:hover { background: var(--hover); }
.knop.pil { border-radius: 99px; height: 28px; padding: 0 11px; font-size: 12.5px; color: var(--zacht); background: transparent; }
.knop.pil:hover { color: var(--inkt); background: var(--kaart); }
.knop.groot { height: 38px; padding: 0 18px; border-radius: 99px; font-size: 13.5px; }
.knop.gevaar { color: var(--rood); }
.knop.icoon { width: 32px; padding: 0; }

.veld { width: 100%; height: 36px; border: 1px solid var(--lijn-2); background: var(--kaart); border-radius: 8px; padding: 0 11px; outline: none; font-size: 13.5px; transition: border-color var(--snel), box-shadow var(--snel); }
textarea.veld { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.6; }
.veld:focus { border-color: var(--terra-rand); box-shadow: 0 0 0 3px var(--terra-bg); }
select.veld { width: auto; padding-right: 28px; }
label.lbl { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.hulp { color: var(--zacht); font-size: 12.5px; margin: 6px 0 0; }

.tag { display: inline-flex; align-items: center; gap: 5px; height: 21px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 500; border: 1px solid var(--lijn-2); color: var(--inkt-2); background: transparent; white-space: nowrap; text-decoration: none; }
.tag.terra { border-color: var(--terra-rand); color: var(--terra-d); background: var(--terra-bg); }
.tag.salie { border-color: rgba(95, 107, 82, .25); color: var(--salie); background: var(--salie-bg); }
.tag.geel { border-color: rgba(154, 116, 20, .25); color: var(--geel); background: var(--geel-bg); }
.tag.rood { border-color: rgba(180, 73, 59, .25); color: var(--rood); background: var(--rood-bg); }
.stip { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; background: var(--stil); }
.stip.terra { background: var(--terra); } .stip.salie { background: var(--salie); } .stip.rood { background: var(--rood); } .stip.geel { background: #D6AA3C; } .stip.hol { background: transparent; border: 1px solid var(--lijn-2); }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; font-weight: 500; background: var(--kaart); border: 1px solid var(--lijn-2); color: var(--inkt-2); flex: none; font-family: var(--mono); }
.avatar.groot { width: 38px; height: 38px; font-size: 11.5px; }
.avatar.merk { background: var(--terra-bg); border-color: var(--terra-rand); color: var(--terra-d); }
.logo { width: 28px; height: 28px; border-radius: 7px; background: var(--terra); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700; letter-spacing: .02em; flex: none; }

/* ── inloggen ── */
.inlog { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.inlog-kaart { width: 100%; max-width: 360px; }
.inlog-kaart .kop { display: flex; align-items: center; gap: 10px; margin-bottom: 36px; font-weight: 600; }
.inlog-kaart h1 { font-size: 28px; letter-spacing: -.035em; margin: 8px 0 6px; }
.inlog-kaart p { color: var(--zacht); margin: 0 0 22px; }
.inlog-kaart form { display: grid; gap: 10px; }
.inlog-kaart .veld, .inlog-kaart .knop { height: 42px; }
.code-veld { letter-spacing: .5em; font-size: 20px !important; text-align: center; font-family: var(--mono); }
.melding { font-size: 13px; padding: 9px 12px; border-radius: 8px; background: var(--rood-bg); color: var(--rood); }

/* ── indeling ── */
.app { display: grid; grid-template-columns: 248px 1fr; height: 100vh; height: 100dvh; }
.zij { background: var(--vlak); border-right: 1px solid var(--lijn); display: flex; flex-direction: column; padding: 14px 10px 12px; overflow-y: auto; }
.werkruimte { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; }
.werkruimte b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.2; }
.zoekknop { display: flex; align-items: center; gap: 8px; width: 100%; height: 34px; padding: 0 10px; margin-bottom: 12px; border: 1px solid var(--lijn); background: var(--kaart); border-radius: 8px; color: var(--stil); font-size: 13px; cursor: pointer; text-align: left; }
.zoekknop svg { width: 14px; height: 14px; }
.zoekknop kbd { margin-left: auto; font-family: var(--mono); font-size: 10.5px; border: 1px solid var(--lijn-2); border-radius: 5px; padding: 0 5px; color: var(--stil); }
.nav { display: grid; gap: 1px; }
.nav .label { padding: 16px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; border-radius: 7px; color: var(--inkt-2); text-decoration: none; font-size: 13.5px; transition: background var(--snel), color var(--snel); }
.nav a:hover { background: var(--hover); color: var(--inkt); }
.nav a.aan { background: var(--actief); color: var(--inkt); font-weight: 500; }
.nav a svg { width: 16px; height: 16px; flex: none; color: var(--zacht); }
.nav a.aan svg { color: var(--inkt); }
.nav a.rood svg { color: var(--rood); }
.nav .tel { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--stil); }
.nav .tel.rood { color: var(--rood); }
.zij-voet { margin-top: auto; padding: 12px 4px 0 6px; border-top: 1px solid var(--lijn); display: flex; align-items: center; gap: 10px; }
.zij-voet .wie { min-width: 0; flex: 1; font-size: 12.5px; line-height: 1.3; }
.zij-voet .wie span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.online { width: 7px; height: 7px; border-radius: 50%; background: var(--salie); flex: none; }
.hoofdvlak { overflow: hidden; display: flex; flex-direction: column; min-width: 0; background: var(--bg); }
.balk-mobiel { display: none; }

/* ── dashboard ── */
.dash { overflow-y: auto; height: 100%; }
.dash-binnen { max-width: 1180px; margin: 0 auto; padding: 44px 44px 40px; }
.dash-kop { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; }
.dash-kop h1 { font-size: 34px; letter-spacing: -.035em; margin-top: 8px; }
.dash-kop p { margin: 4px 0 0; color: var(--zacht); }
.schakel { display: inline-flex; padding: 3px; border: 1px solid var(--lijn); border-radius: 9px; background: var(--vlak); }
.schakel button { height: 28px; padding: 0 14px; border: 0; background: transparent; border-radius: 6px; cursor: pointer; font-size: 13px; color: var(--zacht); }
.schakel button.aan { background: var(--kaart); color: var(--inkt); font-weight: 500; box-shadow: 0 1px 2px rgba(42, 36, 29, .08); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--lijn); border-bottom: 1px solid var(--lijn); }
.kpi { padding: 22px 22px 22px 0; min-width: 0; }
.kpi + .kpi { padding-left: 22px; border-left: 1px solid var(--lijn); }
.kpi .t { font-size: 13px; color: var(--zacht); }
.kpi .w { font-size: 38px; font-weight: 600; letter-spacing: -.04em; line-height: 1.15; margin: 8px 0 6px; font-variant-numeric: tabular-nums; }
.kpi .w small { font-size: 18px; color: var(--zacht); font-weight: 500; letter-spacing: 0; margin-left: 1px; }
.kpi .w.nul { color: var(--stil); }
.blok { padding: 26px 0; border-bottom: 1px solid var(--lijn); }
.blok-kop { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.blok-kop h2 { font-size: 14.5px; }
.blok-kop .rechts { margin-left: auto; }
.grafiek svg { width: 100%; height: auto; display: block; overflow: visible; }
.wachtrij { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; font-size: 13.5px; }
.wachtrij > span { display: inline-flex; align-items: center; gap: 8px; }
.wachtrij .mono { font-size: 12px; color: var(--zacht); }
.wachtrij a.rechts { margin-left: auto; color: var(--terra-d); text-decoration: none; font-weight: 500; }
.aandacht-rij { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--lijn); flex-wrap: wrap; }
.aandacht-rij:first-of-type { border-top: 0; }
.aandacht-rij .knop { margin-left: auto; }
.statusregel { display: flex; gap: 18px; flex-wrap: wrap; padding-top: 18px; }
.statusregel span { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; color: var(--zacht); }
.statusregel span.slecht { color: var(--terra-d); }
.leeg-regel { color: var(--zacht); font-size: 13.5px; padding: 4px 0; display: flex; align-items: center; gap: 10px; }

/* ── inbox ── */
.inbox { display: grid; grid-template-columns: 340px 1fr; height: 100%; min-height: 0; }
.lijst { border-right: 1px solid var(--lijn); display: flex; flex-direction: column; min-height: 0; background: var(--vlak); }
.lijst-kop { padding: 16px 16px 10px; display: grid; gap: 10px; }
.lijst-kop .rij { display: flex; align-items: center; gap: 8px; }
.lijst-kop .rij .knop { margin-left: auto; }
.zoek { position: relative; }
.zoek svg { position: absolute; left: 10px; top: 50%; width: 14px; height: 14px; transform: translateY(-50%); color: var(--stil); }
.zoek .veld { padding-left: 30px; height: 34px; }
.tickets { overflow-y: auto; flex: 1; padding: 2px 8px 16px; }
.tk { display: grid; grid-template-columns: 7px 1fr auto; gap: 2px 11px; align-items: baseline; padding: 11px 10px; border-radius: 9px; text-decoration: none; color: inherit; transition: background var(--snel); position: relative; }
.tk + .tk::before { content: ''; position: absolute; left: 28px; right: 10px; top: 0; border-top: 1px solid var(--lijn); }
.tk:hover { background: var(--hover); }
.tk.aan { background: var(--kaart); box-shadow: 0 1px 2px rgba(42, 36, 29, .05), 0 0 0 1px var(--lijn); }
.tk.aan::before, .tk.aan + .tk::before { border-color: transparent; }
.tk .stip { align-self: center; }
.tk-naam { font-weight: 500; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-tijd { font-family: var(--mono); font-size: 11px; color: var(--stil); }
.tk-onderwerp { grid-column: 2 / 4; font-size: 13px; color: var(--zacht); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-tags { grid-column: 2 / 4; display: flex; gap: 5px; margin-top: 6px; flex-wrap: wrap; }
.leeg { text-align: center; color: var(--zacht); padding: 56px 24px; font-size: 13.5px; }
.leeg h3 { color: var(--inkt); font-size: 15px; margin-bottom: 4px; }

/* ── ticket ── */
.detail-vak { min-height: 0; height: 100%; min-width: 0; }
.inbox > *, .detail > * { min-width: 0; }
.detail { display: grid; grid-template-columns: 1fr 320px; min-height: 0; height: 100%; }
.gesprek { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.werkbalk { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px 0 24px; border-bottom: 1px solid var(--lijn); flex: none; }
.werkbalk .map { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; }
.werkbalk .map svg { width: 15px; height: 15px; color: var(--zacht); }
.werkbalk .rechts { margin-left: auto; display: flex; gap: 6px; }
.menu { position: relative; }
.menu-lijst { position: absolute; right: 0; top: 38px; z-index: 30; min-width: 240px; background: var(--kaart); border: 1px solid var(--lijn-2); border-radius: 10px; padding: 5px; box-shadow: 0 12px 32px rgba(42, 36, 29, .12); }
.menu-lijst button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.menu-lijst button:hover { background: var(--hover); }
.gesprek-scroll { flex: 1; overflow-y: auto; min-height: 0; }
.gesprek-kop { padding: 26px 32px 4px; display: grid; gap: 10px; max-width: 920px; }
.gesprek-kop .titelrij { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gesprek-kop h2 { font-size: 22px; letter-spacing: -.025em; line-height: 1.3; }
.klantregel { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; }
.klantregel b { font-weight: 500; }
.klantregel .mono { font-size: 11.5px; }
.escalatie-balk { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--rood); background: var(--rood-bg); border: 1px solid rgba(180, 73, 59, .18); border-radius: 9px; padding: 9px 12px; }
.escalatie-balk svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.berichten { padding: 20px 32px 28px; display: grid; gap: 22px; max-width: 920px; }
.bericht { display: grid; grid-template-columns: 30px 1fr; gap: 12px; }
.bericht-kop { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 5px 0 8px; }
.bericht-kop b { font-weight: 500; font-size: 13.5px; }
.bericht-lijf { background: var(--kaart); border: 1px solid var(--lijn); border-radius: 12px; padding: 13px 16px; }
.bericht.uit .bericht-lijf { background: transparent; border-color: var(--lijn-2); }
.bericht-tekst { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.65; }
.citaat-knop { margin-top: 8px; font-size: 11px; color: var(--stil); background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--mono); }
.citaat-knop:hover { color: var(--inkt-2); }
.citaat { margin-top: 8px; white-space: pre-wrap; color: var(--zacht); font-size: 12.5px; border-left: 2px solid var(--lijn-2); padding-left: 10px; overflow-wrap: anywhere; }

.schrijf { border-top: 1px solid var(--lijn); padding: 14px 24px 16px; display: grid; gap: 10px; flex: none; }
.concept-balk { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; padding: 8px 12px; border: 1px solid var(--terra-rand); background: var(--terra-bg); border-radius: 9px; color: var(--terra-d); }
.concept-balk svg { width: 14px; height: 14px; flex: none; }
.concept-balk .bronnen { display: flex; gap: 5px; flex-wrap: wrap; margin-left: auto; }
.concept-balk.bezig { border-color: var(--lijn-2); background: transparent; color: var(--zacht); }
.schrijfvak { background: var(--kaart); border: 1px solid var(--lijn-2); border-radius: 12px; overflow: hidden; transition: border-color var(--snel), box-shadow var(--snel); }
.schrijfvak:focus-within { border-color: var(--terra-rand); box-shadow: 0 0 0 3px var(--terra-bg); }
.schrijfvak-kop { display: flex; align-items: center; gap: 10px; padding: 8px 12px 0; }
.schrijfvak-kop b { font-size: 12.5px; font-weight: 500; background: var(--actief); padding: 3px 9px; border-radius: 6px; }
.schrijfvak-kop .mono { margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schrijfvak textarea { display: block; width: 100%; border: 0; outline: none; resize: vertical; min-height: 150px; max-height: 44vh; padding: 10px 14px 14px; background: transparent; line-height: 1.65; font-size: 14px; }
.schrijf-onder { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.schrijf-onder .rechts { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.wens { height: 28px; border: 1px solid var(--lijn-2); border-radius: 99px; padding: 0 12px; font-size: 12.5px; background: transparent; outline: none; width: 200px; }
.wens:focus { border-color: var(--terra-rand); background: var(--kaart); }
.bezig-tekst { display: inline-flex; align-items: center; gap: 8px; }
.draai { width: 13px; height: 13px; border: 1.5px solid var(--lijn-2); border-top-color: var(--terra); border-radius: 50%; animation: draai .8s linear infinite; flex: none; }
@keyframes draai { to { transform: rotate(360deg); } }

.klantvak { border-left: 1px solid var(--lijn); background: var(--vlak); overflow-y: auto; display: flex; flex-direction: column; }
.tabs { display: flex; border-bottom: 1px solid var(--lijn); flex: none; }
.tabs button { flex: 1; height: 52px; border: 0; background: none; cursor: pointer; font-size: 13.5px; color: var(--zacht); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.aan { color: var(--inkt); font-weight: 500; border-bottom-color: var(--terra); }
.klant-inhoud { padding: 18px 18px 24px; display: grid; gap: 24px; align-content: start; }
.klant-kop { display: flex; gap: 12px; align-items: center; min-width: 0; }
.klant-kop b { font-size: 14.5px; font-weight: 600; }
.klant-kop .mono { display: block; margin-top: 2px; overflow-wrap: anywhere; }
.sectie > .label { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.bestelling { background: var(--kaart); border: 1px solid var(--lijn); border-radius: 10px; padding: 11px 12px; font-size: 13px; }
.bestelling + .bestelling { margin-top: 8px; }
.bestelling .rij { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bestelling .rij .mono { color: var(--inkt-2); font-size: 11.5px; }
.bestelling .rij a { margin-left: auto; font-size: 12px; color: var(--terra-d); text-decoration: none; }
.bestelling .prod { color: var(--zacht); margin-top: 5px; }
.bestelling .tt { display: inline-block; margin-top: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--salie); }
.regels div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 13px; border-bottom: 1px solid var(--lijn); }
.regels div span:first-child { color: var(--zacht); }
.eerder a { display: flex; gap: 8px; align-items: center; padding: 6px 0; font-size: 13px; text-decoration: none; }
.eerder a span:nth-child(2) { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tijdlijn div { display: grid; grid-template-columns: 74px 1fr; gap: 8px; padding: 8px 0; font-size: 12.5px; border-bottom: 1px solid var(--lijn); color: var(--inkt-2); }
.tijdlijn .mono { font-size: 10.5px; padding-top: 1px; }

/* ── pagina's ── */
.pagina { overflow-y: auto; height: 100%; }
.pagina-binnen { max-width: 1080px; margin: 0 auto; padding: 44px 44px 48px; }
.pagina-kop { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 26px; flex-wrap: wrap; }
.pagina-kop h1 { font-size: 30px; letter-spacing: -.035em; margin-top: 8px; }
.pagina-kop p { margin: 4px 0 0; color: var(--zacht); }
.paneel { background: var(--kaart); border: 1px solid var(--lijn); border-radius: var(--r-groot); padding: 20px 22px; }
.paneel + .paneel { margin-top: 14px; }
.paneel h2 { font-size: 14.5px; margin-bottom: 14px; }
.twee { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.staaf-rij { display: grid; grid-template-columns: 150px 1fr minmax(32px, auto); gap: 12px; align-items: center; font-size: 13px; padding: 5px 0; }
.staaf { height: 6px; background: var(--actief); border-radius: 99px; overflow: hidden; }
.staaf i { display: block; height: 100%; background: var(--terra); border-radius: 99px; }
.staaf-rij .n { text-align: right; font-family: var(--mono); font-size: 11.5px; color: var(--zacht); }
.meter { height: 6px; background: var(--actief); border-radius: 99px; position: relative; margin: 12px 0 8px; }
.meter i { display: block; height: 100%; border-radius: 99px; background: var(--salie); }
.meter i.warm { background: #D6AA3C; } .meter i.heet { background: var(--rood); }
.meter .streep { position: absolute; left: 80%; top: -4px; bottom: -4px; width: 1px; background: var(--inkt); opacity: .3; }
.kennis-indeling { display: grid; grid-template-columns: 280px 1fr; gap: 14px; align-items: start; }
.kennis-lijst { display: grid; gap: 1px; }
.kennis-lijst button { text-align: left; background: none; border: 0; border-radius: 8px; padding: 9px 11px; cursor: pointer; font-size: 13.5px; }
.kennis-lijst button:hover { background: var(--hover); }
.kennis-lijst button.aan { background: var(--kaart); box-shadow: 0 0 0 1px var(--lijn); }
.kennis-lijst small { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--stil); margin-top: 2px; }
.formulier { display: grid; gap: 18px; }
.acties { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tabel { width: 100%; border-collapse: collapse; font-size: 13px; }
.tabel th { text-align: left; font-family: var(--mono); font-weight: 400; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--stil); padding: 0 12px 10px; border-bottom: 1px solid var(--lijn); }
.tabel td { padding: 10px 12px; border-bottom: 1px solid var(--lijn); vertical-align: top; }
.tabel td.tijd { white-space: nowrap; font-family: var(--mono); font-size: 11.5px; color: var(--zacht); }
.tabel a { color: var(--terra-d); text-decoration: none; }
.tabel-houder { overflow-x: auto; }
.feit { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 13px; border-bottom: 1px solid var(--lijn); }
.feit span:first-child { color: var(--zacht); }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--inkt); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 13px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); z-index: 50; max-width: calc(100vw - 32px); }
.toast.fout { background: var(--rood); }

/* ── kleinere schermen ── */
@media (max-width: 1240px) {
  .detail { overflow-y: auto; display: block; }
  .gesprek { min-height: 100%; }
  .gesprek-scroll { overflow: visible; flex: none; }
  .klantvak { border-left: 0; border-top: 1px solid var(--lijn); }
}
@media (max-width: 1000px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi:nth-child(3) { padding-left: 0; border-left: 0; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--lijn); }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .zij { position: fixed; inset: 0 auto 0 0; width: 272px; z-index: 40; transform: translateX(-100%); transition: transform .22s cubic-bezier(.2, .7, .3, 1); box-shadow: 0 0 40px rgba(0, 0, 0, .14); }
  .zij.open { transform: none; }
  .balk-mobiel { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 12px; background: var(--vlak); border-bottom: 1px solid var(--lijn); font-weight: 600; }
  .inbox { grid-template-columns: 1fr; }
  .inbox.met-ticket .lijst { display: none; }
  .inbox:not(.met-ticket) .detail-vak { display: none; }
  .dash-binnen, .pagina-binnen { padding: 26px 16px 32px; }
  .dash-kop h1 { font-size: 27px; }
  .kpi .w { font-size: 30px; }
  .twee, .kennis-indeling { grid-template-columns: 1fr; }
  .gesprek-kop, .berichten { padding-left: 16px; padding-right: 16px; }
  .werkbalk { padding: 0 12px; }
  .werkbalk > .mono { display: none; }
  .concept-balk .bronnen { margin-left: 0; }
  .schrijfvak-kop .mono { display: none; }
  .schrijf { padding: 12px 12px 14px; }
  .schrijf-onder .rechts { margin-left: 0; width: 100%; flex-wrap: wrap; }
  .schrijf-onder .rechts .knop { flex: 1 1 auto; }
  .schrijf-onder .rechts .knop.hoofd { flex-basis: 100%; order: -1; }
  .wens { width: 100%; }
  .staaf-rij { grid-template-columns: 110px 1fr 28px; }
}
@media (min-width: 861px) { .alleen-mobiel { display: none !important; } }
.schrijf { grid-template-columns: minmax(0, 1fr); }

/* ── kleuren per icoon (Repley-stijl) ── */
.nav a .i-oranje, .i-oranje { color: var(--oranje) !important; }
.nav a .i-geel, .i-geel { color: var(--geel) !important; }
.nav a .i-groen, .i-groen { color: var(--groen) !important; }
.nav a .i-blauw, .i-blauw { color: var(--blauw) !important; }
.nav a .i-terra, .i-terra { color: var(--terra) !important; }
.nav .tel.oranje { color: var(--oranje); font-weight: 500; }
.nav .badge { margin-left: auto; min-width: 20px; height: 18px; padding: 0 6px; border-radius: 99px; background: var(--rood); color: #fff; font-family: var(--mono); font-size: 10.5px; display: grid; place-items: center; }
.nav .voortgang { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--oranje); }
.nav .kopregel { display: flex; align-items: center; justify-content: space-between; padding: 16px 10px 6px; }
.nav .kopregel .label { padding: 0; }
.nav-onder { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--lijn); display: grid; gap: 1px; }
.nav-onder + .zij-voet { margin-top: 10px; }
.zij-voet { margin-top: 0; }
.nav a.binnenkort { color: var(--stil); }
.nav a.binnenkort .tel { font-size: 10px; letter-spacing: .06em; }
.stip.oranje { background: var(--oranje); } .stip.blauw { background: var(--blauw); } .stip.groen { background: var(--groen); }
.tag.oranje { border-color: rgba(226, 104, 43, .3); color: var(--oranje); background: var(--oranje-bg); }
.tag.blauw { border-color: rgba(47, 111, 219, .28); color: var(--blauw); background: var(--blauw-bg); }
.tag.groen { border-color: rgba(31, 143, 95, .28); color: var(--groen); background: var(--groen-bg); }
.kiezer { position: relative; display: inline-flex; }
.kiezer select { appearance: none; -webkit-appearance: none; height: 26px; border: 1px solid var(--lijn-2); border-radius: 99px; padding: 0 26px 0 11px; font-size: 12px; font-family: var(--mono); background: var(--kaart); cursor: pointer; color: var(--inkt-2); }
.kiezer::after { content: '▾'; position: absolute; right: 10px; top: 50%; transform: translateY(-52%); font-size: 10px; color: var(--stil); pointer-events: none; }
.kiezer.p1 select { border-color: rgba(226, 104, 43, .35); color: var(--oranje); background: var(--oranje-bg); }
.tag-toevoegen { height: 21px; border: 1px dashed var(--lijn-2); border-radius: 6px; padding: 0 8px; font-size: 11.5px; background: none; color: var(--stil); cursor: pointer; }
.tag-toevoegen:hover { color: var(--inkt-2); border-color: var(--zacht); }
.tag .weg { margin-left: 2px; border: 0; background: none; padding: 0; cursor: pointer; color: inherit; opacity: .6; font-size: 12px; line-height: 1; }
.notitie { background: #FFF9E8; border: 1px solid rgba(201, 138, 6, .2); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.notitie + .notitie { margin-top: 8px; }
.notitie .kop { display: flex; justify-content: space-between; margin-bottom: 4px; }
.notitie .kop b { font-weight: 500; }
.notitie-toevoegen { border: 0; background: none; padding: 6px 0 0; cursor: pointer; color: var(--stil); font-size: 12.5px; }
.notitie-toevoegen:hover { color: var(--inkt-2); }
.qa-rij { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--lijn); font-size: 13px; }
.qa-rij .stip { margin-top: 6px; }
.feedback-rij { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.stappen { display: grid; gap: 10px; }
.stap { display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid var(--lijn); border-radius: 12px; background: var(--kaart); }
.stap .nr { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--lijn-2); display: grid; place-items: center; font-family: var(--mono); font-size: 12px; color: var(--zacht); }
.stap.klaar .nr { border-color: var(--groen); background: var(--groen); color: #fff; }
.stap h3 { font-size: 14.5px; margin-bottom: 3px; }
.stap p { margin: 0; color: var(--zacht); font-size: 13px; }
.stap.klaar h3 { color: var(--zacht); text-decoration: line-through; text-decoration-color: var(--lijn-2); }
.balk-voortgang { height: 6px; background: var(--actief); border-radius: 99px; overflow: hidden; margin: 6px 0 22px; }
.balk-voortgang i { display: block; height: 100%; background: var(--groen); border-radius: 99px; transition: width .3s; }
.kaarten { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.int-kaart { border: 1px solid var(--lijn); border-radius: 12px; padding: 16px 18px; background: var(--kaart); display: grid; gap: 8px; align-content: start; }
.int-kaart .kop { display: flex; align-items: center; gap: 10px; }
.int-kaart .kop b { font-size: 14.5px; font-weight: 600; }
.int-kaart .kop .tag { margin-left: auto; }
.int-kaart p { margin: 0; color: var(--zacht); font-size: 13px; }
.int-logo { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--actief); }
.int-logo svg { width: 17px; height: 17px; }
.melding-rij { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--lijn); text-decoration: none; }
.melding-rij.nieuw b { font-weight: 600; }
.melding-rij .mono { margin-left: auto; }
.segment-rij { display: flex; gap: 26px; flex-wrap: wrap; }
.segment-rij > div { min-width: 120px; }
.segment-rij .w { font-size: 26px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.drie { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; }
.drie > div { padding: 22px 22px 22px 0; }
.drie > div + div { padding-left: 22px; border-left: 1px solid var(--lijn); }
@media (max-width: 1000px) { .drie { grid-template-columns: 1fr; } .drie > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--lijn); } }
@media (max-width: 860px) { .stap { grid-template-columns: 30px 1fr; } .stap .knop { grid-column: 2; justify-self: start; } }
.werkbalk > .mono { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 1500px) { .werkbalk > .mono { display: none; } }
.werkbalk .map { white-space: nowrap; }
@media (max-width: 860px) { .werkbalk .map { display: none; } .werkbalk .kiezer select { max-width: 124px; } .werkbalk .rechts { min-width: 0; } }

/* tabbladen, schakelaar, sterkte, vertaling */
.tabs-balk { margin-top: 2px; flex-wrap: wrap; }
.schakelaar { position: relative; display: inline-flex; width: 38px; height: 22px; flex: none; cursor: pointer; }
.schakelaar input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.schakelaar .baan { width: 38px; height: 22px; border-radius: 99px; background: var(--lijn-2); transition: background var(--snel); position: relative; }
.schakelaar .baan::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform var(--snel); }
.schakelaar input:checked + .baan { background: var(--oranje); }
.schakelaar input:checked + .baan::after { transform: translateX(16px); }
.schakelaar input:focus-visible + .baan { outline: 2px solid var(--terra); outline-offset: 2px; }
.sterkte { display: inline-flex; gap: 4px; flex: none; }
.sterkte span { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--lijn-2); }
.sterkte span.vol { background: var(--groen); border-color: var(--groen); }
.vertaling { margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: var(--blauw-bg); color: var(--inkt-2); font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.schrijf .vertaling { margin-top: 0; }
@media (max-width: 860px) { .twee[style*="380px"] { grid-template-columns: 1fr !important; } }

/* merklogo linksboven (strak bijgesneden, 403x226) */
.werkruimte { text-decoration: none; color: inherit; }
.merklogo { height: 46px; width: auto; flex: none; display: block; }

/* klantkaart + inklapbare blokken (rechterkolom) */
.klantkaart { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--lijn); border: 1px solid var(--lijn); border-radius: 12px; overflow: hidden; }
.kk-vak { background: var(--kaart); padding: 10px 12px; min-width: 0; display: grid; gap: 3px; align-content: start; }
.kk-vak .label { letter-spacing: .12em; font-size: 9.5px; }
.kk-w { font-size: 13.5px; font-weight: 500; overflow-wrap: anywhere; }
.kk-w.nul { color: var(--stil); font-weight: 400; }
.klap { border-top: 1px solid var(--lijn); }
.klap summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 12px 2px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--zacht); }
.klap summary::-webkit-details-marker { display: none; }
.klap summary::before { content: '▸'; font-size: 11px; transition: transform var(--snel); color: var(--stil); }
.klap[open] summary::before { transform: rotate(90deg); }
.klap summary .mono { margin-left: auto; letter-spacing: 0; text-transform: none; }
.klap summary:hover { color: var(--inkt); }
.klap-inhoud { padding: 0 0 14px; display: grid; gap: 8px; }
.klant-inhoud { gap: 16px; }
.kk-breed { grid-column: 1 / -1; }
