/* Список Sales: фильтры колонок, чипы, итоги, выбор строк, меню, On Hold. */
.sales-list-card .sl-left{display:inline-flex;gap:8px;align-items:center}
.sl-hold{border-color:var(--danger-line) !important;color:var(--danger) !important;font-weight:700 !important}
.sl-hold:disabled{opacity:.55}
.sl-chips{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0 0 8px}
.sl-chips-label{font-size:10.5px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--text-2)}
.sl-chip{display:inline-flex;gap:6px;align-items:center;background:var(--accent-soft);border:1px solid var(--accent-line);color:var(--accent);border-radius:999px;padding:2px 4px 2px 10px;font-size:12px;font-weight:600}
.sl-chip button{border:0;background:var(--surface);border-radius:9px;width:18px;height:18px;padding:0;line-height:18px;font-size:12px;color:var(--text-2)}
.sl-clear{border:0 !important;background:none !important;color:var(--danger) !important;font-weight:700;font-size:12px;padding:0 4px !important}
.sl-table th,.sl-table td{white-space:nowrap}
.sl-table tr.list-rest td,.sales-lines-table tr.list-rest td{padding:0;border:0;background:none}
.sales-lines-bars{display:contents}
.sl-th{display:inline-flex;align-items:center;gap:5px}
.sl-fbtn{width:18px;height:18px;padding:0 !important;border:1px solid var(--line-strong);border-radius:5px;background:var(--surface);color:var(--text-2);font-size:9px;line-height:16px;cursor:pointer}
.sl-fbtn::after{content:'▾'}
.sl-fbtn.on{background:var(--accent);border-color:var(--accent);color:var(--on-solid)}
.sl-table .sl-check{width:26px}
.sl-table input[type=checkbox]{width:15px;height:15px;margin:0}
.sl-po{display:flex;align-items:center;gap:6px;max-width:100%}.sl-po>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis}.sl-po>a,.sl-po>.sl-po-arch{flex:none;display:inline-flex;color:var(--accent)}.sl-po>.sl-po-arch{color:var(--text-3)}.sl-po svg{width:15px;height:15px}
.sl-table td .sl-glass a{color:var(--accent);text-decoration:none}
.sl-glass{display:inline-block;max-width:220px;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom;color:var(--text-2);font-size:12px}
.sl-table tr.sl-row-sel td{background:var(--accent-soft)}
.sl-table tr.sl-row-work td{background:var(--surface-3)}
/* Черновик заказа (пункт 2): вся строка светло-жёлтая. */
.sl-table tr.sl-row-draft td{background:var(--warning-soft)}
.sl-table tr.sl-row-hold td{background:var(--danger-soft)}
.sl-table tr.sl-row-hold td:first-child{box-shadow:inset 4px 0 0 var(--danger)}
.pill.hold{background:var(--danger-soft);color:var(--danger);border:1px solid var(--danger-line)}
.sl-foot td{background:var(--surface-2);font-weight:800;border-top:2px solid var(--text-3)}
.sl-foot small{display:block;margin-top:2px;font-weight:600;color:var(--text-2);font-size:11px}
.sl-backdrop{position:fixed;inset:0;z-index:59;background:transparent}
.sl-menu{position:fixed;z-index:60;width:340px;max-width:calc(100vw - 16px);overflow:auto;background:var(--surface);border:1px solid var(--line-strong);border-radius:12px;box-shadow:0 16px 40px rgba(16,24,40,.22);padding:12px;font-size:13px;color:var(--text)}
.sl-menu.sl-cols{width:300px}
/* Excel — первым в меню ⚙ (views/sl-excel, владелец 08.11.2026). */
.sl-cols .sl-excel{display:flex;align-items:center;gap:8px;width:100%;justify-content:flex-start;margin:0 0 8px;padding:6px 8px}.sl-cols .sl-excel svg{width:15px;height:15px}
.sl-menu h5{margin:10px 0 6px;font-size:10.5px;letter-spacing:.05em;text-transform:uppercase;color:var(--text-2)}
.sl-menu h5:first-child{margin-top:0}
.sl-row{display:flex;gap:6px;align-items:center;margin:4px 0}
.sl-row>*{flex:1;min-width:0}
.sl-row>.sl-x{flex:0 0 auto;padding:2px 7px}
.sl-btn{border:1px solid var(--line-strong);background:var(--surface);border-radius:7px;padding:5px 8px;font-weight:600;color:var(--text);font-size:12.5px}
.sl-btn.on{background:var(--accent);border-color:var(--accent);color:var(--on-solid)}
.sl-presets{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.sl-menu select,.sl-menu input[type=text],.sl-menu input[type=number],.sl-menu input[type=date]{width:100%;min-width:0}
.sl-join{display:flex;gap:4px;margin:4px 0}
.sl-join button{border:1px solid var(--line-strong);background:var(--surface);border-radius:5px;padding:1px 8px;font-size:10.5px;font-weight:800;color:var(--text-2)}
.sl-join button.on{background:var(--accent-soft);border-color:var(--accent-line);color:var(--accent)}
.sl-search{margin-bottom:2px}
.sl-vals{max-height:180px;overflow:auto;border:1px solid var(--line);border-radius:8px;padding:4px 8px;margin-top:6px}
.sl-vals label{display:flex !important;gap:8px;align-items:center;padding:3px 0;margin:0;text-transform:none !important;letter-spacing:0 !important;font-weight:400 !important;font-size:13px !important;color:var(--text) !important}
.sl-vals label b{margin-left:auto;color:var(--text-2);font-weight:600}
.sl-vals input{width:auto !important;margin:0}
.sl-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:10px}
.sl-cols-row{display:flex;gap:6px;align-items:center;padding:3px 2px;border-bottom:1px solid var(--line)}
.sl-cols-row label{display:flex !important;gap:8px;align-items:center;flex:1;margin:0;text-transform:none !important;letter-spacing:0 !important;font-weight:500 !important;font-size:13px !important;color:var(--text) !important}
.sl-cols-row input{width:auto !important;margin:0}
.sl-cols-row .h{color:var(--text-3);cursor:grab}
.sl-cols-row button{padding:0 6px}
.sl-ctx{position:fixed;z-index:60;width:220px;background:var(--surface);border:1px solid var(--line-strong);border-radius:10px;box-shadow:0 12px 30px rgba(16,24,40,.2);padding:6px}
.sl-ctx button{display:block;width:100%;text-align:left;border:0;background:none;padding:7px 10px;border-radius:6px;font-size:13.5px;color:var(--text)}
.sl-ctx button:hover{background:var(--accent-soft)}
.sl-ctx button.dl{color:var(--danger)}
.sl-ctx hr{border:0;border-top:1px solid var(--line);margin:4px 0}
.sales-holdbar{display:flex;gap:10px;align-items:center;background:var(--danger-soft);border:1px solid var(--danger-line);color:var(--danger);border-radius:10px;padding:9px 14px;margin:10px 0}
.sales-holdbar .sp{flex:1}
.sl-hold-choice{display:flex !important;gap:10px;align-items:center;border:1px solid var(--line-strong);border-radius:8px;padding:8px 12px;margin:6px 0;cursor:pointer;text-transform:none !important;letter-spacing:0 !important;font-weight:400 !important;font-size:14px !important;color:var(--text) !important}
.sl-hold-choice.on{border:2px solid var(--accent);background:var(--accent-soft)}
.sl-hold-choice input[type=radio]{width:auto !important;margin:0;flex:0 0 auto}
.sl-hold-choice input[type=text]{flex:1;min-width:0}

