v0.5.2: elektra (meterkast 3×25 A, schakelaars met letters op hun lampen, wcd, apparaatgroepen incl. perilex, groepenverklaring met fasen/aardlek, leidingen naar de meterkast met strekkende meters per type, PDF-blad + plattegrond, verplaatsbaar door slepen, bouwfase Elektra met installatiebuizen in 3D); ribbon, bouwfasen, kozijnen, kostenmodel en eerdere ongecommitte wijzigingen

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Machiel
2026-10-06 18:40:11 +02:00
co-authored by Claude Opus 5.5
parent 8cdfa21f46
commit e1a688728c
30 changed files with 6667 additions and 868 deletions
+198 -63
View File
@@ -236,6 +236,7 @@
position: relative;
}
.opening-card.opening-selected { background: var(--primary-soft); border-color: var(--primary); }
.opening-fill { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); }
.opening-card.opening-warn {
border-color: var(--danger);
box-shadow: 0 0 0 1px var(--danger) inset;
@@ -298,56 +299,10 @@
.material-toggle-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.material-toggle-btn:hover:not(.active) { border-color: var(--primary); color: var(--primary); }
/* ============================================================
APP SHELL: menubalk, workspace-wrapper, splashscreen, about-modal
APP SHELL: ribbon, workspace-wrapper, splashscreen, about-modal
============================================================ */
html, body { height: 100%; }
#app-bar {
height: 40px;
background: var(--van-emous-blue);
border-bottom: 1px solid var(--border);
display: flex;
align-items: center;
padding: 0 4px;
position: relative;
z-index: 100;
user-select: none;
}
#app-bar .menu-group { position: relative; }
#app-bar .menu-btn {
background: none; border: none; color: var(--nav-link-color); font-size: 13px;
padding: 8px 14px; cursor: pointer; border-radius: 4px;
}
#app-bar .menu-btn:hover, #app-bar .menu-btn.open { background: var(--surface); color: var(--primary); }
#app-bar .menu-dropdown {
position: absolute; top: 100%; left: 0; background: var(--surface); border: 1px solid var(--border);
border-radius: 0 0 6px 6px; min-width: 220px; display: none; box-shadow: 0 8px 20px rgba(33, 33, 33, .15);
}
#app-bar .menu-dropdown.open { display: block; }
#app-bar .menu-item {
padding: 9px 16px; font-size: 13px; color: var(--nav-link-color); cursor: pointer; position: relative;
display: flex; justify-content: space-between; align-items: center;
}
#app-bar .menu-item:hover { background: var(--primary-soft); color: var(--primary); }
#app-bar .menu-hotkey { color: var(--text-faint); font-size: 11px; margin-left: 16px; }
#app-bar .menu-item.disabled { color: #b0b8c2; cursor: not-allowed; pointer-events: none; }
#app-bar .menu-item.disabled:hover { background: none; color: #b0b8c2; }
#app-bar .submenu {
position: absolute; left: 100%; top: -1px; background: var(--surface); border: 1px solid var(--border);
border-radius: 6px; min-width: 200px; display: none; box-shadow: 0 8px 20px rgba(33, 33, 33, .15);
}
#app-bar .menu-item:hover .submenu, #app-bar .submenu.open { display: block; }
#app-bar .submenu .menu-item { color: var(--nav-link-color); }
#app-bar .submenu .menu-item:hover { background: var(--primary-soft); color: var(--primary); }
#app-bar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; padding-right: 6px; }
#app-version-tag { font-size: 11px; color: var(--text-muted); }
#btn-about {
background: var(--surface); border: 1px solid var(--border); color: var(--nav-link-color); font-size: 12px;
padding: 5px 10px; border-radius: 4px; cursor: pointer;
}
#btn-about:hover { border-color: var(--primary); color: var(--primary); }
#tab-bar {
height: 34px;
background: var(--van-emous-ultra-light);
@@ -368,7 +323,9 @@ html, body { height: 100%; }
}
.tab-item .tab-close:hover { color: var(--danger); }
#workspace { width: 100vw; height: calc(100vh - 40px - 34px); position: relative; }
body { display: flex; flex-direction: column; }
#tab-bar { flex: none; }
#workspace { width: 100vw; flex: 1; min-height: 0; position: relative; }
#workspace-empty {
height: 100%; display: flex; align-items: center; justify-content: center;
color: var(--text-faint); font-size: 14px; flex-direction: column; gap: 10px;
@@ -435,6 +392,31 @@ html, body { height: 100%; }
#wall-project-modal .modal-footer, #house-project-modal .modal-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
#wall-project-modal .control-group input, #house-project-modal .control-group input { width: 150px; text-align: left; }
/* --- Kosten & tijden (CostSettings) --- */
#cost-settings-overlay {
position: fixed; inset: 0; background: rgba(33, 33, 33, .45); z-index: 500;
display: none; align-items: center; justify-content: center;
}
#cost-settings-overlay.open { display: flex; }
#cost-settings-modal {
background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 20px 24px;
width: 760px; max-width: 94%; max-height: 90vh; display: flex; flex-direction: column;
box-shadow: 0 12px 30px rgba(33, 33, 33, .2);
}
#cost-settings-modal .modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
#cost-settings-modal .modal-header h2 { margin: 0; font-size: 15px; color: var(--primary); }
#cost-settings-modal .modal-close-x { background: none; border: none; color: var(--text-faint); font-size: 19px; line-height: 1; cursor: pointer; padding: 0 4px; }
#cost-settings-modal .modal-close-x:hover { color: var(--danger); }
#cost-settings-modal .modal-footer { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
#cost-settings-modal .cs-body { overflow-y: auto; min-height: 0; flex: 1; columns: 2 340px; column-gap: 24px; }
#cost-settings-modal .cs-group { break-inside: avoid; margin-bottom: 14px; }
#cost-settings-modal .cs-group h3 { font-size: 12px; color: var(--primary); text-transform: uppercase; letter-spacing: .5px; margin: 0 0 6px; }
#cost-settings-modal .cs-row { display: grid; grid-template-columns: 1fr 84px 48px; gap: 6px; align-items: center; font-size: 12px; padding: 2px 0; }
#cost-settings-modal .cs-row input, #cost-settings-modal .cs-row select { width: 100%; text-align: right; }
#cost-settings-modal .cs-row select { text-align: left; }
#cost-settings-modal .cs-unit { color: var(--text-faint); font-size: 11px; }
#cost-settings-modal .cs-row.changed .cs-label { color: var(--primary); font-weight: bold; }
#new-overlay {
position: fixed; inset: 0; background: rgba(33, 33, 33, .45); z-index: 500;
display: none; align-items: center; justify-content: center;
@@ -508,7 +490,6 @@ html, body { height: 100%; }
.hn-item.disabled:hover { background: none; color: #9aa4b0; }
.hn-actions { display: flex; gap: 6px; margin-top: 10px; }
.hn-actions .io-btn { flex: 1; }
.hn-soon { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 6px; }
#house-nav .io-status { margin: auto 0 0; padding: 6px; }
#house-part-host { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
@@ -516,20 +497,31 @@ html, body { height: 100%; }
#house-part-host > #floor-app,
#house-part-host > #house-overview { flex: 1; min-height: 0; height: auto; }
/* Overzicht: plattegrond en 3D over de volle breedte (smal: onder elkaar);
bediening in de ribbon. Tabblad Rapport: rapport i.p.v. plattegrond. */
#house-overview { display: flex; width: 100%; }
.ho-col { flex: 1; display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.ho-left { border-right: 1px solid var(--border); }
#house-overview.fullscreen-3d .ho-left { display: none; }
#house-overview.fullscreen-2d .ho-right { display: none; }
.ho-pane { flex: 1; position: relative; min-height: 0; background: var(--viewport-bg); }
.ho-views { flex: 1; display: flex; min-width: 0; min-height: 0; }
.ho-pane { flex: 1; position: relative; min-height: 0; min-width: 0; background: var(--viewport-bg); }
#ho-pane-plan { border-right: 1px solid var(--border); }
@media (max-width: 1100px) {
.ho-views { flex-direction: column; }
#ho-pane-plan, .ho-report { border-right: none; border-bottom: 1px solid var(--border); }
}
#house-overview.fullscreen-3d #ho-pane-plan, #house-overview.fullscreen-3d .ho-report { display: none !important; }
#house-overview.fullscreen-2d #ho-pane-3d { display: none; }
.ho-report { display: none; flex: 1; min-width: 0; min-height: 0; overflow-y: auto; padding: 14px 18px 20px; background: var(--van-emous-ultra-light); border-right: 1px solid var(--border); }
#house-overview.show-report .ho-report { display: block; }
#house-overview.show-report #ho-pane-plan { display: none; }
.ho-report .ui-spec-grid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); align-items: start; }
.ho-report-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.ho-report-head h1 { margin: 0; font-size: 14px; }
.ho-report-head span { font-size: 12px; color: var(--text-muted); }
.ho-warn { position: absolute; top: 52px; left: 15px; right: 15px; z-index: 9; pointer-events: none; }
.ho-warn .ui-warn { margin: 0 0 6px; max-width: 560px; }
.ho-hint {
position: absolute; left: 15px; bottom: 10px; font-size: 11px; color: #bbb;
background: rgba(0, 0, 0, .6); padding: 3px 8px; border-radius: 4px; pointer-events: none;
}
#ho-props, #ho-specs {
height: 340px; flex: none; background: var(--van-emous-ultra-light); border-top: 1px solid var(--border); overflow-y: auto; padding: 15px 20px;
}
#ho-specs .controls-grid { grid-template-columns: 1fr 1fr; }
.ho-prop-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.io-btn-danger { border-color: #e3b4b0; color: var(--danger); }
.io-btn-danger:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-soft); }
@@ -619,7 +611,7 @@ html, body { height: 100%; }
.hn-label { display: inline-flex; align-items: center; }
/* Weergave-cyclus (T): render-only = ook het info-deel onder de 3D weg. */
.render-only #ho-specs, .render-only #specs-panel-3d, .render-only #floor-specs-panel-3d { display: none; }
.render-only #specs-panel-3d, .render-only #floor-specs-panel-3d { display: none; }
/* Bestaande editor-panelen (wand/vloer) in dezelfde stijl als de UI-kit. */
.control-group { min-height: 28px; margin-bottom: 3px; gap: 10px; }
@@ -650,10 +642,27 @@ h1 { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight:
background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 12px; pointer-events: none; white-space: nowrap; z-index: 5; }
.walk-hint.show { display: block; }
/* Beeld > Camera: uitleg (geen actie) */
#app-bar .submenu .menu-info { padding: 6px 12px 2px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted, #8a8f96); }
#app-bar .submenu .menu-help { cursor: default; opacity: .85; }
#app-bar .submenu .menu-help:hover { background: transparent; color: var(--nav-link-color); }
/* Easter egg: schieten (Ctrl+L) */
.shooter-hud { display: none; position: absolute; inset: 0; pointer-events: none; z-index: 6; font-family: monospace; color: #ffd27a; }
.shooter-hud.show { display: block; }
.shooter-cross { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px;
background: linear-gradient(#ffd27a, #ffd27a) center/2px 100% no-repeat, linear-gradient(#ffd27a, #ffd27a) center/100% 2px no-repeat; opacity: .85; }
.shooter-weapon { position: absolute; right: 18px; bottom: 16px; font-size: 18px; font-weight: 700; text-shadow: 0 0 4px #000; }
.shooter-credit { position: absolute; left: 14px; top: 12px; font-size: 11px; color: #fff; opacity: .7; text-shadow: 0 0 3px #000; }
.shooter-kills { position: absolute; right: 18px; top: 12px; font-size: 18px; font-weight: 700; text-shadow: 0 0 4px #000; }
.shooter-shout { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); font-size: 20px; font-weight: 700; color: #fff;
text-shadow: 0 0 4px #000, 2px 2px 0 #8040a0; opacity: 0; transition: opacity .2s; white-space: nowrap; }
.shooter-shout.show { opacity: 1; }
.shooter-ouch { position: absolute; inset: 0; background: rgba(255, 0, 0, 0.45); opacity: 0; }
.shooter-ouch.show { animation: shooter-ouch .4s ease-out; }
@keyframes shooter-ouch { from { opacity: 1; } to { opacity: 0; } }
.shooter-announce { position: absolute; left: 50%; top: 34%; transform: translateX(-50%); font: italic 900 42px Impact, 'Arial Black', sans-serif;
color: #ff2a1a; text-shadow: 0 0 8px #000, 3px 3px 0 #400; letter-spacing: 2px; white-space: nowrap; opacity: 0; }
.shooter-announce.show { opacity: 1; animation: shooter-announce .35s ease-out; }
@keyframes shooter-announce { from { transform: translateX(-50%) scale(2.2); opacity: 0; } to { transform: translateX(-50%) scale(1); opacity: 1; } }
.shooter-help { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 6px 12px; border-radius: 4px;
background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 12px; white-space: nowrap; }
/* Openingen: "Volg dakhelling" (schuine bovenzijde) */
.opening-roof-btn {
@@ -661,3 +670,129 @@ h1 { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight:
background: var(--surface); border: 1px solid var(--border); color: var(--primary); border-radius: 4px; cursor: pointer;
}
.opening-roof-btn:hover { background: var(--primary-soft); border-color: var(--primary); }
/* Inspector: kruimelpad, schuiven, kleurstaal. */
.ui-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 11px; color: var(--text-faint); margin-bottom: 4px; }
.ui-crumbs .bi { font-size: 9px; }
.ui-crumbs span:last-child { color: var(--text-muted); }
.ui-field-range { flex-wrap: wrap; row-gap: 2px; padding: 2px 0 4px; }
.ui-field-range label { flex: 1 1 100%; }
.ui-range { flex: 1 1 100%; gap: 8px; }
.ui-range input[type=range] { flex: 1; min-width: 0; accent-color: var(--primary); }
.ui-range input[type=number] { width: 84px; }
.ui-swatch { height: 14px; border-radius: 3px; border: 1px solid var(--border); margin: 2px 0 6px; }
/* Bouwfase (core/build-stages.js): schuif linksonder in de 3D. */
.stage-bar {
position: absolute; left: 15px; bottom: 14px; z-index: 10; min-width: 300px; max-width: calc(100% - 30px);
background: rgba(0, 0, 0, 0.75); border: 1px solid #444; border-radius: 6px; padding: 7px 12px 6px; color: #eee; font-size: 12px;
}
.stage-row, .stage-extra { display: flex; align-items: center; gap: 10px; }
.stage-title { display: inline-flex; align-items: center; gap: 6px; color: var(--primary-on-dark); font-weight: 600; white-space: nowrap; }
.stage-range { flex: 1; min-width: 90px; accent-color: var(--primary-on-dark); }
.stage-name { min-width: 84px; font-weight: 600; white-space: nowrap; }
.stage-track { flex: 1; display: flex; flex-direction: column; min-width: 120px; }
.stage-track .stage-range { width: 100%; margin: 0; }
.stage-ticks { display: flex; justify-content: space-between; padding: 0 3px; font-size: 10px; color: #888; }
.stage-ticks span { cursor: pointer; padding: 0 3px; }
.stage-ticks span.on { color: var(--primary-on-dark); }
.stage-extra { display: none; margin-top: 6px; padding-top: 6px; border-top: 1px solid #444; }
.stage-extra.show { display: flex; }
.walking .stage-bar { display: none; }
/* Grafieken in het rapport (staafdiagrammen, HTML). Categorische kleuren
in vaste volgorde: vloer, wanden, dak. */
.viz { --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a; --track: #eef1f5; }
.viz-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11px; color: var(--text-muted); margin: -2px 0 8px; }
.viz-legend span { display: inline-flex; align-items: center; gap: 5px; }
.viz-key { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.viz-key.s1, .viz-seg.s1 { background: var(--series-1); }
.viz-key.s2, .viz-seg.s2 { background: var(--series-2); }
.viz-key.s3, .viz-seg.s3 { background: var(--series-3); }
.viz-row { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 8px; padding: 4px 0; }
.viz-label { font-size: 12px; color: var(--text); line-height: 1.25; }
.viz-label small { display: block; font-size: 10px; color: var(--text-faint); }
.viz-row:has(.viz-label small) { grid-template-columns: 1fr auto; }
.viz-row:has(.viz-label small) .viz-label { grid-column: 1 / -1; }
.viz-track { height: 12px; }
.viz-bar { display: flex; gap: 2px; height: 100%; min-width: 2px; }
.viz-seg { height: 100%; min-width: 2px; }
.viz-seg:last-child { border-radius: 0 4px 4px 0; }
.viz-seg:hover { filter: brightness(1.12); }
.viz-val { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); text-align: right; white-space: nowrap; }
.viz-note { font-size: 11px; color: var(--text-faint); line-height: 1.45; margin-top: 6px; }
/* ============================================================
RIBBON (core/ribbon.js): tabbladen + groepen van 3 rijen hoog.
============================================================ */
#ribbon { flex: none; background: var(--van-emous-blue); border-bottom: 1px solid var(--border); position: relative; z-index: 100; user-select: none; }
.rb-top { display: flex; align-items: flex-end; height: 34px; padding: 0 8px; }
.rb-brand { display: flex; align-items: center; height: 100%; padding: 0 14px 0 4px; font-weight: 700; color: var(--primary); letter-spacing: .5px; }
.rb-tabs { display: flex; gap: 2px; height: 100%; align-items: flex-end; overflow-x: auto; scrollbar-width: none; }
.rb-tab {
display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 14px; border: 1px solid transparent; border-bottom: none;
border-radius: 5px 5px 0 0; background: none; font: inherit; font-size: 12.5px; color: var(--nav-link-color); cursor: pointer; white-space: nowrap;
}
.rb-tab:hover { background: rgba(255, 255, 255, .55); color: var(--primary); }
.rb-tab.active { background: var(--van-emous-ultra-light); border-color: var(--border); color: var(--primary); font-weight: 600; margin-bottom: -1px; height: 29px; }
.rb-tab.rb-ctx { color: #fff; background: var(--primary); margin-left: 10px; }
.rb-tab.rb-ctx:hover { background: var(--primary-hover); color: #fff; }
.rb-tab.rb-ctx.active { background: var(--van-emous-ultra-light); color: var(--primary); box-shadow: inset 0 3px 0 var(--primary); }
.rb-right { margin-left: auto; display: flex; align-items: center; height: 100%; gap: 10px; font-size: 11px; color: var(--text-muted); padding-left: 12px; }
.rb-body {
position: relative; display: flex; align-items: stretch; height: 104px; padding: 6px 40px 4px 6px;
background: var(--van-emous-ultra-light); border-top: 1px solid var(--border); overflow-x: auto; overflow-y: hidden;
}
#ribbon.rb-collapsed .rb-body { display: none; }
.rb-collapse { position: absolute; right: 8px; bottom: 6px; border: none; background: none; color: var(--text-faint); cursor: pointer; padding: 2px 4px; }
.rb-collapse:hover { color: var(--primary); }
.rb-group { display: flex; flex-direction: column; flex: none; padding: 0 12px; border-right: 1px solid var(--border-soft); }
.rb-group:last-of-type { border-right: none; }
.rb-group-body { flex: 1; display: grid; grid-auto-flow: column; grid-template-rows: repeat(3, 26px); column-gap: 16px; align-items: center; justify-content: start; }
.rb-group-label { text-align: center; font-size: 10.5px; color: var(--text-faint); padding-top: 2px; white-space: nowrap; }
.rb-btn {
display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; background: none; border-radius: 4px;
font: inherit; font-size: 12px; color: var(--text); cursor: pointer; white-space: nowrap;
}
.rb-btn:hover:not(:disabled) { background: var(--primary-soft); border-color: rgba(185, 89, 19, .25); color: var(--primary); }
.rb-btn:disabled { color: #a9b2bd; cursor: default; }
.rb-btn.active { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.rb-btn.rb-danger:hover:not(:disabled) { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.rb-small { height: 24px; padding: 0 7px; }
.rb-small .bi { font-size: 14px; color: var(--primary); }
.rb-btn:disabled .bi { color: inherit; }
.rb-big { grid-row: span 3; flex-direction: column; justify-content: center; gap: 4px; min-width: 64px; height: 76px; padding: 4px 8px; text-align: center; }
.rb-big .bi { font-size: 24px; color: var(--primary); }
.rb-big span { white-space: normal; max-width: 86px; line-height: 1.2; }
.rb-kv { display: flex; justify-content: space-between; gap: 12px; font-size: 11.5px; color: var(--text-muted); min-width: 150px; }
.rb-kv b { color: var(--text); font-variant-numeric: tabular-nums; }
.rb-kv small { font-weight: normal; color: var(--text-faint); margin-left: 2px; }
.rb-note { grid-row: span 3; max-width: 260px; font-size: 11px; line-height: 1.4; color: var(--text-muted); white-space: normal; align-self: center; }
.rb-note.rb-warn { color: var(--danger); }
/* Velden (UI-kit) compact in de ribbon: label links, invoer rechts, één rij. */
.rb-group .ui-field { min-height: 0; height: 26px; gap: 8px; }
.rb-group .ui-field label { font-size: 11.5px; color: var(--text-muted); white-space: nowrap; }
.rb-group .ui-control input[type=number] { width: 70px; padding: 2px 5px; font-size: 12px; }
.rb-group .ui-control select { width: 132px; padding: 2px 4px; font-size: 12px; }
.rb-group .ui-control input[type=color] { width: 46px; height: 22px; padding: 0; border: 1px solid var(--border); border-radius: 3px; background: none; }
.rb-group .ui-unit { width: 20px; margin-left: 3px; font-size: 10.5px; }
.rb-group .ui-switch { margin-right: 0; }
.rb-group .ui-field-range { flex-wrap: nowrap; padding: 0; }
.rb-group .ui-field-range label { flex: none; }
.rb-group .ui-range { flex: none; gap: 6px; }
.rb-group .ui-range input[type=range] { width: 96px; flex: none; }
.rb-group .ui-range input[type=number] { width: 62px; }
.rb-thumb { width: 26px; height: 26px; border-radius: 3px; border: 1px solid var(--border); object-fit: cover; display: block; }
.rb-swatch { width: 26px; height: 22px; border-radius: 3px; border: 1px solid var(--border); }
.rb-seg { display: inline-flex; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; height: 24px; }
.rb-seg .rb-btn { border-radius: 0; border: none; border-right: 1px solid var(--border-soft); height: 22px; padding: 0 8px; }
.rb-seg .rb-btn:last-child { border-right: none; }
.rb-seg .rb-btn.active { background: var(--primary); color: #fff; }
.rb-seg .rb-btn.active .bi { color: #fff; }
.rb-check { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text); cursor: pointer; white-space: nowrap; }
.rb-check input { accent-color: var(--primary); }
/* Ribbon: hulpklassen voor de woning-tabbladen. */
.rb-pair { display: flex; align-items: center; gap: 6px; }
.rb-cols { grid-row: span 3; display: grid; grid-auto-flow: column; grid-template-rows: repeat(3, 26px); column-gap: 18px; align-items: center; }
.rb-cols:empty { display: none; }