/* ============================================================
   LF ICT-planner — app styling (LIGHT MODE)
   Bouwt op lf-brand.css (tokens + componenten). Witte canvas,
   LF-kleuren als accenten, pill-vormen waar de brand pills gebruikt.
   ============================================================ */

:root {
  --bg: var(--lf-white);
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --surface-3: #ececef;
  --ink: #111114;
  --ink-soft: #5c5c66;
  --line: #e2e2e8;
  --line-strong: #cfcfd6;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --focus: 0 0 0 3px rgba(240, 120, 30, 0.45);
  --header-h: 84px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--lf-font-text);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  /* Geen pagina-scroll of rubber-band; alleen scroll-containers binnenin scrollen. */
  overflow: hidden;
  overscroll-behavior: none;
}
/* Body vastzetten op het zichtbare gebied → geen pull-to-refresh of rubber-band
   op iOS (Safari/Chrome), en de zwevende knoppen blijven binnen bereik. */
body { position: fixed; inset: 0; width: 100%; }

button { font-family: inherit; }

/* Visible focus everywhere (toegankelijkheid) */
:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 8px;
}

.hidden { display: none !important; }

/* ---------------- Header ---------------- */
.app-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 30;
}
.app-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 3px;
  background: var(--lf-grad-pink-orange);
}
.logo { height: 30px; display: block; flex: 0 0 auto; }
/* ICT Lokerse Feesten-logo. Voorkeur: de echte afbeelding op
   assets/logos/ict-lokerse-feesten.png. Zolang die ontbreekt, valt het terug op
   een nabouw met het merklettertype (Anton). */
.logo-ict { display: inline-flex; align-items: center; height: 74px; flex: 0 0 auto; user-select: none; }
.logo-img { height: 74px; display: block; }
.logo-fallback { display: inline-flex; align-items: center; }
.logo-ict.has-img .logo-fallback { display: none; } /* echte afbeelding aanwezig → nabouw verbergen */
.logo-badge {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--lf-orange); color: #111114;
  font-family: var(--lf-font-display); font-size: 17px; letter-spacing: 0.02em;
  text-transform: uppercase; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  position: relative; z-index: 2;
}
.logo-word {
  background: #111114; color: #fff;
  height: 42px; border-radius: 999px;
  display: inline-flex; align-items: center;
  margin-left: -16px; padding: 0 18px 0 28px;
  font-family: var(--lf-font-display); font-size: 23px; line-height: 1;
  text-transform: uppercase; letter-spacing: 0.015em; white-space: nowrap;
}
/* Op mobiel: compacte ICT-cirkel i.p.v. het brede logo (afbeelding of woordmerk). */
@media (max-width: 860px) {
  .logo-word { display: none; }
  .logo-ict.has-img .logo-img { display: none; }
  .logo-ict.has-img .logo-fallback { display: inline-flex; }
}

/* Naamveld in het detailscherm: altijd volledige breedte en comfortabel. */
#detailName { width: 100%; font-size: 16px; padding: 11px 13px; font-weight: 600; }

/* Hamburger: enkel mobiel (drawer); desktop gebruikt het zij-lipje */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  cursor: pointer;
  flex: 0 0 auto;
  padding: 0 9px;
}
.hamburger span { height: 2px; background: var(--ink); border-radius: 2px; display: block; }

.app-tabs {
  display: flex;
  gap: 6px;
  margin-left: 8px;
}
.tab-btn {
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 13px;
  padding: 9px 18px;
  border-radius: var(--lf-radius-pill);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.tab-btn:hover { background: var(--surface-2); color: var(--ink); }
.tab-btn[aria-selected="true"] {
  background: var(--lf-black);
  color: var(--lf-white);
}
.header-spacer { flex: 1; }

/* Editiekiezer (jaartal) in de header */
.edition-pick {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--lf-radius-pill); padding: 4px 10px 4px 12px;
}
.edition-pick .edition-cal { font-size: 13px; line-height: 1; }
.edition-pick select {
  border: none; background: transparent; font: inherit; font-weight: 700;
  color: var(--ink); cursor: pointer; padding: 2px 2px; outline: none;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--lf-radius-pill);
  padding: 6px 8px 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.user-pill .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--lf-green);
}
.user-pill.anon .dot { background: var(--line-strong); }
.user-pill .logout {
  border: none;
  background: var(--lf-black);
  color: #fff;
  border-radius: var(--lf-radius-pill);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  cursor: pointer;
  text-decoration: none;
}

/* ---------------- Layout ---------------- */
.app-main {
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h)); /* sluit de mobiele browserbalk uit */
  overflow: hidden;
}
/* Scroll-containers houden hun scroll bij zich (geen pagina-bounce). */
.sidebar, .scroll-list, .list-view, .mat-view #materiaalList,
.modal-body, .detail-body { overscroll-behavior: contain; }
.view { height: 100%; }
.view.hidden { display: none; }

/* ============================================================
   PLAN VIEW
   ============================================================ */
.plan-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  height: 100%;
  position: relative;
}

