/* ===== v2: eigen gezicht. Bricolage Grotesque voor koppen en cijfers, Instrument Sans voor tekst.
   Geen zijbalk en geen kaarten meer: een kopregel met tabs, vlakke secties met haarlijnen. Laadt na redesign.css. ===== */
@font-face { font-family: "Bricolage Grotesque"; font-weight: 200 800; font-display: swap; src: url(../fonts/bricolage-grotesque-latin-wght-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: "Bricolage Grotesque"; font-weight: 200 800; font-display: swap; src: url(../fonts/bricolage-grotesque-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: "Instrument Sans"; font-weight: 400 700; font-display: swap; src: url(../fonts/instrument-sans-latin-wght-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: "Instrument Sans"; font-weight: 400 700; font-display: swap; src: url(../fonts/instrument-sans-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #060811; --night: #060811; --surface: #0f1322; --glass: #0f1322; --glass-solid: #0f1322; --raise: #151a2e; --head: transparent;
  --tint: #171c31; --bar: rgba(6,8,17,.82);
  --line: rgba(255,255,255,.07); --line-strong: rgba(255,255,255,.14); --text: #f1f3ff; --muted: #8c93b3;
  --accent: #6d86ff; --accent-soft: rgba(109,134,255,.16); --btn: #4f6bff; --btn-ink: #fff; --btn-hover: #6580ff;
  --side-bg: #0b0e1b; --side: 232px;
  --good: #4fd6a2; --rose: #ff7a72; --amber: #f0b44c; --amber-dim: rgba(240,180,76,.16);
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --mono: var(--sans); --serif: var(--display);
  --r-lg: 18px; --r-md: 11px; --r-sm: 8px; --shadow: none;
}
body[data-brand="alu"] { --accent: #3fc8e4; --accent-soft: rgba(63,200,228,.15); --btn: #1fa9c9; --btn-hover: #35bddb; }
body[data-brand="rol"] { --accent: #fdb515; --accent-soft: rgba(253,181,21,.15); --btn: #fdb515; --btn-ink: #15130a; --btn-hover: #ffc43d; }
body[data-brand="alu"] { --accent: #1f4f8a; --accent-soft: #e5edf7; --btn: #1f4f8a; --btn-hover: #19416f; }
body[data-brand="rol"] { --accent: #a86400; --accent-soft: #fdf0d6; --btn: #fdb515; --btn-ink: #1a1a18; --btn-hover: #f0a800; }
body { font: 13.5px/1.45 var(--sans); background: var(--bg); font-feature-settings: "tnum" 1; }

/* ---- vaste zijbalk, licht, met icoon en groepen ---- */
.shell { grid-template-columns: var(--side) minmax(0, 1fr); grid-template-rows: none; }
.side { display: flex; flex-direction: column; gap: 14px; padding: 14px 10px 10px; background: var(--side-bg); color: var(--text); border: 0; border-right: 1px solid var(--line); overflow: auto; }
body.tauri .side { padding-top: 40px; }
.bsw { flex-direction: column; gap: 1px; }
.bsw button { padding: 7px 10px; border-radius: 6px; color: var(--muted); font-family: var(--sans); font-weight: 500; font-size: 13.5px; letter-spacing: 0; }
.bsw button img { width: 18px; height: 18px; }
.bsw button:hover { background: var(--tint); color: var(--text); }
.bsw button.on { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--line-strong); font-weight: 600; }
.brandsw > img { width: 28px; height: 28px; }
.side-foot { justify-self: auto; border-top: 1px solid var(--line); padding-top: 10px; }
.top-r { flex-direction: column; align-items: stretch; gap: 8px; }
.side .seg { background: var(--tint); padding: 2px; width: 100%; border-radius: 6px; }
.side .seg button { flex: 1; color: var(--muted); padding: 4px 6px; border-radius: 5px; font-size: 12px; }
.side .seg button.on, .side .seg.vat button.on { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--line-strong); }
.tb-ico { width: 100%; color: var(--text); padding: 6px 8px; } .tb-ico:hover { background: var(--tint); color: var(--text); }
.role { display: block; } .role > span { display: block; margin: 0 0 3px; color: var(--muted); font-size: 11.5px; }
.role select { width: 100%; background: var(--surface); border: 1px solid var(--line-strong); color: var(--text); }

.dock { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 12px; padding: 12px 0 0; border: 0; border-top: 1px solid var(--line); flex: 1; }
.dock-g { flex-direction: column; gap: 1px; padding: 0; border: 0 !important; }
.dock-g + .dock-g { padding-left: 0; }
.dock-h { display: block; font-size: 11px; font-weight: 600; color: var(--muted); padding: 0 8px 3px; letter-spacing: .02em; }
.dock a { padding: 6px 8px; gap: 9px; border-radius: 6px; border: 0; color: #b4bad6; font-weight: 500; font-size: 13.5px; }
.dock a svg { display: block; opacity: .7; }
.dock a:hover { background: var(--tint); color: var(--text); }
.dock a.on { background: var(--accent-soft); color: var(--accent); }
.dock a.on svg { opacity: 1; }
.dock a.on::before { display: none !important; }
.dock-n { background: var(--accent); color: #fff; margin-left: auto; font-size: 11px; }
body[data-brand="rol"] .dock-n { color: #1a1a18; }

/* ---- pagina: titelbalk + werkvlak ---- */
main#view { background: var(--bg); }
.page, .gl-home, .dash { max-width: none; margin: 0; padding: 0 0 48px; display: block; width: auto; }
.page-h, .dash-head, .gl-hero, .page > h1 { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin: 0 0 20px; padding: 12px 28px; min-height: 56px; background: var(--bar); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.page > h1 { display: block; }
.page-h h1, .qb-h h1, .dash-hello h1, .gl-hello h1, .page > h1 { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -0.015em; line-height: 1.2; margin: 0; }
.page-h p, .dash-hello p, .gl-hello p { font-size: 13px; color: var(--muted); margin: 2px 0 0; }
.page > *:not(.page-h):not(h1), .gl-home > *:not(.gl-hero), .dash > *:not(.dash-head) { margin-left: 28px; margin-right: 28px; }
.page > h1 + *, .page-h + * { margin-top: 0; }
.page > * + *:not(.page-h) { margin-top: 16px; }
.gl-home { display: flex; flex-direction: column; gap: 16px; } .gl-home > .gl-hero { margin: 0; }
.dash { display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: "head head" "kpis kpis" "left right"; gap: 16px; padding-bottom: 48px; }
.dash-head { grid-area: head; margin: 0; } .dash > .kpis { grid-area: kpis; } .dash-left { grid-area: left; } .dash-right { grid-area: right; }
.dash > *:not(.dash-head) { margin-left: 0; margin-right: 0; } .dash-left { margin-left: 28px !important; } .dash-right { margin-right: 28px !important; } .dash > .kpis { margin: 0 28px !important; }
h2, h2.sp { font-family: var(--display); font-size: 15px; font-weight: 600; letter-spacing: -0.005em; }

/* ---- panelen met kopstrook ---- */
.panel, .gl-card, .set-body .set, .box { background: var(--surface) !important; border: 1px solid var(--line) !important; border-radius: var(--r-lg) !important; box-shadow: var(--shadow) !important; padding: 0 16px 16px !important; overflow: hidden; }
.panel-h, .gl-ch { margin: 0 -16px 14px; padding: 10px 16px; background: var(--head); border-bottom: 1px solid var(--line); min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel-h h2, .gl-ch h2, .set-body .set h2 { font-family: var(--display); font-size: 14px; font-weight: 600; margin: 0; }
.set-body .set { padding-top: 0 !important; } .set-body .set > h2 { margin: 0 -16px 14px; padding: 12px 16px; background: var(--head); border-bottom: 1px solid var(--line); }
.cv-empty, .cal-empty { background: var(--surface) !important; border: 1px solid var(--line) !important; border-radius: var(--r-lg) !important; padding: 28px !important; margin: 10vh auto 0 !important; }
.chat { background: var(--surface) !important; border: 1px solid var(--line) !important; border-radius: var(--r-lg) !important; padding: 0 !important; }

/* ---- kengetallen: een balk met vakken ---- */
.kpis, .gl-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.kpis > .kpi, .gl-metric { padding: 12px 16px 12px; border: 0; border-left: 1px solid var(--line); border-top: 0; border-radius: 0; background: none; box-shadow: none; align-content: start; align-items: start; }
.kpis > .kpi:first-child, .gl-metric:first-child { border-left: 0; padding-left: 16px; }
.kpi-l, .gl-metric .gl-ml { font-size: 12px; color: var(--muted); font-weight: 500; margin: 0 0 4px; order: -1; }
.kpi { display: flex; flex-direction: column; } .kpi .kpi-l { order: -1; }
.kpi-v, .gl-mv { font-family: var(--display); font-weight: 600; font-size: 24px; letter-spacing: -0.02em; line-height: 1.15; margin-top: 0; }
.kpi-s, .gl-ms { font-size: 12px; color: var(--muted); margin-top: 3px; }
.gl-metric .gl-mi { display: none; } .gl-metric .gl-ml { grid-column: 1 / -1; }
.gl-metrics { margin: 0 28px; }
.gl-row { gap: 16px; margin: 0 28px; }

/* ---- knoppen en velden ---- */
.btn { min-height: 32px; padding: 5px 12px; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--surface); box-shadow: 0 1px 0 rgba(0,0,0,.04); font-weight: 500; font-size: 13px; }
.btn:hover { background: var(--raise); }
.btn.primary { background: var(--btn); color: var(--btn-ink); border-color: transparent; box-shadow: none; } .btn.primary:hover { background: var(--btn-hover); }
.btn.ghost { background: none; border-color: transparent; box-shadow: none; }
.gl-q, .chip { border-radius: var(--r-md); min-height: 32px; height: auto; }
input, select, textarea { border-radius: var(--r-sm); font-size: 13.5px; }

/* ---- tabellen: duidelijke kop, dichte rijen ---- */
.table-wrap, .tbl-wrap { background: var(--surface) !important; border: 1px solid var(--line) !important; border-radius: var(--r-lg) !important; overflow: hidden; box-shadow: var(--shadow) !important; }
.tbl { border-collapse: collapse; width: 100%; }
.tbl th { background: var(--head) !important; color: var(--muted); font-weight: 600; font-size: 12px; border-bottom: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--line); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: var(--raise); }

/* ---- tabbladen en filters als segmenten ---- */
.seg.q-tabs, .tools .seg, .tabs, .gl-tabs { background: var(--tint); border: 0; padding: 2px; gap: 0; border-radius: 7px; box-shadow: none; display: inline-flex; width: auto; }
.seg.q-tabs button, .tools .seg button, .tabs button, .gl-tabs button { background: none; border: 0; border-radius: 5px; padding: 5px 12px; color: var(--muted); box-shadow: none; font-weight: 500; }
.seg.q-tabs button.on, .tools .seg button.on, .tabs button.on, .gl-tabs button.on { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--line-strong); }
.page > .seg, .page > .q-tabs, .page > div > .q-tabs { margin-bottom: 12px; }

/* ---- leads ---- */
.kanban { grid-auto-columns: 268px; gap: 12px; padding: 0 28px 16px; margin: 0 -28px; }
.kcol { background: var(--tint); border: 0; border-radius: var(--r-lg); padding: 10px; }
.kcol h3 { font-family: var(--display); font-size: 13.5px; font-weight: 600; margin: 2px 2px 4px; }
.lcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); }
.lcard:hover { border-color: var(--accent); }

/* ---- instellingen, kantoor ---- */
.set-wrap { grid-template-columns: 230px minmax(0, 1fr); gap: 16px; margin: 0 28px; }
.set-nav { top: 72px; gap: 2px; }
.set-tab { border-radius: var(--r-md); padding: 8px 10px; border: 0; } .set-tab:hover { background: var(--tint); } .set-tab.on { background: var(--surface); box-shadow: 0 0 0 1px var(--line-strong); } .set-tab.on b { color: var(--text); }
.set-body .set { margin: 0 0 16px; }
.floor { gap: 10px; }
.room { background: var(--surface) !important; border: 1px solid var(--line) !important; border-left: 4px solid var(--rc) !important; border-radius: var(--r-md) !important; padding: 12px 14px 32px !important; min-height: 100px !important; }
.room.on { background: color-mix(in srgb, var(--rc) 7%, #fff) !important; }
.r-st { left: 14px !important; }
.office { margin: 0 28px; }
.msg.jij { background: var(--accent-soft); border-color: transparent; } .msg.agent { background: var(--raise); border-color: transparent; }
.modal-card, .drawer { border-radius: 10px; }
.tauri-pad { display: none; }
.panel:not(:has(> .panel-h)), .gl-card:not(:has(> .gl-ch)) { padding-top: 14px !important; }
.page > h1 + .btn { float: right; position: relative; z-index: 6; margin: -46px 28px 0 0; }
.page > h1 + .btn + * { clear: both; }
body[data-brand] { --side-text: #b4bad6; --side-dim: #6f7696; --side-line: rgba(255,255,255,.07); --side-on: var(--tint); }
.gl-home > .gl-hero, section.gl-hero { margin: 0 0 4px !important; border: 0 !important; border-bottom: 1px solid var(--line) !important; border-radius: 0 !important; padding: 12px 28px !important; background: var(--bar) !important; width: auto; box-sizing: border-box; }

/* ===== donker: contrast, gloed en ronde vlakken ===== */
html, body, main#view { background: var(--bg); color: var(--text); }
body { background: radial-gradient(900px 500px at 85% -10%, rgba(79,107,255,.14), transparent 60%), var(--bg); }
body[data-brand="alu"] { background: radial-gradient(900px 500px at 85% -10%, rgba(63,200,228,.12), transparent 60%), var(--bg); }
body[data-brand="rol"] { background: radial-gradient(900px 500px at 85% -10%, rgba(253,181,21,.10), transparent 60%), var(--bg); }
main#view { background: none; }

/* zwevende zijbalk */
.shell { padding: 12px 12px 12px 0; gap: 12px; box-sizing: border-box; }
.side { margin: 0 0 0 12px; border: 1px solid var(--line); border-radius: 20px; background: var(--side-bg); }
.bsw button.on, .side .seg button.on, .side .seg.vat button.on, .set-tab.on { background: var(--tint); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.side .seg, .seg.q-tabs, .tools .seg, .tabs, .gl-tabs { background: #0a0d1a; border: 1px solid var(--line); }
.dock a.on { background: var(--accent-soft); color: var(--accent); }
.dock a:hover, .bsw button:hover, .tb-ico:hover { background: var(--tint); color: var(--text); }
.dock-n { background: var(--accent); color: #fff; } body[data-brand="rol"] .dock-n { color: #15130a; }
.role select, input, select, textarea { background: #0a0d1a; color: var(--text); border: 1px solid var(--line-strong); }
.role option, option { background: #0f1322; color: var(--text); }
input::placeholder, textarea::placeholder { color: #5f6688; }

/* titelbalk zonder streep, panelen als losse ronde kaarten */
main#view { border-radius: 20px; }
.page-h, .dash-head, .gl-hero, .page > h1, .gl-home > .gl-hero, section.gl-hero { background: none !important; backdrop-filter: none; border: 0 !important; padding: 18px 28px 6px !important; position: static; }
.page-h h1, .qb-h h1, .dash-hello h1, .gl-hello h1, .page > h1 { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.panel, .gl-card, .set-body .set, .box, .table-wrap, .tbl-wrap, .cv-empty, .cal-empty, .chat { background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0) 60%), var(--surface) !important; border: 1px solid var(--line) !important; border-radius: var(--r-lg) !important; box-shadow: 0 10px 30px rgba(0,0,0,.25) !important; }
.panel, .gl-card, .set-body .set, .box { padding: 0 20px 20px !important; }
.panel-h, .gl-ch, .set-body .set > h2 { margin: 0 -20px 12px; padding: 16px 20px 4px; background: none; border: 0; }
.panel:not(:has(> .panel-h)), .gl-card:not(:has(> .gl-ch)) { padding-top: 18px !important; }

/* kengetallen: losse kaarten, de eerste met gloed */
.kpis, .gl-metrics { background: none; border: 0; box-shadow: none; overflow: visible; gap: 12px; }
.kpis > .kpi, .gl-metric { background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0) 70%), var(--surface); border: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.kpis > .kpi:first-child, .gl-metric:first-child { padding-left: 18px; background: radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--accent) 38%, transparent), transparent 60%), #10162e; border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.kpi-v, .gl-mv { font-size: 30px; font-weight: 600; color: #fff; }
.kpi-l, .gl-metric .gl-ml { color: var(--muted); font-size: 12.5px; }
.kpi-s, .gl-ms { color: var(--muted); }
.gl-metric { --ac: var(--accent); }
.gl-trend.good { background: rgba(79,214,162,.15); color: var(--good); } .gl-trend.bad { background: rgba(255,122,114,.15); color: var(--rose); } .gl-trend { background: var(--tint); }
.kpis, .gl-metrics, .gl-row { margin-left: 28px !important; margin-right: 28px !important; }

/* knoppen */
.btn { background: var(--tint); border: 1px solid var(--line-strong); color: var(--text); box-shadow: none; border-radius: 999px; padding: 6px 16px; }
.btn:hover { background: #1f2540; }
.btn.primary { background: var(--btn); color: var(--btn-ink); border-color: transparent; box-shadow: 0 6px 20px color-mix(in srgb, var(--btn) 40%, transparent); }
.btn.primary:hover { background: var(--btn-hover); }
.btn.ghost { background: none; border-color: transparent; color: var(--muted); } .btn.ghost:hover { background: var(--tint); color: var(--text); }
.btn.danger { background: rgba(255,122,114,.1); color: var(--rose); border-color: rgba(255,122,114,.3); }
.gl-q, .chip, .loc-chip { background: var(--tint); border: 1px solid var(--line-strong); color: var(--text); border-radius: 999px; }

/* tabellen */
.tbl th { background: none !important; color: var(--muted); border-bottom: 1px solid var(--line); font-weight: 500; }
.tbl td { border-bottom: 1px solid var(--line); }
.tbl tbody tr:hover td { background: rgba(255,255,255,.035); }
.tag, .st-akkoord, .st-verstuurd { background: var(--accent-soft); color: var(--accent); }

/* leads */
.kcol { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: var(--r-lg); }
.lcard { background: var(--raise); border: 1px solid var(--line); border-radius: 13px; box-shadow: none; }
.lcard:hover { border-color: var(--accent); }

/* kantoor, chat, instellingen */
.room { background: var(--surface) !important; border: 1px solid var(--line) !important; border-left: 4px solid var(--rc) !important; border-radius: 14px !important; }
.room.on { background: color-mix(in srgb, var(--rc) 14%, var(--surface)) !important; }
.msg.jij { background: var(--accent-soft); } .msg.agent { background: var(--tint); }
.set-tab:hover { background: var(--tint); } .set-tab small { color: var(--muted); }
.modal-card, .drawer, .toast, .theme-menu { background: #0f1322; color: var(--text); border: 1px solid var(--line-strong); }
.scrim { background: rgba(0,0,0,.6); }

/* grafieken en lijsten */
.gl-chart .grid { stroke: rgba(255,255,255,.08); } .gl-chart .ax { fill: var(--muted); }
.gl-chart .bar .a { fill: var(--accent); } .gl-chart .ln.c-a { stroke: var(--accent); } .gl-chart .dot.c-a, .gl-chart .area.c-a { fill: var(--accent); }
.gl-rule, .bar-track { background: var(--tint); } .gl-rule u { background: var(--accent); }
.gl-alerts button:hover, .gl-feed button:hover { background: var(--tint); border-color: var(--line); }
.gl-ai, .gl-fi, .gl-metric .gl-mi { background: var(--tint); }
.gl-link, .link { color: var(--accent); }
a { color: inherit; }
:root { color-scheme: dark; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); background: none; }
body[data-brand] { --side-bg: #0b0e1b; }

/* ===== dashboard: bento-raster ===== */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(0, auto); gap: 14px; padding: 22px 28px 40px; }
.tile { position: relative; background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0) 60%), var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 18px 20px; box-shadow: 0 12px 34px rgba(0,0,0,.28); text-align: left; color: var(--text); font: inherit; min-width: 0; }
.tile-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.tile-h h2 { font-size: 14px; font-weight: 600; color: var(--muted); font-family: var(--sans); margin: 0; }
.pill { font-size: 11.5px; padding: 2px 9px; border-radius: 999px; background: var(--tint); color: var(--muted); border: 1px solid var(--line); }
.big { font-family: var(--display); font-weight: 600; font-size: 44px; letter-spacing: -0.035em; line-height: 1.05; color: #fff; }
.big.sm { font-size: 30px; }
.sub { color: var(--muted); font-size: 13px; margin: 6px 0 0; } .sub.c { text-align: center; }

.t-attn { grid-column: 1 / span 5; grid-row: 1 / span 2; background: radial-gradient(130% 90% at 0% 0%, color-mix(in srgb, var(--accent) 42%, transparent), transparent 65%), #0f1530; border-color: color-mix(in srgb, var(--accent) 40%, transparent); display: flex; flex-direction: column; gap: 14px; padding: 24px; }
.ta-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.hello { color: #c3caf0; font-size: 13.5px; margin: 0 0 4px; }
.t-attn h1 { font-family: var(--display); font-size: 30px; font-weight: 600; letter-spacing: -0.025em; margin: 0; color: #fff; }
.big-n { font-family: var(--display); font-weight: 700; font-size: 84px; line-height: .9; letter-spacing: -0.05em; color: #fff; }
.ta-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; flex: 1; align-content: start; }
.ta-list button { width: 100%; display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 16px; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.1); background: rgba(6,8,17,.45); color: #fff; font: inherit; cursor: pointer; text-align: left; }
.ta-list button:hover { background: rgba(6,8,17,.7); border-color: rgba(255,255,255,.28); }
.ta-list i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); } .ta-list .hot i { background: #ff9d57; } .ta-list .warn i { background: var(--amber); } .ta-list .go i { background: var(--good); }
.ta-list b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ta-list span { color: #aab2d8; font-size: 12.5px; }
.ta-foot { display: flex; gap: 18px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.1); color: #aab2d8; font-size: 12.5px; } .ta-foot b { color: #fff; }
.ta-foot .live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; } .ta-foot .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px var(--good); }

.t-rev { grid-column: 6 / span 4; overflow: hidden; } .t-conv { grid-column: 10 / span 3; }
.spark-wrap { margin: 10px -20px -18px; } .spark-wrap svg { width: 100%; height: 70px; display: block; }
.gauge-wrap { position: relative; width: 170px; margin: 4px auto 0; } .gauge { width: 100%; display: block; }
.gauge-n { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; font-family: var(--display); font-size: 30px; font-weight: 600; color: #fff; }
.t-pipe { grid-column: 6 / span 4; } .t-week { grid-column: 10 / span 3; }
.t-stack { grid-column: 1 / span 5; display: none; }
.pipe-top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.segbar { display: flex; gap: 3px; height: 10px; margin-bottom: 12px; } .segbar i { border-radius: 5px; }
.sg0 { background: #6d86ff; } .sg1 { background: #9b7bff; } .sg2 { background: #3fc8e4; } .sg3 { background: #4fd6a2; } .sg4 { background: #f0b44c; } .sg5 { background: #ff8f7a; }
.pipe-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.pipe-list button { width: 100%; display: flex; align-items: center; gap: 10px; background: none; border: 0; color: var(--text); font: inherit; padding: 5px 4px; border-radius: 8px; cursor: pointer; } .pipe-list button:hover { background: var(--tint); }
.pipe-list i { width: 9px; height: 9px; border-radius: 3px; } .pipe-list b { margin-left: auto; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 74px; margin-top: 14px; } .bars i { flex: 1; border-radius: 6px; background: var(--tint); min-height: 6px; } .bars i.now { background: var(--accent); }

.t-map { grid-column: 1 / span 7; } .t-feed { grid-column: 8 / span 5; }
.bento > .t-stack { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; order: 9; }
.t-prop, .t-idea { display: flex; align-items: center; gap: 14px; cursor: pointer; } .t-prop div, .t-idea div { display: flex; flex-direction: column; gap: 2px; } .t-prop span, .t-idea span { color: var(--muted); font-size: 12.5px; }
.t-prop.on { border-color: color-mix(in srgb, var(--amber) 50%, transparent); } .t-prop svg { color: var(--amber); } .t-idea svg { color: var(--accent); }
.t-map .loc-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.t-map .map-slot { border-radius: 14px; overflow: hidden; }
.t-feed .feed-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
@media (max-width: 1150px) { .bento > .tile, .bento > .t-stack { grid-column: 1 / -1 !important; grid-row: auto !important; } }

/* ===== offertes: tegels als filter ===== */
.qtiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 14px 0 16px; }
.qtile { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "l n" "s s"; align-items: baseline; text-align: left; padding: 14px 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: inherit; cursor: pointer; }
.qtile span { grid-area: l; font-size: 13px; } .qtile b { grid-area: n; font-family: var(--display); font-size: 30px; font-weight: 600; color: #fff; letter-spacing: -0.03em; } .qtile small { grid-area: s; font-size: 12.5px; margin-top: 2px; }
.qtile:hover { border-color: var(--line-strong); }
.qtile.on { background: radial-gradient(130% 120% at 0% 0%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 65%), #10162e; border-color: color-mix(in srgb, var(--accent) 50%, transparent); color: #c3caf0; }
.tools:has(> .btn.primary:only-child) { display: flex; justify-content: flex-end; margin: 0; }
.page { position: relative; }
.tools:has(> .btn.primary:only-child) { position: absolute; top: 18px; right: 28px; margin: 0; z-index: 3; }
.qtiles { margin-top: 4px; }

/* =====================================================================
   POP-LAAG: bewegende achtergrond, glas, gloeiende randen, 3D, animaties
   ===================================================================== */
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
body { background: #05070f; }
.mesh { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.mesh i { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: .5; will-change: transform; }
.mesh i:nth-child(1) { background: radial-gradient(circle, var(--accent), transparent 65%); left: -15vmax; top: -20vmax; animation: drift1 26s ease-in-out infinite alternate; }
.mesh i:nth-child(2) { background: radial-gradient(circle, #7c4dff, transparent 65%); right: -20vmax; top: 10vmax; opacity: .38; animation: drift2 32s ease-in-out infinite alternate; }
.mesh i:nth-child(3) { background: radial-gradient(circle, #14b8d4, transparent 65%); left: 25vmax; bottom: -35vmax; opacity: .28; animation: drift3 38s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(18vmax, 12vmax) scale(1.2); } } @keyframes drift2 { to { transform: translate(-16vmax, 14vmax) scale(.85); } } @keyframes drift3 { to { transform: translate(-14vmax, -10vmax) scale(1.15); } }
body[data-brand="rol"] .mesh i:nth-child(2) { background: radial-gradient(circle, #ff7a3d, transparent 65%); } body[data-brand="rol"] .mesh i:nth-child(3) { background: radial-gradient(circle, #ffd24a, transparent 65%); }
.shell { position: fixed; z-index: 1; background: none; }
html, body, main#view, .shell { background-color: transparent; } body { background: #05070f; }
.side { background: rgba(12,16,32,.55); backdrop-filter: blur(22px) saturate(1.5); box-shadow: 0 20px 60px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.06); }

/* glas + gloeiende rand + lichtvlek onder de muis */
.fx { position: relative; --mx: 50%; --my: 0%; --rx: 0deg; --ry: 0deg; }
.tile, .panel, .gl-card, .kpi, .gl-metric, .qtile, .kcol, .room, .cv-empty, .cal-empty, .table-wrap, .set-body .set, .chat {
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.015) 55%), rgba(14,18,38,.55) !important;
  backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.09) !important; box-shadow: 0 18px 50px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.08) !important; }
.fx::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s; background: radial-gradient(360px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%); }
.fx.hot::after { opacity: 1; }
.fx.hot { border-color: color-mix(in srgb, var(--accent) 45%, rgba(255,255,255,.1)) !important; }
.tilt { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .18s ease-out, border-color .25s; transform-style: preserve-3d; }
.tilt > * { transform: translateZ(18px); }
.lcard, .qtile { transition: transform .2s, border-color .2s, box-shadow .2s; } .lcard:hover, .qtile:hover { transform: translateY(-3px); }

/* instap-animatie bij openen van een pagina */
@keyframes rise { from { opacity: 0; transform: translateY(26px) scale(.965); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
[data-enter] .fx { animation: rise .75s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 70ms); }
[data-enter] .tilt.fx { animation-name: rise; }
@media (prefers-reduced-motion: reduce) { [data-enter] .fx, .mesh i { animation: none !important; } }

/* knoppen met glans */
.btn.primary { background: linear-gradient(135deg, var(--btn), color-mix(in srgb, var(--btn) 60%, #b78cff)); position: relative; overflow: hidden; }
.btn.primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .6s; }
.btn.primary:hover::after { transform: translateX(120%); }
body[data-brand="rol"] .btn.primary { background: linear-gradient(135deg, #fdb515, #ff9a3d); }

/* ===== dashboard v6 ===== */
.bento { gap: 16px; padding: 24px 28px 48px; }
.tile { border-radius: 26px; padding: 22px 24px; }
.t-attn { grid-column: 1 / span 5; grid-row: 1; min-height: 470px; overflow: hidden; background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.02) 55%), rgba(20,26,70,.6) !important; }
.t-attn::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: conic-gradient(from var(--ang), transparent 0 55%, var(--accent), #b78cff, transparent 90%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 6s linear infinite; pointer-events: none; }
@keyframes spin { to { --ang: 360deg; } }
.orb { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(2px); transform: translateZ(0); }
.orb.o1 { width: 190px; height: 190px; right: -50px; top: -60px; background: radial-gradient(circle at 30% 30%, #fff 0, color-mix(in srgb, var(--accent) 80%, #fff) 18%, transparent 62%); opacity: .55; animation: float 7s ease-in-out infinite; }
.orb.o2 { width: 120px; height: 120px; left: -30px; bottom: 30px; background: radial-gradient(circle at 35% 35%, #fff 0, #b78cff 20%, transparent 65%); opacity: .35; animation: float 9s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translate3d(14px, -22px, 40px) scale(1.08); } }
.t-attn > :not(.orb) { position: relative; z-index: 1; }
.big-n { font-size: 110px; background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--accent) 55%, #fff)); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 6px 24px color-mix(in srgb, var(--accent) 60%, transparent)); }
.ta-list button { background: rgba(255,255,255,.07); backdrop-filter: blur(8px); border-radius: 16px; transition: transform .18s, background .18s; } .ta-list button:hover { transform: translateX(5px); background: rgba(255,255,255,.14); }

.t-map { grid-column: 6 / span 7; grid-row: 1; padding: 0; overflow: hidden; display: flex; flex-direction: column; min-height: 470px; }
.map-over { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 22px 0; }
.map-over h2 { font-size: 18px; margin: 0; } .map-over p { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; }
.t-map .map-slot { position: absolute; inset: 0; border-radius: 0; } .t-map .map-slot canvas, .t-map #map { width: 100% !important; height: 100% !important; }
.t-map .loc-row { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 3; margin: 0; }
.t-map .loc-chip { background: rgba(8,10,22,.7); backdrop-filter: blur(10px); }
.t-map .seg { background: rgba(8,10,22,.6); backdrop-filter: blur(10px); }

.t-rev { grid-column: 1 / span 5; grid-row: 2; overflow: hidden; } .t-pipe { grid-column: 6 / span 4; grid-row: 2; } .t-conv { grid-column: 10 / span 3; grid-row: 2; }
.t-week { grid-column: 1 / span 4; grid-row: 3; } .t-feed { grid-column: 5 / span 4; grid-row: 3; } .bento > .t-stack { grid-column: 9 / span 4; grid-row: 3; grid-template-columns: 1fr; align-content: start; order: 0; }
.rev-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.big { font-size: 52px; background: linear-gradient(180deg, #fff, #c9d0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.big.sm { font-size: 38px; }
.chipv { text-align: right; padding: 6px 12px; border-radius: 14px; background: rgba(79,214,162,.12); border: 1px solid rgba(79,214,162,.25); } .chipv b { display: block; color: var(--good); font-size: 15px; } .chipv span { font-size: 11.5px; color: var(--muted); }
.area-chart { width: calc(100% + 48px); margin: 14px -24px 0; height: 150px; display: block; }
.area-chart .ln { stroke-dasharray: 1; stroke-dashoffset: 0; filter: drop-shadow(0 4px 10px var(--accent)); }
.area-chart .dot.last { filter: drop-shadow(0 0 8px #fff); }
[data-enter] .area-chart .ln { animation: draw 1.6s .3s cubic-bezier(.4,0,.2,1) both; } [data-enter] .area-chart .ar { animation: fade 1.4s .6s both; }
@keyframes draw { from { stroke-dashoffset: 1; } } @keyframes fade { from { opacity: 0; } }
.axis { display: flex; justify-content: space-between; padding: 0 6px; color: var(--muted); font-size: 11.5px; margin-top: 2px; }

.pipe-body { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: center; }
.donut-wrap { position: relative; width: 150px; } .donut { width: 100%; display: block; filter: drop-shadow(0 8px 24px rgba(0,0,0,.4)); }
.donut .seg { stroke: currentColor; } .donut .sg0 { color: #6d86ff; } .donut .sg1 { color: #9b7bff; } .donut .sg2 { color: #3fc8e4; } .donut .sg3 { color: #4fd6a2; } .donut .sg4 { color: #f0b44c; } .donut .sg5 { color: #ff8f7a; }
[data-enter] .donut .seg { animation: segIn 1.2s cubic-bezier(.3,.7,.2,1) both; } @keyframes segIn { from { stroke-dasharray: 0 400; } }
.donut-n { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; } .donut-n b { font-family: var(--display); font-size: 34px; color: #fff; line-height: 1; } .donut-n span { font-size: 11.5px; color: var(--muted); }
.pipe-list li:nth-child(n+6) { display: none; }
.gauge-wrap { width: 100%; max-width: 190px; } .gauge-n { font-size: 34px; }
.gauge .arc { filter: drop-shadow(0 0 8px var(--accent)); } [data-enter] .gauge .arc { animation: arcIn 1.3s cubic-bezier(.3,.7,.2,1) both; } @keyframes arcIn { from { stroke-dasharray: 0 400; } }
.bars { height: 110px; } .bars i { transform-origin: bottom; background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.04)); } .bars i.now { background: linear-gradient(180deg, #b78cff, var(--accent)); box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 60%, transparent); }
[data-enter] .bars i { animation: grow .8s cubic-bezier(.3,.8,.2,1) both; } @keyframes grow { from { transform: scaleY(0); } }
.t-prop, .t-idea { border-radius: 22px; } .t-prop .ico, .t-idea .ico { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 50%, transparent), rgba(183,140,255,.3)); color: #fff; flex: none; }
.t-prop.on .ico { background: linear-gradient(135deg, rgba(240,180,76,.6), rgba(255,143,122,.4)); }
@media (max-width: 1150px) { .bento > .tile, .bento > .t-stack { grid-column: 1 / -1 !important; grid-row: auto !important; } .t-map { min-height: 380px; } }

/* ===== overige pagina's: dezelfde taal ===== */
.qtile b, .kpi-v, .gl-mv { font-size: 34px; background: linear-gradient(180deg, #fff, #c9d0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.qtile.on { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent), 0 18px 50px color-mix(in srgb, var(--accent) 25%, transparent) !important; }
.kpis > .kpi:first-child, .gl-metric:first-child { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 38%, transparent), rgba(255,255,255,.02) 60%), rgba(14,18,38,.6) !important; }
.page-h h1, .page > h1, .gl-hello h1 { background: linear-gradient(180deg, #fff, #b9c1f5); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 30px; }
.dock a.on { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 35%, transparent), rgba(183,140,255,.12)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent), 0 0 24px color-mix(in srgb, var(--accent) 25%, transparent); color: #fff; }
.tbl tbody tr { transition: background .15s, transform .15s; } .tbl tbody tr:hover td { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.t-map .map-slot { height: auto; border: 0; background: radial-gradient(60% 70% at 50% 55%, rgba(109,134,255,.22), transparent 70%), radial-gradient(40% 40% at 50% 55%, rgba(63,200,228,.12), transparent 70%); }

/* ===== startscherm met 3D-aarde ===== */
.home { position: relative; height: calc(100vh - 48px); min-height: 640px; margin: 12px 14px 0 0; border-radius: 30px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); background: radial-gradient(80% 90% at 55% 45%, #0a1230 0, #03050d 70%); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.home-scene, .e3-host { position: absolute; inset: 0; }
.scene-fade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(3,5,13,.78) 0, rgba(3,5,13,.2) 30%, transparent 45%, transparent 62%, rgba(3,5,13,.72) 100%), linear-gradient(0deg, rgba(3,5,13,.7), transparent 22%); }
.e3-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.6s ease; cursor: grab; touch-action: none; } .e3-canvas.ready { opacity: 1; } .e3-canvas.grab { cursor: grabbing; }
.e3-pills { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.e3-pill { position: absolute; left: 0; top: 0; display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; padding: 8px 16px 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.04)), rgba(24,26,40,.55); backdrop-filter: blur(14px) saturate(1.4); color: #fff; font: inherit; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.25); transition: opacity .3s, border-color .2s, background .2s; will-change: transform; }
.e3-pill b { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; } .e3-pill span { font-size: 14px; color: rgba(255,255,255,.62); }
.e3-pill:hover, .e3-pill.hot { border-color: rgba(255,255,255,.55); background: rgba(60,64,96,.7); }
.e3-pill.fabriek { border-color: rgba(255,193,90,.5); } .e3-pill.hot.fabriek, .e3-pill.fabriek:hover { border-color: #ffc15a; }
.e3-pill.hot:not(.fabriek):not(.kantoor) { border-color: rgba(255,157,87,.7); } .e3-pill.go { border-color: rgba(79,214,162,.55); } .e3-pill.warn { border-color: rgba(240,180,76,.55); }
.e3-pill.sat { border-color: rgba(201,164,255,.5); background: rgba(52,36,92,.55); } .e3-pill.sat b { color: #e6d6ff; }
.e3-host.no-gl::after { content: "3D-weergave niet beschikbaar op dit apparaat"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }

.hud { position: absolute; inset: 0; padding: 22px; display: grid; grid-template-columns: 350px minmax(0, 1fr) 350px; grid-template-rows: minmax(0, 1fr) auto; gap: 14px; pointer-events: none; }
.hud > * { pointer-events: none; } .hud .tile, .hud .hud-chips, .hud button { pointer-events: auto; }
.hud-l { grid-column: 1; grid-row: 1 / span 2; display: flex; flex-direction: column; min-height: 0; } .hud-l .tile { flex: 0 1 auto; min-height: 0; overflow: hidden; }
.hud-r { grid-column: 3; grid-row: 1; display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.hud-b { grid-column: 2; grid-row: 2; display: flex; justify-content: center; align-items: flex-end; }
.hud-hint { grid-column: 2; grid-row: 1; align-self: start; justify-self: center; margin: 4px 0 0; font-size: 12px; color: rgba(255,255,255,.4); }
.hud .tile { border-radius: 24px; padding: 18px 20px; background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.02) 60%), rgba(10,14,34,.62) !important; }
.hud .t-attn { min-height: 0; padding: 22px; } .hud .big-n { font-size: 84px; } .hud .t-attn h1 { font-size: 26px; }
.hud .ta-list { gap: 7px; } .hud .ta-list button { padding: 10px 12px; grid-template-columns: 8px minmax(0,1fr) auto 14px; } .hud .ta-list span { display: none; } .hud .ta-list button:hover span { display: inline; }
.hud .big { font-size: 38px; } .hud .area-chart { height: 96px; margin-top: 6px; } .hud .rev-top { align-items: center; } .hud .sub { margin-top: 2px; }
.hud .pipe-body { grid-template-columns: 118px minmax(0,1fr); gap: 12px; } .hud .donut-wrap { width: 118px; } .hud .donut-n b { font-size: 26px; } .hud .pipe-list li:nth-child(n+5) { display: none; }
.hud-chips { display: inline-flex; gap: 8px; padding: 6px; border-radius: 999px; background: rgba(10,14,34,.62); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(16px); }
.chip-r { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 999px; border: 0; background: transparent; color: rgba(255,255,255,.72); font: inherit; font-weight: 500; cursor: pointer; transition: background .2s, color .2s; }
.chip-r i { width: 7px; height: 7px; border-radius: 50%; background: #ffc15a; box-shadow: 0 0 8px #ffc15a; } .chip-r:hover { background: rgba(255,255,255,.12); color: #fff; }
.bento.below { padding-top: 16px; } .bento.below .t-conv { grid-column: 1 / span 3; grid-row: auto; } .bento.below .t-week { grid-column: 4 / span 3; grid-row: auto; } .bento.below .t-feed { grid-column: 7 / span 3; grid-row: auto; } .bento.below > .t-stack { grid-column: 10 / span 3; grid-row: auto; }
@media (max-width: 1250px) { .hud { grid-template-columns: 330px minmax(0,1fr) 320px; } }
@media (max-width: 1000px) { .home { height: auto; min-height: 0; } .home-scene { position: relative; height: 56vh; } .hud { position: relative; display: flex; flex-direction: column; } .hud-hint { display: none; } .bento.below > * { grid-column: 1 / -1 !important; } }
.hud-b { flex-direction: column; align-items: center; gap: 10px; }
.ask { pointer-events: auto; width: min(620px, 100%); display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 20px; background: linear-gradient(135deg, rgba(109,134,255,.26), rgba(183,140,255,.12)), rgba(10,14,34,.7); border: 1px solid rgba(160,180,255,.3); backdrop-filter: blur(18px); box-shadow: 0 14px 40px rgba(0,0,0,.4), 0 0 40px color-mix(in srgb, var(--accent) 18%, transparent); }
.ask-ico { color: #c9a4ff; display: grid; } .ask-in { flex: 1; background: none !important; border: 0 !important; color: #fff; font: inherit; outline: none; padding: 8px 0; min-width: 0; } .ask-in::placeholder { color: rgba(255,255,255,.5); }
.ask-go { width: 38px; height: 38px; border-radius: 13px; border: 0; background: linear-gradient(135deg, var(--btn), #b78cff); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 6px 18px color-mix(in srgb, var(--btn) 45%, transparent); }
.home-scene { z-index: 0; } .hud { z-index: 2; } .e3-pills { z-index: 1; }

/* ===== v7: lichte matglazen kaarten + blauwe gradiëntkaarten (naar Geex Arts / Outcrowd) ===== */
.tile.lite, .hud .tile.lite { --text: #0f1424; --muted: #6a7188; --line: rgba(15,20,36,.09); --tint: rgba(15,20,36,.05); color: #0f1424;
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(244,246,255,.86)) !important; border: 1px solid rgba(255,255,255,.7) !important; border-radius: 30px; box-shadow: 0 24px 60px rgba(0,0,0,.35), inset 0 1px 0 #fff !important; backdrop-filter: blur(24px) saturate(1.3); }
.tile.lite .tile-h h2 { color: #0f1424; font-family: var(--display); font-size: 17px; font-weight: 600; }
.tile.lite .pill { background: #0f1424; color: #fff; border: 0; }
.tile.lite .link { color: #3b5bff; font-weight: 600; text-decoration: none; }
.tile.lite .sub, .tile.lite .hello { color: #6a7188; }
.tile.lite.fx::after { background: radial-gradient(380px circle at var(--mx) var(--my), rgba(90,120,255,.16), transparent 60%); }
.tile.blue, .hud .tile.blue { color: #fff; background: radial-gradient(120% 90% at 100% 0%, rgba(190,160,255,.75), transparent 55%), linear-gradient(150deg, #2f55ff 0%, #4a73ff 55%, #7e8bff 100%) !important; border: 1px solid rgba(255,255,255,.35) !important; border-radius: 30px; box-shadow: 0 24px 60px rgba(40,70,255,.35), inset 0 1px 0 rgba(255,255,255,.5) !important; }
.tile.blue .tile-h h2 { color: rgba(255,255,255,.85); } .tile.blue .pill { background: rgba(255,255,255,.2); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.tile.blue .big { background: none; color: #fff; -webkit-text-fill-color: #fff; font-size: 54px; }
.tile.blue .rev-sub { display: flex; align-items: center; gap: 10px; margin-top: 6px; color: rgba(255,255,255,.8); font-size: 13px; } .tile.blue .chipv { background: rgba(255,255,255,.22); border: 0; color: #fff; padding: 3px 10px; border-radius: 999px; font-weight: 600; text-align: left; }
.tile.blue .area-chart .ln { stroke: #fff; filter: drop-shadow(0 6px 10px rgba(255,255,255,.4)); } .tile.blue .area-chart .dot { fill: #fff; } .tile.blue .area-chart svg stop { stop-color: #fff; } .tile.blue .axis { color: rgba(255,255,255,.7); }
.tile.blue .area-chart defs stop:first-child { stop-color: #fff; stop-opacity: .45; } .tile.blue .area-chart defs stop:last-child { stop-color: #fff; stop-opacity: 0; }
.tile.blue.fx::after { background: radial-gradient(380px circle at var(--mx) var(--my), rgba(255,255,255,.22), transparent 60%); }

/* wacht op jou */
.t-attn.lite { padding: 24px; } .t-attn.lite::before, .t-attn .orb { display: none; }
.t-attn.lite h1 { color: #0f1424; background: none; -webkit-text-fill-color: #0f1424; font-size: 26px; }
.t-attn.lite .big-n { font-size: 104px; background: linear-gradient(180deg, #1a2cff 0%, #5b8cff 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: none; }
.t-attn.lite .ta-list button { background: rgba(15,20,36,.04); border: 1px solid transparent; color: #0f1424; grid-template-columns: 38px minmax(0,1fr) 30px; border-radius: 20px; padding: 8px 12px 8px 8px; backdrop-filter: none; }
.t-attn.lite .ta-list button:hover { background: #fff; border-color: rgba(59,91,255,.25); box-shadow: 0 10px 24px rgba(20,30,90,.12); transform: translateX(3px); }
.ta-list .av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 13px; color: #fff; background: linear-gradient(135deg, #ff9d57, #ff6a8a); } .ta-list .go.hot ~ * {} .ta-list .go-ico {}
.ta-list .warn .av { background: linear-gradient(135deg, #f0b44c, #ff9d57); } .ta-list .go .av, .ta-list button.go .av { background: linear-gradient(135deg, #3ad6a2, #2f9fff); }
.ta-list .tx { display: flex; flex-direction: column; text-align: left; min-width: 0; } .ta-list .tx b { font-weight: 600; } .ta-list .tx small { color: #6a7188; font-size: 12px; }
.ta-list em.go { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #0f1424; color: #fff; font-style: normal; }
.hud .ta-list button > span:not(.tx) { display: none; }
.t-attn.lite .ta-foot { border-top: 1px solid rgba(15,20,36,.09); color: #6a7188; } .t-attn.lite .ta-foot b { color: #0f1424; }

/* pijplijn: gestreepte balken */
.t-pipe.lite .big { background: none; -webkit-text-fill-color: #0f1424; color: #0f1424; font-size: 36px; } .pipe-top { margin-bottom: 14px; }
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hbars button { width: 100%; display: grid; grid-template-columns: 92px minmax(0,1fr) 22px; align-items: center; gap: 12px; background: none; border: 0; color: #0f1424; font: inherit; cursor: pointer; padding: 0; text-align: left; } .hbars b { text-align: right; }
.hb { display: block; height: 16px; border-radius: 6px; background: rgba(15,20,36,.06); overflow: hidden; } .hb i { display: block; height: 100%; border-radius: 6px; transform-origin: left; }
.hb0 i { background: repeating-linear-gradient(135deg, #2f55ff 0 4px, #8ea4ff 4px 8px); } .hb1 i { background: repeating-linear-gradient(135deg, #17b26a 0 4px, #7be0a8 4px 8px); } .hb2 i { background: repeating-linear-gradient(135deg, #ff4f8b 0 4px, #ffa6c4 4px 8px); } .hb3 i { background: repeating-linear-gradient(135deg, #f59e0b 0 4px, #fcd98a 4px 8px); } .hb4 i { background: repeating-linear-gradient(135deg, #8b5cf6 0 4px, #c9b3ff 4px 8px); }
[data-enter] .hb i { animation: growx .9s cubic-bezier(.3,.8,.2,1) both; } @keyframes growx { from { transform: scaleX(0); } }

/* gauge + week + feed in nieuwe kaarten */
.t-conv.lite .gauge-n { color: #0f1424; } .t-conv.lite .gauge path:first-of-type { stroke: rgba(15,20,36,.08); }
.t-week.blue .bars i { background: repeating-linear-gradient(135deg, rgba(255,255,255,.55) 0 3px, rgba(255,255,255,.15) 3px 6px); } .t-week.blue .bars i.now { background: #fff; box-shadow: 0 0 22px rgba(255,255,255,.7); }
.t-feed.lite .feed-list li { color: #0f1424; } .t-feed.lite .feed-list li:first-child { background: rgba(59,91,255,.08); border-radius: 12px; }
.t-prop.lite, .t-idea.lite { border-radius: 26px; } .t-prop.lite .ico, .t-idea.lite .ico { background: #0f1424; color: #fff; } .t-prop.lite b, .t-idea.lite b { color: #0f1424; } .t-prop.lite span, .t-idea.lite span { color: #6a7188; }
.tile.lite .empty { color: #6a7188; }

/* vraagbalk licht, zwarte knop */
.ask { background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(224,232,255,.9)); border: 1px solid #fff; box-shadow: 0 18px 50px rgba(0,0,0,.4), 0 0 60px rgba(90,120,255,.25); border-radius: 22px; }
.ask-ico { color: #5b6dff; } .ask-in { color: #0f1424; } .ask-in::placeholder { color: #8a91a8; } .ask-go { background: #0f1424; box-shadow: none; }
.hud-chips { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); } .chip-r { color: #fff; }
.hud .tile { padding: 20px 22px; }
.t-attn.lite .ta-list .tx, .t-attn.lite .ta-list .tx b { color: #0f1424 !important; -webkit-text-fill-color: #0f1424; display: flex; } .t-attn.lite .ta-list .tx b { display: block; font-size: 14px; } .t-attn.lite .ta-list .tx small { display: block; color: #6a7188 !important; -webkit-text-fill-color: #6a7188; }
.t-attn.lite .ta-list button { display: grid; align-items: center; }
.bento.below { align-items: start; }

/* ===== v8: "Wacht op jou" = blauwe gradiëntkaart; alle pagina's in dezelfde taal ===== */
.t-attn.blue { padding: 24px; color: #fff; }
.t-attn.blue h1 { color: #fff; background: none; -webkit-text-fill-color: #fff; font-size: 28px; letter-spacing: -.03em; }
.t-attn.blue .hello { color: rgba(255,255,255,.75); }
.t-attn.blue .big-n { font-size: 120px; line-height: .8; background: none; -webkit-text-fill-color: rgba(255,255,255,.95); color: #fff; text-shadow: 0 10px 40px rgba(20,30,160,.45); }
.t-attn.blue .ta-list button { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); color: #fff; backdrop-filter: blur(10px); border-radius: 20px; }
.t-attn.blue .ta-list button:hover { background: rgba(255,255,255,.28); transform: translateX(3px); box-shadow: 0 12px 30px rgba(10,20,120,.3); }
.t-attn.blue .ta-list .tx, .t-attn.blue .ta-list .tx b { color: #fff !important; -webkit-text-fill-color: #fff; } .t-attn.blue .ta-list .tx small { color: rgba(255,255,255,.75) !important; -webkit-text-fill-color: rgba(255,255,255,.75); }
.t-attn.blue .ta-list .av { background: #fff; color: #2f55ff; } .t-attn.blue .ta-list .warn .av, .t-attn.blue .ta-list .av { box-shadow: 0 6px 16px rgba(10,20,120,.25); }
.t-attn.blue .ta-list em.go { background: #fff; color: #2f55ff; }
.t-attn.blue .ta-foot { border-top: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.8); } .t-attn.blue .ta-foot b { color: #fff; }
.t-attn.blue .ta-foot .live i { background: #7dffc4; box-shadow: 0 0 10px #7dffc4; }
.t-attn.blue .empty { color: rgba(255,255,255,.8); }

/* alle overige pagina's: paginatitel, lichte kaarten, blauwe knoppen */
.page-h h1, .page > h1, .gl-hero h1 { font-family: var(--display); font-size: 40px; font-weight: 700; letter-spacing: -.04em; background: linear-gradient(180deg, #fff 30%, #9fb2ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.btn.primary, .page-h .btn.primary { background: linear-gradient(135deg, #2f55ff, #7e8bff); color: #fff; border: 0; box-shadow: 0 12px 30px rgba(47,85,255,.45); }
.btn { border-radius: 999px; }

/* leads: donkere kolommen en donkere kaarten */
.lcard { background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.03)) !important; color: var(--text); border: 1px solid rgba(255,255,255,.1) !important; border-radius: 18px !important; box-shadow: 0 10px 26px rgba(0,0,0,.3) !important; }
.lcard:hover { border-color: #6d86ff !important; box-shadow: 0 16px 40px rgba(47,85,255,.3) !important; }
.kcol { border-radius: 26px !important; } .kcol header h3 { font-size: 15px; } .kcol header span { background: rgba(255,255,255,.12); color: #fff; border-radius: 999px; padding: 1px 9px; }
.kcol.offerte { background: linear-gradient(160deg, rgba(47,85,255,.9), rgba(126,139,255,.85)) !important; } .kcol.offerte p, .kcol.offerte .link, .kcol.offerte .empty { color: #fff; }

/* attn-rijen in de blauwe kaart */
.t-attn.blue .ta-list button { display: grid; grid-template-columns: 40px minmax(0,1fr) 30px; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; width: 100%; }
.t-attn.blue .ta-list { gap: 10px; }
.t-attn.blue .ta-list .av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 13px; }
.t-attn.blue .ta-list .tx { display: flex; flex-direction: column; text-align: left; min-width: 0; } .t-attn.blue .ta-list .tx small { font-size: 12px; }
.t-attn.blue .ta-list em.go { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; }
.hud .t-attn.blue .ta-list button > span:not(.tx) { display: none; }

.qb-right .btn { border-radius: 999px; } .qb-right .btn.primary { background: linear-gradient(135deg, #2f55ff, #7e8bff); border: 0; }

/* ===== v9: "Wacht op jou" compact en eigen kleur (warm), los van de blauwe kaarten ===== */
.hud .t-attn.warm, .t-attn.warm { padding: 16px 16px 14px !important; color: #fff; border-radius: 26px; gap: 10px;
  background: radial-gradient(120% 100% at 0% 0%, rgba(255,150,90,.55), transparent 55%), radial-gradient(100% 90% at 100% 100%, rgba(190,70,200,.5), transparent 60%), linear-gradient(160deg, rgba(34,22,52,.88), rgba(20,16,40,.9)) !important;
  border: 1px solid rgba(255,170,120,.35) !important; box-shadow: 0 20px 50px rgba(0,0,0,.4), 0 0 40px rgba(255,120,90,.12), inset 0 1px 0 rgba(255,255,255,.14) !important; }
.t-attn.warm .ta-top { align-items: center; } .t-attn.warm .hello { color: rgba(255,220,200,.8); font-size: 12px; margin: 0 0 2px; }
.t-attn.warm h1 { color: #fff; background: none; -webkit-text-fill-color: #fff; font-size: 19px; letter-spacing: -.02em; margin: 0; }
.t-attn.warm .big-n { font-size: 26px; line-height: 1; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: #fff; -webkit-text-fill-color: #fff; text-shadow: none;
  background: linear-gradient(135deg, #ff9a5a, #ff4f8b); box-shadow: 0 8px 24px rgba(255,90,110,.5); font-weight: 700; }
.t-attn.warm .ta-list { gap: 6px; }
.t-attn.warm .ta-list button { display: grid; grid-template-columns: 30px minmax(0,1fr) 24px; gap: 10px; align-items: center; width: 100%; padding: 6px 8px 6px 6px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); color: #fff; backdrop-filter: none; }
.t-attn.warm .ta-list button:hover { background: rgba(255,255,255,.14); border-color: rgba(255,170,120,.5); transform: translateX(2px); box-shadow: none; }
.t-attn.warm .ta-list .av { width: 30px; height: 30px; font-size: 11px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; color: #fff; background: linear-gradient(135deg, #ff9a5a, #ff4f8b); box-shadow: none; }
.t-attn.warm .ta-list .tx, .t-attn.warm .ta-list .tx b { color: #fff !important; -webkit-text-fill-color: #fff; display: block; text-align: left; font-size: 13px; line-height: 1.2; }
.t-attn.warm .ta-list .tx small { display: block; color: rgba(255,220,205,.7) !important; -webkit-text-fill-color: rgba(255,220,205,.7); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-attn.warm .ta-list em.go { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.15); color: #fff; font-style: normal; }
.t-attn.warm .ta-foot { border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,220,205,.75); font-size: 11.5px; padding-top: 8px; margin-top: 2px; gap: 4px 12px; flex-wrap: wrap; } .t-attn.warm .ta-foot b { color: #fff; }
.t-attn.warm .ta-foot .live i { background: #7dffc4; box-shadow: 0 0 8px #7dffc4; }
.hud .t-attn.warm .ta-list button > span:not(.tx) { display: none; }

/* ===== v10: KPI-rijen, lege schermen, kamers, achtergrond voor álle pagina's ===== */
.kpis, .gl-metrics, .qtiles, .stats { gap: 14px !important; }
.kpi, .gl-metric, .qtile, .stat { border-radius: 24px !important; padding: 16px 18px !important; position: relative; overflow: hidden; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, border-color .25s !important; color: var(--text); text-align: left; font: inherit;
  background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.025)), rgba(14,18,38,.6) !important; border: 1px solid rgba(255,255,255,.1) !important; box-shadow: 0 16px 40px rgba(0,0,0,.3) !important; }
.kpi:hover, .gl-metric:hover, .qtile:hover, .stat:hover { transform: translateY(-3px); border-color: rgba(109,134,255,.6) !important; }
.stat b, .kpi b, .kpi .kpi-v, .gl-metric b, .qtile b { color: #fff; font-family: var(--display); letter-spacing: -.03em; font-size: 28px; font-weight: 700; }
.stat span, .stat small, .kpi span, .kpi small, .gl-metric span, .gl-metric small, .qtile span, .qtile small { color: var(--muted); }
.stats > :first-child, .kpis > :first-child, .gl-metrics > :first-child, .qtile.on { background: radial-gradient(120% 90% at 100% 0%, rgba(190,160,255,.7), transparent 55%), linear-gradient(150deg, #2f55ff, #4a73ff 55%, #7e8bff) !important; border-color: rgba(255,255,255,.35) !important; box-shadow: 0 20px 50px rgba(47,85,255,.4) !important; }
.stats > :first-child *, .kpis > :first-child *, .gl-metrics > :first-child *, .qtile.on * { color: #fff !important; }

/* lege schermen: nette middenkaart */
.cv-empty, .cal-empty { max-width: 460px; text-align: center; border-radius: 32px !important; padding: 36px 32px !important; margin: 14vh auto 0 !important; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cv-empty h2, .cal-empty h2 { font-size: 24px !important; line-height: 1.15; color: #fff; margin: 6px 0 0; font-family: var(--display); letter-spacing: -.03em; font-weight: 700; }
.cv-empty p, .cal-empty p { font-size: 14px !important; line-height: 1.5; color: var(--muted) !important; margin: 0; max-width: 34ch; }
.cv-empty svg, .cal-empty svg { width: 52px; height: 52px; padding: 13px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #2f55ff, #7e8bff); box-shadow: 0 12px 28px rgba(47,85,255,.45); box-sizing: border-box; }
.cv-empty.big, .cv-empty.big.gl-card { margin-top: 18vh !important; }

/* kantoor: kamers als gekleurde kaarten */
.room { border-radius: 26px !important; }
.room.locked, .room:not(.sel):nth-child(odd) { }
.floor .room:nth-child(1) { background: radial-gradient(120% 100% at 0% 0%, rgba(255,150,90,.5), transparent 60%), linear-gradient(160deg, rgba(34,22,52,.9), rgba(20,16,40,.92)) !important; color: #fff; --text: #fff; --muted: #ffdcc8; border-color: rgba(255,170,120,.35) !important; }
.floor .room:nth-child(2) { background: radial-gradient(120% 90% at 100% 0%, rgba(190,160,255,.7), transparent 55%), linear-gradient(150deg, #2f55ff, #7e8bff) !important; color: #fff; --text: #fff; --muted: #e6ecff; }
.floor .room:nth-child(3) { background: radial-gradient(120% 100% at 0% 100%, rgba(60,220,170,.45), transparent 60%), linear-gradient(160deg, rgba(14,34,48,.92), rgba(12,26,44,.92)) !important; color: #fff; --text: #fff; --muted: #c6f3e6; border-color: rgba(90,230,190,.3) !important; }
.floor .room * { color: inherit; }

/* zwevende gloedvlekken achter alle pagina's */
main#view::before, main#view::after { content: ""; position: fixed; pointer-events: none; z-index: -1; border-radius: 50%; filter: blur(90px); opacity: .55; animation: drift 22s ease-in-out infinite alternate; }
main#view::before { width: 520px; height: 520px; right: 8%; top: -120px; background: rgba(79,107,255,.35); }
main#view::after { width: 460px; height: 460px; left: 28%; bottom: -160px; background: rgba(190,70,200,.22); animation-delay: -9s; }
@keyframes drift { to { transform: translate(-80px, 60px) scale(1.15); } }
@media (prefers-reduced-motion: reduce) { main#view::before, main#view::after { animation: none; } }

/* ===== v11: zijbalk als smalle rail, klapt open bij hover ===== */
:root { --rail: 64px; }
.shell { grid-template-columns: calc(var(--rail) + 12px) minmax(0, 1fr) !important; padding-left: 0 !important; }
.shell > main#view { grid-column: 2; }
.side { position: absolute !important; left: 12px; top: 12px; bottom: 12px; margin: 0 !important; width: var(--rail); z-index: 60; overflow: hidden !important; padding: 14px 10px !important; box-sizing: border-box;
  transition: width .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s, background .28s; }
.side:hover, .side:focus-within { width: 232px; overflow-y: auto !important; box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.1); background: rgba(11,14,27,.96); backdrop-filter: blur(20px); }
.side a, .bsw button, .side .dock-g > * { white-space: nowrap; }
.side a { overflow: hidden; } .side a svg, .bsw img { flex: none; }
.side:not(:hover):not(:focus-within) { padding-left: 8px !important; padding-right: 8px !important; }
.side:not(:hover):not(:focus-within) .dock-h, .side:not(:hover):not(:focus-within) .bsw button span, .side:not(:hover):not(:focus-within) a > span,
.side:not(:hover):not(:focus-within) .seg, .side:not(:hover):not(:focus-within) .role, .side:not(:hover):not(:focus-within) .side-foot, .side:not(:hover):not(:focus-within) .tb-ico { display: none !important; }
.side:not(:hover):not(:focus-within) .bsw { display: flex; flex-direction: column; gap: 4px; background: none; border: 0; padding: 0; }
.side:not(:hover):not(:focus-within) .bsw::before, .side:not(:hover):not(:focus-within) .bsw::after { display: none; }
.side:not(:hover):not(:focus-within) .bsw button { padding: 8px; justify-content: center; } .side:not(:hover):not(:focus-within) .bsw button:not(.on) { opacity: .55; }
.side:not(:hover):not(:focus-within) a { justify-content: center; padding: 10px 0; gap: 0; position: relative; }
.side:not(:hover):not(:focus-within) .dock-n { position: absolute; top: 4px; right: 8px; font-size: 0; width: 9px; height: 9px; min-width: 0; padding: 0; }
.side:not(:hover):not(:focus-within) .dock-g { gap: 4px; }
.qtools { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; } .q-search { flex: 1; max-width: 560px; }
.q-found { color: var(--muted); font-size: 13px; margin: 0 0 10px; }
input[type="search"] { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; color: var(--text); padding: 10px 16px 10px 40px; font: inherit; transition: border-color .2s, box-shadow .2s, background .2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238c93b3' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 15px center; }
input[type="search"]:focus { outline: 0; border-color: #6d86ff; background-color: rgba(255,255,255,.1); box-shadow: 0 0 0 4px rgba(109,134,255,.22), 0 10px 30px rgba(47,85,255,.25); }
.page.leads .tools input[type="search"] { min-width: 280px; }

/* ===== v12: pijplijn met vloeibare bol ===== */
.t-pipe.liquid { padding: 18px 20px 16px; color: #fff; border-radius: 28px;
  background: radial-gradient(110% 80% at 0% 100%, rgba(60,230,200,.35), transparent 60%), radial-gradient(90% 80% at 100% 0%, rgba(120,90,255,.45), transparent 60%), linear-gradient(165deg, rgba(14,28,46,.92), rgba(18,16,48,.94)) !important;
  border: 1px solid rgba(120,240,220,.28) !important; box-shadow: 0 24px 60px rgba(0,0,0,.4), 0 0 50px rgba(90,230,200,.12), inset 0 1px 0 rgba(255,255,255,.14) !important; }
.t-pipe.liquid .tile-h h2 { color: #fff; font-size: 16px; font-weight: 600; font-family: var(--display); } .t-pipe.liquid .link { color: #8ff5e0; font-weight: 600; }
.pipe-body { display: grid; grid-template-columns: 172px minmax(0,1fr); gap: 14px; align-items: center; }
.orb-wrap { position: relative; width: 172px; height: 172px; filter: drop-shadow(0 12px 30px rgba(90,230,200,.35)); }
.orb { width: 100%; height: 100%; overflow: visible; }
.orb .liq { transform: translateY(var(--y)); animation: rise 1.6s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise { from { transform: translateY(150px); } }
.orb .w1 { animation: wave 5s linear infinite; } .orb .w2 { animation: wave 7.5s linear infinite reverse; }
@keyframes wave { to { transform: translateX(-80px); } }
.orb .bub { animation: bub 4.5s ease-in infinite; transform-box: fill-box; } @keyframes bub { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: .8; } 100% { transform: translateY(-70px); opacity: 0; } }
.orb .seg { stroke: #fff; } .orb .sg0 { stroke: #5ef2d0; } .orb .sg1 { stroke: #8a7bff; } .orb .sg2 { stroke: #ff7ab0; } .orb .sg3 { stroke: #ffb866; } .orb .sg4 { stroke: #6ab6ff; } .orb .sg5 { stroke: #c9f56a; }
.orb-n { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; text-shadow: 0 2px 14px rgba(10,20,60,.6); }
.orb-n b { font-family: var(--display); font-size: 21px; font-weight: 700; letter-spacing: -.03em; color: #fff; } .orb-n span { font-size: 11.5px; color: rgba(255,255,255,.85); margin-top: 1px; }
.t-pipe.liquid .legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.t-pipe.liquid .legend button { width: 100%; display: grid; grid-template-columns: 12px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: #fff; font: inherit; font-size: 13px; cursor: pointer; text-align: left; transition: background .2s, transform .2s; }
.t-pipe.liquid .legend button:hover { background: rgba(255,255,255,.14); transform: translateX(3px); } .t-pipe.liquid .legend b { font-weight: 700; }
.legend .dot { width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px currentColor; } .legend .sg0 { background: #5ef2d0; color: #5ef2d0; } .legend .sg1 { background: #8a7bff; color: #8a7bff; } .legend .sg2 { background: #ff7ab0; color: #ff7ab0; } .legend .sg3 { background: #ffb866; color: #ffb866; } .legend .sg4 { background: #6ab6ff; color: #6ab6ff; } .legend .sg5 { background: #c9f56a; color: #c9f56a; }
@media (prefers-reduced-motion: reduce) { .orb .w1, .orb .w2, .orb .bub { animation: none; } }
.pipe-body { grid-template-columns: 136px minmax(0,1fr); gap: 12px; }
.orb-wrap { width: 136px; height: 136px; } .orb-n b { font-size: 15px; } .orb-n span { font-size: 10.5px; }
.t-pipe.liquid .legend button { padding: 5px 9px; font-size: 12.5px; border-radius: 12px; }

/* ===== v13: dezelfde kaarttaal als "Wacht op jou" op elke pagina: donker glas + gekleurde gloed per kaart, eigen inhoud ===== */
:root { --g-warm: radial-gradient(120% 100% at 0% 0%, rgba(255,150,90,.5), transparent 58%), radial-gradient(100% 90% at 100% 100%, rgba(190,70,200,.42), transparent 62%), linear-gradient(160deg, rgba(34,22,52,.9), rgba(20,16,40,.92));
  --g-teal: radial-gradient(110% 90% at 0% 100%, rgba(60,230,200,.38), transparent 60%), radial-gradient(90% 80% at 100% 0%, rgba(120,90,255,.4), transparent 60%), linear-gradient(165deg, rgba(14,28,46,.92), rgba(18,16,48,.94));
  --g-violet: radial-gradient(120% 90% at 100% 0%, rgba(170,120,255,.5), transparent 58%), radial-gradient(100% 90% at 0% 100%, rgba(80,110,255,.35), transparent 62%), linear-gradient(160deg, rgba(24,20,56,.92), rgba(16,16,44,.94));
  --g-rose: radial-gradient(120% 100% at 100% 0%, rgba(255,90,140,.45), transparent 58%), radial-gradient(100% 90% at 0% 100%, rgba(255,160,90,.3), transparent 62%), linear-gradient(160deg, rgba(40,18,40,.92), rgba(24,14,36,.94));
  --g-blue: radial-gradient(120% 90% at 100% 0%, rgba(190,160,255,.7), transparent 55%), linear-gradient(150deg, #2f55ff, #4a73ff 55%, #7e8bff); }
.kcol, .qtile, .stat, .kpi, .gl-metric, .table-wrap, .panel, .set-body .set, .gl-card, .room { box-shadow: 0 20px 50px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.14) !important; }
/* leads-bord: elke fase een eigen gloed */
.kcol.nieuw { background: var(--g-warm) !important; border-color: rgba(255,170,120,.3) !important; } .kcol.gesproken { background: var(--g-violet) !important; border-color: rgba(170,130,255,.3) !important; }
.kcol.bellen { background: var(--g-rose) !important; border-color: rgba(255,120,160,.3) !important; } .kcol.akkoord, .kcol.inmeet, .kcol.aanbetaling { background: var(--g-teal) !important; border-color: rgba(110,240,220,.3) !important; }
.kcol.offerte { background: var(--g-blue) !important; }
.kcol .kall, .kcol .link { color: #fff; opacity: .85; } .kcol header h3 { color: #fff; font-size: 15px; } .kcol p { color: rgba(255,255,255,.7); }
.lcard { background: rgba(10,12,28,.55) !important; backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.14) !important; position: relative; overflow: hidden; }
.lcard::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: linear-gradient(180deg, #ff9a5a, #ff4f8b); }
.lcard:hover { background: rgba(10,12,28,.75) !important; }
/* tegels bovenaan (offertes, cijfers, alufile): elk een eigen kleur */
.qtile, .stat, .kpi, .gl-metric { background: var(--g-violet), rgba(14,18,38,.6) !important; border: 1px solid rgba(170,130,255,.28) !important; }
.qtiles > :nth-child(1), .stats > :nth-child(2), .kpis > :nth-child(2), .gl-metrics > :nth-child(2) { background: var(--g-warm) !important; border-color: rgba(255,170,120,.3) !important; }
.qtiles > :nth-child(3), .stats > :nth-child(3), .kpis > :nth-child(3), .gl-metrics > :nth-child(3) { background: var(--g-teal) !important; border-color: rgba(110,240,220,.3) !important; }
.stats > :nth-child(4), .kpis > :nth-child(4), .gl-metrics > :nth-child(4) { background: var(--g-rose) !important; border-color: rgba(255,120,160,.3) !important; }
.stats > :nth-child(5), .kpis > :nth-child(5), .gl-metrics > :nth-child(5) { background: var(--g-teal) !important; border-color: rgba(110,240,220,.3) !important; }
.stats > :first-child, .kpis > :first-child, .gl-metrics > :first-child, .qtile.on { background: var(--g-blue) !important; border-color: rgba(255,255,255,.35) !important; }
.qtile b, .stat b, .kpi b, .gl-metric b { color: #fff; } .qtile span, .qtile small, .stat span, .stat small, .kpi span, .kpi small { color: rgba(255,255,255,.72); }
/* tabellen en panelen: glas met zachte gloed in de hoek */
.table-wrap, .panel, .set-body .set, .gl-card { background: radial-gradient(90% 60% at 100% 0%, rgba(120,90,255,.2), transparent 60%), radial-gradient(80% 60% at 0% 100%, rgba(60,230,200,.12), transparent 60%), rgba(12,16,34,.7) !important; border: 1px solid rgba(255,255,255,.12) !important; border-radius: 26px !important; }
.tbl tbody tr { transition: background .2s, transform .2s; } .tbl tbody tr:hover { background: rgba(255,255,255,.07); }
.tag, .st { border-radius: 999px; }
.tag.st-akkoord, .st-gewonnen { background: linear-gradient(135deg, rgba(60,230,200,.3), rgba(60,160,255,.25)); border-color: rgba(110,240,220,.5); color: #b8fff0; }
.tag.st-verstuurd { background: linear-gradient(135deg, rgba(120,90,255,.35), rgba(80,110,255,.25)); border-color: rgba(170,140,255,.5); color: #e1d9ff; }

/* ---------- telefoon (alleen The Garden Gallery): menu onderaan ---------- */
@media (max-width: 760px) {
  .shell { grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: minmax(0, 1fr) auto !important; padding: 0 !important; gap: 0 !important; }
  .shell > main#view { grid-row: 1; grid-column: 1 !important; min-width: 0; }
  .shell > .side, .side:hover, .side:focus-within { position: relative !important; left: auto; top: auto; bottom: auto; width: auto !important; grid-row: 2; grid-column: 1; flex-direction: row; margin: 0 !important; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)) !important; border-radius: 0; gap: 0; overflow-x: auto !important; overflow-y: hidden !important; border: 0; border-top: 1px solid var(--line); }
  .side .side-foot { display: none !important; }
  .side .brandsw { display: block !important; flex: none; } .side .brandsw .bsw, .side:not(:hover):not(:focus-within) .bsw { display: flex !important; flex-direction: row !important; gap: 2px; background: none; border: 0; padding: 0 6px 0 0; margin-right: 4px; border-right: 1px solid var(--line); } .side .brandsw .bsw::before, .side .brandsw .bsw::after { display: none; }
  .side .bsw button { padding: 8px !important; } .side .bsw button span { display: none !important; } .side .bsw button:not(.on) { opacity: .6; }
  .side .dock { position: static !important; inset: auto !important; transform: none !important; width: auto !important; height: auto !important; background: none !important; box-shadow: none !important; backdrop-filter: none !important; flex-direction: row; gap: 2px; flex: none; border: 0; padding: 0; }
  .side .dock-g { flex-direction: row; gap: 2px; }
  .side .dock-h { display: none !important; }
  .side:not(:hover):not(:focus-within) a, .side a { flex-direction: column; gap: 2px; font-size: 10.5px; padding: 6px 10px !important; min-width: 64px; justify-content: center; text-align: center; }
  .side:not(:hover):not(:focus-within) a > span { display: block !important; }
}

/* ---------- zijlade (lead, offerte, enz.) en pop-ups: donker glas ---------- */
.scrim { background: rgba(3,5,14,.62); backdrop-filter: blur(6px); }
.drawer { background: linear-gradient(180deg, rgba(20,25,48,.96), rgba(11,14,28,.97)); backdrop-filter: blur(24px) saturate(1.4); border-left: 1px solid var(--line-strong); border-radius: 20px 0 0 20px; box-shadow: -30px 0 80px rgba(0,0,0,.55), inset 1px 0 0 rgba(255,255,255,.06); color: var(--text); }
.drawer > header, .drawer .drawer-head { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, transparent), rgba(183,140,255,.08) 60%, transparent) !important; border-bottom: 1px solid var(--line); color: var(--text); border-radius: 20px 0 0 0; }
.drawer h2 { color: #fff; font-family: var(--sans); font-weight: 600; letter-spacing: -.01em; }
.drawer header p { color: var(--muted); }
.drawer h3, .drawer-body h3 { color: #fff; font-size: 14px; font-weight: 600; }
.drawer label, .drawer .lbl, .drawer small { color: var(--muted); }
.drawer input, .drawer select, .drawer textarea { background: rgba(255,255,255,.05) !important; color: var(--text) !important; border: 1px solid var(--line) !important; border-radius: 10px; }
.drawer input:focus, .drawer select:focus, .drawer textarea:focus { border-color: var(--accent) !important; outline: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.drawer .seg { background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.drawer .btn, .drawer button.ghost { border-color: var(--line-strong); }
.drawer .close, .drawer header button { color: var(--text); }
@media (max-width: 760px) { .drawer { border-radius: 0; } .drawer > header { border-radius: 0; } }

/* ---------- vlot scrollen op het leadbord: geen blur op elke kolom en kaart ---------- */
.kcol, .lcard { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.lcard { background: rgba(14,17,36,.92) !important; transition: border-color .15s, box-shadow .15s; }
.lcard:hover { transform: none; }
.kboard, .board, .kanban { transform: translateZ(0); overscroll-behavior-x: contain; }
body[data-view="leads"] .mesh i { animation-play-state: paused; }

/* pijplijn-tegel: verwachte winst */
.pipe-profit { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 6px 4px 2px; padding: 9px 14px; border-radius: 14px; background: rgba(94,242,208,.12); border: 1px solid rgba(94,242,208,.28); color: #fff; }
.pipe-profit span { font-size: 12.5px; opacity: .8; } .pipe-profit b { font-size: 17px; font-weight: 600; color: #8ff7e0; font-variant-numeric: tabular-nums; }

/* ---------- snelheid: alles wat elk beeld opnieuw laat tekenen weg of goedkoper ---------- */
* { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.mesh i { filter: none !important; animation: none !important; will-change: auto; opacity: .35; }
main#view::before, main#view::after { display: none !important; }
.t-attn::before { animation: none !important; }
.orb .w1, .orb .w2, .orb .bub, .orb.o1, .orb.o2 { animation: none !important; }
.kcol, .qtile, .stat, .kpi, .gl-metric, .table-wrap, .panel, .set-body .set, .gl-card, .room, .tile { box-shadow: 0 6px 18px rgba(0,0,0,.28) !important; }
.side, .drawer, .modal-card, .scrim { box-shadow: none !important; }
.scrim { background: rgba(3,5,14,.7); }
.side { background: rgba(12,16,32,.94); }
.drawer { background: #0d1124; }
.fx, .tile, .panel, .lcard, .kcol { transition-property: border-color, background-color, opacity; }

/* ---------- kleuren voor chat, agenda en andere glaskaarten (variabelen uit skin.css) ---------- */
html[data-v="2"] body { --gl-ink: #f2f4ff; --gl-mute: #aab2d4; --gl-dim: #7f88ad; --gl-blue: #6d86ff; --gl-green: #4fd6a2; --gl-gold: #e8bd74; --gl-violet: #b78cff; --gl-red: #ff7a8a;
  --gl-fill: rgba(16,20,40,.9); --gl-fill-2: rgba(255,255,255,.06); --gl-edge: rgba(255,255,255,.16); --gl-edge-2: rgba(255,255,255,.08); --gl-blur: none; --gl-shadow: 0 6px 18px rgba(0,0,0,.28); }

/* ---------- cijfers: rustiger en leesbaarder ---------- */
.fun { gap: 14px !important; }
.fun li { grid-template-columns: 120px minmax(0, 1fr) 92px !important; row-gap: 4px; }
.fun .fl { color: var(--text); font-weight: 500; }
.fun .drop { margin: 0 !important; color: #ff8fa3 !important; opacity: .85; font-size: 11.5px !important; }
.fb { height: 10px !important; border-radius: 6px !important; background: rgba(255,255,255,.08) !important; }
.fb i { border-radius: 6px !important; background: linear-gradient(90deg, #4f6bff, #b78cff) !important; box-shadow: 0 0 12px rgba(109,134,255,.45); }
.fv { font-weight: 600; color: #fff; } .fv em { color: var(--muted) !important; font-weight: 400; }
.tbl.mini { border: 0 !important; border-collapse: separate; border-spacing: 0 4px; width: 100%; }
.tbl.mini thead th { border: 0 !important; background: none !important; color: var(--muted); font-size: 11.5px; font-weight: 500; padding: 2px 10px 6px; }
.tbl.mini tbody td { background: rgba(255,255,255,.04); border: 0 !important; padding: 10px 10px; }
.tbl.mini tbody td:first-child { border-radius: 12px 0 0 12px; color: #fff; font-weight: 500; } .tbl.mini tbody td:last-child { border-radius: 0 12px 12px 0; }
.tbl.mini tbody tr:hover td { background: rgba(255,255,255,.07); }
.tbl.mini td b { color: #fff; } .tbl.mini .r { text-align: right; font-variant-numeric: tabular-nums; }
.times div { background: rgba(255,255,255,.04); border: 0 !important; border-radius: 14px !important; } .times dd { font-weight: 600; color: #fff; }

/* ---------- offerte-editor: duidelijke regelkaarten, slepen, controle, opslagstatus ---------- */
.qline-card { position: relative; padding: 12px 14px 14px !important; gap: 10px !important; transition: transform .18s ease, box-shadow .18s, border-color .18s; }
.qlines { display: flex; flex-direction: column; gap: 10px; }
.ql-top { display: flex; align-items: center; gap: 8px; }
.ql-top .ql-desc { flex: 1; min-width: 0; font-size: 15px; background: transparent !important; border-color: transparent !important; padding-left: 6px; }
.ql-top .ql-desc:hover, .ql-top .ql-desc:focus { background: rgba(255,255,255,.06) !important; border-color: var(--line-strong) !important; }
.ql-tot { font-family: var(--display); font-size: 15px; font-weight: 600; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; padding: 0 4px; }
.qline-korting .ql-tot { color: #ff8fa3; }
.ql-move { display: flex; align-items: center; gap: 2px; flex: none; }
.ql-grip { width: 30px; height: 34px; display: grid; place-items: center; border: 0; background: rgba(255,255,255,.05); border-radius: 9px; color: var(--muted); cursor: grab; touch-action: none; padding: 0; }
.ql-grip:hover, .ql-grip:focus-visible { background: rgba(109,134,255,.25); color: #fff; outline: 0; }
.ql-move .icon-btn.sm { width: 26px; height: 26px; padding: 0; display: grid; place-items: center; opacity: .55; } .ql-move .icon-btn.sm:hover:not(:disabled) { opacity: 1; } .ql-move .icon-btn.sm:disabled { opacity: .15; }
.qline-card.dragging { z-index: 20; cursor: grabbing; box-shadow: 0 18px 40px rgba(0,0,0,.55), 0 0 0 2px var(--accent) !important; transition: none; background: #151a33 !important; }
.qlines.is-dragging .qline-card:not(.dragging) { transition: transform .15s ease; }
.qlines.is-dragging, .qlines.is-dragging * { user-select: none; cursor: grabbing; }
.qline-card.moved { animation: moved 0.9s ease; } @keyframes moved { 0% { box-shadow: 0 0 0 2px var(--accent), 0 0 24px rgba(109,134,255,.6); } 100% { box-shadow: none; } }
.ql-nums { grid-template-columns: 80px 1fr 1fr !important; }
.qline-card textarea { min-height: 44px; resize: vertical; }
.save-row { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; }
.save-info { color: #7ee2b8; font-weight: 500; } .save-info.busy { color: var(--muted); }
.ctrl-card { width: min(720px, 94vw); max-height: 88vh; overflow: auto; }
.ctrl-tbl { width: 100%; border-collapse: collapse; margin: 6px 0 12px; }
.ctrl-tbl th { text-align: left; font-size: 11.5px; color: var(--muted); font-weight: 500; padding: 4px 8px; } .ctrl-tbl th.r, .ctrl-tbl td.r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ctrl-tbl td { padding: 9px 8px; border-top: 1px solid var(--line); vertical-align: top; } .ctrl-tbl td small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; white-space: pre-line; }
.ctrl-tbl tr.neg td { color: #ff8fa3; }
.ctrl-tbl tfoot td { font-weight: 700; font-size: 16px; color: #fff; border-top: 2px solid var(--line-strong); }
.warn-line { color: #ffb86b; font-weight: 600; }
@media (max-width: 760px) { .ql-top { flex-wrap: wrap; } .ql-top .ql-desc { flex-basis: 100%; order: 5; } .ql-nums { grid-template-columns: 1fr 1fr !important; } }

/* offerte: winst/inkoop/verkoop mag nooit wegkrimpen (bij een lager of smaller venster werd het 2px hoog) */
.qb-right > * { flex: none !important; }
.qb-profit { min-height: min-content; overflow: visible !important; }
.qb-profit div { min-height: 0; }
@media (max-width: 1180px) {
  .qb { grid-template-columns: minmax(0, 1fr) !important; }
  .qb-right { position: static !important; max-height: none !important; overflow: visible !important; }
  .qb-profit { position: sticky; top: 0; z-index: 5; background: #101426 !important; }
}
@media (max-width: 760px) { .qb-profit { grid-template-columns: repeat(3, 1fr); } .qb-profit small { grid-column: 1 / -1; } }
@media (max-width: 1180px) {
  .qb-right { display: contents !important; }
  .qb-right > .qb-profit { order: -2; position: sticky !important; top: 0; z-index: 6; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
  .qb-left { order: -1; }
}

/* ---------- cadeau-actie: label, filter en melding ---------- */
.gift-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 7px; border-radius: 999px; background: rgba(255,72,96,.18); border: 1px solid rgba(255,100,120,.5); color: #ffb3bf; font-size: 11.5px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.gift-badge svg { stroke: #ff8fa3; flex: none; }
.gift-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 0 28px 10px; }
.gift-bar-l { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 500; margin-right: 2px; }
.gift-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.04); color: var(--text); font-size: 13px; cursor: pointer; }
.gift-chip b { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: rgba(255,255,255,.1); font-size: 12px; font-variant-numeric: tabular-nums; text-align: center; }
.gift-chip.has b { background: rgba(255,72,96,.25); color: #ffc2cc; }
.gift-chip:hover { background: rgba(255,255,255,.09); }
.gift-chip.on { background: linear-gradient(135deg, #2f55ff, #7e8bff); border-color: transparent; color: #fff; } .gift-chip.on b { background: rgba(255,255,255,.25); color: #fff; }
.gift-note { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; background: rgba(255,72,96,.14); border: 1px solid rgba(255,100,120,.5); color: #ffd0d8; font-size: 15px; }
.gift-note svg { stroke: #ff8fa3; flex: none; } .gift-note b { color: #fff; }
@media (max-width: 760px) { .gift-bar { padding: 0 14px 8px; } }
.lc-tags .gift-badge { max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: inline-flex; } .lc-tags .gift-badge { min-width: 0; }
