/* Beheer > Gebruikers & rollen: instellingen-support per gebruiker +
   instellingsprofielen. Vlakke kaarten (1px-rand + lichte schaduw). */

.gb {
  display: flex;
  gap: 14px;
  align-items: stretch;
  margin-bottom: 14px;
}

.gb-kaart {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
}
.gb-kaart--gebruikers { flex: 0 0 280px; min-width: 0; }
.gb-kaart--instellingen { flex: 1 1 auto; min-width: 0; }
.gb-kaart__titel { margin: 0 0 10px; font-size: 1rem; color: var(--blue-700); }

.gb-kop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.gb-kop .gb-kaart__titel { margin: 0; }
.gb-kop__acties { display: flex; gap: 8px; flex-wrap: wrap; }
.gb-uitleg { margin: 0 0 10px; font-size: .82rem; color: var(--muted); }

/* Gebruikerslijst (links): selecteerbare rijen. */
.gb-lijst { display: flex; flex-direction: column; gap: 2px; max-height: 60vh; overflow-y: auto; }
.gb-gebruiker {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  font: inherit;
  font-size: .9rem;
  cursor: pointer;
}
.gb-gebruiker:hover { background: var(--bg-50); }
.gb-gebruiker.is-actief { background: var(--blue-100); }
.gb-gebruiker small { color: var(--muted); font-size: .78rem; overflow-wrap: anywhere; }

/* Profiel-toewijsbalk boven de instellingentabel. */
.gb-toepassen {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: .88rem;
}
.gb-toepassen select {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font: inherit;
  font-size: .88rem;
  max-width: 280px;
}

.gb-tabel td { white-space: normal; }
.gb-tabel code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .82em;
  background: var(--bg-50);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0 4px;
}
.gb-waarde { overflow-wrap: anywhere; color: var(--muted); }
.gb-rij-acties { white-space: nowrap; width: 96px; }
.gb-leeg { color: var(--muted); font-size: .88rem; font-style: italic; }
.gb-fout {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(179, 38, 30, .06);
  border: 1px solid var(--err);
  border-radius: var(--radius);
  font-size: .9rem;
  max-width: 520px;
}
.gb-fout p { margin: 0; flex: 1 1 auto; }
.gb-status { margin: 8px 0 0; color: var(--muted); font-size: .85rem; min-height: 1.2em; }

/* Icoon-knoppen binnen dit scherm (zelfde stijl als het listgrid). */
.gb-kaart .btn-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--blue-700);
  cursor: pointer;
}
.gb-kaart .btn-ico:hover:not(:disabled) { background: var(--blue-100); }
.gb-kaart .btn-ico:disabled { opacity: .4; cursor: default; }
.gb-kaart .btn-ico svg { width: 15px; height: 15px; }
.gb-kaart .gb-verwijder { color: var(--err); }
.gb-kaart .gb-verwijder:hover:not(:disabled) { background: rgba(179, 38, 30, .1); }
.gb-kaart .btn--licht {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--blue-700);
}
.gb-kaart .btn--licht:hover:not(:disabled) { background: var(--blue-100); }
.gb-kaart .btn--licht:disabled { opacity: .5; cursor: default; }

@media (max-width: 860px) {
  .gb { flex-direction: column; }
  .gb-kaart--gebruikers { flex: 0 0 auto; }
  .gb-lijst { max-height: 32vh; }
}
