/* KOBE-electrics platform: huisstijl uit de ColourCard (donker teal, oranje-geel accent). */
:root {
  --brand: #003836;
  --brand-2: #005d59;
  --accent: #FFB615;
  --on-accent: #0E1615;
  --on-brand: #E4EFEE;
  --on-brand-muted: #A9C4C2;
  --bg: #F3F6F5;
  --surface: #FFFFFF;
  --surface-2: #EDF2F1;
  --line: #D6DFDD;
  --fg: #0E1615;
  --muted: #4C6160;
  --ok: #1E7D4F;
  --ok-bg: #E3F4EA;
  --warn: #8A5A00;
  --warn-bg: #FFF3D6;
  --danger: #B3261E;
  --r: 12px;
  --shadow: 0 6px 24px rgba(0, 0, 0, .08);
  --f-body: "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--f-body); font-size: 15px; line-height: 1.45; }
h1, h2, h3 { margin: 0 0 6px; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 26px; } h3 { font-size: 17px; }
a { color: var(--brand-2); }
p { margin: 0 0 8px; }
.muted { color: var(--muted); } .tiny { font-size: 12.5px; } .mono { font-family: Consolas, monospace; font-size: 12.5px; }
.strong { font-weight: 600; } .nowrap { white-space: nowrap; }
.row { display: flex; align-items: center; gap: 8px; } .row.gap { gap: 10px; } .row.wrap { flex-wrap: wrap; } .row.between { justify-content: space-between; } .row.start { align-items: flex-start; }
.stack { display: flex; flex-direction: column; gap: 10px; } .stack.tight { gap: 3px; } .mt { margin-top: 10px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; min-width: 0; }
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; background: var(--surface-2); color: var(--fg); }
.ic { vertical-align: -.2em; flex: none; } .note > .ic { margin-top: 2px; } .eyebrow .ic { vertical-align: -.25em; margin-right: 2px; } h3 .ic, b .ic { vertical-align: -.15em; }
.btn.sm { padding: 5px 11px; font-size: 13.5px; } .btn.between { justify-content: space-between; width: 100%; border-radius: 8px; }
.btn-brand { background: var(--brand); color: var(--on-brand); } .btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-ghost { background: transparent; border-color: var(--line); } .btn:disabled { opacity: .5; cursor: default; }
.inp { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; background: var(--surface); }
.field { display: flex; flex-direction: column; gap: 4px; } .field label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 14px; } .grid2 .wide { grid-column: 1 / -1; }
.form { background: var(--surface-2); }
.error { color: var(--danger); font-size: 13px; }
.tbl-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.actions { white-space: nowrap; text-align: right; }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; border: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 2px 9px; font: inherit; font-size: 12px; cursor: pointer; opacity: .5; }
.chip.on { opacity: 1; background: var(--ok-bg); color: var(--ok); border-color: #BFE3CD; font-weight: 600; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.kpi .num { font-size: 24px; display: block; } .num { font-variant-numeric: tabular-nums; }
.split2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.split-nav { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .split2, .split-nav { grid-template-columns: 1fr; } }
.log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--fg); color: #E4EFEE; padding: 11px 16px; border-radius: 10px; box-shadow: var(--shadow); font-size: 14px; z-index: 50; }

