/* Full-window Final Bill, styled as a desktop form. */
.modal-backdrop:has(.desktop-bill-workspace){padding:0;background:#eef1f5;backdrop-filter:none}
.modal:has(.desktop-bill-workspace){width:100%;max-width:none;height:100%;max-height:none;border-radius:0;box-shadow:none;background:#eef1f5;font-family:"Segoe UI",Arial,sans-serif;color:#202a35}
.modal:has(.desktop-bill-workspace) .modal-head{padding:8px 15px;background:#16426b;border-bottom:1px solid #0e304f;color:#fff;min-height:54px}
.modal:has(.desktop-bill-workspace) .modal-title{font-size:16px;letter-spacing:0;font-weight:650}
.modal:has(.desktop-bill-workspace) .modal-sub{color:#d7e6f3;margin-top:3px}
.modal:has(.desktop-bill-workspace) .modal-head .btn-icon{background:transparent;color:#fff;border:1px solid #7898b4;border-radius:2px}
.modal:has(.desktop-bill-workspace) .modal-head .btn-icon:hover{background:#275783}
.modal:has(.desktop-bill-workspace) .modal-body{padding:12px 15px 16px}
.modal:has(.desktop-bill-workspace) .modal-footer{background:#e7ebf1;border-top:1px solid #aebdcb;padding:9px 15px}
.modal:has(.desktop-bill-workspace) .btn{border-radius:2px;box-shadow:none;padding:7px 13px;min-height:30px;transform:none}
.modal:has(.desktop-bill-workspace) .btn-primary{background:#0067b8;border-color:#00579e;color:#fff}
.modal:has(.desktop-bill-workspace) .btn-primary:hover{background:#005a9e}
.modal:has(.desktop-bill-workspace) .btn-light{border-color:#aab8c5}
.modal:has(.desktop-bill-workspace) .modal-head .btn-icon{padding:5px}
.bill-customer-strip{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;margin-bottom:11px;padding:8px 10px;background:#fff;border:1px solid #b7c4d1;font-size:12px}
.bill-customer-hint{margin-left:auto;color:#536476;font-size:11px}
.desktop-bill-workspace{display:grid;grid-template-columns:minmax(0,1fr) clamp(230px,30vw,310px);gap:12px;align-items:start}
.desktop-bill-main{min-width:0;display:grid;gap:12px}
.bill-stock-row{display:grid;grid-template-columns:minmax(0,1fr) 65px auto;gap:8px;align-items:end;max-width:620px}
@media(max-width:460px){.bill-stock-row{grid-template-columns:minmax(0,1fr) auto}.bill-stock-row>div:first-child{grid-column:1/-1}}
.desktop-bill-workspace .manual-bill-section,.bill-items-panel,.desktop-bill-workspace .bill-preview{background:#fff;border:1px solid #b7c4d1;border-radius:2px;min-width:0;margin:0;padding:11px}
.desktop-bill-workspace h3{font-size:13px;font-weight:650;margin:0 0 9px;letter-spacing:0;color:#263e57}
.desktop-bill-workspace .manual-bill-row{grid-template-columns:minmax(96px,1fr) minmax(110px,2fr) 46px 78px 78px auto;gap:7px}
.desktop-bill-workspace .field-input,.desktop-bill-workspace .field-select,.desktop-bill-workspace .field-area{border-radius:2px;border:1px solid #a9b8c6;background:#fff;color:#202a35;padding:5px 7px;font-size:12px;min-height:30px}
.desktop-bill-workspace .field-label{color:#3b4d5e;font-size:11px;font-weight:600;margin-bottom:4px}
.desktop-bill-workspace .field-input:focus,.desktop-bill-workspace .field-select:focus,.desktop-bill-workspace .field-area:focus{border-color:#0067b8;box-shadow:0 0 0 1px #0067b8}
.desktop-bill-workspace .bill-parts-table{margin:0;min-width:450px;border:1px solid #c5d0db}
.desktop-bill-workspace .bill-parts-table th,.desktop-bill-workspace .bill-parts-table td{border:1px solid #d1dae3;padding:6px 8px}
.desktop-bill-workspace .bill-parts-table th{background:#e8edf3;color:#304559;text-transform:none;font-size:11px}
.desktop-bill-workspace .bill-parts-table tbody tr:nth-child(even){background:#f7f9fb}
.desktop-bill-workspace .bill-parts-table .empty{height:80px;text-align:center;color:#526476}
.desktop-bill-workspace .bill-preview{width:100%}.desktop-bill-workspace .bill-preview-amount input{width:90px}.desktop-bill-workspace .bill-payment-select{width:min(135px,58%)}
.desktop-bill-workspace .bill-preview-row{padding:5px 0;font-size:12px;color:#405264}
.desktop-bill-workspace .bill-preview #bill-preview-error{height:30px;margin-top:5px!important}
.desktop-bill-workspace .quote-total-box{border-radius:2px;background:#e5f0fb;color:#16426b;font-size:13px}
@media(max-width:1050px){.desktop-bill-workspace .manual-bill-row{grid-template-columns:repeat(3,minmax(0,1fr))}.desktop-bill-workspace .manual-bill-row .btn{width:100%}}
@media(max-width:620px){.desktop-bill-workspace{grid-template-columns:1fr}.bill-customer-hint{width:100%;margin-left:0}}
@media(max-width:390px){.desktop-bill-workspace .manual-bill-row{grid-template-columns:repeat(2,minmax(0,1fr))}}
