/* Ortho-Aktiv Portal – interner Bereich */

:root {
  --blue: #0C4DA2;
  --blue-dark: #093c7e;
  --blue-light: #e8f0fb;
  --ink: #152238;
  --ink-soft: #415572;
  --muted: #6b7a90;
  --line: #d9e2ef;
  --bg: #f2f5fa;
  --card: #fff;
  --error: #b3261e;
  --error-bg: #fdeceb;
  --success: #1e7f43;
  --success-bg: #e7f5ec;
  --info-bg: #e8f0fb;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(21,34,56,.08), 0 4px 16px rgba(21,34,56,.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ===== Header ===== */
.p-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 10px 20px;
  background: var(--blue); color: #fff;
}
.p-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 1.05rem; }
.p-brand img { width: 34px; height: 34px; border-radius: 8px; }
.p-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.p-nav a, .p-nav .linklike {
  color: #fff; text-decoration: none; font: inherit;
  background: none; border: 0; cursor: pointer;
  padding: 8px 12px; border-radius: 8px;
}
.p-nav a:hover, .p-nav .linklike:hover { background: rgba(255,255,255,.14); }
.inline { display: inline; }

/* ===== Layout ===== */
.p-main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 24px 16px 48px; }
/* Die Bestellliste hat zehn Spalten. 1080px reichen dafür nicht, deshalb darf
   sie auf breiten Bildschirmen mehr Platz nehmen – Lesetexte (Detailansicht,
   Verwaltung) bleiben bei 1080px, weil lange Zeilen dort schlecht lesbar sind. */
.p-main--wide { max-width: 1560px; }

/* Aufeinanderfolgende Panels direkt unter .p-main brauchen Abstand, sonst
   kleben sie aneinander (Detailansicht: Notizen und Aktionsverlauf). */
.p-main > .panel + .panel,
.p-main > .detail-grid + .panel,
.p-main > .panel + .flash { margin-top: 16px; }
.p-footer { text-align: center; padding: 14px; color: var(--muted); }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { margin: 0; font-size: 1.5rem; color: var(--blue); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.back { color: var(--muted); text-decoration: none; font-size: .9rem; }
.back:hover { color: var(--blue); }

/* ===== Karten / Panels ===== */
.auth-card {
  max-width: 440px; margin: 6vh auto 0;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 30px 28px;
}
.auth-card h1 { margin: 0 0 8px; font-size: 1.3rem; color: var(--blue); }
.lead { color: var(--ink-soft); margin: 0 0 18px; }

.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.panel h2 { margin: 0 0 12px; font-size: 1.02rem; color: var(--blue); }
.panel h2 + .kv { margin-bottom: 20px; }
.panel h2:not(:first-child) { margin-top: 22px; }

/* align-items: start wie bei .admin-grid – sonst wird das kürzere Panel auf
   die Höhe des längeren gestreckt und hat eine große leere Fläche. */
.detail-grid { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
@media (min-width: 900px) { .detail-grid { grid-template-columns: 3fr 2fr; } }

/* ===== Formulare ===== */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 5px; color: var(--ink-soft); }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 9px;
  padding: 10px 12px; min-height: 44px; background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(12,77,162,.15);
}
.code-input { font-size: 1.3rem; letter-spacing: .25em; text-align: center; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; cursor: pointer; font-size: .92rem; }
.check input { width: 20px; height: 20px; min-height: 0; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--blue); }

