/* ── Type switch ── */
.type-switch {
  display: flex;
  gap: 0.5rem;
}

.type-btn {
  flex: 1;
  background: var(--bg);
  color: var(--muted);
  border: 1.5px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.7rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.type-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.type-btn:not(.active):hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Sub toggle ── */
.toggle-group {
  display: flex;
  gap: 0.5rem;
  background: var(--bg);
  border-radius: 0.6rem;
  padding: 0.25rem;
  width: fit-content;
}

.toggle-btn {
  background: transparent;
  color: var(--muted);
  border: none;
  border-radius: 0.45rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.toggle-btn.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.invoer-rij {
  display: flex;
  gap: 1rem;
}

.bh-inputs {
  display: flex;
  gap: 0.5rem;
}

.bh-field {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.bh-tag {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
  width: 14px;
}

.bh-unit {
  font-size: 0.8rem;
  color: var(--muted);
}

.bh-field input {
  width: 100px;
}

/* Layout SVG + tabel naast elkaar */
.resultaat-layout {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

#deur-svg {
  width: 140px;
  flex-shrink: 0;
  height: auto;
}

/* Tabel */
.maten-tabel {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.maten-tabel th {
  text-align: left;
  font-size: 0.75rem;
  color: var(--muted);
  padding: 0 0.5rem 0.5rem;
  border-bottom: 1px solid var(--border);
}

.maten-tabel td {
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}

.maten-tabel tr:last-child td {
  border-bottom: none;
}

.waarde {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.kleur-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: middle;
  border: 1px solid rgba(0,0,0,0.15);
}

.dot-wand     { background: #d1d5db; }
.dot-inbouw   { background: #bfdbfe; }
.dot-doorgang { background: #bbf7d0; }
.dot-buiten   { background: #fde68a; }

.rij-copy {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0.2rem 0.4rem;
  border-radius: 0.3rem;
  transition: background 0.1s, color 0.1s;
}

.rij-copy:hover {
  background: var(--bg);
  color: var(--text);
}

@media (max-width: 500px) {
  .resultaat-layout {
    flex-direction: column;
  }
  #deur-svg {
    width: 100px;
    align-self: center;
  }
}
