/* Seite „Sicherheit“ des eigenen Kontos (/sicherheit, Bauplan Konto-Sicherheit K4). Vorsatz ks-.
   Kopf, Karten und Abstände kommen aus oo.einstellungen.css (es-bereich, es-kopf, es-karte): die Seite sieht aus wie ein Bereich
   der Einstellungen, steht aber allein (ohne Bereichsliste), weil sie kein Firmenrecht verlangt. */
.ks { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.ks-karte .es-karte-kopf { align-items: center; }

/* Stand in einer Zeile: Symbol und Satz. Farbe trägt die Bedeutung (an = gut, aus = Warnung), nie Blau. */
.ks-stand { display: flex; align-items: center; gap: 8px; margin: 0; padding: 7px 10px; border-radius: 3px; font-weight: 600; }
.ks-stand > span { flex: 1 1 auto; min-width: 0; }
.ks-stand.ks-an { background: var(--ok-grund); color: var(--ok); }
.ks-stand.ks-aus { background: var(--warn-grund); color: var(--warn); }
.ks-stand.ks-unbekannt { background: var(--alarm-grund); color: var(--alarm); }
.ks-stand.ks-laedt { padding-left: 0; color: var(--tinte-4); font-weight: 400; }
.ks-stand .kn { flex: 0 0 auto; }
.ks-text { max-width: 76ch; margin: 8px 0 0; color: var(--tinte-4); }
.ks-verwalter { color: var(--tinte-1); }

/* Zwei Zeilen „Dieser Browser“ / „Alle Geräte“: Text links, Knopf rechts, Haarlinie dazwischen. */
.ks-zeile { display: flex; align-items: center; gap: 16px; padding: 10px 0; border-top: 1px solid var(--linie); }
.ks-zeile:first-of-type { border-top: 0; padding-top: 0; }
.ks-zeile:last-child { padding-bottom: 0; }
.ks-zeile-text { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.ks-zeile-text span { max-width: 76ch; color: var(--tinte-4); }
.ks-zeile .kn { flex: 0 0 auto; }

/* Aktive Sitzungen und Computer mit dem PC-Programm (Bauplan Geräte und Sitzungen): eine Tabelle aus Rasterzeilen mit Haarlinien,
   Gerät mit Symbol und Unterzeile, rechts die Aktion. Die eigene Sitzung trägt ein grünes Abzeichen, nie Blau. Schmal (Handy) wird jede
   Zeile ein Block mit Beschriftungen (ks-mobil-label). */
.ks-breite { max-width: 980px; }
.ks-tabelle { display: grid; }
.ks-tzeile { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.5fr) minmax(0, 1.25fr) minmax(0, 1fr) 112px;
    gap: 14px; align-items: center; padding: 9px 0; border-top: 1px solid var(--linie); }
.ks-tzeile.ks-tkopf { border-top: 0; padding: 0 0 6px; color: var(--tinte-4); font-size: 12px; font-weight: 600; }
/* Ohne bekannten Ort fehlt die Spalte Standort (Orte kommen erst mit einer Ortsdatenbank der API). */
.ks-ohne-ort .ks-tzeile { grid-template-columns: minmax(0, 2.6fr) minmax(0, 1.3fr) minmax(0, 1fr) 112px; }
.ks-tzeile > span { min-width: 0; overflow-wrap: anywhere; }
.ks-geraet { display: flex; align-items: flex-start; gap: 10px; }
.ks-geraet-symbol { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
    border: 1px solid var(--linie); border-radius: 3px; background: var(--flaeche-2); color: var(--tinte-3); }
.ks-aktuell .ks-geraet-symbol { border-color: transparent; background: var(--ok-grund); color: var(--ok); }
.ks-geraet-text { display: grid; gap: 1px; min-width: 0; }
.ks-geraet-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ks-geraet-name strong { font-weight: 600; color: var(--tinte-1); }
.ks-unter { color: var(--tinte-4); font-size: 12px; }
.ks-leise { color: var(--tinte-4); }
.ks-zeit { color: var(--tinte-2); font-variant-numeric: tabular-nums; }
.ks-taktion { display: flex; justify-content: flex-end; }
.ks-taktion .kn { height: 26px; padding: 0 10px; }
.ks-diese, .ks-aktiv { font-size: 11px; }
.ks-punkt { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
.ks-unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ks-mobil-label { display: none; }
.ks-fuss { margin: 10px 0 0; color: var(--tinte-4); font-size: 12px; }
.ks-fuss a { color: var(--tinte-3); }
.ks-abmelden { margin-top: 14px; padding-top: 4px; border-top: 1px solid var(--linie-stark); }
.ks-abmelden .ks-zeile:first-of-type { padding-top: 10px; }
.ks-computer-leer { margin: 0; }
/* Bestätigte Geräte (Migration 359): dieselbe Tabelle; das Gerät dieser Sitzung trägt die Farbe der eigenen Sitzung (ks-aktuell). */
.ks-bestaetigt-leer { margin: 0; }

/* Karte „E-Mail-Postfächer auf diesem Gerät“ (Postfach-Tresor): Zeilen wie die Anmeldungen, Adresse bricht um. */
.ks-tresor .ks-zeile-text strong, .ks-ki-tresor .ks-zeile-text strong { overflow-wrap: anywhere; }
.ks-tresor-leer { margin-top: 0; }

/* Wege in die Einstellungen der Firma (nur mit dem Recht dazu). */
.ks-wege { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ks-wege li { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.ks-wege a { color: var(--akzent); text-decoration: none; font-weight: 600; }
.ks-wege a:hover { text-decoration: underline; }
.ks-wege span { color: var(--tinte-4); }

/* Bestätigungsmail erneut senden (Anmeldung, Registrierung): die Zeile unter der Meldung. */
.lg-erneut .lg-regel { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-top: 10px; font-size: 13px; }
.lg-erneut-knopf:disabled { opacity: .55; cursor: default; text-decoration: none; }

@media (max-width: 640px) {
    .ks-tzeile.ks-tkopf { display: none; }
    .ks-tzeile { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 12px 0; }
    .ks-ohne-ort .ks-tzeile { grid-template-columns: minmax(0, 1fr); }
    .ks-tzeile > span:not(.ks-geraet):not(.ks-taktion) { padding-left: 40px; display: flex; gap: 8px; font-size: 13px; }
    .ks-mobil-label { display: inline; flex: 0 0 104px; color: var(--tinte-4); }
    .ks-taktion { justify-content: flex-start; padding-left: 40px; margin-top: 4px; }
    .ks-zeile { flex-direction: column; align-items: stretch; gap: 8px; }
    .ks-zeile .kn { align-self: flex-start; }
    .ks-wege li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .ks-karte .es-karte-kopf { flex-direction: column; align-items: stretch; }
    .ks-karte .es-karte-aktionen .kn { align-self: flex-start; }
}
