.cashbook-page{--cashbook-brand:#844646;--cashbook-line:#e9e3e3;--cashbook-muted:#807777;--cashbook-green:#247550;--cashbook-red:#b44646;display:grid;gap:18px;max-width:1600px;margin:0 auto;font-variant-numeric:tabular-nums}
.cashbook-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.cashbook-heading h1{font-size:27px;line-height:1.2;letter-spacing:-.6px;margin:0 0 7px}.cashbook-heading p{color:var(--cashbook-muted);font-size:12px;margin:0}.cashbook-heading-actions{display:flex;gap:8px;flex-shrink:0}.cashbook-heading-actions .btn{min-width:112px;justify-content:center}.cashbook-page .btn svg{width:16px;height:16px}.cashbook-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.cashbook-card{border:1px solid var(--cashbook-line);border-radius:14px;background:#fff;padding:18px 20px 14px;min-width:0;box-shadow:0 3px 14px #52343404}.cashbook-card-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}.cashbook-card h2{font-size:16px;margin:0;line-height:1.4}.cashbook-box-icon{display:grid;place-items:center;width:31px;height:31px;border-radius:9px;background:#f6eeee;color:var(--cashbook-brand)}.cashbook-box-icon svg{width:19px;height:19px}.cashbook-card-label{color:var(--cashbook-muted);font-size:11px;display:block}.cashbook-card-balance{display:block;font-size:25px;letter-spacing:-.7px;margin-top:5px;line-height:1.4;white-space:nowrap}.cashbook-card-note{color:var(--cashbook-muted);font-size:10px;line-height:1.5;margin:3px 0 13px;min-height:15px}.cashbook-card-flow{border-top:1px solid var(--cashbook-line);padding-top:11px;display:grid;grid-template-columns:1fr 1fr;gap:8px}.cashbook-card-flow>span{font-size:10px;color:var(--cashbook-muted);display:grid;gap:3px}.cashbook-card-flow b{font-size:12px;font-weight:600;white-space:nowrap}.cashbook-income{color:var(--cashbook-green)!important}.cashbook-expense{color:var(--cashbook-red)!important}.cashbook-journal{min-width:0;border:1px solid var(--cashbook-line);background:#fff;border-radius:14px;overflow:hidden}.cashbook-journal-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 18px 9px}.cashbook-journal-heading h2{font-size:15px;margin:0}.cashbook-journal-heading .icon-btn{width:30px;height:30px}.cashbook-filters{padding:4px 18px 12px}.cashbook-filter-fields{display:grid;grid-template-columns:minmax(125px,.9fr) minmax(125px,.9fr) minmax(128px,.85fr) minmax(128px,.85fr) minmax(200px,1.6fr);gap:10px}.cashbook-field{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:11px;color:#6e6464;font-weight:500}.cashbook-field input,.cashbook-field select,.cashbook-field textarea{width:100%;min-width:0;min-height:36px;border:1px solid #e1dada;border-radius:8px;background:#fff;padding:8px 10px;color:#332e2e;font:inherit;font-size:12px;line-height:1.5;box-sizing:border-box;outline:none}.cashbook-field input:focus,.cashbook-field select:focus,.cashbook-field textarea:focus{border-color:#a87373;box-shadow:0 0 0 3px #84464612}.cashbook-field textarea{resize:vertical;min-height:78px}.cashbook-filter-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:10px;min-height:32px}.cashbook-filter-footer>div{display:flex;gap:7px;flex-shrink:0}.cashbook-filter-footer .btn{font-size:11px;min-height:31px;padding:6px 11px}.cashbook-filter-error{color:var(--cashbook-red);font-size:11px}.cashbook-filter-totals{display:flex;flex-wrap:wrap;align-items:center;gap:9px 22px;border-block:1px solid var(--cashbook-line);background:#fcfafa;padding:11px 18px;font-size:11px;color:var(--cashbook-muted)}.cashbook-filter-totals>span:first-child{font-weight:600;color:#625757}.cashbook-filter-totals b{margin-left:6px;color:#3d3535;font-weight:600;white-space:nowrap}.cashbook-list[aria-busy=true] .cashbook-table{opacity:.55;pointer-events:none}.cashbook-table-scroll{width:100%;overflow:auto}.cashbook-table{width:100%;min-width:1040px;border-collapse:collapse;table-layout:fixed}.cashbook-table th{color:#8c8181;text-transform:none;letter-spacing:0;background:#fff;font-size:10px;padding:12px 14px;font-weight:500;text-align:left;white-space:nowrap;border-bottom:1px solid var(--cashbook-line)}.cashbook-table th:nth-child(1){width:160px}.cashbook-table th:nth-child(2){width:125px}.cashbook-table th:nth-child(3){width:134px;text-align:right}.cashbook-table th:nth-child(4){width:220px}.cashbook-table th:nth-child(6){width:155px}.cashbook-table th:nth-child(7){width:52px}.cashbook-table td{padding:13px 14px;border-bottom:1px solid #f1eded;vertical-align:top;font-size:11px;line-height:1.55;overflow-wrap:anywhere}.cashbook-table tr:last-child td{border-bottom:0}.cashbook-table tbody tr:hover{background:#fdfbfb}.cashbook-table td>small{display:block;font-size:10px;color:var(--cashbook-muted);margin-top:3px}.cashbook-table time{font-size:11px;white-space:nowrap}.cashbook-table td b{font-weight:550}.cashbook-operation{display:block;font-size:10px;margin-top:3px}.cashbook-amount{font-size:13px!important;font-weight:650;text-align:right;white-space:nowrap}.cashbook-counts{display:grid;grid-template-columns:1fr 1fr;gap:10px;font-size:10px;color:#8a7c7c}.cashbook-counts span{display:grid;gap:2px}.cashbook-counts b{color:#4c4141;font-size:11px;white-space:nowrap}.cashbook-discrepancy{display:block;color:#9a641d;background:#fff5e6;font-size:10px;border-radius:5px;padding:3px 6px;margin-top:5px;max-width:max-content}.cashbook-balanced{color:#6c8b78!important}.cashbook-comment{white-space:pre-wrap;min-width:140px}.cashbook-author b{font-size:11px}.cashbook-author small{font-size:9px!important}.cashbook-readonly{color:#bcb1b1;display:block;text-align:center}.cashbook-table .icon-btn{width:28px;height:28px}.cashbook-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;border-top:1px solid var(--cashbook-line);font-size:11px;color:var(--cashbook-muted)}.cashbook-page-controls{display:flex;align-items:center;gap:7px}.cashbook-page-controls label{display:flex;align-items:center;gap:7px}.cashbook-page-controls input{width:49px;min-height:30px;padding:5px;border:1px solid #e1dada;border-radius:7px;text-align:center;background:#fff;color:#443b3b;font:inherit;-moz-appearance:textfield}.cashbook-page-controls input::-webkit-inner-spin-button{appearance:none}.cashbook-page-controls .btn{min-height:30px;padding:5px 9px;font-size:11px}.cashbook-page-controls button[aria-label]{font-size:19px;line-height:1;width:30px;justify-content:center}.cashbook-empty{text-align:center;padding:45px 16px;color:var(--cashbook-muted);font-size:12px}.cashbook-empty h3{font-size:15px;color:#5c4d4d;margin:0 0 7px}.cashbook-empty p{margin:0}.cashbook-error{display:flex;justify-content:space-between;align-items:center;gap:14px;font-size:12px;color:#a14242;background:#fff2f2;padding:14px 18px}.cashbook-error .btn{flex-shrink:0}.cashbook-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#cashbook-dialog{--cashbook-brand:#844646;--cashbook-muted:#807777;width:560px;max-width:calc(100vw - 28px);padding:0;margin:auto;border:1px solid #e6dddd;border-radius:16px;box-shadow:0 28px 90px #34222236;color:#3d3333;max-height:calc(100dvh - 36px);overflow:auto}#cashbook-dialog::backdrop{background:#271f1f63;backdrop-filter:blur(3px)}.cashbook-dialog-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:22px 24px 17px;border-bottom:1px solid #eee6e6}.cashbook-dialog-header h2{font-size:19px;line-height:1.3;letter-spacing:-.3px;margin:0 0 5px}.cashbook-dialog-header p{font-size:11px;color:var(--cashbook-muted);margin:0}.cashbook-dialog-header .icon-btn{width:29px;height:29px;flex-shrink:0}#cashbook-form{padding:20px 24px 0}.cashbook-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 14px}.cashbook-full,.cashbook-cash-fields,.cashbook-transfer-fields{grid-column:1/-1}.cashbook-cash-fields[hidden],.cashbook-transfer-fields[hidden]{display:none!important}.cashbook-currency-note{align-self:center;color:#978888;font-size:10px;line-height:1.65;margin-top:14px}.cashbook-recount{margin-top:12px;background:#f8f5f2;border:1px solid #eee6df;border-radius:9px;padding:11px 13px}.cashbook-recount b{font-size:11px;font-weight:550}.cashbook-recount p{margin:5px 0 0;color:#82736b;font-size:10px;line-height:1.6}.cashbook-recount p.has-difference{color:#9b631b}#cashbook-form .cashbook-field{font-size:11px}#cashbook-form .cashbook-field input,#cashbook-form .cashbook-field select,#cashbook-form .cashbook-field textarea{min-height:38px;font-size:12px}#cashbook-form .cashbook-form-error{color:#b33f3f;font-size:11px;line-height:1.6;padding:12px 0 0;white-space:pre-line}.cashbook-dialog-footer{display:flex;justify-content:flex-end;gap:8px;border-top:1px solid #eee6e6;margin:17px -24px 0;padding:15px 24px;background:#fdfbfb}.cashbook-dialog-footer .btn{font-size:12px;min-height:36px}#cashbook-dialog button:disabled{opacity:.55;cursor:default}
.cashbook-table-scroll{position:relative}
@media(min-width:1600px){.cashbook-table th:nth-child(5){width:auto}.cashbook-card-balance{font-size:28px}}
@media(max-width:1200px){.cashbook-filter-fields{grid-template-columns:repeat(4,minmax(0,1fr))}.cashbook-filter-fields>.cashbook-field:last-child{grid-column:1/-1}.cashbook-card{padding:15px}.cashbook-card-balance{font-size:22px}.cashbook-card-flow{gap:4px}.cashbook-card-flow b{font-size:11px}}
@media(max-width:760px){.cashbook-page{gap:13px}.cashbook-heading{align-items:flex-start;flex-wrap:wrap}.cashbook-heading h1{font-size:24px}.cashbook-heading p{font-size:10px}.cashbook-heading-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.cashbook-cards{grid-template-columns:1fr;gap:9px}.cashbook-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(135px,1fr);column-gap:10px;padding:14px 16px}.cashbook-card-title{grid-row:1;grid-column:1;justify-content:flex-start;margin:0 0 6px;gap:8px}.cashbook-card-title h2{font-size:14px}.cashbook-box-icon{width:25px;height:25px;order:-1}.cashbook-box-icon svg{width:15px;height:15px}.cashbook-card-label{grid-row:2;grid-column:1;font-size:9px}.cashbook-card-balance{grid-row:3;grid-column:1;font-size:22px;margin-top:1px}.cashbook-card-note{grid-row:4;grid-column:1;font-size:9px;margin:2px 0 0;min-height:0}.cashbook-card-flow{grid-column:2;grid-row:1/5;grid-template-columns:1fr;border-top:0;border-left:1px solid #eee6e6;padding:1px 0 1px 14px;gap:8px;align-content:center}.cashbook-card-flow>span{gap:1px}.cashbook-card-flow b{font-size:12px}.cashbook-filter-fields{grid-template-columns:1fr 1fr;gap:10px}.cashbook-filters{padding:4px 13px 12px}.cashbook-journal-heading{padding:12px 13px 9px}.cashbook-filter-totals{padding:10px 13px;display:grid;grid-template-columns:1fr 1fr;gap:9px 12px;font-size:10px}.cashbook-filter-totals b{display:block;margin:3px 0 0}.cashbook-filter-totals>span:first-child{align-self:center}.cashbook-filter-footer{align-items:flex-end}.cashbook-filter-footer>div{gap:5px}.cashbook-pagination{padding:12px 13px;flex-wrap:wrap;justify-content:center}.cashbook-results{width:100%;text-align:center}.cashbook-page-controls{gap:6px}.cashbook-page-controls .btn{padding:5px 7px}.cashbook-empty{padding:35px 14px}#cashbook-dialog{max-height:calc(100dvh - 20px);max-width:calc(100vw - 20px)}.cashbook-dialog-header{padding:18px 17px 14px}#cashbook-form{padding:17px 17px 0}.cashbook-form-grid{gap:13px 11px}.cashbook-dialog-footer{margin-inline:-17px;padding:13px 17px}.cashbook-dialog-header h2{font-size:18px}}
