.ledger-page{max-width:1380px}.ledger-filters{display:grid;grid-template-columns:1fr 1fr 1fr 1.4fr auto;gap:16px;align-items:end}.ledger-filters .field{margin:0}.ledger-filters button{height:44px}.ledger-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:20px 0 28px}.ledger-metric{padding:22px;background:var(--solid,#fff);border:1px solid var(--line,#dce4f0);border-radius:16px;min-width:0}.ledger-metric small,.ledger-metric strong,.ledger-metric span{display:block}.ledger-metric strong{font:600 clamp(20px,2.1vw,30px)/1.4 ui-monospace,monospace;letter-spacing:-1px;margin:8px 0;overflow-wrap:anywhere}.ledger-metric span{font-size:12px;opacity:.65}.ledger-layout{display:grid;grid-template-columns:320px minmax(0,1fr);gap:24px;align-items:start}.ledger-editor{position:relative}.ledger-editor h2{margin:10px 0 24px}.ledger-editor .inline-fields{grid-template-columns:1fr 1fr}.ledger-editor [hidden]{display:none!important}.ledger-history{min-width:0}.ledger-charts{display:grid;grid-template-columns:1.2fr 1fr;gap:18px;margin-bottom:20px}.ledger-charts .card{min-width:0}.ledger-charts h3{margin-top:0}.ledger-charts svg{width:100%;height:auto;min-height:140px}.ledger-charts svg text{fill:currentColor;font-size:12px}.ledger-bars{margin:13px 0}.ledger-bars .bar-caption{display:flex;justify-content:space-between;gap:8px;font-size:12px}.ledger-bars .track{height:7px;background:#8096ae20;border-radius:5px;margin-top:7px;overflow:hidden}.ledger-bars .fill{height:100%;background:#607fc9;border-radius:5px}.ledger-bars .fill.refund{background:#379b85}.ledger-row{display:grid;grid-template-columns:45px minmax(0,1fr) auto;gap:14px;padding:18px 0;border-bottom:1px solid var(--line,#dce4f0);align-items:center}.ledger-icon{font-size:23px;background:#8096ae12;border-radius:13px;text-align:center;padding:9px 0}.ledger-row strong{font-weight:600}.ledger-row p{margin:4px 0;font-size:12px;opacity:.7;overflow-wrap:anywhere}.ledger-row .row-amount{text-align:right;font:600 17px ui-monospace,monospace;white-space:nowrap}.ledger-row .credit{color:#348b79}.row-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:9px}.row-actions button{border:0;background:transparent;color:inherit;font-size:12px;cursor:pointer;text-decoration:underline;text-underline-offset:3px;padding:3px}.list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.list-heading h2{margin:8px 0 12px}.ledger-pager{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:22px;font-size:12px}.ledger-pager button{padding:8px 12px}.privacy-note{line-height:1.8;max-width:290px}.ledger-rules{margin-top:25px;font-size:13px;line-height:1.9}.ledger-rules summary{cursor:pointer;font-weight:600}.category-edit{display:grid;grid-template-columns:55px minmax(80px,1fr) auto auto;gap:8px;align-items:center;margin:12px 0}.category-edit input{min-width:0;width:100%;padding:8px}.category-edit label{font-size:12px;white-space:nowrap;display:flex;align-items:center;gap:5px}.category-edit input[type=checkbox]{width:15px}.category-edit button{padding:8px}#categoryDialog{width:min(630px,calc(100% - 24px));max-height:85vh;overflow:auto;border:1px solid #bcc9dc;border-radius:20px;padding:26px;color:inherit;background:var(--solid,#fff)}#categoryDialog::backdrop{background:#0e1d3690;backdrop-filter:blur(3px)}#categoryList{max-height:42vh;overflow:auto}#categoryForm{border-top:1px solid #8799ad40;margin-top:20px;padding-top:12px}.ledger-page select,.ledger-page input,.ledger-page textarea{max-width:100%}@media(min-width:1100px){.ledger-layout aside{position:sticky;top:95px}}@media(max-width:1050px){.ledger-filters{grid-template-columns:repeat(2,1fr)}.ledger-filters button{grid-column:1/-1}.ledger-charts{grid-template-columns:1fr}.ledger-layout{grid-template-columns:290px minmax(0,1fr)}}@media(max-width:720px){.ledger-layout{grid-template-columns:1fr}.ledger-summary{grid-template-columns:repeat(2,1fr);gap:10px}.ledger-metric{padding:17px}.ledger-charts{grid-template-columns:1fr}.ledger-filters{gap:12px}.ledger-row{gap:10px}.category-edit{grid-template-columns:45px minmax(60px,1fr) auto}.category-edit button{grid-column:2/4}.privacy-note{max-width:none}.ledger-editor{margin-bottom:5px}}

.ledger-filters>.field,.ledger-editor .field{min-width:0}.ledger-filters input,.ledger-filters select{min-width:0;width:100%}@media(max-width:1050px){.ledger-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}

.fx-widget{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:20px}.fx-widget h2{font-size:24px;margin:10px 0}.fx-widget p{max-width:850px;margin-bottom:0}.fx-widget a{white-space:nowrap}.ledger-row small{display:block;text-align:right;color:var(--muted);margin:6px 0}.ledger-charts[hidden]{display:none}@media(max-width:600px){.fx-widget{display:block}.fx-widget a{display:inline-block;margin-top:14px}.fx-widget h2{font-size:21px}}

.ledger-detail>summary{cursor:pointer;list-style:none;gap:12px}.ledger-detail>summary::-webkit-details-marker{display:none}.ledger-detail>summary:focus-visible{outline:3px solid #6687cf;outline-offset:6px}.detail-state{font-size:.8rem;color:var(--accent,#6687cf);white-space:nowrap}.ledger-detail[open] .when-closed,.ledger-detail:not([open]) .when-open{display:none}.ledger-detail:not([open])>summary{margin-bottom:0}.ledger-detail[open]>summary{margin-bottom:18px}
