/**
 * Krone UI Modern — shared patterns (Notizbuch-style)
 * Buttons, toolbars, inputs, modals, icon actions, chips
 */

/* ── Buttons (global polish) ─────────────────────────── */
.theme-svc .btn {
  border-radius: 10px;
  font-weight: 550;
  letter-spacing: 0.01em;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
}
.theme-svc button {
  font-family: inherit;
}
.theme-svc .btn-secondary {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.theme-svc .btn-secondary:hover {
  background: var(--bg-hover);
  border-color: rgba(168,106,123,0.35);
  color: var(--text-primary);
  box-shadow: 0 0 0 1px rgba(168,106,123,0.12);
}
.theme-svc .btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
}
.theme-svc .btn-ghost:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border);
}
/* Bare action buttons (Discord sync, etc.) */
.theme-svc button.icon-inline:not(.btn):not(.tab-btn):not(.wa-filter-chip):not(.kr-nav-hamburger-btn):not(.lager-nav-item):not(.kr-nav-lager-toggle),
.theme-svc .sk-picker-head button:not(.btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
  border: 1px solid rgba(168,106,123,0.35);
  background: rgba(168,106,123,0.08);
  color: var(--pink-bright);
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.18s;
}
.theme-svc button.icon-inline:not(.btn):not(.tab-btn):hover,
.theme-svc .sk-picker-head button:not(.btn):hover {
  background: rgba(168,106,123,0.16);
  border-color: rgba(196,132,154,0.55);
  color: var(--accent-light);
  transform: translateY(-1px);
}
.theme-svc .btn-sm {
  border-radius: 8px;
  padding: 6px 12px;
}
.theme-svc .btn-primary {
  background: linear-gradient(180deg, var(--pink-bright) 0%, var(--pink) 100%);
  color: #fff;
  border: none;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 4px 14px rgba(168,106,123,0.25);
}
.theme-svc .btn-primary:hover {
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.1) inset, 0 6px 20px rgba(168,106,123,0.35);
  transform: translateY(-1px);
}
.theme-svc .btn-gold {
  background: linear-gradient(180deg, var(--accent-light) 0%, var(--gold) 100%);
  color: #1a0a10;
  border: none;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(168,106,123,0.2);
}
.theme-svc .btn-gold:hover {
  color: #1a0a10;
  filter: brightness(1.05);
}
.theme-svc .page-actions button.icon-inline:not(.btn),
.theme-svc .page-header button.icon-inline:not(.btn),
.theme-svc .modal-footer button.icon-inline:not(.btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
  border: 1px solid rgba(168,106,123,0.35);
  background: rgba(168,106,123,0.08);
  color: var(--pink-bright);
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.18s;
}
.theme-svc .page-actions button.icon-inline:not(.btn):hover,
.theme-svc .page-header button.icon-inline:not(.btn):hover,
.theme-svc .modal-footer button.icon-inline:not(.btn):hover {
  background: rgba(168,106,123,0.16);
  border-color: rgba(196,132,154,0.55);
  color: var(--accent-light);
}
.theme-svc .btn-block {
  width: 100%;
  justify-content: center;
}
.theme-svc .btn-pink-outline,
.theme-svc .btn-gold-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
  border: 1px solid rgba(168,106,123,0.4);
  background: rgba(168,106,123,0.06);
  color: var(--gold);
  transition: all 0.18s ease;
}
.theme-svc .btn-gold-outline:hover,
.theme-svc .btn-pink-outline:hover {
  background: rgba(168,106,123,0.14);
  border-color: rgba(168,106,123,0.55);
  box-shadow: 0 0 0 1px rgba(168,106,123,0.1);
  transform: translateY(-1px);
}
.theme-svc .btn-sm.btn-gold-outline,
.theme-svc .btn-sm.btn-pink-outline {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 8px;
}