/* ---- Sidebar ---- */
.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.sidebar::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 8px; }
.sidebar::-webkit-scrollbar-thumb:hover { background: var(--ink-soft); }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar section { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.sidebar h2 {
  font-family: var(--lf-font-text);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 12px;
  color: var(--ink-soft);
  margin: 0 0 10px;
}

.type-list { display: flex; flex-direction: column; gap: 6px; }
.type-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid transparent;
  user-select: none;
  transition: background 0.1s ease;
}
.type-row:hover { background: var(--surface-2); }
.type-row.active {
  border-color: var(--ink);
  background: var(--surface-2);
}
.type-row.type-hidden { opacity: 0.4; }
.type-swatch {
  width: 26px; height: 26px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12);
}
.type-name { font-weight: 600; flex: 1; min-width: 0; }
.type-abbr { font-size: 11px; color: var(--ink-soft); font-weight: 600; }
.type-count {
  background: var(--surface-3);
  border-radius: var(--lf-radius-pill);
  padding: 1px 9px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
}
.type-row .type-del {
  border: none; background: transparent; cursor: pointer;
  color: var(--ink-soft); font-size: 15px; padding: 2px 4px; border-radius: 6px;
}
.type-row .type-del:hover { color: var(--lf-red); }

.add-type-form { display: flex; flex-direction: column; gap: 8px; }
.add-type-row { display: flex; gap: 8px; }
input[type="text"], input[type="date"], input[type="time"], textarea, select {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 10px;
  padding: 9px 11px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
}
textarea { resize: vertical; min-height: 60px; }
input::placeholder, textarea::placeholder { color: #a3a3ad; }

.swatch-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.swatch-opt {
  width: 22px; height: 22px; border-radius: 6px; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15);
  border: 2px solid transparent;
}
.swatch-opt.sel { border-color: var(--ink); }
.emoji-input { width: 56px; text-align: center; font-size: 18px; }

