/* «Товари» (ПК) — 1:1 зі списку «Товари» БАЗИ (public/style.css, 30.10.2026, Павло: «максимально варіант Б»).
   Каркас .e0-b/.main-area/.list-card — уже перенесений (etap0.css, filterable-table.css); тут — те, що є лише в
   «Товари» БАЗИ: шапка з пошуком/стрілкою/пірамідками, «Вид», тумблери, вибір рядків, превʼю, підсвітка резерву
   й проданого, футер, «Перегляд | Продаж». Усе — під .pl, щоб не зачепити інші екрани ЦРМ.
   Числа z-index — зі шкали в etap0.css («ШКАЛА z-index ЦРМ»). */

/* ---- Рядки: 48 px, текст одним рядком з трикрапкою (style.css 176–193) ---- */
.pl table { width:100%; border-collapse:collapse; }
.pl th, .pl td { text-align:left; padding:6px 10px; border-bottom:1px solid #eaecf0; font-size:13px; font-variant-numeric:tabular-nums; }
.pl th { background:#f9fafb; color:#667085; font-weight:500; font-size:13px; border-bottom-color:#e5e7eb; }
.pl tbody td { height:48px; box-sizing:border-box; padding-top:4px; padding-bottom:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pl tbody tr:hover { background:#f4f5f7; cursor:pointer; }
.pl td.empty { text-align:center; padding:30px 12px; color:#8a93a2; font-size:13.5px; }
.pl th.col-right, .pl td.col-right { text-align:right; }
.pl tr.vrow-loading td, .pl tr.vscroll-spacer td { border-bottom:none; }
.pl tr.vscroll-spacer:hover, .pl tr.vrow-loading:hover { background:none; cursor:default; }

/* ---- Тулбар: єдиний зріст 34 px (style.css 442–446) ---- */
.pl .toolbar { display:flex; gap:8px; margin-bottom:12px; flex-wrap:wrap; align-items:center; }
.pl .toolbar > button:not(.small), .pl .toolbar input { height:34px; box-sizing:border-box; padding-top:0; padding-bottom:0; border-radius:6px; }
.pl .toolbar input[type="text"], .pl .toolbar input:not([type]) { padding:0 9px; border:1px solid #d7d9de; font:inherit; font-size:13px; background:#fff; }

/* ---- Кнопки (style.css 388–410) ---- */
.pl button.secondary { background:transparent; color:#1f2430; border:none; padding:6px 12px; border-radius:6px; cursor:pointer; font-size:14px; font-weight:500; line-height:20px; font-family:inherit; }
.pl button.secondary:hover { background:#f2f4f7; }
.pl button.secondary.small { font-size:12.5px; padding:4px 10px; }
.pl button.secondary.tone-amber { background:#fde047; color:#713f12; font-weight:600; }
.pl button.secondary.tone-amber:hover { background:#facc15; }
.pl button.warn { background:#fde047; color:#713f12; border:none; padding:6px 12px; border-radius:6px; cursor:pointer; font-size:14px; font-weight:600; line-height:20px; font-family:inherit; }
.pl button.warn:hover { background:#facc15; }
.pl button.reset-filters { display:inline-flex; align-items:center; height:34px; padding:0 13px; }

/* ---- Шапка стовпця: підпис → поле пошуку, стрілка фільтра, пірамідки (style.css 250–314) ---- */
.pl th.col-head { position:relative; padding:4px 8px; vertical-align:middle; height:48px; }
.pl th.col-head .col-head-main { justify-content:center; }
.pl .col-head-inner { display:flex; align-items:center; gap:4px; padding-right:20px; }
.pl th.col-head.searching .col-head-inner, .pl th.col-head.sorted .col-head-inner { padding-right:46px; }
.pl .col-head-main { flex:1; min-width:0; display:flex; flex-direction:column; gap:1px; }
.pl .col-head-label { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pl .col-head-label:not([data-nosearch]) { cursor:text; }
.pl .col-head-label:not([data-nosearch]):hover { color:#111; }
.pl th.col-head.searching .col-head-label { font-size:11px; font-weight:500; color:#8b929c; }
.pl th.col-head.searching { background:#fff; box-shadow:inset 0 -2px 0 #2f8fff; }
.pl th.col-head.searching:not(:focus-within), .pl th.col-head.filtered:not(.searching) { background:#fdf6dd; box-shadow:inset 0 -2px 0 #eab308; }
.pl .col-head-search { width:100%; box-sizing:border-box; background:transparent; padding:2px 0; border:none; border-radius:0; font:inherit; font-weight:400; color:#111; outline:none; caret-color:#1f2430; }
.pl .col-head-arrow { position:absolute; right:8px; top:50%; transform:translateY(-50%); border:none; background:transparent; cursor:pointer; color:#b6bcc7; font-size:10px; padding:3px; border-radius:3px; line-height:1; }
.pl .col-head-arrow.is-static { cursor:default; }
.pl .col-head-arrow:hover { background:#e6e9ee; color:#333; }
.pl th.col-head.filtered .col-head-arrow, .pl th.col-head.sorted .col-head-arrow { color:#2f8fff; }
/* Пірамідки — position:fixed від самої <th> (координати ставить JS), бо таблиця в скрол-контейнері. */
.col-sort-float { position:fixed; display:flex; gap:4px; }
.col-sort-float button { border:1px solid #e3e6ea; background:#fff; border-radius:5px; padding:2px 4px; cursor:pointer; line-height:0; color:#98a0ab; }
.col-sort-float button:hover { background:#e8ebef; color:#5b6472; }
.col-sort-float button.active { background:#e8f0ff; border-color:#2f8fff; color:#2f8fff; }

/* ---- Таблиця — біла картка (style.css 584–604), шапка #f3f4f7 і липка; колонки — задані ширини ---- */
.pl-card { background:#fff; border-radius:12px 12px 0 0; box-shadow:0 1px 2px rgba(16,24,40,.06); }
/* Підсумки — низ тієї самої картки, як футер «Товари» БАЗИ (.stale-dup-footer, style.css 666–690; Павло 30.10: «футер великуватий»). */
.e0-sums.pl-foot { margin-top:0; gap:18px; padding:5px 12px; background:#fafbfc; border-top:1px solid #e5e7eb; border-radius:0 0 12px 12px;
  box-shadow:0 1px 2px rgba(16,24,40,.06); font-size:12.5px; color:#667085; }
.e0-sums.pl-foot b { font-size:12.5px; color:#333; font-weight:600; font-variant-numeric:tabular-nums; }
/* width:100% (не max-content): у фіксованій таблиці ширина = max(100%, сума колонок), тож вузьке вікно дає прокрутку вбік;
   max-content враховував довгий текст рядків і роздував «Назву» понад збережену ширину (замір 26.11: 231 → 384). */
.pl table.pl-table { table-layout:fixed; width:100%; background:#fff; }
.pl table.pl-table th.pl-spacer, .pl table.pl-table td.pl-spacer { padding:0; }
.pl.page-scroll thead th { position:sticky; top:0; z-index:3; background:#f9fafb; }
/* Галочка й № закріплені ліворуч при прокрутці вбік (style.css 610–614) */
.pl th.pl-fix0, .pl td.pl-fix0 { position:sticky; left:0; z-index:2; background:#fff; width:44px; text-align:center; }
.pl th.pl-fix1, .pl td.pl-fix1 { position:sticky; left:44px; z-index:2; background:#fff; box-shadow:inset -1px 0 0 #e2e5ea; }
.pl.page-scroll thead th.pl-fix0, .pl.page-scroll thead th.pl-fix1 { z-index:5; background:#f9fafb; }
.pl table:not(:has(.pl-fix0)) .pl-fix1 { left:0; }
.pl tbody tr:hover td.pl-fix0, .pl tbody tr:hover td.pl-fix1 { background:#f4f5f7; }
.pl tr.product-reserved td.pl-fix0, .pl tr.product-reserved td.pl-fix1 { background:#f7f2fe; }
.pl td.pl-fix0 input { width:20px; height:20px; accent-color:#2f8fff; margin:0; vertical-align:middle; cursor:pointer; }
.pl.page-scroll thead th.pl-fix0 input { width:20px; height:20px; accent-color:#2f8fff; margin:0; }

/* ---- № заморожений ліворуч (style.css 610–614) ---- */
.pl #productsThead th:first-child { position:sticky; left:0; z-index:5; background:#f3f4f7; box-shadow:inset -1px 0 0 #e2e5ea; }
.pl #productsBody td:first-child { position:sticky; left:0; z-index:2; background:#fff; box-shadow:inset -1px 0 0 #e2e5ea; }
.pl #productsBody tr:hover td:first-child { background:#f4f5f7; }
.pl .product-link { color:#2f8fff; text-decoration:none; }
.pl .product-link:hover { text-decoration:underline; }

/* ---- Превʼю 38 px + смуга всіх фото при наведенні (style.css 938–967) ---- */
.pl .thumb { height:38px; max-height:38px; width:auto; min-width:27px; max-width:78px; object-fit:contain; border-radius:4px; cursor:zoom-in; vertical-align:middle; display:block; margin:0 auto; }
.pl .thumb:not(.is-loaded) { width:52px; background:none; border-color:transparent; }
.pl .thumb-empty { width:52px; height:38px; display:flex; align-items:center; justify-content:center; margin:0 auto; }
.pl .thumb-empty svg { width:20px; height:20px; color:#d0d5dd; }
.photo-zoom { position:fixed; z-index:9200; pointer-events:none; display:flex; box-shadow:0 10px 32px rgba(0,0,0,.4); background:#fff; }
.photo-zoom img { display:block; height:230px; width:auto; max-width:600px; object-fit:contain; background:#eef0f3; border-radius:0; }
.photo-zoom img + img { border-left:2px solid #fff; }

/* ---- Проданий / весь у резерві (style.css 969–980) ---- */
.pl tr.product-sold-out td { color:#aaa; }
.pl tr.product-sold-out .thumb, .pl tr.product-sold-out .thumb-empty { opacity:.5; }
.pl tr.product-reserved td { background:#f7f2fe; }
.pl tr.product-reserved:hover td { background:#f1e9fd; }
.pl #productsBody tr.product-reserved td:first-child { background:#f7f2fe; }
.pl #productsBody tr.product-reserved:hover td:first-child { background:#f1e9fd; }
.pl .reserved-tag { font-size:11px; color:#d97706; }

/* ---- Правка клітинки (style.css 1001–1003) ---- */
.pl td.inline-edit-cell:hover { background:#f4f8ff; box-shadow:inset 0 0 0 1px #cfe0fb; }

/* ---- Футер — низ тієї самої білої картки, липкий (style.css 666–690) ---- */
.pl .stale-dup-footer { position:sticky; bottom:-1px; display:flex; justify-content:space-between; align-items:center; background:#fafbfc; border-top:1px solid #e5e7eb;
  padding:3px 12px 5px; margin-top:0; font-size:12.5px; color:#667085; border-radius:0; box-shadow:0 4px 0 0 #fafbfc; }
.pl .stale-dup-footer b { color:#333; font-variant-numeric:tabular-nums; }

/* ---- «Перегляд | Продаж» (style.css 1015–1020) ---- */
.pl .modeToggle { display:inline-flex; border-radius:6px; border:none; background:#f2f4f7; padding:2px; gap:2px; flex-shrink:0; }
.pl .mode-btn { background:none; border:none; padding:4px 12px; height:28px; border-radius:4px; font-size:14px; font-weight:500; cursor:pointer; color:#121212; font-family:inherit; }
.pl .mode-btn:hover { color:#000; }
.pl .mode-btn.active { background:#fff; color:#121212; box-shadow:0 1px 2px rgba(16,24,40,.12); }

/* ---- Тумблери (style.css 1344–1351) ---- */
.pl .switch { position:relative; display:inline-block; width:38px; height:22px; flex:none; vertical-align:-6px; }
.pl .switch input { position:absolute; opacity:0; width:0; height:0; }
.pl .switch .track { position:absolute; inset:0; border-radius:11px; background:#d6dbe3; transition:.15s; cursor:pointer; }
.pl .switch .track::after { content:''; position:absolute; top:2px; left:2px; width:18px; height:18px; border-radius:50%; background:#fff; transition:.15s; box-shadow:0 1px 2px rgba(0,0,0,.2); }
.pl .switch input:checked + .track { background:#2f8fff; }
.pl .switch input:checked + .track::after { left:18px; }
.pl .switch-row { display:flex; align-items:center; gap:10px; font-size:13px; margin-bottom:12px; cursor:pointer; }

/* ---- Кнопка й панель «Вид» (style.css 1401–1429) ---- */
.pl button.view-btn, .pl button.col-visibility-gear { width:34px; height:34px; padding:0; display:inline-flex; align-items:center; justify-content:center; background:transparent; border:none; border-radius:6px; color:#667085; font-size:0; cursor:pointer; }
.pl button.view-btn:hover, .pl button.col-visibility-gear:hover { background:rgba(15,23,42,.06); color:#1f2430; }
.pl button.view-btn svg, .pl button.col-visibility-gear svg { display:block; }
.pl .view-panel button.col-visibility-gear { width:100%; height:auto; padding:7px 10px; font-size:13px; gap:8px; }
.pl .view-menu { position:relative; display:inline-block; }
.pl .view-panel { display:none; position:absolute; right:0; top:calc(100% + 6px); z-index:60; width:290px; background:#fff; border:1px solid #e5e7eb; border-radius:10px; box-shadow:0 8px 26px rgba(16,24,40,.14); padding:10px 14px; }
.pl .view-menu.open .view-panel { display:block; }
.pl .view-panel .switch-row { margin-bottom:10px; }
.pl .view-panel .view-sep { border-top:1px solid #eef0f4; margin:10px -14px; }
.pl .view-panel .view-title { font-size:12px; color:#667085; margin-bottom:8px; }

/* ---- Вибір рядків і панель «Вибрано N» (style.css 1528–1536) ---- */
.pl .row-pick { display:inline-flex; vertical-align:middle; cursor:pointer; padding:6px 6px 6px 8px; margin:-6px 0 -6px -8px; margin-right:6px; }
.pl .row-pick input { width:18px; height:18px; cursor:pointer; margin:0; accent-color:#2f8fff; }
.pl .sel-bar-products { background:#fff8e6; border:1px solid #f2dfa9; border-radius:10px; padding:8px 12px; align-items:center; }
.pl .sel-bar-products b { font-size:13.5px; margin-right:4px; }

/* ---- «Продаж»: степер з'являється під курсором, рядок не росте (style.css 1053–1058, 1760–1771) ---- */
.pl .storage-qty-cell { text-align:center; }
.pl .storage-qty-wrap { position:relative; display:flex; align-items:center; justify-content:center; min-height:24px; }
.pl .storage-qty-plain { font-size:13px; font-variant-numeric:tabular-nums; color:#1f2430; }
.pl .storage-qty-plain .storage-qty-of { color:#98a1af; font-size:11.5px; margin-left:2px; }
.pl .storage-qty-wrap .storage-stepper { position:absolute; inset:50% auto auto 50%; transform:translate(-50%, -50%); display:none; background:#fff; box-shadow:0 1px 6px rgba(16,24,40,.16); border-radius:6px; }
.pl tbody tr:hover .storage-qty-wrap .storage-stepper { display:inline-flex; }
.pl tbody tr:hover .storage-qty-wrap .storage-qty-plain { visibility:hidden; }
.pl .storage-qty-cell .storage-qty-plain.has { font-weight:700; color:#2f8fff; }
.pl .storage-qty-empty { color:#ccc; }
/* Лише ЦРМ: колонка «Вільно» вузька (80), а степер ~92 px — під курсором він виходить за край, а не обрізається. */
.pl tbody td.storage-qty-cell { overflow:visible; }
.pl .storage-stepper .seg-btn { background:#fff; border:none; padding:3px 10px; font-size:13px; font-weight:600; cursor:pointer; color:#555; }
.pl .storage-stepper .seg-btn:disabled { opacity:.35; cursor:default; }
.pl .storage-qty-val { display:inline-flex; align-items:center; justify-content:center; min-width:26px; padding:3px 4px; font-size:13px; font-weight:600; border-left:1px solid #dfe3e8; border-right:1px solid #dfe3e8; }

/* ---- Лише ЦРМ: мітки в клітинках (комплект, б/в, у фіді) — наявні .e0-tag з etap0.css, тут лише висота рядка ---- */
.pl td .e0-tag { vertical-align:middle; }

/* Вид комплекту в «Товарах» (макет 40, Павло 16.11.2026): фіолетова смуга, плашка «вид · 2 з 5» — клік = лише цей вид,
   угорі — «Вид № … ✕». Рядки не групуються (порції з сервера, сортування, фільтри — як були). */
.pl tr.kin > td:first-child { box-shadow:inset 4px 0 0 #8b5cf6; }
.pl .kind-tag { display:inline-block; padding:1px 8px; border-radius:9px; font-size:11.5px; line-height:18px; background:#ede9fe; color:#5b21b6; font-weight:600; cursor:pointer; margin-left:4px; }
.pl .kind-tag:hover { background:#ddd6fe; text-decoration:underline; }
.pl .kind-chip { display:inline-flex; align-items:center; gap:6px; height:34px; box-sizing:border-box; background:#ede9fe; color:#5b21b6; border-radius:17px; padding:0 6px 0 12px; font-weight:600; font-size:13px; }
.pl .kind-chip button { border:none; background:#ddd6fe; color:#5b21b6; border-radius:50%; width:22px; height:22px; cursor:pointer; font-size:13px; line-height:1; padding:0; }

/* ---- Смуга кошика «Продаж» — 1:1 зі style.css БАЗИ 1044–1052, 2139–2141, кнопки 381/396/926–927 (Павло 26.11) ----
   Під #stCartBar: у ЦРМ свої .btn, тут кнопки БАЗИ (secondary — текстом, primary — синя). */
#stCartBar .cart-bar { background:#fff; border:1px solid #e5e7eb; border-radius:8px; padding:10px 12px; margin-bottom:12px; }
#stCartBar .cart-items { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:8px; }
#stCartBar .cart-chip { display:inline-flex; align-items:center; gap:6px; background:#eef5ff; border-radius:16px; padding:4px 10px; font-size:12.5px; }
#stCartBar .cart-amount { width:44px; padding:2px 4px; font-size:12px; }
#stCartBar .cart-remove { background:none; border:none; color:#b91c1c; cursor:pointer; font-size:12px; padding:0 0 0 2px; }
#stCartBar .cart-summary { display:flex; align-items:center; gap:10px; }
#stCartBar .cart-empty { font-size:12.5px; color:#999; }
#stCartBar .cart-target { display:flex; align-items:center; justify-content:space-between; gap:10px; background:#eef5ff; border:1px solid #cfe0fb; border-radius:8px; padding:8px 12px; margin-bottom:8px; font-size:13.5px; font-weight:600; }
#stCartBar button.primary { background:#2f8fff; color:#fff; border:none; padding:6px 12px; border-radius:4px; cursor:pointer; font-size:14px; font-weight:500; line-height:20px; font-family:inherit; }
#stCartBar button.primary:hover { background:#1f7ce0; }
#stCartBar button.secondary { background:transparent; color:#1f2430; border:none; padding:6px 12px; border-radius:6px; cursor:pointer; font-size:14px; font-weight:500; line-height:20px; font-family:inherit; }
#stCartBar button.secondary:hover { background:#f2f4f7; }
#stCartBar button.secondary.small, #stCartBar button.primary.small { padding:5px 10px; font-size:12px; }

/* ---- «Продаж» як у Bazon / БАЗІ (Павло 27.11.2026; замір Bazon: catalog-storage-cell) ----
   Кнопки — при наведенні на САМУ клітинку «Вільно»; окремі 20×20, скруглення 4, без рамки й тіні; «−» неактивна — світло-сіра;
   «0» і «скільки вільно» — 13 / 11 px, звичайні, #121212; обраний рядок — #fef5d5 і під курсором не міняється; одна штука —
   «− 1 +» по центру без числа. Висота рядка — та сама 48 px (замір у stock-walk). «Вільно» відділено лінією, як склади. */
.pl td[data-colkey="price"] { color:#121212; }
.pl td.storage-qty-cell { border-left:1px solid #e5e7eb; }
.pl .storage-qty-wrap { height:38px; min-height:0; }
.pl .storage-qty-plain { font-size:13px; font-weight:400; color:#121212; }
.pl .storage-qty-wrap .storage-stepper { inset:1px auto auto 50%; transform:translateX(-50%); background:transparent; box-shadow:none; border-radius:0; align-items:center; }
.pl .storage-qty-wrap.has.one .storage-stepper { inset:50% auto auto 50%; transform:translate(-50%, -50%); }
.pl .storage-stepper .seg-btn { width:20px; height:20px; padding:0; border-radius:4px; background:#fff; color:rgba(18,18,18,.75); font-size:14px; font-weight:600; line-height:20px; box-shadow:0 0 0 1px rgba(18,18,18,.08); }
.pl .storage-stepper .seg-btn:disabled { background:rgba(18,18,18,.05); color:rgba(18,18,18,.3); box-shadow:none; opacity:1; }
.pl .storage-qty-val { min-width:24px; padding:0; border:none; font-size:13px; font-weight:400; color:#121212; line-height:20px; }
.pl .storage-qty-avail { position:absolute; left:50%; top:21px; transform:translateX(-50%); display:none; font-size:11px; line-height:16px; font-weight:400; color:#121212; font-variant-numeric:tabular-nums; }
.pl tbody tr:hover td.storage-qty-cell:not(:hover) .storage-qty-wrap:not(.has) .storage-stepper { display:none; }
.pl tbody tr:hover td.storage-qty-cell:not(:hover) .storage-qty-wrap:not(.has) .storage-qty-plain { visibility:visible; }
.pl tbody td.storage-qty-cell:hover .storage-stepper, .pl .storage-qty-wrap.has .storage-stepper { display:inline-flex; }
.pl tbody td.storage-qty-cell:hover .storage-qty-avail, .pl .storage-qty-wrap.has .storage-qty-avail { display:block; }
.pl .storage-qty-wrap.has.one .storage-qty-avail, .pl tbody td.storage-qty-cell:hover .storage-qty-wrap.has.one .storage-qty-avail { display:none; }
.pl tbody td.storage-qty-cell:hover .storage-qty-plain, .pl .storage-qty-wrap.has .storage-qty-plain { visibility:hidden; }
.pl tbody tr.sale-picked, .pl tbody tr.sale-picked:hover, .pl tbody tr.sale-picked td.pl-fix1 { background:#fef5d5; }

/* Шапка: уся клітинка — поле пошуку, підсвічується при наведенні (1:1 з БАЗОЮ #productsThead th.col-head.searchable). */
.pl th.col-head.searchable { cursor:text; }
.pl th.col-head.searchable:not(.searching):not(.filtered):hover { background:#eceff3; }

/* Галки вибору — 1:1 з БАЗОЮ (#productsBody .row-pick input) і Bazon: 20×20, сіра рамка; клітинка галки під мишею — рамка синя (клік будь-де в ній — галка);
   обрано — синя з білою галочкою; у шапці «частково» — риска. */
.pl .stProdPick, .pl #stProdPickAll {
  appearance:none; -webkit-appearance:none; width:20px; height:20px; margin:0; border:1.5px solid #c4c9d2; border-radius:4px;
  background:#fff; cursor:pointer; display:inline-grid; place-content:center; vertical-align:middle; transition:border-color .12s, box-shadow .12s; }
.pl td.pl-fix0:hover .stProdPick, .pl th.pl-fix0:hover #stProdPickAll { border-color:#2f8fff; }
.pl td.pl-fix0, .pl th.pl-fix0 { cursor:pointer; }
.pl .stProdPick:hover, .pl #stProdPickAll:hover { box-shadow:0 0 0 3px rgba(47,143,255,.15); }
.pl .stProdPick:checked, .pl #stProdPickAll:checked { background:#2f8fff; border-color:#2f8fff; }
.pl .stProdPick:checked::after, .pl #stProdPickAll:checked::after { content:""; width:5px; height:10px; border:solid #fff; border-width:0 2px 2px 0; transform:translateY(-1px) rotate(45deg); }
.pl #stProdPickAll:indeterminate { border-color:#2f8fff; }
.pl #stProdPickAll:indeterminate::after { content:""; width:10px; height:2px; background:#2f8fff; }
/* «№»: пірамідки сортування висять НАД шапкою — у клітинці праворуч лише 20 px під ▾, а не 46 (поле номера було 2 px). */
.pl th.col-head[data-colkey="id"] .col-head-inner { padding-right:20px; }
/* Поле пошуку в шапці — замір Bazon 27.11.2026: поле 13px/500 #121212, підпис над ним 11px/400 #344054 (як у БАЗІ). */
.pl th.col-head.searching .col-head-search { font-size:13px; font-weight:500; color:#121212; }
.pl th.col-head.searching .col-head-label { font-size:11px; font-weight:400; color:#344054; }
/* «Номер товару» — закріплена колонка (pl-fix1) мала свій сірий фон і тінь-розділювач, які перебивали «біла з синьою смугою
   при пошуку / жовта з жовтою, коли фільтр лишився» (як у БАЗІ, 27.11.2026). */
.pl.page-scroll thead th.pl-fix1.col-head.searching, .pl th.pl-fix1.col-head.searching { background:#fff; box-shadow:inset 0 -2px 0 #2f8fff, inset -1px 0 0 #e2e5ea; }
.pl.page-scroll thead th.pl-fix1.col-head.searching:not(:focus-within), .pl.page-scroll thead th.pl-fix1.col-head.filtered:not(.searching),
.pl th.pl-fix1.col-head.searching:not(:focus-within), .pl th.pl-fix1.col-head.filtered:not(.searching) { background:#fdf6dd; box-shadow:inset 0 -2px 0 #eab308, inset -1px 0 0 #e2e5ea; }
/* «Номер товару» при вводі: підпис над полем на всю ширину, і над ▾ теж (як у Bazon і БАЗІ, 27.11.2026). */
.pl th.col-head[data-colkey="id"].searching .col-head-label { margin-right:-20px; }
/* Мінімум ширини «Номер товару» — у стилях з !important: розтягування колонок ставить збережену ширину повз stColW (27.11.2026). */

/* Колонка «Номер товару» — як у Bazon і БАЗІ (27.11.2026): фон #f9fafb, текст за 20 px від краю. Наведення/обраний/резерв — як були. */
.pl tbody tr:not(.sale-picked):not(.product-reserved):not(:hover) td.pl-fix1, .pl tbody tr:not(.sale-picked):not(.product-reserved):not(:hover) td.pl-fix0 { background:#f9fafb; } /* і клітинка галки — як у Bazon (замір: #f9fafb) */
.pl td.pl-fix1, .pl th.pl-fix1 { padding-left:20px; }
/* Як у Bazon і БАЗІ (27.11.2026): відсортований стовпець — сіра іконка сортування; «Вільно» в «Продажі» (як склад) — фон #f9fafb. */
.pl th.col-head.sorted:not(.filtered) .col-head-arrow { color:#344054; }
.pl tbody tr:not(.sale-picked):not(:hover) td.storage-qty-cell { background:#f9fafb; }
/* Стрілка меню колонки — як у Bazon (замір 27.11.2026): тонка «галочка» 14 px #344054, прозора, без квадратика-фону; видно лише
   при наведенні на клітинку або коли стовпець відсортовано / з фільтром / у пошуку. Уся клітинка при наведенні трохи темнішає (вже було). */
.pl #stProdHead .col-head-arrow { right: 5px; padding: 0 2px; font-size: 14px; color: #344054; background: transparent; display: flex; align-items: center; height: 44px; }
.pl #stProdHead .col-head-arrow:hover { background: transparent; color: #121212; }
.pl #stProdHead th.col-head:not(:hover):not(.sorted):not(.filtered):not(.searching) .col-head-arrow { opacity: 0; }
/* Номер у «Продажі» — #121212 (замір Bazon 27.11.2026); у «Перегляді» лишається синім посиланням. */
.pl td.pl-fix1[data-colkey="id"] { color:#121212; }
/* «Перегляд»: як у Bazon «Редактирование» (замір 27.11.2026): колонка галки 48 px, номер — 8 px від своєї клітинки (56 від краю); у «Продажі» — 20. */
.pl th.pl-fix0, .pl td.pl-fix0 { width:48px; min-width:48px; }
.pl th.pl-fix1, .pl td.pl-fix1 { left:48px; }
.pl table:has(.pl-fix0) th.pl-fix1, .pl table:has(.pl-fix0) td.pl-fix1 { padding-left:8px; }
/* «Вільно» — наш «склад»: відтінена й у «Перегляді», як склади в Bazon в обох режимах (27.11.2026). */
.pl tbody tr:not(.sale-picked):not(.product-reserved):not(:hover) td[data-colkey="free"] { background:#f9fafb; }
/* Ціна й «Вільно» — як у Bazon і БАЗІ (27.11.2026): вага 500 (на око як їхній Roboto Mono 400, шрифт не міняємо), ціна праворуч. */
.pl td[data-colkey="price"] { font-weight:500; text-align:right; color:#121212; }
.pl .storage-qty-plain, .pl td[data-colkey="free"] { font-weight:500; }
/* «Вільно» по центру й у «Перегляді» — як склади в Bazon (замір 27.11.2026: число по центру клітинки). */
.pl td[data-colkey="free"] { text-align:center; }
/* Підпис шапки на всю ширину (27.11.2026): запас під ▾ лише коли стрілку видно; при наведенні ▾ — поверх кінця підпису на тлі клітинки. */
.pl #stProdHead th.col-head:not(.sorted):not(.filtered):not(.searching) .col-head-inner { padding-right: 0; }
.pl #stProdHead th.col-head.searching .col-head-inner, .pl #stProdHead th.col-head.sorted .col-head-inner { padding-right: 20px; }
.pl #stProdHead th.col-head.searching .col-head-label { margin-right: -20px; }
.pl #stProdHead th.col-head:hover:not(.sorted):not(.filtered):not(.searching) .col-head-arrow { background: #eceff3; box-shadow: -6px 0 6px #eceff3; }
/* Жовта — ЛИШЕ коли фільтр справді задано (27.11.2026, Павло: «нічого не ввів, відкрив ▾ — пожовтіло»). Відкрита порожня клітинка без курсора — як звичайна шапка. */
.pl th.col-head.searching:not(:focus-within):not(.filtered):not(.has-value), .pl.page-scroll thead th.pl-fix1.col-head.searching:not(:focus-within):not(.filtered):not(.has-value), .pl th.pl-fix1.col-head.searching:not(:focus-within):not(.filtered):not(.has-value) { background:#f9fafb; box-shadow:none; }
