.accounting-workbench,.accounting-settings{--accounting-teal:#155e70;min-width:0;color:#152c38;font:13px/1.4 Arial,sans-serif}
.accounting-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.accounting-heading h2{margin:0 0 3px;font-size:21px}.accounting-heading p{margin:0;color:#526775}.accounting-settings-link{color:#155e70;font-weight:600;white-space:nowrap}
.accounting-workbench button,.accounting-settings button{min-height:34px;padding:7px 13px;border-radius:6px;font-size:12px;white-space:normal}.accounting-workbench button.primary,.accounting-settings button.primary{background:#155e70;color:#fff;border:1px solid #155e70}.accounting-workbench button:disabled,.accounting-settings button:disabled{opacity:.5;cursor:default}
.accounting-toolbar{display:grid;grid-template-columns:120px minmax(160px,1fr) 145px 145px auto;gap:10px;align-items:end;padding:14px;background:#f1f6f8;border:1px solid #d4e2e7;border-radius:8px}
.accounting-workbench label{display:flex;flex-direction:column;gap:4px;font-weight:600;font-size:12px}.accounting-workbench input,.accounting-workbench select{width:100%;min-width:0;min-height:35px;padding:6px 9px;font:13px Arial,sans-serif;border:1px solid #c7d9e1;border-radius:5px;background:white;color:#152c38}.accounting-company input{background:#e8f0f3}
.accounting-load-actions{display:flex;gap:6px}.accounting-status-bar{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:7px 2px;color:#45616c;font-size:12px}.accounting-status-bar button{background:transparent;color:#155e70;border:0;font-weight:600}
.accounting-grid-tools{display:flex;align-items:end;gap:10px;margin:8px 0}.accounting-grid-tools label:first-child{flex:1}.accounting-grid-tools label:nth-child(2){width:160px}
.accounting-invoice-grid{max-height:clamp(180px,35dvh,440px);overflow:auto;border:1px solid #d2e0e5;border-radius:7px;background:white}.accounting-invoice-grid table{width:100%;border-collapse:collapse;min-width:710px;font-size:12px}.accounting-invoice-grid th{position:sticky;top:0;background:#155e70;color:white;text-align:left;z-index:1}.accounting-invoice-grid th,.accounting-invoice-grid td{padding:8px 10px;border-bottom:1px solid #e0e8ec;vertical-align:middle}.accounting-invoice-grid tbody tr:nth-child(even){background:#f4f8fa}.accounting-invoice-grid tbody tr[aria-selected=true]{background:#dceff0;box-shadow:inset 3px 0 #155e70}.accounting-invoice-grid tbody tr:hover{background:#eaf3f5;cursor:pointer}.accounting-invoice-grid button{background:#e6f0f3;color:#155e70;border:1px solid #c6dce4;min-height:28px;padding:4px 9px;font-size:11px}.accounting-invoice-grid .accounting-number{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.accounting-badge{display:inline-block;border-radius:4px;padding:3px 7px;background:#edf1f5;color:#43566a;white-space:nowrap;font-size:11px}.accounting-badge.is-signed{background:#def3e5;color:#116839}.accounting-grid-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:12px;color:#526775}.accounting-grid-footer>div{display:flex;align-items:center;gap:10px}.accounting-empty-detail{padding:22px;background:#f7fafb;border:1px dashed #c7dbe2;border-radius:7px;color:#526775}.accounting-empty-detail p{margin-bottom:0}
.accounting-detail{margin:10px 0!important;padding:14px!important}.accounting-detail h3{margin:0 0 5px}.accounting-detail .suite-table{max-height:240px}.accounting-detail .suite-table th{background:#155e70;color:white}.accounting-detail .suite-table th,.accounting-detail .suite-table td{padding:7px 10px;font-size:12px}.accounting-detail .check-label{display:flex;align-items:flex-start;gap:8px;background:#edf5f7;padding:10px;border-radius:6px;font-weight:400}.accounting-detail .check-label input{width:17px;min-height:17px;margin:0;flex-shrink:0}.accounting-footnote{font-size:11px;color:#617785}.accounting-settings .suite-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.accounting-settings .suite-card{margin:0 0 14px;padding:16px}.accounting-settings .suite-row{grid-template-columns:minmax(130px,1fr) minmax(80px,160px) minmax(80px,160px)}
@media(max-width:1100px){.accounting-toolbar{grid-template-columns:120px minmax(140px,1fr) 135px 135px}.accounting-load-actions{grid-column:1/-1;justify-content:flex-end}.accounting-workbench{font-size:12px}}
@media(max-width:650px){.accounting-toolbar{grid-template-columns:1fr 1fr;padding:10px}.accounting-heading{align-items:flex-start}.accounting-heading h2{font-size:18px}.accounting-settings-link{white-space:normal;text-align:right}.accounting-grid-tools{flex-wrap:wrap}.accounting-grid-tools label:first-child{flex-basis:100%}.accounting-grid-tools label:nth-child(2){width:auto;flex:1}.accounting-grid-footer{flex-wrap:wrap}.accounting-status-bar{align-items:flex-start}.accounting-settings .suite-row{grid-template-columns:1fr 80px 80px}.accounting-settings .suite-grid{grid-template-columns:1fr}}
/* Desktop-style daily workflow: two grids with a single compact filter panel. */
.accounting-toolbar .accounting-status-bar,.accounting-toolbar .accounting-grid-tools{grid-column:1/-1;margin:0;padding:0}
.accounting-toolbar{padding:10px;gap:8px;border-radius:4px}
.accounting-toolbar .accounting-status-bar{font-size:11px;min-height:20px}.accounting-toolbar .accounting-status-bar button{min-height:22px;padding:0 6px}
.accounting-grid-tools label:first-child{flex:1}.accounting-grid-tools>button{min-width:95px}
.accounting-heading{margin-bottom:8px}.accounting-heading h2{font-size:19px;margin:0}
.accounting-invoice-grid{min-height:clamp(145px,28dvh,290px);max-height:36dvh;border-radius:2px}
.accounting-invoice-grid th,.accounting-invoice-grid td{padding:6px 9px}.accounting-invoice-grid button{min-width:78px}
.accounting-grid-footer p{margin:6px 0}.accounting-grid-footer button{min-height:26px;padding:3px 8px}
.accounting-empty-detail{background:transparent;border:0;padding:0;border-radius:0}.accounting-empty-detail h3,.accounting-lines-heading h3{font-size:13px;margin:8px 0 5px}
.accounting-empty-lines{min-height:clamp(150px,28dvh,320px);border:1px solid #cbdce2;background:white;padding:12px;color:#627887}
.accounting-detail{margin:0!important;padding:0!important}.accounting-lines-heading{display:flex;align-items:center;gap:12px;font-size:12px;margin-bottom:5px}.accounting-lines-heading strong{margin-left:auto;font-weight:600}
.accounting-detail .suite-table{min-height:clamp(150px,28dvh,320px);max-height:36dvh;border:1px solid #cbdce2;background:white}.accounting-detail .suite-table table{min-width:580px}.accounting-detail .suite-table th,.accounting-detail .suite-table td{padding:6px 9px}.accounting-detail .suite-table th{position:sticky;top:0}
#accountingFiscalStatus:empty{display:none}#accountingFiscalReceipt:empty{display:none}
@media(max-width:650px){.accounting-lines-heading{flex-wrap:wrap;gap:5px}.accounting-lines-heading strong{margin-left:0;width:100%}.accounting-toolbar{gap:8px}.accounting-grid-tools label:first-child{flex-basis:auto}.accounting-grid-tools label:nth-child(2){min-width:120px}.accounting-grid-tools>button{min-width:80px}}
@media(max-height:850px){.accounting-invoice-grid,.accounting-empty-lines,.accounting-detail .suite-table{min-height:clamp(100px,18dvh,170px);max-height:28dvh}.accounting-toolbar{padding:8px;gap:6px}.accounting-grid-tools{gap:8px}.accounting-workbench input,.accounting-workbench select{min-height:32px}.accounting-grid-footer{min-height:28px}}
/* Match the desktop invoice and invoice-line grid geometry. */
.accounting-invoice-grid,.accounting-lines-grid{border:1px solid #242424!important;border-radius:0!important;padding:0!important;background:white!important}
.accounting-invoice-grid table,.accounting-lines-grid table{table-layout:fixed;width:100%;border-collapse:collapse;font:12px/1.25 Arial,sans-serif;min-width:1000px!important}
.accounting-lines-grid table{min-width:900px!important}
.accounting-invoice-grid th,.accounting-lines-grid th{height:30px;background:#006f89!important;color:#fff!important;border-right:1px solid #fff;border-bottom:1px solid #c9d5e0;text-transform:none!important;text-align:left!important;font-weight:600;white-space:nowrap;padding:5px!important}
.accounting-invoice-grid td,.accounting-lines-grid td{height:27px;padding:5px 3px!important;text-align:left!important;border-bottom:1px solid #e1dbed;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle}
.accounting-invoice-grid tbody tr:nth-child(odd),.accounting-lines-grid tbody tr:nth-child(odd){background:#f4f0fa}
.accounting-invoice-grid tbody tr:nth-child(even),.accounting-lines-grid tbody tr:nth-child(even){background:#fff}
.accounting-invoice-grid tbody tr[aria-selected=true]{background:#f4f0fa;box-shadow:none}
.accounting-invoice-grid tbody tr:hover{background:#e9e4f4}
.accounting-invoice-grid td:last-child{padding:0!important}
.accounting-invoice-grid button{display:block;width:100%;height:26px;min-height:26px!important;border:0;border-radius:0;background:#006f89!important;color:#fff!important;padding:3px 4px!important;font-weight:600}
.accounting-invoice-grid button:hover{background:#00576c!important}
.accounting-detail h3,.accounting-empty-detail h3{display:inline-block;background:#fff;margin:7px 0 5px;padding:1px 4px;font:13px Arial,sans-serif;font-weight:400}
#accountingFiscalStatus{font:12px Arial,sans-serif;margin:8px 0;color:#365367}
.accounting-settings #accountingSettingsForm[hidden]{display:none!important}
.accounting-tax-toolbar{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:12px 0 22px}.accounting-tax-toolbar label{width:180px;min-width:0}.accounting-tax-toolbar label:nth-child(2){width:250px}.accounting-tax-toolbar label:last-child{width:230px}.accounting-tax-toolbar select{min-height:29px;padding:4px;font:12px Arial,sans-serif;border:1px solid #99a4ac;border-radius:0;background:#fff}.accounting-tax-toolbar button{min-height:32px}.accounting-tax-actions{display:flex;gap:10px;margin:0 0 18px}.accounting-tax-actions button{min-width:100px}
.accounting-tax-grid{min-height:270px;max-height:50dvh;overflow:auto;border:1px solid #222;background:white}.accounting-tax-grid table{width:100%;table-layout:fixed;border-collapse:collapse;min-width:550px;font:12px Arial,sans-serif}.accounting-tax-grid th{position:sticky;top:0;background:#006f89;color:white;text-align:left;border-right:1px solid white;height:30px;padding:5px;font-weight:600;text-transform:none!important}.accounting-tax-grid td{height:27px;padding:5px 3px;border-bottom:1px solid #d7e0eb;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.accounting-tax-grid tbody tr:nth-child(even){background:#f7fafc}.accounting-tax-grid tbody tr[aria-selected=true]{background:#f4f0fa}.accounting-tax-grid tbody tr:hover{background:#eae4f4;cursor:pointer}
@media(max-width:650px){.accounting-tax-toolbar{display:grid;grid-template-columns:1fr 1fr}.accounting-tax-toolbar label,.accounting-tax-toolbar label:nth-child(2),.accounting-tax-toolbar label:last-child{width:100%}.accounting-tax-actions{gap:6px}.accounting-tax-actions button{min-width:0;flex:1}.accounting-tax-section{padding:10px!important}}
/* Use the available screen height for records, with one page title and two compact filter rows. */
#inventorySuiteView:has(.accounting-workbench)>.section-header{padding:6px 10px!important;min-height:36px!important;margin:0!important;gap:8px!important}
#inventorySuiteView:has(.accounting-workbench)>.section-header h2{font-size:17px!important;margin:0!important}
#inventorySuiteView:has(.accounting-workbench)>.section-header button{min-height:26px!important;padding:3px 8px!important;font-size:11px!important}
#inventorySuiteView:has(.accounting-workbench)>#suiteBody{padding:6px!important}
.accounting-workbench{height:var(--accounting-workspace-height,auto);display:grid;grid-template-rows:auto minmax(110px,1.35fr) auto minmax(110px,1fr);gap:0}
.accounting-workbench .accounting-toolbar{grid-template-columns:100px minmax(130px,1fr) 124px 124px auto;padding:6px!important;gap:5px 8px;margin:0 0 6px;border-radius:3px}
.accounting-workbench label{font-size:11px;gap:2px}.accounting-workbench input,.accounting-workbench select{min-height:28px!important;height:28px!important;padding:3px 6px!important;font-size:12px!important}
.accounting-company-caption{display:flex;justify-content:space-between;gap:6px;align-items:center}.accounting-company-caption small{font-size:10px;font-weight:400;color:#4c6874;max-width:75%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.accounting-load-actions{grid-column:auto!important;gap:4px;align-items:end}.accounting-workbench .accounting-load-actions button,.accounting-workbench .accounting-grid-tools button{min-height:28px!important;padding:4px 8px!important;font-size:11px!important}
.accounting-workbench .accounting-grid-tools{gap:8px;align-items:end}.accounting-workbench .accounting-grid-tools label:first-child{flex:1}.accounting-workbench .accounting-grid-tools label:nth-child(2){width:140px}.accounting-grid-tools .accounting-settings-link{font-size:11px;padding:6px 0;align-self:end}
.accounting-workbench .accounting-invoice-grid{min-height:0!important;max-height:none!important;height:100%}
.accounting-workbench .accounting-grid-footer{min-height:25px;gap:6px;font-size:10px}.accounting-grid-footer p{margin:3px 0}.accounting-grid-footer button{font-size:10px;min-height:22px;padding:2px 6px}
#accountingInvoiceDetail{min-height:0;overflow:auto}.accounting-detail,.accounting-empty-detail{display:flex;flex-direction:column;height:100%;min-height:0}
.accounting-detail .accounting-lines-grid,.accounting-empty-detail .accounting-lines-grid{flex:1;min-height:65px!important;max-height:none!important}
.accounting-detail h3,.accounting-empty-detail h3{margin:4px 0!important;flex-shrink:0;font-size:12px}
.accounting-invoice-grid th,.accounting-lines-grid th{height:25px!important;padding:4px!important;font-size:11px!important}
.accounting-invoice-grid td,.accounting-lines-grid td{height:23px!important;padding:3px!important;font-size:11px!important}
.accounting-invoice-grid button{height:22px!important;min-height:22px!important;font-size:11px!important}
#accountingFiscalStatus{margin:4px 0;font-size:11px;flex-shrink:0}#accountingFiscalReceipt:not(:empty){flex-shrink:0;max-height:32dvh;overflow:auto}
@media(max-width:850px){.accounting-workbench .accounting-toolbar{grid-template-columns:90px minmax(120px,1fr) 112px 112px}.accounting-workbench .accounting-load-actions{grid-column:1/-1!important;justify-content:flex-end}.accounting-workbench .accounting-grid-tools{gap:6px}.accounting-grid-tools .accounting-settings-link{max-width:105px;line-height:1.2}}
@media(max-width:650px){.accounting-workbench .accounting-toolbar{grid-template-columns:1fr 1fr}.accounting-workbench .accounting-grid-tools{flex-wrap:wrap}.accounting-workbench .accounting-grid-tools label:first-child{flex-basis:100%}.accounting-workbench .accounting-grid-tools label:nth-child(2){width:auto;flex:1}.accounting-workbench .accounting-load-actions button{flex:1}.accounting-company-caption small{max-width:60%}}

.accounting-invoice-grid table{min-width:860px!important}.accounting-lines-grid table{min-width:780px!important}
.accounting-row-actions{display:flex;gap:2px;align-items:stretch;width:100%}
.accounting-invoice-grid .accounting-row-actions button{min-width:0!important;width:auto;flex:1;padding:3px 4px!important;white-space:nowrap}
.accounting-invoice-grid .accounting-row-actions [data-accounting-select]{background:#e1eef2!important;color:#154f61!important;border-right:1px solid #c2d8e1;font-weight:600}
.accounting-invoice-grid .accounting-row-actions [data-accounting-select]:hover{background:#c9e3eb!important}
.accounting-invoice-grid td.accounting-select-cell{padding:0!important}
.accounting-invoice-grid .accounting-select-cell button{min-width:0!important;width:100%;background:#e1eef2!important;color:#154f61!important;font-weight:600}
.accounting-invoice-grid .accounting-select-cell button:hover{background:#c9e3eb!important}
#accountingVmsInvoiceDialog{width:min(760px,96vw);max-width:96vw;max-height:94dvh;padding:0;border:1px solid #adc4ce;border-radius:10px;color:#173645;background:#f2f6f8}#accountingVmsInvoiceDialog::backdrop{background:#10273799}.accounting-vms-shell{display:flex;flex-direction:column;max-height:92dvh}.accounting-vms-shell>header{display:flex;justify-content:space-between;align-items:center;padding:10px 14px;background:#155e70;color:white}.accounting-vms-shell h2{margin:0;font-size:20px}.accounting-vms-shell header p{margin:3px 0 0;font-size:12px}.accounting-vms-shell header button{background:#e7f0f3;color:#153c4e;min-width:34px;min-height:34px;padding:4px;font-size:24px}.accounting-vms-toolbar{display:flex;align-items:end;gap:12px;padding:10px 14px;border-bottom:1px solid #cbdce4}.accounting-vms-toolbar label{display:flex;flex-direction:column;gap:3px;font-size:12px}.accounting-vms-toolbar select{min-height:32px;padding:4px 8px}.accounting-vms-toolbar span{flex:1;color:#526973;font-size:10px;align-self:center}.accounting-vms-toolbar button{min-height:34px;padding:6px 14px;background:#155e70;color:white}.accounting-vms-scroll{overflow:auto;padding:15px;min-height:0}.accounting-vms-scroll article{box-sizing:border-box;background:white;color:black;width:80mm;max-width:100%;padding:3mm;margin:0 auto;box-shadow:0 2px 8px #18394c22}.accounting-vms-scroll pre{margin:0;font:11.5px/1.4 'Courier New',monospace;white-space:pre-wrap;overflow-wrap:anywhere}.accounting-vms-scroll img{display:block;width:60mm;max-width:100%;height:auto;margin:3mm auto;image-rendering:pixelated}.accounting-vms-a4 .accounting-vms-scroll article{width:182mm;min-height:245mm;padding:14mm max(3mm,calc((100% - 80mm)/2));max-width:100%}#accountingVmsPrintStatus{margin:0;padding:6px 14px;font-size:12px}#accountingVmsPrintStatus:empty{display:none}@media(max-width:600px){.accounting-vms-toolbar{flex-wrap:wrap;gap:6px;padding:8px}.accounting-vms-toolbar span{flex-basis:100%;order:3}.accounting-vms-toolbar button{margin-left:auto}.accounting-vms-scroll{padding:8px}.accounting-vms-a4 .accounting-vms-scroll article{min-height:0;padding:8px}}
#accountingVmsA4Preview{display:block;width:100%;height:68dvh;min-height:330px;border:0;background:white}#accountingVmsA4Preview[hidden],#accountingVmsPaper[hidden]{display:none!important}#accountingVmsInvoiceDialog.accounting-vms-a4{width:min(930px,96vw)}.accounting-vms-a4 .accounting-vms-scroll{padding:10px}
.accounting-fiscal-confirm{max-width:min(460px,94vw);border:1px solid #aac2cd;border-radius:10px;padding:18px;color:#173645}.accounting-fiscal-confirm::backdrop{background:#10273788}.accounting-fiscal-confirm h2{margin:0 0 10px;font-size:20px}.accounting-fiscal-confirm p{font-size:14px;line-height:1.45}.accounting-fiscal-confirm form>div{display:flex;justify-content:flex-end;gap:8px;margin-top:15px}.accounting-fiscal-confirm button{min-height:36px;padding:6px 14px}#accountingActionStatus{grid-column:1/-1;margin:4px 0 0;font-size:12px;padding:8px}#accountingActionStatus[hidden]{display:none!important}
.accounting-invoice-grid th button{display:inline!important;min-width:0!important;width:auto!important;height:auto!important;min-height:0!important;padding:0!important;border:0!important;background:transparent!important;color:white!important;text-align:left!important;font:inherit!important;white-space:nowrap;font-weight:600!important}.accounting-invoice-grid th[aria-sort=ascending] button::after{content:' ▲';font-size:8px}.accounting-invoice-grid th[aria-sort=descending] button::after{content:' ▼';font-size:8px}.accounting-invoice-options{padding:6px 14px;border-bottom:1px solid #cbdce4;font-size:12px;max-height:30dvh;overflow:auto;flex-shrink:0}.accounting-invoice-options summary{cursor:pointer;font-weight:600;color:#155e70}.accounting-invoice-options>p{margin:6px 0;font-size:11px}.accounting-invoice-options>div{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:8px 0}.accounting-invoice-options label{display:flex;flex-direction:column;gap:4px}.accounting-invoice-options label>span{display:flex;align-items:center;gap:5px}.accounting-invoice-options input[type=checkbox]{width:15px;min-height:15px;margin:0}.accounting-invoice-options textarea{width:100%;min-height:45px;padding:5px;font:12px Arial,sans-serif}.accounting-invoice-options select{min-height:30px;padding:4px}@media(max-width:600px){.accounting-invoice-options>div{grid-template-columns:1fr}}

.accounting-invoice-grid td:last-child{height:auto!important;white-space:normal;overflow:visible}
.accounting-invoice-grid .accounting-row-actions{flex-wrap:wrap;gap:4px;padding:2px;box-sizing:border-box}
.accounting-invoice-grid .accounting-row-actions button{height:auto!important;min-height:24px!important;min-width:max-content!important;max-width:100%;flex:1 0 auto;white-space:nowrap;line-height:1.2;padding:4px 6px!important}
