/* 'Bedrijf volledig verwijderen' (Instellingen > Bedrijf, alleen beheerders): rustige rij + 2 pop-ups */
.bedrijf-settings .bv-rij { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding: 16px 20px; }
.bv-rij h2 { margin: 0; font-size: 14px; font-weight: 600; color: var(--text); text-align: left; }
button.bv-rij-knop, button.bv-doorgaan, button.bv-knop { width: auto; margin: 0; padding: 9px 18px; border: 1px solid #b91c1c; border-radius: 8px; background: #b91c1c; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; flex-shrink: 0; }
button.bv-rij-knop:hover, button.bv-rij-knop:focus-visible,
button.bv-doorgaan:hover:not(:disabled), button.bv-doorgaan:focus-visible,
button.bv-knop:hover:not(:disabled), button.bv-knop:focus-visible { background: #991b1b; border-color: #991b1b; box-shadow: 0 0 12px rgba(185, 28, 28, 0.5); }
:is(button.bv-rij-knop, button.bv-doorgaan, button.bv-knop, .bv-dialog button):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Uitgeschakeld: grijs, niet klikbaar */
button.bv-knop:disabled, button.bv-doorgaan:disabled { background: #e5e7eb; border-color: #d1d5db; color: #6b7280; cursor: not-allowed; box-shadow: none; opacity: 1; }
:where(html[data-theme="dark"]) :is(button.bv-knop, button.bv-doorgaan):disabled { background: #2a2d33; border-color: #3a3e45; color: #8b919b; }
@media (prefers-color-scheme: dark) { :where(html:not([data-theme="light"])) :is(button.bv-knop, button.bv-doorgaan):disabled { background: #2a2d33; border-color: #3a3e45; color: #8b919b; } }
button.bv-knop.knop-laadt { background: #b91c1c; border-color: #b91c1c; color: #fff; opacity: 0.85; cursor: progress; }

/* Pop-ups */
html.bv-scroll-lock, body.bv-scroll-lock { overflow: hidden !important; overscroll-behavior: none; }
.bv-overlay { position: fixed; inset: 0; z-index: 4000; display: grid; place-items: center; padding: 16px; background: rgba(15, 25, 38, .56); backdrop-filter: blur(3px); }
.bv-dialog { display: flex; flex-direction: column; gap: 14px; width: min(100%, 520px); max-height: min(92dvh, 900px); overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box; border: 1px solid var(--border); border-radius: 18px; padding: clamp(18px, 3vw, 24px); background: var(--card); color: var(--text); box-shadow: 0 24px 70px rgba(0,0,0,.28); text-align: left; }
.bv-dialog[hidden], .bv-dialog [hidden] { display: none !important; }
.bv-dialog:focus { outline: none; }
.bv-dialog h2 { margin: 0; font-size: 18px; font-weight: 700; color: var(--text); text-align: left; }
.bv-dialog h3 { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: var(--text); }
.bv-dialog p { margin: 0; }
.bv-sectie p, .bv-sectie li { font-size: 13px; line-height: 1.5; color: var(--text); }
/* Beide rode blokken in pop-up 1 gebruiken de bestaande foutmelding van de abonnementspagina: .billing-feedback[data-soort="fout"] (styles.css).
   Hier alleen de indeling: kop en tekst onder elkaar, en geen extra marge onder het blok in de pop-up. */
.bv-dialog :is(.bv-waarschuwing, .bv-abonnement) { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.bv-lijst { margin: 0; padding-left: 20px; }
.bv-laden { color: var(--muted); font-size: 13px; }
.bv-laden .knop-spinner { width: 12px; height: 12px; margin: 0 6px -1px 0; }
.bv-klein { color: var(--muted); font-size: 12px; line-height: 1.5; }
.bv-naam { font-weight: 600; overflow-wrap: anywhere; }
.bv-veld { display: flex; flex-direction: column; gap: 6px; }
.bv-veld > label { color: var(--text); font-size: 13px; font-weight: 400; line-height: 1.5; }
.bv-veld input { width: 100%; box-sizing: border-box; }
.bv-vink { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--text); font-size: 13px; cursor: pointer; }
.bv-vink input { width: 18px; height: 18px; margin: 0; flex-shrink: 0; }
.bv-vink input:disabled + span, .bv-dialog input:disabled { opacity: 0.6; cursor: default; }
.bv-voortgang { color: var(--muted); font-size: 12px; line-height: 1.5; }
.bv-melding { padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 13px; line-height: 1.45; }
.bv-melding.is-fout { border-color: var(--dark-danger); color: var(--error); }
.bv-melding.is-succes { border-color: var(--accent); }
.bv-dialog-acties { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.bv-dialog-acties > button { width: auto; margin: 0; }
.bv-acties-2 .bv-terug { margin-right: auto; }

@media (max-width: 600px) {
  .bedrijf-settings .bv-rij { padding: 14px 16px; }
  .bv-overlay { padding: 8px; align-items: end; }
  .bv-dialog { width: 100%; max-height: 94dvh; border-radius: 17px 17px 9px 9px; }
  .bv-dialog-acties { flex-direction: column-reverse; }
  .bv-dialog-acties > button { width: 100%; }
  .bv-acties-2 .bv-terug { margin-right: 0; }
}
