@import 'tailwindcss';

:root { --ink:#17221d; --muted:#6c766f; --line:#dfe5df; --paper:#fbfcf9; --green:#1f6d4a; --green-light:#e9f4ed; --orange:#ef7d32; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin:0; background:var(--paper); color:var(--ink); font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
button,input,select { font:inherit; }
button,select { cursor:pointer; }
.shell { width:min(1180px,calc(100% - 40px)); margin:0 auto; padding-bottom:40px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.topbar { min-height:86px; display:flex; align-items:center; gap:13px; border-bottom:1px solid var(--line); }
.brand-mark { width:42px; height:42px; display:grid; place-items:center; border-radius:12px; background:var(--green); color:white; font-weight:850; font-size:20px; box-shadow:0 7px 18px rgba(31,109,74,.18); }
.eyebrow,.kicker { margin:0; color:var(--green); font-size:11px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.brand-title { margin:2px 0 0; font-size:17px; font-weight:750; }
.topbar-meta { margin-left:auto; display:flex; align-items:center; gap:8px; color:var(--muted); font-size:13px; }
.live-dot { width:8px; height:8px; border-radius:50%; background:#40a16e; box-shadow:0 0 0 4px #e5f4eb; }
.hero { display:flex; justify-content:space-between; align-items:end; gap:40px; padding:68px 0 38px; }
.hero h1 { max-width:760px; margin:12px 0 14px; font-family:Georgia,"Times New Roman",serif; font-size:clamp(44px,7vw,76px); line-height:.96; letter-spacing:-.045em; font-weight:600; }
.hero-copy { max-width:730px; margin:0; color:var(--muted); font-size:17px; line-height:1.65; }
.hero-badge { min-width:170px; padding:24px; border:1px solid var(--line); border-radius:22px; background:white; box-shadow:0 12px 36px rgba(28,48,38,.06); }
.hero-badge span { display:block; color:var(--green); font-family:Georgia,serif; font-size:50px; line-height:.9; }
.hero-badge small { display:block; margin-top:10px; color:var(--muted); }
.stats { display:grid; grid-template-columns:1.35fr repeat(3,1fr); gap:14px; }
.stat-card { min-height:154px; padding:23px; border:1px solid var(--line); border-radius:18px; background:white; }
.stat-card.accent { background:var(--green); color:white; border-color:var(--green); }
.stat-card p,.stat-card span { margin:0; color:var(--muted); font-size:12px; }
.stat-card.accent p,.stat-card.accent span { color:#c7e6d4; }
.stat-card strong { display:block; margin:20px 0 12px; font-size:clamp(24px,3vw,34px); letter-spacing:-.045em; white-space:nowrap; }
.analysis-grid { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(260px,.65fr); gap:14px; margin-top:14px; }
.panel { border:1px solid var(--line); border-radius:18px; background:white; padding:24px; }
.panel-heading { display:flex; align-items:start; justify-content:space-between; gap:20px; }
.panel-heading h2,.snapshot-panel h2 { margin:6px 0 0; font-family:Georgia,serif; font-size:27px; font-weight:600; }
.panel-heading>span { color:var(--muted); font-size:12px; }
.bars { display:grid; gap:17px; margin-top:26px; }
.bar-row { display:grid; grid-template-columns:74px minmax(130px,1fr) 112px; align-items:center; gap:14px; }
.bar-label { display:flex; flex-direction:column; gap:3px; font-size:12px; }
.bar-label span { color:var(--muted); font-size:10px; }
.bar-track { height:9px; border-radius:999px; background:#edf1ed; overflow:hidden; }
.bar-track span { display:block; height:100%; border-radius:inherit; background:var(--green); }
.bar-track span.negative { background:var(--orange); }
.bar-row>strong { text-align:right; font-size:12px; font-variant-numeric:tabular-nums; }
.chart-note { margin:20px 0 0; color:var(--muted); font-size:11px; }
.snapshot-panel { position:relative; overflow:hidden; }
.snapshot-panel::after { content:""; position:absolute; width:130px; height:130px; border-radius:50%; background:#f2f7f3; right:-50px; top:-50px; }
.donut { width:122px; height:122px; display:grid; place-items:center; margin:22px auto 18px; border-radius:50%; background:conic-gradient(var(--orange) 0 18.9%, var(--green) 18.9% 100%); position:relative; }
.donut::after { content:""; position:absolute; inset:18px; border-radius:50%; background:white; }
.donut span { z-index:1; text-align:center; font-size:31px; font-weight:800; line-height:.9; }
.donut small { display:block; margin-top:7px; color:var(--muted); font-size:10px; font-weight:600; }
.legend { display:flex; justify-content:center; gap:14px; color:var(--muted); font-size:10px; }
.legend span { display:flex; align-items:center; gap:5px; }
.legend i { width:7px; height:7px; border-radius:50%; }
.legend-green { background:var(--green); }
.legend-orange { background:var(--orange); }
.ledger { margin-top:48px; }
.section-heading { display:flex; align-items:end; justify-content:space-between; gap:24px; margin-bottom:16px; }
.section-heading h2 { margin:7px 0 0; font-family:Georgia,serif; font-size:32px; font-weight:600; }
.result-total { text-align:right; }
.result-total span { display:block; color:var(--muted); font-size:10px; text-transform:uppercase; letter-spacing:.1em; }
.result-total strong { display:block; margin-top:4px; font-size:17px; }
.filters { display:grid; grid-template-columns:minmax(230px,1fr) auto 145px; gap:10px; margin-bottom:12px; }
.search input,.filters select { width:100%; height:44px; border:1px solid var(--line); border-radius:11px; outline:none; background:white; color:var(--ink); }
.search input { padding:0 14px; }
.search input:focus,.filters select:focus { border-color:#78a98e; box-shadow:0 0 0 3px rgba(31,109,74,.09); }
.filters select { padding:0 12px; }
.segments { display:flex; padding:4px; border:1px solid var(--line); border-radius:11px; background:white; }
.segments button { border:0; border-radius:8px; padding:0 12px; background:transparent; color:var(--muted); font-size:12px; }
.segments button[aria-pressed="true"] { background:var(--green); color:white; }
.table-wrap { overflow-x:auto; border:1px solid var(--line); border-radius:18px; background:white; }
table { width:100%; border-collapse:collapse; font-size:13px; }
th { padding:15px 16px; background:#f2f5f1; color:var(--muted); text-align:left; font-size:10px; letter-spacing:.1em; text-transform:uppercase; }
td { padding:16px; border-top:1px solid #edf0ed; white-space:nowrap; }
tbody tr { transition:background .16s ease; }
tbody tr:hover { background:#fafcf9; }
.customer { max-width:250px; overflow:hidden; text-overflow:ellipsis; }
.reference { max-width:205px; overflow:hidden; text-overflow:ellipsis; color:var(--muted); }
.amount { text-align:right; font-variant-numeric:tabular-nums; font-weight:750; }
.negative-text { color:#b44c20; }
.tag { display:inline-flex; padding:5px 9px; border-radius:999px; background:var(--green-light); color:var(--green); font-size:10px; font-weight:750; }
.tag.gutschrift { background:#fff5e8; color:#9b5e18; }
.tag.storno { background:#ffede7; color:#ad4924; }
.empty { padding:50px 20px; text-align:center; color:var(--muted); }
.table-footer { margin:11px 3px 0; color:var(--muted); font-size:11px; }
footer { display:flex; justify-content:space-between; gap:20px; margin-top:64px; padding-top:22px; border-top:1px solid var(--line); color:var(--muted); font-size:11px; }

@media (max-width:940px) { .stats { grid-template-columns:repeat(2,1fr); } .analysis-grid { grid-template-columns:1fr; } .snapshot-panel { display:none; } .filters { grid-template-columns:1fr 145px; } .segments { grid-column:1/-1; grid-row:2; height:44px; } .segments button { flex:1; } }
@media (max-width:620px) { .shell { width:min(100% - 24px,1180px); } .topbar-meta { font-size:0; } .hero { padding-top:45px; } .hero-badge { display:none; } .stats { grid-template-columns:1fr; } .stat-card { min-height:130px; } .bar-row { grid-template-columns:60px 1fr 96px; gap:9px; } .filters { grid-template-columns:1fr; } .filters select { grid-row:2; } .segments { grid-row:3; } .result-total { display:none; } footer { flex-direction:column; } }
@media (prefers-reduced-motion:reduce) { * { scroll-behavior:auto!important; transition:none!important; } }