/* ── Round icon buttons ──────────────────────────────── */
.theme-svc .icon-btn,
.theme-svc .btn-icon-only,
.theme-svc .notiz-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  flex-shrink: 0;
}
.theme-svc .icon-btn .svc-icon,
.theme-svc .btn-icon-only .svc-icon,
.theme-svc .notiz-icon-btn .svc-icon {
  width: 15px;
  height: 15px;
  margin: 0;
}
.theme-svc .icon-btn:hover,
.theme-svc .btn-icon-only:hover,
.theme-svc .notiz-icon-btn:hover {
  color: var(--gold);
  border-color: rgba(168,106,123,0.35);
  background: rgba(168,106,123,0.08);
  transform: translateY(-1px);
}
.theme-svc .icon-btn--danger:hover,
.theme-svc .btn-icon-only.btn-danger:hover,
.theme-svc .notiz-icon-btn--danger:hover {
  color: #f08080;
  border-color: rgba(240,128,128,0.35);
  background: rgba(240,128,128,0.08);
}
.theme-svc .icon-btn--success:hover,
.theme-svc .btn-icon-only.btn-success:hover {
  color: #6ee7a0;
  border-color: rgba(110,231,160,0.35);
  background: rgba(110,231,160,0.08);
}
.theme-svc .icon-btn--gold {
  border-color: rgba(168,106,123,0.3);
  color: var(--gold);
  background: rgba(168,106,123,0.08);
}
.theme-svc table .icon-btn,
.theme-svc table .btn-icon-only {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

/* ── Inputs & textareas ──────────────────────────────── */
.theme-svc .input,
.theme-svc .textarea,
.theme-svc select.input {
  border-radius: 10px;
  padding: 10px 14px;
  background: rgba(0,0,0,0.25);
  border-color: var(--border);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.15);
}
.theme-svc .input:focus,
.theme-svc .textarea:focus,
.theme-svc select.input:focus {
  border-color: rgba(168,106,123,0.55);
  box-shadow: 0 0 0 3px rgba(168,106,123,0.12), inset 0 1px 2px rgba(0,0,0,0.1);
}
.theme-svc .input-sm {
  padding: 7px 11px;
  border-radius: 8px;
}
.theme-svc .form-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.theme-svc .form-hint {
  line-height: 1.45;
}

/* ── Page toolbar (replaces flat filter-bar) ─────────── */
.theme-svc .page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 18px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(168,106,123,0.04), var(--bg-card));
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.theme-svc .page-toolbar-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  flex-wrap: wrap;
  min-width: 200px;
}
.theme-svc .page-search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 200px;
}
.theme-svc .page-search-icon {
  display: flex;
  color: var(--text-muted);
  opacity: 0.75;
  flex-shrink: 0;
}
.theme-svc .page-search-icon .svc-icon { width: 16px; height: 16px; }
.theme-svc .page-search-input { flex: 1; min-width: 140px; }
.theme-svc .page-filter-select {
  width: auto;
  min-width: 130px;
  flex-shrink: 0;
}
.theme-svc .page-toolbar-meta {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
/* Legacy filter-bar inside toolbar */
.theme-svc .page-toolbar.filter-bar {
  margin-bottom: 20px;
}

/* ── Modals ──────────────────────────────────────────── */
.theme-svc .modal-content {
  border-radius: 16px;
  border-color: #333;
  box-shadow: 0 24px 64px rgba(0,0,0,0.55), 0 0 0 1px rgba(168,106,123,0.06);
}
.theme-svc .modal-header {
  padding: 18px 22px;
  background: linear-gradient(180deg, rgba(168,106,123,0.06) 0%, transparent 100%);
}
.theme-svc .modal-header::before {
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--red), transparent);
}
.theme-svc .modal-kicker {
  margin: 0 0 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.theme-svc .modal-header h3 {
  font-size: 1.05rem;
  font-weight: 650;
  margin: 0;
}
.theme-svc .modal-header .text-muted {
  font-size: 12px;
  margin-top: 4px;
}
.theme-svc .modal-close {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(255,255,255,0.03);
}
.theme-svc .modal-close:hover {
  background: rgba(107,26,45,0.15);
  border-color: rgba(107,26,45,0.25);
}
.theme-svc .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px 18px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0,0,0,0.12);
}
.theme-svc .modal-section {
  padding: 16px 22px;
}
.theme-svc .section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

