/* ===== Alufile: nuchter, technisch, plat. Geanodiseerd grafiet met één signaalkleur ===== */
body[data-brand="alu"] {
  --night: #0e1012;
  --glass: #171a1d;
  --glass-solid: #171a1d;
  --raise: #1e2226;
  --line: #2a2f34;
  --line-strong: #3d444b;
  --text: #e9ecee;
  --muted: #8d969e;
  --green: #d9dde0; --green-dim: rgba(217, 221, 224, 0.1);
  --teal: var(--green); --teal-dim: var(--green-dim);
  --steel: #7d868e;
  --amber: #dfe4e8; --amber-dim: rgba(223, 228, 232, 0.12);
  --rose: #ff6b57;
  --r-lg: 6px; --r-md: 5px; --r-sm: 3px;
  background: #0e1012;
}
body[data-brand="alu"] #map, body[data-brand="alu"][data-view] #map { opacity: 0 !important; pointer-events: none; }
body[data-brand="alu"] .veil { display: none; }
body[data-brand="alu"] .panel, body[data-brand="alu"] .kpis, body[data-brand="alu"] .dock, body[data-brand="alu"] .table-wrap, body[data-brand="alu"] .tb-ico, body[data-brand="alu"] .bsw {
  backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none;
}
body[data-brand="alu"] .dock { border-radius: 6px; padding: 3px; background: #171a1d; }
body[data-brand="alu"] .dock a { border-radius: 4px; }
body[data-brand="alu"] .dock a.on { background: #262b30; box-shadow: inset 0 -2px 0 var(--amber); }
body[data-brand="alu"] .tb-ico { border-radius: 6px; background: #171a1d; }
body[data-brand="alu"] .seg, body[data-brand="alu"] .seg button, body[data-brand="alu"] .btn, body[data-brand="alu"] input, body[data-brand="alu"] select, body[data-brand="alu"] textarea { border-radius: 4px; }
body[data-brand="alu"] .seg.vat button.on, body[data-brand="alu"] .seg button.on { background: #2a3036; box-shadow: inset 0 -2px 0 var(--amber); }
body[data-brand="alu"] .btn.primary { background: #dfe4e8; color: #101316; }
body[data-brand="alu"] .btn.primary:hover { background: #fff; }
body[data-brand="alu"] .drawer, body[data-brand="alu"] .modal-card { background: #14171a; }
body[data-brand="alu"] .f-bar i, body[data-brand="alu"] .bar-cell i { background: #aeb6bd; border-radius: 1px; }
body[data-brand="alu"] option { background: #171a1d; }
body[data-brand="alu"] .tbl th { background: #171a1d; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-weight: 500; font-size: 11.5px; letter-spacing: 0.02em; }
body[data-brand="alu"] .page-h h1 { font-weight: 500; font-size: 30px; letter-spacing: -0.01em; }

/* wissel tussen bedrijven: een strook schuift over het scherm */
.brand-wipe { position: fixed; inset: 0; z-index: 200; pointer-events: none; transform: translateX(-101%); animation: wipe 0.75s cubic-bezier(.7, 0, .2, 1); }
.brand-wipe.alu { background: #cfd5da; } .brand-wipe.tgg { background: #6fe3a1; }
@keyframes wipe { 0% { transform: translateX(-101%); } 45% { transform: translateX(0); } 55% { transform: translateX(0); } 100% { transform: translateX(101%); } }

/* schakelaar: één duidelijke keuze, de gekozen kant heeft de kleur van het bedrijf */
.bsw { position: relative; display: grid; grid-template-columns: 1fr 1fr; height: 42px; padding: 3px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(6, 9, 9, 0.7); justify-self: start; min-width: 252px; }
.bsw::before { content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 9px; background: #6fe3a1; transition: transform 0.4s cubic-bezier(.6, 0, .2, 1), background 0.3s, border-radius 0.3s; }
body[data-brand="alu"] .bsw { border-radius: 6px; background: #121518; }
body[data-brand="alu"] .bsw::before { transform: translateX(100%); background: linear-gradient(180deg, #eef1f3, #b4bcc3); border-radius: 4px; }
.bsw button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 12px; border: 0; background: none; border-radius: 9px; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 13.5px; transition: color 0.25s; white-space: nowrap; }
.bsw button img { width: 22px; height: 22px; object-fit: contain; transition: filter 0.25s; }
.bsw button.on { color: #07110b; } body[data-brand="alu"] .bsw button.on { color: #101316; }
.bsw button.on img { filter: brightness(0) opacity(0.8); }
.bsw button:not(.on):hover { color: var(--text); }
body.tauri .top { padding-left: 88px; }

/* rechts boven */
.top-r { gap: 8px; }
.tb-ico { position: relative; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--line); background: var(--glass); color: var(--muted); cursor: pointer; text-decoration: none; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: color 0.15s, border-color 0.15s, transform 0.15s; }
.tb-ico:hover { color: var(--text); border-color: var(--line-strong); transform: translateY(-1px); }
.tb-ico.on { color: var(--text); background: var(--teal-dim); border-color: var(--line-strong); }
.tb-ico .badge-n { position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--amber); color: #1a1205; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.tb-ico.me { font-weight: 600; font-size: 13px; letter-spacing: 0.02em; }
.cstat { position: absolute; bottom: -1px; right: -1px; width: 11px; height: 11px; border-radius: 50%; background: var(--good); border: 2px solid #0a0f0e; font-size: 0; }
.cstat::before { content: none !important; }
.cstat.warn { background: var(--amber); }
.who { display: contents; }
@media (max-width: 1500px) { .dock a span { display: none; } .dock a { padding: 8px 11px; } }

/* ===== Alufile-overzicht ===== */
.al { max-width: 1480px; margin: 0 auto; padding: 10px 28px 36px; display: flex; flex-direction: column; gap: 16px; }
.al-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 14px; border-bottom: 1px solid var(--line-strong); }
.al-hero h1 { font-weight: 500; font-size: 32px; letter-spacing: -0.01em; line-height: 1.15; }
.al-hero p { color: var(--muted); margin-top: 6px; font-size: 14.5px; }
.al-draw { flex: none; color: #9aa3ab; } .al-draw svg { display: block; width: 150px; height: auto; margin-bottom: -4px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.al-kpis { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; border: 1px solid var(--line-strong); border-radius: 6px; background: #171a1d; }
.al-k { padding: 16px 20px 18px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; position: relative; } .al-k:first-child { border-left: 0; }
.al-k .l { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11.5px; color: var(--muted); }
.al-k .v { font-size: clamp(28px, 2.8vw, 40px); font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.15; margin-top: 4px; }
.al-k:first-child .v { font-size: clamp(32px, 3.3vw, 48px); } .al-k .s { color: var(--muted); font-size: 12.5px; }
.al-k.bad .v { color: var(--rose); } .al-k.hot .v { color: #fff; }
.al-rule { display: block; height: 3px; margin-top: 12px; background: #2a2f34; } .al-rule u { display: block; height: 100%; background: #aeb6bd; text-decoration: none; } .al-rule u.late { background: var(--rose); }
.al-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: start; }
.al-grid .panel { padding: 0; overflow: hidden; border-radius: 6px; background: #171a1d; }
.al-ph { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(255, 255, 255, 0.025) 6px 7px); }
.al-ph h2 { flex: 1; margin: 0; font-size: 13px; font-weight: 600; color: var(--text); }
.al-grid .tbl th, .al-grid .tbl td { padding: 10px 16px; }
.al-grid .tbl td .sub { margin-top: 1px; }
.al-type { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11.5px; padding: 2px 7px; border: 1px solid var(--line-strong); border-radius: 3px; color: var(--muted); }
.al-type.extrusie { color: #101316; background: #dfe4e8; border-color: transparent; font-weight: 600; }
.al-led { padding: 4px 16px 10px; } .al-led li { list-style: none; padding: 10px 0; border-top: 1px solid var(--line); } .al-led li:first-child { border-top: 0; } .al-led ul { margin: 0; padding: 0; }
.al-row { display: flex; justify-content: space-between; gap: 10px; } .al-row span { font-variant-numeric: tabular-nums; }
.al-led small { display: block; margin-top: 4px; }
.al-loc { padding: 12px 16px 16px; } .al-loc .al-addr { color: var(--muted); font-size: 12.5px; margin: 10px 0 8px; line-height: 1.4; }
.al-side { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 1180px) { .al-kpis { grid-template-columns: 1fr 1fr; } .al-grid { grid-template-columns: 1fr; } }

body[data-brand="alu"] .tb-ico .badge-n { color: #101316; }
