.sales-tab.is-active{border-color:#8ab7ff;background:#eef5ff;color:#1d4ed8}
.sales-empty-panel{flex:1;min-height:0;background:#fff;border:1px solid #dce3ec;border-radius:12px}
.sales-shipping-panel{display:flex;flex:1;min-height:0;overflow:hidden;padding:0;margin-bottom:14px}
.sales-shipping-frame{width:100%;height:100%;border:0;background:#fff}
.sales-panel{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;padding:8px 3px 3px;margin-bottom:14px}
.sales-toolbar{flex-direction:column;align-items:stretch;justify-content:flex-start;gap:8px}
.sales-actions{justify-content:flex-start;overflow:visible;padding-bottom:0}
.sales-filter-row{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:max-content;justify-content:start;overflow-x:auto;overflow-y:visible;padding-bottom:2px}
#sales-cond-value{width:160px;min-width:160px;max-width:160px}
#sales-status2-filter{width:180px;min-width:180px;max-width:180px}
#sales-promoter-filter{width:150px;min-width:150px;max-width:150px}
.sales-customer-picker{height:38px;min-width:0;border:1px solid #dce3ec;border-radius:12px;background:#fff;color:#1f2937;padding:0 8px;font-size:13px;font-weight:400;outline:none;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sales-customer-picker:hover{background:#eef5ff;border-color:#c7d6ea}
.sales-customer-picker[hidden]{display:none}
.sales-customer-picker{display:none}
.sales-promoter-filter[hidden]{display:none}
.sales-filter-row input:disabled{background:#f8fafc;color:#94a3b8}
.sales-month-picker{position:relative;min-width:0}
.sales-month-button{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer}
.sales-month-button::after{content:"⌄";font-size:14px;color:#334155;line-height:1}
.sales-month-menu{position:absolute;top:44px;left:0;width:188px;max-height:400px;overflow:auto;background:#fff;border:1px solid #dce3ec;border-radius:12px;box-shadow:0 12px 28px rgba(15,23,42,.16);padding:8px;z-index:9000}
.sales-month-menu[hidden]{display:none}
.sales-month-all,.sales-month-shortcut,.sales-month-option{width:100%;height:32px;padding:0 10px;text-align:left;font-size:13px;font-weight:400}
.sales-month-all.is-active,.sales-month-shortcut.is-active,.sales-month-option.is-active{background:#eef5ff;color:#1d4ed8}
.sales-month-divider{height:1px;background:#eef2f7;margin:6px 0}
.sales-month-year{border-top:1px solid #eef2f7;margin-top:6px;padding-top:6px}
.sales-month-year:first-of-type{border-top:0;margin-top:0;padding-top:0}
.sales-month-year summary{height:30px;display:flex;align-items:center;gap:6px;border-radius:8px;padding:0 10px;color:#334155;font-size:13px;font-weight:700;cursor:pointer;list-style:none}
.sales-month-year summary::-webkit-details-marker{display:none}
.sales-month-year summary::before{content:"›";display:inline-block;transition:transform .16s ease;color:#64748b}
.sales-month-year[open] summary::before{transform:rotate(90deg)}
.sales-month-year summary:hover{background:#f8fafc}
.sales-month-options{display:grid;gap:2px;padding:2px 0 0 16px}
.sales-bulk-delete{position:relative}
.sales-bulk-menu{position:absolute;right:0;top:44px;width:120px;background:#fff;border:1px solid #dce3ec;border-radius:10px;box-shadow:0 12px 28px rgba(15,23,42,.16);padding:4px 0;z-index:20}
.sales-bulk-menu[hidden]{display:none}
.sales-bulk-menu button{display:block;width:100%;height:34px;border:0;border-bottom:1px solid #edf2f7;background:#fff;border-radius:0;padding:0 12px;text-align:left;color:#111827;font-size:13px;font-weight:400;cursor:pointer}
.sales-bulk-menu button:last-child{border-bottom:0}
.sales-bulk-menu button:hover{background:#eef5ff;color:#1d4ed8}
.sales-actions>[data-sales-action="admin-delete"]{border-color:#fecaca;background:#fff7f7;color:#b91c1c}
.sales-actions>[data-sales-action="admin-delete"]:hover{background:#fee2e2;border-color:#fca5a5;color:#991b1b}
.sales-admin-delete-password-modal{width:min(420px,90vw);padding:20px}
.sales-admin-delete-password-label{display:block;margin:2px 0 6px;color:#374151;font-size:13px;font-weight:700}
#sales-admin-delete-password{width:100%;height:38px;box-sizing:border-box;border:1px solid #cfd8e4;border-radius:10px;padding:0 10px;color:#111827;font-size:15px;outline:none}
#sales-admin-delete-password:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.14)}
.sales-table-wrap{flex:1;border-radius:0 0 10px 10px}
.sales-table{border-collapse:collapse}
.sales-table th,.sales-table td{height:34px;box-sizing:border-box;padding:6px 8px;border:1px solid #dce3ec;color:#111827;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;line-height:1.25}
.sales-table td{cursor:text;user-select:text;-webkit-user-select:text}
.sales-table .sales-select-head,.sales-table .sales-select-cell{width:44px;min-width:44px;max-width:44px;padding:0;text-align:center}
.sales-table .sales-select-cell{cursor:pointer;user-select:none;-webkit-user-select:none}
.sales-table .sales-select-head input,.sales-table .sales-select-cell input{width:16px;height:16px;margin:0;vertical-align:middle;accent-color:#2563eb;cursor:pointer}
.sales-sort-button{display:inline-flex;align-items:center;gap:6px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0;border:0;background:transparent;color:inherit;font:inherit;font-weight:700;cursor:pointer}
.sales-sort-icon{display:inline-block;width:14px;color:#8ea1bc;font-size:14px;line-height:1}
.sales-resizer{right:-7px;width:14px;touch-action:none}
.sales-resizing{cursor:col-resize;user-select:none}
.sales-row-menu{position:fixed;z-index:2100;width:190px;background:#fff;border:1px solid #dce3ec;border-radius:10px;box-shadow:0 14px 32px rgba(15,23,42,.18);overflow:hidden;padding:4px 0}
.sales-row-menu[hidden]{display:none}
.sales-row-menu button{display:block;width:100%;height:38px;border:0;border-bottom:1px solid #edf2f7;background:#fff;padding:0 14px;text-align:left;color:#111827;font-size:15px;font-weight:400;cursor:pointer}
.sales-row-menu button:last-child{border-bottom:0}
.sales-row-menu button:hover{background:#eef5ff;color:#1d4ed8}
.sales-row-menu button:disabled,.sales-row-menu button[aria-disabled="true"]{background:#f8fafc;color:#b6c0cf;cursor:not-allowed}
.sales-row-menu button:disabled:hover,.sales-row-menu button[aria-disabled="true"]:hover{background:#f8fafc;color:#b6c0cf}
.sales-document-preview-backdrop{position:fixed;inset:0;z-index:2200;display:flex;box-sizing:border-box;align-items:center;justify-content:center;background:rgba(15,23,42,.48);padding:clamp(6px,1.2vw,18px)}
.sales-document-preview-backdrop[hidden]{display:none}
.sales-document-preview{display:grid;box-sizing:border-box;grid-template-columns:minmax(0,1fr) 176px 334px;width:min(1720px,97vw);height:min(900px,94vh);max-width:100%;max-height:100%;min-width:0;min-height:0;overflow:hidden;background:#fff;border:1px solid #dce3ec;border-radius:12px;box-shadow:0 18px 48px rgba(15,23,42,.24);color:#111827}
.sales-document-preview.sales-document-preview--orders{grid-template-columns:minmax(0,1fr) 250px;width:min(1560px,96vw);height:min(860px,92vh);max-width:100%;max-height:100%}
.sales-document-preview-panes{display:grid;grid-template-columns:minmax(0,1fr);min-width:0;min-height:0;background:#dfe5ee;border-right:1px solid #dce3ec}
.sales-document-preview-pane{position:relative;min-width:0;min-height:0;background:#e5e7eb;border-right:1px solid #dce3ec}
.sales-document-preview-pane[hidden]{display:none}
.sales-document-preview-panes:has(.sales-document-preview-pane[hidden]){grid-template-columns:minmax(0,1fr)}
.sales-document-preview-pane iframe{width:100%;height:100%;border:0;background:#fff}
.sales-document-preview-main{display:flex;align-items:stretch;justify-content:stretch}
.sales-document-preview-main iframe{flex:1;min-width:0;min-height:0}
.sales-preview-main-empty{position:absolute;inset:0;display:flex;flex-direction:column;gap:12px;align-items:center;justify-content:center;padding:24px;color:#64748b;font-size:15px;font-weight:800;text-align:center}
.sales-preview-main-empty[hidden]{display:none}
.sales-preview-main-empty.is-error{color:#b91c1c}
.sales-preview-main-empty button{height:40px;min-width:96px;border:1px solid #bcd2f2;border-radius:10px;background:#fff;padding:0 16px;color:#1d4ed8;font-size:14px;font-weight:900;cursor:pointer}
.sales-preview-main-empty button:hover{border-color:#2563eb;background:#eff6ff}
.sales-preview-file-rail{min-width:0;min-height:0;overflow-y:auto;border-right:1px solid #dce3ec;background:#f1f5f9;padding:12px 10px}
.sales-preview-file-rail-head{display:flex;flex-direction:column;gap:4px;margin-bottom:10px;padding:0 2px;color:#0f172a}
.sales-preview-file-rail-head strong{font-size:14px;font-weight:900}
.sales-preview-file-rail-head span{color:#64748b;font-size:10px;line-height:1.35;overflow-wrap:anywhere}
.sales-preview-file-cards{display:flex;flex-direction:column;gap:9px}
.sales-preview-file-card{width:100%;min-height:104px;border:1px solid #cfd8e4;border-radius:11px;background:#fff;padding:10px;text-align:left;color:#1f2937;cursor:pointer;box-shadow:0 2px 5px rgba(15,23,42,.04)}
.sales-preview-file-card:hover{border-color:#93c5fd;background:#f8fbff}
.sales-preview-file-card.is-active{border-color:#2563eb;background:#eff6ff;box-shadow:0 0 0 2px rgba(37,99,235,.12)}
.sales-preview-file-card strong,.sales-preview-file-card span{display:block}
.sales-preview-file-card strong{margin:8px 0 5px;font-size:12px;font-weight:900;line-height:1.3}
.sales-preview-file-card>span:last-child{color:#64748b;font-size:10px;line-height:1.35;overflow-wrap:anywhere}
.sales-preview-file-card .sales-preview-file-type{display:inline-flex;width:auto;border-radius:999px;background:#e2e8f0;padding:3px 7px;color:#334155;font-size:9px;font-weight:900;letter-spacing:.04em}
.sales-preview-file-card.is-active .sales-preview-file-type{background:#dbeafe;color:#1d4ed8}
.sales-preview-file-empty{border:1px dashed #cbd5e1;border-radius:10px;padding:16px 8px;color:#64748b;font-size:11px;line-height:1.45;text-align:center}
.sales-document-preview-actions{display:flex;min-width:0;min-height:0;flex-direction:column;gap:10px;overflow-y:auto;padding:16px;background:#f8fbff}
.sales-document-preview-actions>*{flex-shrink:0}
.sales-document-preview-actions h3{margin:0 0 8px;color:#111827;font-size:20px;font-weight:900}
.sales-document-preview-actions button{height:40px;min-height:40px;flex-shrink:0;border:1px solid #d6dee9;background:#fff;border-radius:10px;padding:0 12px;color:#1f2937;font-size:14px;font-weight:900;cursor:pointer}
.sales-document-preview-actions button:hover{background:#eef5ff;border-color:#bcd2f2;color:#1d4ed8}
.sales-document-preview-actions button:disabled,.sales-document-preview-actions button[aria-disabled="true"]{background:#f8fafc;border-color:#d6dee9;color:#b6c0cf;cursor:not-allowed}
.sales-document-preview-actions button:disabled:hover,.sales-document-preview-actions button[aria-disabled="true"]:hover{background:#f8fafc;border-color:#d6dee9;color:#b6c0cf}
.sales-document-preview-actions > button:last-child{margin-top:auto}
.sales-preview-action-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.sales-preview-action-row button{min-width:0;padding-left:8px;padding-right:8px;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sales-preview-total-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;border:1px solid #dce3ec;border-radius:10px;background:#fff;padding:10px}
.sales-preview-total-options[hidden]{display:none}
.sales-preview-total-options label{display:flex;align-items:center;gap:8px;min-height:22px;color:#334155;font-size:12px;font-weight:800}
.sales-preview-total-options label.is-disabled{color:#b6c0cf}
.sales-preview-total-options input{width:16px;height:16px;margin:0;accent-color:#2563eb}
.sales-preview-upload-section{display:flex;flex-direction:column;gap:9px;border-top:1px solid #dce3ec;padding-top:10px}
.sales-preview-upload-control{display:grid;grid-template-columns:minmax(0,1fr) minmax(138px,1.05fr);gap:8px}
.sales-preview-upload-control .sales-preview-upload-filename{min-width:0;padding:0 9px;color:#475569;font-size:11px;font-weight:700;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sales-preview-upload-control .sales-preview-upload-filename:disabled{opacity:1;background:#f8fafc;color:#94a3b8}
.sales-preview-upload-control [data-sales-preview-upload-button]{height:42px;min-height:42px;padding:7px 8px;font-size:11px;line-height:1.2;white-space:normal}
.sales-preview-upload-control [data-sales-preview-upload-button][aria-busy="true"]{cursor:wait;opacity:.65}
.sales-document-preview-actions .sales-preview-edit-attachment{height:34px;min-height:34px;border-color:#bfdbfe;background:#eff6ff;color:#1d4ed8;font-size:11px}
.sales-document-preview-actions .sales-preview-edit-attachment:hover{border-color:#3b82f6;background:#dbeafe;color:#1e40af}
.sales-document-preview-actions .sales-preview-delete-attachment{height:34px;min-height:34px;border-color:#fecaca;background:#fffafa;color:#b91c1c;font-size:11px}
.sales-document-preview-actions .sales-preview-delete-attachment:hover{border-color:#ef4444;background:#fef2f2;color:#991b1b}
.sales-preview-upload-status{border:1px solid #bbf7d0;border-radius:8px;background:#f0fdf4;color:#166534;padding:8px 9px;font-size:11px;font-weight:700;line-height:1.35;overflow-wrap:anywhere}
.sales-preview-upload-status[hidden]{display:none}
.sales-preview-share-actions{display:grid;grid-template-columns:1fr;gap:8px;margin-top:0;padding-top:2px;border-top:1px solid #dce3ec}
.sales-preview-share-actions button{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sales-preview-share-actions button[aria-busy="true"]{cursor:wait;opacity:.65}
.sales-preview-info-config{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.sales-preview-info-options{display:grid;grid-template-columns:1fr;gap:5px;min-width:0;margin:0;border:1px solid #d6dee9;border-radius:10px;padding:7px 8px;background:#fff}
.sales-preview-info-options legend{padding:0 4px;color:#64748b;font-size:9px;font-weight:800}
.sales-preview-info-options label{display:flex;align-items:center;gap:4px;min-width:0;color:#334155;font-size:10px;font-weight:800;white-space:nowrap}
.sales-preview-info-options input{margin:0;accent-color:#2563eb}
.sales-preview-recipient-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:0;border:1px solid #d6dee9;border-radius:10px;padding:8px;background:#fff}
.sales-preview-recipient-options legend{grid-column:1/-1;padding:0 4px;color:#64748b;font-size:10px;font-weight:800}
.sales-preview-recipient-options label{display:flex;align-items:center;justify-content:center;gap:3px;min-width:0;color:#334155;font-size:10px;font-weight:800;white-space:nowrap}
.sales-preview-recipient-options input{margin:0;accent-color:#2563eb}
.sales-preview-share-status{border:1px solid #bfdbfe;border-radius:8px;background:#eff6ff;color:#1e3a8a;padding:8px 9px;font-size:11px;font-weight:700;line-height:1.35;overflow-wrap:anywhere}
.sales-preview-share-status[hidden]{display:none}
.sales-attachment-confirm-backdrop{position:fixed;inset:0;z-index:2600;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(15,23,42,.58)}
.sales-attachment-confirm{width:min(620px,94vw);max-height:92vh;overflow:auto;border:1px solid #d7dee8;border-radius:16px;background:#fff;box-shadow:0 22px 60px rgba(15,23,42,.3);padding:20px;color:#111827}
.sales-attachment-confirm-head h3{margin:0;color:#111827;font-size:21px;font-weight:900}.sales-attachment-confirm-head p{margin:7px 0 0;color:#64748b;font-size:13px}
.sales-attachment-tax-warning{display:flex;flex-direction:column;gap:6px;margin-top:15px;border:1px solid #f59e0b;border-radius:10px;background:#fffbeb;padding:11px 12px;color:#92400e;font-size:13px;line-height:1.45}.sales-attachment-tax-warning strong{font-size:12px}
.sales-attachment-confirm-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px 14px;margin-top:17px}.sales-attachment-confirm-grid label{display:flex;flex-direction:column;gap:6px}.sales-attachment-confirm-grid label.full,.sales-attachment-current-tax.full{grid-column:1/-1}.sales-attachment-confirm-grid span{color:#475569;font-size:12px;font-weight:800}.sales-attachment-confirm-grid input{height:42px;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:9px;padding:0 11px;background:#fff;color:#111827;font-size:14px}.sales-attachment-confirm-grid input:focus{outline:2px solid #93c5fd;border-color:#3b82f6}
.sales-attachment-current-tax{display:flex;align-items:center;justify-content:space-between;border:1px solid #e2e8f0;border-radius:9px;background:#f8fafc;padding:10px 12px}.sales-attachment-current-tax strong{color:#111827;font-size:13px}
.sales-attachment-confirm-error{margin-top:12px;border-radius:8px;background:#fef2f2;padding:8px 10px;color:#b91c1c;font-size:12px;font-weight:800}.sales-attachment-confirm-error[hidden]{display:none}
.sales-attachment-confirm-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:18px}.sales-attachment-confirm-actions button{min-height:40px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;padding:0 14px;color:#334155;font-weight:800;cursor:pointer}.sales-attachment-confirm-actions button.primary{border-color:#2563eb;background:#2563eb;color:#fff}
@media (max-width:620px){.sales-attachment-confirm-grid{grid-template-columns:1fr}.sales-attachment-confirm-grid label.full,.sales-attachment-current-tax.full{grid-column:auto}.sales-preview-recipient-options{grid-template-columns:1fr}.sales-preview-recipient-options legend{grid-column:auto}}
@media (max-width:1280px){.sales-document-preview{grid-template-columns:minmax(0,1fr) 150px 300px;width:100%}.sales-document-preview-backdrop{padding:10px}.sales-document-preview-actions{padding:12px}.sales-preview-upload-control{grid-template-columns:1fr}}
@media (max-width:900px){.sales-document-preview{grid-template-columns:minmax(0,1fr) 120px 250px}.sales-document-preview.sales-document-preview--orders{grid-template-columns:minmax(0,1fr) 220px}.sales-preview-file-rail{padding:9px 7px}.sales-document-preview-actions{gap:8px;padding:10px}.sales-document-preview-actions button{font-size:12px}}
@media (max-height:700px){.sales-document-preview-backdrop{padding:6px}.sales-document-preview{width:100%;height:100%;border-radius:8px}.sales-document-preview-actions{gap:7px;padding:9px}.sales-document-preview-actions h3{margin-bottom:3px;font-size:17px}.sales-document-preview-actions button{height:34px;min-height:34px}.sales-preview-file-card{min-height:82px;padding:8px}.sales-preview-file-card strong{margin:5px 0 3px}.sales-preview-upload-control [data-sales-preview-upload-button]{height:36px;min-height:36px}.sales-preview-share-status,.sales-preview-upload-status{padding:6px 8px}}
.sales-modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.35);display:flex;align-items:center;justify-content:center;z-index:2000;padding:16px}
.sales-modal-backdrop[hidden]{display:none}
.sales-modal{background:#fff;border:1px solid #dce3ec;border-radius:12px;box-shadow:0 18px 45px rgba(2,6,23,.2);display:flex;flex-direction:column;padding:14px;overflow:hidden}
.sales-modal h3{margin:0 0 12px;font-size:22px;line-height:1.1;font-weight:700;color:#111827}
.sales-modal-message{margin:0 0 10px;color:#64748b;font-size:13px}
.sales-columns-modal,.sales-export-modal{--column-export-modal-height:min(62vh,620px)}
.sales-modal-footer{display:flex;justify-content:flex-end;gap:8px;padding-top:12px}
.sales-modal-footer[hidden]{display:none!important}
.sales-modal-footer button{height:36px;border:1px solid #cfd8e4;background:#fff;border-radius:10px;padding:0 14px;font-size:13px;font-weight:400;color:#1f2937;cursor:pointer}
.sales-picking-completion-modal{width:min(1280px,96vw);max-height:min(820px,90vh);padding:20px}
.sales-picking-completion-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.sales-picking-completion-head h3{margin-bottom:6px}
.sales-picking-completion-head p{margin:0;color:#64748b;font-size:13px}
.sales-picking-completion-info{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}
.sales-picking-completion-info>div{display:flex;flex-direction:column;gap:6px;min-width:0;border:1px solid #dbe4f0;border-radius:10px;background:#f8fafc;padding:12px 14px}
.sales-picking-completion-info span{color:#64748b;font-size:12px;font-weight:700}
.sales-picking-completion-info strong{overflow:hidden;color:#111827;font-size:16px;text-overflow:ellipsis;white-space:nowrap}
.sales-picking-completion-details{display:flex;min-height:0;flex:1 1 auto;flex-direction:column}
.sales-picking-completion-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}
.sales-picking-completion-section-head h4{margin:0;color:#111827;font-size:16px}
.sales-picking-completion-section-head button{height:34px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;padding:0 12px;color:#334155;font-weight:700;cursor:pointer}
.sales-picking-completion-table-wrap{min-height:220px;max-height:420px;overflow:auto;border:1px solid #dbe4f0;border-radius:10px;background:#fff}
.sales-picking-completion-table-wrap table{width:100%;min-width:930px;border-collapse:collapse;table-layout:fixed}
.sales-picking-completion-table-wrap th{position:sticky;top:0;z-index:1;background:#f1f5f9}
.sales-picking-completion-table-wrap th,.sales-picking-completion-table-wrap td{border:1px solid #dbe4f0;padding:8px;text-align:left}
.sales-picking-completion-table-wrap input{width:100%;height:38px;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:8px;padding:0 10px;background:#fff;color:#111827;font-size:14px}
.sales-picking-completion-table-wrap input[readonly]{background:#f8fafc}
.sales-picking-completion-table-wrap tr.is-invalid input{border-color:#ef4444;background:#fff7f7}
.sales-picking-completion-table-wrap .sales-issue-join-adjustment-table th:nth-child(1){width:210px}
.sales-picking-completion-table-wrap .sales-issue-join-adjustment-table th:nth-child(2),.sales-picking-completion-table-wrap .sales-issue-join-adjustment-table th:nth-child(3){width:115px}
.sales-picking-completion-table-wrap .sales-issue-join-adjustment-table th:nth-child(4),.sales-picking-completion-table-wrap .sales-issue-join-adjustment-table th:nth-child(5){width:105px}
.sales-picking-completion-table-wrap .sales-issue-join-adjustment-table th:nth-child(6){width:125px}
.sales-picking-completion-table-wrap .sales-issue-join-adjustment-table th:nth-child(7){width:74px}
.sales-issue-join-adjustments .sales-issue-join-adjustment-table{min-width:640px;table-layout:fixed}
.sales-issue-join-adjustments .sales-issue-join-adjustment-table th:nth-child(1){width:30%}
.sales-issue-join-adjustments .sales-issue-join-adjustment-table th:nth-child(2),.sales-issue-join-adjustments .sales-issue-join-adjustment-table th:nth-child(3){width:16%}
.sales-issue-join-adjustments .sales-issue-join-adjustment-table th:nth-child(4){width:23%}
.sales-issue-join-adjustments .sales-issue-join-adjustment-table th:nth-child(5){width:76px}
.sales-order-adjustment-image{display:inline-flex;width:58px;height:48px;align-items:center;justify-content:center;overflow:hidden;border:1px solid #dbe4f0;border-radius:8px;background:#fff;padding:2px;cursor:pointer}
.sales-order-adjustment-image:hover{border-color:#93c5fd;background:#eff6ff}
.sales-order-adjustment-image img{display:block;width:52px;height:42px;object-fit:contain}
.sales-order-adjustment-image-empty{display:inline-flex;width:58px;height:48px;align-items:center;justify-content:center;color:#94a3b8}
.sales-order-product-image-preview{position:fixed;inset:0;z-index:2800;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(15,23,42,.72)}
.sales-order-product-image-preview-dialog{position:relative;display:flex;max-width:min(92vw,1100px);max-height:90vh;align-items:center;justify-content:center;border-radius:14px;background:#fff;padding:16px;box-shadow:0 24px 70px rgba(15,23,42,.42)}
.sales-order-product-image-preview-dialog img{display:block;max-width:calc(92vw - 32px);max-height:calc(90vh - 32px);object-fit:contain}
.sales-order-product-image-preview-dialog button{position:absolute;top:8px;right:8px;z-index:1;width:36px;height:36px;border:1px solid #cbd5e1;border-radius:50%;background:rgba(255,255,255,.94);color:#111827;font-size:24px;line-height:1;cursor:pointer}
.sales-picking-completion-modal .sales-modal-footer{flex:0 0 auto;margin-top:14px;border-top:1px solid #e2e8f0}
.sales-picking-completion-modal [data-picking-completion-save]{border-color:#2563eb;background:#2563eb;color:#fff;font-weight:700}
.sales-picking-completion-modal button:disabled{opacity:.5;cursor:not-allowed}
.sales-link-picker-adjustments{margin:0 0 12px}
.sales-link-picker-adjustments[hidden]{display:none}
.sales-link-picker-adjustments h4{margin:0 0 8px;color:#111827;font-size:15px}
.sales-link-picker-adjustments-table{max-height:180px;overflow:auto;border:1px solid #dbe4f0;border-radius:10px}
.sales-link-picker-adjustments-table table{width:100%;border-collapse:collapse;font-size:13px}
.sales-link-picker-adjustments-table th,.sales-link-picker-adjustments-table td{border:1px solid #e2e8f0;padding:7px 9px;text-align:left}
.sales-link-picker-adjustments-table th{position:sticky;top:0;background:#f1f5f9}
.sales-customer-edit-modal{width:min(560px,90vw);height:min(90vh,860px)}
.sales-modal-backdrop.is-embedded-customer-editor{z-index:2300}
.sales-customer-edit-modal.is-embedded-customer-editor{width:min(560px,90vw);height:min(90vh,860px);padding:0;border:0;background:transparent;box-shadow:none}
.sales-customer-edit-title{margin:0 0 10px;font-size:24px;line-height:1.1;font-weight:700;color:#1f2937}
.sales-customer-edit-tabs{display:flex;align-items:center;gap:8px;margin-bottom:10px;overflow:auto;flex:0 0 auto}
.sales-customer-edit-tab{height:34px;border:1px solid #cfd8e4;background:#fff;border-radius:10px;padding:0 12px;font-size:13px;font-weight:400;color:#334155;white-space:nowrap;cursor:pointer}
.sales-customer-edit-tab.active{border-color:#93c5fd;background:#eef5ff;color:#1e3a8a;font-weight:600}
.sales-customer-edit-body{border:1px solid #dce3ec;border-radius:10px;background:#f8fbff;overflow:auto;flex:1;min-height:0;padding:12px 10px 12px 12px}
.sales-customer-edit-body.is-embedded-customer-editor{display:flex;border:0;border-radius:0;background:transparent;overflow:hidden;padding:0}
.sales-customer-editor-frame{width:100%;height:100%;border:0;background:transparent;opacity:0;pointer-events:none;transition:opacity .08s ease}
.sales-customer-editor-frame.is-ready{opacity:1;pointer-events:auto}
.sales-customer-edit-panel[hidden]{display:none}
.sales-customer-edit-grid{display:grid;grid-template-columns:1fr;gap:10px}
.sales-customer-edit-field{display:grid;grid-template-columns:110px 380px;align-items:center;justify-content:start;gap:0}
.sales-customer-edit-field label{font-size:13px;font-weight:400;color:#334155;text-align:left;padding-left:2px}
.sales-customer-edit-field input,.sales-customer-edit-field textarea,.sales-customer-edit-field select{width:380px;box-sizing:border-box;border:1px solid #cfd8e4;border-radius:8px;background:#fff;color:#1f2937;font-size:13px;padding:0 10px;outline:none}
.sales-customer-edit-field input,.sales-customer-edit-field select{height:34px}
.sales-customer-edit-field textarea{min-height:68px;max-height:180px;padding:8px 10px;resize:vertical;line-height:1.4}
.sales-customer-edit-field input:focus,.sales-customer-edit-field textarea:focus,.sales-customer-edit-field select:focus{border-color:#93baf8;box-shadow:0 0 0 3px rgba(147,186,248,.18)}
.sales-customer-edit-field input:disabled,.sales-customer-edit-field textarea:disabled,.sales-customer-edit-field select:disabled{background:#f1f5f9;color:#8a96a8}
.sales-customer-country-control{display:flex;gap:8px;width:380px}
.sales-customer-country-control select{width:178px}
.sales-customer-country-control input{width:194px}
.sales-customer-country-control input[hidden]{display:none}
.sales-customer-edit-binary{width:380px;display:flex;align-items:center;gap:18px;min-height:34px}
.sales-customer-edit-binary label{display:flex;align-items:center;gap:8px;font-size:13px;color:#1f2937;cursor:pointer;padding-left:0}
.sales-customer-edit-binary input{appearance:none;-webkit-appearance:none;width:20px!important;height:20px!important;margin:0;border:1.6px solid #7b8798;border-radius:50%;background:#fff;position:relative;cursor:pointer;padding:0!important;flex:0 0 auto}
.sales-customer-edit-binary input:checked::after{content:"";position:absolute;left:5px;top:5px;width:8px;height:8px;border-radius:50%;background:#111827}
.sales-customer-edit-radio-row{display:flex;align-items:center;gap:18px;margin-bottom:12px;font-size:14px;font-weight:700;color:#334155}
.sales-customer-edit-radio-row label{display:flex;align-items:center;gap:8px;cursor:pointer}
.sales-customer-edit-radio-row input{width:20px;height:20px;margin:0;accent-color:#1f2937}
.sales-customer-edit-note{margin:0 0 12px;color:#64748b;font-size:13px}
@media (max-width:1200px){.sales-filter-row{width:100%}}
@media (max-width:900px){.sales-columns-list,.sales-export-list{grid-template-columns:repeat(2,minmax(0,1fr))}.sales-export-options{align-items:flex-start;flex-direction:column}.sales-customer-edit-modal{width:94vw}.sales-customer-edit-field{grid-template-columns:1fr;gap:6px}.sales-customer-edit-field input,.sales-customer-edit-field textarea,.sales-customer-edit-field select,.sales-customer-country-control,.sales-customer-edit-binary{width:100%}.sales-customer-country-control{flex-direction:column}.sales-customer-country-control select,.sales-customer-country-control input{width:100%}}
@media (max-width:560px){.sales-columns-list,.sales-export-list{grid-template-columns:1fr}}
@media (max-width:640px){.sales-picking-completion-modal{width:96vw;padding:14px}.sales-picking-completion-info{grid-template-columns:1fr}.sales-picking-completion-table-wrap{min-height:180px}}

@media (max-width:760px){
  .sales-panel{
    flex:1 1 0;
    min-height:0;
    padding:6px 3px 3px;
    margin-bottom:10px;
    overflow:hidden;
  }
  .sales-filter-row{
    display:grid;
    grid-template-columns:82px 142px 92px 70px;
    grid-template-rows:38px 38px;
    grid-auto-flow:column;
    align-items:center;
    column-gap:6px;
    row-gap:7px;
    overflow-x:auto;
    overflow-y:visible;
    padding-bottom:2px;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:thin;
  }
  .sales-filter-row > *{
    min-width:0!important;
    max-width:none!important;
  }
  .sales-filter-row select,
  .sales-filter-row input,
  .sales-filter-row button,
  .sales-month-button,
  .sales-customer-picker{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:38px;
    min-height:38px;
    padding-left:9px;
    padding-right:9px;
    font-size:14px;
  }
  .sales-month-picker{
    grid-column:1 / span 2;
    grid-row:2;
    width:126px;
    min-width:126px!important;
  }
  .sales-month-button{
    justify-content:center;
    gap:6px;
    padding-left:10px;
    padding-right:8px;
  }
  #sales-cond-field{
    grid-column:1;
    grid-row:1;
  }
  #sales-cond-value{
    grid-column:2;
    grid-row:1;
  }
  #sales-customer-picker{
    grid-column:2;
    grid-row:1;
  }
  #sales-date-from{
    display:none!important;
  }
  #sales-date-to{
    display:none!important;
  }
  #sales-status-filter{
    grid-column:3;
    grid-row:1;
  }
  #sales-apply-filter{
    grid-column:4;
    grid-row:1;
  }
  #sales-promoter-filter{
    grid-column:3 / span 2;
    grid-row:2;
  }
  .sales-actions{
    flex-wrap:nowrap;
  }
  .sales-table-wrap{
    flex:1 1 0;
    min-height:0;
    height:auto;
    max-height:none;
  }
  .sales-empty-panel{
    min-height:58vh;
  }
  .sales-month-menu{
    top:42px;
    width:156px;
    max-height:58vh;
  }
  .sales-bulk-menu{
    right:auto;
    left:0;
  }
}

@media (max-width:480px){
  .sales-filter-row{
    grid-template-columns:76px 136px 86px 66px;
  }
  .sales-columns-list,
  .sales-export-list{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:6px;
  }
  .sales-column-item{
    min-height:34px;
    align-items:flex-start;
    gap:5px;
    padding:6px 7px;
    border-radius:8px;
    font-size:12px;
    line-height:1.25;
    white-space:normal;
    overflow:visible;
    text-overflow:clip;
    word-break:break-word;
  }
  .sales-column-item span{
    overflow:visible;
    text-overflow:clip;
  }
  .sales-column-item input[type="checkbox"]{
    width:18px;
    height:18px;
  }
  .sales-column-item input[type="checkbox"]:checked::after{
    left:5px;
    top:1px;
    width:5px;
    height:10px;
    border-right-width:2.5px;
    border-bottom-width:2.5px;
  }
}
