.sales-tabs{display:flex;gap:24px;border-bottom:1px solid var(--border);padding:0 16px}.sales-tabs button{border:0;background:#fff;padding:11px 4px;min-height:42px;color:#555}.sales-tabs button.active{border-bottom:2px solid var(--blue);color:var(--blue)}#sales-page .page-title .form-row{align-items:center}#sales-page .page-title .form-label{width:auto;padding:0}#sales-page .page-title .form-control select{height:32px;min-width:145px}#sales-page .sales-list-wrap{max-height:calc(100vh - 340px)}.sales-list{min-width:1020px}.sales-list small,.sales-picker-table-wrap small{display:block;font-size:11px;color:#666;line-height:1.6;margin-top:3px}.sales-list th,.sales-list td{text-align:left}.sales-list td{max-width:230px;overflow-wrap:anywhere}.sales-list td:last-child{min-width:215px;max-width:280px}.sales-row-actions{display:flex;flex-wrap:wrap;gap:2px 12px;align-items:center}.sales-status{display:inline-block;font-size:12px;white-space:nowrap;padding:1px 6px;border:1px solid #d3dce4;background:#f2f6f9;color:#40566a}.sales-status.draft{background:#fff8ed;border-color:#e9d6b6;color:#835d26}.sales-status.finalized{background:#eff7f0;border-color:#c8dfca;color:#346840}.sales-status.void{background:#f4f4f4;border-color:#ddd;color:#666}.sales-error{padding:11px 14px;margin:12px 16px;border:1px solid #efcbc7;background:#fff1f0;color:#a93e34;white-space:pre-wrap}.sales-dialog{width:min(1180px,calc(100vw - 36px))}.sales-dialog form{display:flex;flex-direction:column;max-height:calc(90vh - 2px)}#sales-editor-body{overflow-y:auto;min-height:0;padding:16px 22px;flex:1}#sales-editor fieldset{min-width:0;margin:0;padding:0;border:0}#sales-editor fieldset:disabled input,#sales-editor fieldset:disabled textarea,#sales-editor fieldset:disabled select{color:#444;background:#f5f6f8;opacity:1}.sales-document-status{display:flex;gap:16px;align-items:center;color:#666;font-size:12px;margin-bottom:14px}.sales-apply-row{display:flex;gap:10px;align-items:center;padding:10px 12px;border:1px solid var(--border);background:#fafbfc;margin:0 0 16px;flex-wrap:wrap;font-size:12px}.sales-apply-row label{display:flex;gap:10px;align-items:center}.sales-apply-row select{height:32px;max-width:260px;min-width:180px;border:1px solid #b8c0c9;padding:5px 8px;background:#fff}.sales-apply-row small{color:#666;font-size:12px}.sales-section-heading{justify-content:space-between;padding:6px 10px;margin-bottom:7px}.sales-section-heading .button{min-height:30px}.sales-item-wrap{overflow:auto;max-width:100%;border:1px solid var(--border);margin-bottom:18px;scrollbar-width:thin}.sales-item-table{min-width:920px;table-layout:fixed}.sales-item-table.packing{min-width:1130px}.sales-item-table th:first-child{width:28%}.sales-item-table th:nth-child(2){width:25%}.sales-item-table th:nth-child(3){width:14%}.sales-item-table th:nth-child(4){width:13%}.sales-item-table th:nth-child(5){width:11%}.sales-item-table th:last-child{width:9%}.sales-item-table.packing th:first-child{width:28%}.sales-item-table.packing th:nth-child(2),.sales-item-table.packing th:nth-child(3){width:12%}.sales-item-table.packing th:nth-child(4),.sales-item-table.packing th:nth-child(5){width:15%}.sales-item-table.packing th:nth-child(6),.sales-item-table.packing th:last-child{width:9%}.sales-item-table td{text-align:left;vertical-align:top;padding:10px}.sales-item-table input,.sales-item-table textarea{width:100%;min-width:0;border:1px solid #b8c0c9;background:#fff;border-radius:2px;padding:5px 6px;min-height:30px}.sales-item-table textarea{resize:vertical;min-height:54px}.sales-cell-label{display:block;color:#666;font-size:11px;margin-bottom:7px}.sales-cell-label input,.sales-cell-label textarea{display:block;font-size:12px;color:#333;margin-top:3px}.sales-pair{display:grid;grid-template-columns:1fr 1fr;gap:7px}.sales-source{line-height:1.65;margin-bottom:8px}.sales-source b{font-size:12px;font-weight:500;color:#333}.sales-source small{display:block;font-size:11px;color:#666;overflow-wrap:anywhere}.sales-line-amount{font-variant-numeric:tabular-nums;color:#333;white-space:nowrap}.sales-empty-lines{background:#fafbfc;border:1px dashed #cfd6de;padding:23px;color:#666;text-align:center;margin:12px 0 22px}.sales-price-check{display:flex;gap:7px;align-items:flex-start;background:#fff9ee;border:1px solid #ebd9ba;padding:10px 12px;margin-bottom:20px;font-size:12px;line-height:1.7}.sales-price-check input{margin-top:4px}.sales-totals{border-top:1px solid var(--border);background:#fafbfc;padding:12px 16px;margin-top:15px}.sales-totals-values{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:15px 28px}.sales-totals-values>div{display:flex;align-items:center;gap:12px;font-variant-numeric:tabular-nums}.sales-totals-values span{font-size:12px;color:#666}.sales-totals-values strong{font-size:14px;font-weight:600;color:#333}.sales-totals p{text-align:right;font-size:11px;color:#666;margin:8px 0 0}.sales-picker{width:min(900px,calc(100vw - 40px))}.sales-picker-body{padding:16px 20px;max-height:calc(85vh - 150px);overflow:auto}.sales-picker-body>.filter-field input{max-width:none;flex:1}.sales-picker-table-wrap{overflow:auto;max-height:calc(75vh - 220px);margin-top:10px}.sales-picker-table-wrap table{min-width:600px}.sales-picker-table-wrap td{max-width:350px;overflow-wrap:anywhere}.sales-picker-table-wrap th:first-child{width:50px}.sales-picker-table-wrap th:nth-child(2){width:140px}.sales-picker-table-wrap th:last-child{width:150px}#sales-picker-count{margin-right:auto;color:#555;align-self:center;font-size:12px}.sales-picker .close{padding:0;min-width:30px;font-size:24px}.sales-address{white-space:pre-wrap}#sales-editor-footer{align-items:center;flex-wrap:wrap}#sales-editor-footer>a{display:inline-flex;align-items:center}#sales-editor .form-row textarea{min-height:58px}
@media(max-width:760px){#sales-page .page-title>.actions{width:100%}#sales-page .page-title .form-row{flex:1}#sales-page .page-title .form-label{display:none}#sales-page .page-title .form-control select{min-width:0;width:100%;height:40px}.sales-tabs{gap:18px;padding:0 12px}.sales-tabs button{min-height:44px}#sales-page .sales-list-wrap{max-height:none}.sales-dialog{width:calc(100vw - 20px)}.sales-dialog form{max-height:calc(92vh - 2px)}#sales-editor-body{padding:12px}.sales-dialog .modal-title{padding:12px}.sales-dialog .modal-title h2{overflow-wrap:anywhere}.sales-apply-row{padding:10px;gap:8px}.sales-apply-row label{width:100%;justify-content:space-between}.sales-apply-row select{min-width:0;flex:1;max-width:none;height:40px}.sales-apply-row .button,.sales-dialog .button,.sales-picker .button{min-height:44px}.sales-apply-row small{width:100%}.sales-document-status{gap:10px;flex-wrap:wrap}.sales-totals-values{justify-content:flex-start;gap:12px 20px}.sales-totals-values>div{justify-content:space-between;width:100%}.sales-totals p{text-align:left}.sales-picker{width:calc(100vw - 20px)}.sales-picker-body{padding:12px;max-height:calc(85vh - 150px)}.sales-picker-table-wrap{max-height:calc(75vh - 250px)}#sales-editor-footer{gap:8px}.sales-item-table input{min-height:38px}}
@media(max-width:760px){.sales-dialog .close,.sales-picker .close{width:44px;height:44px;flex-shrink:0}.sales-row-actions .link{min-height:44px;display:inline-flex;align-items:center}}
.sales-confirm{width:min(480px,calc(100vw - 28px))}.sales-confirm form{display:flex;flex-direction:column;max-height:85vh}.sales-confirm-body{padding:15px 20px;overflow:auto}.sales-confirm-body p{margin:0 0 12px;line-height:1.8;white-space:pre-wrap}.sales-confirm-reason{display:block;font-size:12px;color:#444}.sales-confirm-reason textarea{display:block;width:100%;margin-top:7px;border:1px solid #b8c0c9;border-radius:2px;padding:7px 8px;resize:vertical;min-height:85px}.sales-confirm .modal-footer{flex-shrink:0}.sales-confirm .field-error{color:#a93e34;font-size:12px;margin-top:8px}.sales-confirm-body small{display:block;margin-top:6px;color:#666}
@media(max-width:760px){.sales-confirm .button,.sales-confirm .close{min-height:44px}.sales-confirm .close{width:44px;flex-shrink:0}.sales-confirm-body{padding:12px 16px}}