/* Sales: спокойная панель, скрытые настройки и диапазон создания. */
.sales-list-card .sales-toolbar,.fin-card .sales-toolbar,.fin-modal-back .sales-toolbar{justify-content:flex-start;gap:6px;margin-bottom:8px}
.sales-list-card .sl-quiet,.fin-card .sl-quiet,.fin-modal-back .sl-quiet{display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:3px 8px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--text-2);font-size:12px;font-weight:600;box-shadow:none}
.sales-list-card .sl-quiet:hover,.fin-card .sl-quiet:hover,.fin-modal-back .sl-quiet:hover{background:var(--surface-2);border-color:var(--text-3)}
.sales-list-card .sl-hold-quiet{color:var(--text-2);border-color:transparent}
.sales-list-card .sl-hold-quiet:disabled{opacity:.45}
.sales-list-card .sl-delete-quiet:not(:disabled){color:var(--danger)}
.sales-list-card .sl-quiet:disabled{opacity:.45}
.sl-view-controls{display:flex;align-items:flex-start;flex-wrap:wrap;gap:6px;margin:0 0 9px}
/* Шапка Sales: быстрые виды, статусы и Created одним рядом, кнопки одного размера. */
.sl-filter-row{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:0 20px 10px}
.sl-filter-row .sl-quick{display:contents}
.sl-filter-row .sl-quick-pill{height:28px;padding:0 9px;white-space:nowrap;font-size:12px;display:inline-flex;align-items:center;gap:5px}
.sl-filter-row .sl-quick-pill b{margin:0}
.sl-status-pill b{color:var(--text)}
.sl-filter-sep{width:1px;height:18px;margin:0 3px;background:var(--line-strong)}
.sales-toolbar .sl-date-toggle{border:0;background:transparent;font-weight:500;color:var(--text-2)}
.sl-status-menu{width:220px;display:grid;gap:4px}
.sl-status-menu .sl-btn{display:flex;justify-content:space-between;gap:10px}
.sl-calc-pick{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
/* Итоги: что посчитано — словом над числом. */
.sl-foot .sl-calc small{display:block;margin:0 0 2px;font-size:10px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--text-2)}
/* Sales: итоги внизу экрана. overflow:hidden карточки и обёртки держал бы их на месте. */
.card.sales-list-card.sl-foot-pin{overflow:clip}
.sl-foot-pin .sales-table-wrap{overflow:visible}
.sl-foot-pin .sales-table-wrap.sl-wide{overflow:auto}
.sl-foot-pin .sl-foot td{position:sticky;bottom:var(--sl-foot-bottom,0);z-index:3;border-top:0;box-shadow:inset 0 1px var(--line)}
.sl-foot-pin .sl-wide .sl-foot td{bottom:0}
.sales-status-chips.sl-status-compact{display:contents}
.sl-status-options{display:flex;gap:5px;flex-wrap:wrap;align-items:center;max-width:100%;order:3;flex-basis:100%}
.sales-status-chips .sl-status-toggle{display:inline-flex;gap:5px;align-items:center;height:28px;padding:3px 8px;border-radius:7px;color:var(--text);font-weight:600;background:var(--surface);border:1px solid var(--line);box-shadow:none}
.sales-status-chips .sl-status-toggle b{font-size:11px;font-weight:500;color:var(--text-2);margin:0}
.sales-list-card .sl-disclosure,.fin-card .sl-disclosure,.fin-modal-back .sl-disclosure{display:inline-block;width:9px;margin-left:2px;font-size:9px;line-height:1;text-align:center;color:var(--text-2)}
.sl-header-tools{display:flex;align-items:center;gap:3px}
.sl-table th.sl-check:has(.sl-header-tools){min-width:48px;padding-right:4px}
.sl-settings{border:0;background:transparent;padding:3px;border-radius:5px;width:26px;height:26px;color:var(--text-2);cursor:pointer}
.sl-settings:hover,.sl-settings:focus-visible{background:var(--surface-3);color:var(--accent)}
.sl-settings svg{width:17px;height:17px;display:block}
.sl-show-menu{width:220px}
.sl-show-menu label{display:flex;align-items:center;gap:8px;padding:5px 2px;margin:0;text-transform:none;font-size:13px;font-weight:500;letter-spacing:0}
.sl-show-menu input{width:15px;height:15px;margin:0}
.sl-show-menu small{margin-left:auto;color:var(--text-2)}
.sl-date-menu{width:360px}
.sl-date-presets{display:flex;gap:5px}
.sl-date-presets button{flex:1;padding:5px 4px;white-space:nowrap;font-size:12px}
.sl-date-inputs{display:flex;gap:10px;border-top:1px solid var(--line);margin-top:12px;padding-top:12px}
.sl-date-inputs label{flex:1;min-width:0;font-size:11px;letter-spacing:0;text-transform:none}
.sl-date-inputs input{margin-top:4px;font-size:12px}
.sl-date-actions{display:flex;align-items:center;gap:8px;margin-top:12px}
.sl-date-actions .sp{flex:1}
.sl-date-actions button{font-size:12px}
.sl-text-button{border:0;background:none;padding:3px;color:var(--accent)}
.sl-reset{width:28px;height:28px;padding:0;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--text-2);font-size:18px!important}
.sl-range-error{color:var(--danger);font-size:12px;margin:8px 0 0}
.sl-table tr.sl-row-done td{background:var(--success-soft)}
.sl-table tr.sl-row-done .st-done{background:var(--success-soft);color:var(--success);border-color:var(--success-line)}
.sl-table tr.sl-row-closed td{background:var(--surface-3);color:var(--text-2)}
/* Заказ в архиве (erp/archive): серая строка и метка Archived. */
.sl-table tr.sl-row-archived td{color:var(--text-2)}
.pill.archived{background:var(--surface-3);color:var(--text-3);border:1px solid var(--line)}
.sl-table tr.sl-row-sel td{box-shadow:inset 0 1px var(--accent-line),inset 0 -1px var(--accent-line)}
.sl-table tr.sl-row-hold td{background:var(--danger-soft)}
.sl-table tr.sl-row-hold td:first-child{box-shadow:inset 4px 0 0 var(--danger)}
/* Hold позиции — строка доступна для правок; меню появляется по ПКМ,
   Shift+F10 или долгому нажатию на номер строки. */
