/* Einstellungen, Baugruppe benutzer: Stilregeln, die nur diese Baugruppe braucht. Gemeinsames (es-…) steht in oo.einstellungen.css,
   Allgemeines in oo.css – hier nie etwas davon überschreiben. Eigene Klassen mit der Vorsilbe es-bn-, nur Marken aus oo.css.
   Eingebunden in Dokument.razor nach oo.einstellungen.css. */

/* ── Leiste über der Liste: Suche links, Status-Chips daneben ────────────────── */
.es-bn-leiste { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 10px; }
.es-bn-suche { flex: 0 1 320px; }
.es-bn-chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── Tabelle ─────────────────────────────────────────────────────────────────── */
.es-bn-tab td { white-space: nowrap; }
.es-bn-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.es-bn-kuerzel { flex: 0 0 22px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 3px; background: var(--flaeche-2);
  color: var(--tinte-4); font-size: 10.5px; font-weight: 600; letter-spacing: .02em; }
.es-bn-n { overflow: hidden; text-overflow: ellipsis; color: var(--tinte-1); font-weight: 500; }
.es-bn-ich .es-bn-kuerzel { background: var(--auswahl); color: var(--tinte-2); }
.es-bn-email, .es-bn-datum { color: var(--tinte-4); }
/* ☠️ max-width 0 + Breite: die Zelle zählt nicht zur Mindestbreite der Tabelle und bekommt den Rest. Im Browser geprüft: mit
   festen 260 px ragte die Tabelle bei 1366 px über die Karte, die Spalte „Weitere Aktionen“ war abgeschnitten. */
.es-bn-notiz { max-width: 0; width: 24%; overflow: hidden; text-overflow: ellipsis; color: var(--tinte-4); }
.es-bn-leise { color: var(--tinte-5); }
.es-bn-rolle { color: var(--tinte-2); text-decoration: none; }
a.es-bn-rolle:hover { color: var(--tinte-1); text-decoration: underline; }
.es-bn-rolle.voll { font-weight: 600; }
.es-bn-rolle.keine { color: var(--tinte-5); }
.es-bn-mehrzelle { width: 36px; }
.es-bn-mehr { position: relative; display: inline-block; }
.es-bn-menue { min-width: 260px; }
.oo-menue button[role="menuitem"].es-bn-gefahr { color: var(--alarm); }
.es-bn-unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.es-bn-nichts { display: grid; justify-items: center; gap: 10px; }
.es-bn-allein { margin-top: 10px; }

/* ── Fenster ─────────────────────────────────────────────────────────────────── */
.oo-dialog.es-bn-dlg { top: 12vh; width: min(500px, calc(100vw - 32px)); max-height: 80vh; overflow-y: auto; }
.oo-dialog.es-bn-dlg.breit { top: 8vh; width: min(560px, calc(100vw - 32px)); max-height: 86vh; }
.es-bn-dlg .fm-z { grid-template-columns: 120px minmax(0, 1fr); margin-bottom: 6px; }
.oo-dialog p.es-bn-dlg-wer { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: -2px 0 12px; color: var(--tinte-4); }
.es-bn-dlg-wer strong { color: var(--tinte-1); font-weight: 600; }
.oo-dialog p.es-bn-dlg-hinweis, .oo-dialog p.es-bn-feldhinweis { margin: 4px 0 14px; color: var(--tinte-5); font-size: 12px; }
.oo-dialog p.es-bn-feldhinweis { margin: -2px 0 8px 130px; }
.oo-dialog p.es-bn-pruefung { margin: -2px 0 8px; font-size: 12.5px; }
.oo-dialog p.es-bn-pruefung.fehler { color: var(--alarm); }
.oo-dialog p.es-bn-erfolg { margin-bottom: 8px; color: var(--tinte-1); }
.oo-dialog p.es-bn-verwerfen { margin: 12px 0 0; padding: 8px 10px; border-radius: 3px; background: var(--warn-grund); color: var(--warn); }
.es-bn-dlg-aktionen { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.es-bn-dlg-aktionen .es-bn-gefahr { color: var(--alarm); }
.es-bn-konto { margin: 12px 0 14px; padding-top: 10px; border-top: 1px solid var(--linie); }
.es-bn-konto h3 { margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.es-bn-konto dl { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 4px 10px; margin-bottom: 10px; }
.es-bn-konto dt { color: var(--tinte-4); }
.es-bn-konto dd { min-width: 0; overflow-wrap: anywhere; color: var(--tinte-2); }

/* ── Schmale Fenster: nur Name, Rolle, Status (und das Menü) ─────────────────── */
@media (max-width: 860px) {
  .es-bn-breit { display: none; }
  /* Feste Spalten für Rolle, Status und Menü; der Name bekommt den Rest und kürzt sich (im Browser geprüft: bei 390 px
     lief die Tabelle sonst 39 px über die Seite). Das Menü der Zeile darf über seine Zelle hinausragen. */
  .es-bn-tab { table-layout: fixed; }
  .es-bn-tab th:nth-child(3), .es-bn-tab td:nth-child(3) { width: 104px; }
  .es-bn-tab th:nth-child(4), .es-bn-tab td:nth-child(4) { width: 92px; }
  .es-bn-tab td { overflow: hidden; text-overflow: ellipsis; }
  .es-bn-tab td.es-bn-mehrzelle { overflow: visible; }
  .es-bn-suche { flex: 1 1 100%; }
  .oo-dialog p.es-bn-feldhinweis { margin-left: 0; }
}

/* Handy: die Rolle etwas schmaler, „Sie“ entfällt (die eigene Zeile bleibt am Kürzel erkennbar), damit der Name Platz hat. */
@media (max-width: 560px) {
  .es-bn-tab th, .es-bn-tab td { padding-left: 6px; padding-right: 6px; }
  .es-bn-tab th:nth-child(3), .es-bn-tab td:nth-child(3) { width: 90px; }
  .es-bn-tab th:nth-child(4), .es-bn-tab td:nth-child(4) { width: 88px; }
  .es-bn-sie { display: none; }
}
/* Sehr schmal: ohne das Kürzel, dann passen übliche Namen ungekürzt. */
@media (max-width: 440px) {
  .es-bn-kuerzel { display: none; }
}