/* Toggles / filters */
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 2px; font-weight: 600;
}
.switch { position: relative; width: 42px; height: 24px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track {
  position: absolute; inset: 0; background: var(--line-strong);
  border-radius: var(--lf-radius-pill); transition: background 0.15s ease; cursor: pointer;
}
.switch .track::before {
  content: ""; position: absolute; left: 3px; top: 3px;
  width: 18px; height: 18px; background: #fff; border-radius: 50%;
  transition: transform 0.15s ease; box-shadow: var(--shadow-sm);
}
.switch input:checked + .track { background: var(--lf-green); }
.switch input:checked + .track::before { transform: translateX(18px); }
.switch input:focus-visible + .track { box-shadow: var(--focus); }

.tool-btn {
  display: inline-flex; align-items: center; gap: 8px;
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: var(--lf-radius-pill);
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.1s ease, border-color 0.1s ease;
}
.tool-btn:hover { background: var(--surface-2); }
.tool-btn.active {
  background: var(--lf-orange);
  border-color: var(--lf-orange);
  color: #000;
}
/* Vlakke lijn-iconen in knoppen */
.btn-ico { width: 16px; height: 16px; flex: 0 0 auto; display: block; }
.zoom-controls button { display: flex; align-items: center; justify-content: center; }
.zoom-controls .btn-ico { width: 20px; height: 20px; }
.check-item .del svg, .todo-item .del svg { display: block; }

/* Hint-tekst (o.a. mini-instructie om infra te plaatsen) */
.hint-text { font-size: 12px; color: var(--ink-soft); margin: 8px 0 0; line-height: 1.35; }
.place-hint { margin: 10px 2px 0; }
.place-hint.active { color: var(--lf-orange); font-weight: 600; }

.replace-link {
  background: none; border: none; padding: 0;
  color: var(--ink-soft); text-decoration: underline; cursor: pointer;
  font-size: 13px; font-weight: 600;
}
.replace-link:hover { color: var(--lf-orange); }

/* ---- Stage (kaart) ---- */
.stage-wrap { position: relative; overflow: hidden; background: var(--surface-2); }
.stage {
  position: absolute; inset: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  background:
    radial-gradient(circle at 1px 1px, rgba(0,0,0,0.06) 1px, transparent 0) 0 0 / 22px 22px;
}
.stage.grabbing { cursor: grabbing; }
.stage.tool-line { cursor: crosshair; }
.stage.tool-measure { cursor: crosshair; }

/* Meten */
.measure-layer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.measure-line { fill: none; stroke: var(--lf-red); stroke-width: 2.5; stroke-dasharray: 6 5; }
.measure-dot { fill: #fff; stroke: var(--lf-red); stroke-width: 2; }
.measure-text { font-family: var(--lf-font-text); font-weight: 800; font-size: 13px; fill: var(--lf-red); paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.measure-readout {
  position: absolute; left: 14px; bottom: 14px; z-index: 16;
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--lf-radius-pill);
  padding: 8px 10px 8px 16px; box-shadow: var(--shadow); font-size: 14px;
}
.measure-readout .ro-btn {
  border: 1px solid var(--line-strong); background: #fff; border-radius: var(--lf-radius-pill);
  padding: 5px 12px; font-weight: 700; cursor: pointer; font-size: 13px;
}
.measure-readout .ro-btn.primary { background: var(--lf-orange); border-color: var(--lf-orange); color: #000; }
.scale-status { font-size: 12px; color: var(--ink-soft); margin: 8px 0 0; }

.world {
  position: absolute; top: 0; left: 0;
  transform-origin: 0 0;
  /* GEEN will-change/laag-promotie: bij een grote plattegrond zou de GPU-laag bij
     inzoomen tot honderden MB groeien en de mobiele browser laten crashen. */
}
.world img.plattegrond { display: block; user-select: none; -webkit-user-drag: none; pointer-events: none; }

.edge-layer {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
  pointer-events: none;
}
.node-layer { position: absolute; inset: 0; pointer-events: none; }
.node-layer .node { pointer-events: auto; }
.edge-path { fill: none; stroke: var(--lf-blue); stroke-width: 3; cursor: pointer; pointer-events: stroke; }
.edge-hit { fill: none; stroke: transparent; stroke-width: 22; cursor: pointer; pointer-events: stroke; }
.edge-path.sel { filter: drop-shadow(0 0 3px var(--lf-orange)); }
.edge-handle {
  fill: #fff; stroke: var(--lf-orange); stroke-width: 2;
  cursor: grab; opacity: 0; pointer-events: none;
  transition: opacity 0.12s ease;
}
.edge-handle:active { cursor: grabbing; }
/* Handgrepen ("bolletjes") enkel tonen bij hover over de kabel of als ze geselecteerd is. */
.edge-group:hover .edge-handle,
.edge-group.sel .edge-handle { opacity: 1; pointer-events: all; }
/* "+"-grepen midden op een segment: lichter, om een nieuw knikpunt te slepen. */
.edge-add-handle { fill: var(--lf-orange); stroke: #fff; }
.edge-group:hover .edge-add-handle,
.edge-group.sel .edge-add-handle { opacity: 0.5; pointer-events: all; }
.edge-label-bg { fill: #fff; stroke: var(--line-strong); }
.edge-label-text {
  font-family: var(--lf-font-text); font-weight: 700; font-size: 13px;
  fill: var(--ink); pointer-events: none;
}

/* Nodes */
.node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center;
  cursor: grab;
  user-select: none;
}
.node.dragging { cursor: grabbing; z-index: 20; }
.node-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #000;
  box-shadow: var(--shadow-sm), inset 0 0 0 1px rgba(0,0,0,0.12);
  position: relative;
}
.node-icon svg { width: 23px; height: 23px; display: block; }
.type-swatch svg { width: 17px; height: 17px; display: block; }
.node.sel .node-icon { box-shadow: 0 0 0 3px var(--lf-orange), var(--shadow); }
.node.line-pick .node-icon { box-shadow: 0 0 0 3px var(--lf-pink); }
.node-badge {
  position: absolute; top: -7px; right: -7px;
  min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--lf-red); color: #fff;
  border-radius: var(--lf-radius-pill);
  font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px #fff;
}
/* Verplaatsbare node-labels (aparte laag) + connector */
.node-label-layer { position: absolute; inset: 0; pointer-events: none; }
.node-label-layer .node-label {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: move;
  background: rgba(255,255,255,0.94);
  border-radius: var(--lf-radius-pill);
  padding: 0.12em 0.66em;
  font-size: 12px; font-weight: 700; white-space: nowrap;
  box-shadow: var(--shadow-sm);
  user-select: none;
}
.glue-layer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.glue-line { stroke: var(--line-strong); stroke-width: 1; }

/* Zwevend gereedschap rechtsonder (op mobiel inklapbaar achter één knop) */
.zoom-controls {
  position: absolute;
  right: calc(14px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; align-items: center; gap: 6px; z-index: 15;
}
.zc-actions { display: flex; flex-direction: column; gap: 6px; }
.zoom-controls button {
  width: 44px; height: 44px;
  border-radius: 12px; border: 1px solid var(--line-strong);
  background: #fff; cursor: pointer; font-size: 18px; font-weight: 800;
  box-shadow: var(--shadow-sm); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.zoom-controls button:hover { background: var(--surface-2); }
.zoom-controls .fit { font-size: 12px; font-weight: 800; }
.zc-lock.on { background: var(--lf-black); color: #fff; border-color: var(--lf-black); }
.zc-toggle { display: none; } /* enkel op mobiel zichtbaar */

/* Live zoom-uitlezing (linksonder) — om de icoongrootte te ijken */
.zoom-readout {
  position: absolute; left: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 16;
  background: rgba(255,255,255,0.92); border: 1px solid var(--line);
  border-radius: var(--lf-radius-pill); padding: 5px 11px;
  font-size: 12px; font-weight: 700; color: var(--ink); box-shadow: var(--shadow-sm);
  pointer-events: none; white-space: nowrap; font-variant-numeric: tabular-nums;
}

.empty-hint {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; color: var(--ink-soft); text-align: center; padding: 24px;
  pointer-events: none;
}
.empty-hint .lf-btn { pointer-events: all; }

/* ============================================================
   DETAIL PANEL
   ============================================================ */
/* Detailscherm = centraal modaal venster (hergebruikt .modal-overlay/.modal). */
/* Vaste hoogte zodat de box niet verspringt bij het wisselen van tabblad;
   de body scrollt indien nodig. */
.detail-modal { width: 640px; height: min(86vh, 660px); }
.detail-modal .detail-body { flex: 1; }
.detail-head {
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.detail-head .detail-type-chip {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  padding: 3px 10px; border-radius: var(--lf-radius-pill); color: #000;
}
.detail-close {
  margin-left: auto; border: none; background: var(--surface-2);
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 16px;
}
.detail-body { padding: 16px; overflow-y: auto; flex: 1; }
.detail-body h3 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--ink-soft); margin: 18px 0 8px;
}
.detail-body h3:first-child { margin-top: 0; }

.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.check-item {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 8px 9px; background: var(--surface-2); border-radius: 10px;
}
.check-item input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--lf-green); flex: 0 0 auto; margin-top: 2px; }
/* 'Actief'-vakje (oranje) vs het afvink-vakje 'klaar' (groen); gepland = gedimd */
/* Uitgevinkt = inactief → grijze, gedimde tekst (geen doorhaling) */
.check-item .ci-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.check-item .ci-body .txt { font-weight: 600; }
.check-item.done .ci-body .txt { color: var(--ink-soft); }
.check-item .del {
  border: none; background: transparent; cursor: pointer; color: var(--ink-soft);
  font-size: 15px; padding: 2px 5px; border-radius: 6px;
}
.check-item .del:hover { color: var(--lf-red); }
.inline-add { display: flex; gap: 8px; margin-top: 8px; }
.inline-add input { flex: 1; }
.icon-btn-add {
  border: none; background: var(--lf-orange); color: #000;
  border-radius: var(--lf-radius-pill); font-weight: 800; cursor: pointer;
  padding: 0 16px; font-size: 18px;
}
.icon-btn-add:hover { filter: brightness(1.05); }

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photo-card {
  position: relative; border-radius: 10px; overflow: hidden;
  background: var(--surface-2); aspect-ratio: 1; cursor: zoom-in;
}
.photo-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-card .photo-year {
  position: absolute; top: 4px; left: 4px;
  background: rgba(0,0,0,0.7); color: #fff; font-size: 10px; font-weight: 800;
  padding: 1px 7px; border-radius: var(--lf-radius-pill);
}
.photo-card .photo-del {
  position: absolute; top: 4px; right: 4px;
  background: rgba(0,0,0,0.6); color: #fff; border: none; cursor: pointer;
  width: 20px; height: 20px; border-radius: 50%; font-size: 12px; line-height: 1;
}
.photo-card .photo-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff; font-size: 10px; padding: 10px 4px 3px;
}
.photo-section { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.photo-upload-form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }

/* Eigenschappen-lijst (sleutel/waarde) */
.prop-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.prop-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 9px; background: var(--surface-2); border-radius: 10px;
}
.prop-item .prop-text { flex: 1; min-width: 0; }
.prop-item .prop-text .prop-key { font-weight: 700; }
.prop-item .prop-text .prop-val { color: var(--ink-soft); }
.prop-item .del {
  border: none; background: transparent; cursor: pointer; color: var(--ink-soft);
  font-size: 15px; padding: 2px 5px; border-radius: 6px;
}
.prop-item .del:hover { color: var(--lf-red); }
.prop-add { margin-top: 8px; }
.prop-add input { flex: 1; min-width: 0; }
.photo-upload-form .row { display: flex; gap: 8px; }
.photo-upload-form .row input[type="text"]:first-child { width: 84px; }