/* ── UI switch (fest-toggle, Discord, Lager…) ────────── */
.theme-svc .ui-switch-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.theme-svc .ui-switch-track {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.theme-svc .ui-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  transition: transform 0.2s, background 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.35);
}
.theme-svc .ui-switch-input:checked + .ui-switch-track {
  background: linear-gradient(165deg, #f5dce4, var(--pink-bright), #a86a7b);
  border-color: rgba(196,132,154,0.75);
  box-shadow:
    0 0 0 2px rgba(168,106,123,0.2),
    0 0 16px rgba(168,106,123,0.5),
    inset 0 1px 0 rgba(255,255,255,0.2);
}
.theme-svc .ui-switch-input:checked + .ui-switch-track .ui-switch-thumb {
  transform: translateX(18px);
  background: #1a0a12;
}
.theme-svc .ui-switch-input--discord:checked + .ui-switch-track {
  background: linear-gradient(165deg, #7b85f5, #5865f2);
  border-color: rgba(88,101,242,0.65);
  box-shadow: 0 0 0 2px rgba(88,101,242,0.15);
}
.theme-svc .ui-switch-input--discord:checked + .ui-switch-track .ui-switch-thumb {
  background: #fff;
}

.theme-svc .fest-toggle,
.theme-svc .ui-toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: linear-gradient(160deg, rgba(168,106,123,0.04), rgba(0,0,0,0.12));
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  user-select: none;
}
.theme-svc .fest-toggle:hover,
.theme-svc .ui-toggle-row:hover {
  border-color: rgba(168,106,123,0.28);
  background: linear-gradient(160deg, rgba(168,106,123,0.08), rgba(0,0,0,0.1));
}
.theme-svc .fest-toggle:has(.ui-switch-input:checked),
.theme-svc .ui-toggle-row:has(.ui-switch-input:checked) {
  border-color: rgba(196,132,154,0.45);
  background: linear-gradient(160deg, rgba(168,106,123,0.14), rgba(0,0,0,0.1));
  box-shadow:
    0 0 0 1px rgba(168,106,123,0.15),
    0 0 20px rgba(168,106,123,0.18);
}
.theme-svc .fest-toggle-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.theme-svc .fest-toggle-info strong { font-size: 13px; color: var(--text-primary); }
.theme-svc .fest-toggle-info span { font-size: 11px; color: var(--text-muted); line-height: 1.4; }

.theme-svc .notiz-discord-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin: 0 22px 12px;
  border-radius: 12px;
  border: 1px solid rgba(88,101,242,0.28);
  background: linear-gradient(160deg, rgba(88,101,242,0.08), rgba(0,0,0,0.1));
  cursor: pointer;
  user-select: none;
}
.theme-svc .notiz-discord-toggle:has(.ui-switch-input:checked) {
  border-color: rgba(88,101,242,0.45);
  box-shadow: 0 0 0 1px rgba(88,101,242,0.12);
}
.theme-svc .notiz-discord-toggle span { font-size: 13px; color: var(--text-secondary); flex: 1; }

.theme-svc .form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(0,0,0,0.12);
  cursor: pointer;
  font-size: 13px;
  transition: border-color 0.15s, background 0.15s;
}
.theme-svc .form-check:hover {
  border-color: rgba(168,106,123,0.25);
  background: rgba(168,106,123,0.04);
}
.theme-svc .form-check:has(input:checked) {
  border-color: rgba(168,106,123,0.35);
  background: rgba(168,106,123,0.08);
}

.theme-svc .u-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(0,0,0,0.15);
  cursor: pointer;
  font-size: 13px;
  font-weight: 550;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.theme-svc .u-check-item:hover {
  border-color: rgba(168,106,123,0.28);
  background: rgba(168,106,123,0.05);
}
.theme-svc .u-check-item:has(input:checked) {
  border-color: rgba(168,106,123,0.4);
  background: rgba(168,106,123,0.1);
  box-shadow: 0 0 0 1px rgba(168,106,123,0.1);
  color: var(--gold);
}

/* ── Cards & empty states ────────────────────────────── */
.theme-svc .card {
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}
.theme-svc .empty-state {
  padding: 3rem 2rem;
  text-align: center;
}
.theme-svc .empty-state .empty-icon {
  color: var(--gold);
  opacity: 0.8;
  margin-bottom: 1rem;
}

/* ── Routen grid polish ──────────────────────────────── */
.theme-svc .routen-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}
.theme-svc .routen-grid {
  gap: 18px;
}
.theme-svc .route-card {
  border-radius: 14px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.theme-svc .route-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.35);
}
.theme-svc .route-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-top: 12px;
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
}
.theme-svc .route-card-actions .icon-btn {
  margin-left: auto;
}
.theme-svc .route-card-actions .icon-btn + .icon-btn {
  margin-left: 0;
}

