/* ==========================================================================
   Beheer-flow, /beheer/{slug} + verify/beslissing/revert
   Bouwt volledig voort op de offerte-laag (page-kosten.css + page-offerte.css):
   zelfde of-root, of-head, of-step en of-input. Hier alleen de bh-restjes.
   ========================================================================== */

.bh-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: stretch;
}

.bh-row .of-input {
  flex: 1 1 220px;
  min-width: 0;
}

.bh-status {
  min-height: 1.4em;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 10px 0 0;
}

.bh-error {
  background: var(--color-surface-card);
  border: 1px solid var(--color-line);
  border-left: 3px solid var(--color-danger);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 0 0 var(--space-3);
  font-size: 0.92rem;
}

/* Bulletlijst in de of-step: exact dezelfde tekststijl als .of-hint,
   met de hangende bullet uit het blog-patroon. */
.bh-lijst {
  list-style: none;
  padding-left: 0;
  margin: 0 0 12px;
}

.bh-lijst li {
  position: relative;
  padding-left: 1.35em;
  margin-bottom: 6px;
  font-family: var(--font-body);
  font-size: 0.86rem;
  line-height: inherit;
  color: var(--color-text-muted);
}

.bh-lijst li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--color-primary);
}

.bh-diff {
  background: var(--color-surface-card);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 0.82rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 320px;
  overflow: auto;
}

.bh-diff-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin: var(--space-3) 0 6px;
}

/* Knoppenrij onder een of-step (verify, beslissing, revert) */
.bh-acties {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: var(--space-3);
}

/* "Verstuur link": zelfde maatvoering als de sb-knoppen elders op de site,
   in heide-rood als opvallend accent naast het invoerveld. */
.bh-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  border: 2px solid var(--color-heide-diep);
  border-radius: var(--radius);
  background: var(--color-heide-diep);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.bh-btn svg {
  flex: 0 0 auto;
}

.bh-btn:hover {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: #fff;
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .bh-btn {
    transition: none;
  }
  .bh-btn:hover {
    transform: none;
  }
}

.bh-btn:focus-visible {
  outline: var(--ring-focus);
  outline-offset: 2px;
}


.bh-btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.bh-lijst li {
  margin-bottom: 4px;
}

/* ---- Rustige hiërarchie: precies vier tekststijlen ----
   1. paginatitel ("Profiel beheren"), 2. bedrijfsnaam, 3. sectietitels,
   4. alle lopende tekst en labels in dezelfde sans/kleur/grootte
   (labels alleen semibold). */
.of-root .of-titel-klein {
  font-size: clamp(1.7rem, 5.4vw, 2.4rem);
}

.of-root .of-titel-naam {
  font-size: clamp(1.15rem, 4vw, 1.6rem);
  color: var(--color-text-muted);
}

.of-step .calc-section-title {
  font-size: 1.25rem;
  margin: 0 0 16px;
}

/* Inlogkaart: wit vlak met iets donkerdere rand, zodat het als
   inlogblok leest tegen de linnen achtergrond. */
.of-step.bh-login {
  position: relative;
  z-index: 1;
  background: var(--color-surface-card);
  border-color: color-mix(in srgb, var(--color-line) 55%, var(--color-ink-soft));
  margin-bottom: 0;
}

/* Vervolgkaart schuift achter de inlogkaart vandaan: bovenrand en
   bovenhoeken weg, strak tegen het inlogblok aan. */
.of-step.bh-vervolg {
  /* Schuif de kaart onder de ronde onderhoeken van het inlogblok, zodat de
     zijlijntjes zonder witruimte op het blok aansluiten. De inlogkaart ligt
     er met z-index en eigen achtergrond overheen. */
  margin-top: calc(-1 * var(--radius-lg));
  padding-top: calc(var(--space-4) + var(--radius-lg));
  border-top: none;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.of-root .of-hint,
.of-root .bh-status,
.of-root .bh-lijst li {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.of-root .of-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

/* Ghost-knoppen in de beheer-flow ("Naar de homepage", "Terug naar het
   profiel"): transparant met groene omlijning, zwarte hover. */
.of-root .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius);
  background: transparent;
  color: var(--color-primary);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.of-root .btn-ghost:hover,
.of-root .btn-ghost:focus-visible {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: #fff;
}

.of-root .btn-ghost:focus-visible {
  outline: var(--ring-focus);
  outline-offset: 2px;
}


/* ---- Bevestigkaart na de magic link: alles gecentreerd, gouden knop ---- */
.bh-verify {
  text-align: center;
  padding-top: calc(var(--space-4) + 30px);
  padding-bottom: calc(var(--space-4) + 30px);
}

/* De sectietitel is in de offerte-laag een flexbox; die negeert text-align */
.bh-verify .calc-section-title {
  justify-content: center;
}

.bh-verify .bh-btn {
  margin-top: var(--space-4);
  padding: 12px 40px;
  background: var(--color-main3);
  border-color: var(--color-main3);
  color: var(--color-ink);
}

.bh-verify .bh-btn svg {
  stroke: var(--color-ink);
}

.bh-verify .bh-btn:hover {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: var(--color-surface);
}

.bh-verify .bh-btn:hover svg {
  stroke: var(--color-surface);
}
