/* AIDA layouts. Colours and typography come from the existing AIDA theme. */
.beheer-kop {
  padding-block: 9px;
  row-gap: 6px;
}
.beheer-menu { gap: 2px; }
.beheer-inhoud {
  width: 100%;
  max-width: 1280px;
  padding: clamp(14px, 2vw, 24px) clamp(12px, 2.5vw, 28px) 40px;
  gap: 14px;
}
.beheer-actiebalk, .kaart-voet {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.beheer-actiebalk:empty { display: none; }
.beheer-actiebalk .knop-klein { margin: 0; white-space: normal; text-align: left; }
.knop-klein.knop-primair { background: var(--paars-donker); color: #fff; border-color: var(--paars-donker); }
.knop-klein.knop-primair:hover { background: var(--navy); border-color: var(--navy); }
.kaart-voet {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--rand);
  column-gap: 16px;
  font-size: .875rem;
}
.kaart-voet > p { width: 100%; margin: 0; }
.kaart-voet a { color: var(--navy); text-underline-offset: 3px; }
.beheer-inhoud .kaart { padding: clamp(12px, 1.5vw, 18px); }
.beheer-inhoud :is(.twee-kolommen, .tegels) { gap: 10px; }
.beheer-inhoud p.subtekst { margin: 8px 0 0; line-height: 1.4; }
.beheer-inhoud .kaart-kop { gap: 8px 12px; margin-bottom: 8px; }
.beheer-inhoud .tegel { padding: 12px 14px; }
.kerncijfers .tegel-getal { font-size: clamp(20px, 2.3vw, 28px); }
.beheer-inhoud .filter { min-height: 36px; display: inline-flex; align-items: center; }
.beheer-inhoud :is(.zoekveld, .tabel-houder, .pilot-table-scroll) { min-width: 0; max-width: 100%; }
.rustige-lijst .vraagregel { gap: 8px; min-width: 0; }
.rustige-lijst :is(.vraagtekst, .antwoord, .opmerking) { overflow-wrap: anywhere; }
.beheer-instellingen .knop { margin-top: 10px; }
.beheer-inhoud :is(.pilot-actions, .beheer-rijacties) .knop-klein { white-space: normal; }
.inlogacties { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.inlogacties form { margin: 0; }
.beheer-tabel td .subtekst { overflow-wrap: anywhere; }
.beheer-tabel .deelnemer-acties { min-width: min(100%, 156px); }
.beheer-inhoud .acties-paneel { gap: 10px; padding: 12px; }
.beheer-inhoud .profiel-form,
.beheer-inhoud .limiet-form,
.beheer-inhoud .deelnemer-aanmaken {
  display: grid;
  align-items: end;
  gap: 8px 12px;
}
.beheer-inhoud .profiel-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.beheer-inhoud .limiet-form { grid-template-columns: minmax(0, 1fr) auto; }
.beheer-inhoud .deelnemer-aanmaken { grid-template-columns: 1fr 1.35fr 1fr auto; margin-top: 12px; }
.beheer-inhoud .deelnemer-aanmaken label { margin: 0; }
.beheer-inhoud .deelnemer-aanmaken :is(input, select) { display: block; width: 100%; min-height: 38px; margin-top: 4px; }
.beheer-inhoud .formulier-kaart > summary { cursor: pointer; font-weight: 650; color: var(--navy); }
.beheer-inhoud .profiel-form .knop-klein { grid-column: 1 / -1; justify-self: start; }
.beheer-inhoud .limiet-form .knop-klein { justify-self: start; }
.toegang-rij {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 6px 14px;
  padding: 10px 0;
  border-top: 1px solid var(--rand);
}
.toegang-rij:last-child { padding-bottom: 0; }
.toegang-identiteit { min-width: 0; overflow-wrap: anywhere; }
.toegang-identiteit h3 { margin: 0; font-size: .98rem; color: var(--navy); line-height: 1.35; }
.beheer-inhoud .toegang-identiteit p { margin: 3px 0 0; }
.toegang-rij .beheer-rijacties { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.toegang-rij .beheer-rijacties > * { margin: 0; }
.toegang-rij .central-delete { justify-self: end; }
.toegang-rij:has(.beheer-rijacties) .central-delete { grid-column: 2; }
.central-delete > summary { list-style: none; cursor: pointer; }
.central-delete > summary::-webkit-details-marker { display: none; }
.central-delete[open] > form {
  display: grid;
  gap: 8px;
  width: min(100%, 460px);
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--rand);
  border-radius: 8px;
}
.central-delete form p, .central-delete form label { margin: 0; }
.central-delete form input { display: block; width: 100%; margin-top: 4px; }
.central-delete form button { justify-self: start; }

.accountlijst { list-style: none; margin: 0; padding: 0; }
.accountlijst-rij {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 14px 18px;
  border-top: 1px solid var(--rand);
  padding: 15px 0;
  overflow-wrap: anywhere;
}
.accountlijst-rij:last-child { padding-bottom: 0; }
.account-identiteit > span, .account-activatie > span { display: block; }
.account-col-label { display: block; font-size: .82rem; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.account-app form, .eerste-aida-toegang { margin: 5px 0 0; }
.account-status { display: inline-block; color: var(--navy); }
.account-status.aan { font-weight: 700; }
.eerste-aida-toegang > summary { cursor: pointer; list-style: none; }
.eerste-aida-toegang > summary::-webkit-details-marker { display: none; }
.eerste-aida-toegang[open] > form { display: grid; gap: 6px; }
.eerste-aida-toegang select { display: block; width: 100%; min-height: 38px; margin: 4px 0; }
.account-aanmaak-rechten { min-width: 0; border: 1px solid var(--rand); border-radius: 8px; }
.beheer-inhoud .account-aanmaak-rechten input { display: inline; width: auto; min-height: 0; }
.account-acties { grid-column: 1 / -1; }
.account-acties > summary { list-style: none; cursor: pointer; }
.account-acties > summary::-webkit-details-marker { display: none; }
.account-acties > form, .account-acties > details { margin: 8px 0 0; }
.account-acties form input:not([type="hidden"]) { min-width: 0; max-width: 100%; }

.persoonlijk-inloggen .pilot-page {
  width: 100%;
  max-width: 520px;
  margin: clamp(14px, 4vh, 42px) auto;
  padding: 0 clamp(12px, 3vw, 22px);
}
.persoonlijk-inloggen .pilot-header { margin: 0 0 10px; color: var(--navy); }
.persoonlijk-inloggen .pilot-header img { width: 38px; height: 38px; }
.persoonlijk-inloggen .pilot-card { min-width: 0; padding: clamp(16px, 4vw, 28px); border-color: var(--rand); }
.persoonlijk-inloggen .pilot-card h1 { margin: 0 0 8px; color: var(--navy); font-size: clamp(22px, 4vw, 30px); line-height: 1.2; }
.persoonlijk-inloggen .pilot-card p { margin: 8px 0; line-height: 1.45; }
.persoonlijk-inloggen .pilot-form { gap: 6px; margin: 12px 0; }
.persoonlijk-inloggen .pilot-form input { min-width: 0; min-height: 42px; border-color: var(--rand); font: inherit; }
.persoonlijk-inloggen .pilot-form button { margin-top: 4px; min-height: 42px; }
.persoonlijk-inloggen .pilot-card :is(code, a) { overflow-wrap: anywhere; }
.persoonlijk-inloggen .pilot-card img { max-width: 100%; height: auto; }
.chat-pagina .gesprek-kop { column-gap: clamp(5px, 1.4vw, 12px); }
.chat-pagina .gesprek-kop h1 { min-width: 0; }
.chat-pagina .gesprek-kop .toolbox-knop { flex: 0 0 auto; }

@media (min-width: 1001px) {
  .beheer-inhoud .acties-paneel { width: min(410px, calc(100vw - 56px)); }
}
@media (max-width: 800px) {
  .accountlijst-rij { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .beheer-inhoud .deelnemer-aanmaken { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .beheer-inhoud .deelnemer-aanmaken .knop-primair { justify-self: start; }
  .beheer-inhoud .kaart-kop .zoekveld { margin-inline-start: 0; flex: 1 1 240px; }
  .beheer-inhoud .kaart-kop .zoekveld input { flex: 1 1 auto; min-width: 0; }
}
@media (max-width: 560px) {
  .account-identiteit, .account-activatie { grid-column: 1 / -1; }
  .account-app .knop-klein { min-height: 40px; text-align: left; white-space: normal; }
  .beheer-menu a { padding-inline: 8px; font-size: 13px; }
  .beheer-inhoud .deelnemers-cijfers .tegel:last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0 10px;
  }
  .deelnemers-cijfers .tegel:last-child .tegel-getal { grid-row: span 2; }
  .beheer-inhoud .toegang-rij, .beheer-inhoud .deelnemer-aanmaken { grid-template-columns: minmax(0, 1fr); }
  .toegang-rij .central-delete, .toegang-rij:has(.beheer-rijacties) .central-delete { grid-column: 1; justify-self: start; }
  .beheer-inhoud .limiet-form, .beheer-inhoud .profiel-form { grid-template-columns: minmax(0, 1fr); }
  .beheer-inhoud .acties-paneel { width: 100%; }
  .beheer-actiebalk .knop-klein, .beheer-rijacties .knop-klein { min-height: 40px; }
  .chat-pagina .gesprek-kop .toolbox-knop { padding-inline: 7px; font-size: 12px; }
}