/* ── Nav tabs (wa-nav / arb-view-tabs) ───────────────── */
.theme-svc .wa-nav-item,
.theme-svc .arb-view-tab {
  border-radius: 10px;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.theme-svc .wa-nav-item.is-active,
.theme-svc .arb-view-tab.active {
  box-shadow: 0 0 0 1px rgba(168,106,123,0.2), 0 4px 12px rgba(0,0,0,0.2);
}

/* ── Panel side forms (WA / Sanktionen) ──────────────── */
.theme-svc .pa-panel {
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.theme-svc .pa-panel-header {
  background: linear-gradient(135deg, rgba(168,106,123,0.05), transparent);
}
.theme-svc .pa-member-row {
  border-radius: 0;
  transition: background 0.15s;
}
.theme-svc .pa-member-row:hover {
  background: rgba(168,106,123,0.04);
}
.theme-svc .dash-chart-card,
.theme-svc .card .card-body.p-0 {
  border-radius: 14px;
  overflow: hidden;
}
.theme-svc .table thead th {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(0,0,0,0.2);
  border-bottom: 1px solid var(--border-subtle);
}
.theme-svc .table tbody tr {
  transition: background 0.12s;
}
.theme-svc .table tbody tr:hover {
  background: rgba(168,106,123,0.03);
}
.theme-svc .pa-goal-form .btn-primary,
.theme-svc .pa-goal-form .btn-secondary,
.theme-svc .pa-goal-form .btn-danger {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}
.theme-svc .pa-search-wrap .input {
  border-radius: 10px;
}

/* ── Status selects in lists ─────────────────────────── */
.theme-svc .wa-status-select,
.theme-svc .sk-status-select {
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  border-width: 1px;
  cursor: pointer;
  min-width: 110px;
  background: var(--bg-elevated);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.12);
}
.theme-svc .wa-status-select:focus,
.theme-svc .sk-status-select:focus {
  box-shadow: 0 0 0 3px rgba(168,106,123,0.12);
}

/* ── Filter chips ────────────────────────────────────── */
.theme-svc .wa-filter-chip {
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.15s ease;
}
.theme-svc .wa-filter-chip.is-active {
  box-shadow: 0 0 0 1px rgba(168,106,123,0.25), 0 2px 8px rgba(168,106,123,0.12);
}

/* ── Tables action column ────────────────────────────── */
.theme-svc .table .action-col {
  white-space: nowrap;
}
.theme-svc .table .action-col .btn,
.theme-svc .table .action-col .icon-btn {
  margin: 0 2px;
}

/* ── Arbeiter stats ──────────────────────────────────── */
.theme-svc .arb-stat-grid .stat-card,
.theme-svc .stat-card {
  border-radius: 12px;
  transition: transform 0.15s ease;
}
.theme-svc .arb-stat-grid .stat-card:hover {
  transform: translateY(-2px);
}
.theme-svc .stat-card-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.theme-svc .stat-card-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ── Global gold checkboxes (no native white boxes) ─── */
.theme-svc input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  display: inline-grid;
  place-content: center;
  width: 20px;
  height: 20px;
  margin: 0;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.4);
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s;
  vertical-align: middle;
}
.theme-svc input[type="checkbox"]::after {
  content: '';
  width: 5px;
  height: 9px;
  border: solid transparent;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0;
  transition: opacity 0.12s;
}
.theme-svc input[type="checkbox"]:checked {
  background: linear-gradient(165deg, #f5dce4 0%, var(--pink-bright) 50%, #a86a7b 100%);
  border-color: rgba(196,132,154,0.95);
  box-shadow:
    0 0 0 2px rgba(168,106,123,0.22),
    0 0 14px rgba(168,106,123,0.45),
    inset 0 1px 0 rgba(255,255,255,0.28);
}
.theme-svc input[type="checkbox"]:checked::after {
  border-color: #1a0a12;
  opacity: 1;
}
.theme-svc input[type="checkbox"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.theme-svc input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(168,106,123,0.22);
}
.theme-svc label:hover input[type="checkbox"]:not(:disabled):not(:checked) {
  border-color: rgba(168,106,123,0.35);
}

/* Hidden / special inputs — no box chrome */
.theme-svc .toggle-switch input[type="checkbox"],
.theme-svc .ui-switch-input,
.theme-svc .notiz-switch-input,
.theme-svc .notiz-rank-cb,
.theme-svc .notiz-sonder-cb,
.theme-svc .kr-cb input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 0;
  height: 0;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  position: absolute;
  opacity: 0;
  pointer-events: auto;
}
.theme-svc .kr-cb input[type="checkbox"],
.theme-svc .arb-akt-cb {
  inset: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  opacity: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}