/* ===== Buttons ===== */
.btn {
  display: inline-block; text-align: center; text-decoration: none;
  font: inherit; font-weight: 600;
  border: 0; border-radius: 10px;
  padding: 11px 18px; min-height: 44px;
  cursor: pointer; transition: filter .15s;
}
.btn:active { filter: brightness(.92); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-secondary { background: var(--blue-light); color: var(--blue); }
.btn-danger { background: var(--error-bg); color: var(--error); }
.btn-block { display: block; width: 100%; }
.btn-sm { padding: 6px 12px; min-height: 34px; font-size: .85rem; }

/* ===== Flash ===== */
.flash { border-radius: 10px; padding: 11px 14px; margin-bottom: 14px; font-size: .93rem; }
.flash-error { background: var(--error-bg); color: var(--error); }
.flash-success { background: var(--success-bg); color: var(--success); }
.flash-info { background: var(--info-bg); color: var(--blue-dark); }
.flash-code { background: var(--success-bg); color: var(--ink); font-size: 1.02rem; border: 1.5px dashed var(--success); }

.tab-hint { margin: -6px 0 14px; }
.tab-hint a { color: var(--blue); }
.advisor-cell {
  color: var(--ink-soft);
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ===== Suche ===== */
.search-form { display: flex; gap: 8px; }
.search-form input { min-width: 260px; }
.tabs .tab-count {
  display: inline-block; min-width: 20px; text-align: center;
  background: var(--blue-light); color: var(--blue);
  border-radius: 999px; padding: 0 6px; margin-left: 4px;
  font-size: .78rem;
}
.tabs a.active .tab-count { background: rgba(255,255,255,.22); color: #fff; }

/* ===== Tabs ===== */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs a {
  text-decoration: none; color: var(--ink-soft);
  padding: 8px 14px; border-radius: 999px;
  background: var(--card); box-shadow: var(--shadow);
  font-size: .9rem; font-weight: 600;
}
.tabs a.active { background: var(--blue); color: #fff; }

/* ===== Tabelle ===== */
.order-table-wrap { overflow-x: auto; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.order-table { width: 100%; border-collapse: collapse; min-width: 1000px; }
.order-table th {
  text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); padding: 10px 12px; border-bottom: 2px solid var(--line);
}
.order-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); }

/* Freitext-Spalten begrenzen, damit ein langer Heimname nicht die ganze
   Tabelle breiter macht und alles andere aus dem Bild schiebt. */
.col-institution { max-width: 230px; }
.col-orderer { max-width: 150px; }
.col-advisor { max-width: 150px; }
.col-handler { max-width: 170px; }
.order-table tbody tr { cursor: pointer; }
.order-table tbody tr:hover { background: var(--blue-light); }
.order-table tbody tr:last-child td { border-bottom: 0; }
.order-table a { color: var(--blue); font-weight: 700; text-decoration: none; }
.mono { font-variant-numeric: tabular-nums; white-space: nowrap; }
.center { text-align: center; }

.badge {
  display: inline-block; border-radius: 999px; padding: 3px 11px;
  font-size: .78rem; font-weight: 700; white-space: nowrap;
}
.badge-neu { background: #fff3e0; color: #b45c00; }
.badge-in_bearbeitung { background: var(--blue-light); color: var(--blue); }
.badge-erledigt { background: var(--success-bg); color: var(--success); }

.empty { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px; text-align: center; color: var(--muted); }

/* ===== Detailansicht ===== */
.status-form { display: flex; gap: 8px; flex-wrap: wrap; }
.kv { width: 100%; border-collapse: collapse; }
.kv th { text-align: left; color: var(--muted); font-weight: 600; padding: 9px 16px 9px 0; vertical-align: top; white-space: nowrap; width: 1%; }
.kv td { padding: 9px 0; vertical-align: top; }
.kv tr + tr th, .kv tr + tr td { border-top: 1px solid var(--line); }
.kv a { color: var(--blue); }
.muted { color: var(--muted); }
/* Lange Hinweistexte in Panels abgesetzt und nicht zu breit – sonst wirkt die
   Detailansicht gedrängt. */
.panel > .muted.small { margin: 14px 0 0; max-width: 62ch; line-height: 1.55; }
.small { font-size: .84rem; }

.file-list { display: flex; flex-wrap: wrap; gap: 12px; }
.dl-row { display: flex; gap: 8px; flex-wrap: wrap; }
.file-item { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.btn-download { text-align: center; }
.file-thumb {
  display: block; width: 180px; border-radius: 10px; overflow: hidden;
  border: 1.5px solid var(--line);
}
.file-thumb img { width: 100%; display: block; }
.file-thumb:hover { border-color: var(--blue); }
.file-pdf {
  display: flex; align-items: center; gap: 8px;
  background: var(--blue-light); color: var(--blue);
  border-radius: 10px; padding: 14px 16px; text-decoration: none; font-weight: 600;
}
.file-thumb, .file-pdf { cursor: pointer; }

/* ===== Aktions-Menü (drei Punkte) pro Bestellung ===== */
/* Panel ist position:fixed, damit es nicht am horizontalen Scrollrahmen der
   Bestellliste (.order-table-wrap) abgeschnitten wird. portal.js setzt die
   Koordinaten; ohne JavaScript klappt es an seiner statischen Position auf. */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

.head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.menu-cell { width: 1%; white-space: nowrap; }

.row-menu { display: inline-block; }
/* Bewusst kein display:flex auf <summary> – das hat in älteren Safari-
   Versionen das Aufklappen verhindert. Zentriert wird über line-height. */
.row-menu > summary {
  list-style: none; cursor: pointer;
  width: 34px; height: 34px; border-radius: 8px;
  text-align: center; line-height: 34px;
  color: var(--ink-soft); font-size: 1.25rem;
  -webkit-user-select: none; user-select: none;
}
.row-menu > summary::-webkit-details-marker { display: none; }
.row-menu > summary::marker { content: ''; }
.row-menu > summary:hover,
.row-menu[open] > summary { background: var(--blue-light); color: var(--blue); }
.row-menu > summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Schnellzugriff „Weiterleiten" in der Bestellansicht: gleiche Mechanik wie
   das Punkte-Menü, aber als normaler Knopf statt als 34px-Quadrat. */
.fw-menu > summary {
  width: auto; height: auto;
  padding: 9px 16px; line-height: 1.2;
  font-size: .95rem; font-weight: 600;
}
.fw-menu[open] > summary { background: var(--blue); color: #fff; }

.row-menu-panel {
  position: fixed; z-index: 40;
  width: 300px; max-width: calc(100vw - 24px);
  background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(21, 34, 56, .22);
  padding: 14px;
  text-align: left; white-space: normal;
  cursor: auto;
}
.menu-title {
  margin: 0; font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; color: var(--muted);
}
.menu-form { display: flex; flex-direction: column; gap: 8px; }
/* „Markieren" und „Markierung entfernen" stehen in zwei getrennten
   Formularen. Ohne Abstand kleben die Knöpfe zu einem Block zusammen. */
.menu-form + .menu-form { margin-top: 8px; }
.menu-form select {
  width: 100%; padding: 9px 10px; font: inherit; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 9px;
}
.menu-form select:focus { border-color: var(--blue); outline: 0; }
.menu-hint { margin: 0; font-size: .78rem; color: var(--muted); }
.menu-empty { margin: 0; font-size: .85rem; color: var(--muted); }

.menu-link {
  display: block; padding: 8px 10px; margin: -4px -4px 0;
  color: var(--blue); text-decoration: none; font-weight: 600; border-radius: 8px;
}
.menu-link:hover { background: var(--blue-light); }
.menu-sep { border: 0; border-top: 1px solid var(--line); margin: 10px 0; }

/* ===== Bearbeiter/in: farbige Markierung =====
   Feste Palette; der Schlüssel (c1 … c8) steht in der Datenbank. Damit
   brauchen wir keine Inline-Styles (strenge CSP). Alle Kombinationen sind
   dunkler Text auf hellem Grund, damit sie auch bei Farbsehschwäche
   unterscheidbar bleiben (Name steht immer dabei). */
.chip {
  display: inline-block; max-width: 190px;
  padding: 3px 10px; border-radius: 999px;
  font-size: .8rem; font-weight: 700; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; vertical-align: middle;
  border: 1px solid transparent;
}
.chip-c1 { background: #dbe8fb; color: #0b3d80; border-color: #b8d0f3; }
.chip-c2 { background: #d9f2e2; color: #14612f; border-color: #b3e2c6; }
.chip-c3 { background: #e8ddfa; color: #4a2585; border-color: #d3c2f2; }
.chip-c4 { background: #fde8d2; color: #8a4708; border-color: #f7d0a8; }
.chip-c5 { background: #d3f0f2; color: #0d5b61; border-color: #ace0e4; }
.chip-c6 { background: #fbdcda; color: #8f221b; border-color: #f4bbb6; }
.chip-c7 { background: #e6ecc9; color: #4d5810; border-color: #d1dba3; }
.chip-c8 { background: #e4e8ee; color: #3a4657; border-color: #ccd4de; }

.chip-none { color: var(--muted); font-size: .85rem; }

.handler-rows { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 16px; }
.handler-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 9px 14px; border-bottom: 1px solid var(--line);
}
.handler-row:last-child { border-bottom: 0; }
.handler-row .btn { margin-left: auto; }
.handler-row.is-inactive .chip { opacity: .5; }

.handler-current { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; }

/* ===== Aktionsverlauf ===== */
.history > summary { cursor: pointer; list-style: none; }
.history > summary::-webkit-details-marker { display: none; }
.history > summary::marker { content: ''; }
.history-summary {
  font-size: 1.1rem; font-weight: 700; color: var(--blue);
  display: flex; align-items: center; gap: 10px;
}
.history-summary::after {
  content: '▾'; margin-left: auto; color: var(--muted); font-size: .9rem;
}
.history[open] > .history-summary::after { content: '▴'; }

.event-list { list-style: none; margin: 14px 0 10px; padding: 0; }
.event-item {
  display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap;
  padding: 9px 0; border-bottom: 1px solid var(--line);
}
.event-item:last-child { border-bottom: 0; }
.event-when { color: var(--muted); font-size: .85rem; min-width: 132px; font-variant-numeric: tabular-nums; }
.event-what { font-weight: 600; }
.event-detail { font-weight: 400; color: var(--ink-soft); }
.event-who { margin-left: auto; color: var(--ink-soft); font-size: .85rem; }

/* ===== Betrachter für Verordnungen (schließbar: ×, Esc, Klick daneben) ===== */
.file-viewer { display: none; }
.file-viewer:not([hidden]) {
  display: flex; flex-direction: column;
  position: fixed; inset: 0; z-index: 60;
  background: rgba(10, 15, 25, .93);
  padding: 12px;
}
body.fv-open { overflow: hidden; }

.fv-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding: 4px 4px 10px;
}
.fv-title {
  color: #fff; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 55vw;
}
.fv-actions { display: flex; align-items: center; gap: 8px; }

.fv-close {
  width: 40px; height: 40px; flex: 0 0 auto;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .18); color: #fff;
  font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.fv-close:hover { background: rgba(255, 255, 255, .3); }
.fv-close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.fv-body {
  flex: 1 1 auto; min-height: 0;
  display: flex; align-items: center; justify-content: center;
}
.fv-body img {
  max-width: 100%; max-height: 100%;
  object-fit: contain; border-radius: 8px; background: #fff;
}
/* PDF-Seiten: untereinander, der Bereich selbst scrollt. Kein <iframe> –
   Android zeigt darin nur eine weisse Flaeche (siehe portal.js). */
.fv-pages {
  width: 100%; max-width: 1000px; height: 100%;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.fv-page { width: 100%; border-radius: 8px; background: #fff; }
.fv-loading { color: #cfd8e6; font-size: .95rem; text-align: center; margin: 24px 0; }
.fv-hint { color: #cfd8e6; font-size: .85rem; text-align: center; margin: 10px 0 2px; }

@media (max-width: 600px) {
  .fv-title { max-width: 100%; order: 2; }
  .fv-actions { order: 1; margin-left: auto; }
}

/* ===== 2FA-Setup ===== */
.setup-steps { padding-left: 20px; color: var(--ink-soft); }
.setup-steps li { margin-bottom: 6px; }
.qr-wrap { text-align: center; margin: 14px 0; }
.qr-wrap img { border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: #fff; }
.manual-secret { margin: 0 0 16px; color: var(--ink-soft); font-size: .9rem; }
.manual-secret code { display: block; margin-top: 6px; background: var(--bg); border-radius: 8px; padding: 10px; font-size: 1.05rem; letter-spacing: .08em; }

.backup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 22px; }
.backup-grid code {
  background: var(--bg); border: 1px dashed var(--line); border-radius: 8px;
  padding: 10px; text-align: center; font-size: 1.02rem; letter-spacing: .06em;
}

/* ===== Admin ===== */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; font-size: .8rem; text-transform: uppercase; color: var(--muted); padding: 9px 10px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.admin-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table .nw { white-space: nowrap; }
/* Lange E-Mail-Adressen (unumbrechbar) dürfen umbrechen, statt die Tabelle
   aufzublähen – Namen brechen weiterhin nur an Wortgrenzen */
.admin-table td:first-child .small { overflow-wrap: anywhere; }
/* Aktions-Buttons umbrechen lassen statt die Tabelle aufzublähen */
.admin-table .inline { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.admin-grid { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
@media (min-width: 1100px) { .admin-grid { grid-template-columns: 1fr 1fr; } }
/* Breiter Inhalt (Log, Tabellen) darf die Spalten nie aufblähen */
.admin-grid > .panel { min-width: 0; }
.log-panel { margin-top: 16px; }
/* Diagnose der Schreibverzeichnisse: lange Serverpfade dürfen umbrechen */
.storage-check th { white-space: normal; }   /* lange Bezeichnung darf umbrechen */
.storage-check td code { word-break: break-all; }
.storage-check .badge { margin-right: 6px; }
.code-reveal {
  background: var(--success-bg); border-radius: 10px; padding: 14px 16px; margin-bottom: 14px;
  font-size: 1.05rem;
}
.code-reveal code { font-size: 1.2rem; font-weight: 800; letter-spacing: .06em; }
.form-row { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.form-row .field { flex: 1; min-width: 160px; margin-bottom: 0; }
.no-shadow { box-shadow: none; }
.log-view {
  background: #1b2537; color: #cfd8e6;
  border-radius: 10px; padding: 12px 14px;
  font-family: Consolas, monospace; font-size: .78rem;
  overflow-x: auto; max-height: 320px; overflow-y: auto;
  white-space: pre-wrap; word-break: break-all;
}
.panel h2:not(:first-child) { margin-top: 22px; }
code { background: #eef2f8; border-radius: 4px; padding: 1px 5px; font-size: .85em; }

/* ===== Interne Notizen (Bestell-Detail) ===== */
.note-list { list-style: none; margin: 0 0 14px; padding: 0; }
.note-item {
  background: var(--bg);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 8px;
}
.note-meta { font-size: .8rem; color: var(--muted); margin-bottom: 2px; }
.note-text { white-space: pre-wrap; word-break: break-word; }
.note-form textarea { width: 100%; resize: vertical; }

/* ===== Statistik (Verwaltung) ===== */
.stats-sum { margin: -4px 0 12px; color: var(--ink-soft); }
.stats-sum strong { color: var(--blue); font-size: 1.25rem; }

.bars { display: flex; flex-direction: column; gap: 7px; }
.bar-row { display: grid; grid-template-columns: 58px 1fr 34px; align-items: center; gap: 10px; }
.bar-row-wide { grid-template-columns: minmax(0, 1fr) 96px 34px; }
.bar-label {
  font-size: .86rem; color: var(--ink-soft);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bar-track { background: var(--bg); border-radius: 999px; height: 14px; overflow: hidden; }
.bar-fill {
  display: block; height: 100%; min-width: 3px;
  background: linear-gradient(90deg, var(--blue), #3a7bd0);
  border-radius: 999px;
}
.bar-value { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; font-size: .9rem; }

/* ===== Aushang-Druck-Box (Verwaltung) ===== */
.aushang-box { display: block; }
.aushang-actions { display: inline-flex; gap: 8px; margin-left: 8px; vertical-align: middle; }
.field textarea { width: 100%; resize: vertical; font: inherit; }

/* ===== Einrichtungs-Liste (Verwaltung): kompakt, scrollbar, filterbar ===== */
[hidden] { display: none !important; }
.inst-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.inst-toolbar input { flex: 1; min-width: 0; }
.inst-list {
  max-height: 460px; overflow-y: auto;
  border: 1px solid var(--line); border-radius: 10px;
}
.inst-row { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.inst-row:last-child { border-bottom: 0; }
.inst-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.inst-head .badge { flex: 0 0 auto; }
.inst-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.inst-empty { padding: 14px; margin: 0; }
.badge-admin { background: #ede4fb; color: #5b3a9b; }
/* Balkenbreiten als Klassen (CSP verbietet Inline-Styles) */
.bar-fill.w0 { width: 0%; }
.bar-fill.w5 { width: 5%; }
.bar-fill.w10 { width: 10%; }
.bar-fill.w15 { width: 15%; }
.bar-fill.w20 { width: 20%; }
.bar-fill.w25 { width: 25%; }
.bar-fill.w30 { width: 30%; }
.bar-fill.w35 { width: 35%; }
.bar-fill.w40 { width: 40%; }
.bar-fill.w45 { width: 45%; }
.bar-fill.w50 { width: 50%; }
.bar-fill.w55 { width: 55%; }
.bar-fill.w60 { width: 60%; }
.bar-fill.w65 { width: 65%; }
.bar-fill.w70 { width: 70%; }
.bar-fill.w75 { width: 75%; }
.bar-fill.w80 { width: 80%; }
.bar-fill.w85 { width: 85%; }
.bar-fill.w90 { width: 90%; }
.bar-fill.w95 { width: 95%; }
.bar-fill.w100 { width: 100%; }
