:root { --ink:#16211D; --muted:#56625C; --line:#DDE3DF; --soft:#EEF1EF; --bg:#F4F6F4; --brand:#0F6B5C; --brand-d:#0B5547; --tint:#E3F1EC; --nav:#12241F; --err:#8C1D18; --err-bg:#FDECEA; --warn:#7A3E00; --warn-bg:#FFF1DB; --cost:#E8A33D; }
* { box-sizing: border-box; }
body { margin:0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color:var(--ink); background:var(--bg); font-size:15px; line-height:1.45; }
h1 { font-size:24px; margin:0; } h2 { font-size:17px; margin:0 0 12px; } p { margin:0; }
a { color:var(--brand); }
.loading { padding:40px; color:var(--muted); }
.muted { color:var(--muted); font-size:13px; }
.num { text-align:right; font-variant-numeric: tabular-nums; white-space:nowrap; }
.shell { display:flex; flex-wrap:wrap; min-height:100vh; }
.nav { flex:1 1 220px; background:var(--nav); padding:20px 14px; display:flex; flex-direction:column; gap:4px; }
.brand { color:#fff; font-weight:700; font-size:18px; padding:4px 12px 16px; } .brand span { color:#7DD3BE; }
.nav button { all:unset; box-sizing:border-box; display:block; width:100%; padding:11px 12px; border-radius:8px; color:#D5E2DD; font-size:14px; cursor:pointer; }
.nav button:hover { background:#1A3029; } .nav button.on { background:#1F3B33; color:#fff; font-weight:600; }
.nav button:focus-visible, button:focus-visible, a:focus-visible { outline:2px solid #7DD3BE; outline-offset:2px; }
.nav .out { margin-top:16px; color:#A9BDB5; }
.main { flex:999 1 560px; min-width:0; padding:24px 28px 48px; display:flex; flex-direction:column; gap:20px; }
.top { display:flex; flex-wrap:wrap; gap:12px; align-items:center; justify-content:space-between; }
.pill { background:var(--tint); color:var(--brand-d); padding:6px 10px; border-radius:999px; font-weight:600; font-size:13px; }
.pill.warn { background:var(--warn-bg); color:var(--warn); }
.card { background:#fff; border:1px solid var(--line); border-radius:10px; padding:20px; }
.grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(210px, 1fr)); gap:16px; }
.kpi .v { font-size:26px; font-weight:700; margin-top:6px; font-variant-numeric: tabular-nums; }
.row { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.field { display:flex; flex-direction:column; gap:6px; flex:1 1 200px; } .field.wide { flex-basis:100%; }
label { font-size:13px; font-weight:600; }
input, select { font:inherit; padding:10px 12px; border:1px solid #B9C4BE; border-radius:8px; min-height:44px; background:#fff; color:var(--ink); width:100%; }
input:focus, select:focus { outline:2px solid var(--brand); outline-offset:1px; }
.btn { font:inherit; font-weight:600; min-height:44px; padding:10px 16px; border-radius:8px; border:1px solid #B9C4BE; background:#fff; color:var(--ink); cursor:pointer; }
.btn.primary { background:var(--brand); border-color:var(--brand); color:#fff; } .btn.danger { border-color:#B3261E; color:var(--err); }
.btn:disabled { background:#6B7A74; border-color:#6B7A74; color:#fff; cursor:not-allowed; } .btn.small { min-height:36px; padding:6px 12px; font-size:13px; }
.btn.on { background:var(--brand); border-color:var(--brand); color:#fff; }
.msg { padding:12px 14px; border-radius:8px; font-size:14px; font-weight:600; }
.msg.ok { background:var(--tint); color:var(--brand-d); } .msg.err { background:var(--err-bg); color:var(--err); } .msg.warn { background:var(--warn-bg); color:var(--warn); }
.scroll { overflow-x:auto; }
table { border-collapse:collapse; width:100%; font-size:14px; }
th { text-align:left; font-size:12px; color:var(--muted); font-weight:600; padding:8px 10px; border-bottom:1px solid var(--line); white-space:nowrap; }
td { padding:8px 10px; border-bottom:1px solid var(--soft); vertical-align:middle; }
tfoot td { font-weight:700; border-bottom:0; }
td input { min-width:90px; padding:8px 10px; border-radius:6px; }
td.acc input { min-width:90px; width:110px; } td.money input { text-align:right; min-width:130px; }
.bad { color:#B3261E; }
.auth { min-height:100vh; display:flex; flex-wrap:wrap; }
.auth .side { flex:1 1 380px; background:var(--nav); color:#fff; padding:56px 48px; display:flex; flex-direction:column; gap:24px; justify-content:center; }
.auth .side h1 { font-size:30px; line-height:1.25; max-width:460px; } .auth .side li { margin-bottom:10px; color:#D5E2DD; }
.auth .panel { flex:999 1 380px; display:flex; align-items:center; justify-content:center; padding:40px 20px; }
.auth form { width:100%; max-width:420px; display:flex; flex-direction:column; gap:14px; }
.chart { display:flex; align-items:flex-end; gap:10px; height:220px; min-width:520px; border-bottom:1px solid #B9C4BE; padding:0 4px; }
.chart .col { flex:1 1 0; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; gap:4px; min-width:0; height:100%; }
.chart .bars { display:flex; align-items:flex-end; gap:3px; } .chart .bar { width:14px; border-radius:3px 3px 0 0; min-height:1px; }
.chart .rev { background:var(--brand); } .chart .cost { background:var(--cost); }
.labels { display:flex; gap:10px; min-width:520px; padding:6px 4px 0; } .labels div { flex:1 1 0; text-align:center; font-size:12px; color:var(--muted); min-width:0; overflow:hidden; }
.legend { display:flex; gap:16px; font-size:13px; color:var(--muted); } .dot { display:inline-block; width:12px; height:12px; border-radius:3px; margin-right:6px; vertical-align:-1px; }
.dot.rev { background:var(--brand); } .dot.cost { background:var(--cost); }
.tag { display:inline-block; padding:4px 10px; border-radius:999px; font-size:12px; font-weight:600; background:var(--tint); color:var(--brand-d); }
.tag.draft { background:var(--warn-bg); color:var(--warn); } .tag.void { background:var(--err-bg); color:var(--err); }
.indent1 { padding-left:26px; } .indent2 { padding-left:44px; } .parent { font-weight:600; }
.stack { display:flex; flex-direction:column; gap:20px; }
a.btn { display:inline-block; text-decoration:none; margin-top:12px; }