.theme-svc .toggle-switch input[type="checkbox"]::after,
.theme-svc .ui-switch-input::after,
.theme-svc .notiz-switch-input::after,
.theme-svc .notiz-rank-cb::after,
.theme-svc .notiz-sonder-cb::after,
.theme-svc .kr-cb input[type="checkbox"]::after,
.theme-svc .arb-akt-cb::after {
  display: none;
}

/* ── Custom checkbox wrapper (picker lists) ──────────── */
.theme-svc .kr-cb {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}
.theme-svc .kr-cb input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}
.theme-svc .kr-cb-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(196,132,154,0.35);
  background: rgba(0,0,0,0.45);
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.12s;
  pointer-events: none;
}
.theme-svc .kr-cb input:checked + .kr-cb-box {
  background: linear-gradient(165deg, #f5dce4 0%, var(--pink-bright) 50%, #a86a7b 100%);
  border-color: rgba(240,208,218,0.9);
  box-shadow:
    0 0 0 2px rgba(168,106,123,0.25),
    0 0 14px rgba(168,106,123,0.55),
    inset 0 1px 0 rgba(255,255,255,0.3);
  transform: scale(1.02);
}
.theme-svc .kr-cb input:checked + .kr-cb-box::after {
  content: '';
  width: 5px;
  height: 9px;
  border: solid #1a0a12;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) translateY(-1px);
}
.theme-svc .kr-cb input:disabled + .kr-cb-box {
  opacity: 0.55;
}
.theme-svc .kr-cb input:focus-visible + .kr-cb-box {
  box-shadow: 0 0 0 3px rgba(168,106,123,0.22);
}
.theme-svc label:hover .kr-cb-box {
  border-color: rgba(168,106,123,0.35);
}
.theme-svc .kr-cb--sm { width: 18px; height: 18px; }
.theme-svc .kr-cb--sm .kr-cb-box {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}
.theme-svc .kr-cb--sm input:checked + .kr-cb-box::after {
  width: 4px;
  height: 7px;
  border-width: 0 2px 2px 0;
}

/* ── Sanktionen meta ─────────────────────────────────── */
.theme-svc .sk-sanktion-meta {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}
.theme-svc .sk-read-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ── Page header & badges ────────────────────────────── */
.theme-svc .page-header {
  margin-bottom: 22px;
}
.theme-svc .page-title {
  letter-spacing: -0.02em;
}
.theme-svc .badge-secondary {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(168,106,123,0.08);
  border: 1px solid rgba(168,106,123,0.25);
  color: var(--pink-bright);
  box-shadow: 0 0 12px rgba(168,106,123,0.08);
}

/* ── Legacy filter-bar (auto-modernize) ──────────────── */
.theme-svc .filter-bar:not(.page-toolbar) {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 18px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(168,106,123,0.04), var(--bg-card));
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.theme-svc .filter-bar:not(.page-toolbar) .filter-search {
  flex: 1;
  min-width: 160px;
  max-width: none;
}

/* ── Route modal icon ────────────────────────────────── */
.theme-svc .route-card-icon {
  border-radius: 12px;
  border-color: rgba(168,106,123,0.3);
  background: rgba(168,106,123,0.06);
  box-shadow: 0 0 16px rgba(168,106,123,0.1);
}

/* ── Dashboard stats & charts ────────────────────────── */
.theme-svc .stats-grid,
.theme-svc .stats-grid-lg,
.theme-svc .dash-stats,
.theme-svc .sg-stats-grid {
  width: 100%;
}
.theme-svc .stats-grid-lg,
.theme-svc .dash-stats.stats-grid-lg {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 12px;
}
.theme-svc .sg-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 900px) {
  .theme-svc .dash-stats.stats-grid-lg,
  .theme-svc .sg-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .theme-svc .dash-stats.stats-grid-lg,
  .theme-svc .sg-stats-grid {
    grid-template-columns: 1fr;
  }
}
.theme-svc .dash-stats .stat-card {
  background: linear-gradient(135deg, rgba(168,106,123,0.05), var(--bg-card));
  border-color: rgba(168,106,123,0.12);
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  opacity: 0;
  animation: dashFadeUp 0.5s ease forwards;
}
.theme-svc .dash-stats .stat-card:hover {
  border-color: rgba(168,106,123,0.35);
  box-shadow: 0 8px 28px rgba(0,0,0,0.28), 0 0 18px rgba(168,106,123,0.1);
  transform: translateY(-2px);
}
.theme-svc .dash-stats .stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink-bright);
  filter: drop-shadow(0 0 8px rgba(168,106,123,0.35));
}
.theme-svc .dash-stats .stat-icon .svc-icon {
  width: 28px;
  height: 28px;
}
.theme-svc .dash-stats .stat-label {
  color: var(--pink);
  font-weight: 600;
}
.theme-svc .dash-stats .stat-value {
  color: var(--text-primary);
}
.theme-svc .stat-fin-normal {
  border-color: rgba(34, 197, 94, 0.25) !important;
}
.theme-svc .stat-fin-normal .stat-value,
.theme-svc .stat-fin-normal .stat-icon {
  color: #22c55e;
  filter: drop-shadow(0 0 8px rgba(34,197,94,0.3));
}
.theme-svc .stat-fin-schwarz {
  border-color: rgba(168, 85, 247, 0.25) !important;
}
.theme-svc .stat-fin-schwarz .stat-value,
.theme-svc .stat-fin-schwarz .stat-icon {
  color: #a855f7;
  filter: drop-shadow(0 0 8px rgba(168,85,247,0.3));
}

