/* Ledger review is a short, continuous workflow. */
.ledger-library h1,.ledger-overview h1,.ledger-review-card h2,.ledger-export-card h2{margin:0;font-size:20px;letter-spacing:-.03em}.ledger-library>.row{gap:20px;margin-bottom:24px}.ledger-library>.row p{font-size:13px;margin:7px 0 0}.ledger-library>.row .button{font-size:13px;gap:7px}.ledger-list-tools{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin-bottom:20px}.ledger-search{display:flex;align-items:center;gap:9px;margin:0;min-width:220px;flex:1;border:1px solid #ded5eb;background:#fff;border-radius:10px;padding:0 12px;color:#826c98}.ledger-search input{border:0;background:transparent;padding:12px 0;margin:0;box-shadow:none;min-width:0;font-size:13px}.ledger-search .ui-icon{width:18px;height:18px}.ledger-search:focus-within{outline:2px solid #9676d0;outline-offset:2px}.ledger-search input:focus{outline:none}.ledger-list-tools .book-tabs{margin:0}.ledger-list-item{width:100%;display:flex;align-items:center;gap:15px;text-align:left;padding:20px 12px;border-radius:10px;color:#35283f;background:white;border-bottom:1px solid #eee7f4;font-weight:400}.ledger-list-item:hover{background:#faf6ff}.ledger-list-item>span:nth-child(2){min-width:0;flex:1}.ledger-list-item strong{font-size:15px;overflow-wrap:anywhere}.ledger-list-item small{display:block;font-size:12px;color:#786785;margin-top:4px}.ledger-list-icon{background:#f0e9fa;width:42px;height:42px;border-radius:12px;display:grid;place-items:center;flex:none;color:#7d52b5}.ledger-list-item>.ui-icon{width:17px;color:#9375aa}.ledger-back{padding:0;margin-bottom:18px;font-size:13px}.ledger-overview>.row{gap:20px;align-items:flex-start}.ledger-overview h1{font-size:23px;margin:10px 0 7px;overflow-wrap:anywhere}.ledger-overview h1:focus{outline:none}.ledger-overview p{font-size:12px;margin:0}.ledger-stage{display:flex;gap:8px;flex-wrap:wrap;flex:none;padding-top:5px}.ledger-stage>span{display:inline-flex;align-items:center;gap:5px;font-size:11px;padding:8px 10px;border-radius:8px;background:#f6f3f9;color:#7a6b84}.ledger-stage .ui-icon{width:14px;height:14px}.ledger-stage>span.done{color:#26705b;background:#eaf6f0}.ledger-stage>span.active{color:#6c42a0;background:#eee4fc}.ledger-total-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:24px -4px 0;border-top:1px solid #eee7f5;padding-top:22px;gap:15px}.ledger-total-grid>div{display:flex;flex-wrap:wrap;align-items:baseline;gap:5px 8px;padding:0 4px}.ledger-total-grid>div>span{width:100%;font-size:12px;color:#776283}.ledger-total-grid strong{font-size:22px;font-variant-numeric:tabular-nums;letter-spacing:-.04em;overflow-wrap:anywhere}.ledger-total-grid small{font-size:10px;color:#776283}.ledger-ai-note{margin:20px 0 0;font-size:12px}.ledger-ai-note p{margin-top:10px;white-space:pre-wrap;line-height:1.8}.ledger-review-card{padding:0;overflow:hidden}.ledger-review-heading{padding:24px 24px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px}.ledger-review-heading h2{font-size:18px}.ledger-review-heading>button{font-size:12px;padding:9px 11px;flex:none}.ledger-review-heading>div>p{font-size:12px;color:#726080;margin:7px 0 0}.ledger-title-input{margin:0 24px 18px;font-size:12px;max-width:520px}.ledger-title-input input{font-size:14px;margin-top:6px;padding:10px 12px}.ledger-table-tools{display:flex;align-items:center;gap:18px;padding:0 24px 18px}.ledger-table-tools .ledger-search{max-width:500px}.ledger-table-tools>span{color:#7b6888;font-size:11px}.ledger-entry-table{width:100%;font-size:12px}.ledger-entry-table thead{background:#faf7fd}.ledger-entry-table th{font-size:11px;font-weight:500;white-space:nowrap;padding:13px 12px}.ledger-entry-table td{padding:15px 12px;vertical-align:top}.ledger-entry-table td:first-child{width:40px}.ledger-entry-table input[type=checkbox]{width:16px;height:16px;margin:3px 0;accent-color:#7850c3;cursor:pointer}.ledger-entry-table .selected-row td{background:#f6f0fd}.ledger-party strong,.ledger-party>span{display:block;font-size:12px;overflow-wrap:anywhere;max-width:240px}.ledger-party>span{margin-top:3px;color:#675375}.ledger-party small{display:block;font-size:10px;color:#7e6b8a;margin-top:6px}.ledger-source{margin:4px 0 0;font-size:10px;max-width:280px}.ledger-source summary{font-size:10px;padding:4px 0;color:#79618b}.ledger-source code{display:inline-block;overflow-wrap:anywhere;font-size:10px;max-width:100%}.ledger-entry-table td.num{min-width:160px;white-space:normal}.ledger-amount{display:block;font-size:13px;font-weight:600;overflow-wrap:anywhere;margin-top:7px;font-variant-numeric:tabular-nums}.ledger-entry-table input:not([type=checkbox]),.ledger-entry-table select{font-size:12px;padding:9px 10px;margin:0;min-width:110px;max-width:180px;border-color:#e4dbea}.ledger-entry-table td:nth-child(5) input{min-width:140px}.ledger-entry-table .direction{font-size:10px}.ledger-pagination{display:flex;justify-content:center;align-items:center;gap:18px;padding:20px}.ledger-pagination>span{font-size:12px;color:#786187}.ledger-pagination>button{font-size:12px;padding:8px 14px}.ledger-savebar{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fcf9ff;border-top:1px solid #e8def2;padding:16px 24px}.ledger-savebar>span{font-size:12px;color:#775d89}.ledger-savebar>div{display:flex;gap:8px}.ledger-savebar button{font-size:12px;white-space:nowrap;padding:11px 14px}.ledger-savebar .ui-icon{width:17px;height:17px}.ledger-bulk{display:flex;align-items:center;gap:10px;background:#ece3f8;margin:14px 20px 0;padding:14px;border-radius:10px;font-size:12px;flex-wrap:wrap;color:#59406f}.ledger-bulk[hidden]{display:none}.ledger-bulk label{margin:0;flex:1;min-width:140px;max-width:220px}.ledger-bulk input{font-size:12px;padding:8px 10px;margin:0;background:white}.ledger-bulk button{font-size:12px;padding:8px 10px}.ledger-export-card{background:linear-gradient(120deg,#fff,#fbf7ff);border-color:#dfd0f2}.ledger-export-card p{font-size:13px;margin:8px 0 18px}#ledger-export-status{font-size:12px;color:#755888;margin-bottom:12px;min-height:0}#ledger-export-status:empty{display:none}#ledger-export-actions{display:flex;align-items:flex-start;gap:14px;flex-wrap:wrap}.ledger-download-option{display:flex;flex-direction:column;gap:8px}.ledger-download-option .button,.ledger-download-option>button{gap:7px;font-size:13px;min-width:175px;justify-content:center}.ledger-download-option small{font-size:11px;color:#786186}.ledger-review-card .help{margin:0 24px 24px}.ledger-source p{font-size:11px}.ledger-back-row{display:flex;justify-content:space-between;gap:10px}.ledger-back-row button{font-size:12px;margin-bottom:18px}.ledger-back-row .ledger-back{margin-bottom:18px}
@media(prefers-reduced-motion:no-preference){.ledger-list-item{transition:background .18s,transform .18s}.ledger-list-item:hover{transform:translateX(3px)}.ledger-download-option{animation:panel-in .2s var(--ease-out)}}
@media(max-width:1200px){.ledger-stage{width:100%;padding-top:0}.ledger-overview>.row{flex-wrap:wrap}.ledger-table-tools>span{display:none}.ledger-total-grid strong{font-size:19px}.ledger-list-tools{align-items:stretch}.ledger-list-tools .book-tabs{flex-wrap:wrap}}
@media(max-width:700px){.ledger-library>.row{flex-direction:column;align-items:stretch;gap:14px}.ledger-library>.row .button{justify-content:center}.ledger-list-tools .book-tabs{width:100%}.ledger-list-item{padding:16px 0;gap:10px}.ledger-list-item strong{font-size:13px}.ledger-list-item small{font-size:10px}.ledger-list-icon{width:34px;height:34px}.ledger-list-item>.ui-icon{display:none}.ledger-list-item .pill{font-size:10px;padding:4px 7px}.ledger-overview h1{font-size:20px}.ledger-total-grid{grid-template-columns:1fr;padding-top:16px;gap:12px;margin-top:18px}.ledger-total-grid>div{display:grid;grid-template-columns:70px 1fr auto;gap:8px;align-items:baseline}.ledger-total-grid>div>span{width:auto}.ledger-total-grid strong{font-size:18px;text-align:right}.ledger-stage{gap:6px}.ledger-stage>span{font-size:10px;padding:7px 9px}.ledger-review-heading{padding:19px 16px 14px;align-items:flex-start}.ledger-review-heading h2{font-size:16px}.ledger-review-heading>button{font-size:10px;padding:7px 9px}.ledger-review-heading>div>p{font-size:11px}.ledger-title-input{margin:0 16px 16px}.ledger-table-tools{padding:0 16px 16px}.ledger-search{min-width:0}.ledger-entry-table,.ledger-entry-table tbody{display:block;width:100%}.ledger-entry-table thead{display:none}.ledger-entry-table tr{display:grid;grid-template-columns:24px minmax(0,1fr) minmax(0,1fr);gap:12px 10px;border-top:1px solid #e9e1f0;padding:17px 16px}.ledger-entry-table td{display:block;padding:0;border:0;min-width:0}.ledger-entry-table td:first-child{grid-column:1;grid-row:1;width:24px}.ledger-entry-table td:nth-child(2){grid-column:2;grid-row:1}.ledger-entry-table td:nth-child(3){grid-column:3;grid-row:1;min-width:0}.ledger-entry-table td:nth-child(4){grid-column:2;grid-row:2}.ledger-entry-table td:nth-child(5){grid-column:2/-1;grid-row:3}.ledger-entry-table td:nth-child(6){grid-column:3;grid-row:2}.ledger-entry-table input:not([type=checkbox]),.ledger-entry-table select{width:100%;min-width:0;max-width:100%;font-size:13px}.ledger-entry-table td:nth-child(5) input{min-width:0;max-width:100%}.ledger-entry-table .selected-row{background:#f7f1ff}.ledger-entry-table .selected-row td{background:transparent}.ledger-party strong,.ledger-party>span{font-size:12px}.ledger-party small{font-size:10px}.ledger-amount{font-size:13px}.ledger-source{max-width:100%}.ledger-source p{word-break:break-word}.ledger-pagination{gap:12px;padding:18px}.ledger-savebar{flex-wrap:wrap;padding:16px}.ledger-savebar>div{width:100%;gap:8px}.ledger-savebar button{flex:1;font-size:11px;justify-content:center;padding:11px 8px}.ledger-savebar>span{font-size:11px}.ledger-bulk{margin:12px;padding:12px;gap:8px}.ledger-bulk>strong{width:100%}.ledger-bulk label{max-width:none;min-width:130px}.ledger-bulk #mark-ledger-reviewed{width:100%}.ledger-export-card h2{font-size:18px}.ledger-export-card p{font-size:12px}#ledger-export-actions{display:grid;grid-template-columns:1fr;gap:12px;width:100%}.ledger-download-option .button,.ledger-download-option>button{width:100%;font-size:13px}.ledger-back-row button{font-size:11px;padding:0}.ledger-review-card .help{margin:0 16px 20px}}
.ledger-review-card{overflow:clip}.ledger-savebar{position:sticky;bottom:90px;z-index:21;box-shadow:0 -5px 18px #5e3f7110}.ledger-table-tools>button{font-size:12px;white-space:nowrap;padding:9px 12px}.ledger-entry-table input:disabled,.ledger-entry-table select:disabled{opacity:.7}
@media(max-width:700px){.ledger-table-tools{flex-wrap:wrap;gap:9px}.ledger-table-tools .ledger-search{flex-basis:100%}.ledger-table-tools>button{font-size:11px}.ledger-savebar{bottom:80px}}

.ledger-back-row .link:hover{background:#f1e9fa;color:#5b3680}.ledger-stage>span{color:#71617d}
