#bookkeepingPanel{padding:20px;max-width:100%;box-sizing:border-box}.book-head,.book-toolbar,.book-filters,.book-pagination{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:18px}.book-head h2{margin:0 0 6px}.book-head span,.book-info,.book-table small{color:#566780}.book-info{padding:14px;border-left:4px solid #d2ae37;background:#fff8dd;font-size:14px;line-height:1.5}.book-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:20px 0}.book-cards article{background:white;border:1px solid #d1dce9;border-radius:12px;padding:18px;display:grid;gap:8px}.book-cards b{font-size:25px;color:#173e68}.book-cards span,.book-cards small{font-size:14px}.book-attention{border-color:#d9ac36!important}.book-warnings{background:#fff5d5;padding:12px;border-radius:8px;margin:12px 0}.book-warnings ul{max-height:240px;overflow:auto}.book-table-wrap{max-width:100%;border:1px solid #ccd7e4;border-radius:10px;overflow:auto}.book-table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:14px}.book-table th{background:#173e68;color:white;padding:12px 8px;text-align:left}.book-table th:nth-child(1){width:9%}.book-table th:nth-child(2){width:35%}.book-table th:nth-child(3),.book-table th:nth-child(4){width:9%}.book-table th:nth-child(5){width:15%}.book-table th:nth-child(6){width:7%}.book-table th:nth-child(7){width:16%}.book-table td{padding:12px 8px;border-top:1px solid #dbe3ee;vertical-align:top;overflow-wrap:anywhere;background:#fff}.book-table small{display:block;margin-top:6px}.book-number{text-align:right;font-variant-numeric:tabular-nums}.book-link,.book-description{border:0;background:transparent;color:#184e80;text-align:left;padding:0;font:inherit;cursor:pointer}.book-description{font-weight:700}.book-sources{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px;font-size:13px}.book-receipt{padding:3px 7px;border:1px solid #94c5aa;background:#e4f4eb;color:#17613b;border-radius:5px}.book-state{font:inherit;white-space:normal;padding:6px 8px;border:1px solid #ccd7e4;border-radius:6px;background:#f4f7fb}.book-private td{background:#f0f0f3;color:#61616f}.book-excluded{opacity:.55}.book-filters input,.book-filters select{padding:10px;border:1px solid #bdcad9;border-radius:7px}.book-pagination{justify-content:flex-end;margin-top:16px}.book-summary{background:white;padding:22px;border:1px solid #d1dce9;border-radius:10px}.book-summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:30px}.book-summary table{border-collapse:collapse;width:100%}.book-summary td,.book-summary th{padding:9px;border-bottom:1px solid #dbe3ee;text-align:left}.book-summary th{background:#e8eef5}.book-dialog{width:min(740px,94vw);max-height:90vh;border:0;border-radius:12px;padding:25px;box-sizing:border-box}.book-dialog::backdrop{background:#10294088}.book-edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.book-dialog label{display:grid;gap:7px;margin:12px 0}.book-dialog input:not([type=checkbox]),.book-dialog select,.book-dialog textarea{width:100%;box-sizing:border-box;padding:10px;border:1px solid #b9c7d8;border-radius:6px;font:inherit}.book-dialog .book-check{display:flex;align-items:center;gap:10px}.book-check input{width:18px;height:18px}.book-dialog p{font-size:14px}.book-company-action{white-space:normal;width:100%;padding:7px 6px;border:1px solid #b5c9da;border-radius:6px;background:#eef5fa;color:#173e68;font-size:13px;line-height:1.3}.documents-company-table{min-width:0;table-layout:fixed}.documents-company-table td,.documents-company-table th{padding:10px 7px;overflow-wrap:anywhere}.documents-company-table th:first-child{width:23%}.documents-company-table th:nth-child(2),.documents-company-table td:nth-child(2){width:17%}.documents-company-vat{min-width:0}.documents-company-table th:nth-child(3){width:11%}.documents-company-table th:nth-child(4),.documents-company-table th:nth-child(5),.documents-company-table th:nth-child(6){width:7%}.documents-company-table th:nth-child(7),.documents-company-table th:nth-child(8){width:14%}@media(max-width:800px){.book-cards{grid-template-columns:1fr 1fr}.book-summary-grid,.book-edit-grid{grid-template-columns:1fr}.book-table{min-width:760px}.documents-company-table{min-width:850px}}

.book-table th:first-child{width:4%}.book-table th:nth-child(2){width:9%}.book-table th:nth-child(3){width:31%}.book-table th:nth-child(4),.book-table th:nth-child(5){width:9%}.book-table th:nth-child(6){width:15%}.book-table th:nth-child(7){width:7%}.book-table th:nth-child(8){width:16%}.book-table input[type=checkbox],.bank-transactions input[type=checkbox]{width:18px;height:18px}.bank-excluded td{opacity:.5}.book-toolbar select{max-width:230px;padding:8px}.bank-actions select{max-width:260px;padding:8px}

