.cb-workspace{display:flex;flex-direction:column;gap:16px;min-width:0}.cb-workspace .page-head{margin-bottom:0}.cb-help{color:var(--ui-text-secondary,#64748b);font-size:13px;line-height:1.6;margin:0}.cb-tabs{display:flex;gap:8px}.cb-filters{display:flex;align-items:end;flex-wrap:wrap;gap:12px}.cb-field{display:flex;flex-direction:column;gap:6px;min-width:0;color:var(--ui-text-secondary,#64748b);font-size:13px}.cb-field input,.cb-field select,.cb-field textarea{width:100%;box-sizing:border-box;min-height:36px;color:var(--ui-text-primary,#1e293b)}.cb-filters .cb-field{width:140px}.cb-filters .cb-field:last-of-type{width:230px}.cb-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--ui-border-default,#e2e8f0);background:var(--ui-bg-surface,#fff);border-radius:6px}.cb-totals>div{padding:14px 18px;display:grid;gap:6px}.cb-totals span{font-size:13px;color:var(--ui-text-secondary,#64748b)}.cb-totals strong{font-size:21px;font-variant-numeric:tabular-nums}.cb-scroll{overflow:auto;max-height:calc(100vh - 420px);min-height:140px;background:var(--ui-bg-surface,#fff)}.cb-scroll table{min-width:900px;width:100%}.cb-scroll td{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;height:42px}.cb-scroll th{white-space:nowrap}.cb-scroll .row-actions{white-space:nowrap;max-width:none}.cb-scroll .row-actions button{font-size:12px;padding:5px 8px}.cb-scroll td:nth-child(4){text-align:right;font-variant-numeric:tabular-nums}.cb-pagination{display:flex;gap:12px;align-items:center;justify-content:flex-end;flex-wrap:wrap}.cb-pagination small{margin-right:auto;color:var(--ui-text-secondary,#64748b)}.cb-state{padding:32px;text-align:center}.cb-dialog{width:min(720px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;overflow:auto}.cb-dialog form{max-height:calc(100dvh - 32px);display:flex;flex-direction:column}.cb-dialog .dialog-head,.cb-dialog .dialog-actions{flex-shrink:0}.cb-form{padding:20px 24px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;overflow:auto}.cb-wide{grid-column:1/-1}.cb-dialog .cb-error{padding:0 24px;margin:0;flex-shrink:0}.cb-metadata{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;margin:0}.cb-metadata dt{font-size:12px;color:var(--ui-text-secondary,#64748b)}.cb-metadata dd{margin:6px 0 0;overflow-wrap:anywhere;white-space:pre-wrap}.cb-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}.cb-dialog summary{cursor:pointer;padding:8px 0}.cb-workspace [role=tab][aria-selected=true]{font-weight:600}@media(max-width:760px){.cb-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.cb-form,.cb-metadata{grid-template-columns:minmax(0,1fr)}.cb-filters .cb-field{flex:1 1 130px}.cb-scroll{max-height:55vh}.cb-workspace .page-actions{flex-wrap:wrap}}
.content[data-page="cashbook"]{box-sizing:border-box;height:calc(100dvh - var(--ui-header-height,56px) - var(--cb-preview-offset,0px));overflow:hidden;display:flex;flex-direction:column}
.content[data-page="cashbook"]>.cb-workspace{flex:1;min-height:0;gap:12px}
.cb-workspace>.page-head,.cb-workspace>.cb-help,.cb-workspace>.cb-tabs,.cb-workspace>.cb-filters,.cb-workspace>.cb-totals,.cb-workspace>.cb-pagination{flex-shrink:0}
.cb-workspace .cb-scroll{flex:1;min-height:70px;max-height:none;overscroll-behavior:contain}
.cb-filters .cb-field{font-weight:400;width:132px;margin:0}
.cb-project-picker{position:relative}.cb-project-options{position:absolute;top:calc(100% + 4px);left:0;z-index:30;width:100%;min-width:240px;box-sizing:border-box;max-height:200px;overflow:auto;overscroll-behavior:contain;border:1px solid var(--ui-border-default,#e2e8f0);border-radius:4px;background:var(--ui-bg-surface,#fff);padding:4px;color:var(--ui-text-primary,#1e293b)}.cb-project-options[hidden],.cb-project-option[hidden]{display:none}.cb-project-option{display:flex;gap:8px;align-items:center;justify-content:space-between;padding:8px;min-height:36px;box-sizing:border-box;cursor:pointer;overflow-wrap:anywhere;line-height:1.5}.cb-project-option:hover,.cb-project-option[aria-selected=true]{background:var(--ui-bg-subtle,#f1f5f9)}.cb-project-option small{color:var(--ui-text-secondary,#64748b);white-space:nowrap}.cb-project-options>p{padding:8px;margin:0}
.cb-filters input,.cb-filters select{height:36px;min-height:36px;padding:6px 10px;font-weight:400;font-size:14px;margin:0}
.cb-filters>button{height:36px;min-height:36px;max-height:36px;margin:0;box-sizing:border-box}
.cb-workspace .page-actions{align-items:center;gap:8px}
.cb-workspace .page-actions>button{height:36px;min-height:36px;max-height:36px;box-sizing:border-box}
.cb-workspace .page-head h1{margin-top:0}
.cb-scroll .row-actions{display:table-cell;text-align:center;white-space:nowrap}
[data-cb-current="entries"] .cb-scroll table{table-layout:fixed;min-width:1120px}
[data-cb-current="entries"] th:nth-child(1){width:108px}
[data-cb-current="entries"] th:nth-child(2){width:64px}
[data-cb-current="entries"] th:nth-child(3){width:96px}
[data-cb-current="entries"] th:nth-child(4){width:124px;text-align:right}
[data-cb-current="entries"] th:nth-child(5){width:165px}
[data-cb-current="entries"] th:nth-child(6){width:135px}
[data-cb-current="entries"] th:nth-child(7){width:88px}
[data-cb-current="entries"] th:nth-child(8){width:auto}
[data-cb-current="entries"] th:nth-child(9){width:74px}
[data-cb-current="entries"] th:nth-child(10){width:170px;text-align:center}
[data-cb-current="summary"] .cb-scroll th:nth-child(n+2),[data-cb-current="summary"] .cb-scroll td:nth-child(n+2){text-align:right;font-variant-numeric:tabular-nums}
[data-cb-current="projects"] .cb-scroll th:last-child,[data-cb-current="projects"] .cb-scroll td:last-child{width:100px;text-align:center}
.cb-scroll th{position:sticky;top:0;z-index:1;background:var(--ui-bg-subtle,#f8fafc)}
.cb-dialog .cb-field{font-weight:400;margin:0}
.cb-dialog .cb-field input,.cb-dialog .cb-field select{height:36px;min-height:36px;margin:0;padding:6px 10px;line-height:22px;font-size:14px;font-weight:400}
.cb-dialog .cb-field textarea{font-weight:400;font-size:14px;resize:vertical}
.cb-dialog .cb-field:has(textarea){grid-column:1/-1}
.cb-scroll td{padding:4px 10px;height:42px}
.cb-scroll .row-actions button{height:28px;min-height:28px;padding:4px 6px}
.cb-tabs button:focus-visible,.cb-workspace button:focus-visible,.cb-dialog button:focus-visible{outline:2px solid var(--ui-primary-600,#2563eb);outline-offset:2px}
.cb-invoice-panel{border-top:1px solid var(--ui-border-default,#e2e8f0);padding-top:8px;min-width:0}.cb-invoice-panel>details>summary{font-weight:600;color:var(--ui-text-primary,#1e293b)}.cb-invoice-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;margin:16px 0}.cb-invoice-actions{display:flex;gap:8px;align-items:end;flex-wrap:wrap;margin:12px 0}.cb-invoice-actions button,.cb-upload{min-height:36px;margin:0;font-size:13px}.cb-upload{display:inline-flex;align-items:center;position:relative;padding:6px 12px;border:1px solid var(--ui-border-default,#e2e8f0);border-radius:4px;cursor:pointer;font-weight:400;box-sizing:border-box}.cb-upload input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.cb-upload:focus-within{outline:2px solid var(--ui-primary-600,#2563eb);outline-offset:2px}.cb-page{width:80px}.cb-invoice-file{overflow-wrap:anywhere;font-size:13px}.cb-invoice-file img{display:block;max-width:100%;max-height:240px;object-fit:contain;border:1px solid var(--ui-border-default,#e2e8f0);margin:12px auto}.cb-check{display:flex;align-items:flex-start;gap:8px;margin:12px 0;font-size:13px;font-weight:400;line-height:1.6}.cb-check input[type=checkbox]{width:16px;height:16px;min-height:16px;flex:none;margin:2px 0 0}.cb-invoice-panel .cb-help{margin:8px 0}.cb-ocr-text pre{max-height:200px;overflow:auto;background:var(--ui-bg-subtle,#f8fafc);padding:10px}.cb-invoice-duplicate:not(:empty){font-weight:600;color:var(--ui-text-primary,#1e293b)}
@media(max-width:560px){.cb-invoice-fields{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){.content[data-page="cashbook"]{height:auto;overflow:visible}.cb-workspace .cb-scroll{flex:auto;max-height:55vh}.cb-workspace .page-head{flex-wrap:wrap}}
