/* Nebenkosten Perioden-Übersicht / Reporting (read-only, hk-preview Daten) */
body[data-accounting-view="nk-uebersicht"] .nk-ov-hero {
  margin-bottom: 1rem;
}
body[data-accounting-view="nk-uebersicht"] .nk-ov-hero h1 {
  margin: 0 0 0.35rem;
  font-size: 1.65rem;
  color: var(--on-bg);
}
body[data-accounting-view="nk-uebersicht"] .nk-ov-hero p {
  margin: 0;
  color: var(--on-bg-muted);
  max-width: 52rem;
}

body[data-accounting-view="nk-uebersicht"] .nk-ov-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  margin-bottom: 0.75rem;
}
body[data-accounting-view="nk-uebersicht"] .nk-ov-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0.5rem 0 1rem;
}

/* Panels/Table: optisch wie der Assistent (warm, weich, klar abgesetzt) */
body[data-accounting-view="nk-uebersicht"] .acc-panel.nk-ov-panel {
  border-radius: 16px;
  border-color: rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.62) 100%);
  box-shadow: 0 1px 1px rgba(16, 24, 40, 0.03), 0 12px 34px rgba(16, 24, 40, 0.06);
  backdrop-filter: blur(10px);
}

body[data-accounting-view="nk-uebersicht"] .acc-panel.nk-ov-panel .acc-panel-head {
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

body[data-accounting-view="nk-uebersicht"] .nk-ov-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--separator-subtle);
  background: var(--bg-1);
}
body[data-accounting-view="nk-uebersicht"] .nk-ov-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
body[data-accounting-view="nk-uebersicht"] .nk-ov-table th,
body[data-accounting-view="nk-uebersicht"] .nk-ov-table td {
  padding: 0.45rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid var(--separator-subtle);
  vertical-align: middle;
}
body[data-accounting-view="nk-uebersicht"] .nk-ov-table th {
  font-weight: 650;
  color: var(--on-bg-muted);
  background: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}
body[data-accounting-view="nk-uebersicht"] .nk-ov-table tbody tr:hover {
  background: rgba(37, 99, 235, 0.04);
}
body[data-accounting-view="nk-uebersicht"] .nk-ov-table tbody tr.nk-ov-row--selected {
  background: #eff6ff;
}
body[data-accounting-view="nk-uebersicht"] .nk-ov-table .text-right {
  text-align: right;
}

body[data-accounting-view="nk-uebersicht"] .nk-ov-badge {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
body[data-accounting-view="nk-uebersicht"] .nk-ov-badge--bearbeitung {
  background: #fef3c7;
  color: #92400e;
}
body[data-accounting-view="nk-uebersicht"] .nk-ov-badge--berechnet {
  background: #dbeafe;
  color: #1e40af;
}
body[data-accounting-view="nk-uebersicht"] .nk-ov-badge--abgeschlossen {
  background: #d1fae5;
  color: #065f46;
}
body[data-accounting-view="nk-uebersicht"] .nk-ov-badge--fehler {
  background: #fee2e2;
  color: #991b1b;
}

body[data-accounting-view="nk-uebersicht"] .nk-saldo-nachzahl {
  color: #b91c1c;
  font-weight: 650;
}
body[data-accounting-view="nk-uebersicht"] .nk-saldo-guthaben {
  color: #047857;
  font-weight: 650;
}
body[data-accounting-view="nk-uebersicht"] .nk-saldo-null {
  color: var(--on-bg-muted);
}

body[data-accounting-view="nk-uebersicht"] .nk-ov-muted {
  color: var(--on-bg-muted);
  font-size: 0.82rem;
}

body[data-accounting-view="nk-uebersicht"] .nk-ov-periodpick {
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
}
body[data-accounting-view="nk-uebersicht"] .nk-ov-periodpick:hover {
  background: rgba(37, 99, 235, 0.08);
}

body[data-accounting-view="nk-uebersicht"] .nk-ov-panel {
  margin-bottom: 1.25rem;
}

/* Gleiche Button-Tönung wie Nebenkosten-Assistent (Wizard-Styles gelten nur für hk-* Views) */
body[data-accounting-view="nk-uebersicht"] .acc-btn.nk-btn-primary {
  background: var(--gold, #ca8a04);
  border-color: var(--gold, #ca8a04);
  color: #0f1419;
  font-weight: 650;
}
body[data-accounting-view="nk-uebersicht"] .acc-btn.nk-btn-primary:hover:not(:disabled) {
  filter: brightness(1.06);
}
body[data-accounting-view="nk-uebersicht"] .acc-btn.nk-btn-secondary {
  background: var(--bg-0);
  border: 1px solid var(--separator);
  color: var(--on-bg);
  font-weight: 600;
}
body[data-accounting-view="nk-uebersicht"] .acc-btn.nk-btn-pdf {
  border-color: #1d4ed8;
  color: #1d4ed8;
  font-weight: 600;
}

/* Dark Theme: Panels/Table absetzen (nicht „schwarz auf schwarz“) */
[data-theme="dark"] body[data-accounting-view="nk-uebersicht"] .acc-panel.nk-ov-panel {
  border-color: rgba(255, 255, 255, 0.10);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.03) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 18px 44px rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] body[data-accounting-view="nk-uebersicht"] .nk-ov-table-wrap {
  border-color: rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.18);
}

[data-theme="dark"] body[data-accounting-view="nk-uebersicht"] .nk-ov-table th {
  background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] body[data-accounting-view="nk-uebersicht"] .nk-ov-table tbody tr.nk-ov-row--selected {
  background: rgba(37, 99, 235, 0.14);
}