.sales-lines-table tr.sales-line-on-hold td{background:var(--warning-soft)}
.sales-lines-table tr.sales-line-on-hold td:first-child{box-shadow:inset 3px 0 var(--warning)}
.sales-lines-table tr[tabindex]:focus-visible{outline:2px solid var(--accent-line);outline-offset:-2px}
.sl-line-hold-menu{width:280px;max-width:calc(100vw - 16px)}
.sl-line-hold-menu label{text-transform:none;letter-spacing:0;font-size:12px}
.sl-line-hold-menu input{margin-top:5px}
.sl-line-hold-menu p{font-size:12px;overflow-wrap:anywhere}
.sl-line-context{padding:9px}
.sl-line-context>b{display:block;padding:2px 5px;font-size:12px}
.sl-line-context p{padding:0 5px;margin:5px 0}
.sl-line-context hr{border:0;border-top:1px solid var(--line);margin:8px 0 4px}
.sl-line-context button{display:block;width:100%;padding:7px 5px;text-align:left;border:0;background:none;border-radius:5px;font-size:12px}
.sl-line-context button:hover,.sl-line-context button:focus-visible{background:var(--surface-3)}
/* Hold units / Cancel units (erp/sales/unit-cancel). */
.line-units-dialog label{text-transform:none;letter-spacing:0;font-size:13px;font-weight:500}.line-units-dialog .sales-dialog-body>.sales-table-wrap{margin:12px -16px}.line-units-dialog .sl-range-error{margin:8px 0 0}
.line-units-fields{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap}.line-units-fields label{display:flex;flex-direction:column;gap:5px}.line-units-fields label input{margin-top:0}.line-units-fields>.mut{padding-bottom:9px}.line-units-fields input[type=number]{width:80px}.line-units-fields .line-units-reason{flex:1;min-width:160px}.line-units-fields .line-units-reason input{width:100%}
.line-units-plan{width:100%}.line-units-plan td,.line-units-plan th{padding-top:8px;padding-bottom:8px}.line-units-plan .n{text-align:right;padding-right:16px}.line-units-plan th:first-child,.line-units-plan td:first-child{padding-left:16px}.line-units-after{color:var(--mut)}
.line-units-glass{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin:8px 0}.line-units-glass .chk{display:inline-flex;gap:6px;align-items:center;white-space:nowrap}
.line-units-total{display:flex;gap:10px;align-items:center;margin:8px 0}.line-units-total b{margin-left:auto}.line-units-total input{width:110px;margin-top:0}
.line-units-row td{padding:6px 12px 10px 44px}.line-units-hold,.line-units-cancelled{display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:13px;padding:4px 0}
.line-units-hold{color:var(--red)}.line-units-hold span{color:var(--red)}.line-units-cancelled span{color:var(--text-2)}.line-units-cancelled label{display:inline-flex;gap:6px;align-items:center;color:var(--text-2);text-transform:none;letter-spacing:0;font-size:13px;font-weight:400;margin:0}.line-units-cancelled input{width:110px;margin-top:0;text-align:right}
.sl-partial{margin-left:6px;padding:1px 6px;font-size:10px;font-weight:700;vertical-align:1px}

