.book-workspace{background:#fff;padding:16px 18px;min-height:calc(100vh - 88px);color:#202c3b;font-size:13px}.book-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}.book-top>div{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.book-company{font-size:16px;margin-left:4px}.book-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.book-actions select,.book-actions input,.book-top select,.book-top input{min-height:31px;max-width:310px;padding:4px 8px;border:1px solid #d9dce0;border-radius:2px;background:#fff;color:#263447;font:inherit}.book-tabs{display:flex;gap:0;overflow:auto;border-bottom:2px solid #4bc5c7;margin-bottom:18px}.book-tabs button{border:0;border-right:1px solid #eef0f2;background:#f7f9fa;color:#263447;padding:12px 18px;white-space:nowrap;cursor:pointer;font:inherit}.book-tabs button.active{color:#fff;background:#4bc5c7;font-weight:600}.book-section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px;flex-wrap:wrap}.book-section-head h2{font-size:16px;font-weight:600;margin:0 0 6px}.book-section-head p{font-size:12px;margin:0}.book-badge{display:inline-block;white-space:nowrap;background:#f1f4f6;border:1px solid #e2e7eb;color:#607183;padding:3px 7px;border-radius:3px;font-size:12px}.book-badge.success{color:#28984b;background:#edf9f0;border-color:#d5efdd}.book-badge.pending{color:#c38518;background:#fff9e9;border-color:#f5e8c7}.book-badge.danger{color:#d95448;background:#fff0ee;border-color:#f9d5d1}.book-table{max-width:100%;border:1px solid #d8dce0}.book-table table{width:100%;border-collapse:collapse;white-space:nowrap}.book-table th{background:#4bc5c7;color:#fff;padding:12px 10px;font-weight:500;border-right:1px solid #a2e2e3;text-align:left}.book-table td{padding:9px 10px;border-right:1px solid #d8dce0;border-bottom:1px solid #d8dce0;vertical-align:middle;line-height:1.65}.book-table tbody tr:hover{background:#f1fbfa}.book-table tr:last-child td{border-bottom:0}.book-table td.number{font-variant-numeric:tabular-nums;text-align:right}.book-table td div{min-height:22px}.book-table td.book-empty{text-align:center;color:#8994a1;padding:44px 20px}.book-row-actions{display:flex;gap:6px}.book-source{display:block;font-size:10px;margin-top:3px}.book-void{color:#99a1aa;background:#fafafa}.book-void td:nth-child(3){text-decoration:line-through}.book-section-gap{margin-top:24px}.book-totals{text-align:right;background:#f7fafb;padding:12px 14px;border:1px solid #e5ebef;font-variant-numeric:tabular-nums}.book-foot{border-top:1px solid #edf0f3;font-size:11px;padding-top:12px;margin-top:24px}.book-report-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px}.book-report{border:1px solid #e4e8ec;padding:16px;background:#fff}.book-report h3{font-size:16px;text-align:center;letter-spacing:2px;margin:0 0 18px}.book-report-total{display:flex;flex-direction:column;gap:8px;background:#f7fafb;padding:12px;margin-top:12px}.book-report-total span{display:flex;justify-content:space-between}.book-ok{color:#299b55}.book-warning{color:#c48213}.book-report p{line-height:1.8}.voucher-editor{margin-top:16px;max-height:48vh;overflow:auto}.voucher-editor table,.opening-editor table{width:100%;border-collapse:collapse}.voucher-editor th,.opening-editor th{text-align:left;padding:9px;background:#e6f6f6;font-weight:500}.voucher-editor td,.opening-editor td{padding:5px;border-bottom:1px solid #e1e6eb}.voucher-editor input,.voucher-editor select,.opening-editor input{width:100%;min-width:70px;box-sizing:border-box;padding:7px;border:1px solid #d9dfe4;border-radius:2px;font:inherit;color:#263447;background:#fff}.voucher-editor th:first-child{min-width:220px}.voucher-editor th:nth-child(4){min-width:116px}.opening-editor{max-height:60vh;overflow:auto}.opening-editor td:first-child{min-width:200px}.book-workspace .btn{white-space:nowrap}.book-content .muted{color:#8995a2}.book-content a.btn{text-decoration:none}.book-content{min-height:300px}
@media(max-width:1200px){.book-report-grid{grid-template-columns:1fr}.book-tabs button{padding:11px 13px}.book-company{font-size:14px}.book-workspace{padding:12px}}
.book-maintenance{margin-bottom:12px}.book-selection-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:9px 10px;border:1px solid #d8e8e8;background:#f5fcfc;font-size:12px}.book-maintenance-search{display:flex;align-items:center;gap:6px;margin-right:8px}.book-maintenance-search input{width:210px;max-width:45vw;height:29px;border:1px solid #d6dddd;background:#fff;padding:4px 8px;font:inherit}.book-selection-bar strong{color:#147e80;font-variant-numeric:tabular-nums}.book-selection-bar .link-btn{font-size:12px;white-space:nowrap}.book-delete-button{color:#b84e44!important;border-color:#e9c5c1!important;background:#fff8f7!important}.book-print-all{color:#0f766e!important;border-color:#b7e0df!important;background:#fff!important}.book-selection-bar button:disabled,.book-maintenance-pager button:disabled{opacity:.45;cursor:not-allowed}.book-maintenance-hint{font-size:11px;line-height:1.7;margin:7px 2px}.book-select-cell{width:96px;min-width:96px;text-align:center!important}.book-select-cell label{display:flex;align-items:center;justify-content:center;gap:5px;font-size:11px;cursor:pointer}.book-select-cell input{accent-color:#36b7ba;width:14px;height:14px;cursor:pointer}.book-select-cell input:disabled{cursor:not-allowed}.book-maintenance-pager{display:flex;justify-content:flex-end;align-items:center;gap:10px;flex-wrap:wrap;font-size:12px;padding:9px 3px}.book-maintenance-pager>span:first-child{margin-right:auto;color:#7d8c97}.book-maintenance-pager select{height:28px;border:1px solid #d9dfe4;background:white;font:inherit}.book-maintenance-pager .btn{min-height:28px;padding:3px 9px}.book-bulk-confirm-list{max-height:42vh;overflow:auto;padding:0 0 0 24px;border:1px solid #e2e8eb}.book-bulk-confirm-list li{padding:8px 10px 8px 3px;border-bottom:1px solid #e9edef;line-height:1.6}.book-bulk-confirm-list li strong,.book-bulk-confirm-list li span{display:block}.book-bulk-confirm-list li span{font-size:11px;color:#7e8c97}.book-maintenance .book-void td:nth-child(3){text-decoration:none}.book-maintenance[data-book-maintenance-scope=vouchers] .book-void td:nth-child(4){text-decoration:line-through}
@media print{.print-hide,.topbar,.sidebar,.app-sidebar,.app-header,.toast-container,.modal-backdrop{display:none!important}.book-workspace{margin:0;padding:0;min-height:0;font-size:10px}.book-table{overflow:visible!important}.book-table table{white-space:normal!important}.book-table th{background:#e4f4f4!important;color:#111!important}.book-table td,.book-table th{padding:4px}.book-report-grid{display:block}.book-report{break-inside:avoid;margin-bottom:16px}.book-row-actions{display:none}.book-foot{font-size:9px}@page{size:A4 landscape;margin:10mm}}
/* Keep light editor tables readable instead of inheriting white global headers. */
.modal .voucher-editor th,.modal .opening-editor th{color:#000}
.modal .voucher-editor input,.modal .voucher-editor select,.modal .opening-editor input{color:#000}
.modal .voucher-editor input::placeholder,.modal .opening-editor input::placeholder{color:#4b5563;opacity:1}
/* All voucher form text must stay readable on the light dialog surface. */
.modal-body:has(.voucher-editor){color:#000}
.modal-body:has(.voucher-editor) :is(.field,.field>span,input,select,.muted,.book-warning,.book-ok){color:#000}
.modal-body:has(.voucher-editor) input::placeholder{color:#000;opacity:1}
.modal .voucher-editor th{font-size:14px;font-weight:600}
/* Voucher columns fit a desktop dialog and remain scrollable on smaller screens. */
.modal.wide-modal:has(.voucher-editor){width:1180px}
.modal .voucher-editor table{table-layout:fixed;min-width:960px}
.modal .voucher-editor th{min-width:0;white-space:nowrap}
.modal .voucher-editor :is(input,select){min-width:0;font-size:13px}
.modal .voucher-editor .voucher-col-summary{width:23%}
.modal .voucher-editor .voucher-col-account{width:28%}
.modal .voucher-editor .voucher-col-amount{width:13%}
.modal .voucher-editor .voucher-col-cashflow{width:16%}
.modal .voucher-editor .voucher-col-actions{width:7%}
.modal .voucher-editor :is(.voucher-debit,.voucher-credit){text-align:right;font-variant-numeric:tabular-nums}
.modal .voucher-editor .voucher-remove{padding:5px 8px}
/* Opening balances use the same high contrast text as voucher entry. */
.modal-body:has(.opening-editor){color:#000}
.modal-body:has(.opening-editor) :is(.field,.field>span,input,select,.muted,.opening-editor td){color:#000}
.modal .opening-editor th{color:#000;font-size:14px;font-weight:600}
.modal .opening-editor input::placeholder{color:#000;opacity:1}
.period-check-message,.period-check-level{cursor:help}
.period-check-popup{position:fixed;z-index:80;box-sizing:border-box;width:min(880px,calc(100vw - 32px));max-height:min(70vh,640px);overflow:auto;padding:14px 16px;background:#fff;border:1px solid #d7deea;border-radius:10px;box-shadow:0 16px 40px rgba(20,32,51,.18);color:#1d2430}
.period-check-popup[hidden]{display:none!important}
.period-check-heading{display:flex;justify-content:space-between;gap:12px;align-items:baseline;margin-bottom:8px}
.period-check-heading small,.period-check-footer{color:#667085;font-size:12px}
.period-check-where,.period-check-reason,.period-check-next{margin:8px 0;line-height:1.5}
.period-check-grid{overflow:auto;max-height:280px;border:1px solid #e6ebf2;border-radius:8px}
.period-check-grid table{width:100%;border-collapse:collapse;font-size:13px}
.period-check-grid th,.period-check-grid td{padding:6px 8px;border-bottom:1px solid #eef2f6;text-align:left;white-space:nowrap}
.period-check-grid td.number{text-align:right;font-variant-numeric:tabular-nums}
.period-check-footer{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:10px}
.period-check-open{border:1px solid #c5d0e0;background:#f7f9fc;border-radius:6px;padding:4px 8px;cursor:pointer}
.period-check-link{display:inline-block;color:#096b72;font-weight:600;text-decoration:underline;text-underline-offset:3px;padding:3px 2px}
.period-check-link:focus-visible{outline:2px solid #13868e;outline-offset:2px}
.period-review-actions{display:inline-flex;align-items:center;flex-wrap:wrap;gap:8px}
.period-check-hint{margin-left:8px;color:#667085;font-size:12px}
.book-table [data-period-check]>td:nth-child(2){text-align:left;white-space:normal}
.period-check-inline{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;margin:6px 0;color:#44566b;line-height:1.6}
.period-check-inline span:first-child{font-weight:500}
.period-check-inline span:empty{display:none}
.modal:has(.period-close-issue){width:820px}
.period-close-dialog{line-height:1.55}
.period-close-account{margin:0 0 10px;color:#536478}
.period-close-heading{margin:0 0 12px;font-size:16px;color:#953931}
.period-close-issue{border:1px solid #dce3eb;border-radius:7px;padding:12px 14px;margin:0 0 12px}
.period-close-issue header{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 14px;align-items:center}
.period-close-issue h3{margin:0;font-size:15px}
.period-close-issue p{margin:7px 0}
.period-close-action strong{margin-right:5px}
.period-close-issue .period-check-open,.period-check-inline .period-check-open{background:#f0f8f8;color:#176568;border-color:#a6cece}
.period-close-issue .period-check-grid{margin-top:9px;max-height:235px}
.period-close-issue .period-check-grid th,.period-close-issue .period-check-grid td{height:auto}
.period-close-issue .period-check-grid td:not(.number){white-space:normal;overflow-wrap:anywhere}
.period-close-issue small,.period-close-next{display:block;margin:8px 0 0;color:#536478}
.period-close-reviews{margin-top:12px}
.period-close-reviews>summary{cursor:pointer;font-weight:600;margin-bottom:8px}
.statutory-sheet{overflow:auto}
.statutory-sheet table{min-width:920px}
.statutory-notes{margin:12px 0 0;color:#667085;font-size:12px}
.statutory-notes li{margin:4px 0}