.theme-svc .dash-charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.theme-svc .dash-charts-single {
  grid-template-columns: 1fr;
}
@media (max-width: 900px) {
  .theme-svc .dash-charts-row {
    grid-template-columns: 1fr;
  }
}
.theme-svc .dash-chart-card .card-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.theme-svc .dash-chart-wrap {
  position: relative;
  height: 240px;
}
.theme-svc .dash-chart-wrap canvas {
  height: 240px !important;
}
.theme-svc .chart-empty {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@keyframes dashFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes dashFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.theme-svc .dash-stats .stat-card:nth-child(1) { animation-delay: 0.05s; }
.theme-svc .dash-stats .stat-card:nth-child(2) { animation-delay: 0.12s; }
.theme-svc .dash-stats .stat-card:nth-child(3) { animation-delay: 0.19s; }
.theme-svc .dash-stats .stat-card:nth-child(4) { animation-delay: 0.26s; }
.theme-svc .dash-stats .stat-card:nth-child(5) { animation-delay: 0.33s; }
.theme-svc .dash-stats .stat-card:nth-child(6) { animation-delay: 0.4s; }
.theme-svc .dash-charts-row .dash-chart-card {
  opacity: 0;
  animation: dashFadeIn 0.6s ease forwards;
}
.theme-svc .dash-charts-row .dash-chart-card:nth-child(1) { animation-delay: 0.5s; }
.theme-svc .dash-charts-row .dash-chart-card:nth-child(2) { animation-delay: 0.65s; }

/* ── Dashboard tabs ──────────────────────────────────── */
.theme-svc .dashboard-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}
.theme-svc .dashboard-tabs .tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 550;
  transition: all 0.18s ease;
}
.theme-svc .dashboard-tabs .tab-btn .svc-icon {
  width: 15px;
  height: 15px;
  opacity: 0.85;
}
.theme-svc .dashboard-tabs .tab-btn.active {
  background: rgba(168,106,123,0.1);
  color: var(--pink-bright);
  border-color: rgba(168,106,123,0.45);
  box-shadow: 0 0 0 1px rgba(168,106,123,0.15), 0 4px 14px rgba(168,106,123,0.12);
}
.theme-svc .dashboard-tabs .tab-btn:hover:not(.active) {
  color: var(--text-secondary);
  border-color: rgba(168,106,123,0.25);
}

/* ── Schutzgeld stat cards ───────────────────────────── */
.theme-svc .sg-stats-grid .stat-card {
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.theme-svc .sg-chart-card {
  border-radius: 14px;
  overflow: hidden;
}

@media (max-width: 640px) {
  .theme-svc .page-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .theme-svc .page-toolbar-filters,
  .theme-svc .page-search {
    flex-direction: column;
    align-items: stretch;
  }
  .theme-svc .page-filter-select {
    width: 100%;
  }
}
