.cashbook-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin:24px 0}.cashbook-stats .stat{min-width:0}.cashbook-stats .stat-value{font-size:23px;overflow-wrap:anywhere}.cashbook-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.cashbook-toolbar .filters{flex:1}.cashbook-toolbar input{max-width:280px}.cashbook-tabs{display:flex;gap:5px;align-items:center;border-bottom:1px solid var(--border);padding:0 20px}.cashbook-tabs a{display:block;padding:16px 15px;border-bottom:2px solid transparent;color:var(--muted)}.cashbook-tabs a.active{border-color:var(--accent);color:var(--accent);font-weight:600}.cashbook-table{white-space:normal;min-width:760px}.cashbook-table .row-title{white-space:normal;overflow-wrap:anywhere}.cashbook-table td{vertical-align:top}.cashbook-table td:first-child{width:24%}.cashbook-table small{display:block}.cashbook-info{font-size:12px;color:var(--muted)}.cashbook-detail .kvs dd{overflow-wrap:anywhere}.cashbook-record{padding:14px 0;border-bottom:1px solid var(--border)}.cashbook-record:last-child{border-bottom:0}.cashbook-record-head{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.cashbook-record p{margin-top:5px;white-space:pre-wrap}.cashbook-subtitle{margin:23px 0 10px;font-weight:600;font-size:14px}.cashbook-preview{padding:14px;background:var(--accent-soft);border:1px solid var(--accent-border);border-radius:8px;margin:14px 0}.cashbook-details{border-top:1px solid var(--border);margin-top:16px;padding-top:12px}.cashbook-details>summary{cursor:pointer;font-size:12px;color:var(--muted);padding:9px 0}.cashbook-details[open]>summary{margin-bottom:12px}.cashbook-form .form-grid [hidden]{display:none}.cashbook-pending-notice{display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid #e6d9bd;border-radius:9px;padding:14px 18px;background:#fffaf1;margin:18px 0}.cashbook-pending-notice p{font-size:12px}.cashbook-dialog{max-width:680px;width:calc(100% - 28px)}.cashbook-dialog .form-note{margin-bottom:16px}.cashbook-links{display:flex;gap:8px;flex-wrap:wrap}.cashbook-ledger-note{padding:12px 22px;border-top:1px solid var(--border);font-size:11px;color:var(--muted)}.cashbook-recover{color:var(--danger)}.cashbook-chip{font-size:11px;display:inline-block;margin-right:5px;border-radius:4px;padding:2px 7px;background:#eef2f5;color:#5b6972}.cashbook-chip.unpaid{background:#fff5e5;color:#936b29}.cashbook-chip.void{background:#fbeef0;color:#a44859}.cashbook-empty{padding:35px 20px}.cashbook-empty p{margin-bottom:14px}
@media(max-width:1150px){.cashbook-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.cashbook-stats .stat-value{font-size:21px}}
.cashbook-receipt-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(170px,100%),1fr));gap:14px;margin-bottom:12px}.cashbook-receipt-card{min-width:0;border:1px solid var(--border);border-radius:9px;overflow:hidden;background:#fff}.cashbook-receipt-thumb{display:flex;align-items:center;justify-content:center;width:100%;height:156px;padding:9px;background:#f6f8fa;border:0;border-bottom:1px solid var(--border);cursor:zoom-in}.cashbook-receipt-thumb:focus-visible{outline:3px solid var(--accent);outline-offset:-3px}.cashbook-receipt-image{display:block;max-width:100%;max-height:100%;object-fit:contain}.cashbook-receipt-image[hidden]{display:none}.cashbook-receipt-thumb .cashbook-receipt-image{width:100%;height:100%}.cashbook-receipt-fallback{padding:16px;font-size:12px;color:var(--muted);line-height:1.8;text-align:center}.cashbook-receipt-meta{padding:11px 12px}.cashbook-receipt-name{display:block;font-size:12px;line-height:1.7;overflow-wrap:anywhere}.cashbook-receipt-links{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:7px;font-size:11px}.cashbook-receipt-links small{color:var(--muted)}.cashbook-receipt-links a,.cashbook-receipt-preview-note a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}.cashbook-receipt-dialog{width:960px}.cashbook-receipt-dialog .modal-body{padding:18px 25px;max-height:calc(90vh - 155px)}.cashbook-receipt-preview-name{font-size:13px;overflow-wrap:anywhere;margin-bottom:14px}.cashbook-receipt-large{min-height:150px;display:flex;justify-content:center;align-items:flex-start;background:#f6f8fa;border:1px solid var(--border);border-radius:7px;padding:12px}.cashbook-receipt-large .cashbook-receipt-image{width:auto;height:auto;max-height:none}.cashbook-receipt-preview-note{font-size:11px;line-height:1.8;color:var(--muted);margin-top:13px}.cashbook-receipt-preview-note a{display:inline-block;margin-left:10px}
@media(max-width:680px){.cashbook-receipt-grid{gap:10px;grid-template-columns:repeat(auto-fill,minmax(min(145px,100%),1fr))}.cashbook-receipt-thumb{height:144px}.cashbook-receipt-meta{padding:10px}.cashbook-receipt-dialog .modal-body{padding:16px 19px}.cashbook-receipt-large{padding:5px}}
@media(max-width:680px){.cashbook-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0}.cashbook-stats .stat{padding:17px 13px}.cashbook-stats .stat-value{font-size:20px}.cashbook-toolbar{align-items:stretch}.cashbook-toolbar .filters{width:100%;flex:none}.cashbook-toolbar input{max-width:none;min-width:0;flex:1}.cashbook-toolbar .filters select{max-width:160px}.cashbook-tabs{padding:0 10px}.cashbook-tabs a{padding:14px 12px}.cashbook-pending-notice{align-items:flex-start;flex-direction:column}.cashbook-detail .detail-layout{display:flex;flex-direction:column}.cashbook-record-head{align-items:flex-start}.cashbook-dialog .modal-footer{flex-wrap:wrap}.cashbook-ledger-note{padding:12px 18px}}
@media(max-width:680px){.cashbook-table{display:block;min-width:0;width:100%;white-space:normal}.cashbook-table thead{display:none}.cashbook-table tbody{display:block}.cashbook-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:12px 14px;border-bottom:1px solid var(--border);gap:10px 14px}.cashbook-table td{display:block;padding:0!important;border:0!important;min-width:0;overflow-wrap:anywhere;text-align:left!important}.cashbook-table td:first-child{width:auto;grid-column:1/-1}.cashbook-table td:last-child{grid-column:1/-1}.cashbook-table td[data-label]:before{content:attr(data-label);display:block;font-size:10px;color:var(--muted);margin-bottom:3px;font-weight:400}.cashbook-table .btn{min-height:34px}.cashbook-table .row-sub{white-space:normal}.cashbook-table tr:hover{background:transparent}}
.cashbook-stats{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.cashbook-more-actions{max-width:100%}.cashbook-more-actions>summary{cursor:pointer;list-style-position:inside;border:1px solid var(--border);border-radius:7px;padding:10px 14px;font-size:12px;background:#fff;color:var(--text);white-space:nowrap}.cashbook-more-actions[open]{flex-basis:100%}.cashbook-more-actions[open]>summary{display:inline-block;margin-bottom:10px}.cashbook-more-actions>.actions{padding:12px;border:1px solid var(--border);border-radius:8px;background:#fff}.cashbook-preview.is-invalid{color:var(--danger);background:#fff4f5;border-color:#eccbd0}.cashbook-form>.modal-body>.cashbook-details{margin-top:10px}.cashbook-detail .cashbook-details{margin-top:0;padding-top:0;border-top:0}
@media(max-width:680px){.cashbook-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.cashbook-more-actions>.actions{align-items:stretch}.cashbook-more-actions>.actions>.btn{flex:1;min-width:115px}.cashbook-more-actions>summary{min-height:40px}.cashbook-detail .page-heading>.actions{width:100%}.cashbook-dialog .form-grid{grid-template-columns:1fr}}
.cashbook-style-filter{display:inline-flex;align-items:center;gap:8px;max-width:100%;font-size:12px;overflow-wrap:anywhere;color:var(--accent);border:1px solid var(--accent-border);border-radius:6px;padding:3px 4px 3px 10px;background:var(--accent-soft)}.cashbook-style-filter .btn{flex-shrink:0}.cashbook-tabs{flex-wrap:wrap}.cashbook-tabs a{white-space:nowrap}
@media(max-width:680px){.cashbook-style-filter{width:100%;justify-content:space-between}.cashbook-tabs a{padding:14px 10px}}
