/* pap13.com Admin — Design-System (Cache-Busting: ?v=N in den Links bumpen) */

:root {
  /* Farben */
  --bg: #0a0b0f;
  --surface: #13151c;
  --surface-2: #1a1d27;
  --border: #2a2d3a;
  --border-strong: #374151;
  --text: #e4e6ed;
  --text-bright: #fff;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --accent: #3b82f6;
  --accent-strong: #2563eb;
  --accent-soft: #60a5fa;
  --ok: #34d399;       --ok-bg: #064e3b;
  --warn: #fbbf24;     --warn-bg: #451a03;   --warn-border: #92400e;
  --danger: #fca5a5;   --danger-bg: #450a0a; --danger-border: #7f1d1d;
  --purple: #c084fc;

  /* Abstände (4er-Raster) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;

  /* Radien */
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-full: 999px;

  /* Typo */
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  --shadow-modal: 0 20px 60px rgba(0,0,0,.5);
  --sidebar-w: 222px;
  --bottomnav-h: 58px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font); background: var(--bg); color: var(--text);
  min-height: 100vh; font-size: 14px; line-height: 1.45;
}
a { color: var(--accent-soft); }
code { font-family: var(--mono); background: var(--surface-2); padding: 2px 6px; border-radius: 4px; font-size: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ===== Layout: Sidebar + Content ===== */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w);
  background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: var(--s4) var(--s2);
  z-index: 100; gap: 2px;
}
.sidebar-brand {
  display: flex; align-items: center; gap: var(--s2);
  font-size: 15px; font-weight: 700; color: var(--text-bright);
  padding: var(--s2) var(--s3) var(--s4);
}
.sidebar-brand .badge { margin-left: auto; }
.nav-item {
  display: flex; align-items: center; gap: var(--s3);
  padding: 9px var(--s3); border-radius: var(--r-sm);
  color: var(--text-muted); text-decoration: none; font-size: 14px;
  transition: background .15s, color .15s;
}
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item[aria-current="page"] {
  background: var(--surface-2); color: var(--text-bright);
  box-shadow: inset 2px 0 0 var(--accent);
}
.nav-ico { font-size: 16px; width: 22px; text-align: center; flex-shrink: 0; }
.sidebar-foot {
  margin-top: auto; border-top: 1px solid var(--border);
  padding-top: var(--s3); display: flex; flex-direction: column; gap: var(--s2);
}
.user-chip { display: flex; align-items: center; gap: var(--s2); padding: 0 var(--s2); }
.user-chip .avatar {
  width: 28px; height: 28px; border-radius: 50%; background: var(--accent);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.user-chip .uname { font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.version-link { font-size: 11px; color: var(--text-dim); text-decoration: none; padding: 0 var(--s2); }
.version-link:hover { color: var(--accent-soft); }

.content { margin-left: var(--sidebar-w); padding: var(--s5); max-width: 1480px; }
main > section[hidden] { display: none; }

.page-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); flex-wrap: wrap; }
.page-head h2 { font-size: 19px; color: var(--text-bright); }
.page-head .sub { font-size: 12px; color: var(--text-dim); }

/* ===== Karten ===== */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: var(--s4); margin-bottom: var(--s4);
}
.card-title { font-size: 14px; color: var(--text-muted); font-weight: 600; margin-bottom: var(--s3); display: flex; align-items: center; gap: var(--s2); }
.card-title .right { margin-left: auto; }
.inset { background: var(--bg); border-radius: var(--r-sm); padding: var(--s3); }