.pill { display: inline-block; border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.warn { background: var(--warn-bg); color: var(--warn); } .pill.danger { background: #FBE4E2; color: var(--danger); } .pill.info { background: #E3EEF6; color: #1F4E79; }
.tabs { display: flex; gap: 2px; border-bottom: 2px solid var(--line); }
.tabs button { border: 0; background: none; font: inherit; font-weight: 600; color: var(--muted); padding: 10px 14px; margin-bottom: -2px; border-bottom: 2px solid transparent; cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--accent); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-2); cursor: pointer; text-decoration: none; }
.lbl { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.avatar.lg { width: 44px; height: 44px; font-size: 15px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.steps li { display: flex; gap: 10px; align-items: flex-start; } .steps li > span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 12px; flex: none; }
.steps li > span.ok { background: var(--ok-bg); color: var(--ok); }
pre.mono { white-space: pre-wrap; margin: 4px 0 0; }
.login { max-width: 520px; margin-top: 18px; color: var(--fg); } .login .btn { text-align: left; }
.wrap.narrow { max-width: 640px; } .on-dark { color: var(--on-brand-muted); }

/* Backoffice */
.bo { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.bo-side { background: var(--brand); color: var(--on-brand); padding: 18px 12px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.bo-side .brand { display: flex; align-items: center; gap: 8px; padding: 0 8px; }
.bo-side .mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.wm { font-weight: 800; font-size: 18px; letter-spacing: -.01em; } .wm span { font-weight: 500; opacity: .85; }
.bo-nav { display: grid; gap: 1px; }
.bo-nav a { display: flex; align-items: center; gap: 10px; color: var(--on-brand-muted); padding: 8px 10px; border-radius: 7px; text-decoration: none; font-weight: 500; font-size: 14.5px; }
.bo-nav a:hover { background: rgba(255, 255, 255, .07); color: var(--on-brand); }
.bo-nav a.active { background: rgba(255, 255, 255, .12); color: var(--on-brand); font-weight: 600; }
.bo-nav a.soon { opacity: .55; }
.bo-nav .count { margin-left: auto; font-size: 11px; border-radius: 999px; padding: 0 7px; background: rgba(255, 255, 255, .12); }
.bo-side .who { margin-top: auto; display: flex; gap: 10px; align-items: center; padding: 10px 8px 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: var(--on-brand-muted); }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 12px; }
.bo-main { min-width: 0; display: grid; grid-template-rows: auto 1fr; }
.bo-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 24px 14px; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 10; }
.bo-top .search { margin-left: auto; } .bo-top .search input { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font: inherit; width: min(320px, 100%); background: var(--bg); }
.bo-content { padding: 22px 24px 60px; display: grid; gap: 18px; align-content: start; min-width: 0; }

/* Gedeeld met de website (site.css vult aan): breedte, eyebrow, en de donkere kop van de aanmeldpagina */
.hero { background: var(--brand); color: var(--on-brand); }
.site > .hero { padding: 72px 24px; }
.site > .hero h1 { font-size: 40px; }
.wrap { max-width: 1040px; margin: 0 auto; }
.eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 700; }

/* Klanten, QR en hulppagina */
.tabs button .count { margin-left: 6px; font-size: 11px; border-radius: 999px; padding: 0 6px; background: var(--surface-2); color: var(--muted); }
.row.start { align-items: flex-start; }
.qr { width: 120px; flex: none; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px; }
.qr svg { display: block; width: 100%; height: auto; }
.qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.qr-cell { display: grid; justify-items: center; gap: 2px; border: 1px dashed var(--line); border-radius: 8px; padding: 8px 4px; text-align: center; break-inside: avoid; }
.qr-cell .qr { width: 96px; border: 0; padding: 0; }
.help { min-height: 100vh; display: grid; place-items: center; background: var(--brand); padding: 24px 16px; }
.help-card { background: var(--surface); border-radius: 16px; padding: 32px 28px; max-width: 560px; width: 100%; box-shadow: var(--shadow); display: grid; gap: 10px; }
.help-brand { display: flex; align-items: center; gap: 10px; font-size: 18px; margin-bottom: 8px; }
.help-brand .mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.help h1 { font-size: 24px; }
.help-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.help-foot { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 8px; word-break: break-all; }
@media print {
  .bo-side, .bo-top, .no-print, .toast, .bo-content > :not(.print-sheet) { display: none !important; }
  .bo { display: block; } .bo-content { padding: 0; } .print-sheet { border: 0; box-shadow: none; }
}

