/* Haushaltsbuch: eigene Farbe (blau), damit die Anwendungen klar getrennt wirken */
body[data-app="haushaltsbuch"] { --accent: #2F5F8F; --accent-soft: #D9E6F3; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body[data-app="haushaltsbuch"] { --accent: #7FB2E5; --accent-soft: #1F3347; }
}
:root[data-theme="dark"] body[data-app="haushaltsbuch"] { --accent: #7FB2E5; --accent-soft: #1F3347; }

.expday h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 16px; margin-bottom: 4px; }
.expday h2 small { font: 600 14px var(--font-body); }
.exprow { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; border-top: 1px solid var(--line); background: none; padding: 10px 0; }
.expday h2 + .exprow { border-top: 0; }
.exp-main { flex: 1; min-width: 0; display: grid; }
.exp-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.exp-main small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.exp-clip { color: var(--muted); display: inline-flex; }
.exp-by .av { width: 24px; height: 24px; font-size: 12px; }
.exp-sum { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.receipt { display: grid; gap: 8px; }
.receipt img { display: block; max-height: 320px; width: auto; max-width: 100%; border-radius: 10px; border: 1px solid var(--line); }
.receipt .check { display: inline-flex; align-items: center; gap: 8px; }

.statrow { display: grid; grid-template-columns: minmax(70px, 1fr) 2fr 108px; gap: 8px 12px; align-items: center; padding: 6px 0; }
.statl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.statbar { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.statbar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.statv { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.trend { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; align-items: end; }
.trendcol { display: grid; grid-template-rows: auto 120px auto; gap: 6px; justify-items: center; min-width: 0; }
.trendv { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.trendbar { width: 100%; max-width: 44px; height: 120px; display: flex; align-items: flex-end; background: var(--surface-2); border-radius: 8px; overflow: hidden; }
.trendbar i { display: block; width: 100%; background: var(--line); border-radius: 8px 8px 0 0; }
.trendcol.now .trendbar i { background: var(--accent); }
.trendl { font-size: 12px; font-weight: 600; }
