.rijen-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rijen-tabel {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.rijen-tabel th {
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0 0.25rem 0.4rem;
  border-bottom: 1.5px solid var(--border);
}

.rijen-tabel th:nth-child(3) {
  text-align: right;
}

.rijen-tabel td {
  padding: 0.3rem 0.25rem;
  vertical-align: middle;
}

.rijen-tabel td input[type="number"] {
  padding: 0.45rem 0.6rem;
  font-size: 0.95rem;
  border-radius: 0.5rem;
}

.rijen-tabel td:nth-child(1) input { width: 80px; }
.rijen-tabel td:nth-child(2) input { width: 120px; }

.rij-m2 {
  text-align: right;
  font-weight: 600;
  color: #1e40af;
  white-space: nowrap;
  min-width: 80px;
}

.rij-m2.leeg {
  color: var(--muted);
  font-weight: 400;
}

.verwijder-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.3rem 0.4rem;
  border-radius: 0.4rem;
  transition: color 0.15s, background 0.15s;
  line-height: 1;
}

.verwijder-btn:hover {
  color: #dc2626;
  background: #fef2f2;
}

.voeg-toe-btn {
  align-self: flex-start;
  background: none;
  border: 1.5px dashed var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 0.6rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.voeg-toe-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: none;
}

.totaal-blok {
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.totaal-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e40af;
}

.totaal-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.totaal-waarde {
  font-size: 1.75rem;
  font-weight: 800;
  color: #1e40af;
}

.offerte-blok {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.offerte-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.offerte-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.offerte-tekst {
  border: 1.5px solid var(--border);
  border-radius: 0.6rem;
  padding: 0.65rem 0.85rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  resize: vertical;
  min-height: 120px;
  line-height: 1.7;
  outline: none;
  width: 100%;
}

@media (max-width: 480px) {
  .rijen-tabel td:nth-child(1) input { width: 64px; }
  .rijen-tabel td:nth-child(2) input { width: 96px; }
}
