.ledger-filters{display:grid;grid-template-columns:repeat(3,minmax(190px,1fr));gap:12px}.ledger-filters .wide{grid-column:span 2}.party-filter[hidden]{display:none}.ledger-summary{display:grid;grid-template-columns:2fr repeat(3,1fr);gap:10px;margin-bottom:14px}.ledger-summary>div{background:#fff;border:1px solid var(--border);border-left:3px solid var(--accent);padding:12px}.ledger-summary span{display:block;color:var(--muted);font-size:12px}.ledger-summary strong{display:block;margin-top:5px;font-size:17px;font-variant-numeric:tabular-nums}.ledger-results table{min-width:1250px}.number{text-align:right!important;font-variant-numeric:tabular-nums}.opening-row td{background:#fff4ce!important;font-weight:600}.ledger-table tfoot th{position:sticky;bottom:0;background:#edebe9;border-top:2px solid #8a8886}.selection-note{margin:0 0 10px;padding:8px 10px;background:var(--select)}@media(max-width:700px){.ledger-filters,.ledger-summary{grid-template-columns:1fr}.ledger-filters .wide{grid-column:auto}}
.cash-matrix-wrap{overflow:auto;max-width:100%}.cash-matrix{min-width:1100px;border-collapse:collapse;font-size:.82rem}.cash-matrix th,.cash-matrix td{white-space:nowrap;padding:.45rem .55rem;border-bottom:1px solid #d8dee8}.cash-matrix .code{min-width:90px}.cash-matrix .description{min-width:280px;text-align:left}.cash-matrix .number{text-align:right;font-variant-numeric:tabular-nums}.cash-matrix .section-row th{background:#164a8a;color:#fff;text-align:left;font-size:.9rem}.cash-matrix .subtotal th{background:#e7edf5}.cash-matrix .availability th{background:#d9ead3}.cash-matrix .final-balance th{background:#cfe2f3}.cash-matrix .negative{color:#a61b1b;background:#fce8e6!important}.cash-matrix tbody tr:not(.section-row):hover td{background:#f3f7fc}
.pivot-fields{display:flex;gap:1rem;align-items:center;flex-wrap:wrap}.pivot-fields label{display:flex;gap:.35rem;align-items:center}.group-row th{background:#dce6f2;color:#17365d}.group-row th:first-child{text-align:left}.tree-toggle{border:0;background:transparent;font-weight:700;font-size:1rem;cursor:pointer}.detail-row td:first-child{padding-left:1.4rem}.group-total th{background:#f0f3f7;border-top:1px solid #9fb5cf}.group-total th:nth-child(2){text-align:left;font-style:italic}
.cash-matrix{table-layout:auto}.cash-matrix thead th{position:relative;user-select:none}.cash-matrix thead th[draggable=true]{cursor:grab}.cash-matrix thead th[draggable=true]:active{cursor:grabbing}.column-resizer{position:absolute;right:-3px;top:0;width:7px;height:100%;cursor:col-resize;z-index:3}.column-resizer:hover{background:#6ea8dc}.filter-dialog{width:min(820px,92vw);border:0;border-radius:8px;padding:1.2rem;box-shadow:0 12px 40px #0004}.filter-dialog::backdrop{background:#10243b99}.filter-summary{font-size:.9rem}.cash-matrix .section-row th{background:#eef3f8;color:#164a8a;padding-left:1.25rem}.cash-matrix .section-total th{background:#f8fafc;border-top:1px solid #ccd6e2}.cash-matrix .group-total th{border-top:2px solid #7894b5}.cash-matrix .summary-start th{background:#17365d;color:#fff;text-align:left}.cash-matrix .cf-value a{display:block;color:inherit;text-decoration:underline dotted;text-underline-offset:2px}.cash-matrix .cf-value a:hover{color:#0067b8;background:#e5f1fb}
