/* Раздел «Компании» — Э2: «Товары и цены», окна позиции и раздела, «Не продаём», «Что изменилось».
   Образец — «Склад → Остатки» Закупщика. Префикс .og-*; только токены цвета. */

/* ── длинная и короткая подпись, широкое и низкое окно ── */
.og .og-s, .og .og-n { display: none; }
@media (max-width: 1279px) {
  .og .og-l, .og .og-w { display: none; }
  .og .og-s { display: inline; }
  .og .og-n { display: inline-flex; }
  .og td.og-w, .og th.og-w { display: none; }
  .og .og-sub.og-s { display: block; }
}

.og { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.og.is-drop, .og-host.is-drop .og { outline: 2px dashed var(--acc-soft-brd); outline-offset: 6px; border-radius: 14px; }
.og-mut { color: var(--mut2); }
.og-gap { flex: 1 1 auto; }
.og-tone { color: var(--t, var(--mut)); font-weight: 560; }
.og-link { padding: 1px 4px; margin: -1px -2px; }
.link.is-bad { color: var(--zav); }

/* ── строка источников: одна строка, не плитки (§3.3.2) ── */
.og-src { display: flex; align-items: center; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; min-height: 30px;
  font-size: 12.5px; line-height: 18px; color: var(--mut); }
.og-src-l, .og-src-r { display: flex; align-items: center; gap: 4px 6px; flex-wrap: wrap; min-width: 0; }
.og-src-r { justify-content: flex-end; }
.og-hold-ctl { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; padding-left: 10px; border-left: 1px solid var(--line-2); }
.og-dd { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 8px 0 10px; border-radius: 9px; border: 1px solid var(--line-2);
  background: var(--l1); color: var(--ink); font: inherit; font-size: 12.5px; font-weight: 560; cursor: pointer; white-space: nowrap; }
.og-dd:hover, .og-dd[aria-expanded="true"] { border-color: var(--acc-soft-brd); background: var(--l3); }
.og-dd > svg { color: var(--mut2); flex: 0 0 auto; }
.og-dd[aria-disabled="true"], .og-dd:disabled { cursor: default; opacity: .7; }
.og-dd.is-on { background: var(--acc-soft); border-color: var(--acc-soft-brd); color: var(--acc); }
.og-dd.is-on > svg { color: var(--acc); }
.og-dd-w { width: 100%; justify-content: space-between; height: 36px; font-weight: 500; }
.og-dd-w > span { overflow: hidden; text-overflow: ellipsis; }
.og-plate { display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-radius: 11px; background: var(--ts); border: 1px solid var(--tb);
  color: var(--ink); font-size: 12.5px; line-height: 18px; }
.og-plate > svg { color: var(--t); flex: 0 0 auto; }
.og-plate > span { flex: 1 1 auto; min-width: 0; }

/* ── разделы слева + таблица (как «Категории» и «Все материалы» Склада) ── */
.og-body { display: grid; grid-template-columns: 196px minmax(0, 1fr); gap: 14px; align-items: start; }
.og-cats { display: flex; flex-direction: column; gap: 1px; position: sticky; top: 12px; }
.og-cats-h { padding: 6px 10px 8px; font-size: 13px; font-weight: 600; color: var(--mut); }
.og-cat-r { position: relative; display: flex; align-items: center; }
.og-cat { flex: 1 1 auto; display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 32px; padding: 6px 10px; line-height: 18px; border: 1px solid transparent; border-radius: 10px;
  background: none; color: var(--ink); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.og-cat > span { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.og-cat > em { font-style: normal; font-size: 12px; color: var(--mut2); font-variant-numeric: tabular-nums; }
.og-cat:hover { background: var(--l3); }
.og-cat[aria-pressed="true"] { background: var(--acc-soft); border-color: var(--acc-soft-brd); color: var(--acc); font-weight: 600; }
.og-cat[aria-pressed="true"] > em { color: var(--acc); }
.og-cat-ed { position: absolute; right: 30px; opacity: 0; }
.og-cat-r:hover .og-cat-ed, .og-cat-ed:focus-visible { opacity: 1; }
.og-cats-sep { height: 1px; margin: 6px 10px; background: var(--line); }
.og-cat-add { align-self: flex-start; margin: 4px 3px 0; }
@media (max-width: 1279px) { .og-body { grid-template-columns: minmax(0, 1fr); } .og .og-cats { display: none; } }

.og-main { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.og-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.og-bar-t { font-size: 13px; color: var(--mut); }
.og-chips { flex-wrap: wrap; }
.og-bar { gap: 6px; }
.og-chips { gap: 5px; }
.og-chips .chip, .og-sub-chips .chip { height: 30px; padding: 0 9px; gap: 5px; font-size: 12.5px; }
.chip em.is-bad, .chip[aria-pressed="true"] em.is-bad { color: var(--zav); }
.og-sub-chips { padding-left: 2px; }
.og-sub-chips .chip { height: 26px; font-size: 12px; }
.og-facets { display: inline-flex; gap: 5px; flex-wrap: wrap; }
.og-facet { height: 30px; padding: 0 6px 0 9px; gap: 3px; font-weight: 500; max-width: 200px; }
.og-facet > :first-child { overflow: hidden; text-overflow: ellipsis; }
.og-cats-dd { height: 30px; font-size: 12.5px; }
.og-more { width: 30px; height: 30px; border-radius: 9px; }
.og-note { display: flex; align-items: center; gap: 8px; padding: 2px 2px; font-size: 12.5px; color: var(--mut); }
.og-note > svg { color: var(--mut2); flex: 0 0 auto; }
.og-none { padding: 18px 16px; border: 1px dashed var(--line-2); border-radius: 14px; font-size: 13px; color: var(--mut); }

/* ── таблица: рамка вокруг списка, строки-группы по разделу ── */
.og-tw { border-radius: 16px; background: var(--l1); border: 1px solid var(--line); overflow: hidden; }
.og-tbl { table-layout: auto; }
.og-tbl th { height: 34px; padding: 0 12px; font-size: 11.5px; font-weight: 600; letter-spacing: .075em; text-transform: uppercase; color: var(--mut2);
  border-bottom: 1px solid var(--line); }
.og-th-i { display: inline-flex; align-items: center; gap: 4px; cursor: help; }
.og-tbl td { padding: 7px 8px; vertical-align: top; font-size: 13px; line-height: 17px; }
.og-tbl th { padding: 0 8px; }   /* 10 → 8: при 1440 таблица не помещалась в рамку на 12 px (сверка этапа 2) */
.og-th-more { width: 26px; height: 26px; border-radius: 8px; }
.og-g td { padding: 0 8px 0 6px; background: var(--l2); border-bottom: 1px solid var(--line); }
.og-tbl tbody tr.og-g:hover td { background: var(--l2); }
.og-g-in { display: flex; align-items: center; gap: 8px; height: 30px; }
.og-g-b { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 6px; border: 0; border-radius: 7px; background: none;
  font: inherit; font-size: 12.5px; color: var(--ink); cursor: pointer; }
.og-g-b > svg { color: var(--mut2); }
.og-g-b b { font-weight: 600; }
.og-g-b span { color: var(--mut2); }
.og-g-b:hover { background: var(--l3); }
.og-g-add { margin-left: auto; font-size: 12px; opacity: .85; }
.og-g-add:hover { opacity: 1; }
.og-g.is-off .og-g-b b { color: var(--mut); }
.og-r.is-off td { color: var(--mut); }
.og-r.is-off .og-c-name b { color: var(--mut); font-weight: 560; }

.og-c-name { min-width: 200px; }
.og-c-name b { font-weight: 600; font-size: 13.5px; color: var(--ink); }
.og-sub { display: block; margin-top: 2px; font-style: normal; font-size: 12px; line-height: 16px; color: var(--mut2); }
.og-est, .og-hit { display: inline-flex; align-items: center; height: 18px; margin-left: 6px; padding: 0 6px; border-radius: 999px; font-size: 11px; font-weight: 560;
  vertical-align: 1px; white-space: nowrap; }
.og-est { background: var(--ryn-soft); color: var(--ryn); border: 1px solid var(--ryn-brd); }
.og-hit { background: var(--acc-soft); color: var(--acc); }
.og-grade { display: inline-flex; align-items: center; height: 21px; padding: 0 7px; border-radius: 7px; background: var(--l2); border: 1px solid var(--line);
  font-size: 12px; font-weight: 560; color: var(--mut); white-space: nowrap; }
.og-c-price { white-space: nowrap; }
.og-c-price > *, .og-c-stock > * { display: block; }
.og-pb { display: block; padding: 0 3px; margin: 0 -3px; border: 0; border-radius: 5px; background: none; font: inherit; color: inherit; text-align: left;
  cursor: pointer; white-space: nowrap; }
.og-pb:hover { background: var(--acc-soft); color: var(--acc); }
.og-p1 { font-weight: 640; font-size: 13.5px; color: var(--ink); }
.og-p2 { font-size: 12px; line-height: 16px; color: var(--mut); }
.og-was { font-size: 12px; font-weight: 400; color: var(--mut2); }
.og-dev { font-size: 12px; line-height: 16px; color: var(--mut2); white-space: nowrap; }
.og-dev[data-tone] { color: var(--t); font-weight: 560; }
.og-free { font-weight: 600; }
.og-c-stock { min-width: 160px; }
.og-c-stock .og-tone { font-size: 12.5px; }
.og-back { display: inline-flex !important; margin: 2px -7px 0; font-size: 12px; }
.og-c-mass { white-space: nowrap; color: var(--mut); }
.og-tbl th.og-c-more, .og-tbl td.og-c-more { width: 36px; padding-left: 0; padding-right: 8px; text-align: right; }
.og-r .og-c-more .ib { opacity: .55; }
.og-r:hover .og-c-more .ib { opacity: 1; }

/* «Не продаём» */
.og-ns { table-layout: fixed; }
.og-ns th { height: auto; padding-top: 9px; padding-bottom: 9px; white-space: normal; line-height: 15px; }
.og-ns td { vertical-align: top; overflow-wrap: anywhere; }
.og-ns-ans { color: var(--mut); }
.og-ns col.c1 { width: 17%; } .og-ns col.c2 { width: 15%; } .og-ns col.c3 { width: 28%; } .og-ns col.c4 { width: 13%; } .og-ns col.c5 { width: 15%; } .og-ns col.c6 { width: 12%; }

/* ── пусто: вход загрузки прямо на вкладке (шаг 1 мастера) ── */
.og-empty { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--l1); max-width: 980px; }
.og-empty-h { display: flex; align-items: center; justify-content: space-between; }
.og-empty-q { font-size: 22px; line-height: 28px; font-weight: 640; letter-spacing: -.012em; color: var(--ink); }
.og-empty-lead { font-size: 13.5px; line-height: 20px; color: var(--mut); max-width: 80ch; }
.og-empty-f { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; font-size: 13px; color: var(--mut); }

/* ══ Окна ══ */
.og-item .sh-title { font-size: inherit; }
.og-ih-meta { font-size: 12.5px; line-height: 17px; font-weight: 500; color: var(--mut2); letter-spacing: 0; }
.og-ih-name { font-size: 19px; line-height: 25px; font-weight: 650; letter-spacing: -.014em; color: var(--ink); }
.og-item .sb { gap: 14px; }
.og-sec { display: flex; flex-direction: column; gap: 5px; padding: 2px 0 12px; border-bottom: 1px solid var(--line); }
.og-sec:last-child { border-bottom: 0; padding-bottom: 0; }
.og-sec.is-hl { margin: -6px -10px 0; padding: 6px 10px 12px; border-radius: 12px; background: var(--acc-row); }
.og-k { margin: 0 0 2px; font-size: 11.5px; line-height: 16px; font-weight: 600; letter-spacing: .075em; text-transform: uppercase; color: var(--mut2); }
.og-line { display: flex; align-items: baseline; gap: 4px 8px; flex-wrap: wrap; font-size: 13px; line-height: 19px; color: var(--ink); }
.og-line.og-mut { color: var(--mut); }
.og-bits { gap: 2px 6px; }
.og-dot { color: var(--mut2); }
.og-tiers { display: flex; align-items: baseline; gap: 6px 22px; flex-wrap: wrap; padding: 2px 0 4px; }
.og-tier { display: inline-flex; align-items: baseline; gap: 7px; font-size: 13px; }
.og-tier b { font-size: 15px; font-weight: 650; }
.og-ed { display: inline-flex; align-items: baseline; gap: 5px; padding: 1px 5px; margin: -1px -5px; border: 0; border-radius: 7px; background: none;
  font: inherit; color: inherit; cursor: pointer; text-align: left; }
.og-ed > svg { color: var(--mut2); opacity: .6; align-self: center; }
.og-ed:hover { background: var(--acc-soft); color: var(--acc); }
.og-ed:hover > svg { color: var(--acc); opacity: 1; }
.og-cost { align-items: center; color: var(--mut); }
.og-cost > svg { color: var(--mut2); }
.og-i { display: inline-flex; color: var(--mut2); cursor: help; vertical-align: -2px; }

/* короткие окна и формы */
.og-win-s.sheet { width: min(560px, 100%); }
.og-win-m.sheet { width: min(720px, 100%); }
.og-form { display: flex; flex-direction: column; gap: 12px; }
.og-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.og-f { display: flex; flex-direction: column; gap: 5px; min-width: 0; font-size: 13px; }
.og-f > .og-mut { font-size: 12px; }
.og-f .og-k { margin: 0; }
.og-ta { resize: vertical; min-height: 64px; line-height: 19px; }
.og-checks { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.og-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.og-tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.og-tag { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 6px 0 10px; border-radius: 999px; background: var(--l2);
  border: 1px solid var(--line); font-size: 12.5px; color: var(--ink); }
.og-tag-x { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border: 0; border-radius: 999px; background: none;
  color: var(--mut2); cursor: pointer; }
.og-tag-x:hover { background: var(--zav-soft); color: var(--zav); }
.og-req { display: flex; gap: 8px 22px; flex-wrap: wrap; }
.og-swap .in { width: 100%; }
.og-seg { display: flex; flex-direction: column; gap: 4px; margin: 8px 0 4px; font-size: 12.5px; }
.og-seg label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }

@media (max-height: 640px) {
  .og { gap: 7px; }
  .og-tbl td { padding-top: 5px; padding-bottom: 5px; }
  .og-tbl th { height: 30px; }
  .og-g-in { height: 27px; }
  .og-item .sb { gap: 10px; padding-top: 14px; }
  .og-sec { padding-bottom: 9px; }
}
@media (max-width: 720px) { .og-grid2 { grid-template-columns: 1fr; } }

/* ряд отборов не помещается в строку (сотни позиций — большие числа в фишках): подборы — одной кнопкой «Подбор ▾» (fitBar) */
.og.is-tight .og-facets { display: none; }
.og.is-tight .og-facet.og-n { display: inline-flex; }

/* ══ QA 15.10 ══ */
/* длинное название — две строки, полное — в подсказке и в окне позиции; шапка таблицы видна при прокрутке (QA 47) */
.og-tbl .og-nm { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.og-tw { overflow: clip; }
.og-tbl thead th { position: sticky; top: var(--topbar-h, 56px); z-index: 2; background: var(--l1); }
/* окно версии: ступени — каждая своей строкой, «от 10 т» не отрывается от числа (QA 46) */
.og-ver-t { display: block; white-space: nowrap; }
.og-ver-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 10px; font-size: 13px; color: var(--ink); }
.og-ver-more { display: block; width: 100%; padding: 8px 12px; border: 0; border-top: 1px solid var(--line); background: var(--l2); font: inherit; font-size: 12.5px; color: var(--acc); text-align: left; cursor: pointer; }
.og-ver-pos { max-width: 320px; }
/* «+ Позиция»: ошибка поля цены (QA 48) */
.og-f .in.is-bad { border-color: var(--zav); }
.og-f-err { font-size: 12px; color: var(--zav); }
.og-f-err[hidden] { display: none; }
.og-ns-off { display: flex; align-items: flex-start; gap: 8px; padding: 9px 12px; border-radius: 10px; background: var(--l2); border: 1px solid var(--line); font-size: 13px; line-height: 1.45; color: var(--ink); }
.og-ns-off > svg { flex: 0 0 auto; margin-top: 2px; color: var(--mut2); }

/* ── r4 (H2), вариант A «Глиф и кромка»: смысловой тон — глифом, слова чернилами; подложки нейтральные ── */
.og-tone[data-tone], .og-dev[data-tone] { color: var(--sig-ink); }
.og-tone[data-tone="ryn"]::before, .og-dev[data-tone="ryn"]::before { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 7px 0 2px; border-radius: 1.5px; transform: rotate(45deg); vertical-align: 1px; background: var(--sig-wait); }
.og-tone[data-tone="zav"]::before, .og-dev[data-tone="zav"]::before { content: ''; display: inline-block; width: 7px; height: 7px; margin: 0 7px 0 1px; border-radius: 50%; vertical-align: 1px; background: var(--sig-late); box-shadow: 0 0 0 3px var(--sig-late-halo); }
.og-tone[data-tone="vyg"]::before, .og-dev[data-tone="vyg"]::before { content: ''; display: inline-block; width: 7px; height: 7px; margin: 0 7px 0 1px; border-radius: 50%; box-sizing: border-box; vertical-align: 1px; border: 1.5px solid var(--sig-ok); }
.og-plate[data-tone] { background: var(--l1); border-color: var(--line-2); }
.og-est { background: var(--l2); color: var(--mut); border-color: var(--line-2); }
.chip em.is-bad, .chip[aria-pressed="true"] em.is-bad { color: var(--sig-ink); }
/* K3-11: глиф ● — перед словом (<i data-tone="zav"> в разметке чипа, как «● Горит 2»), число — чернилами */
/* лесенка цен — 2 строки: «ещё N» ступеней серым, весь список — в подсказке */
.og-more-t { color: var(--mut2); font-weight: 400; }
.og-c-price .og-was { font-size: 12px; font-weight: 400; color: var(--mut2); }

/* ══ r7 (Г, BRIEF-r7 §2.1): разделы строками — ⋮⋮ порядок, имя на месте, «⋯», «+ Раздел»; выбор позиций; наличие на месте ══ */
@media (min-width: 1280px) { .og-body { grid-template-columns: 204px minmax(0, 1fr); gap: 12px; } }
/* флажок выбора занял 28 px — наличие уже на 12 px, чтобы таблица «Обь-Инокс» помещалась в 1440 */
.og-c-stock { min-width: 148px; }
.og-secs { display: flex; flex-direction: column; gap: 1px; }
.og-srow { position: relative; display: flex; align-items: center; flex-wrap: wrap; border-radius: 10px; }
.og-srow > .og-cat { padding-right: 32px; }
.og-cat > .og-sec-nm { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.og-sec-hid { display: inline-flex; flex: 0 0 auto; font-style: normal; color: var(--mut2); }
.og-srow.is-hid .og-sec-nm { color: var(--mut); }
.og-srow.is-hid .og-cat[aria-pressed="true"] .og-sec-nm { color: var(--acc); }
/* ручка ⋮⋮ — в поле страницы слева от строки: бледная всегда, ярче под указателем */
.og-sec-grip { position: absolute; left: -17px; top: 8px; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 18px;
  border-radius: 5px; color: var(--mut2); opacity: .38; cursor: grab; }
.og-srow:hover > .og-sec-grip, .og-srow:focus-within > .og-sec-grip { opacity: 1; }
.og-srow.is-new > .og-sec-grip { opacity: .8; cursor: default; color: var(--acc); }
.og-sec-more { position: absolute; right: 3px; top: 3px; width: 26px; height: 26px; opacity: 0; }
.og-srow:hover > .og-sec-more, .og-srow:focus-within > .og-sec-more, .og-srow.is-on > .og-sec-more, .og-sec-more[aria-expanded="true"] { opacity: 1; }
.og-srow > .og-cat > em { min-width: 14px; text-align: right; }
/* пока видна «⋯» строки — число позиций прячется под ней: кнопка встаёт ровно на его место (r7, наложение «4» × «⋯» на 1440) */
.og-srow:hover > .og-cat > em, .og-srow:focus-within > .og-cat > em, .og-srow.is-on > .og-cat > em, .og-srow:has(> .og-sec-more[aria-expanded="true"]) > .og-cat > em { visibility: hidden; }
/* склад раздела — плашкой второй строкой (только когда складов два и больше) */
.og-sec-wh { display: inline-flex; align-items: center; gap: 4px; max-width: calc(100% - 14px); height: 20px; margin: -3px 0 5px 10px; padding: 0 7px 0 5px;
  border: 1px solid var(--line); border-radius: 6px; background: none; font: inherit; font-size: 11.5px; color: var(--mut); cursor: pointer; }
.og-sec-wh > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.og-sec-wh > svg { flex: 0 0 auto; color: var(--mut2); }
.og-sec-wh:hover { border-color: var(--acc-soft-brd); color: var(--acc); }
.og-sec-wh.is-none { border-style: dashed; }
.og-sec-wh.is-none::before { content: ''; flex: 0 0 auto; width: 6px; height: 6px; margin-right: 2px; border-radius: 1.5px; transform: rotate(45deg); background: var(--sig-wait); }
/* имя на месте */
.og-sec-ed { flex: 1 1 auto; display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 1px 0 3px; }
.og-sec-in { width: 100%; height: 32px; padding: 0 9px; border-radius: 9px; font-size: 13px; }
.og-sec-err { padding-left: 2px; font-size: 11.5px; line-height: 15px; color: var(--sig-ink); }
.og-sec-err::before { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 6px 0 1px; border-radius: 1.5px; transform: rotate(45deg); vertical-align: 1px; background: var(--sig-wait); }
.og-sec-hint { padding-left: 2px; font-size: 11px; line-height: 15px; color: var(--mut2); }
/* «+ Раздел» — во всю ширину, контуром (как «+ Add Stage» у respond.io) */
.og-sec-add { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 32px; margin: 6px 0 0; border: 1px dashed var(--line-2);
  border-radius: 10px; background: none; color: var(--acc); font: inherit; font-size: 12.5px; font-weight: 560; cursor: pointer; }
.og-sec-add:hover, .og-sec-add:focus-visible { background: var(--acc-soft); border-color: var(--acc-soft-brd); }
/* перетаскивание: черта — куда встанет раздел; подложка — куда лягут позиции */
.og-srow.is-drag { opacity: .45; }
.og-srow.is-drop-a::before, .og-srow.is-drop-b::after { content: ''; position: absolute; left: 4px; right: 4px; height: 2px; border-radius: 2px; background: var(--acc); pointer-events: none; }
.og-srow.is-drop-a::before { top: -1px; }
.og-srow.is-drop-b::after { bottom: -1px; }
.og-srow.is-drop-in > .og-cat, .og-tbl tr.og-g.is-drop-in td { background: var(--acc-soft); box-shadow: inset 0 0 0 1px var(--acc-soft-brd); }
.og-tbl tr.og-r.is-drag td { opacity: .5; }
.og-dragimg { position: fixed; top: -200px; left: -200px; max-width: 320px; padding: 7px 12px; border-radius: 10px; background: var(--l1); border: 1px solid var(--acc-soft-brd);
  color: var(--ink); font: 600 12.5px/17px Inter, system-ui, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* «Как ответит Продажник» на вопросы раздела: в колонке (≥ 1280), под таблицей (узкое окно), в окне «Разделы» */
.og-ask { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; padding: 10px 12px 9px; border: 1px solid var(--line); border-radius: 14px; background: var(--l1); }
.og-ask-h { display: flex; align-items: center; gap: 7px; margin-bottom: 3px; font-size: 12px; font-weight: 600; color: var(--mut); }
.og-ask-q { display: block; margin: 0 -6px; padding: 5px 6px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 12.5px; line-height: 17px;
  color: var(--ink); text-align: left; cursor: pointer; }
.og-ask-q:hover, .og-ask-q:focus-visible { background: var(--acc-soft); color: var(--acc); }
.og-ask-main { display: none; }
@media (max-width: 1279px) {
  .og-ask-main { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 4px; }
  .og-ask-main .og-ask-h { margin: 0 6px 0 0; }
  .og-ask-main .og-ask-q { margin: 0; }
}
.og-secs-btn { width: 30px; height: 30px; border-radius: 9px; }

/* окно «Разделы» (узкое окно): те же строки, ручка — в строке */
.og-secs-win .og-secs { gap: 2px; }
.og-secs-win .og-srow { padding-left: 22px; }
.og-secs-win .og-sec-grip { left: 2px; opacity: .55; }
.og-secs-win .og-cat { min-height: 36px; font-size: 13.5px; }
.og-secs-win .og-ask { margin-top: 16px; }

/* выбор позиций: флажок первой колонкой; выбранные — бледной подложкой; ряд действий на месте ряда отборов */
.og-tbl th.og-c-sel, .og-tbl td.og-c-sel { width: 30px; padding-left: 12px; padding-right: 0; cursor: pointer; }
.og-tbl td.og-c-sel { padding-top: 8px; }
.og-tbl th.og-c-sel { vertical-align: middle; }
.og-c-sel .cb span { width: 16px; height: 16px; }
.og-r .og-c-sel .cb { opacity: .5; }
.og-r:hover .og-c-sel .cb, .og-r.is-sel .og-c-sel .cb, .og-c-sel .cb:focus-within { opacity: 1; }
.og-tbl tbody tr.og-r.is-sel td { background: var(--acc-row); }
.og-bulk { min-height: 30px; }
.og-bulk-n { margin-right: 4px; font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.og-bulk .og-dd { gap: 6px; height: 30px; font-weight: 520; }
.og-bulk .og-dd > svg:first-child { color: var(--mut); }

/* шапка группы: «скрыт от Продажника», «⋯» раздела */
.og-g-hid { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--mut2); }
.og-g.is-hid .og-g-b b { color: var(--mut); }
.og-g-more { width: 26px; height: 26px; opacity: .6; }
.og-g-more.is-solo { margin-left: auto; }
.og-g:hover .og-g-more, .og-g-more:focus-visible, .og-g-more[aria-expanded="true"] { opacity: 1; }

/* наличие на месте */
.og-sb { display: block; margin: 0 -3px; padding: 0 3px; border: 0; border-radius: 5px; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.og-sb:hover, .og-sb:focus-visible { background: var(--acc-soft); }

/* окно «Удалить раздел»: куда перенести — список выбора */
.og-pick { display: flex; flex-direction: column; gap: 2px; max-height: min(340px, 52vh); overflow: auto; margin: 0 -6px; }
.og-pick-r { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.og-pick-r:hover { background: var(--l3); }
.og-pick-r:has(input:checked) { background: var(--acc-soft); }
.og-pick-r input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.og-pick-d { flex: 0 0 auto; box-sizing: border-box; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; border: 1.5px solid var(--line-3); background: var(--l1); }
.og-pick-r input:checked + .og-pick-d { border: 5px solid var(--acc); }
.og-pick-r input:focus-visible + .og-pick-d { outline: 2px solid var(--focus); outline-offset: 2px; }
.og-pick-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.og-pick-t b { font-size: 13px; font-weight: 560; color: var(--ink); }
.og-pick-t em { font-style: normal; font-size: 12px; line-height: 16px; color: var(--mut2); }
.og-pick-r.is-line .og-pick-t { flex: 1 1 auto; flex-direction: row; align-items: baseline; justify-content: space-between; gap: 10px; }
.og-pick-r.is-line { padding-top: 7px; padding-bottom: 7px; }
/* колонка: разделы и под ними «Как ответит Продажник» — липнут вместе; на узком окне колонки нет */
.og-side { position: sticky; top: 12px; display: flex; flex-direction: column; min-width: 0; max-height: calc(100vh - var(--topbar-h, 56px) - 24px);
  overflow-y: auto; scrollbar-width: none; margin-left: -20px; padding: 0 2px 4px 20px; }   /* поле слева — под ручки ⋮⋮ (иначе прокрутка их режет) */
.og-side > .og-cats { position: static; }
@media (max-width: 1279px) { .og .og-side { display: none; } }
/* склад: строка над списком разделов, у строки — исключение отдельной строкой под именем */
.og-srow > .og-cat { flex: 1 0 100%; }
.og-secs-wh { display: flex; align-items: flex-start; gap: 6px; margin: -4px 0 6px; padding: 0 10px; font-size: 11.5px; line-height: 15px; color: var(--mut2); }
.og-secs-wh > svg { flex: 0 0 auto; margin-top: 1px; }
/* плашка склада в строке раздела — перед числом; «⋯» ложится поверх числа только под указателем */
.og-srow > .og-cat { padding-right: 10px; }
.og-srow:hover > .og-cat > em, .og-srow.is-on > .og-cat > em, .og-srow:focus-within > .og-cat > em { visibility: hidden; }
.og-srow > .og-cat > .og-sec-wh { flex: 0 0 auto; max-width: 84px; height: 20px; margin: 0; padding: 0 6px 0 5px; gap: 3px; font-weight: 400; }
.og-secs-wh { margin: 2px 0 4px; }
/* плашка склада — второй строкой под именем: имя не рвётся посреди слова */
.og-srow > .og-cat > .og-sec-nm { overflow-wrap: normal; }
.og-cat.has-wh { flex-wrap: wrap; row-gap: 3px; }
.og-cat.has-wh > .og-sec-nm { flex: 1 1 calc(100% - 44px); }
.og-cat.has-wh > em { order: 2; }
.og-cat.has-wh > .og-sec-wh { order: 3; max-width: 100%; height: 19px; }
.og-cats-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.og-cats-whm { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 500; color: var(--mut2); cursor: help; white-space: nowrap; }
.og-cat.has-wh { row-gap: 1px; }
