#finance-receipts-view #receipts-body td:nth-child(2)>strong,#finance-receipts-view #receipts-body td:nth-child(2)>small{display:block;line-height:1.45;white-space:normal;overflow-wrap:anywhere}
#finance-receipts-view #receipts-body td:nth-child(2)>small{margin-top:2px;color:var(--ui-muted);font-size:calc(8px + var(--ui-font-step))}

/* Receivables ageing is a separate, bounded summary owned by the finance screen. */
#finance-view .ar-aging-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-block:4px}
#finance-view .ar-aging-card{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;padding:6px 8px;border:1px solid var(--ui-line);border-inline-start:3px solid #8ab7d6;border-radius:var(--ui-radius);background:#fff}
#finance-view .ar-aging-card>div{display:grid;gap:2px;min-width:0}#finance-view .ar-aging-card :is(span,strong,small){display:block;overflow-wrap:anywhere;line-height:1.45}#finance-view .ar-aging-card span{color:var(--ui-text);font-size:calc(9px + var(--ui-font-step));font-weight:700}#finance-view .ar-aging-card strong{color:var(--ui-navy);font-size:calc(11px + var(--ui-font-step));font-variant-numeric:tabular-nums}#finance-view .ar-aging-card small{color:var(--ui-muted);font-size:calc(8px + var(--ui-font-step))}#finance-view .ar-aging-card>b{display:grid;place-items:center;flex:none;min-width:24px;min-height:24px;padding:2px 4px;border-radius:5px;background:var(--ui-blue-soft);color:var(--ui-blue);font-size:calc(10px + var(--ui-font-step))}#finance-view .ar-aging-card.overdue{border-inline-start-color:#d7ae5f}#finance-view .ar-aging-card.critical{border-inline-start-color:#c78086}
@media(max-width:760px){#finance-view .ar-aging-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Treasury create/edit/saved documents share one viewport-contained composition. */
.treasury-movement-modal .treasury-movement-modal-card{display:flex;flex-direction:column;width:min(940px,calc(100vw - 24px));max-height:calc(100dvh - 24px);min-height:0;padding:0;overflow:hidden}
.treasury-movement-modal-card>.modal-header{flex:0 0 auto;min-height:42px;padding:7px 11px;border-bottom:1px solid var(--ui-line)}
.treasury-movement-modal-card .modal-header h2{margin:0;font-size:calc(14px + var(--ui-font-step));line-height:1.4}
.treasury-movement-modal-card .modal-header .eyebrow{margin:0 0 2px;font-size:calc(9px + var(--ui-font-step));color:var(--ui-muted)}
.treasury-movement-modal-card .treasury-movement-form{display:flex;flex-direction:column;min-height:0;margin:0;padding:0;overflow:hidden;border:0;background:var(--ui-surface)}
#accounting-treasury-transaction-form{display:flex;flex-direction:column;min-height:0;overflow:hidden}
#accounting-treasury-transaction-form>.treasury-movement-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:10px 12px;min-height:0;margin:0;padding:12px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
#accounting-treasury-transaction-form .treasury-movement-fields>label{display:flex;flex-direction:column;align-items:stretch;gap:4px;min-width:0;margin:0;font-size:calc(11px + var(--ui-font-step));line-height:1.5}
#accounting-treasury-transaction-form .treasury-movement-fields>label>span{font-weight:700;color:var(--ui-text)}
#accounting-treasury-transaction-form .wide{grid-column:1/-1}
#accounting-treasury-transaction-form :is(input:not([type=checkbox]),select,.smart-select,.smart-select-input){width:100%;min-width:0;max-width:100%;font-size:calc(12px + var(--ui-font-step))}
#accounting-treasury-transaction-form :is(input:not([type=checkbox]),select,.smart-select-input){height:32px;min-height:32px}
#accounting-treasury-transaction-form input[type=number]{direction:ltr;text-align:right;font-variant-numeric:tabular-nums}
#accounting-treasury-transaction-form .form-message{margin:0;padding:7px 9px;font-size:calc(11px + var(--ui-font-step));line-height:1.6;color:var(--ui-muted);border:1px solid var(--ui-line);border-radius:5px;background:var(--ui-surface-2)}
#accounting-treasury-transaction-form>.treasury-movement-actions,.treasury-saved-document>.modal-actions{display:flex;flex:0 0 auto;justify-content:flex-end;gap:6px;min-height:43px;margin:0;padding:7px 11px;border-top:1px solid var(--ui-line);background:var(--ui-surface-2)}
.treasury-movement-modal-card .treasury-saved-document{display:flex;flex-direction:column;min-height:0;overflow:hidden}
.treasury-saved-document .treasury-save-confirmation{display:flex;align-items:center;flex-wrap:wrap;gap:5px 12px;flex-shrink:0;margin:10px 12px 0;padding:8px 10px;border:1px solid #cfe5d9;border-radius:5px;background:#f2faf5;color:#28684b;font-size:calc(11px + var(--ui-font-step))}
.treasury-saved-document .treasury-saved-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;min-height:0;padding:12px;overflow:auto;scrollbar-width:thin}
.treasury-saved-grid>div{min-width:0;padding:8px 10px;border:1px solid var(--ui-line);border-radius:5px;background:var(--ui-surface-2);overflow-wrap:anywhere}
.treasury-saved-grid span{display:block;margin-bottom:4px;font-size:calc(10px + var(--ui-font-step));color:var(--ui-muted)}
.treasury-saved-grid strong{font-size:calc(12px + var(--ui-font-step));line-height:1.6}
.treasury-saved-grid .wide,.treasury-saved-grid .treasury-saved-amount{grid-column:1/-1}
.treasury-saved-grid .treasury-saved-amount{background:#f2f7fc}.treasury-saved-amount strong{font-size:calc(18px + var(--ui-font-step))}
.treasury-saved-document .treasury-document-navigation{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:6px;padding:0 12px 10px}
@media(max-width:760px){.treasury-movement-modal .treasury-movement-modal-card{width:calc(100vw - 12px);max-height:calc(100dvh - 12px)}#accounting-treasury-transaction-form>.treasury-movement-fields,.treasury-saved-document .treasury-saved-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:10px}#accounting-treasury-transaction-form label:has([name=offsetAccountId]),#accounting-treasury-transaction-form [data-party-directory],#accounting-treasury-transaction-form [data-manual-counterparty]{grid-column:1/-1}.treasury-document-navigation .button{min-width:0;padding-inline:7px;font-size:11px}}

/* Chart account editor owns its modal composition, outside the page form grids. */
.account-details-modal{width:min(900px,calc(100vw - 20px));max-height:calc(100dvh - 20px);display:flex;flex-direction:column;padding:0;overflow:hidden}
.account-details-modal>.modal-header{flex:0 0 auto;min-width:0;padding:8px 12px;border-bottom:1px solid var(--ui-line)}
.account-details-modal .modal-header>div{min-width:0}
.account-details-modal .modal-header h2{margin:0;font-size:calc(12px + var(--ui-font-step));line-height:1.5;overflow-wrap:anywhere}
.account-details-modal .modal-header .eyebrow{margin:0 0 2px;font-size:calc(9px + var(--ui-font-step));color:var(--ui-muted)}
.account-details-modal #account-details-content{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding:9px 12px;scrollbar-width:thin}
.account-details-modal>.modal-actions{flex:0 0 auto;display:flex;justify-content:flex-end;gap:6px;margin:0;padding:7px 12px;border-top:1px solid var(--ui-line);background:var(--ui-surface-2)}
.account-details-modal .account-detail-path{display:flex;align-items:center;flex-wrap:wrap;gap:4px 7px;margin-bottom:9px;padding:5px 7px;border:1px solid var(--ui-line);border-radius:5px;background:var(--ui-surface-2);font-size:calc(10px + var(--ui-font-step));line-height:1.6}
.account-details-modal .account-detail-path b{color:var(--ui-muted)}
.account-details-modal .account-settings-form{display:grid;gap:9px;min-width:0}
.account-details-modal .account-editor-section{min-width:0;margin:0;padding:9px;border:1px solid var(--ui-line);border-radius:6px}
.account-details-modal .account-editor-section legend{padding:0 5px;color:var(--ui-navy);font-size:calc(11px + var(--ui-font-step));font-weight:800}
.account-details-modal .account-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:9px 12px;min-width:0}
.account-details-modal .account-editor-grid>label{display:grid;align-content:start;gap:4px;min-width:0;margin:0;font-size:calc(10px + var(--ui-font-step))}
.account-details-modal .account-editor-grid>label>span{font-weight:750}
.account-details-modal .account-editor-grid :is(input:not([type="checkbox"]),select,.smart-select){width:100%;min-width:0;max-width:100%}
.account-details-modal .account-editor-grid :is(input:not([type="checkbox"]),select){min-height:var(--ui-control-h);height:var(--ui-control-h)}
.account-details-modal .account-editor-grid small{display:block;min-width:0;color:var(--ui-muted);font-size:calc(9px + var(--ui-font-step));font-weight:400;line-height:1.65;overflow-wrap:anywhere}
.account-details-modal .account-editor-full{grid-column:1/-1}
.account-details-modal .account-editor-grid>.account-editor-check{display:flex;align-items:flex-start;gap:7px;padding:7px;border:1px solid var(--ui-line);border-radius:5px;background:var(--ui-surface-2)}
.account-details-modal .account-editor-check input{flex:0 0 auto;width:15px;height:15px;min-height:15px;margin:2px 0 0;accent-color:var(--ui-blue)}
.account-details-modal .account-editor-check span{min-width:0;line-height:1.6}
.account-details-modal .account-detail-summary{min-width:0;margin-top:9px;border:1px solid var(--ui-line);border-radius:6px;background:var(--ui-surface-2)}
.account-details-modal .account-detail-summary>summary{cursor:pointer;padding:7px 9px;font-size:calc(10px + var(--ui-font-step));font-weight:750}
.account-details-modal .account-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:0;padding:0 9px 7px}
.account-details-modal .account-detail-grid>div{min-width:0;padding:7px;border-bottom:1px solid var(--ui-line)}
.account-details-modal .account-detail-grid dt{margin:0 0 4px;color:var(--ui-muted);font-size:calc(9px + var(--ui-font-step))}
.account-details-modal .account-detail-grid dd{margin:0;font-size:calc(11px + var(--ui-font-step));font-weight:750;line-height:1.6;overflow-wrap:anywhere}
@media(max-width:600px){.account-details-modal{width:calc(100vw - 8px);max-height:calc(100dvh - 8px)}.account-details-modal>.modal-header,.account-details-modal>.modal-actions{padding:7px 8px}.account-details-modal #account-details-content{padding:7px 8px}.account-details-modal .account-editor-grid{grid-template-columns:minmax(0,1fr)}.account-details-modal .account-editor-full{grid-column:auto}.account-details-modal .account-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Accounting data typography; each register below owns its column composition. */
.accounting-data-table{width:100%;min-width:0;table-layout:auto}
.accounting-data-table :is(th,td){min-width:0;height:auto;padding:4px 5px;font-size:calc(12px + var(--ui-font-step));line-height:1.35;white-space:normal;overflow-wrap:anywhere;vertical-align:middle}
.accounting-data-table .accounting-value{white-space:nowrap;overflow-wrap:normal}
.accounting-data-table .accounting-code{font-size:calc(11px + var(--ui-font-step));white-space:nowrap;overflow-wrap:normal}
.accounting-data-table td small{display:block;margin-top:1px;font-size:calc(10px + var(--ui-font-step));line-height:1.25;overflow-wrap:anywhere}
.accounting-data-table :is(.link-button,.order-link,.order-number){font-size:inherit}
.accounting-data-table .status{max-width:100%;height:auto;min-height:21px;min-width:0;padding:2px 5px;font-size:calc(10px + var(--ui-font-step));line-height:1.2;white-space:normal}
#accounting-customers-view .invoice-party-cell strong{display:block;white-space:normal;overflow-wrap:anywhere}
#accounting-customers-view .invoice-journal-cell>div{display:flex;align-items:center;flex-wrap:wrap;gap:2px 3px}
#accounting-customers-view .invoice-journal-cell>div+div{margin-top:2px}
#accounting-customers-view .invoice-journal-cell .link-button{flex:0 0 auto;padding:0;border:0;background:transparent;color:var(--ui-blue);font:inherit;white-space:nowrap;cursor:pointer}
#accounting-customers-view .invoice-journal-cell>div>span{font-size:calc(9px + var(--ui-font-step));color:var(--ui-muted)}
.accounting-data-table :is(input,select,.smart-select-input){font-size:calc(11px + var(--ui-font-step))}
.accounting-sales-invoices-markup-0-table th:nth-child(1){width:7%}
.accounting-sales-invoices-markup-0-table th:nth-child(2){width:10%}
.accounting-sales-invoices-markup-0-table th:nth-child(3){width:22%}
.accounting-sales-invoices-markup-0-table th:nth-child(4){width:7%}
.accounting-sales-invoices-markup-0-table th:nth-child(5){width:10%}
.accounting-sales-invoices-markup-0-table th:nth-child(6){width:8%}
.accounting-sales-invoices-markup-0-table th:nth-child(7){width:8%}
.accounting-sales-invoices-markup-0-table th:nth-child(8){width:9%}
.accounting-sales-invoices-markup-0-table th:nth-child(9){width:12%}
.accounting-sales-invoices-markup-0-table th:nth-child(10){width:7%}
.accounting-currencies-0-table th:nth-child(1){width:10%}
.accounting-currencies-0-table th:nth-child(2){width:25%}
.accounting-currencies-0-table th:nth-child(3){width:10%}
.accounting-currencies-0-table th:nth-child(4){width:8%}
.accounting-currencies-0-table th:nth-child(5){width:25%}
.accounting-currencies-0-table th:nth-child(6){width:14%}
.accounting-currencies-0-table th:nth-child(7){width:8%}
.accounting-currencies-1-table th:nth-child(1){width:16%}
.accounting-currencies-1-table th:nth-child(2){width:20%}
.accounting-currencies-1-table th:nth-child(3){width:18%}
.accounting-currencies-1-table th:nth-child(4){width:15%}
.accounting-currencies-1-table th:nth-child(5){width:15%}
.accounting-currencies-1-table th:nth-child(6){width:16%}
#accounting-general-view .accounting-journal-register-0-table{min-width:1100px;table-layout:fixed}
.accounting-journal-register-0-table th:nth-child(1){width:10%}
.accounting-journal-register-0-table th:nth-child(2){width:10%}
.accounting-journal-register-0-table th:nth-child(3){width:10%}
.accounting-journal-register-0-table th:nth-child(4){width:20%}
.accounting-journal-register-0-table th:nth-child(5){width:20%}
.accounting-journal-register-0-table th:nth-child(6){width:9%}
.accounting-journal-register-0-table th:nth-child(7){width:9%}
.accounting-journal-register-0-table th:nth-child(8){width:6%}
.accounting-journal-register-0-table th:nth-child(9){width:6%}
.accounting-general-opening-balances-1-table th:nth-child(1){width:8%}
.accounting-general-opening-balances-1-table th:nth-child(2){width:10%}
.accounting-general-opening-balances-1-table th:nth-child(3){width:20%}
.accounting-general-opening-balances-1-table th:nth-child(4){width:5%}
.accounting-general-opening-balances-1-table th:nth-child(5){width:8%}
.accounting-general-opening-balances-1-table th:nth-child(6){width:14%}
.accounting-general-opening-balances-1-table th:nth-child(7){width:9%}
.accounting-general-opening-balances-1-table th:nth-child(8){width:8%}
.accounting-general-opening-balances-1-table th:nth-child(9){width:11%}
.accounting-general-opening-balances-1-table th:nth-child(10){width:7%}
.accounting-general-0-table th:nth-child(1){width:44%}
.accounting-general-0-table th:nth-child(2){width:12%}
.accounting-general-0-table th:nth-child(3){width:12%}
.accounting-general-0-table th:nth-child(4){width:14%}
.accounting-general-0-table th:nth-child(5){width:10%}
.accounting-general-0-table th:nth-child(6){width:8%}
.accounting-general-1-table th:nth-child(1){width:14%}
.accounting-general-1-table th:nth-child(2){width:32%}
.accounting-general-1-table th:nth-child(3){width:19%}
.accounting-general-1-table th:nth-child(4){width:19%}
.accounting-general-1-table th:nth-child(5){width:16%}
.accounting-general-2-table th:nth-child(1){width:10%}
.accounting-general-2-table th:nth-child(2){width:18%}
.accounting-general-2-table th:nth-child(3){width:14%}
.accounting-general-2-table th:nth-child(4){width:30%}
.accounting-general-2-table th:nth-child(5){width:8%}
.accounting-general-2-table th:nth-child(6){width:12%}
.accounting-general-2-table th:nth-child(7){width:8%}
.document-posting-command{display:flex;align-items:center;gap:12px;padding:8px;flex-wrap:wrap}
.document-posting-command>label{display:grid;gap:3px;width:250px;max-width:100%;min-width:0}
.document-posting-command>div{display:grid;gap:3px;min-width:0}
.document-posting-command small,.document-posting-group-note{color:var(--text-muted,#64748b);font-size:12px}
.document-posting-import-documents{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:0 8px 8px}
.document-posting-document-choice{position:relative;min-width:0;cursor:pointer}
.document-posting-document-choice input{position:absolute;opacity:0;width:1px;height:1px}
.document-posting-document-choice span{display:flex;align-items:center;justify-content:center;min-height:32px;padding:5px 8px;border:1px solid #dce6f1;border-radius:6px;background:#f7faff;color:#23476a;text-align:center;font-size:12px}
.document-posting-document-choice input:checked+span{background:#e6f1ff;border-color:#88b9ef;color:#075cb5;font-weight:700}
.document-posting-document-choice input:focus-visible+span{outline:2px solid #3886d6;outline-offset:2px}
.document-posting-group-note{margin:0;padding:0 8px 8px;line-height:1.6}
.document-posting-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px;flex-wrap:wrap}
.document-posting-footer>span{font-size:12px;color:var(--text-muted,#64748b)}
.document-posting-table{min-width:850px}
@media(max-width:600px){.document-posting-command>label{width:100%}.document-posting-import-documents{grid-template-columns:repeat(2,minmax(0,1fr))}.document-posting-footer>button{margin-inline-start:auto}}
.accounting-document-posting-editor-modern-0-table th:nth-child(1){width:4%}
.accounting-document-posting-editor-modern-0-table th:nth-child(2){width:18%}
.accounting-document-posting-editor-modern-0-table th:nth-child(3){width:12%}
.accounting-document-posting-editor-modern-0-table th:nth-child(4){width:13%}
.accounting-document-posting-editor-modern-0-table th:nth-child(5){width:24%}
.accounting-document-posting-editor-modern-0-table th:nth-child(6){width:18%}
.accounting-document-posting-editor-modern-0-table th:nth-child(7){width:11%}
.posting-tree-link{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;margin-block-end:5px;font-size:calc(11px + var(--ui-font-step))}
.posting-tree-link>span{min-width:0;color:var(--ui-muted)}
.accounting-posting-mappings-0-table th:nth-child(1){width:17%}
.accounting-posting-mappings-0-table th:nth-child(2){width:15%}
.accounting-posting-mappings-0-table th:nth-child(3){width:12%}
.accounting-posting-mappings-0-table th:nth-child(4){width:10%}
.accounting-posting-mappings-0-table th:nth-child(5){width:19%}
.accounting-posting-mappings-0-table th:nth-child(6){width:5%}
.accounting-posting-mappings-0-table th:nth-child(7){width:10%}
.accounting-posting-mappings-0-table th:nth-child(8){width:7%}
.accounting-posting-mappings-0-table th:nth-child(9){width:5%}
.accounting-customer-balance-0-table th:nth-child(1){width:12%}
.accounting-customer-balance-0-table th:nth-child(2){width:22%}
.accounting-customer-balance-0-table th:nth-child(3){width:11%}
.accounting-customer-balance-0-table th:nth-child(4){width:11%}
.accounting-customer-balance-0-table th:nth-child(5){width:11%}
.accounting-customer-balance-0-table th:nth-child(6){width:11%}
.accounting-customer-balance-0-table th:nth-child(7){width:11%}
.accounting-customer-balance-0-table th:nth-child(8){width:11%}
#accounting-general-view .accounting-financial-filter{display:flex;align-items:center;gap:6px;min-width:0;min-height:33px;margin:0;padding:3px 6px;border-bottom:1px solid var(--ui-line);background:var(--ui-soft)}
#accounting-general-view .accounting-financial-filter>label{display:flex;align-items:center;gap:4px;min-width:0;margin:0;color:var(--ui-muted);font-size:calc(8px + var(--ui-font-step));font-weight:800}
#accounting-general-view .accounting-financial-filter input{width:136px;min-width:0;height:26px}
#accounting-general-view .accounting-financial-filter>.button{height:26px;min-height:26px;margin-inline-start:auto}
@media(max-width:760px){#accounting-general-view .accounting-financial-filter{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}#accounting-general-view .accounting-financial-filter>label{display:grid;grid-template-columns:auto minmax(0,1fr)}#accounting-general-view .accounting-financial-filter input{width:100%}#accounting-general-view .accounting-financial-filter>.button{grid-column:1/-1;justify-self:end}}
#accounting-general-view .accounting-trial-balance-0-table{min-width:1050px;table-layout:fixed}
.accounting-trial-balance-0-table th:nth-child(1){width:12%}
.accounting-trial-balance-0-table th:nth-child(2){width:28%}
.accounting-trial-balance-0-table th:nth-child(3){width:10%}
.accounting-trial-balance-0-table th:nth-child(4){width:10%}
.accounting-trial-balance-0-table th:nth-child(5){width:10%}
.accounting-trial-balance-0-table th:nth-child(6){width:10%}
.accounting-trial-balance-0-table th:nth-child(7){width:10%}
.accounting-trial-balance-0-table th:nth-child(8){width:10%}
.accounting-controls-0-table th:nth-child(1){width:36%}
.accounting-controls-0-table th:nth-child(2){width:17%}
.accounting-controls-0-table th:nth-child(3){width:17%}
.accounting-controls-0-table th:nth-child(4){width:16%}
.accounting-controls-0-table th:nth-child(5){width:14%}
.accounting-fixed-assets-module-0-table th:nth-child(1){width:35%}
.accounting-fixed-assets-module-0-table th:nth-child(2){width:9%}
.accounting-fixed-assets-module-0-table th:nth-child(3){width:20%}
.accounting-fixed-assets-module-0-table th:nth-child(4){width:12%}
.accounting-fixed-assets-module-0-table th:nth-child(5){width:12%}
.accounting-fixed-assets-module-0-table th:nth-child(6){width:6%}
.accounting-fixed-assets-module-0-table th:nth-child(7){width:6%}
.accounting-fixed-assets-module-1-table th:nth-child(1){width:4%}
.accounting-fixed-assets-module-1-table th:nth-child(2){width:20%}
.accounting-fixed-assets-module-1-table th:nth-child(3){width:10%}
.accounting-fixed-assets-module-1-table th:nth-child(4){width:10%}
.accounting-fixed-assets-module-1-table th:nth-child(5){width:10%}
.accounting-fixed-assets-module-1-table th:nth-child(6){width:10%}
.accounting-fixed-assets-module-1-table th:nth-child(7){width:10%}
.accounting-fixed-assets-module-1-table th:nth-child(8){width:13%}
.accounting-fixed-assets-module-1-table th:nth-child(9){width:13%}
.accounting-fixed-assets-module-2-table th:nth-child(1){width:12%}
.accounting-fixed-assets-module-2-table th:nth-child(2){width:15%}
.accounting-fixed-assets-module-2-table th:nth-child(3){width:12%}
.accounting-fixed-assets-module-2-table th:nth-child(4){width:20%}
.accounting-fixed-assets-module-2-table th:nth-child(5){width:14%}
.accounting-fixed-assets-module-2-table th:nth-child(6){width:18%}
.accounting-fixed-assets-module-2-table th:nth-child(7){width:9%}
.accounting-fixed-assets-module-3-table th:nth-child(1){width:13%}
.accounting-fixed-assets-module-3-table th:nth-child(2){width:24%}
.accounting-fixed-assets-module-3-table th:nth-child(3){width:12%}
.accounting-fixed-assets-module-3-table th:nth-child(4){width:14%}
.accounting-fixed-assets-module-3-table th:nth-child(5){width:13%}
.accounting-fixed-assets-module-3-table th:nth-child(6){width:13%}
.accounting-fixed-assets-module-3-table th:nth-child(7){width:11%}
.accounting-opening-balance-batch-markup-0-table th:nth-child(1){width:9%}
.accounting-opening-balance-batch-markup-0-table th:nth-child(2){width:11%}
.accounting-opening-balance-batch-markup-0-table th:nth-child(3){width:23%}
.accounting-opening-balance-batch-markup-0-table th:nth-child(4){width:7%}
.accounting-opening-balance-batch-markup-0-table th:nth-child(5){width:14%}
.accounting-opening-balance-batch-markup-0-table th:nth-child(6){width:8%}
.accounting-opening-balance-batch-markup-0-table th:nth-child(7){width:10%}
.accounting-opening-balance-batch-markup-0-table th:nth-child(8){width:10%}
.accounting-opening-balance-batch-markup-0-table th:nth-child(9){width:8%}
.accounting-customers-0-table th:nth-child(1){width:44%}
.accounting-customers-0-table th:nth-child(2){width:12%}
.accounting-customers-0-table th:nth-child(3){width:12%}
.accounting-customers-0-table th:nth-child(4){width:10%}
.accounting-customers-0-table th:nth-child(5){width:12%}
.accounting-customers-0-table th:nth-child(6){width:10%}
.accounting-customers-1-table th:nth-child(1){width:9%}
.accounting-customers-1-table th:nth-child(2){width:12%}
.accounting-customers-1-table th:nth-child(3){width:26%}
.accounting-customers-1-table th:nth-child(4){width:17%}
.accounting-customers-1-table th:nth-child(5){width:15%}
.accounting-customers-1-table th:nth-child(6){width:10%}
.accounting-customers-1-table th:nth-child(7){width:11%}
.accounting-suppliers-0-table th:nth-child(1){width:13%}
.accounting-suppliers-0-table th:nth-child(2){width:29%}
.accounting-suppliers-0-table th:nth-child(3){width:10%}
.accounting-suppliers-0-table th:nth-child(4){width:16%}
.accounting-suppliers-0-table th:nth-child(5){width:16%}
.accounting-suppliers-0-table th:nth-child(6){width:16%}
.accounting-suppliers-1-table th:nth-child(1){width:7%}
.accounting-suppliers-1-table th:nth-child(2){width:22%}
.accounting-suppliers-1-table th:nth-child(3){width:9%}
.accounting-suppliers-1-table th:nth-child(4){width:12%}
.accounting-suppliers-1-table th:nth-child(5){width:13%}
.accounting-suppliers-1-table th:nth-child(6){width:10%}
.accounting-suppliers-1-table th:nth-child(7){width:8%}
.accounting-suppliers-1-table th:nth-child(8){width:9%}
.accounting-suppliers-1-table th:nth-child(9){width:5%}
.accounting-suppliers-1-table th:nth-child(10){width:5%}
#accounting-suppliers-view .supplier-bill-register-filter{display:grid;grid-template-columns:minmax(180px,280px) 132px 132px 140px auto;align-items:center;gap:7px;min-width:0;margin:0;padding:5px 7px;border-bottom:1px solid var(--ui-line);background:#fbfdff}
#accounting-suppliers-view .supplier-bill-register-filter>label{display:flex;align-items:center;gap:4px;min-width:0;margin:0;font-size:calc(9px + var(--ui-font-step));font-weight:750;color:var(--ui-muted)}
#accounting-suppliers-view .supplier-bill-register-filter>label>span{flex:none;white-space:nowrap}
#accounting-suppliers-view .supplier-bill-register-filter :is(input,select,.smart-select,.smart-select-input){width:100%;min-width:0;height:27px;min-height:27px}
#accounting-suppliers-view .supplier-bill-filter-actions{display:flex;justify-content:flex-end;gap:4px;margin-inline-start:auto}
#accounting-suppliers-view .supplier-bill-filter-actions .button{height:27px;min-height:27px;padding:2px 10px;white-space:nowrap}
@media(max-width:1100px){#accounting-suppliers-view .supplier-bill-register-filter{grid-template-columns:minmax(160px,280px) 125px 125px 130px auto;gap:5px}}
@media(max-width:760px){#accounting-suppliers-view .supplier-bill-register-filter{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}#accounting-suppliers-view .supplier-bill-filter-party{grid-column:1/-1}#accounting-suppliers-view .supplier-bill-filter-actions{justify-self:end}}
.accounting-suppliers-2-table th:nth-child(1){width:9%}
.accounting-suppliers-2-table th:nth-child(2){width:12%}
.accounting-suppliers-2-table th:nth-child(3){width:25%}
.accounting-suppliers-2-table th:nth-child(4){width:17%}
.accounting-suppliers-2-table th:nth-child(5){width:16%}
.accounting-suppliers-2-table th:nth-child(6){width:10%}
.accounting-suppliers-2-table th:nth-child(7){width:11%}
.accounting-costs-0-table th:nth-child(1){width:9%}
.accounting-costs-0-table th:nth-child(2){width:11%}
.accounting-costs-0-table th:nth-child(3){width:13%}
.accounting-costs-0-table th:nth-child(4){width:13%}
.accounting-costs-0-table th:nth-child(5){width:20%}
.accounting-costs-0-table th:nth-child(6){width:8%}
.accounting-costs-0-table th:nth-child(7){width:9%}
.accounting-costs-0-table th:nth-child(8){width:9%}
.accounting-costs-0-table th:nth-child(9){width:8%}
.accounting-costs-1-table th:nth-child(1){width:43%}
.accounting-costs-1-table th:nth-child(2){width:13%}
.accounting-costs-1-table th:nth-child(3){width:10%}
.accounting-costs-1-table th:nth-child(4){width:18%}
.accounting-costs-1-table th:nth-child(5){width:8%}
.accounting-costs-1-table th:nth-child(6){width:8%}
.accounting-costs-2-table th:nth-child(1){width:9%}
.accounting-costs-2-table th:nth-child(2){width:12%}
.accounting-costs-2-table th:nth-child(3){width:17%}
.accounting-costs-2-table th:nth-child(4){width:20%}
.accounting-costs-2-table th:nth-child(5){width:20%}
.accounting-costs-2-table th:nth-child(6){width:11%}
.accounting-costs-2-table th:nth-child(7){width:11%}
.accounting-treasury-0-table th:nth-child(1){width:8%}
.accounting-treasury-0-table th:nth-child(2){width:18%}
.accounting-treasury-0-table th:nth-child(3){width:8%}
.accounting-treasury-0-table th:nth-child(4){width:9%}
.accounting-treasury-0-table th:nth-child(5){width:20%}
.accounting-treasury-0-table th:nth-child(6){width:13%}
.accounting-treasury-0-table th:nth-child(7){width:12%}
.accounting-treasury-0-table th:nth-child(8){width:6%}
.accounting-treasury-0-table th:nth-child(9){width:6%}
.accounting-treasury-1-table th:nth-child(1){width:8%}
.accounting-treasury-1-table th:nth-child(2){width:11%}
.accounting-treasury-1-table th:nth-child(3){width:19%}
.accounting-treasury-1-table th:nth-child(4){width:10%}
.accounting-treasury-1-table th:nth-child(5){width:15%}
.accounting-treasury-1-table th:nth-child(6){width:8%}
.accounting-treasury-1-table th:nth-child(7){width:9%}
.accounting-treasury-1-table th:nth-child(8){width:13%}
.accounting-treasury-1-table th:nth-child(9){width:7%}
.accounting-treasury-2-table th:nth-child(1){width:12%}
.accounting-treasury-2-table th:nth-child(2){width:28%}
.accounting-treasury-2-table th:nth-child(3){width:15%}
.accounting-treasury-2-table th:nth-child(4){width:15%}
.accounting-treasury-2-table th:nth-child(5){width:12%}
.accounting-treasury-2-table th:nth-child(6){width:10%}
.accounting-treasury-2-table th:nth-child(7){width:8%}
.accounting-enhance-accounting-operational-controls-0-table th:nth-child(1){width:14%}
.accounting-enhance-accounting-operational-controls-0-table th:nth-child(2){width:22%}
.accounting-enhance-accounting-operational-controls-0-table th:nth-child(3){width:22%}
.accounting-enhance-accounting-operational-controls-0-table th:nth-child(4){width:14%}
.accounting-enhance-accounting-operational-controls-0-table th:nth-child(5){width:14%}
.accounting-enhance-accounting-operational-controls-0-table th:nth-child(6){width:14%}
.accounting-enhance-accounting-operational-controls-1-table th:nth-child(1){width:10%}
.accounting-enhance-accounting-operational-controls-1-table th:nth-child(2){width:24%}
.accounting-enhance-accounting-operational-controls-1-table th:nth-child(3){width:11%}
.accounting-enhance-accounting-operational-controls-1-table th:nth-child(4){width:10%}
.accounting-enhance-accounting-operational-controls-1-table th:nth-child(5){width:10%}
.accounting-enhance-accounting-operational-controls-1-table th:nth-child(6){width:14%}
.accounting-enhance-accounting-operational-controls-1-table th:nth-child(7){width:11%}
.accounting-enhance-accounting-operational-controls-1-table th:nth-child(8){width:10%}
.accounting-enhance-accounting-operational-controls-2-table th:nth-child(1){width:10%}
.accounting-enhance-accounting-operational-controls-2-table th:nth-child(2){width:28%}
.accounting-enhance-accounting-operational-controls-2-table th:nth-child(3){width:10%}
.accounting-enhance-accounting-operational-controls-2-table th:nth-child(4){width:14%}
.accounting-enhance-accounting-operational-controls-2-table th:nth-child(5){width:12%}
.accounting-enhance-accounting-operational-controls-2-table th:nth-child(6){width:16%}
.accounting-enhance-accounting-operational-controls-2-table th:nth-child(7){width:10%}
.accounting-enhance-accounting-operational-controls-3-table th:nth-child(1){width:10%}
.accounting-enhance-accounting-operational-controls-3-table th:nth-child(2){width:24%}
.accounting-enhance-accounting-operational-controls-3-table th:nth-child(3){width:12%}
.accounting-enhance-accounting-operational-controls-3-table th:nth-child(4){width:10%}
.accounting-enhance-accounting-operational-controls-3-table th:nth-child(5){width:13%}
.accounting-enhance-accounting-operational-controls-3-table th:nth-child(6){width:11%}
.accounting-enhance-accounting-operational-controls-3-table th:nth-child(7){width:12%}
.accounting-enhance-accounting-operational-controls-3-table th:nth-child(8){width:8%}
.accounting-open-measured-invoice-detail-0-table th:nth-child(1){width:3%}
.accounting-open-measured-invoice-detail-0-table th:nth-child(2){width:7%}
.accounting-open-measured-invoice-detail-0-table th:nth-child(3){width:20%}
.accounting-open-measured-invoice-detail-0-table th:nth-child(4){width:4%}
.accounting-open-measured-invoice-detail-0-table th:nth-child(5){width:5%}
.accounting-open-measured-invoice-detail-0-table th:nth-child(6){width:5%}
.accounting-open-measured-invoice-detail-0-table th:nth-child(7){width:5%}
.accounting-open-measured-invoice-detail-0-table th:nth-child(8){width:9%}
.accounting-open-measured-invoice-detail-0-table th:nth-child(9){width:10%}
.accounting-open-measured-invoice-detail-0-table th:nth-child(10){width:8%}
.accounting-open-measured-invoice-detail-0-table th:nth-child(11){width:8%}
.accounting-open-measured-invoice-detail-0-table th:nth-child(12){width:7%}
.accounting-open-measured-invoice-detail-0-table th:nth-child(13){width:9%}
.accounting-open-receipt-detail-0-table th:nth-child(1){width:12%}
.accounting-open-receipt-detail-0-table th:nth-child(2){width:12%}
.accounting-open-receipt-detail-0-table th:nth-child(3){width:10%}
.accounting-open-receipt-detail-0-table th:nth-child(4){width:13%}
.accounting-open-receipt-detail-0-table th:nth-child(5){width:14%}
.accounting-open-receipt-detail-0-table th:nth-child(6){width:14%}
.accounting-open-receipt-detail-0-table th:nth-child(7){width:14%}
.accounting-open-receipt-detail-0-table th:nth-child(8){width:11%}
.accounting-ledger-single>thead>tr>th:nth-child(1){width:8%}
.accounting-ledger-single>thead>tr>th:nth-child(2){width:11%}
.accounting-ledger-single>thead>tr>th:nth-child(3){width:10%}
.accounting-ledger-single>thead>tr>th:nth-child(4){width:10%}
.accounting-ledger-single>thead>tr>th:nth-child(5){width:25%}
.accounting-ledger-single>thead>tr>th:nth-child(6){width:12%}
.accounting-ledger-single>thead>tr>th:nth-child(7){width:12%}
.accounting-ledger-single>thead>tr>th:nth-child(8){width:12%}
.accounting-ledger-combined th:nth-child(1){width:6%}
.accounting-ledger-combined th:nth-child(2){width:8%}
.accounting-ledger-combined th:nth-child(3){width:11%}
.accounting-ledger-combined th:nth-child(4){width:9%}
.accounting-ledger-combined th:nth-child(5){width:9%}
.accounting-ledger-combined th:nth-child(6){width:21%}
.accounting-ledger-combined th:nth-child(7){width:12%}
.accounting-ledger-combined th:nth-child(8){width:12%}
.accounting-ledger-combined th:nth-child(9){width:12%}
@media(max-width:620px){.accounting-data-table{min-width:720px}.accounting-sales-invoices-markup-0-table,.accounting-customer-balance-0-table{min-width:1000px}.accounting-ledger-combined{min-width:850px}.accounting-data-table .account-tree-name{grid-template-columns:19px 85px minmax(0,1fr) auto}}

:is(#accounting-general-view,#accounting-customers-view,#accounting-suppliers-view,#accounting-costs-view,#accounting-assets-view,#accounting-treasury-view){color:var(--ui-text)}
:is(#accounting-general-view,#accounting-customers-view,#accounting-suppliers-view,#accounting-costs-view,#accounting-assets-view,#accounting-treasury-view) .accounting-pro-head{display:none}
:is(#accounting-general-view,#accounting-customers-view,#accounting-suppliers-view,#accounting-costs-view,#accounting-assets-view,#accounting-treasury-view) .accounting-table-card>.card-toolbar.compact{height:31px;min-height:31px;padding:2px 6px}
:is(#accounting-general-view,#accounting-customers-view,#accounting-suppliers-view,#accounting-costs-view,#accounting-assets-view,#accounting-treasury-view) .accounting-table-card>.card-toolbar.compact h2{margin:0;font-size:calc(11px + var(--ui-font-step));line-height:1}
:is(#accounting-general-view,#accounting-customers-view,#accounting-suppliers-view,#accounting-costs-view,#accounting-assets-view,#accounting-treasury-view) .accounting-table-card>.card-toolbar.compact p{display:none}
:is(#accounting-general-view,#accounting-customers-view,#accounting-suppliers-view,#accounting-costs-view,#accounting-assets-view,#accounting-treasury-view) .accounting-table-card>.card-toolbar.compact :is(input,select,.smart-select-input,.button){height:25px;min-height:25px}
:is(#accounting-general-view,#accounting-customers-view,#accounting-suppliers-view,#accounting-costs-view,#accounting-assets-view,#accounting-treasury-view) .accounting-table-card>.card-toolbar.compact>.button{margin-right:auto}
:is(#accounting-general-view,#accounting-customers-view,#accounting-suppliers-view,#accounting-costs-view,#accounting-assets-view,#accounting-treasury-view) .accounting-table-card>.card-toolbar.compact>.button+.screen-export-actions{margin-right:0}
:is(#accounting-general-view,#accounting-customers-view,#accounting-suppliers-view,#accounting-costs-view,#accounting-assets-view,#accounting-treasury-view) .accounting-tab-panel{min-width:0}
:is(#accounting-general-view,#accounting-customers-view,#accounting-suppliers-view,#accounting-costs-view,#accounting-assets-view,#accounting-treasury-view) .accounting-toolbar-actions{margin-right:auto}
:is(#accounting-general-view,#accounting-customers-view,#accounting-suppliers-view,#accounting-costs-view,#accounting-assets-view,#accounting-treasury-view) .accounting-pro-root{width:100%;max-width:100%;overflow:visible}
:is(#accounting-general-view,#accounting-customers-view,#accounting-suppliers-view,#accounting-costs-view,#accounting-assets-view,#accounting-treasury-view) .accounting-tab-panel{display:grid;gap:4px;width:100%;max-width:100%}
:is(#accounting-general-view,#accounting-customers-view,#accounting-suppliers-view,#accounting-costs-view,#accounting-assets-view,#accounting-treasury-view) :is(.content-card,.accounting-table-card){width:100%;max-width:100%}
:is(#accounting-general-view,#accounting-customers-view,#accounting-suppliers-view,#accounting-costs-view,#accounting-assets-view,#accounting-treasury-view) .accounting-compact-form{width:100%;max-width:100%;margin:0 0 4px;border:1px solid var(--ui-line);border-radius:var(--ui-radius);background:#fff;box-shadow:var(--ui-shadow);overflow:hidden}
:is(#accounting-general-view,#accounting-customers-view,#accounting-suppliers-view,#accounting-costs-view,#accounting-assets-view,#accounting-treasury-view) .accounting-compact-form>form{padding:6px}
:is(#accounting-general-view,#accounting-customers-view,#accounting-suppliers-view,#accounting-costs-view,#accounting-assets-view,#accounting-treasury-view) .compact-form-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));align-items:end;gap:5px;min-width:0}
:is(#accounting-general-view,#accounting-customers-view,#accounting-suppliers-view,#accounting-costs-view,#accounting-assets-view,#accounting-treasury-view) .compact-form-row>label{display:grid;grid-template-rows:12px minmax(27px,auto);gap:2px;min-width:0;margin:0;color:var(--ui-muted);font-size:calc(8px + var(--ui-font-step));font-weight:800}
:is(#accounting-general-view,#accounting-customers-view,#accounting-suppliers-view,#accounting-costs-view,#accounting-assets-view,#accounting-treasury-view) .compact-form-row>label.wide{grid-column:span 2}
:is(#accounting-general-view,#accounting-customers-view,#accounting-suppliers-view,#accounting-costs-view,#accounting-assets-view,#accounting-treasury-view) .compact-form-row .check-label{display:flex;align-items:center;gap:6px;padding-top:12px}
:is(#accounting-general-view,#accounting-customers-view,#accounting-suppliers-view,#accounting-costs-view,#accounting-assets-view,#accounting-treasury-view) .compact-form-row .check-label input{width:16px;height:16px;min-height:16px}
:is(#accounting-general-view,#accounting-customers-view,#accounting-suppliers-view,#accounting-costs-view,#accounting-assets-view,#accounting-treasury-view) .compact-form-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px;min-height:36px;margin:6px -6px -6px;padding:4px 6px;border-top:1px solid var(--ui-line);background:#f8fafc}
:is(#accounting-general-view,#accounting-customers-view,#accounting-suppliers-view,#accounting-costs-view,#accounting-assets-view,#accounting-treasury-view) .journal-lines-editor{display:grid;gap:4px;min-width:0;margin-top:5px}
:is(#accounting-general-view,#accounting-customers-view,#accounting-suppliers-view,#accounting-costs-view,#accounting-assets-view,#accounting-treasury-view) .journal-edit-line{display:grid;grid-template-columns:22px minmax(180px,1.6fr) minmax(120px,1.2fr) minmax(76px,.65fr) minmax(76px,.65fr) minmax(130px,1fr);align-items:center;gap:4px;min-width:0;padding:4px;border:1px solid var(--ui-line);border-radius:7px;background:var(--ui-soft)}
:is(#accounting-general-view,#accounting-customers-view,#accounting-suppliers-view,#accounting-costs-view,#accounting-assets-view,#accounting-treasury-view) .journal-edit-line>b{text-align:center;color:var(--ui-muted)}
:is(#accounting-general-view,#accounting-customers-view,#accounting-suppliers-view,#accounting-costs-view,#accounting-assets-view,#accounting-treasury-view) .journal-edit-line :is(input,select,.smart-select){width:100%;min-width:0}
:is(#accounting-general-view,#accounting-customers-view,#accounting-suppliers-view,#accounting-costs-view,#accounting-assets-view,#accounting-treasury-view) .accounting-inline-filter{display:flex;align-items:flex-end;gap:5px;min-width:0;max-width:100%}
:is(#accounting-general-view,#accounting-customers-view,#accounting-suppliers-view,#accounting-costs-view,#accounting-assets-view,#accounting-treasury-view) .accounting-inline-filter>label{display:grid;grid-template-rows:10px 26px;gap:2px;min-width:0;color:var(--ui-muted);font-size:calc(8px + var(--ui-font-step));font-weight:800}
#accounting-general-view .journal-mini-lines{display:grid;gap:3px;min-width:0}
#accounting-general-view .journal-mini-lines>span{display:block;line-height:1.45;white-space:normal;overflow-wrap:anywhere}
#accounting-general-view .journal-mini-lines b{margin-inline-end:4px}
#accounting-general-view .journal-mini-lines i{display:inline-block;margin-inline-start:5px;color:var(--ui-muted);font-style:normal}
#accounting-general-view .journal-register-bar{height:var(--ui-subbar-h);min-height:var(--ui-subbar-h);padding:2px 5px}
#accounting-general-view .general-opening-workspace{display:grid;gap:4px}
#accounting-general-view .accounting-opening-batch{margin:0}
#accounting-general-view .general-opening-commandbar{display:flex;align-items:center;gap:5px;height:31px;min-height:31px;padding:2px 6px;border-bottom:1px solid var(--ui-line);background:#fff}
#accounting-general-view .general-opening-title{display:flex;align-items:center;gap:5px;min-width:0}
#accounting-general-view .general-opening-title h2{margin:0;font-size:calc(11px + var(--ui-font-step));line-height:1;white-space:nowrap}
#accounting-general-view .general-opening-mark{display:grid;place-items:center;width:20px;height:20px;border-radius:5px;background:var(--ui-blue-soft);color:var(--ui-blue);font-size:calc(11px + var(--ui-font-step))}
#accounting-general-view .general-opening-actions{display:flex;align-items:center;gap:4px;margin-right:auto}
#accounting-general-view .general-opening-commandbar :is(.button,.small-action){height:25px;min-height:25px}
#accounting-general-view .general-opening-commandbar>.screen-export-actions{margin-right:0}
#accounting-general-view .opening-simple-toolbar{display:flex;align-items:center;gap:7px;height:31px;min-height:31px;padding:2px 6px;border-bottom:1px solid var(--ui-line);background:#fbfdff}
#accounting-general-view .opening-simple-toolbar .table-search{width:250px;max-width:32vw;height:25px;margin:0}
#accounting-general-view .opening-simple-toolbar .table-search input{height:25px}
#accounting-general-view .opening-simple-toolbar strong{font-size:calc(8.5px + var(--ui-font-step));white-space:nowrap}
#accounting-general-view .opening-simple-toolbar em{overflow:hidden;color:#b34848;font-size:calc(8px + var(--ui-font-step));font-style:normal;text-overflow:ellipsis;white-space:nowrap}
#accounting-general-view .journal-register-command{display:flex;align-items:center;gap:5px;min-height:var(--ui-subbar-h);padding:2px 5px;border-bottom:1px solid var(--ui-line)}
#accounting-general-view .journal-register-command h2{margin:0;font-size:calc(11px + var(--ui-font-step))}
#accounting-general-view .journal-register-command>.button{margin-inline-start:auto;height:26px;min-height:26px}
#accounting-general-view .journal-register-command>.screen-export-actions{margin-inline-start:0}
#accounting-general-view .journal-register-filter{display:grid;grid-template-columns:minmax(80px,110px) minmax(100px,150px) minmax(75px,90px) minmax(110px,190px) 130px 130px max-content max-content;justify-content:start;align-items:center;gap:4px;min-width:0;flex:1}
#accounting-general-view .journal-register-filter>:is(input,select,.smart-select){min-width:0;width:100%}
#accounting-general-view .journal-register-filter :is(input,select,.button){height:26px;min-height:26px}
#accounting-general-view .journal-register-filter .journal-date-filter{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:3px;min-width:0;font-size:calc(8px + var(--ui-font-step));font-weight:800}
#accounting-general-view .ledger-filter{display:grid;grid-template-columns:minmax(240px,360px) 120px 120px auto;justify-content:start;gap:5px;width:100%}
#accounting-general-view .accounting-ledger-pagination{display:flex;align-items:center;justify-content:flex-start;gap:8px;padding:7px 10px;border-top:1px solid var(--ui-line);font-size:calc(10px + var(--ui-font-step));color:var(--ui-muted)}
#accounting-general-view .accounting-ledger-pagination .button{min-height:26px;height:26px;padding-inline:12px}
#accounting-general-view .report-filter{display:grid;grid-template-columns:118px 118px auto;align-items:end;gap:4px;width:auto;margin-right:auto}
#accounting-general-view .report-filter label{display:grid;grid-template-rows:9px 25px;gap:1px;margin:0;color:var(--ui-muted);font-size:calc(8px + var(--ui-font-step));font-weight:800;line-height:9px}
#accounting-general-view .report-filter :is(input,.button){height:25px;min-height:25px}
#accounting-general-view .customer-balance-filter{display:grid;grid-template-columns:minmax(220px,320px) 118px 118px auto;align-items:end;gap:4px;width:100%;min-height:35px;padding:3px 6px;border-bottom:1px solid var(--ui-line);background:#fbfdff}
#accounting-general-view .customer-balance-filter>label{display:grid;grid-template-rows:9px 25px;gap:1px;min-width:0;margin:0;color:var(--ui-muted);font-size:calc(8px + var(--ui-font-step));font-weight:800;line-height:9px}
#accounting-general-view .customer-balance-filter>.table-search{display:flex;height:25px;align-self:end}
#accounting-general-view .customer-balance-filter input{width:100%;height:25px;min-height:25px}
#accounting-general-view .customer-balance-filter>.button{justify-self:start;width:auto;min-width:64px;height:25px;min-height:25px;padding-inline:10px}
#accounting-general-view .tax-summary-lines{display:grid;gap:0;padding:4px 8px}
#accounting-general-view .tax-summary-lines>div{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:30px;padding:4px 6px;border-bottom:1px solid var(--ui-line);font-size:calc(12px + var(--ui-font-step))}
#accounting-general-view .tax-summary-lines strong{font-size:calc(13px + var(--ui-font-step));white-space:nowrap}
#accounting-general-view .tax-summary-lines .grand{background:var(--ui-blue-soft);color:var(--ui-navy)}
#accounting-general-view .financial-statements-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:6px}
#accounting-general-view .financial-statement{overflow:hidden;border:1px solid var(--ui-line);border-radius:6px;background:#fff}
#accounting-general-view .financial-statement>h2{height:28px;margin:0;padding:7px 9px;border-bottom:1px solid var(--ui-line);background:#f6f9fc;color:var(--ui-navy);font-size:calc(10px + var(--ui-font-step))}
#accounting-general-view .statement-line{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:28px;padding:4px 9px;border-bottom:1px solid #edf2f6;font-size:calc(12px + var(--ui-font-step))}
#accounting-general-view .statement-line:last-child{border-bottom:0}
#accounting-general-view .statement-line strong{font-variant-numeric:tabular-nums;white-space:nowrap}
#accounting-general-view .statement-line.total{background:#f7fafc;font-weight:850}
#accounting-general-view .statement-line.grand{background:var(--ui-blue-soft);color:var(--ui-navy);font-weight:900}
#accounting-general-view .coa-card{overflow:hidden}
#accounting-general-view .coa-toolbar{display:flex;align-items:center;gap:4px;margin-right:auto}
#accounting-general-view .coa-tree-search{width:240px;height:25px}
#accounting-general-view .coa-tree-search input{height:25px}
.accounting-data-table .coa-row{height:34px;transition:background-color .12s ease}

.accounting-data-table .coa-row>td{height:34px;padding-block:2px;border-bottom-color:#e6edf3;vertical-align:middle}
.accounting-data-table .coa-row.coa-root>td{border-top:1px solid #c5d9e8;border-bottom:1px solid #c5d9e8;background:#edf5fb;color:#163f5f;font-weight:850}

.accounting-data-table .coa-row.coa-root>td:first-child{box-shadow:inset -3px 0 #287eb8}
.accounting-data-table .coa-row.coa-branch>td{background:#f9fbfd;color:#244a65}

.accounting-data-table .coa-row.coa-leaf>td{background:#fff;color:#354f62}

.accounting-data-table .coa-row.inactive-account{opacity:.62}
.accounting-data-table .coa-account-cell{padding-right:5px;padding-left:6px}
.accounting-data-table .account-tree-name{position:relative;display:grid;grid-template-columns:19px minmax(62px,98px) minmax(0,1fr) auto;align-items:center;gap:6px;min-width:0;min-height:30px;padding-right:calc(var(--account-depth) * 18px + 2px)}
.accounting-data-table .account-tree-rail{position:absolute;top:-17px;right:calc(var(--account-depth) * 18px - 9px);width:18px;height:33px;border-right:1px solid #b8cad8;border-bottom:1px solid #b8cad8;border-radius:0 0 5px 0;pointer-events:none}
.accounting-data-table .account-tree-name[data-depth="0"] .account-tree-rail{display:none}
.accounting-data-table .account-tree-toggle,.accounting-data-table .account-tree-leaf{position:relative;z-index:1;display:grid;place-items:center;width:18px;height:18px;margin:0;padding:0;border:1px solid #a8bfd0;border-radius:5px;background:#fff;color:#2b688f;font-size:16px;font-weight:900;line-height:1}
.accounting-data-table .account-tree-toggle{cursor:pointer;transition:transform .12s ease,background-color .12s ease,border-color .12s ease}
.accounting-data-table .account-tree-toggle:hover{border-color:#448dbd;background:#e9f5fd}
.accounting-data-table .account-tree-toggle.expanded{transform:rotate(90deg);border-color:#6da3c7;background:#e8f3fb}
.accounting-data-table .account-tree-leaf{border-color:#c6d5df;background:#f7fafc;font-size:0}
.accounting-data-table .account-tree-leaf::after{width:5px;height:5px;border-radius:50%;background:#8ca8ba;content:""}
.accounting-data-table .coa-code{overflow:hidden;color:#174f75;font-size:calc(11px + var(--ui-font-step));font-weight:900;font-variant-numeric:tabular-nums;text-overflow:ellipsis;white-space:nowrap}
.accounting-data-table .coa-name{display:grid;min-width:0;line-height:1.15}
.accounting-data-table .coa-name strong{overflow:hidden;font-size:calc(12px + var(--ui-font-step));font-weight:850;text-overflow:ellipsis;white-space:nowrap}
.accounting-data-table .coa-name small{overflow:hidden;color:#7890a1;font-size:calc(10px + var(--ui-font-step));font-weight:650;text-overflow:ellipsis;white-space:nowrap}
.accounting-data-table .coa-root .coa-name strong{font-size:calc(13px + var(--ui-font-step));font-weight:950}
.accounting-data-table .coa-branch .coa-name strong{font-weight:900}
.accounting-data-table .coa-kind{display:inline-flex;align-items:center;justify-content:center;min-width:45px;height:20px;padding-inline:6px;border:1px solid #c8d6e0;border-radius:10px;background:#f5f8fa;color:#5f788a;font-size:calc(9px + var(--ui-font-step));font-weight:900;white-space:nowrap}
.accounting-data-table .coa-kind.root{border-color:#84b4d5;background:#dceefb;color:#14577f}
.accounting-data-table .coa-kind.branch{border-color:#b4cada;background:#edf5fa;color:#39657f}
.accounting-data-table .coa-kind.leaf{border-color:#cbd8df;background:#f8fafb;color:#647b89}
.accounting-data-table .coa-type,.accounting-data-table .coa-nature{font-size:calc(11px + var(--ui-font-step));font-weight:800}
.accounting-data-table .coa-nature{display:inline-flex;align-items:center;gap:4px}
.accounting-data-table .coa-nature::before{width:6px;height:6px;border-radius:50%;background:#4c91bd;content:""}
.accounting-data-table .coa-nature.credit::before{background:#9167b7}
.accounting-data-table .coa-balance strong{display:block;color:#173f5d;font-variant-numeric:tabular-nums}
.accounting-data-table .coa-balance small{color:#7890a1;font-size:calc(7px + var(--ui-font-step))}
.accounting-data-table .coa-actions{text-align:center}
#accounting-customers-view .customer-account-filter{display:grid;grid-template-columns:minmax(240px,360px) 140px 125px 125px auto auto;justify-content:start;gap:5px;width:100%}
#accounting-suppliers-view .supplier-statement-filter{display:grid;grid-template-columns:minmax(220px,1fr) 120px 130px 118px 118px 115px auto;align-items:end;gap:6px;width:100%;min-width:0;padding:6px}
#accounting-suppliers-view .supplier-statement-filter>label{display:grid;gap:3px;min-width:0}
#accounting-suppliers-view .supplier-statement-filter :is(select,input,.smart-select){width:100%;min-width:0}
#accounting-suppliers-view .supplier-statement-summary{margin:0;padding:3px 7px 6px;color:var(--ui-muted);line-height:1.5;overflow-wrap:anywhere}
#accounting-suppliers-view .supplier-statement-command{display:flex;align-items:center;justify-content:space-between;gap:7px}
#accounting-suppliers-view .supplier-statement-command>h2{margin:0;font-size:calc(11px + var(--ui-font-step));line-height:1.3}
#accounting-suppliers-view .supplier-statement-command>.statement-toolbar-actions{margin-inline-start:auto;display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-end}
#accounting-suppliers-view .supplier-statement-card .accounting-ledger-single{min-width:980px}
#accounting-suppliers-view .supplier-statement-card .accounting-ledger-single>tbody>tr>td:nth-child(-n+2){white-space:nowrap}
@media(max-width:1100px){#accounting-suppliers-view .supplier-statement-filter{grid-template-columns:minmax(150px,1fr) 95px 100px 100px 100px 115px auto;gap:4px}}
@media(max-width:760px){#accounting-suppliers-view .supplier-statement-filter{grid-template-columns:repeat(2,minmax(0,1fr))}#accounting-suppliers-view .supplier-statement-filter>.supplier-statement-party,#accounting-suppliers-view .supplier-statement-filter>.button{grid-column:1/-1}#accounting-suppliers-view .supplier-statement-command{flex-wrap:wrap;height:auto;min-height:31px}#accounting-suppliers-view .supplier-statement-command>h2{width:100%}}
#accounting-customers-view .customer-statement-card .supplier-statement-filter{display:grid;grid-template-columns:112px 112px minmax(160px,1fr) 114px 118px 118px 115px auto;align-items:end;gap:6px;width:100%;min-width:0;padding:6px}
#accounting-customers-view .customer-statement-card .supplier-statement-filter>label{display:grid;gap:3px;min-width:0}
#accounting-customers-view .customer-statement-card .supplier-statement-filter :is(select,input,.smart-select){width:100%;min-width:0}
#accounting-customers-view .customer-statement-card .customer-statement-party :is(select,.smart-select,.smart-select-input){text-align:right}
#accounting-customers-view .customer-statement-card .supplier-statement-filter:has([data-customer-statement-scope].hidden){grid-template-columns:112px 112px minmax(160px,1fr) 118px 118px 115px auto}
@media(max-width:1100px){#accounting-customers-view .customer-statement-card .supplier-statement-filter:has([data-customer-statement-scope].hidden){grid-template-columns:90px 90px minmax(100px,1fr) 100px 100px 115px auto}#accounting-customers-view .customer-statement-card .supplier-statement-filter{grid-template-columns:90px 90px minmax(100px,1fr) 95px 100px 100px 115px auto;gap:4px}}
@media(max-width:760px){#accounting-customers-view .customer-statement-card .supplier-statement-filter:has([data-customer-statement-scope].hidden),#accounting-customers-view .customer-statement-card .supplier-statement-filter{grid-template-columns:repeat(2,minmax(0,1fr))}#accounting-customers-view .customer-statement-card .customer-statement-party{grid-column:1/-1}#accounting-customers-view .customer-statement-card .supplier-statement-filter>label:nth-of-type(5),#accounting-customers-view .customer-statement-card .supplier-statement-filter>label:nth-of-type(6){grid-column:auto}#accounting-customers-view .customer-statement-card .supplier-statement-filter>.button{grid-column:1/-1}}
:is(#accounting-customers-view,#accounting-suppliers-view) :is(.customer-statement-card,.supplier-statement-card) .supplier-statement-filter>.statement-items-choice{display:flex;align-items:center;gap:5px;white-space:nowrap;min-height:30px}
:is(#accounting-customers-view,#accounting-suppliers-view) :is(.customer-statement-card,.supplier-statement-card) .supplier-statement-filter>.statement-items-choice>input[type=checkbox]{width:16px;height:16px;min-height:16px;flex:0 0 16px;margin:0;padding:0}
:is(#accounting-customers-view,#accounting-suppliers-view) :is(.customer-statement-card,.supplier-statement-card) .statement-invoice-items>td{padding:5px 10px 9px;background:#f4f8fb}
:is(#accounting-customers-view,#accounting-suppliers-view) :is(.customer-statement-card,.supplier-statement-card) .statement-invoice-items-wrap{overflow-x:auto}
:is(#accounting-customers-view,#accounting-suppliers-view) :is(.customer-statement-card,.supplier-statement-card) .statement-items-table{width:100%;min-width:660px;table-layout:fixed;border-collapse:collapse}
:is(#accounting-customers-view,#accounting-suppliers-view) :is(.customer-statement-card,.supplier-statement-card) .statement-items-table caption{text-align:start;color:var(--ui-muted);padding:2px 4px 5px;font-weight:700}
:is(#accounting-customers-view,#accounting-suppliers-view) :is(.customer-statement-card,.supplier-statement-card) .statement-items-table th{width:auto;white-space:normal;padding:4px 6px;background:#eaf2f8}
:is(#accounting-customers-view,#accounting-suppliers-view) :is(.customer-statement-card,.supplier-statement-card) .statement-items-table td{white-space:normal;padding:4px 6px;border-bottom:1px solid var(--ui-line)}
:is(#accounting-customers-view,#accounting-suppliers-view) :is(.customer-statement-card,.supplier-statement-card) .statement-items-table :is(th,td):first-child{width:45%;white-space:pre-wrap;overflow-wrap:anywhere}
.customer-statement-pager{display:flex;justify-content:space-between;align-items:center;gap:6px;padding:6px 8px;border-top:1px solid var(--ui-line);color:var(--ui-muted);font-size:11px}
.customer-statement-pager small{display:block;margin-top:3px}.customer-statement-pager>div{display:flex;gap:5px;flex-shrink:0}
.customer-statement-report-frame{display:block;width:100%;height:100%;min-height:55vh;border:0}
#accounting-customers-view .customer-statement-card .accounting-ledger-single{min-width:980px}
#accounting-customers-view .customer-statement-card .accounting-ledger-single>thead>tr>th:nth-child(1){width:9%}
#accounting-customers-view .customer-statement-card .accounting-ledger-single>thead>tr>th:nth-child(2){width:13%}
#accounting-customers-view .customer-statement-card .accounting-ledger-single>thead>tr>th:nth-child(3){width:11%}
#accounting-customers-view .customer-statement-card .accounting-ledger-single>thead>tr>th:nth-child(4){width:12%}
#accounting-customers-view .customer-statement-card .accounting-ledger-single>thead>tr>th:nth-child(5){width:19%}
#accounting-customers-view .customer-statement-card .accounting-ledger-single>tbody>tr>td:nth-child(-n+2){white-space:nowrap}
@media(max-width:760px){#accounting-customers-view .customer-statement-card .supplier-statement-filter>label:first-child{grid-column:auto}.customer-statement-pager{align-items:flex-start}#accounting-customers-view .customer-statement-card>.card-toolbar.compact{flex-wrap:wrap;height:auto;min-height:31px}.customer-statement-card .statement-toolbar-actions{margin-inline-start:auto}.customer-statement-pager>span{min-width:0;line-height:1.6}}
#accounting-treasury-view .treasury-register-filter>label{min-width:0}
#accounting-treasury-view .treasury-register-filter :is(input,select){width:100%;min-width:0}
#accounting-treasury-view .treasury-register-meta{padding:3px 5px;color:var(--ui-muted);font-size:calc(8px + var(--ui-font-step))}
#accounting-treasury-view .treasury-register-filter{display:grid;grid-template-columns:minmax(120px,220px) minmax(130px,200px) minmax(85px,110px) 100px 100px auto auto;align-items:end;justify-content:start;gap:5px;width:100%}
#accounting-customers-view .invoice-workspace-status,#accounting-customers-view .returns-workspace-status{display:flex;align-items:center;gap:4px;min-width:0;overflow-x:auto}
#accounting-customers-view .invoice-register-command-bar{display:flex;align-items:center;gap:5px;height:31px;min-height:31px;margin-bottom:4px;padding:2px 5px;border:1px solid var(--ui-line);border-radius:6px;background:#fff}
#accounting-customers-view .invoice-register-status{display:flex;align-items:center;gap:4px;min-width:0}
#accounting-customers-view .invoice-register-status>button{display:inline-flex;align-items:center;gap:5px;height:25px;padding:0 8px;border:1px solid var(--ui-line);border-radius:5px;background:#f7fafc;color:#587087;font-size:calc(8.5px + var(--ui-font-step));font-weight:850;white-space:nowrap}
#accounting-customers-view .invoice-register-status>button i{width:6px;height:6px;border-radius:50%;background:#f0a521}
#accounting-customers-view .invoice-register-status>button:nth-child(2) i{background:#24a36b}
#accounting-customers-view .invoice-register-status>button[data-sales-invoice-tab='cancelled'] i{background:#dc6473}
#accounting-customers-view .invoice-register-status>button b{display:grid;place-items:center;min-width:18px;height:17px;padding-inline:4px;border-radius:9px;background:#e7eef4;color:var(--ui-navy);font-size:calc(7.5px + var(--ui-font-step))}
#accounting-customers-view .invoice-register-status>button.active{border-color:#9bc7e8;background:var(--ui-blue-soft);color:var(--ui-blue);box-shadow:0 1px 2px rgba(16,83,132,.08)}
#accounting-customers-view .invoice-register-status>button.active b{background:#fff;color:var(--ui-blue)}
#accounting-customers-view .invoice-ready-count{color:var(--ui-muted);font-size:calc(8px + var(--ui-font-step));font-weight:800;white-space:nowrap}
#accounting-customers-view .invoice-register-actions{display:flex;align-items:center;gap:4px;margin-right:auto}
#accounting-customers-view .invoice-register-actions .button{height:25px;min-height:25px;padding-inline:10px}
#accounting-customers-view .invoice-register-create{margin:0}
#accounting-customers-view .invoice-register-command-bar>.screen-export-actions{margin-right:0}
@media(max-width:760px){
  #accounting-customers-view .invoice-register-command-bar{height:auto;min-height:31px;flex-wrap:wrap}
  #accounting-customers-view .invoice-register-status{flex:0 0 100%;flex-wrap:wrap}
  #accounting-customers-view .invoice-register-actions{margin-right:auto}
}
#accounting-customers-view .sales-invoice-register-table{min-width:980px}
#accounting-customers-view .sales-invoice-register-table :is(th,td):last-child{min-width:64px;width:64px;white-space:nowrap}
#accounting-customers-view .invoice-register-toolbar{min-height:42px;padding:4px 6px}
#accounting-customers-view .invoice-register-filter{display:flex;align-items:flex-end;gap:7px;width:100%;min-width:0}
#accounting-customers-view .invoice-register-filter-fields{display:grid;grid-template-columns:minmax(170px,280px) repeat(2,minmax(108px,122px)) repeat(2,minmax(92px,108px));align-items:end;gap:5px;min-width:0;flex:1}
#accounting-customers-view .invoice-register-filter label{display:grid;grid-template-rows:10px 26px;gap:2px;min-width:0;margin:0;color:var(--ui-muted);font-size:calc(8px + var(--ui-font-step));font-weight:800;line-height:10px}
#accounting-customers-view .invoice-register-filter :is(input,.button){height:26px;min-height:26px}
#accounting-customers-view .invoice-register-filter input{width:100%;min-width:0;padding:0 7px;border:1px solid var(--ui-line-strong);border-radius:5px;background:#fff;font-size:calc(9px + var(--ui-font-step))}
#accounting-customers-view .invoice-register-filter input:focus{border-color:var(--ui-blue);box-shadow:0 0 0 2px rgba(15,116,190,.1);outline:0}
#accounting-customers-view .invoice-register-filter-actions{display:flex;align-items:center;gap:4px;flex:0 0 auto;min-height:26px}
#accounting-customers-view .invoice-register-filter-actions small{min-width:48px;color:var(--ui-muted);font-size:calc(8px + var(--ui-font-step));font-weight:800;text-align:center;white-space:nowrap}
#accounting-customers-view .invoice-register-filter-actions .button{padding-inline:9px}
#accounting-customers-view .invoice-register-pager{display:flex;align-items:center;justify-content:center;gap:6px;height:30px;border-top:1px solid var(--ui-line);background:#fbfdff;color:var(--ui-muted);font-size:calc(8.5px + var(--ui-font-step));font-weight:800}

#accounting-costs-view .cost-center-layout,#accounting-assets-view .asset-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:6px}
#accounting-costs-view .cost-center-directory>.card-toolbar.compact{display:flex;align-items:center;gap:6px;height:31px;min-height:31px;padding:2px 6px}
#accounting-costs-view .cost-center-directory>.card-toolbar.compact>div:first-child{min-width:130px}
#accounting-costs-view .cost-center-tools{display:flex;align-items:center;gap:4px;min-width:0;margin-right:auto}
#accounting-costs-view .cost-center-tools>input{width:190px;height:25px;min-height:25px}
#accounting-assets-view .fixed-assets-directory>.card-toolbar.compact{height:31px;min-height:31px;padding:2px 6px}
#accounting-assets-view .fixed-assets-directory .accounting-inline-filter{display:flex;align-items:center;gap:4px;min-width:0}
#accounting-assets-view .fixed-assets-directory .accounting-inline-filter>input{width:230px;height:25px}
#accounting-assets-view .fixed-assets-directory .accounting-inline-filter select,#accounting-assets-view .fixed-assets-directory .accounting-inline-filter>.smart-select{width:190px;min-width:110px}
#accounting-assets-view .fixed-assets-directory>.card-toolbar{display:flex;align-items:center;justify-content:space-between;gap:6px}
#accounting-assets-view .fixed-assets-tree-table{min-width:920px}
#accounting-assets-view .fixed-assets-tree-table .account-tree-name{grid-template-columns:19px minmax(85px,104px) minmax(0,1fr) auto}
#accounting-assets-view .fixed-assets-tree-table .coa-code{min-width:0;width:100%;direction:ltr;white-space:nowrap}
.fixed-asset-definition-modal{padding:10px}
.fixed-asset-definition-modal .fixed-asset-node-editor{width:min(1040px,calc(100vw - 20px));max-height:calc(100dvh - 20px);display:flex;flex-direction:column;overflow:hidden}
.fixed-asset-node-editor>form{display:flex;flex-direction:column;min-height:0;overflow:hidden}
.fixed-asset-node-editor .fixed-asset-editor-content{padding:8px 10px;overflow:auto;min-height:0;overscroll-behavior:contain}
.fixed-asset-node-editor .modal-header,.fixed-asset-node-editor .modal-actions{flex:0 0 auto}
.fixed-asset-node-editor .modal-actions{padding:7px 10px;border-top:1px solid var(--ui-line)}
.fixed-asset-node-kind{display:flex;align-items:center;gap:12px;flex:0 0 auto;padding:6px 10px;border-bottom:1px solid var(--ui-line);background:#f7faff}
.fixed-asset-node-kind>label{display:flex;align-items:center;gap:6px;min-width:0;margin:0}
.fixed-asset-node-kind>label>.smart-select,.fixed-asset-node-kind select{width:170px;min-width:0}
.fixed-asset-node-kind small{color:var(--ui-muted)}
.fixed-asset-node-editor .fixed-asset-fields label>small{display:block;min-width:0;color:var(--ui-muted);font-size:calc(9px + var(--ui-font-step));line-height:1.6;font-weight:400}
.fixed-asset-node-editor .fixed-asset-account-guide{margin:8px 0 0;padding:6px 8px;border:1px solid var(--ui-line);border-radius:5px;background:var(--ui-surface-2);color:var(--ui-muted);font-size:calc(10px + var(--ui-font-step));line-height:1.7}
.fixed-asset-node-editor fieldset{margin:0 0 8px;padding:8px;border:1px solid var(--ui-line);border-radius:6px;min-width:0}
.fixed-asset-node-editor legend{padding:0 5px;color:var(--ui-navy);font-weight:800;font-size:calc(10px + var(--ui-font-step))}
.fixed-asset-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:8px}
.fixed-asset-fields>label{display:flex;flex-direction:column;gap:3px;min-width:0;margin:0;font-size:calc(9px + var(--ui-font-step));color:var(--ui-navy);font-weight:700}
.fixed-asset-fields :is(input,select,.smart-select){width:100%;min-width:0;height:29px}
.fixed-asset-fields input[readonly]{background:#f5f8fb;color:#60778a}
.fixed-asset-fields>.check-label{flex-direction:row;align-items:center;align-self:end;height:29px}
.fixed-asset-fields>.check-label input{width:15px;height:15px}
.fixed-asset-node-editor .fixed-asset-depreciation-choice{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:0 0 9px;padding:7px 8px;background:var(--ui-surface-2);border:1px solid var(--ui-line);border-radius:5px;font-size:calc(10px + var(--ui-font-step))}
.fixed-asset-depreciation-choice input{width:16px;height:16px;margin:0;flex:0 0 auto}
.fixed-asset-depreciation-choice small{color:var(--ui-muted);font-size:calc(9px + var(--ui-font-step));font-weight:400}
.fixed-asset-inherited-account{display:flex;flex-direction:column;gap:4px;min-width:0;padding:7px 8px;border:1px solid var(--ui-line);border-radius:5px;background:var(--ui-surface-2);font-size:calc(10px + var(--ui-font-step))}
.fixed-asset-inherited-account strong{overflow-wrap:anywhere}
.fixed-asset-inherited-account>span,.fixed-asset-depreciation-paused{color:var(--ui-muted);font-size:calc(9px + var(--ui-font-step))}
.fixed-asset-terms-note{margin:8px 0 0;padding:6px 8px;border:1px solid #dce8f2;border-radius:5px;background:#f6faff;color:#506c84;font-size:calc(8.5px + var(--ui-font-step));line-height:1.6}
.fixed-asset-editor-message{margin:0 10px 5px;flex:0 0 auto}
#accounting-assets-view .fixed-asset-purchases>.card-toolbar.compact{display:flex;justify-content:space-between;align-items:center;gap:8px;height:auto;min-height:32px;padding:5px 8px}
#accounting-assets-view .fixed-asset-purchases .accounting-inline-filter{display:flex;align-items:center;gap:5px}
#accounting-assets-view .fixed-asset-purchases .accounting-inline-filter input{width:280px;max-width:36vw;height:29px}
#accounting-assets-view .fixed-asset-purchases table{min-width:900px}
#accounting-assets-view .fixed-asset-purchases td:last-child{text-align:left}
.fixed-asset-purchase-line{display:grid;grid-template-columns:24px minmax(0,1fr) minmax(140px,190px) 30px;align-items:end;gap:7px;padding:6px;border-bottom:1px solid var(--ui-line);min-width:0}
.fixed-asset-purchase-line:last-child{border-bottom:0}
.fixed-asset-purchase-line>label{display:flex;flex-direction:column;gap:3px;min-width:0;margin:0;font-size:calc(9px + var(--ui-font-step));color:var(--ui-navy);font-weight:700}
.fixed-asset-purchase-line :is(input,select,.smart-select){width:100%;min-width:0;height:29px}
.fixed-asset-purchase-line-number{align-self:center;text-align:center;color:var(--ui-muted)}
.fixed-asset-purchase-line>[data-remove-asset-purchase-line]{height:29px;padding:0;min-width:0}
.fixed-asset-purchase-line-toolbar{display:flex;justify-content:flex-end;padding:6px 0 0}
@media(max-width:620px){
 .fixed-asset-purchase-line{grid-template-columns:20px minmax(0,1fr) 28px;gap:5px}
 .fixed-asset-purchase-line>label{grid-column:2}
 .fixed-asset-purchase-line-number{grid-column:1;grid-row:1/3}
 .fixed-asset-purchase-line>[data-remove-asset-purchase-line]{grid-column:3;grid-row:1/3;align-self:center}
 #accounting-assets-view .fixed-asset-purchases>.card-toolbar.compact{align-items:stretch;flex-direction:column}
 #accounting-assets-view .fixed-asset-purchases .accounting-inline-filter{display:grid;grid-template-columns:minmax(0,1fr) auto}
 #accounting-assets-view .fixed-asset-purchases .accounting-inline-filter input{width:100%;max-width:none;min-width:0}
 #accounting-assets-view .fixed-asset-purchases>.card-toolbar>.button{align-self:flex-end}
 #accounting-assets-view .fixed-assets-directory>.card-toolbar.compact{height:auto;min-height:31px;align-items:stretch;flex-direction:column}
 #accounting-assets-view .fixed-assets-directory .accounting-inline-filter{display:grid;grid-template-columns:1fr auto auto;width:100%}
 #accounting-assets-view .fixed-assets-directory .accounting-inline-filter>input{grid-column:1/-1;width:100%}
 #accounting-assets-view .fixed-assets-directory .accounting-inline-filter>.smart-select,#accounting-assets-view .fixed-assets-directory .accounting-inline-filter select{width:100%;min-width:0}
 #accounting-assets-view .fixed-assets-directory>.card-toolbar>.button{align-self:flex-end}
 .fixed-asset-definition-modal{padding:5px}
 .fixed-asset-definition-modal .fixed-asset-node-editor{width:calc(100vw - 10px);max-height:calc(100dvh - 10px)}
 .fixed-asset-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
 .fixed-asset-node-kind{align-items:flex-start;flex-direction:column;gap:4px}
 .fixed-asset-node-editor .fixed-asset-editor-content{padding:6px}
}
#accounting-treasury-view .treasury-summary-grid{grid-template-columns:repeat(4,minmax(120px,1fr))}
.journal-entry-modal-card,.opening-balance-modal-card,.treasury-modal-card,.asset-modal-card,.cost-center-modal-card{width:min(1080px,97vw)}.journal-lines-table{min-width:880px}.journal-totals{display:flex;align-items:center;justify-content:flex-end;gap:18px;min-height:34px;padding:5px 9px;border-top:1px solid var(--ui-line);background:#f7fafc;font-weight:850}
.invoice-period-print-modal{width:min(720px,96vw)}
.invoice-period-print-fields{display:grid;grid-template-columns:minmax(260px,1.7fr) minmax(130px,1fr) minmax(130px,1fr);gap:7px;padding:10px}
.invoice-period-print-fields .field{min-width:0;margin:0}
.invoice-period-print-fields :is(input,select,.smart-select){width:100%;min-width:0}
.invoice-period-print-note{margin:0 10px 8px;padding:7px 9px;border:1px solid #cfe0eb;border-radius:7px;background:#f5f9fc;color:#536f82;font-size:calc(8.5px + var(--ui-font-step));font-weight:750}
.statement-source-link{border:0;background:transparent;color:var(--ui-blue);font-weight:850;text-decoration:underline;text-underline-offset:2px;white-space:nowrap;direction:ltr}
#sales-invoice-editor-modal{padding:4px}
#sales-invoice-editor-modal>.sales-invoice-editor-modal{width:calc(100vw - 8px);max-width:calc(100vw - 8px);height:calc(100dvh - 8px);max-height:calc(100dvh - 8px)}
#sales-invoice-editor-modal .modal-header{flex:0 0 auto}
#sales-invoice-editor-modal #sales-invoice-editor-form{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;overflow:hidden}
#sales-invoice-editor-modal .invoice-editor-content{overflow-y:auto;display:flex;flex:1 1 auto;flex-direction:column;min-height:0;padding:7px 8px;overscroll-behavior:contain}
#sales-invoice-editor-modal .document-source-note{flex:0 0 auto;margin:0 0 5px;padding:0;overflow:hidden;border:1px solid #b8cbd8;border-radius:6px;background:#fff}
#sales-invoice-editor-modal .invoice-source-identity{display:grid;grid-template-columns:minmax(0,.65fr) minmax(0,.8fr) minmax(0,1.3fr) minmax(0,1.2fr) minmax(0,.8fr) minmax(0,1.25fr);gap:1px;background:#d7e1e8}
#sales-invoice-editor-modal .invoice-source-identity>span{min-width:0;padding:4px 7px;background:#f7fafc}
#sales-invoice-editor-modal .invoice-source-identity :is(small,strong,b){display:block;white-space:normal;overflow-wrap:anywhere;line-height:1.25}
#sales-invoice-editor-modal .invoice-source-identity small{color:var(--ui-muted);font-size:calc(7px + var(--ui-font-step));font-weight:750}
#sales-invoice-editor-modal .invoice-source-identity strong{margin-top:1px;color:var(--ui-navy);font-size:calc(9px + var(--ui-font-step));font-weight:900}
#sales-invoice-editor-modal .invoice-source-identity b{margin-top:1px;color:#688095;font-size:calc(7px + var(--ui-font-step));font-weight:700}
#sales-invoice-editor-modal .invoice-source-notes{padding:4px 7px;border-top:1px solid #d7e1e8;background:#fffdf5;color:#4f6474;font-size:calc(8px + var(--ui-font-step))}
#sales-invoice-editor-modal .invoice-editor-head{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr) minmax(0,1fr) minmax(0,1.3fr);align-items:start;gap:6px 8px;flex:0 0 auto;margin-bottom:6px;padding:7px 8px;border:1px solid var(--ui-line);border-radius:6px;background:#f7fafc}
#sales-invoice-editor-modal .invoice-editor-head .field{gap:2px;min-width:0;margin:0}
#sales-invoice-editor-modal .invoice-editor-head .field>span{color:var(--ui-muted);font-size:calc(8px + var(--ui-font-step));font-weight:800;line-height:1.35}
#sales-invoice-editor-modal .invoice-editor-head .field>input{width:100%;height:28px;min-height:28px}
#sales-invoice-editor-modal .invoice-order-dates{display:flex;flex-wrap:wrap;align-content:center;gap:3px 8px;min-height:28px;padding:3px 5px;border:1px solid var(--ui-line);border-radius:5px;background:#f2f6f9}
#sales-invoice-editor-modal .invoice-order-dates>span{display:flex;flex-wrap:wrap;align-items:center;gap:2px 5px;font-size:calc(8px + var(--ui-font-step));line-height:1.3}
#sales-invoice-editor-modal .invoice-order-dates time{direction:ltr;font-variant-numeric:tabular-nums}
#sales-invoice-editor-modal .invoice-price-choices{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:4px 8px;min-width:0;padding-top:5px;border-top:1px solid var(--ui-line)}
#sales-invoice-editor-modal .invoice-price-choices .smart-select-input{width:100%;min-height:28px}
#sales-invoice-editor-modal .invoice-price-sources,#sales-invoice-editor-modal .invoice-price-choice-help{grid-column:1/-1;min-width:0;color:var(--ui-muted);font-size:9px;line-height:1.3;overflow-wrap:anywhere}
.invoice-price-source-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:6px 0;padding:6px 9px;border:1px solid var(--ui-line);border-radius:6px;background:#f7fafc;font-size:11px}
.invoice-price-source-bar>span,.invoice-price-source-bar>small{color:var(--ui-muted)}
.invoice-price-source-bar>.small-action{margin-inline-start:auto}
.invoice-price-list-cell{min-width:150px}
.invoice-price-list-cell strong,.invoice-price-source-cell strong{display:block;color:var(--ui-text);font-size:11px;line-height:1.45}
.invoice-price-list-cell small{display:block;margin-top:2px;color:var(--ui-muted);font-size:10px}
.invoice-price-source-cell{min-width:126px;max-width:180px;background:#f8fafc;vertical-align:middle}
.invoice-price-history{margin:8px 0;border:1px solid var(--ui-line);border-radius:8px;background:#fff;overflow:hidden}
.invoice-price-history>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 10px;background:#f7f9fc;border-bottom:1px solid var(--ui-line)}
.invoice-price-history>header small,.invoice-price-history-row small,.invoice-price-history>p{color:var(--ui-muted)}
.invoice-price-history-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 10px;border-bottom:1px solid var(--ui-line);font-size:11px}
.invoice-price-history-row:last-child{border-bottom:0}
.invoice-price-history>p{margin:0;padding:9px 10px;font-size:11px}
@media(max-width:600px){.invoice-price-history-row{align-items:flex-start;flex-direction:column;gap:3px}}
#sales-invoice-editor-modal .invoice-tax-toolbar{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding-top:5px;border-top:1px solid var(--ui-line)}
#sales-invoice-editor-modal .invoice-instant-discount{display:grid;grid-template-columns:minmax(150px,190px) 100px auto auto minmax(0,1fr);align-items:start;gap:5px;margin-bottom:6px;padding:6px 8px;border:1px solid var(--ui-line);border-radius:6px;background:#f8fbfd;flex:0 0 auto}
#sales-invoice-editor-modal .invoice-instant-discount.invoice-instant-create{grid-template-columns:minmax(160px,190px) 100px auto minmax(160px,1fr)}
#sales-invoice-editor-modal .invoice-instant-discount .field{min-width:0;margin:0;gap:2px}
#sales-invoice-editor-modal .invoice-instant-discount :is(input,.button){height:28px;min-height:28px;width:100%}
#sales-invoice-editor-modal .invoice-instant-discount .button{width:auto;white-space:nowrap;padding-inline:7px;margin-block-start:13px}
#sales-invoice-editor-modal .invoice-instant-discount small{padding-block-start:13px;color:var(--ui-muted);font-size:11px;line-height:1.4;overflow-wrap:anywhere}
#sales-invoice-editor-modal .invoice-tax-option{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:7px;min-width:0;min-height:32px;padding:3px 7px;border:1px solid #c9d7e1;border-radius:6px;background:#fff}
#sales-invoice-editor-modal .invoice-tax-option .check-label{display:flex;align-items:center;gap:6px;min-width:0;margin:0;font-size:calc(8.5px + var(--ui-font-step));font-weight:800;white-space:normal}
#sales-invoice-editor-modal .invoice-tax-option .check-label input{flex:0 0 auto;width:16px;height:16px;min-height:16px;margin:0}
#sales-invoice-editor-modal .invoice-tax-rate{display:flex;align-items:center;gap:5px;margin:0;color:var(--ui-muted);font-size:calc(8px + var(--ui-font-step));font-weight:800;white-space:nowrap}
#sales-invoice-editor-modal .invoice-tax-rate input{width:72px;height:26px;min-height:26px}
#sales-invoice-editor-modal .invoice-editor-lines{flex:none;min-width:0;margin:0;overflow:visible;border:1px solid var(--ui-line-strong);border-radius:6px;background:#fff}
#sales-invoice-editor-modal .invoice-editor-lines table{width:100%;min-width:0;table-layout:fixed;border-collapse:separate;border-spacing:0}
#sales-invoice-editor-modal .invoice-editor-lines col.invoice-col-index{width:3%}
#sales-invoice-editor-modal .invoice-editor-lines col.invoice-col-sku{width:10%}
#sales-invoice-editor-modal .invoice-editor-lines col.invoice-col-product{width:17%}
#sales-invoice-editor-modal .invoice-editor-lines col:is(.invoice-col-count,.invoice-col-length,.invoice-col-width,.invoice-col-height){width:5%}
#sales-invoice-editor-modal .invoice-editor-lines col.invoice-col-quantity{width:8%}
#sales-invoice-editor-modal .invoice-editor-lines col.invoice-col-price-source{width:12%}
#sales-invoice-editor-modal .invoice-editor-lines col:is(.invoice-col-price,.invoice-col-commercial){width:7%}
#sales-invoice-editor-modal .invoice-editor-lines col.invoice-col-total{width:9%}
#sales-invoice-editor-modal .invoice-editor-lines thead{position:sticky;top:0;z-index:3}
#sales-invoice-editor-modal .invoice-editor-lines th{height:29px;padding:3px 4px;border-left:1px solid #d7e1e8;border-bottom:1px solid #b8c9d5;background:#eaf1f6;color:#244b66;font-size:calc(8px + var(--ui-font-step));line-height:1.15;white-space:normal}
#sales-invoice-editor-modal .invoice-editor-lines td{height:31px;min-width:0;padding:3px 4px;border-left:1px solid #edf2f5;border-bottom:1px solid #dce5eb;font-size:calc(8.5px + var(--ui-font-step));vertical-align:middle;white-space:normal;overflow-wrap:anywhere}
#sales-invoice-editor-modal .invoice-editor-lines tr.invoice-line-start td{border-top:1px solid #b9cbd7}
#sales-invoice-editor-modal .invoice-editor-lines tbody tr:first-child td{border-top:0}
#sales-invoice-editor-modal .invoice-editor-lines tr.invoice-weight-group-member td:not([rowspan]){background:#f8fafc}
#sales-invoice-editor-modal .invoice-editor-lines input{width:100%;min-width:0;height:25px;min-height:25px;padding:2px 4px;text-align:center}
#sales-invoice-editor-modal .invoice-index-cell{text-align:center;color:#6c8191;font-weight:850}
#sales-invoice-editor-modal .invoice-sku-cell{direction:ltr;color:#174f74;font-family:Consolas,"Segoe UI",sans-serif;text-align:center;white-space:nowrap}
#sales-invoice-editor-modal .invoice-sku-cell strong{font-size:calc(8px + var(--ui-font-step))}
#sales-invoice-editor-modal .invoice-sku-cell small{display:block;white-space:normal;overflow-wrap:anywhere}
#sales-invoice-editor-modal .invoice-product-cell{text-align:right}
#sales-invoice-editor-modal .invoice-product-cell>div{display:flex;flex-wrap:wrap;align-items:center;gap:2px 4px;min-width:0}
#sales-invoice-editor-modal .invoice-product-cell>div>small{flex:0 0 auto;padding:1px 4px;border-radius:8px;background:#e5eff7;color:#315d7b;font-size:calc(7px + var(--ui-font-step));white-space:nowrap}
#sales-invoice-editor-modal .invoice-product-cell>input:not([type="hidden"]){margin-top:2px;text-align:right}
#sales-invoice-editor-modal .invoice-quantity-cell{background:#f4faf7;color:#175b47;text-align:center}
#sales-invoice-editor-modal .invoice-weight-override{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:3px;margin:0}
#sales-invoice-editor-modal .invoice-weight-override small{color:#175b47;font-size:calc(7.5px + var(--ui-font-step));font-weight:800}
#sales-invoice-editor-modal .invoice-finance-cell{background:#fffcf5;text-align:center}
#sales-invoice-editor-modal .invoice-commercial-cell small{display:block;margin-top:2px;color:#607485;font-size:calc(7px + var(--ui-font-step));line-height:1.15;white-space:normal}
#sales-invoice-editor-modal .invoice-line-total-cell{background:#eef8f3;color:#105c43;font-weight:900;text-align:center}
#sales-invoice-editor-modal .invoice-price-missing .invoice-finance-cell{background:#fff4e5}
#sales-invoice-editor-modal .invoice-db-summary{display:grid;grid-template-columns:repeat(4,minmax(120px,150px));justify-content:end;gap:4px;flex:0 0 auto;min-height:0;margin:5px 0 0;padding:0;border:0;background:transparent;transition:opacity .12s ease}
#sales-invoice-editor-modal .invoice-db-summary.invoice-preview-pending{opacity:.55}
#sales-invoice-editor-modal .invoice-db-summary span{min-width:0;padding:4px 6px;border:1px solid var(--ui-line);border-radius:5px;background:#f8fafc;color:var(--ui-muted);font-size:calc(7.5px + var(--ui-font-step));font-weight:750}
#sales-invoice-editor-modal .invoice-db-summary strong{display:block;margin-top:1px;color:#15577d;font-size:calc(9px + var(--ui-font-step));font-variant-numeric:tabular-nums}
#sales-invoice-editor-modal .invoice-editor-total{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex:0 0 auto;min-height:31px;margin-top:4px;padding:4px 7px;border:1px solid #b9d5c9;border-radius:6px;background:#f2faf6;color:#365f50;font-size:calc(9px + var(--ui-font-step));font-weight:850}
#sales-invoice-editor-modal .invoice-editor-total strong{color:#0d6749;font-size:calc(13px + var(--ui-font-step));font-variant-numeric:tabular-nums}
#sales-invoice-editor-modal #sales-invoice-editor-message{flex:0 0 auto;margin:4px 0 0}
#sales-invoice-editor-modal .modal-actions{position:static;flex:0 0 auto;flex-wrap:wrap;min-height:39px;margin:0;padding:5px 8px}
#sales-invoice-editor-modal .saved-invoice-actions{display:flex;align-items:center;gap:4px}
#invoice-detail-modal{padding:8px}
#invoice-detail-modal>.accounting-document-modal{width:min(1320px,calc(100vw - 16px));max-width:calc(100vw - 16px);height:min(820px,calc(100vh - 16px));max-height:calc(100vh - 16px)}
#invoice-detail-modal .modal-header{gap:6px;padding-inline:7px}
#invoice-detail-modal .modal-header>div:first-child{flex:1 1 auto}
#invoice-detail-modal .modal-header .document-sequence-nav{flex:0 0 auto;white-space:nowrap}
#invoice-detail-modal #invoice-detail-content{display:flex;flex:1 1 auto;min-width:0;min-height:0;flex-direction:column;gap:5px;padding:6px 8px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#a9bfd0 transparent}
#invoice-detail-modal .document-journal-link{display:flex;align-items:center;gap:6px;flex:0 0 auto;min-height:29px;padding:3px 7px;border:1px solid #c5d9e6;border-radius:6px;background:#f1f7fb;color:#46677d;font-size:calc(8px + var(--ui-font-step));font-weight:800}
#invoice-detail-modal .document-journal-link .order-link{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#invoice-detail-modal .document-journal-link small{margin-inline-start:auto;color:var(--ui-muted);font-size:calc(7.5px + var(--ui-font-step))}
#invoice-detail-modal .accounting-doc-head{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:1px;flex:0 0 auto;border:1px solid #c5d6e1;border-radius:6px;background:#d7e1e8;overflow:hidden}
#invoice-detail-modal .accounting-doc-head>div{display:grid;align-content:center;min-width:0;min-height:47px;padding:4px 7px;background:#f8fbfd;line-height:1.15}
#invoice-detail-modal .accounting-doc-head :is(span,strong,small){display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#invoice-detail-modal .accounting-doc-head span{color:var(--ui-muted);font-size:calc(7px + var(--ui-font-step));font-weight:750}
#invoice-detail-modal .accounting-doc-head strong{margin-top:2px;color:#173f5c;font-size:calc(9px + var(--ui-font-step));font-weight:900}
#invoice-detail-modal .accounting-doc-head small{margin-top:2px;color:var(--ui-muted);font-size:calc(7px + var(--ui-font-step));font-weight:700}
#invoice-detail-modal .accounting-doc-head .status{display:inline-flex;width:max-content;max-width:100%;margin-top:2px}
#invoice-detail-modal .accounting-doc-balance.outstanding{background:#fff8ed}
#invoice-detail-modal .accounting-doc-balance.outstanding strong{color:#9a5c0b}
#invoice-detail-modal .invoice-detail-notes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;flex:0 0 auto}
#invoice-detail-modal .document-source-note{min-width:0;margin:0;padding:5px 7px;border:1px solid #d5e1e8;border-radius:6px;background:#fffdf5;color:#536f81;font-size:calc(7.5px + var(--ui-font-step));line-height:1.3;overflow-wrap:anywhere}
#invoice-detail-modal .document-source-note>strong{margin-inline-end:5px;color:#254e68}
#invoice-detail-modal .invoice-detail-lines{flex:0 0 auto;min-width:0;margin:0;border:1px solid var(--ui-line);border-radius:6px;background:#fff;overflow:hidden}
#invoice-detail-modal .invoice-detail-lines>.card-toolbar{min-height:32px;padding:3px 6px;background:#f8fbfd}
#invoice-detail-modal .invoice-detail-lines>.card-toolbar h2{margin:0;font-size:calc(10px + var(--ui-font-step));white-space:nowrap}
#invoice-detail-modal .invoice-detail-lines>.card-toolbar p{overflow:hidden;margin:1px 0 0;color:var(--ui-muted);font-size:calc(7.5px + var(--ui-font-step));text-overflow:ellipsis;white-space:nowrap}
#invoice-detail-modal .invoice-detail-lines>.table-wrap{max-width:100%;overflow:auto}
#invoice-detail-modal .invoice-detail-lines table{width:100%;min-width:1300px;table-layout:fixed}
#invoice-detail-modal .invoice-detail-lines th:nth-child(1){width:36px}
#invoice-detail-modal .invoice-detail-lines th:nth-child(2){width:90px}
#invoice-detail-modal .invoice-detail-lines th:nth-child(3){width:190px}
#invoice-detail-modal .invoice-detail-lines th:nth-child(4){width:55px}
#invoice-detail-modal .invoice-detail-lines th:nth-child(5),#invoice-detail-modal .invoice-detail-lines th:nth-child(6),#invoice-detail-modal .invoice-detail-lines th:nth-child(7){width:70px}
#invoice-detail-modal .invoice-detail-lines th:nth-child(8){width:100px}
#invoice-detail-modal .invoice-detail-lines th:nth-child(9){width:85px}
#invoice-detail-modal .invoice-detail-lines th:nth-child(10){width:90px}
#invoice-detail-modal .invoice-detail-lines th:nth-child(11){width:120px}
#invoice-detail-modal .invoice-detail-lines th:nth-child(12){width:105px}
#invoice-detail-modal .invoice-detail-lines :is(th,td){height:29px;padding:3px 4px;vertical-align:middle}
#invoice-detail-modal .invoice-detail-lines td:nth-child(n+4){text-align:center;font-variant-numeric:tabular-nums}
#invoice-detail-modal .invoice-detail-lines td>small{display:block;margin-top:2px;color:var(--ui-muted);font-size:calc(7px + var(--ui-font-step))}
#invoice-detail-modal .invoice-weight-group-member td{background:#fbfdff}
#invoice-detail-modal .accounting-doc-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;flex:0 0 auto}
#invoice-detail-modal .accounting-doc-totals>div{display:flex;align-items:center;justify-content:space-between;min-width:0;min-height:31px;gap:6px;padding:4px 7px;border:1px solid var(--ui-line);border-radius:5px;background:#f8fafc}
#invoice-detail-modal .accounting-doc-totals span{overflow:hidden;color:var(--ui-muted);font-size:calc(7.5px + var(--ui-font-step));font-weight:750;text-overflow:ellipsis;white-space:nowrap}
#invoice-detail-modal .accounting-doc-totals b{color:#15577d;font-size:calc(9px + var(--ui-font-step));font-variant-numeric:tabular-nums;white-space:nowrap}
#invoice-detail-modal .accounting-doc-totals .grand{border-color:#b9d5c6;background:#eef8f3}
#invoice-detail-modal .accounting-doc-totals .grand :is(span,b){color:#125d45;font-weight:900}
#invoice-detail-modal .invoice-amount-in-words{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:8px;flex:0 0 auto;padding:5px 7px;border:1px solid #d4e1e9;border-radius:6px;background:#fbfdff}
#invoice-detail-modal .invoice-amount-in-words span{color:var(--ui-muted);font-size:calc(7.5px + var(--ui-font-step));font-weight:800;white-space:nowrap}
#invoice-detail-modal .invoice-amount-in-words strong{min-width:0;color:#264e68;font-size:calc(8px + var(--ui-font-step));line-height:1.35;overflow-wrap:anywhere}
#invoice-detail-modal>.accounting-document-modal>.modal-actions{flex:0 0 auto;margin-top:0;overflow-x:auto;white-space:nowrap;scrollbar-width:thin}
.accounting-more-tabs{position:relative;flex:0 0 auto;height:24px}.accounting-more-tabs>summary{display:flex;align-items:center;gap:5px;height:24px;padding:0 10px;border:1px solid transparent;border-radius:5px;color:#587087;font-size:calc(9px + var(--ui-font-step));font-weight:800;list-style:none;cursor:pointer;transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease}.accounting-more-tabs>summary::-webkit-details-marker{display:none}.accounting-more-tabs>summary:hover,.accounting-more-tabs>summary.active,.accounting-more-tabs[open]>summary{border-color:#acd0ed;background:var(--ui-blue-soft);color:var(--ui-blue)}.accounting-more-tabs>div{position:absolute;top:calc(100% + 4px);left:0;z-index:1300;display:grid;gap:2px;min-width:175px;padding:4px;border:1px solid var(--ui-line-strong);border-radius:7px;background:#fff;box-shadow:0 12px 28px rgba(19,51,77,.16)}.accounting-more-tabs>div>button{display:flex;align-items:center;width:100%;height:27px;padding:0 8px;border:0;border-radius:5px;background:#fff;color:var(--ui-text);font-size:calc(9px + var(--ui-font-step));font-weight:750;text-align:right}.accounting-more-tabs>div>button:hover,.accounting-more-tabs>div>button.active{background:var(--ui-blue-soft);color:var(--ui-blue)}
@media(max-width:900px){#invoice-detail-modal .accounting-doc-head{grid-template-columns:repeat(4,minmax(0,1fr))}#invoice-detail-modal .accounting-doc-balance{grid-column:span 2}#invoice-detail-modal .accounting-doc-totals{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){#accounting-journal-form .journal-lines-editor{overflow-x:auto;max-width:100%;padding-bottom:4px}#accounting-journal-form .journal-edit-line{min-width:740px}#accounting-costs-view .cost-center-directory>.card-toolbar.compact{height:auto;flex-wrap:wrap}#accounting-costs-view .cost-center-directory>.card-toolbar.compact>div:first-child{flex:1 1 100%;min-width:0}#accounting-costs-view .cost-center-tools{width:100%;flex-wrap:wrap;margin-right:0}#accounting-costs-view .cost-center-tools>input{width:100%;flex:1 1 100%}#accounting-costs-view .cost-center-tools>button{flex:0 0 auto}#accounting-general-view .journal-register-bar{height:auto}#accounting-general-view .journal-register-filter,#accounting-general-view .ledger-filter,#accounting-customers-view .customer-account-filter,#accounting-treasury-view .treasury-register-filter{grid-template-columns:1fr 1fr}#accounting-general-view :is(.journal-register-filter,.ledger-filter)>:first-child,#accounting-customers-view .customer-account-filter>:first-child,#accounting-treasury-view .treasury-register-filter>:first-child{grid-column:1/-1}#accounting-general-view .report-filter{grid-template-columns:1fr 1fr auto;width:100%}#accounting-general-view .customer-balance-filter{grid-template-columns:1fr 1fr auto}#accounting-general-view .customer-balance-filter>:first-child{grid-column:1/-1}#accounting-general-view .financial-statements-grid{grid-template-columns:1fr}#accounting-general-view .coa-toolbar{overflow-x:auto}#accounting-general-view .coa-tree-search{width:190px;min-width:190px}.accounting-data-table .account-tree-name{grid-template-columns:19px 62px minmax(110px,1fr) auto;gap:4px;padding-right:calc(var(--account-depth) * 18px + 2px)}.accounting-data-table .account-tree-rail{right:calc(var(--account-depth) * 18px - 7px)}#accounting-customers-view .invoice-register-toolbar{height:auto}#accounting-customers-view .invoice-register-filter{align-items:stretch;flex-direction:column}#accounting-customers-view .invoice-register-filter-fields{grid-template-columns:1fr 1fr;width:100%}#accounting-customers-view .invoice-register-filter-fields .invoice-register-search{grid-column:1/-1}#accounting-customers-view .invoice-register-filter-actions{justify-content:flex-start;width:100%}.invoice-period-print-fields{grid-template-columns:1fr 1fr}.invoice-period-print-fields .invoice-period-customer{grid-column:1/-1}#accounting-costs-view .cost-center-layout,#accounting-assets-view .asset-layout{grid-template-columns:1fr}#accounting-treasury-view .treasury-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){#invoice-detail-modal{padding:4px}#invoice-detail-modal>.accounting-document-modal{width:calc(100vw - 8px);max-width:calc(100vw - 8px);height:calc(100vh - 8px);max-height:calc(100vh - 8px)}#invoice-detail-modal .modal-header{gap:4px;padding-inline:5px}#invoice-detail-modal .modal-header h2{font-size:calc(11px + var(--ui-font-step))}#invoice-detail-modal .modal-header .document-sequence-nav>span{display:none}#invoice-detail-modal #invoice-detail-content{padding:5px}#invoice-detail-modal .document-journal-link{overflow-x:auto}#invoice-detail-modal .document-journal-link small{margin-inline-start:0}#invoice-detail-modal .accounting-doc-head{grid-template-columns:repeat(2,minmax(0,1fr))}#invoice-detail-modal .accounting-doc-head>div:first-child{grid-column:1/-1}#invoice-detail-modal .accounting-doc-balance{grid-column:auto}#invoice-detail-modal .invoice-detail-notes{grid-template-columns:1fr}#invoice-detail-modal .invoice-detail-lines>.card-toolbar p{display:none}#invoice-detail-modal .accounting-doc-totals{grid-template-columns:repeat(2,minmax(0,1fr))}#invoice-detail-modal .invoice-amount-in-words{grid-template-columns:1fr;gap:2px}#invoice-detail-modal>.accounting-document-modal>.modal-actions{justify-content:flex-start;padding-inline:5px}}
.customer-notes-screen{min-width:0;width:100%}
.customer-notes-screen .customer-notes-actions{display:flex;justify-content:space-between;align-items:center;gap:5px;padding:3px 5px;border-bottom:1px solid #e2eaf0}
.customer-notes-screen .customer-notes-actions h2{margin:0;font-size:14px;font-weight:700}
.customer-notes-screen .customer-notes-filter{display:grid;grid-template-columns:220px 135px 135px minmax(0,1fr) auto;align-items:center;gap:5px;padding:3px 6px;border-bottom:1px solid #e2eaf0}
.customer-notes-screen .customer-notes-filter .field{display:flex;flex-direction:row;align-items:center;gap:4px;min-width:0;margin:0}
.customer-notes-screen .customer-notes-filter .field input{min-width:0;width:100%}
.customer-notes-screen .customer-notes-filter .field span{flex-shrink:0}
.customer-notes-screen .customer-notes-filter-actions{grid-column:5;display:flex;justify-content:flex-end;gap:5px}
.customer-notes-screen .customer-notes-filter :is(input,button){height:29px;min-height:29px}
.customer-notes-screen .customer-notes-filter .field span{font-size:11px}
.customer-notes-screen .order-link{padding:0;border:0;background:transparent;color:var(--primary,#0869b1);font:inherit;cursor:pointer}
.customer-notes-screen .order-link:hover{text-decoration:underline}
.customer-notes-screen .customer-notes-table{width:100%;table-layout:fixed}
.customer-notes-screen .customer-notes-table th:nth-child(1){width:12%}
.customer-notes-screen .customer-notes-table th:nth-child(2){width:10%}
.customer-notes-screen .customer-notes-table th:nth-child(3){width:18%}
.customer-notes-screen .customer-notes-table th:nth-child(4){width:12%}
.customer-notes-screen .customer-notes-table th:nth-child(5){width:14%}
.customer-notes-screen .customer-notes-table th:nth-child(6),.customer-notes-screen .customer-notes-table th:nth-child(7),.customer-notes-screen .customer-notes-table th:nth-child(9){width:8%}
.customer-notes-screen .customer-notes-table th:nth-child(8){width:10%}
.customer-notes-screen .customer-notes-table :is(th,td){padding:5px;overflow-wrap:anywhere}
.customer-notes-screen .customer-notes-table td:nth-child(5){white-space:nowrap}
.customer-notes-screen .customer-notes-table small{display:block;color:var(--ui-muted)}
.customer-notes-screen .customer-notes-more{margin:5px;float:left}
.invoice-source-selection-card{width:min(820px,calc(100vw - 20px));max-height:calc(100dvh - 20px);overflow:hidden}
.invoice-source-selection-card>form{display:flex;flex-direction:column;min-height:0;overflow:hidden}
.invoice-source-selection-card>.modal-header{flex:none}
.invoice-source-body{display:grid;gap:7px;min-height:0;overflow:auto;overscroll-behavior:contain;padding:8px}
.invoice-source-lookup{display:grid;gap:6px;padding:8px;border:1px solid var(--ui-line);border-radius:7px;background:#f8fbfd}
.invoice-source-lookup .field{min-width:0;margin:0;gap:3px}
.invoice-source-lookup .smart-select-input{width:100%;min-height:32px}
.invoice-source-pricing-note{color:var(--ui-muted);font-size:11px;line-height:1.45}
.invoice-source-selection-card #new-sales-invoice-sources{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;min-width:0}
.invoice-source-selection-card #new-sales-invoice-sources:empty{display:none}
.invoice-source-choice{padding:6px 8px;border:1px solid var(--ui-line);border-radius:7px;background:#f7fafc}
.invoice-source-choice>header{display:flex;align-items:center;justify-content:space-between;gap:6px}
.invoice-source-choice>header>div{min-width:0}
.invoice-source-choice>header>button{flex:none}
.invoice-source-choice :is(strong,small){display:block;overflow-wrap:anywhere}
.invoice-source-choice small{font-size:11px;color:var(--ui-muted)}
@media(max-width:760px){
  .invoice-source-selection-card #new-sales-invoice-sources{grid-template-columns:minmax(0,1fr)}
  #sales-invoice-editor-modal .invoice-source-identity,#sales-invoice-editor-modal .invoice-editor-head,#sales-invoice-editor-modal .invoice-db-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  #sales-invoice-editor-modal .invoice-editor-notes{grid-column:1/-1}
  #sales-invoice-editor-modal .invoice-price-choices,#sales-invoice-editor-modal .invoice-tax-toolbar{grid-template-columns:minmax(0,1fr)}
  #sales-invoice-editor-modal .invoice-instant-discount,#sales-invoice-editor-modal .invoice-instant-discount.invoice-instant-create{grid-template-columns:repeat(2,minmax(0,1fr))}
  #sales-invoice-editor-modal .invoice-instant-discount small{grid-column:1/-1;padding-block-start:0}
  #sales-invoice-editor-modal .invoice-instant-discount .button{margin-block-start:0}
  #sales-invoice-editor-modal .invoice-editor-lines{overflow-x:auto}
  #sales-invoice-editor-modal .invoice-editor-lines table{min-width:820px}
}
.raw-sales-screen{min-width:0;max-width:100%}
.raw-sales-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:34px;padding:4px 6px;border-bottom:1px solid var(--ui-border)}
.raw-sales-heading h2{margin:0;font-size:15px}
.raw-sales-actions{display:flex;gap:5px;margin-inline-start:auto}
.raw-sales-filter{display:flex;align-items:center;gap:6px;padding:5px 6px;min-width:0}
.raw-sales-filter nav{flex:0 0 auto;width:auto;min-width:0}
.raw-sales-filter label{display:flex;align-items:center;gap:4px;min-width:0;flex:0 1 auto}
.raw-sales-filter input:not([type=date]){width:190px;max-width:20vw}
.raw-sales-filter input[type=date]{width:132px}
.raw-sales-filter :is(input,button){min-height:28px;height:28px}
.raw-sales-screen .table-wrap{max-width:100%;overflow:auto}
.raw-sales-screen table{width:100%}
:is(#raw-order-modal,#raw-delivery-modal) .raw-sales-card{display:flex;flex-direction:column;width:min(1080px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:hidden}
.raw-sales-card>form{display:flex;flex-direction:column;min-height:0;overflow:hidden}
.raw-sales-card :is(.modal-header,.modal-actions){flex-shrink:0;padding:7px 10px}
.raw-sales-card .raw-sales-content{overflow:auto;min-height:0;padding:8px 10px}
.raw-sales-card .raw-sales-fields{display:grid;grid-template-columns:minmax(180px,2fr) minmax(130px,1fr) minmax(160px,1.5fr);gap:7px;margin-bottom:8px}
#raw-delivery-modal .raw-sales-fields{grid-template-columns:minmax(180px,2fr) minmax(140px,1.5fr) 140px minmax(140px,1.5fr);padding:6px 8px;border:1px solid var(--ui-line);border-radius:8px;background:#f8fbfd}
.raw-sales-card .field{min-width:0;margin:0}
.raw-sales-card table{width:100%;table-layout:fixed}
#raw-order-modal th:first-child{width:48%}
#raw-order-modal th:last-child{width:55px}
#raw-delivery-modal th:first-child{width:50px}
#raw-delivery-modal th:nth-child(2){width:40%}
.raw-sales-card td :is(input:not([type=checkbox]),select,.smart-select){width:100%;min-width:0}
.raw-sales-card :is(input,select){height:30px;min-height:30px}
.raw-sales-card .table-wrap{overflow:visible}
.raw-sales-card [data-raw-add-line]{margin-top:7px}
@media(max-width:760px){.raw-sales-heading{align-items:flex-start}.raw-sales-actions{flex-wrap:wrap;justify-content:flex-end}.raw-sales-filter{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.raw-sales-filter nav{grid-column:1/-1}.raw-sales-filter input:not([type=date]){width:100%;max-width:none}.raw-sales-filter input[type=date]{width:100%}.raw-sales-card .raw-sales-fields,#raw-delivery-modal .raw-sales-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.raw-sales-card .raw-sales-fields>.field:first-child,.raw-sales-card .raw-sales-notes{grid-column:1/-1}.raw-sales-card table{min-width:540px}.raw-sales-card .table-wrap{overflow:auto}}
#customer-note-modal .customer-note-card{display:flex;flex-direction:column;width:min(900px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:hidden}
#customer-note-modal .customer-note-card>form{display:flex;flex-direction:column;min-height:0;overflow:hidden}
#customer-note-modal :is(.modal-header,.modal-actions){flex-shrink:0;padding:7px 10px}
#customer-note-modal .customer-note-content{min-height:0;overflow:auto;padding:9px 10px}
#customer-note-modal .customer-note-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
#customer-note-modal .field{min-width:0;margin:0}
#customer-note-modal .field :is(input,select){min-height:30px;height:30px}
#customer-note-modal .customer-note-description{grid-column:1/-1}
#customer-note-modal textarea{min-height:55px;resize:vertical}
#customer-note-modal .customer-note-hint{margin:7px 0 0;color:var(--ui-muted);font-size:12px}
@media(max-width:760px){.customer-notes-screen .customer-notes-filter{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-notes-screen .customer-notes-filter>.field:first-child{grid-column:1/-1}.customer-notes-screen .customer-notes-filter-actions{grid-column:1/-1}.customer-notes-screen .customer-notes-table{min-width:850px}#customer-note-modal .customer-note-fields{grid-template-columns:repeat(2,minmax(0,1fr))}#customer-note-modal .field:has([name=partyId]),#customer-note-modal .field:has([name=offsetAccountId]),#customer-note-modal .customer-note-offset-party,#customer-note-modal .customer-note-invoice{grid-column:1/-1}}
/* Cheque portfolio owns its compact header, secondary filters and modal. */
.cheques-workspace{padding:0;min-width:0;overflow:hidden}
.cheques-header{position:relative;display:flex;align-items:center;gap:6px;padding:2px 6px;border-bottom:1px solid var(--ui-line);min-height:var(--ui-subbar-h)}
.cheques-identity{display:flex;align-items:center;gap:8px;min-width:0}.cheques-header h2{font-size:calc(11px + var(--ui-font-step));margin:0;line-height:1.2;white-space:nowrap}.cheques-identity>span{font-size:calc(8px + var(--ui-font-step));color:var(--ui-muted);white-space:nowrap}
.cheques-header-actions{display:flex;align-items:center;gap:4px;margin-inline-start:auto;flex:none}.cheques-header .button{height:var(--ui-control-h);min-height:var(--ui-control-h);padding:0 8px}
.cheques-guidance>summary{display:flex;align-items:center;justify-content:center;width:25px;height:var(--ui-control-h);border:1px solid var(--ui-line);border-radius:5px;background:var(--ui-surface-2);color:var(--ui-muted);cursor:pointer;list-style:none;font-size:15px}.cheques-guidance>summary::-webkit-details-marker{display:none}.cheques-guidance>summary:focus-visible{outline:2px solid var(--ui-blue);outline-offset:1px}.cheques-guidance[open]>summary{color:var(--ui-blue);border-color:var(--ui-line-strong)}
.cheques-guidance .cheques-hint{position:absolute;inset-inline:5px;top:calc(100% + 4px);z-index:20;font-size:calc(10px + var(--ui-font-step));line-height:1.6;color:var(--ui-text);padding:7px 9px;background:var(--ui-surface-2);border:1px solid var(--ui-line-strong);border-radius:var(--ui-radius);box-shadow:var(--ui-shadow)}
.cheques-filters{display:flex;align-items:center;gap:5px;padding:3px 6px;border-bottom:1px solid var(--ui-line);min-width:0;min-height:var(--ui-subbar-h)}
.cheques-filters>input[name=q]{width:220px;min-width:150px;flex:0 1 220px}.cheques-filters>select,.cheques-filters>.smart-select{width:120px;min-width:90px;max-width:120px;flex:0 1 120px}
.cheques-filters label{display:flex;align-items:center;gap:4px;font-size:calc(9px + var(--ui-font-step));color:var(--ui-muted);white-space:nowrap;min-width:0;flex:none}.cheques-filters label>input{width:120px}
.cheques-filters input,.cheques-filters select{height:var(--ui-control-h);min-height:var(--ui-control-h);max-width:100%;min-width:0;border:1px solid var(--ui-line-strong);border-radius:5px;padding:0 6px;font:inherit;background:#fff;color:var(--ui-text)}
.cheques-filters .button{height:var(--ui-control-h);min-height:var(--ui-control-h);padding:0 8px;flex:none}.cheques-filters>button:first-of-type{margin-inline-start:auto}
.cheques-table{min-width:950px}.cheques-table td{vertical-align:middle}.cheques-table td small{display:block;font-size:11px;color:#73869a;margin-top:4px}.cheques-table td strong{font-size:12px}.cheques-table .cheque-due{color:#a96d0c}
.cheques-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border-top:1px solid #e7eef5;color:#6e8399;font-size:12px}.cheques-pager>div{display:flex;gap:7px}
.cheque-modal-card{width:min(960px,calc(100vw - 28px));max-height:calc(100dvh - 32px);display:flex;flex-direction:column;overflow:hidden;padding:0}
.cheque-modal-card>.modal-header{flex:none;padding:12px 16px;border-bottom:1px solid #dfeaf4}.cheque-modal-card>.modal-header h2{font-size:17px}
.cheque-modal-card form{display:flex;flex-direction:column;min-height:0;overflow:hidden}.cheque-modal-card main{padding:16px;overflow:auto;min-height:0;overscroll-behavior:contain}
.cheque-modal-card .modal-actions{flex:none;margin:0;padding:11px 16px;border-top:1px solid #dfeaf4}.cheque-modal-card .modal-actions>span{margin-inline-end:auto;color:#7d8fa1;font-size:12px}
.cheque-modal-card .form-message:not(.hidden){flex:none;margin:0;padding:8px 16px;max-height:90px;overflow:auto}
.cheque-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px 14px}.cheque-fields .field{min-width:0;margin:0;display:flex;flex-direction:column;gap:5px;font-size:12px}
.cheque-fields .field>span{font-weight:600;color:#315875}.cheque-fields input,.cheque-fields select,.cheque-fields textarea{width:100%;max-width:100%;min-width:0;border:1px solid #c9dcec;border-radius:5px;padding:7px 9px;font:inherit;background:#fff;box-sizing:border-box}
.cheque-fields input,.cheque-fields select{height:35px}.cheque-fields .cheque-party{grid-column:span 2}.cheque-fields .cheque-wide{grid-column:1/-1}.cheque-fields [hidden]{display:none}
.cheque-form-note{font-size:12px;line-height:1.8;color:#647d94;background:#f5f9fd;padding:9px 12px;border-radius:5px;margin:15px 0 0}
.cheque-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 16px}.cheque-summary>div{background:#f5f9fd;border:1px solid #e0eaf4;padding:10px;border-radius:6px;min-width:0}.cheque-summary dt{font-size:11px;color:#698198}.cheque-summary dd{font-size:13px;font-weight:600;margin:5px 0 0;overflow-wrap:anywhere}.cheque-detail-actions{display:flex;gap:8px;padding-top:14px}
@media(min-width:761px) and (max-width:1100px){.cheques-filters>input[name=q]{width:170px;flex-basis:170px}.cheques-filters>select{width:100px;max-width:100px;flex-basis:100px}.cheques-filters label>input{width:112px}.cheques-filters .button{padding-inline:7px}}
@media(max-width:1100px){.cheque-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.cheque-fields .cheque-party{grid-column:auto}}
@media(max-width:760px){.cheques-identity{flex-wrap:wrap;gap:2px 6px}.cheques-header{padding:3px 5px;min-height:31px}.cheques-header h2{font-size:12px}.cheques-identity>span{font-size:10px}.cheques-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:4px 5px;gap:4px}.cheques-filters>input[name=q]{grid-column:1/-1;width:100%;min-width:0}.cheques-filters>select,.cheques-filters>.smart-select{width:100%;max-width:none}.cheques-filters>.button{width:100%}.cheques-filters>button:first-of-type{margin-inline-start:0}.cheques-filters label{width:100%;font-size:10px}.cheques-filters label>input{width:0;flex:1;min-width:0}}
@media(max-width:600px){.cheque-modal-card{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.cheque-modal-card main{padding:12px}.cheque-modal-card>.modal-header h2{font-size:15px}.cheque-fields{gap:11px 9px}.cheque-fields .cheque-party{grid-column:1/-1}.cheque-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.cheque-summary dd{font-size:12px}.cheque-modal-card .modal-actions{padding:10px}.cheque-modal-card .modal-actions>span{font-size:10px}.cheques-pager{padding:10px;font-size:11px}}
.fiscal-calendar{min-width:0}
.fiscal-calendar-tools{display:flex;align-items:end;gap:7px;min-width:0;padding:6px 8px;border-bottom:1px solid var(--ui-line);background:#f8fbfd}
.fiscal-calendar-tools>.field{width:min(290px,30vw);margin:0;gap:3px}
.fiscal-calendar-tools :is(select,.button){min-height:30px}
.fiscal-calendar-tools>.status{margin-bottom:4px}
.fiscal-calendar-actions{display:flex;align-items:center;gap:5px;margin-inline-start:auto}
.fiscal-period-table{min-width:0}
.fiscal-period-table table{width:100%;min-width:0;table-layout:fixed}
.fiscal-period-table :is(td,th){padding:5px 7px;white-space:normal;overflow-wrap:anywhere}
.fiscal-period-table td small{display:block;color:var(--ui-muted)}
.fiscal-period-table :is(td,th):last-child{width:85px}
.fiscal-close-summary,.fiscal-review-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:7px}
.fiscal-close-summary>span,.fiscal-review-totals>span{display:grid;align-content:start;gap:3px;min-width:0;padding:6px 8px;border:1px solid var(--ui-line);border-radius:6px;background:#f5f9fc;color:var(--ui-muted);overflow-wrap:anywhere}
.fiscal-close-summary strong,.fiscal-review-totals strong{color:var(--ui-navy)}
.fiscal-review-totals strong{direction:ltr;unicode-bidi:isolate;text-align:end;font-variant-numeric:tabular-nums}
.fiscal-close-summary>.small-action{justify-self:start}
.fiscal-action-card{width:min(890px,calc(100vw - 20px));max-height:calc(100dvh - 20px)}
.fiscal-action-card>form{display:flex;flex-direction:column;min-height:0;overflow:hidden}
.fiscal-action-card .modal-header{flex:none}
.fiscal-action-card .modal-header small{color:var(--ui-muted)}
#fiscal-action-body{min-height:0;overflow:auto;overscroll-behavior:contain;padding:8px 10px}
#fiscal-action-body .field{margin:0 0 6px;gap:4px}
#fiscal-action-body :is(input[type="date"],.smart-select-input){width:min(100%,420px)}
#fiscal-equity-field .smart-select{max-width:420px}
#fiscal-action-note:empty,#fiscal-review-results:empty{display:none}
.fiscal-review-totals{padding:0;margin-bottom:6px}
.fiscal-review-panel{margin:6px 0;border:1px solid var(--ui-line);border-radius:6px;background:#fff}
.fiscal-review-panel>h3{margin:0;padding:6px 8px;border-bottom:1px solid var(--ui-line);background:#f2f6f9;color:var(--ui-navy);font-size:11px}
.fiscal-blockers{margin:6px 0;padding:7px 24px;line-height:1.65}
.fiscal-draft-types{display:flex;flex-wrap:wrap;gap:4px;padding:6px 8px}
.fiscal-check-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin:0;padding:5px}
.fiscal-check-list>div{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:5px;padding:4px 6px;border-bottom:1px solid var(--ui-line)}
.fiscal-check-list dd{margin:0;font-weight:700}
.fiscal-modal-table{margin:0}
.fiscal-modal-table table{width:100%;min-width:0;table-layout:fixed}
.fiscal-modal-table :is(th,td){white-space:normal;overflow-wrap:anywhere}
.fiscal-review-panel>.fiscal-modal-table td:not(:first-child){direction:ltr;unicode-bidi:isolate;white-space:nowrap;font-variant-numeric:tabular-nums}
.fiscal-acknowledgment{display:flex;align-items:center;gap:6px;margin:4px 0}
.fiscal-acknowledgment>input{width:16px;min-height:16px;margin:0}
@media(max-width:760px){
  .fiscal-calendar-tools{display:grid;grid-template-columns:minmax(0,1fr) auto}
  .fiscal-calendar-tools>.field{width:100%}
  .fiscal-calendar-actions{grid-column:1/-1;justify-content:flex-end;flex-wrap:wrap;margin-inline-start:0}
  .fiscal-period-table table{min-width:490px}
  .fiscal-close-summary,.fiscal-review-totals{grid-template-columns:repeat(2,minmax(0,1fr))}
  .fiscal-check-list{grid-template-columns:minmax(0,1fr)}
  .fiscal-review-panel>.fiscal-modal-table :is(table,thead,tbody){display:block}
  .fiscal-review-panel>.fiscal-modal-table tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
  .fiscal-review-panel>.fiscal-modal-table th:first-child{display:none}
  .fiscal-review-panel>.fiscal-modal-table td:first-child{grid-column:1/-1;background:#f1f6fa;font-weight:750}
  .fiscal-review-panel>.fiscal-modal-table td:not(:first-child){text-align:center}
}