/* Klantenportaal */
.portal { min-height: 100vh; display: flex; flex-direction: column; }
.p-head { background: var(--brand); color: var(--on-brand); }
.p-head-in { display: flex; align-items: center; gap: 14px; padding: 12px 16px; flex-wrap: wrap; }
.p-head .brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--on-brand); }
.p-head .mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.p-head .divider { width: 1px; height: 26px; background: rgba(255, 255, 255, .2); }
.p-head .title { font-weight: 600; font-size: 17px; color: var(--on-brand-muted); }
.p-head .right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.p-head .right a { color: var(--on-brand-muted); }
.btn-light { background: rgba(255, 255, 255, .12); color: var(--on-brand); }
.p-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; padding: 26px 16px 80px; }
.p-nav { display: grid; gap: 2px; align-content: start; position: sticky; top: 16px; }
.p-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; text-decoration: none; font-weight: 500; color: var(--muted); border: 1px solid transparent; }
.p-nav a:hover { background: var(--surface-2); color: var(--fg); }
.p-nav a.active { background: var(--surface); color: var(--fg); font-weight: 600; box-shadow: inset 3px 0 0 #2E8A86; border-color: var(--line); }
.p-nav .count { margin-left: auto; background: var(--accent); color: var(--on-accent); border-radius: 999px; font-size: 11.5px; font-weight: 700; padding: 0 7px; }
@media (max-width: 820px) { .p-body { grid-template-columns: 1fr; gap: 16px; } .p-nav { position: static; display: flex; overflow-x: auto; gap: 4px; } .p-nav a { white-space: nowrap; } }
.p-main { display: grid; gap: 18px; align-content: start; min-width: 0; }
.p-main > h1 { font-size: clamp(28px, 3.4vw, 36px); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr; } }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 8px; align-content: start; }
.tile.attn { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }
.tile .big { font-weight: 700; font-size: 24px; line-height: 1.1; }
.listrow { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.listrow:last-child { border-bottom: 0; }
.listrow .grow { flex: 1; min-width: 200px; }
.docic { width: 36px; height: 36px; border-radius: 8px; background: var(--surface-2); color: #2E8A86; display: grid; place-items: center; flex: none; }
.promise-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 16px; font-size: 13.5px; }
.stepper { display: flex; gap: 4px; flex-wrap: wrap; }
.stepper span { flex: 1; min-width: 90px; text-align: center; font-size: 12px; padding: 5px 6px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }
.stepper span.done { background: var(--ok-bg); color: var(--ok); } .stepper span.now { background: var(--brand); color: var(--on-brand); font-weight: 600; }
.opt { display: flex; gap: 12px; align-items: center; border: 1px dashed #2E8A86; border-radius: 10px; padding: 12px; background: #E3EEF6; flex-wrap: wrap; }
.q-chapter td { background: var(--surface-2); font-weight: 600; }
.totals { display: grid; grid-template-columns: auto auto; gap: 4px 24px; justify-content: end; font-variant-numeric: tabular-nums; }
.totals .grand { font-weight: 700; font-size: 20px; }
.note { display: flex; gap: 10px; align-items: flex-start; border-radius: 10px; padding: 12px 14px; background: var(--surface-2); }
.note.warn { background: var(--warn-bg); color: var(--warn); }
.login { max-width: 460px; margin: 0 auto; padding: 48px 0 72px; }
.login .card { padding: 26px; display: grid; gap: 14px; }
.login h1 { font-size: 28px; }
.otp { font-family: Consolas, monospace; font-size: 28px; letter-spacing: .5em; text-align: center; padding: 12px 0 12px .5em; }
.steps { display: flex; gap: 6px; } .steps i { height: 4px; flex: 1; border-radius: 2px; background: var(--line); } .steps i.on { background: #2E8A86; }
.choice { display: flex; gap: 8px; flex-wrap: wrap; }
.choice-opt { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer; background: var(--surface); font: inherit; }
.choice-opt.on, .choice-opt[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.sr { position: absolute; left: -9999px; }
.qr-empty { width: 100px; height: 100px; border: 1px dashed var(--line); border-radius: 8px; display: grid; place-items: center; margin: 0 auto; }
.kb { padding: 0; } .kb summary { padding: 14px 18px; cursor: pointer; font-weight: 600; display: flex; gap: 10px; align-items: center; } .kb summary span:first-of-type { flex: 1; } .kb-body { padding: 0 18px 16px; font-size: 14.5px; }
.linkbtn { background: none; border: 0; color: var(--brand-2); font: inherit; font-weight: 600; cursor: pointer; padding: 0; text-decoration: none; }

/* Werven, catalogus, wagens */
.bar { height: 8px; border-radius: 999px; background: var(--surface-2); min-width: 80px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--brand-2); }
td.cheapest { background: var(--ok-bg); color: var(--ok); font-weight: 600; }

/* Portaal: handtekening, storingshulp, sterren, deellinks */
.sigpad { width: 100%; max-width: 600px; height: 180px; border: 1px dashed var(--line); border-radius: 10px; background: #fff; touch-action: none; }
.chat { display: grid; gap: 8px; }
.msg { max-width: 88%; padding: 9px 12px; border-radius: 12px; font-size: 14.5px; }
.msg.bot { background: var(--surface-2); border-top-left-radius: 4px; }
.msg.me { background: var(--brand); color: var(--on-brand); justify-self: end; border-top-right-radius: 4px; }
.msg.safety { background: #FBE4E2; color: var(--danger); max-width: 100%; font-weight: 600; }
.chat-opts { display: grid; gap: 6px; }
.chat-opts button { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 9px 12px; font: inherit; font-weight: 600; cursor: pointer; }
.chat-opts button:hover { border-color: #2E8A86; }
.stars button { display: inline-flex; font-size: 20px; background: none; border: 0; cursor: pointer; color: var(--line); padding: 0 2px; }
.stars button.on { color: var(--accent); } .stars button.on .ic { fill: currentColor; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.slot { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--surface); cursor: pointer; font: inherit; text-align: left; }
.slot.on { border-color: var(--brand); box-shadow: inset 3px 0 0 var(--brand); }

/* Planbord */
.plan { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .plan { grid-template-columns: 1fr; } }
.board { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; min-width: 800px; }
.board .bh { background: var(--surface-2); padding: 8px 10px; font-weight: 600; font-size: 13px; }
.board .bh.today { background: var(--brand); color: var(--on-brand); }
.board .tech { background: var(--surface); padding: 10px; display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; }
.board .cell { background: var(--surface); padding: 6px; min-height: 96px; display: grid; gap: 4px; align-content: start; }
.board .cell.closed { background: repeating-linear-gradient(135deg, var(--surface-2) 0 6px, var(--surface) 6px 12px); }
.jc { border-radius: 8px; padding: 6px 8px; font-size: 12.5px; display: grid; gap: 1px; border-left: 4px solid var(--line); background: var(--surface-2); cursor: grab; }
.jc .t { font-weight: 600; } .jc .m { color: var(--muted); font-size: 11.5px; }
.jc.k-Interventie, .jc.k-Onderhoud { border-left-color: var(--accent); }
.jc.k-Werf { border-left-color: #2E8A86; } .jc.k-Keuring { border-left-color: #1F4E79; }
.jc.k-Plaatsbezoek { border-left-color: #A9C4C2; } .jc.k-Magazijn { border-left-color: #B0BEC5; }
.jc.k-Afwezig { border-left-color: #B0BEC5; background: repeating-linear-gradient(135deg, #E6ECEB 0 4px, var(--surface) 4px 8px); cursor: default; }
.jc.done { opacity: .6; } .jc.sel { outline: 2px solid var(--brand); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 11.5px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }

/* Overzicht: Kobe Care-indicatoren, kerncijfers, inbox, vraag aan je cijfers, nacalculatie */
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.kpi.attn { border-color: var(--accent); background: var(--warn-bg); }
.kpi .v { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; } .kpi .l { font-size: 12.5px; color: var(--muted); }
.kpi.link { cursor: pointer; } .kpi.link:hover { border-color: var(--brand-2); }
.care { border-color: var(--brand-2); }
.care .kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); } @media (max-width: 1100px) { .care .kpis { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); } }
.bar.warn i { background: var(--accent); } .bar.bad i { background: var(--danger); }
.inbox { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.inbox li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; } .inbox li .ic { margin-top: 1px; }
.ai { display: inline-block; background: var(--brand); color: var(--on-brand); border-radius: 999px; padding: 1px 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.aibox { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } @media (max-width: 1000px) { .cols { grid-template-columns: 1fr; } }
.bo-nav .count { margin-left: auto; background: var(--accent); color: var(--on-accent); border-radius: 999px; padding: 0 7px; font-size: 11px; font-weight: 700; }
.bo-nav .count.muted { background: transparent; color: var(--on-brand-muted); font-weight: 500; }