.detail-foot { padding: 14px 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
/* Knoptekst in de voettekst centreren */
.detail-foot .tool-btn, .detail-foot .danger-btn { justify-content: center; text-align: center; }
.danger-btn {
  width: 100%; border: 1px solid var(--lf-red); color: var(--lf-red);
  background: #fff; border-radius: var(--lf-radius-pill); padding: 11px;
  font-weight: 800; cursor: pointer;
}
.danger-btn:hover { background: var(--lf-red); color: #fff; }

/* ============================================================
   TO-DO + AGENDA (gedeelde lijst-stijl)
   ============================================================ */
.list-view {
  max-width: 760px; margin: 0 auto; height: 100%;
  display: flex; flex-direction: column; padding: 24px 20px; overflow: hidden;
}
.list-view .view-title {
  font-family: var(--lf-font-text); font-weight: 700;
  font-size: 26px; margin: 0 0 4px; letter-spacing: 0.02em;
  text-transform: uppercase;
}
.list-view .view-sub { color: var(--ink-soft); margin: 0 0 18px; }

.add-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--lf-radius-soft); padding: 14px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px;
}
.add-card .fields { display: flex; gap: 10px; flex-wrap: wrap; }
.add-card .fields > * { flex: 1; min-width: 120px; }
.add-card .grow { flex: 3; }