.book-table th:nth-child(1){width:3%}.book-table th:nth-child(2){width:9%}.book-table th:nth-child(3){width:20%}.book-table th:nth-child(4){width:23%}.book-table th:nth-child(5),.book-table th:nth-child(6){width:8%}.book-table th:nth-child(7){width:15%}.book-table th:nth-child(8){width:6%}.book-table th:nth-child(9){width:8%}.book-sort{border:0;background:transparent;color:inherit;font:inherit;font-weight:700;text-align:left;padding:0;cursor:pointer;white-space:normal}.book-sort span{font-size:11px}.book-inline-category,.book-inline-percent{box-sizing:border-box;width:100%;min-width:0;padding:7px 4px;border:1px solid #b9c7d8;border-radius:6px;background:white;color:#173e68;font:inherit}.book-inline-category{font-size:13px}.book-inline-percent{font-variant-numeric:tabular-nums}.book-sources{margin-top:0}#bookBulkPercent{width:76px;padding:7px;border:1px solid #b9c7d8;border-radius:6px}

.book-tabs{display:flex;gap:8px;margin:16px 0}.book-tabs button{border:1px solid #bdcad9;border-radius:7px;background:#fff;color:#173e68;padding:9px 15px;font:inherit;cursor:pointer}.book-tabs button[aria-selected="true"]{background:#173e68;border-color:#173e68;color:#fff}.book-filters label{display:flex;align-items:center;gap:8px}.book-table .book-group td{background:#e8eef5;padding:8px;border-top:2px solid #cbd7e5;vertical-align:middle}.book-group button{border:0;background:transparent;color:#173e68;font:inherit;font-weight:700;text-align:left;cursor:pointer;width:100%;padding:4px}.book-group button span{display:inline-block;width:18px}.book-tabs button:focus-visible,.book-group button:focus-visible{outline:2px solid #d2ae37;outline-offset:2px}

.book-review-scroll{max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow:auto;position:relative;isolation:isolate;border:1px solid #ccd7e4;border-radius:10px;scroll-padding-top:calc(var(--book-actions-height,80px) + 54px)}.book-review-scroll .book-sticky-actions{position:sticky;top:0;left:0;z-index:4;background:#f2f6fc;margin:0;padding:12px 8px;border-bottom:1px solid #ccd7e4;box-shadow:0 2px 4px #173e6812}.book-review-scroll .book-table-wrap{overflow:visible;border:0;border-radius:0}.book-review-scroll .book-table{border-collapse:separate;border-spacing:0}.book-review-scroll .book-table th{position:sticky;top:var(--book-actions-height,80px);z-index:3;background:#173e68;box-shadow:0 1px 0 #ccd7e4}.book-review-scroll:focus-visible{outline:2px solid #d2ae37;outline-offset:2px}

.book-bulk-message:not(:empty){flex-basis:100%;font-weight:600;color:#173e68;padding:4px 0}.book-bulk-message:empty{display:none}

.book-inline-amount{box-sizing:border-box;width:100%;min-width:0;padding:7px 4px;border:1px solid #b9c7d8;border-radius:6px;background:#fff;color:#173e68;font:inherit;text-align:right;font-variant-numeric:tabular-nums}.book-inline-amount:focus{outline:2px solid #d2ae37;outline-offset:1px}

/* Fit bookkeeping and report tables to the available page width. */
#bookkeepingPanel{min-width:0;width:100%}#bookkeepingPanel table{min-width:0;width:100%;max-width:100%}#bookkeepingPanel .book-table th,#bookkeepingPanel .book-table td{min-width:0;white-space:normal;overflow-wrap:anywhere}#bookkeepingPanel .book-table button{max-width:100%;overflow-wrap:anywhere}#bookkeepingPanel .book-toolbar>*,#bookkeepingPanel .book-filters>*{min-width:0;max-width:100%}#bookkeepingPanel .book-filters label{flex-wrap:wrap}#bookkeepingPanel .book-tabs{flex-wrap:wrap}#bookkeepingPanel .book-table th:nth-child(4){width:19%}#bookkeepingPanel .book-table th:nth-child(5),#bookkeepingPanel .book-table th:nth-child(6){width:10%}#bookkeepingPanel .book-table th,#bookkeepingPanel .book-table td{padding:10px 5px}
@media(max-width:650px){#bookkeepingPanel{padding:8px}.book-report{padding:12px}.book-report .report-table{font-size:12px}.report-totals{grid-template-columns:1fr}.book-table input{padding:6px 2px}}

.book-table .book-manual-row td{background:#fff8dd;border-top:2px solid #d2ae37}.book-manual-row input:not([type=checkbox]),.book-manual-row textarea,.book-manual-row select{box-sizing:border-box;width:100%;min-width:0;padding:7px 4px;border:1px solid #b9c7d8;border-radius:6px;font:inherit;background:white;color:#173e68}.book-manual-row textarea{resize:vertical}.book-manual-paid{display:flex;align-items:flex-start;gap:4px;font-size:13px}.book-manual-paid input{flex-shrink:0}.book-manual-row button{margin-top:6px;padding:6px;font:inherit}.book-manual-row [role=alert]{color:#b42318;font-size:13px}.book-manual-row input:focus,.book-manual-row textarea:focus,.book-manual-row select:focus{outline:2px solid #d2ae37;outline-offset:1px}
