/* ===== Nieuw ontwerp: licht werkoppervlak, donkere zijbalk, tabellen en duidelijke koppen. Laadt als laatste en vervangt de oude donkere glas-look. ===== */

/* ---------- lettertypen (IBM Plex Sans voor de tekst, Plex Mono voor bedragen en nummers) ---------- */
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-mono-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-mono-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- kleuren ---------- */
:root {
  --bg: #e8ebea; --night: var(--bg);
  --surface: #ffffff; --glass: #ffffff; --glass-solid: #ffffff; --raise: #f3f5f4;
  --line: #dce1df; --line-strong: #c2cac7;
  --text: #17221f; --muted: #5f6e6a;
  --accent: #1c5b4a; --accent-soft: #e1eee9; --btn: #1c5b4a; --btn-ink: #ffffff; --btn-hover: #164a3c;
  --side-bg: #12201c; --side-text: #c9d6d1; --side-dim: #7f918b; --side-line: rgba(255, 255, 255, 0.09); --side-on: rgba(255, 255, 255, 0.1);
  --green: var(--accent); --green-dim: var(--accent-soft); --teal: var(--accent); --teal-dim: var(--accent-soft);
  --good: #1b7a4b; --steel: #5b7080; --amber: #9a5b00; --amber-dim: #fbefd6; --rose: #b3382c;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; --serif: var(--sans);
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r-lg: 10px; --r-md: 8px; --r-sm: 6px;
  --top: 0px; --side: 236px;
  --shadow: 0 1px 2px rgba(18, 32, 28, 0.05);
}
body[data-brand="alu"] { --accent: #2f4f6f; --accent-soft: #e2eaf2; --btn: #2f4f6f; --btn-hover: #263f59; --side-bg: #1a2128; --steel: #5b6f80; }
body[data-brand="rol"] { --accent: #8a5600; --accent-soft: #fbefd2; --btn: #fdb515; --btn-ink: #1b1b1b; --btn-hover: #f0a800; --side-bg: #1d1a14; --amber: #8a5600; --amber-dim: #fbefd2; }

html, body { height: 100%; }
body { background: var(--bg); color: var(--text); font: 14px/1.5 var(--sans); overflow: hidden; -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent-soft); }

/* ---------- opbouw: zijbalk + werkvlak ---------- */
.shell { position: fixed; inset: 0; display: grid; grid-template-columns: var(--side) minmax(0, 1fr); }
main#view { position: relative; inset: auto; height: 100%; overflow: auto; outline: none; z-index: 1; }
#map { display: none; }
body[data-view="dashboard"] main#view { pointer-events: auto; }

.side { background: var(--side-bg); color: var(--side-text); display: flex; flex-direction: column; padding: 18px 12px 12px; gap: 16px; overflow: auto; min-height: 0; }
body.tauri .side { padding-top: 44px; }
.brandsw { flex: none; }
.bsw { display: flex; flex-direction: column; gap: 2px; padding: 0; border: 0; background: none; height: auto; min-width: 0 !important; }
.bsw::before { display: none !important; }
.bsw button { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--side-text); cursor: pointer; text-align: left; font-weight: 500; }
.bsw button img { width: 22px; height: 22px; object-fit: contain; }
.bsw button:hover { background: var(--side-on); }
.bsw button.on { background: var(--side-on); color: #fff; box-shadow: inset 3px 0 0 var(--brand-bar, #6fcf9f); }
body[data-brand="alu"] .bsw button.on { --brand-bar: #8db4d9; }
body[data-brand="rol"] .bsw button.on { --brand-bar: #fdb515; }
.brandsw > img { width: 30px; height: 30px; }

.dock { display: flex; flex-direction: column; gap: 14px; flex: 1; padding: 14px 0 0; margin: 0; background: none; border: 0; border-top: 1px solid var(--side-line); border-radius: 0; min-height: 0; }
.dock-g { display: flex; flex-direction: column; gap: 1px; }
.dock-h { font-size: 12px; color: var(--side-dim); padding: 0 10px 4px; font-weight: 500; }
.dock a { position: relative; display: flex; align-items: center; gap: 11px; padding: 7px 10px; border-radius: 8px; color: var(--side-text); text-decoration: none; font-weight: 500; transition: background 0.12s, color 0.12s; }
.dock a svg { flex: none; opacity: 0.85; }
.dock a:hover { background: var(--side-on); color: #fff; }
.dock a.on { background: var(--side-on); color: #fff; }
.dock a.on::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand-bar, #6fcf9f); }
body[data-brand="alu"] .dock a.on::before { background: #8db4d9; } body[data-brand="rol"] .dock a.on::before { background: #fdb515; }
.dock-n { margin-left: auto; font-style: normal; font-size: 11.5px; min-width: 20px; padding: 1px 6px; border-radius: 10px; background: #e5b34a; color: #231a00; text-align: center; font-weight: 600; }

.side-foot { flex: none; border-top: 1px solid var(--side-line); padding-top: 12px; }
.top-r { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.side .seg { background: rgba(255, 255, 255, 0.07); border: 0; padding: 3px; width: 100%; }
.side .seg button { flex: 1; justify-content: center; color: var(--side-text); padding: 5px 8px; font-size: 12.5px; }
.side .seg button.on, .side .seg.vat button.on { background: rgba(255, 255, 255, 0.95); color: #12201c; box-shadow: none; font-weight: 600; }
.tb-ico { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; height: auto; padding: 7px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--side-text); cursor: pointer; font-weight: 500; text-align: left; }
.tb-ico:hover { background: var(--side-on); color: #fff; }
.tb-ico .me-ini { width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex: none; }
.tb-ico .me-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-ico .cstat { position: absolute; left: 28px; top: 24px; width: 9px; height: 9px; border-radius: 50%; background: #6fcf9f; box-shadow: 0 0 0 2px var(--side-bg); }
.role { display: block; } .role > span { display: block; font-size: 12px; color: var(--side-dim); margin-bottom: 4px; }
.role select { width: 100%; background: rgba(255, 255, 255, 0.07); color: var(--side-text); border: 0; border-radius: 8px; padding: 7px 10px; }
.role option { background: #12201c; color: #fff; }

/* ---------- pagina ---------- */
.page { max-width: 1320px; margin: 0 auto; padding: 30px 40px 64px; }
.page.narrow { max-width: 940px; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 22px; flex-wrap: wrap; }
.page-h h1, .qb-h h1, .dash-hello h1 { font-family: var(--sans); font-size: 26px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; color: var(--text); }
.page-h p, .dash-hello p { color: var(--muted); margin-top: 4px; }
h2.sp { font-family: var(--sans); font-size: 17px; font-weight: 600; margin: 32px 0 8px; }
h3 { font-size: 13px; font-weight: 600; color: var(--text); margin: 20px 0 8px; }
.tools { gap: 8px; }

/* ---------- onderdelen ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 16px 18px; backdrop-filter: none; -webkit-backdrop-filter: none; }
.panel-h { margin-bottom: 12px; }
.panel-h h2 { font-size: 14px; font-weight: 600; color: var(--text); }
.count { font-family: var(--mono); font-size: 13px; color: var(--amber); font-weight: 500; }
.btn { min-height: 36px; padding: 7px 14px; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-weight: 500; box-shadow: var(--shadow); }
.btn:hover { background: var(--raise); }
.btn.primary { background: var(--btn); color: var(--btn-ink); border-color: transparent; }
.btn.primary:hover { background: var(--btn-hover); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); box-shadow: none; }
.btn.ghost:hover { background: var(--raise); color: var(--text); }
.btn.danger { color: var(--rose); border-color: #e3b9b4; background: var(--surface); }
.btn.danger:hover { background: #fbeceb; }
.icon-btn:hover { background: var(--raise); }
.link { color: var(--accent); text-decoration: none; font-weight: 500; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.chip { background: var(--surface); border: 1px solid var(--line-strong); color: var(--text); padding: 4px 12px; font-weight: 500; }
.chip:hover { background: var(--raise); }
.chip.on, .chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.chip-bf.on { background: #17221f; border-color: #17221f; color: #fff; }
.seg { background: var(--raise); border: 1px solid var(--line); border-radius: var(--r-md); padding: 3px; }
.seg button { color: var(--muted); border-radius: 6px; font-weight: 500; }
.seg button:hover { color: var(--text); }
.seg button.on, .seg.vat button.on { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--line-strong), var(--shadow); font-weight: 600; }
input, select, textarea { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: 8px 10px; color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: #8a9692; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width: auto; }
option { background: #fff; color: var(--text); }
.fld, .picker label, .qmontage label, .sale-row label, .ql-nums label { color: var(--muted); font-weight: 500; }
.tag { background: var(--raise); border: 1px solid var(--line); color: var(--muted); font-weight: 500; }
.tag.demo { color: var(--amber); background: var(--amber-dim); border-color: #ecd49b; }
.tag.ok, .tag.st-akkoord { color: var(--good); background: #e3f3ea; border-color: #b8dec8; }
.tag.st-verstuurd { color: var(--accent); background: var(--accent-soft); border-color: #bcd6cd; }
.tag.st-concept { color: var(--muted); }
.dot.heet { background: #d9772b; box-shadow: none; } .dot.warm { background: #d9a441; } .dot.koud { background: #7e9bb3; }
.warn-box { background: var(--amber-dim); color: var(--amber); border-color: #ecd49b; }
.toast { background: #17221f; color: #fff; border: 0; border-radius: var(--r-md); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.empty { color: var(--muted); }
.pos { color: var(--good); } .neg { color: var(--rose); }

.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.tbl th { background: var(--raise); color: var(--muted); font-weight: 600; font-size: 12.5px; border-bottom: 1px solid var(--line-strong); padding: 9px 14px; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: #f7f9f8; }
.tbl tbody tr[tabindex]:focus-visible { outline-offset: -2px; }
.tbl .r, .tbl td.r, .tbl th.r { font-family: var(--mono); font-size: 13px; }
.tbl.grid th:first-child { background: var(--raise); }

/* ---------- dashboard ---------- */
.dash { display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "head head" "kpis kpis" "left right"; gap: 20px; padding: 30px 40px 56px; max-width: 1400px; margin: 0 auto; height: auto; }
.dash-head { grid-area: head; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.dash-head .chips-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin: 0; }
.chips-row .live-pill, .chips-row .mini { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; color: var(--muted); font-size: 13px; box-shadow: var(--shadow); }
.chips-row .mini b { color: var(--text); font-family: var(--mono); font-weight: 500; }
.live-pill i { background: #d9772b; }
.kpis { grid-area: kpis; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; position: static; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; backdrop-filter: none; }
.kpis > .kpi { padding: 16px 20px; border-left: 1px solid var(--line); background: none; }
.kpis > .kpi:first-child { border-left: 0; }
.kpi-v { font-family: var(--mono); font-weight: 500; font-size: 24px; letter-spacing: -0.02em; color: var(--text); }
.kpi-l { font-weight: 600; margin-top: 2px; }
.kpi-s { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.dash-left { grid-area: left; display: flex; flex-direction: column; gap: 20px; min-width: 0; overflow: visible; max-height: none; }
.dash-right { grid-area: right; display: flex; flex-direction: column; gap: 20px; min-width: 0; overflow: visible; max-height: none; }
.dash-left .attn { flex: none; overflow: visible; }
.attn-item { width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 10px 0; cursor: pointer; display: flex; flex-direction: column; gap: 1px; }
.attn-item:hover b { color: var(--accent); }
.attn-item b { font-weight: 600; } .attn-item span { color: var(--muted); }
.attn-list { list-style: none; margin: 0; padding: 0; }
.attn-list li:last-child .attn-item { border-bottom: 0; }
.funnel ol { list-style: none; margin: 0; padding: 0; }
.funnel li button { width: 100%; display: grid; grid-template-columns: 1fr 110px 28px; align-items: center; gap: 10px; background: none; border: 0; padding: 5px 0; cursor: pointer; text-align: left; border-radius: 6px; }
.funnel li button:hover { background: var(--raise); }
.f-bar { height: 8px; background: var(--raise); border-radius: 4px; overflow: hidden; display: block; }
.f-bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.f-n { font-family: var(--mono); text-align: right; color: var(--muted); }
.idea-card, .prop { display: flex; gap: 12px; text-align: left; cursor: pointer; align-items: flex-start; }
.idea-card:hover, .prop:hover { border-color: var(--line-strong); background: var(--raise); }
.idea-card span, .prop span { color: var(--muted); display: block; font-size: 12.5px; }
.idea-card b, .prop b { display: block; font-weight: 600; }
.prop.on { border-color: var(--accent); background: var(--accent-soft); }
.feed ul, .feed ol { list-style: none; margin: 0; padding: 0; }
.map-card { padding: 14px 16px 16px; }
.map-card .panel-h { margin-bottom: 8px; }
.loc-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.loc-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: 5px 12px; cursor: pointer; font-weight: 600; }
.loc-chip:hover { background: var(--raise); }
.loc-chip small { color: var(--muted); font-weight: 400; }
.loc-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.map-slot { position: relative; height: 420px; border-radius: var(--r-md); overflow: hidden; background: #17221f; border: 1px solid var(--line); }
.map-slot #map { display: block; position: absolute; inset: 0; width: 100%; height: 100%; opacity: 1 !important; }
.loc-card { position: absolute; z-index: 2; left: 12px; top: 12px; width: 300px; max-width: calc(100% - 24px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25); padding: 12px 14px; }

/* ---------- telefoon ---------- */
@media (max-width: 900px) {
  .dash { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "kpis" "left" "right"; padding: 16px 14px 28px; }
  .kpis { grid-template-columns: 1fr 1fr; } .kpis > .kpi:nth-child(odd) { border-left: 0; } .kpis > .kpi { border-top: 1px solid var(--line); } .kpis > .kpi:nth-child(-n+2) { border-top: 0; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  main#view { grid-row: 1; }
  .side { grid-row: 2; flex-direction: row; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); gap: 0; overflow-x: auto; overflow-y: hidden; align-items: stretch; }
  .brandsw, .side-foot { display: none; }
  .dock { flex-direction: row; border: 0; padding: 0; gap: 2px; flex: none; }
  .dock-g { flex-direction: row; } .dock-h { display: none; }
  .dock a { flex-direction: column; gap: 2px; font-size: 10.5px; padding: 6px 10px; min-width: 64px; justify-content: center; text-align: center; }
  .dock a.on::before { display: none; }
  .page { padding: 16px 14px 28px; }
  .map-slot { height: 300px; }
}

/* ---------- dashboard: oude rasterregels overschrijven ---------- */
.dash { grid-template-rows: auto auto 1fr; height: auto; }
.dash-left, .dash-right { grid-column: auto; grid-row: auto; }
.dash-head { padding-top: 0; }
.dash-head .dash-hello { order: -1; }
.dash-head h1 { font-family: var(--sans); font-size: 26px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; text-shadow: none; }
.dash-head p { color: var(--muted); font-size: 14px; text-shadow: none; margin-top: 4px; }
.kpi-row { gap: 8px; } .kpi-v { font-size: 21px; } .kpi-row .spark { width: 64px; height: 24px; opacity: 0.9; }
.attn-item { background: none; border: 0; border-bottom: 1px solid var(--line); border-left: 0; border-radius: 0; padding: 10px 0; }
.attn-item.warn b { color: var(--amber); }
.idea-card { border-color: var(--line); } .idea-card svg { color: var(--accent); } .idea-card span { color: var(--muted); }
.feed-list li { border-top: 1px solid var(--line); }
.feed-list li.fresh .feed-dot { background: #d9772b; box-shadow: none; }
.live-pill i { background: #d9772b; box-shadow: none; }
@keyframes fresh-row { from { background: var(--amber-dim); } }
.loc-chip { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md); color: var(--text); }
.loc-chip i { background: var(--accent); box-shadow: none; }
.loc-chip:hover { border-color: var(--accent); }
.tbl input { background: var(--surface); border: 1px solid var(--line-strong); }

/* ---------- leads ---------- */
.kanban { grid-auto-columns: 264px; gap: 14px; padding-bottom: 16px; }
.kcol { background: var(--raise); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px; }
.kcol h3 { font-size: 13.5px; font-weight: 600; }
.kcol > p { color: var(--muted); }
.lcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); transform: none !important; }
.lcard:hover { border-color: var(--accent); }
.lcard.t-heet { box-shadow: inset 3px 0 0 #d9772b, var(--shadow); }
.lc-prod, .lc-bot { color: var(--muted); } .lc-bot b { font-family: var(--mono); font-weight: 500; }
.scrim { background: rgba(18, 32, 28, 0.45); inset: 0; }
.drawer { background: var(--surface); box-shadow: -12px 0 40px rgba(0, 0, 0, 0.18); }
.drawer h2 { font-family: var(--sans); font-size: 22px; font-weight: 600; }
.modal-card, .login-card { background: var(--surface); border: 0; border-radius: var(--r-lg); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); }
.steps button { border-radius: var(--r-md); }
.steps .done button { border-color: var(--accent); color: var(--accent); }
.steps .cur button { background: var(--btn); color: var(--btn-ink); }
.selbar { background: #17221f; color: #fff; border: 0; }
.selbar .btn { color: var(--text); }

/* ---------- offerte bewerken ---------- */
.qb { grid-template-columns: minmax(440px, 580px) minmax(0, 1fr); gap: 24px; padding: 28px 40px 64px; max-width: 1500px; align-items: start; }
.qb-left { gap: 14px; }
.qb-h { align-items: center; gap: 10px 12px; margin-bottom: 2px; }
.qb-h .link { margin-bottom: 2px; }
.qb-left > section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 16px 18px; }
.qb-left > section h3 { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--text); }
.qb-left > section .sec-h h3 { margin: 0; }
.qb-left > section .sec-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.qb-left > section.as-note, .qb-left .req-box { background: var(--amber-dim); border-color: #ecd49b; }
.qline-card { background: var(--raise); border: 1px solid var(--line); border-radius: var(--r-md); }
.qline-card input, .qline-card textarea, .qline-card select { background: var(--surface); }
.ql-desc { font-weight: 600; }
.qb-right { top: 0; max-height: 100vh; padding: 28px 4px 40px 0; margin-top: -28px; gap: 12px; }
.qb-profit { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.qb-profit b { font-family: var(--mono); font-weight: 500; font-size: 17px; letter-spacing: -0.02em; } .qb-profit .big b { font-size: 20px; }
.qb-profit span { font-weight: 500; }
.qb-actions { gap: 8px; }
.paper { border-radius: var(--r-md); box-shadow: 0 1px 3px rgba(18, 32, 28, 0.12), 0 12px 32px rgba(18, 32, 28, 0.1); border: 1px solid var(--line); }
.paper-host { padding-bottom: 12px; }
.save-info { color: var(--muted); } .save-info.warn { color: var(--amber); font-weight: 600; }
.pub-warn { border: 1px solid #ecd49b; background: var(--amber-dim); }
.ql-bf { color: var(--text); }
.signed-sig { background: #fff; }
.q-log { color: var(--muted); }

/* ---------- herkomst-labels ---------- */
.bron { background: #eceff0; color: #4a5a56; }
.bron.b-meta { background: #e3ecfb; color: #1d4fa8; } .bron.b-google { background: #fbe9e7; color: #b3382c; }
.bron.b-website { background: #e1f3ea; color: #1b7a4b; } .bron.b-configurator { background: #efe8fb; color: #6a3fb5; }
.bron.b-doorverwijzing, .bron.b-telefoon { background: #fbefd6; color: #8a5a00; }
.bron.b-tiktok { background: #dff4f3; color: #0b6f6b; } .bron.b-ai { background: #e4f1fb; color: #1b6aa5; }
.bron.b-youtube { background: #fbe4e4; color: #b01f1f; } .bron.b-pinterest { background: #fbe4ea; color: #b01f45; }
.bron.b-organisch { background: #fbe9e7; color: #b3382c; } .bron.b-direct { background: #eceff0; color: #4a5a56; }
.cst { background: #eceff0; color: #4a5a56; }
.cst.c-nieuw, .cst.bel-nog { background: #fbe4e1; color: #b3382c; } .cst.c-benaderd, .cst.bel-voicemail { background: #fbefd6; color: #8a5a00; }
.cst.c-gereageerd, .cst.bel-gebeld { background: #e1f3ea; color: #1b7a4b; } .cst.c-geen-gehoor { background: #eceff0; color: #4a5a56; }
.cst.bel-terugbellen { background: #fde2bf; color: #7a3d00; }
.seg.bel button.on.bel-gebeld { background: #1b7a4b; color: #fff; } .seg.bel button.on.bel-voicemail { background: #c79a2a; color: #fff; } .seg.bel button.on.bel-terugbellen { background: #d9772b; color: #fff; }
.qb-right { top: 20px; max-height: calc(100vh - 40px); margin-top: 0; padding: 0 4px 20px 0; }
.page .panel + .panel, .page .chips-row + .panel { margin-top: 0; }
.page > .panel + .panel { margin-top: 16px; }

/* ---------- instellingen ---------- */
.set-wrap { grid-template-columns: 250px minmax(0, 1fr); gap: 24px; }
.set-nav { top: 20px; gap: 2px; }
.set-tab { border-radius: var(--r-md); padding: 9px 12px; }
.set-tab b { font-size: 14px; } .set-tab small { color: var(--muted); }
.set-tab:hover { background: rgba(255, 255, 255, 0.6); }
.set-tab.on { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); }
.set-body .set { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 18px 22px 22px; margin: 0 0 16px; }
.set-body .set h2 { font-family: var(--sans); font-size: 17px; font-weight: 600; margin: 0 0 4px; }
.set-body .set h3 { font-size: 13px; letter-spacing: 0; color: var(--text); margin: 20px 0 8px; }
.page h2 { font-family: var(--sans); font-weight: 600; }

/* ---------- het kantoor: rustig raster in plaats van een plattegrond ---------- */
.office { grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; }
.floor { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; grid-template-areas: none; gap: 12px; padding: 0; border: 0; background: none; box-shadow: none; border-radius: 0; }
.floor > * { grid-area: auto !important; }
.room { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--rc); border-bottom-width: 1px; border-radius: var(--r-md); box-shadow: var(--shadow); min-height: 110px; padding: 14px 16px 34px; transform: none !important; }
.room:hover { border-color: var(--rc); }
.room.on { background: color-mix(in srgb, var(--rc) 8%, #fff); box-shadow: 0 0 0 1px var(--rc); }
.r-lamp, .r-desk, .r-mon, .r-pad, .r-agent, .hall, .meeting { display: none !important; }
.r-name { max-width: calc(100% - 34px); font-size: 15px; } .r-name small { color: var(--muted); }
.r-badge { background: var(--amber); color: #fff; top: 12px; right: 14px; }
.r-st { left: 16px; bottom: 11px; color: var(--muted); } .r-st::before { box-shadow: none; }
.room.busy .r-st { color: var(--amber); }
.room.locked { background: var(--raise); border-style: dashed; box-shadow: none; }
.chat { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: none; top: 20px; }
.c-av { box-shadow: none; }
.msg.jij { background: var(--accent-soft); border-color: #bcd6cd; } .msg.agent { background: var(--raise); }

/* ---------- lege schermen, losse koppen ---------- */
.page > h1 { font-size: 26px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 14px; }
.cv-empty, .cal-empty { max-width: 460px; margin: 12vh auto 0; padding: 32px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cv-empty h2, .cal-empty h2 { font-size: 18px; } .cv-empty p, .cal-empty p { color: var(--muted); }
.gl-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); backdrop-filter: none; }

/* ---------- overzicht Alufile / Rolsun (glass-componenten) ---------- */
.gl-home { max-width: 1400px; margin: 0 auto; padding: 24px 28px 40px; display: flex; flex-direction: column; gap: 16px; }
.gl-home > *, .gl-row > * { animation: none !important; }
.gl-card { padding: 16px 18px; }
.gl-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.gl-hello h1 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -0.015em; color: var(--text); }
.gl-hello p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.gl-quick { display: flex; gap: 8px; flex-wrap: wrap; }
.gl-q { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; }
.gl-q:hover { border-color: var(--accent); color: var(--accent); }
.gl-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.gl-metric { --ac: var(--accent); display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; text-align: left; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--ac); border-radius: var(--r-md); box-shadow: var(--shadow); font: inherit; color: var(--text); overflow: hidden; }
button.gl-metric { cursor: pointer; } button.gl-metric:hover { border-color: var(--ac); }
.tone-blue { --ac: #2f5f8a; } .tone-green { --ac: var(--accent); } .tone-gold { --ac: #b07400; } .tone-violet { --ac: #6a4c93; } .tone-red { --ac: #b3372f; }
.gl-mi { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--ac); background: color-mix(in srgb, var(--ac) 12%, #fff); }
.gl-ml { color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.gl-mv { grid-column: 1 / -1; margin-top: 10px; font-family: var(--mono); font-size: 24px; font-weight: 500; letter-spacing: -0.02em; color: var(--text); }
.gl-ms { grid-column: 1 / -1; margin-top: 4px; display: flex; flex-wrap: wrap; gap: 2px 8px; color: var(--muted); font-size: 12px; }
.gl-trend { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 999px; font-weight: 600; font-size: 11.5px; background: var(--raise); }
.gl-trend.good { color: var(--good); background: #e1f1e8; } .gl-trend.bad { color: #b3372f; background: #f7e3e0; }
.gl-spark { grid-column: 1 / -1; width: 100%; height: 28px; margin-top: 8px; } .gl-spark .fill { fill: var(--ac); opacity: 0.12; } .gl-spark .line { fill: none; stroke: var(--ac); stroke-width: 1.6; }
.gl-row { display: grid; gap: 16px; } .gl-row.r-a { grid-template-columns: 1.4fr 1fr; } .gl-row.r-b { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gl-row.r-c { grid-template-columns: 1fr; }
.gl-ch { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.gl-ch h2 { margin: 0; font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--text); }
.gl-legend { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; } .gl-legend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; margin-left: 6px; }
.l-a { background: var(--accent); } .l-b { background: #d9a441; } .l-v { background: #6a4c93; }
.gl-chart, svg.gl-chart { width: 100%; height: auto; display: block; overflow: visible; max-height: 300px; }
.gl-chart .grid { stroke: var(--line); } .gl-chart .ax { fill: var(--muted); font-size: 11px; }
.gl-chart .bar .a { fill: var(--accent); } .gl-chart .bar .b { fill: #d9a441; } .gl-chart .bar .hit { fill: transparent; }
.gl-chart .ln { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
.gl-chart .ln.c-a { stroke: var(--accent); } .gl-chart .ln.c-v { stroke: #6a4c93; }
.gl-chart .area { stroke: none; } .gl-chart .area.c-a { fill: var(--accent); opacity: 0.1; } .gl-chart .area.c-v { fill: #6a4c93; opacity: 0.1; }
.gl-chart .dot.c-a { fill: var(--accent); } .gl-chart .dot.c-v { fill: #6a4c93; }
.gl-chart .bar rect:not(.hit) { animation: none; }
.gl-led { list-style: none; margin: 0; padding: 0; } .gl-led li { padding: 10px 0; border-top: 1px solid var(--line); } .gl-led li:first-child { border-top: 0; padding-top: 0; }
.gl-led li > div { display: flex; justify-content: space-between; gap: 10px; } .gl-led .neg { color: #b3372f; }
.gl-led small { display: block; margin-top: 4px; color: var(--muted); }
.gl-rule { display: block; height: 4px; margin-top: 6px; border-radius: 2px; background: var(--raise); } .gl-rule u { display: block; height: 100%; border-radius: 2px; background: var(--accent); text-decoration: none; } .gl-rule u.late { background: #b3372f; }
.gl-alerts, .gl-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.gl-alerts button, .gl-feed button { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; padding: 8px 10px; border-radius: var(--r-sm); border: 1px solid transparent; background: none; color: var(--text); font: inherit; cursor: pointer; }
.gl-alerts button:hover, .gl-feed button:hover { background: var(--raise); border-color: var(--line); }
.gl-alerts b, .gl-feed b { display: block; font-weight: 500; font-size: 13.5px; } .gl-alerts small, .gl-feed small { display: block; color: var(--muted); font-size: 12px; }
.gl-ai, .gl-fi { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--raise); color: var(--muted); }
.gl-alerts .tone-red .gl-ai { color: #b3372f; background: #f7e3e0; } .gl-alerts .tone-gold .gl-ai { color: #b07400; background: #f8ecd2; }
.gl-link { background: none; border: 0; color: var(--accent); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; }
.gl-empty { color: var(--muted); }
.gl-tabs { display: flex; gap: 4px; margin-bottom: 8px; flex-wrap: wrap; }
.gl-seg { display: flex; flex-direction: column; gap: 12px; } .gl-segbar { display: flex; gap: 3px; height: 10px; } .gl-segbar i { border-radius: 4px; }
.s0 { background: #6a4c93; } .s1 { background: #2f5f8a; } .s2 { background: #d9a441; } .s3 { background: var(--accent); } .s4 { background: var(--line-strong); }
@media (max-width: 1100px) { .gl-metrics { grid-template-columns: repeat(2, 1fr); } .gl-row.r-a, .gl-row.r-b { grid-template-columns: 1fr; } }
.gl-seg ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.gl-seg li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.gl-seg li:first-child { border-top: 0; } .gl-seg li b { margin-left: auto; font-family: var(--mono); }
.gl-seg li i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