.filter-bar { display: flex; gap: 6px; margin-bottom: 14px; }
.filter-bar button {
  border: 1px solid var(--line-strong); background: #fff;
  border-radius: var(--lf-radius-pill); padding: 6px 16px;
  font-weight: 700; font-size: 13px; cursor: pointer; color: var(--ink-soft);
}
.filter-bar button.active { background: var(--lf-black); color: #fff; border-color: var(--lf-black); }

.scroll-list { overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 8px; }

.todo-item {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px;
}
.todo-item input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--lf-green); flex: 0 0 auto; margin-top: 1px; }
.todo-item .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.todo-item .todo-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.todo-item .body .txt { font-weight: 600; }
.todo-item.done .body .txt { color: var(--ink-soft); }
.source-chip {
  border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink-soft);
  border-radius: var(--lf-radius-pill); padding: 1px 10px; font-size: 11px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
}
.source-chip:hover { border-color: var(--lf-orange); color: var(--lf-orange); }
.todo-item .del, .agenda-item .del {
  border: none; background: transparent; cursor: pointer; color: var(--ink-soft);
  font-size: 16px; padding: 4px 6px; border-radius: 8px;
}
.todo-item .del:hover, .agenda-item .del:hover { color: var(--lf-red); background: var(--surface-2); }