/* Stat-Karten */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--s4); margin-bottom: var(--s4); }
a.stat-card { text-decoration: none; display: block; transition: border-color .15s; }
a.stat-card:hover { border-color: var(--accent); }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s4) var(--s4); }
.stat-card .label { font-size: 12px; color: var(--text-dim); margin-bottom: 2px; }
.stat-card .value { font-size: 26px; font-weight: 700; color: var(--text-bright); }
.stat-card .sub { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.stat-card.ufw { border-left: 3px solid #ef4444; }
.stat-card.auth { border-left: 3px solid #f59e0b; }
.stat-card.f2b { border-left: 3px solid #a855f7; }
.stat-card.web { border-left: 3px solid #3b82f6; }

/* ===== Buttons ===== */
.btn {
  padding: 7px 16px; border: 1px solid transparent; border-radius: var(--r-sm);
  font-size: 13px; cursor: pointer; font-weight: 500; font-family: var(--font);
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover:not(:disabled) { background: var(--accent-strong); }
.btn--secondary { background: #1f2937; color: var(--text-muted); }
.btn--secondary:hover:not(:disabled) { background: var(--border-strong); color: var(--text); }
.btn--danger { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-border); }
.btn--danger:hover:not(:disabled) { background: #5f1212; }
.btn--ghost { background: transparent; color: var(--text-muted); border-color: var(--border-strong); }
.btn--ghost:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-soft); }
.btn--icon { padding: 6px 9px; font-size: 14px; line-height: 1; }
.btn--sm { padding: 4px 10px; font-size: 12px; }

/* ===== Badges (immer Icon + Text) ===== */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; padding: 3px 10px; border-radius: var(--r-full); font-weight: 600;
  white-space: nowrap;
}
.badge--ok { background: var(--ok-bg); color: var(--ok); }
.badge--warn { background: var(--warn-bg); color: #fed7aa; }
.badge--danger { background: var(--danger-bg); color: var(--danger); }
.badge--neutral { background: #1f2937; color: var(--text-muted); }
.badge--info { background: #1e3a5f; color: var(--accent-soft); }

/* Typ-/Aktions-Badges in Tabellen */
.type-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.type-ufw { background: #1c1017; color: #f87171; }
.type-auth { background: #1c1710; color: #fbbf24; }
.type-fail2ban { background: #1a1025; color: #c084fc; }
.type-traefik { background: #0f1a2e; color: #60a5fa; }
.action-badge { display: inline-block; padding: 2px 6px; border-radius: 4px; font-size: 11px; }
.action-danger { background: #450a0a; color: #fca5a5; }
.action-success { background: #052e16; color: #86efac; }
.action-warning { background: #451a03; color: #fed7aa; }
.action-neutral { background: #1f2937; color: #9ca3af; }
.ip-id {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 600; background: #1e293b;
  color: var(--accent-soft); cursor: pointer; font-family: var(--mono);
}
.ip-id:hover { background: var(--accent-strong); color: #fff; }

/* ===== Formulare ===== */
.filter-group { display: flex; flex-direction: column; gap: 4px; }
.filter-group label { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .5px; }
input[type="text"], input[type="password"], input[type="number"], input[type="datetime-local"], select {
  padding: 8px 10px; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-sm); color: var(--text); font-size: 13px; outline: none;
  font-family: var(--font); transition: border-color .15s;
}
input:focus, select:focus { border-color: var(--accent); }
.checkbox-group { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0; }
.checkbox-group label {
  display: flex; align-items: center; gap: 4px; padding: 4px 10px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm);
  cursor: pointer; font-size: 13px; text-transform: none; letter-spacing: normal; color: var(--text);
}
.checkbox-group label:hover { border-color: var(--accent); }
.checkbox-group input[type="checkbox"] { accent-color: var(--accent); }
.checkbox-group label.checked { border-color: var(--accent); background: #1e293b; }

/* Toggle */
.toggle { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle .slider { position: absolute; cursor: pointer; inset: 0; background: var(--border-strong); border-radius: 24px; transition: .3s; }
.toggle .slider:before { content: ""; position: absolute; height: 18px; width: 18px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: .3s; }
.toggle input:checked + .slider { background: #22c55e; }
.toggle input:checked + .slider:before { transform: translateX(20px); }
.toggle input:focus-visible + .slider { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Segmented Control */
.segmented { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 3px; gap: 2px; }
.segmented button {
  padding: 6px 16px; border: none; border-radius: 4px; background: transparent;
  color: var(--text-muted); font-size: 13px; cursor: pointer; font-family: var(--font); font-weight: 500;
}
.segmented button.active { background: var(--accent); color: #fff; }

/* Filter-Chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--s3); }
.chips:empty { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #1e293b; border: 1px solid var(--accent); border-radius: var(--r-full);
  padding: 3px 6px 3px 12px; font-size: 12px; color: var(--accent-soft);
}
.chip-x { background: none; border: none; color: var(--accent-soft); cursor: pointer; font-size: 14px; line-height: 1; padding: 2px 6px; border-radius: 50%; }
.chip-x:hover { background: var(--accent-strong); color: #fff; }

/* IP-Pills (Top-IPs) */
.ip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ip-item {
  display: flex; align-items: center; gap: 6px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 5px 10px; font-size: 13px; cursor: pointer; font-family: var(--mono);
}
.ip-item:hover { border-color: var(--accent); }
.ip-count { background: var(--border-strong); padding: 1px 6px; border-radius: 4px; font-size: 11px; color: var(--text-muted); }

/* ===== Tabellen ===== */
.table-container { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.table-header { display: flex; justify-content: space-between; align-items: center; padding: var(--s3) var(--s4); border-bottom: 1px solid var(--border); gap: var(--s2); flex-wrap: wrap; }
.table-header h3 { font-size: 14px; color: var(--text-muted); }
.table-info { font-size: 12px; color: var(--text-dim); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  text-align: left; padding: 10px 12px; background: var(--surface-2);
  color: var(--text-muted); font-weight: 600; font-size: 11px;
  text-transform: uppercase; letter-spacing: .5px; white-space: nowrap;
}
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--text-bright); }
th .sort-arrow { margin-left: 4px; font-size: 10px; }
td { padding: 8px 12px; border-bottom: 1px solid var(--surface-2); max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
tr.clickable:hover { background: var(--surface-2); cursor: pointer; }
tr.new-row { animation: highlight 2s ease-out; }
@keyframes highlight { from { background: rgba(59,130,246,.15); } to { background: transparent; } }

.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; padding: var(--s4); border-top: 1px solid var(--border); }
.pagination button { padding: 6px 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); color: var(--text); cursor: pointer; font-size: 13px; }
.pagination button:hover:not(:disabled) { border-color: var(--accent); }
.pagination button:disabled { opacity: .3; cursor: not-allowed; }
.pagination span { font-size: 13px; color: var(--text-dim); }

/* ===== Modals ===== */
.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.7);
  z-index: 200; align-items: center; justify-content: center; padding: var(--s4);
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: var(--s5); max-width: 900px; width: 100%; max-height: 85vh; overflow-y: auto;
  box-shadow: var(--shadow-modal);
}
.modal h3 { margin-bottom: var(--s4); color: var(--text-bright); font-size: 16px; }
.modal-grid { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 13px; margin-bottom: var(--s4); }
.modal-grid dt { color: var(--text-dim); font-weight: 600; }
.modal-grid dd { color: var(--text); font-family: var(--mono); word-break: break-all; }
.modal pre { background: var(--bg); padding: var(--s4); border-radius: var(--r-sm); overflow-x: auto; font-size: 12px; line-height: 1.6; white-space: pre-wrap; word-break: break-all; color: var(--text-muted); }
.modal-actions { display: flex; gap: var(--s2); margin-top: var(--s4); flex-wrap: wrap; }

/* ===== Toasts ===== */
#toasts { position: fixed; bottom: var(--s4); right: var(--s4); z-index: 400; display: flex; flex-direction: column; gap: var(--s2); max-width: min(380px, calc(100vw - 32px)); }
.toast {
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: var(--r-sm); padding: 10px 14px; font-size: 13px; color: var(--text);
  box-shadow: 0 8px 24px rgba(0,0,0,.4); animation: toast-in .25s ease-out;
}
.toast--ok { border-left-color: #22c55e; }
.toast--err { border-left-color: #ef4444; }
.toast.out { opacity: 0; transform: translateY(6px); transition: all .3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ===== Skeletons ===== */
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, #232734 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--r-sm); }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.skeleton-row { height: 36px; margin: 6px var(--s3); }
.skeleton-card { height: 160px; }

/* ===== Empty State ===== */
.empty { color: var(--text-dim); font-size: 13px; text-align: center; padding: var(--s5); }
.empty .ico { font-size: 26px; display: block; margin-bottom: var(--s2); }

/* Hinweis-Boxen */
.note { font-size: 12px; color: var(--text-dim); background: var(--bg); border-radius: var(--r-sm); padding: var(--s3); }
.note--warn { background: var(--warn-bg); border: 1px solid var(--warn-border); color: #fed7aa; }

/* Duration-Picker */
.dur-picker { display: flex; flex-direction: column; gap: 4px; }
.dur-presets { display: flex; gap: 3px; flex-wrap: wrap; }
.dur-presets button { padding: 2px 7px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px; color: var(--text-muted); cursor: pointer; font-size: 11px; }
.dur-presets button:hover { border-color: var(--accent); color: var(--text); }
.dur-presets button.active { border-color: var(--accent); background: #1e293b; color: var(--accent-soft); }
.dur-fields { display: flex; gap: 2px; align-items: center; }
.dur-fields input { width: 44px; padding: 3px 4px; text-align: center; }
.dur-fields span { font-size: 10px; color: var(--text-dim); min-width: 16px; }

@keyframes pulse-red { 0%, 100% { opacity: 1; } 50% { opacity: .6; } }

/* ===== Login-Seite ===== */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: var(--s4); }
.auth-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 40px; width: 100%; max-width: 420px; box-shadow: var(--shadow-modal);
}
.auth-card h1 { font-size: 20px; color: var(--text-bright); margin-bottom: 4px; text-align: center; }
.auth-card .subtitle { font-size: 13px; color: var(--text-dim); text-align: center; margin-bottom: var(--s5); }
.auth-card label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.auth-card input { width: 100%; margin-bottom: var(--s4); font-size: 14px; padding: 10px 14px; }
.auth-card .btn { width: 100%; padding: 11px; font-size: 14px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: var(--s4) 0; color: var(--text-dim); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-msg { font-size: 13px; border-radius: var(--r-sm); padding: 10px 14px; margin-bottom: var(--s4); display: none; }
.auth-msg.show { display: block; }
.auth-msg--err { background: var(--danger-bg); border: 1px solid var(--danger-border); color: var(--danger); }
.auth-msg--ok { background: var(--ok-bg); border: 1px solid #065f46; color: var(--ok); }
.auth-link { font-size: 12px; color: var(--text-dim); text-align: center; margin-top: var(--s4); }
.auth-link a { color: var(--accent-soft); text-decoration: none; cursor: pointer; }
.code-input { font-size: 26px !important; letter-spacing: 10px; text-align: center; font-family: var(--mono); }
.qr-box { background: #fff; border-radius: var(--r-sm); padding: var(--s3); display: flex; justify-content: center; margin-bottom: var(--s4); }
.qr-box img { width: 180px; height: 180px; }

/* Top-Bar für Unterseiten (version/blocklogs) */
.topbar {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: var(--s3) var(--s5); display: flex; align-items: center; gap: var(--s3);
  position: sticky; top: 0; z-index: 100;
}
.topbar h1 { font-size: 16px; color: var(--text-bright); }
.topbar a.back { font-size: 13px; color: var(--text-muted); text-decoration: none; }
.topbar a.back:hover { color: var(--accent-soft); }

/* ===== v3: Benutzer-Detail, Seiten-Matrix, Hinweis-Karten, Profil ===== */
.nav-badge {
  background: var(--warn); color: #1c1917; font-size: 10px; font-weight: 700;
  border-radius: var(--r-full); padding: 1px 6px; min-width: 16px; text-align: center;
}
.kv { display: flex; flex-direction: column; }
.kv-row { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.kv-row:last-child { border-bottom: 0; }
.kv-row .k { color: var(--text-dim); flex-shrink: 0; }
.kv-row .v { color: var(--text); text-align: right; word-break: break-all; }

.detail-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin-bottom: var(--s4); }
.detail-head .avatar-lg {
  width: 44px; height: 44px; border-radius: var(--r-full); background: var(--accent-soft); color: #0f172a;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px;
}
.detail-head h2 { font-size: 19px; color: var(--text-bright); margin: 0; }
.detail-head .meta { width: 100%; font-size: 12px; color: var(--text-dim); }
.detail-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s4); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); align-items: start; }
.detail-grid .card { margin-bottom: 0; }

.site-row {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px;
}
.site-row:last-child { border-bottom: 0; }
.site-row a.host { color: var(--text); text-decoration: none; font-family: var(--mono); font-size: 13px; }
.site-row a.host:hover { color: var(--accent-soft); }

details.access-details { border-top: 1px solid var(--border); margin-top: var(--s3); padding-top: var(--s2); }
details.access-details summary { cursor: pointer; font-size: 12px; color: var(--text-muted); user-select: none; padding: 4px 0; }
details.access-details summary:hover { color: var(--text); }
details.access-details .access-list { padding-top: var(--s2); }

.stat-card.attn-warn { border-left: 3px solid var(--warn); }
.stat-card.attn-danger { border-left: 3px solid var(--danger); animation: pulse-red 2s infinite; }
.stat-card.attn-info { border-left: 3px solid var(--accent); }

/* Profil-SPA: schmale Spalte ohne Sidebar */
.narrow-page { max-width: 720px; margin: 0 auto; padding: var(--s5) var(--s4) 60px; }
.narrow-page .card { margin-bottom: var(--s4); }

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .sidebar {
    inset: auto 0 0 0; width: auto; height: var(--bottomnav-h);
    flex-direction: row; border-right: 0; border-top: 1px solid var(--border);
    padding: 0 0 env(safe-area-inset-bottom); justify-content: space-around; gap: 0;
  }
  .sidebar-brand, .sidebar-foot { display: none; }
  .nav-item { flex-direction: column; gap: 2px; font-size: 10px; flex: 1; justify-content: center; border-radius: 0; padding: 6px 2px; }
  .nav-item[aria-current="page"] { box-shadow: inset 0 2px 0 var(--accent); background: var(--surface-2); }
  .nav-ico { font-size: 18px; width: auto; }
  .content { margin-left: 0; padding: var(--s4); padding-bottom: calc(var(--bottomnav-h) + var(--s5) + env(safe-area-inset-bottom)); }
  #toasts { bottom: calc(var(--bottomnav-h) + var(--s3) + env(safe-area-inset-bottom)); }
  .stats { grid-template-columns: 1fr 1fr; gap: var(--s3); }
  .stat-card .value { font-size: 21px; }
  .modal { padding: var(--s4); max-height: 88vh; }

  /* Card-Collapse-Tabellen */
  table.collapse thead { display: none; }
  table.collapse tr { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); margin: var(--s3); padding: var(--s2) var(--s3); }
  table.collapse td { display: flex; justify-content: space-between; gap: var(--s3); padding: 5px 0; border: 0; max-width: none; white-space: normal; text-align: right; }
  table.collapse td::before { content: attr(data-label); color: var(--text-dim); font-size: 12px; flex-shrink: 0; text-align: left; }
  table.collapse td:not([data-label])::before { content: none; }
  table.collapse td.low-prio { display: none; }

  /* Filter einklappbar */
  .filters-body.collapsed { display: none; }

  /* v3 */
  .detail-grid { grid-template-columns: 1fr; }
  .nav-item { position: relative; }
  .nav-item .nav-badge { position: absolute; top: 4px; right: calc(50% - 18px); padding: 0; min-width: 8px; height: 8px; font-size: 0; }
}
@media (min-width: 769px) {
  #filterToggleBtn { display: none; }
  .filters-body { display: block !important; }
}
