/* Document workspaces: stronger typography and clear, accessible action icons. */
.invoice-ui,.invoice-editor{font-size:16px;font-weight:550;color:#17243d}
.invoice-ui .btn,.invoice-editor .btn{font-size:15px;font-weight:750;min-height:44px}
.invoice-ui .result-count,.invoice-ui .invoice-paging{font-size:14px;font-weight:650}
.invoice-list .catalog-filters{display:grid;grid-template-columns:minmax(240px,2fr) minmax(170px,1fr) auto}
.invoice-list .catalog-filters>div,.invoice-list .catalog-filters>.search-field{min-width:0}
.invoice-list .catalog-filters input,.invoice-list .catalog-filters select{height:48px;font-size:15px;font-weight:650}
.invoice-list-table th{font-size:13px;font-weight:800;background:#e1e7f0;color:#25344e}
.invoice-list-table td{font-size:15px;font-weight:600;padding-top:20px;padding-bottom:20px}
.invoice-list-table td strong{font-size:16px;font-weight:800}
.invoice-list-table th,.invoice-list-table td{padding-left:12px;padding-right:12px}
.invoice-list-table td:nth-child(2){min-width:140px}
.invoice-list-table td:first-child,.invoice-list-table td:nth-child(3){white-space:nowrap}
.invoice-list-table td small{font-size:13px;margin-top:6px;font-weight:500}
.invoice-list-table tbody tr:nth-child(even){background:#f5f7fb}
.invoice-list-table .money-cell{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.invoice-action{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;padding:0;border:1px solid;border-radius:13px;box-shadow:0 3px 0 #14244120}
.invoice-action .app-icon{width:22px;height:22px}
.action-view{background:#eee9ff;border-color:#c5b5ff;color:#583ed6}
.action-print{background:#e6f2ff;border-color:#9bc8ef;color:#1561a1}
.action-edit{background:#fff3df;border-color:#edc589;color:#9b5606}
.action-remove{background:#ffedf1;border-color:#efbac5;color:#bb2447}
.invoice-action:hover{filter:brightness(.95);transform:translateY(-1px)}
.invoice-action:focus-visible{outline:3px solid #487cef;outline-offset:3px}
.invoice-status{font-size:13px;font-weight:750;white-space:nowrap;gap:7px;border:1px solid #d4ddec}
.status-paid{background:#e4f5ed;color:#097953;border-color:#b9e2d1}
.status-unpaid,.status-part-paid{background:#e7f0ff;color:#245ca7;border-color:#bfd3f3}
.status-overdue{background:#ffe9ed;color:#aa2845;border-color:#efbec9}
.status-draft{background:#edf0f6;color:#53617a}
.invoice-editor label,.invoice-detail label{font-size:14px;font-weight:750}
.invoice-editor input:not([type=checkbox]),.invoice-editor select,.invoice-editor textarea{font-size:16px;font-weight:600;border:1.5px solid #94a4bd}
.invoice-editor h2,.invoice-detail .icon-heading{font-size:21px;font-weight:800}
.invoice-editor .invoice-help,.invoice-editor .barcode-feedback,.invoice-editor .invoice-product-launch p{font-size:13px;font-weight:550}
.invoice-editor .invoice-lines td{font-size:15px;font-weight:600}
.invoice-editor .invoice-lines th{font-size:13px;font-weight:800}
.invoice-editor .invoice-lines td small{font-size:12px;margin-top:5px}
.invoice-basket-heading{padding:18px 22px;margin:0!important;border-bottom:1px solid #c6d0df;background:#e5ebf4;color:#253751;border-radius:14px 14px 0 0}
.invoice-editor .row-actions{flex-wrap:wrap}
.scanner-option{display:flex!important;align-items:center;gap:9px;margin:13px 0 0;font-size:13px!important;color:#405575}
.scanner-option input{width:18px;height:18px;min-height:0;margin:0;accent-color:#6650df}
.scan-result{background:#eaf1fd;border:1px solid #b8c9e7;padding:10px 12px;border-radius:9px;color:#234777!important;font-weight:700!important}
.invoice-bottom-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:22px;padding:22px;background:#f8faff;border-radius:0 0 14px 14px;align-items:start}
.invoice-bottom-grid .invoice-totals{width:100%;background:#e9eef6;border-radius:13px;margin:0;font-size:16px;font-weight:650}
.invoice-bottom-grid .grand-total{font-size:20px;font-weight:800}
.invoice-notes{border:1px solid #bac7da;background:#fff;border-radius:12px;overflow:hidden}
.invoice-notes summary{display:flex;align-items:center;gap:10px;padding:18px;font-size:18px;font-weight:800;cursor:pointer;list-style:none;color:#213351}
.invoice-notes summary::-webkit-details-marker{display:none}
.invoice-notes summary>.app-icon:last-child{margin-left:auto;transition:transform .15s}
.invoice-notes[open] summary>.app-icon:last-child{transform:rotate(180deg)}
.invoice-notes summary:focus-visible{outline:3px solid #487cef;outline-offset:-3px}
.invoice-notes-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:0 18px 18px}
.invoice-notes label{display:flex;align-items:center;gap:6px;font-size:13px}
.invoice-notes textarea{width:100%;min-height:125px;resize:vertical;font-size:14px!important}
.invoice-notes>p{padding:0 18px 18px}
.invoice-detail>.invoice-notes{margin-bottom:20px}
dialog.product-picker.manual-item-dialog{height:fit-content;min-height:0;max-height:calc(100dvh - 32px);inset:0;margin:auto}
.manual-item-dialog form{overflow:auto}
.manual-item-dialog .picker-header h2{font-size:23px;margin-bottom:10px}
.manual-item-fields{padding:25px}
.manual-item-grid{display:grid;grid-template-columns:2fr .8fr 1.15fr 1.25fr;gap:16px}
.manual-item-grid label{font-size:14px;font-weight:750}
.manual-item-grid input,.manual-item-grid select{font-size:16px;font-weight:600;border:1.5px solid #94a4bd;min-height:50px}
.manual-item-dialog .picker-footer{justify-content:space-between}
.manual-item-dialog .picker-footer>span{font-size:12px;color:#596b84}
.manual-item-dialog .picker-footer .btn{font-size:15px;font-weight:750;min-height:46px}
@media screen{
 .page-content:has(.invoice-ui),.page-content:has(.invoice-editor){padding-top:18px}
 .main-shell:has(.invoice-ui) .module-title h1,.main-shell:has(.invoice-editor) .module-title h1{font-size:24px;font-weight:800}
 .invoice-detail .invoice-paper p,.invoice-detail .invoice-paper dl,.invoice-detail .invoice-paper table{font-size:14px}
 .invoice-detail .invoice-paper h3{font-size:14px;font-weight:750}
}
@media(max-width:1200px){.invoice-notes-fields{grid-template-columns:1fr}.invoice-bottom-grid{grid-template-columns:minmax(0,1.5fr) minmax(240px,1fr)}}
@media(max-width:720px){
 .invoice-list .catalog-filters,.invoice-bottom-grid,.manual-item-grid{grid-template-columns:1fr}
 .invoice-list .catalog-filters .btn{width:100%}
 .invoice-list-table{min-width:860px}
 .invoice-bottom-grid{padding:15px}.invoice-bottom-grid .invoice-totals{font-size:15px}
 .invoice-editor .invoice-lines{min-width:760px}
 .manual-item-fields{padding:18px}.manual-item-dialog .picker-footer{flex-wrap:wrap}
 .invoice-product-launch>.row-actions{width:100%}.invoice-product-launch>.row-actions .btn{flex:1}
}
@media print{.invoice-ui{font-size:10pt;font-weight:400}.invoice-detail .invoice-paper p{font-size:10pt}}