/* Agenda */
.day-group { margin-bottom: 18px; }
.day-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
  position: sticky; top: 0; background: var(--bg); padding: 4px 0; z-index: 1;
}
.day-head .day-pill {
  font-family: var(--lf-font-display); text-transform: uppercase;
  background: var(--surface-3); color: var(--ink); border-radius: var(--lf-radius-pill);
  padding: 4px 14px; font-size: 14px;
}
.day-head.today .day-pill { background: var(--lf-orange); color: #000; }
.day-head .today-tag {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  color: var(--lf-orange);
}
.agenda-item {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 8px;
}
.agenda-item .time {
  font-family: var(--lf-font-display); font-size: 18px;
  background: var(--lf-black); color: #fff; border-radius: 10px;
  padding: 6px 10px; min-width: 64px; text-align: center; flex: 0 0 auto;
}
.agenda-item .body { flex: 1; min-width: 0; }
.agenda-item .body .title { font-weight: 700; }
.agenda-item .body .note { color: var(--ink-soft); font-size: 13px; margin-top: 2px; }

.empty-state { text-align: center; color: var(--ink-soft); padding: 40px 20px; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 300; /* boven het detail-modaal (120) */
  background: rgba(0,0,0,0.85);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 14px; padding: 24px;
}
.lightbox img { max-width: 92vw; max-height: 80vh; border-radius: 10px; touch-action: none; user-select: none; -webkit-user-drag: none; }
.lightbox .caption { color: #fff; font-weight: 600; text-align: center; }
.lightbox .lb-close {
  position: absolute; top: 18px; right: 22px; z-index: 3; /* boven de inzoombare foto */
  background: #fff; border: none; width: 40px; height: 40px; border-radius: 50%;
  font-size: 18px; cursor: pointer; font-weight: 800;
}
.lightbox .caption { position: relative; z-index: 2; }

/* ============================================================
   TOASTS
   ============================================================ */
.toast-wrap {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 8px; z-index: 200; align-items: center;
}
.toast {
  background: var(--lf-black); color: #fff;
  border-radius: var(--lf-radius-pill); padding: 11px 20px;
  font-weight: 600; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 8px;
  animation: toast-in 0.18s ease;
}
.toast.err { background: var(--lf-red); }
.toast.ok::before { content: "✓"; font-weight: 900; color: var(--lf-green); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ============================================================
   SECTION HEAD / CATEGORIEËN (zijbalk)
   ============================================================ */
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.section-head h2 { margin: 0; }
.link-btn {
  border: none; background: none; color: var(--lf-orange);
  font-weight: 700; font-size: 12px; cursor: pointer; text-decoration: underline; padding: 0;
}
.icon-btn {
  border: none; background: none; cursor: pointer; padding: 2px 4px;
  font-size: 17px; line-height: 1; border-radius: 8px; color: var(--ink-soft);
}
.icon-btn:hover { background: var(--surface-2); }
.cat-head { display: flex; align-items: center; justify-content: space-between; margin: 12px 0 6px; }
.cat-head:first-child { margin-top: 0; }
.cat-title { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); font-weight: 800; }
.cat-eye { border: none; background: none; cursor: pointer; font-size: 13px; padding: 2px 4px; border-radius: 6px; }
.cat-eye, .type-row .type-del { display: inline-flex; align-items: center; justify-content: center; }
.cat-eye svg, .type-row .type-del svg { display: block; }

/* ============================================================
   ASSIGNEE-VELD (meerdere namen)
   ============================================================ */
.assignee-field {
  display: flex; flex-wrap: wrap; gap: 5px; align-items: center;
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 5px; background: #fff;
}
.assignee-field.compact { border: none; padding: 0; background: transparent; }
.assignee-input { border: none; outline: none; flex: 1; min-width: 84px; font: inherit; padding: 4px; background: transparent; }
.assignee-field.compact .assignee-input { min-width: 64px; padding: 2px; font-size: 12px; }
.assignees-host { display: flex; }
.assignees-host .assignee-field { flex: 1; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--lf-yellow); color: #000; border-radius: var(--lf-radius-pill);
  padding: 2px 6px 2px 10px; font-size: 12px; font-weight: 700;
}
.chip-x {
  border: none; background: rgba(0,0,0,0.18); color: #000; border-radius: 50%;
  width: 15px; height: 15px; cursor: pointer; font-size: 9px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}

/* ============================================================
   DETAILPANEEL: punt vs lijn
   ============================================================ */
.detail-modal.node-mode .mode-edge { display: none; }
.detail-modal.edge-mode .mode-node { display: none; }

/* Tabbladen in het detailscherm */
.detail-tabs { display: flex; gap: 2px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.detail-tab {
  border: none; background: none; cursor: pointer;
  padding: 11px 14px; font-family: inherit; font-weight: 700; font-size: 13px;
  color: var(--ink-soft); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.detail-tab:hover { color: var(--ink); }
.detail-tab.active { color: var(--ink); border-bottom-color: var(--lf-orange); }
/* Een kabel heeft geen foto's → verberg dat tabblad */
.detail-modal.edge-mode .photos-tab { display: none; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel .photo-section { margin-top: 0; padding-top: 0; border-top: none; }
.edge-ends { font-weight: 700; margin: 0; }
.new-task-assignees { margin-top: 8px; }
.width-picker { display: flex; gap: 8px; }
.width-opt {
  flex: 1; height: 34px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.width-opt span { display: block; width: 60%; background: var(--ink); border-radius: var(--lf-radius-pill); }
.width-opt.sel { border-color: var(--ink); background: var(--surface-2); }

/* ============================================================
   TYPES-MODAL
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay[hidden] { display: none; }
.modal {
  background: var(--surface); border-radius: var(--lf-radius-soft);
  width: 580px; max-width: 100%; max-height: 88vh;
  display: flex; flex-direction: column; box-shadow: var(--shadow); overflow: hidden;
}
.modal-head { display: flex; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modal-title { font-family: var(--lf-font-display); text-transform: uppercase; font-size: 22px; margin: 0; }
.modal-close { margin-left: auto; border: none; background: var(--surface-2); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 16px; }
.modal-body { padding: 16px 18px; overflow-y: auto; }
body.modal-open { overflow: hidden; }
.manage-cat-head { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); margin: 16px 0 8px; }
.manage-cat-head:first-child { margin-top: 0; }

.type-card { border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 10px; background: var(--surface); }
.type-card-top { display: flex; align-items: center; gap: 10px; }
.icon-pick {
  width: 42px; height: 42px; border-radius: 12px; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: #000;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12); flex: 0 0 auto;
}
.icon-pick svg { width: 24px; height: 24px; }
.card-name { flex: 1 1 auto; min-width: 0; font-weight: 700; }
/* flex-basis i.p.v. width, anders wint de globale input-regel (width:100%) en
   wordt het Afk.-veld te breed terwijl de Naam samenknijpt. */
.card-abbr { flex: 0 0 74px; width: 74px; text-transform: uppercase; }
.icon-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin: 10px 0; padding: 10px; background: var(--surface-2); border-radius: 12px; }
.icon-grid[hidden] { display: none; }
.icon-opt { aspect-ratio: 1; border: 1px solid transparent; border-radius: 10px; background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #000; }
.icon-opt svg { width: 22px; height: 22px; }
.icon-opt.sel { border-color: var(--ink); background: var(--surface-3); }
.type-card-bottom { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.card-cat { flex: 0 0 auto; min-width: 160px; }
.card-swatches { display: flex; gap: 5px; flex: 1; flex-wrap: wrap; }
.card-del { border: 1px solid var(--line-strong); background: #fff; border-radius: var(--lf-radius-pill); padding: 7px 12px; cursor: pointer; font-weight: 700; color: var(--ink-soft); font-size: 13px; }
.card-del:hover { color: var(--lf-red); border-color: var(--lf-red); }

/* ============================================================
   MOBIEL — inklapbare zijbalk + responsive panelen
   ============================================================ */
.sidebar-backdrop { display: none; }

@media (max-width: 860px) {
  .hamburger { display: flex; }
  .plan-layout { grid-template-columns: 1fr; position: relative; }
  .sidebar {
    position: absolute; top: 0; left: 0; z-index: 40;
    width: 84%; max-width: 320px; height: 100%;
    transform: translateX(-100%); transition: transform 0.22s ease;
    box-shadow: var(--shadow);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop.show { display: block; position: absolute; inset: 0; background: rgba(0,0,0,0.35); z-index: 35; }
  .detail-modal { width: 100%; }
  /* Hoofdmenu (incl. editie + gebruiker) zit in de hamburger; inline-tabs weg. */
  .app-tabs { display: none; }
  /* Gereedschap inklappen achter één knop. */
  .zc-toggle { display: flex; }
  .zc-actions { display: none; }
  .zoom-controls.open .zc-actions { display: flex; margin-bottom: 6px; }
  .app-header { gap: 10px; padding: 0 12px; }
  .edition-pick { padding: 4px 6px; }
  .edition-pick .edition-cal { display: none; }
  .user-pill { padding: 6px; }
  .user-pill #userName { display: none; }
  .modal-overlay { padding: 0; }
  .modal { width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
  .list-view { padding: 16px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar { transition: none; }
}

/* ============================================================
   UX-verfijningen (labels, slider, filters, inklappen, opslag)
   ============================================================ */

/* Inklapbare zijbalk-secties */
.sidebar section .sec-toggle {
  cursor: pointer; user-select: none;
  display: flex; align-items: center; gap: 8px;
}
.sidebar section h2.sec-toggle { margin-bottom: 10px; }
.sidebar section .section-head.sec-toggle { margin-bottom: 10px; }
.sec-chevron {
  margin-left: auto; flex: 0 0 auto; color: var(--ink-soft);
  font-size: 11px; transition: transform 0.15s ease;
}
.sidebar section.collapsed .sec-chevron { transform: rotate(-90deg); }
.sidebar section.collapsed > *:not(.sec-toggle) { display: none; }

/* Zijbalk inklappen (desktop) */
/* Ingeklapt: één kolom zodat de stage de volledige breedte vult (anders belandt
   de stage in de 0px-kolom en blijft het scherm wit). */
.plan-layout.collapsed { grid-template-columns: 1fr; }
.plan-layout.collapsed .sidebar { display: none; }

/* Uitstekend lipje aan de zijrand om de zijbalk in/uit te klappen (desktop) */
.sidebar-tab {
  position: absolute;
  top: 50%; left: 280px;
  transform: translate(-1px, -50%);
  width: 18px; height: 54px;
  border: 1px solid var(--line);
  border-left: none;
  background: var(--surface);
  border-radius: 0 10px 10px 0;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  z-index: 26;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: var(--ink-soft);
  padding: 0;
}
.sidebar-tab:hover { color: var(--ink); }
.plan-layout.collapsed .sidebar-tab { left: 0; }
/* Volledig scherm is op mobiel onbetrouwbaar → knop verbergen */
@media (max-width: 860px) { #fullscreenBtn { display: none; } }

/* Hoofdmenu-drawer (mobiel; via de hamburger rechts) */
.main-menu-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.35); z-index: 45; }
.main-menu-backdrop[hidden] { display: none; }
.main-menu {
  position: fixed; top: calc(var(--header-h) + 6px); right: 8px; left: auto; z-index: 46;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow);
  padding: 8px; display: flex; flex-direction: column; gap: 8px; min-width: 240px; max-width: 88vw;
}
.main-menu[hidden] { display: none; }
.mm-nav { display: flex; flex-direction: column; gap: 2px; }
.mm-item {
  text-align: left; border: none; background: none; font-family: inherit;
  font-weight: 700; font-size: 15px; padding: 13px 16px; border-radius: 10px;
  cursor: pointer; color: var(--ink);
  text-transform: uppercase; letter-spacing: 0.03em;
}
.mm-item:hover { background: var(--surface-2); }
.mm-item.active { background: var(--lf-black); color: #fff; }
/* Editie + gebruiker onderaan in de drawer */
.mm-extra { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 8px; }
.mm-extra:empty { display: none; }
.mm-extra .edition-pick, .mm-extra .user-pill { width: 100%; justify-content: flex-start; }
/* In de drawer wél de volledige editie + gebruikersnaam tonen */
.mm-extra .user-pill #userName { display: inline; }
.mm-extra .edition-pick .edition-cal { display: inline; }
.mm-extra .user-pill .logout:not(.hidden) { margin-left: auto; }

/* Knop linksboven op het plan om de infra-zijbalk te openen (mobiel) */
.plan-sidebar-open {
  display: none;
  position: absolute; top: 12px; left: 12px; z-index: 16;
  align-items: center; gap: 7px;
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--lf-radius-pill);
  box-shadow: var(--shadow-sm); padding: 8px 14px 8px 11px;
  font-family: inherit; font-weight: 700; font-size: 13px; color: var(--ink); cursor: pointer;
}
/* Op mobiel: lipje weg (dat is voor desktop-inklappen), Infra-knop tonen.
   Staat ná de basisregels zodat het de cascade wint. */
@media (max-width: 860px) {
  .sidebar-tab { display: none; }
  .plan-sidebar-open { display: inline-flex; }
}

/* iOS: geen long-press-callout / selectie tijdens pinch & sleep */
.stage, .node, .lightbox, .lightbox img {
  -webkit-touch-callout: none; -webkit-user-select: none; user-select: none;
}
/* Alles binnen het plan (incl. iconen/lagen) mag geen native touch-gestures
   triggeren — anders kan een vinger op een icoon de browser-pinch/refresh starten. */
.stage, .stage * { touch-action: none; }
/* Geen dubbeltik-zoom op knoppen/menu/lijsten (we zoomen zelf waar nodig). */
button, a, select, input, label,
.app-header, .main-menu, .list-view, .sidebar, .modal { touch-action: manipulation; }

/* Slider icoongrootte */
.slider-row { display: flex; flex-direction: column; gap: 6px; padding: 8px 2px 2px; }
.slider-row > span { font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.slider-row em { font-style: normal; color: var(--ink-soft); font-weight: 700; }
.slider-row input[type="range"] { width: 100%; accent-color: var(--lf-orange); }

/* To-do filters */
.todo-filters { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.todo-filters #todoSearch { flex: 2; min-width: 160px; }
.todo-filters select { flex: 1; min-width: 130px; }

/* Oogjes uitlijnen (categorie + apparaat) */
.cat-head { padding-right: 9px; }
.cat-eye, .type-row .type-del { width: 26px; min-width: 26px; text-align: center; flex: 0 0 auto; padding: 2px 0; }

/* Sluitknop rechterpaneel prominenter */
.detail-close { background: var(--surface-2); color: var(--ink); font-weight: 800; }
.detail-close:hover { background: var(--lf-red); color: #fff; }

/* Opslag-indicatie */
.save-indicator {
  position: fixed; right: 16px; bottom: 16px; z-index: 180;
  background: var(--lf-black); color: #fff; border-radius: var(--lf-radius-pill);
  padding: 8px 16px; font-weight: 700; font-size: 13px;
  box-shadow: var(--shadow); opacity: 0; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease; pointer-events: none;
}
.save-indicator.show { opacity: 1; transform: none; }

/* Type-omschrijving in detailpaneel */
.type-desc { margin: 0 0 8px; color: var(--ink-soft); font-size: 13px; line-height: 1.4; }

/* Beheer-types: kaartvelden */
.card-hint { margin: 8px 0 0; font-size: 11px; color: var(--ink-soft); }
.card-field { display: block; margin-top: 10px; }
.card-field-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); font-weight: 800; margin-bottom: 4px; }
.card-desc { width: 100%; resize: vertical; min-height: 44px; }

/* ============================================================
   IT-MATERIAAL VIEW
   ============================================================ */
.mat-view { max-width: 1180px; }
.mat-view #materiaalList { flex: 1; overflow: auto; }
.mat-toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.mat-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mat-total { color: var(--ink-soft); font-weight: 600; }

.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--lf-radius-pill); overflow: hidden; }
.seg button { border: none; background: #fff; padding: 8px 18px; font-family: inherit; font-weight: 700; cursor: pointer; color: var(--ink-soft); }
.seg button + button { border-left: 1px solid var(--line-strong); }
.seg button.active { background: var(--lf-black); color: #fff; }

.mat-team { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 14px; }
.mat-team-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.mat-team-name { font-weight: 800; font-size: 15px; border: 1px solid transparent; background: transparent; flex: 1 1 200px; max-width: 360px; border-radius: 8px; padding: 5px 7px; color: var(--ink); }
.mat-team-name:hover:not(:disabled) { background: var(--surface-2); }
.mat-team-name:focus { background: #fff; border-color: var(--line-strong); outline: none; }
.mat-team-name:disabled { color: var(--ink-soft); }
.mat-chip { background: var(--surface-3); border-radius: var(--lf-radius-pill); padding: 2px 10px; font-weight: 700; font-size: 12px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.mat-chip.done { background: #dff3e6; color: #1d7a44; }
.mat-additem { border: 1px solid var(--line-strong); background: #fff; border-radius: var(--lf-radius-pill); padding: 5px 12px; font-weight: 700; cursor: pointer; font-size: 13px; }
.mat-additem:hover { background: var(--surface-2); }
.mat-delteam { margin-left: auto; border: none; background: none; color: var(--ink-soft); cursor: pointer; font-size: 12px; text-decoration: underline; }
.mat-delteam:hover { color: var(--lf-red); }

.mat-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.mat-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink-soft); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mat-table td { padding: 3px 8px; border-bottom: 1px solid var(--surface-2); vertical-align: middle; }
.mat-table tr:last-child td { border-bottom: none; }
.mat-table input { border: 1px solid transparent; background: transparent; border-radius: 8px; padding: 6px 8px; width: 100%; font: inherit; color: var(--ink); }
.mat-table input:hover { background: var(--surface-2); }
.mat-table input:focus { background: #fff; border-color: var(--line-strong); outline: none; }
.mat-table .c-qty { width: 70px; }
.mat-table .c-step { width: 150px; }
.mat-qty { width: 54px; text-align: center; }
.mat-rowdone { background: #f6fbf8; }
.mat-empty { color: var(--ink-soft); font-size: 13px; padding: 10px; }

.mat-step { display: inline-flex; align-items: center; gap: 8px; }
.mat-pm { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line-strong); background: #fff; font-size: 16px; font-weight: 800; cursor: pointer; line-height: 1; color: var(--ink); }
.mat-pm:hover:not(:disabled) { background: var(--surface-2); }
.mat-pm:disabled { opacity: 0.35; cursor: default; }
.mat-count { min-width: 50px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.mat-step.done .mat-count { color: #1d7a44; }
.mat-del { border: none; background: none; color: var(--ink-soft); cursor: pointer; padding: 4px; border-radius: 8px; display: inline-flex; }
.mat-del:hover { color: var(--lf-red); }