/* Шапка списка не уезжает при прокрутке вниз (владелец, 04.11.2026): страница
   крутится сама — шапка у верха окна; шире экрана (sl-wide) — у верха таблицы. */
.sales-list-card.sl-foot-pin table.sl-table>thead>tr>th{position:sticky;top:0;z-index:4}
/* Freeze: первые N ячеек строки (галочка и закреплённые колонки) стоят у левого
   края при прокрутке вбок; left — по ширине заголовков (salesListTableFit). */
.sl-table.fz-1>:is(thead,tbody)>tr>:nth-child(1),.sl-table.fz-2>:is(thead,tbody)>tr>:nth-child(1),.sl-table.fz-3>:is(thead,tbody)>tr>:nth-child(1),.sl-table.fz-4>:is(thead,tbody)>tr>:nth-child(1),.sl-table.fz-5>:is(thead,tbody)>tr>:nth-child(1),.sl-table.fz-6>:is(thead,tbody)>tr>:nth-child(1),.sl-table.fz-7>:is(thead,tbody)>tr>:nth-child(1),.sl-table.fz-8>:is(thead,tbody)>tr>:nth-child(1),.sl-table.fz-9>:is(thead,tbody)>tr>:nth-child(1),.sl-table.fz-10>:is(thead,tbody)>tr>:nth-child(1),.sl-table.fz-11>:is(thead,tbody)>tr>:nth-child(1),.sl-table.fz-12>:is(thead,tbody)>tr>:nth-child(1){left:var(--fz1,0)}
.sl-table.fz-2>:is(thead,tbody)>tr>:nth-child(2),.sl-table.fz-3>:is(thead,tbody)>tr>:nth-child(2),.sl-table.fz-4>:is(thead,tbody)>tr>:nth-child(2),.sl-table.fz-5>:is(thead,tbody)>tr>:nth-child(2),.sl-table.fz-6>:is(thead,tbody)>tr>:nth-child(2),.sl-table.fz-7>:is(thead,tbody)>tr>:nth-child(2),.sl-table.fz-8>:is(thead,tbody)>tr>:nth-child(2),.sl-table.fz-9>:is(thead,tbody)>tr>:nth-child(2),.sl-table.fz-10>:is(thead,tbody)>tr>:nth-child(2),.sl-table.fz-11>:is(thead,tbody)>tr>:nth-child(2),.sl-table.fz-12>:is(thead,tbody)>tr>:nth-child(2){left:var(--fz2,0)}
.sl-table.fz-3>:is(thead,tbody)>tr>:nth-child(3),.sl-table.fz-4>:is(thead,tbody)>tr>:nth-child(3),.sl-table.fz-5>:is(thead,tbody)>tr>:nth-child(3),.sl-table.fz-6>:is(thead,tbody)>tr>:nth-child(3),.sl-table.fz-7>:is(thead,tbody)>tr>:nth-child(3),.sl-table.fz-8>:is(thead,tbody)>tr>:nth-child(3),.sl-table.fz-9>:is(thead,tbody)>tr>:nth-child(3),.sl-table.fz-10>:is(thead,tbody)>tr>:nth-child(3),.sl-table.fz-11>:is(thead,tbody)>tr>:nth-child(3),.sl-table.fz-12>:is(thead,tbody)>tr>:nth-child(3){left:var(--fz3,0)}
.sl-table.fz-4>:is(thead,tbody)>tr>:nth-child(4),.sl-table.fz-5>:is(thead,tbody)>tr>:nth-child(4),.sl-table.fz-6>:is(thead,tbody)>tr>:nth-child(4),.sl-table.fz-7>:is(thead,tbody)>tr>:nth-child(4),.sl-table.fz-8>:is(thead,tbody)>tr>:nth-child(4),.sl-table.fz-9>:is(thead,tbody)>tr>:nth-child(4),.sl-table.fz-10>:is(thead,tbody)>tr>:nth-child(4),.sl-table.fz-11>:is(thead,tbody)>tr>:nth-child(4),.sl-table.fz-12>:is(thead,tbody)>tr>:nth-child(4){left:var(--fz4,0)}
.sl-table.fz-5>:is(thead,tbody)>tr>:nth-child(5),.sl-table.fz-6>:is(thead,tbody)>tr>:nth-child(5),.sl-table.fz-7>:is(thead,tbody)>tr>:nth-child(5),.sl-table.fz-8>:is(thead,tbody)>tr>:nth-child(5),.sl-table.fz-9>:is(thead,tbody)>tr>:nth-child(5),.sl-table.fz-10>:is(thead,tbody)>tr>:nth-child(5),.sl-table.fz-11>:is(thead,tbody)>tr>:nth-child(5),.sl-table.fz-12>:is(thead,tbody)>tr>:nth-child(5){left:var(--fz5,0)}
.sl-table.fz-6>:is(thead,tbody)>tr>:nth-child(6),.sl-table.fz-7>:is(thead,tbody)>tr>:nth-child(6),.sl-table.fz-8>:is(thead,tbody)>tr>:nth-child(6),.sl-table.fz-9>:is(thead,tbody)>tr>:nth-child(6),.sl-table.fz-10>:is(thead,tbody)>tr>:nth-child(6),.sl-table.fz-11>:is(thead,tbody)>tr>:nth-child(6),.sl-table.fz-12>:is(thead,tbody)>tr>:nth-child(6){left:var(--fz6,0)}
.sl-table.fz-7>:is(thead,tbody)>tr>:nth-child(7),.sl-table.fz-8>:is(thead,tbody)>tr>:nth-child(7),.sl-table.fz-9>:is(thead,tbody)>tr>:nth-child(7),.sl-table.fz-10>:is(thead,tbody)>tr>:nth-child(7),.sl-table.fz-11>:is(thead,tbody)>tr>:nth-child(7),.sl-table.fz-12>:is(thead,tbody)>tr>:nth-child(7){left:var(--fz7,0)}
.sl-table.fz-8>:is(thead,tbody)>tr>:nth-child(8),.sl-table.fz-9>:is(thead,tbody)>tr>:nth-child(8),.sl-table.fz-10>:is(thead,tbody)>tr>:nth-child(8),.sl-table.fz-11>:is(thead,tbody)>tr>:nth-child(8),.sl-table.fz-12>:is(thead,tbody)>tr>:nth-child(8){left:var(--fz8,0)}
.sl-table.fz-9>:is(thead,tbody)>tr>:nth-child(9),.sl-table.fz-10>:is(thead,tbody)>tr>:nth-child(9),.sl-table.fz-11>:is(thead,tbody)>tr>:nth-child(9),.sl-table.fz-12>:is(thead,tbody)>tr>:nth-child(9){left:var(--fz9,0)}
.sl-table.fz-10>:is(thead,tbody)>tr>:nth-child(10),.sl-table.fz-11>:is(thead,tbody)>tr>:nth-child(10),.sl-table.fz-12>:is(thead,tbody)>tr>:nth-child(10){left:var(--fz10,0)}
.sl-table.fz-11>:is(thead,tbody)>tr>:nth-child(11),.sl-table.fz-12>:is(thead,tbody)>tr>:nth-child(11){left:var(--fz11,0)}
.sl-table.fz-12>:is(thead,tbody)>tr>:nth-child(12){left:var(--fz12,0)}
.sl-table.fz-1>:is(thead,tbody)>tr>:nth-child(-n+1),.sl-table.fz-2>:is(thead,tbody)>tr>:nth-child(-n+2),.sl-table.fz-3>:is(thead,tbody)>tr>:nth-child(-n+3),.sl-table.fz-4>:is(thead,tbody)>tr>:nth-child(-n+4),.sl-table.fz-5>:is(thead,tbody)>tr>:nth-child(-n+5),.sl-table.fz-6>:is(thead,tbody)>tr>:nth-child(-n+6),.sl-table.fz-7>:is(thead,tbody)>tr>:nth-child(-n+7),.sl-table.fz-8>:is(thead,tbody)>tr>:nth-child(-n+8),.sl-table.fz-9>:is(thead,tbody)>tr>:nth-child(-n+9),.sl-table.fz-10>:is(thead,tbody)>tr>:nth-child(-n+10),.sl-table.fz-11>:is(thead,tbody)>tr>:nth-child(-n+11),.sl-table.fz-12>:is(thead,tbody)>tr>:nth-child(-n+12){position:sticky;z-index:2}
.sales-list-card .sl-table.fz-1>thead>tr>:nth-child(-n+1),.sales-list-card .sl-table.fz-2>thead>tr>:nth-child(-n+2),.sales-list-card .sl-table.fz-3>thead>tr>:nth-child(-n+3),.sales-list-card .sl-table.fz-4>thead>tr>:nth-child(-n+4),.sales-list-card .sl-table.fz-5>thead>tr>:nth-child(-n+5),.sales-list-card .sl-table.fz-6>thead>tr>:nth-child(-n+6),.sales-list-card .sl-table.fz-7>thead>tr>:nth-child(-n+7),.sales-list-card .sl-table.fz-8>thead>tr>:nth-child(-n+8),.sales-list-card .sl-table.fz-9>thead>tr>:nth-child(-n+9),.sales-list-card .sl-table.fz-10>thead>tr>:nth-child(-n+10),.sales-list-card .sl-table.fz-11>thead>tr>:nth-child(-n+11),.sales-list-card .sl-table.fz-12>thead>tr>:nth-child(-n+12){z-index:5}
.sl-table.sl-frz>tfoot>tr>:first-child{left:0;z-index:4}
:where(.sl-table.sl-frz>tbody>tr>td){background:var(--surface)}
/* Прокрутили вбок — тень у правого края закреплённых: видно, что текст уходит под них. */
.sl-scrolled-x .sl-table.fz-1>:is(thead,tbody)>tr>:nth-child(1),.sl-scrolled-x .sl-table.fz-2>:is(thead,tbody)>tr>:nth-child(2),.sl-scrolled-x .sl-table.fz-3>:is(thead,tbody)>tr>:nth-child(3),.sl-scrolled-x .sl-table.fz-4>:is(thead,tbody)>tr>:nth-child(4),.sl-scrolled-x .sl-table.fz-5>:is(thead,tbody)>tr>:nth-child(5),.sl-scrolled-x .sl-table.fz-6>:is(thead,tbody)>tr>:nth-child(6),.sl-scrolled-x .sl-table.fz-7>:is(thead,tbody)>tr>:nth-child(7),.sl-scrolled-x .sl-table.fz-8>:is(thead,tbody)>tr>:nth-child(8),.sl-scrolled-x .sl-table.fz-9>:is(thead,tbody)>tr>:nth-child(9),.sl-scrolled-x .sl-table.fz-10>:is(thead,tbody)>tr>:nth-child(10),.sl-scrolled-x .sl-table.fz-11>:is(thead,tbody)>tr>:nth-child(11),.sl-scrolled-x .sl-table.fz-12>:is(thead,tbody)>tr>:nth-child(12){box-shadow:inset -1px 0 var(--line-strong);overflow:clip;overflow-clip-margin:12px}
.sl-scrolled-x .sl-table.fz-1>:is(thead::after,tbody)>tr>:nth-child(1)::after,.sl-scrolled-x .sl-table.fz-2>:is(thead::after,tbody)>tr>:nth-child(2)::after,.sl-scrolled-x .sl-table.fz-3>:is(thead::after,tbody)>tr>:nth-child(3)::after,.sl-scrolled-x .sl-table.fz-4>:is(thead::after,tbody)>tr>:nth-child(4)::after,.sl-scrolled-x .sl-table.fz-5>:is(thead::after,tbody)>tr>:nth-child(5)::after,.sl-scrolled-x .sl-table.fz-6>:is(thead::after,tbody)>tr>:nth-child(6)::after,.sl-scrolled-x .sl-table.fz-7>:is(thead::after,tbody)>tr>:nth-child(7)::after,.sl-scrolled-x .sl-table.fz-8>:is(thead::after,tbody)>tr>:nth-child(8)::after,.sl-scrolled-x .sl-table.fz-9>:is(thead::after,tbody)>tr>:nth-child(9)::after,.sl-scrolled-x .sl-table.fz-10>:is(thead::after,tbody)>tr>:nth-child(10)::after,.sl-scrolled-x .sl-table.fz-11>:is(thead::after,tbody)>tr>:nth-child(11)::after,.sl-scrolled-x .sl-table.fz-12>:is(thead::after,tbody)>tr>:nth-child(12)::after{content:'';position:absolute;top:0;bottom:0;right:-12px;width:12px;pointer-events:none;background:linear-gradient(to right,rgba(16,24,40,.16),rgba(16,24,40,0))}
/* Значок Freeze: в ряду Sort меню колонки и у заголовка закреплённой колонки. */
.sl-row>.sl-freeze{flex:0 0 36px;display:flex;align-items:center;justify-content:center;padding:5px 0}
.sl-freeze>span,.sl-freeze svg{display:block;width:15px;height:15px}
.sl-table th.sl-frz-col [data-cw-label]::before{content:'';display:inline-block;width:11px;height:11px;margin-right:3px;vertical-align:-1px;background:var(--accent);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3h6l-1 6 3 3H7l3-3z'/%3E%3Cpath d='M12 12v9'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3h6l-1 6 3 3H7l3-3z'/%3E%3Cpath d='M12 12v9'/%3E%3C/svg%3E") center/contain no-repeat}
/* Пустая ячейка — серый «–» на месте значения (владелец, 05.11.2026, вариант 1). */
.sl-dash{color:var(--text-3)}
/* Шапка списка одной высоты на всех экранах и вкладках (Optimization прыгала,
   04.11.2026): ряд кнопок, заголовки таблицы; строки — по середине. */
.card.sales-list-card>.sales-toolbar{min-height:37px;margin-bottom:8px}
.sales-list-card table.sl-table>thead>tr{height:47px}
table.sl-table>tbody>tr>td{vertical-align:middle}
/* Выбранная строка таблицы-списка (группа прайса справа открыта) — видна (27.11.2026). */
table.sl-table>tbody>tr.sel>td{background:var(--accent-soft)}
/* Строки и текст списков — как в Sales на всех экранах (владелец, 05.11.2026: «размеры
   строчек и текста разные»): строка не ниже 52 px, текст ячейки 13.5 px. Подстроки
   производства (pb-sub) и распорка дорисовки — свои. */
.sales-list-card table.sl-table>tbody>tr:not(.list-rest):not(.pb-sub){height:52px}
.sales-list-card table.sl-table>tbody>tr:not(.pb-sub)>td{font-size:13.5px}
/* Галочка «выбрать все» в шапке — в одну линию с галочками строк (05.11.2026). */
.sales-list-card .oq-table-wrap :is(th,td).sl-check{text-align:left}
/* Optimization и Shipping: навигация — своя карточка над таблицей, только вкладки
   (владелец, 05.11.2026); кнопки, поиск и Open a trip — в карточке таблицы. Переносит salesListSplitNav. */
.card.sl-nav-card{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:0 0 16px;padding:0 20px 0 0;min-height:54px}
.shipping-workspace>.card.sl-nav-card{margin:0}
#app .card.sl-nav-card>.sl-filter-row{flex:1 1 auto;min-width:0;padding:13px 0 13px 20px}
.sales-list-card table.sl-table>tbody>tr>td :is(button.sm,input:not([type=checkbox]),select){height:25px;min-height:0;padding-top:0;padding-bottom:0;box-sizing:border-box}
/* Вторая строка в ячейке (код клиента в Finance, юрлицо в Customers) — серым в той же
   строке; не влезла — многоточие, полностью — подсказкой. */
.sales-list-card table.sl-table>tbody>tr>td>div.mut{display:inline;margin-left:6px}
/* Ряд кнопок без кнопок (ничего не отмечено, Open — правой кнопкой) места не занимает
   (владелец, 05.11.2026). */
.card.sales-list-card>.sales-toolbar:not(:has(>:not(.sales-toolbar-sp,[hidden]))){display:none}
/* Колонка Invoice (07.11.2026): таблетка плотнее — колонка влезает в экран без прокрутки. */
.sl-table .sl-inv-pill{font-size:10.5px;padding:2px 6px}
/* Быстрый фильтр в заголовке (07.11.2026): ▾ слева, остальное — название и поле. */
th .sl-th{display:flex;width:100%;min-width:0}
th .sl-th .sl-fbtn{order:-1;flex:none}
/* Название сразу после ▾ у всех колонок (владелец 08.11.2026: «текст равняется по правому краю»). */
th .sl-th [data-cw-label]{text-align:left;flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:text}
/* Числовая колонка (владелец 08.11.2026): «▾ название» вместе и справа, над цифрами, — как числа в Excel;
   не «▾ слева, название справа» и не «название слева, цифры справа». */
th.n .sl-th{justify-content:flex-end}
th.n .sl-th [data-cw-label]{flex:0 1 auto}
th.n .sl-th [data-cw-label]:has(.sl-qf){flex:1 1 auto}th.n .sl-qf{text-align:right}
.sl-qf{width:100%;min-width:0;height:22px !important;padding:0 3px !important;border:0 !important;border-radius:3px 3px 0 0 !important;background:var(--surface) !important;box-shadow:inset 0 -2px 0 var(--accent) !important;font:inherit;font-weight:600;color:var(--text);outline:0}
.sl-qf-on{color:var(--accent);font-weight:700}
/* Первая колонка (07.11.2026, владелец: «шестерня не отцентрована»): ⚙ и
   галочки строк — по центру колонки, ⚙ на одной высоте с названиями. */
.sl-table thead th{vertical-align:middle}
/* Только где в шапке одна ⚙ (без галочки «все», как в Sales — там галочки строк под ней). */
.sl-table:not(:has(thead th.sl-check input)) th.sl-check .sl-header-tools{justify-content:center}
.sl-table:not(:has(thead th.sl-check input)) th.sl-check:has(.sl-header-tools){padding-left:4px;padding-right:4px}
.sl-table:not(:has(thead th.sl-check input)) td.sl-check{text-align:center;padding-left:4px;padding-right:4px}
.sl-settings{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0}
/* Окно Production из Sales (views/sales-production, владелец 08.11.2026): клетки — как In production. */
.sales-prod-modal{width:min(1000px,96vw)}.sales-prod-table td.pb-st,.sales-prod-table th.pb-st{text-align:center}
.sales-prod-line td{background:var(--surface-2);font-weight:600}.sales-prod-glass td:first-child{padding-left:26px;border-left:3px solid var(--accent-line)}
.sales-prod-empty{padding:18px 4px}.sales-prod-own{font-weight:700;color:var(--accent)}
/* Notes заказа (17.11.2026): узкая, две строки, полный текст — при наведении. */
.sl-notes{cursor:pointer}
.sl-note-text{display:-webkit-box;max-width:100%;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;word-break:break-word;font-size:12px;line-height:1.3}
.sl-notes:hover .sl-note-text{color:var(--accent)}
.sl-note-dialog textarea{width:100%;min-height:150px;resize:vertical}
