/* Блок «Чем поможет XPRICER?»: пример темы — окно кабинета в стиле окна херо (hero.html: тёмная полоса #1e293b,
   три точки, рамка #cbd5e1, та же тень) с адресом страницы. Окно прижато к низу подложки и уходит за её край; до
   800 px оно 4 : 3 и стоит в лайме целиком, на подложке уже 580 px — уменьшенный снимок окна (блоки в конце файла).
   Внутри — копия экрана кабинета в масштабе 0.88: классы .cab-* повторяют CSS-модули кабинета, источник указан
   в комментариях. Шрифт кабинета — WB Hauss из css/fonts/wb-hauss.css; числа записаны как в кабинете. */

/* ---------- Окно ---------- */
.showcase-shot {
  --shot-visible: 384px;       /* полоса + экран до края подложки: край режет карточки расчёта под последней строкой */
  --shot-bleed: 48px;          /* сколько окна уходит за край подложки */
  --shot-inset: 12px;          /* поле вокруг окна, когда оно стоит в лайме целиком: до 800 px и в снимке */
  grid-column: 1 / -1;
  position: relative;
  min-width: 0;
  height: var(--shot-visible);
}
.showcase-window {
  position: absolute;
  inset: 0 0 auto;
  height: calc(var(--shot-visible) + var(--shot-bleed));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #f9fafb;
  box-shadow: 0 18px 36px -14px rgb(34 60 74 / 25%), 0 0 0 1px rgb(0 0 0 / 10%);
}
.showcase-window-bar {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #0f172a;
  background: #1e293b;
}
.showcase-window-bar > i { width: 10px; height: 10px; border-radius: 50%; }
.showcase-window-bar > i:nth-child(1) { background: #ff5f56; }
.showcase-window-bar > i:nth-child(2) { background: #ffbd2e; }
.showcase-window-bar > i:nth-child(3) { background: #27c93f; }
.showcase-window-url {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0 10px;
  border-radius: 6px;
  background: rgb(255 255 255 / 6%);
  color: #94a3b8;
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0;
  white-space: nowrap;
}

/* Экран: кабинет в масштабе --screen-zoom. Лист /price_control — фон и отступы AppShell.tsx:91. */
.showcase-screen { --screen-zoom: .88; position: relative; flex: 1; min-height: 0; overflow: hidden; zoom: var(--screen-zoom); background: #f1f5f9; }
.showcase-page { position: relative; height: 100%; padding: 32px 18px 0 24px; }
/* Страница под окном, как под подложкой окна кабинета: размыта, обесцвечена и под вуалью. */
.showcase-page::after { content: ""; position: absolute; inset: 0; z-index: 1; background: rgb(15 23 42 / 42%); }
.showcase-page > .cab-card:first-child { filter: blur(3px) saturate(0) contrast(.7) brightness(1.05); }
.showcase-page > .cab-card:first-child img { opacity: .4; }
/* Сцена — то, что на странице в фокусе: окно и строка или ячейка, по которой его открыли. Она стоит по центру видимой
   части экрана, над срезом окна краем подложки: отступ сверху равен отступу снизу при любой высоте содержимого. */
.showcase-scene { position: absolute; z-index: 2; inset: 0 0 calc(var(--shot-bleed) / var(--screen-zoom)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.showcase-scene > .cab-modal { max-width: calc(100% - 24px); }
/* Окно расчёта чуть крупнее экрана (текст 13 px вместо 12): по высоте сцена как у «Автоакций». */
.showcase-shot--margins .cab-modal { zoom: 1.07; }
/* Поднятое над вуалью: строка товара («Автоакции», курсор на «2 акции») или ячейка редактора (курсор на карандаше). */
.showcase-scene > .showcase-lift, .store-card { box-shadow: 0 14px 34px rgb(10 19 29 / 32%), 0 2px 6px rgb(10 19 29 / 12%); }
.showcase-scene > .cab-card { align-self: stretch; margin: 0 18px 0 24px; }
/* Ячейка и её окно: правый край окна — на 8 px левее правого края ячейки (cellPopover.ts). */
.showcase-scene:has(> .cab-cell) { gap: 8px; }
.showcase-scene > .cab-cell { align-self: flex-end; margin-right: calc(50% - var(--pop-width, 480px) / 2 - 8px); }
.showcase-page--competitors .cab-cell { width: 300px; }
.showcase-page--stock .cab-cell { width: 380px; }
.showcase-page--schedule { --pop-width: 640px; }
.showcase-page--schedule .cab-cell { width: min(512px, 100% - 24px); }
/* Цена и СПП поднятой строки — второй план: размыты, как страница за ней. */
.showcase-lift :is(.cab-td-cost, .cab-td-spp) { filter: blur(2.5px); opacity: .6; }
.showcase-cursor { position: absolute; left: calc(100% - 4px); top: 60%; width: 22px; height: 30px; }   /* остриё у правого нижнего угла кнопки */

/* Правила ступени подложки 580–760 px действуют и на подложке уже 580: снимок там — окно 620 px с этой композицией.
   Фоновые СПП справа от окна: при подложке до 737 px окно режет их пополам — оставляем колонку пустой. */
@container (width <= 737px) {
  .showcase-shot--margins :is(.cab-th-spp, .cab-td-spp) { visibility: hidden; }
}
/* «Автоакции» при подложке до 760 px: колонки фиксированной ширины сжимали товар поднятой строки до «В..» —
   СПП уходит, «Статус» и «Стоимость» уже (в кабинете таблица не уже 1282 px и товар не сжимается). */
@container (width <= 760px) {
  .showcase-shot--promotions .cab-col-spp { width: 0; }
  .showcase-shot--promotions :is(.cab-th-spp, .cab-td-spp) { padding: 0; visibility: hidden; }
  .showcase-shot--promotions :is(.cab-col-status, .cab-col-cost) { width: 120px; }
}

/* ---------- Копия кабинета: корень и подмножество Tailwind preflight ----------
   body: 'WB combo VF Variable' (index.css:146), AppShell text-slate-800, line-height 1.5; без antialiased. */
.cab {
  font-family: "WB combo VF Variable", "WB Hauss Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: normal;
  color: #1e293b;
  text-align: left;
  font-feature-settings: normal;
  -webkit-font-smoothing: auto;
  text-rendering: auto;
}
.cab *, .cab *::before, .cab *::after { box-sizing: border-box; border: 0 solid #e5e7eb; margin: 0; padding: 0; }
.cab :where(img, svg) { display: block; }
.cab :where(img) { max-width: 100%; }
.cab :where(table) { border-collapse: collapse; text-indent: 0; border-color: inherit; }

/* ---------- Окно «Расчёт текущей маржи» — PriceControlCalcModal.tsx + PriceControlModals.module.css ---------- */
.cab-modal { /* .customModalContent :26 */
  position: relative;   /* опора крестика в углу */
  display: flex;
  flex-direction: column;
  width: 600px;
  overflow: hidden;
  border-radius: 16px;
  background-color: #fff;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
/* Окно без строки заголовка и подвала: товар и группы и так делят его на части, крестик — в углу. */
.cab-modal-close { /* .customModalClose :64 */
  position: absolute;
  z-index: 1;
  top: 12px;
  right: 12px;
  display: flex;
  padding: 4px;
  border-radius: 9999px;
  color: #8b91a1;
}
.cab-modal-body { /* .customModalBody :82 + .calculationWindow :512 */
  position: relative;
  flex: 1;
  padding: 16px 20px;
  background-color: #fff;
  color: #334155;
  font-size: 14px;
  line-height: 1.5;
}

/* Шапка товара — ModalProductHeader.tsx + .productModalHeader :180 */
.cab-calc-product { display: flex; align-items: stretch; gap: 16px; margin-bottom: 12px; padding-right: 28px; }   /* место крестика */
.cab-calc-image { position: relative; flex-shrink: 0; }
.cab-calc-image img { /* .imageWrapper img :203 */
  width: 66px;
  height: 66px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background-color: #f1f5f9;
  mix-blend-mode: multiply;
  opacity: 0.9;
}
.cab-calc-info { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.cab-calc-title { /* .productModalTitle a :221 */
  display: inline-block;
  max-width: min(370px, 100%);
  margin-bottom: 2px;
  overflow: hidden;
  color: #1e293b;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.cab-calc-details { display: flex; flex-direction: column; gap: 3px; color: #64748b; font-size: 13px; line-height: 1.3; }
.cab-meta-row { /* .metaRow :243 */
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  color: #64748b;
  font-size: 13px;
  white-space: nowrap;
}
.cab-meta-row svg { flex-shrink: 0; width: 14px; height: 14px; margin-right: 8px; color: #9ca3af; opacity: 0.7; } /* .copyIcon */
.cab-meta-label { min-width: 0; margin-right: 4px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; opacity: 0.8; }
.cab-meta-value { flex: none; font-weight: 500; }
.cab-section-divider { width: 100%; height: 1px; margin-bottom: 20px; background-color: #f1f5f9; } /* :345 */

/* Две группы расчёта :395–559 */
.cab-calc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; letter-spacing: -0.02em; }
.cab-calc-group {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.cab-calc-group-title { margin-bottom: 3px; padding-bottom: 8px; border-bottom: 1px solid #f1f5f9; color: #334155; font-size: 14px; font-weight: 550; }
.cab-calc-row { display: flex; align-items: baseline; justify-content: space-between; padding: 4px 0; border-bottom: 1px dashed #e2e8f0; }
.cab-calc-row.is-last { border-bottom: none; }
.cab-calc-label { color: #475569; font-size: 13.5px; font-weight: 400; }
.cab-calc-pct { margin-left: 2px; color: #94a3b8; font-size: 12px; }
.cab-calc-value { color: #1e293b; font-size: 14px; font-weight: 500; }
.cab-calc-expense { color: #dc2626; font-size: 14px; font-weight: 500; }
.cab-calc-subtotal { color: #0f172a; font-size: 14px; font-weight: 600; }
.cab-profit-block { margin-top: auto; }
.cab-profit-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; }
.cab-profit-row:last-child { margin-bottom: 0; }
.cab-profit-label { color: #475569; font-size: 13.5px; font-weight: 500; }
.cab-profit-label-bold { color: #334155; font-size: 13.5px; font-weight: 550; }
.cab-profit-positive { color: #15803d; font-size: 14px; font-weight: 600; }
/* «?» — HelpTooltip .trigger.iconTrigger (HelpTooltip.module.css:1, 20) */
.cab-help-dot {
  display: inline-flex;
  flex: 0 0 16px;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: 1px solid #d7dee8;
  border-radius: 50%;
  background: #f8fafc;
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.04);
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: normal;
  vertical-align: middle;
  transform: translateY(-0.5px);
}

/* ---------- Страница /price_control — TableCard, тулбар, TableWrapper, PriceControlTable, ProductCell ---------- */
.cab-card { /* TableCard.module.css:1; overflow — только у вырезки */
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}
.cab-toolbar { /* PriceControlTable.module.css:1148 */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 8px 8px 0 0;
  background-color: #fff;
}
.cab-search { position: relative; flex: 1 1 auto; max-width: 300px; min-width: 0; }
.cab-search-input {
  display: flex;
  align-items: center;
  width: 100%;
  height: 32px;
  padding: 0 45px 0 10px;
  overflow: hidden;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  background: #fff;
  color: #aaa;                  /* ::placeholder */
  font-size: 12px;
  line-height: 32px;
  white-space: nowrap;
}
.cab-search-icon { position: absolute; top: 50%; right: 8px; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; transform: translateY(-50%); }
/* FilterCombobox.module.css: шрифт Poppins кабинет не загружает → системный sans-serif */
.cab-combo { position: relative; flex: 0 0 auto; }
.cab-combo-input {
  display: block;
  width: 150px;
  height: 32px;
  padding: 0 30px 0 12px;
  overflow: hidden;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  background-color: #fff;
  color: #2c2c2c;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  line-height: 30px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cab-combo-icon { position: absolute; top: 50%; right: 8px; width: 16px; height: 16px; color: #999; transform: translateY(-50%); }
.cab-filter-btn { /* PriceControlFilters.module.css:12 */
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  background: #fff;
  color: #64748b;
}

/* Таблица — TableWrapper.module.css:82 + .ratingTable; ширины колонок — PriceControlTable.tsx:964, 1185 */
.cab-table { width: 100%; border-spacing: 0; table-layout: fixed; white-space: nowrap; }
.cab-table th, .cab-table td {
  overflow: visible;
  padding: 10px;
  border-bottom: 1px solid #e0e0e0;
  background: #fff;
  font-size: 14px;
  text-align: center;
  vertical-align: middle;
}
.cab-table thead th { background: #f3f3f3; color: #000; font-weight: 600; letter-spacing: .01em; }
.cab-table tbody td { color: #464849; font-weight: 440; }
.cab-table tbody tr:last-child td { border-bottom: 0; }
.cab-col-lead { width: 39px; }
.cab-col-photo { width: 68px; }
.cab-col-status { width: 170px; }
.cab-col-cost { width: 165px; }
.cab-col-spp { width: 100px; }
.cab-table .cab-th-product, .cab-table .cab-td-lead { padding-left: 15px; text-align: left; }
.cab-table .cab-td-photo { padding: 10px 0 10px 4px; text-align: left; vertical-align: top; }     /* ProductTableIdentity */
.cab-table .cab-td-details { padding: 10px 10px 10px 0; text-align: left; vertical-align: top; }
.cab-table .cab-th-status, .cab-table .cab-td-status { padding-inline: 4px; }
.cab-table .cab-td-spp { padding-right: 7px; }                                                     /* .sppCol */
/* Поднятая строка — без чекбокса (problems.html): фото встаёт на его место, с отступом от края карточки. */
.showcase-lift .cab-col-photo { width: 80px; }
.showcase-lift .cab-td-photo { padding-left: 16px; }
.cab-checkbox { flex-shrink: 0; width: 14px; height: 14px; margin-right: 10px; accent-color: #2563eb; vertical-align: middle; }
.cab-th-product .cab-checkbox { margin-right: 8px; }
.cab-th-product > div { display: flex; align-items: center; gap: 6px; }
.cab-th-divider { width: 1px; height: 16px; margin: 0 12px; background: #d0d0d0; }
.cab-items-counter { color: #555; font-family: "Poppins", sans-serif; font-size: 12px; font-weight: 500; letter-spacing: normal; } /* .itemsCounter */
.cab-items-counter b { color: #667eea; font-weight: 600; }
.cab-sort { display: inline-flex; align-items: center; min-width: 0; }   /* TableSortButton */
.cab-sort svg { flex: 0 0 auto; margin-left: 4px; color: #ccc; }
.cab-th-wrap { display: inline-flex; align-items: center; }            /* .ratingWrapper */
.cab-th-wrap .cab-help-dot { margin-right: 6px; transform: none; }
.cab-th-spp .cab-th-wrap::before { content: ""; width: 15px; flex-shrink: 0; }   /* балансировка заголовка СПП */

/* Фото — ProductCell.module.css .productImage 50×73: фото площадки 3:4 на всю ячейку; метка площадки — .photoMarketplaceMark. */
.cab-photo { position: relative; display: inline-block; vertical-align: top; }   /* без хвоста строки: строка 93, как в кабинете */
.cab-photo > img:first-child { width: 50px; height: 73px; object-fit: cover; border-radius: 5px; background: #fff; }
.cab-photo-mark { position: absolute; right: -2px; bottom: -2px; width: 20px; height: 20px; object-fit: contain; border: 2px solid #fff; border-radius: 6px; background: #fff; }
.cab-product-info { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; line-height: 1.3; }
.cab-product-name { /* .productName PriceControlTable.module.css:289 */
  display: block;
  max-width: 96%;
  overflow: hidden;
  color: #4285f4;
  font-size: 15.3px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.cab-product-meta { /* .productCode + CopyableValue */
  display: flex;
  align-items: center;
  max-width: 85%;
  overflow: hidden;
  color: #666;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .01em;
  white-space: nowrap;
}
.cab-product-meta svg { flex-shrink: 0; width: 12px; height: 12px; margin: 0 2px; color: #6b7280; opacity: 0.5; }

/* Статусы — PriceControlTable.module.css:376+ */
.cab-status-stack { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; }
.cab-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 9px;
  border: 1px solid #b0ffc0;
  border-radius: 6px;
  background-color: #b0ffc0;
  color: #115c4a;
  font-size: 13px;
  letter-spacing: .25px;
}
.cab-badge.is-pending { border-color: #f2f2f2; background-color: #f2f2f2; color: #636262; }
.cab-badge.is-competitor { position: relative; border-color: #4caf50; background: #e8f8ed; color: #1b5e20; }
.cab-badge.is-competitor::after { content: ""; position: absolute; top: 4px; right: 4px; width: 4px; height: 4px; border-radius: 50%; background: #2e7d32; }
.cab-promo-btn { /* «N акции» — .promotionStatusButton :498–531 */
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1px 8px;
  border: 1px solid #ff9aaf;
  border-radius: 6px;
  background: #fff;
  color: #c01646;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.cab-promo-btn.is-open { border-color: #f43f6f; background: #fff5f7; }   /* aria-expanded=true */
/* Стоимость — .priceCell/.priceContent/.priceIcon/.priceValue :125+ */
.cab-price { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 4px 0; line-height: 17px; }
.cab-price svg { width: 14px; height: 14px; margin-bottom: 1.5px; color: #808080; opacity: 0.6; transform: translateY(1px); }
.cab-price-value { color: #252222; font-size: 14px; font-weight: 500; }

/* ---------- Окно «Акции товара» — ProductPromotionsModal.tsx + ProductPromotionsModal.module.css ----------
   Без строки заголовка и фото: товар виден в поднятой строке, окно начинается с его названия и текущей цены. */
.cab-promo-body { padding: 14px 16px 16px; color: #111827; font-family: "WB combo VF Variable", "WB Hauss Fallback", Arial, sans-serif; font-size: 14px; line-height: 20px; }
.cab-promo-product { padding: 0 32px 12px 6px; }
.cab-promo-product-name { display: block; max-width: 360px; overflow: hidden; color: #17191b; font-size: 16px; font-weight: 600; line-height: 22px; white-space: nowrap; text-overflow: ellipsis; }
.cab-promo-current { margin-top: 2px; color: #6b7280; font-size: 13px; line-height: 18px; }
.cab-promo-scroll { overflow: hidden; border: 1px solid #d2d6de; border-radius: 7px; }
.cab-promo-table { width: 100%; min-width: 520px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.cab-promo-table th { padding: 6px 12px; background: #e7e8ec; color: #50545d; font-size: 13px; font-weight: 600; line-height: 18px; }
.cab-promo-table td { padding: 6px 12px; border-bottom: 1px solid #dfe2e8; }
.cab-promo-table tbody tr:last-child td { border-bottom: 0; }
.cab-promo-table :is(th, td) { text-align: left; vertical-align: middle; }
.cab-promo-table :is(th, td):first-child { width: 40%; min-width: 140px; }
.cab-promo-table :is(th, td):not(:first-child) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cab-promo-table :is(th, td):nth-child(2) { width: 28%; text-align: center; }
.cab-promo-table th:nth-child(n+3) { width: 16%; }
.cab-price-compare { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }   /* .priceComparison */
.cab-price-mark { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background: #2fa443; color: #fff; }
.cab-promo-table tr.is-above .cab-price-compare { color: #d71919; }   /* .aboveThreshold */
.cab-promo-table tr.is-above .cab-price-mark { background: #e3342f; }
.cab-promo-link { display: inline-flex; align-items: center; max-width: 100%; vertical-align: middle; color: #182036; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.cab-promo-link > span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cab-promo-link svg { flex-shrink: 0; transform: translateY(1px); }

/* ---------- Ячейка «Артикулы» в режиме правки — MassSettingsEditor (MSE:1094–1166, 1732–1808) — и её окно. Окно —
   маркетинговый вариант «Артикулов конкурентов» (CompetitorsEditorPopover :2651) по карточке лендинга: таблица
   «Конкурент / Остаток / Цена» с фото и поле добавления внизу. ---------- */
.cab-cell { display: grid; grid-template-columns: minmax(0, 1fr) 24px; align-content: center; column-gap: 6px; height: 50px; padding: 0 8px 0 11px; background: #fff; outline: 2px solid rgb(37 99 235 / 78%); outline-offset: -2px; line-height: 1.1; }
.cab-cell-main, .cab-cell-meta { grid-column: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cab-cell-main { color: #172033; font-size: 12.5px; font-weight: 650; }
.cab-cell-meta { margin-top: 3px; color: #64748b; font-size: 10.5px; font-weight: 500; }
.cab-cell-edit { position: relative; grid-column: 2; grid-row: 1 / span 2; align-self: center; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 5px; background: #d1fae5; color: #059669; }
.cab-pop { width: var(--pop-width, 480px); padding: 12px; border: 1px solid #c3cfdd; border-radius: 14px; background: #fff; box-shadow: 0 2px 6px rgb(15 23 42 / 10%), 0 12px 32px -6px rgb(15 23 42 / 22%); color: #17202b; }
.cab-competitors { width: 100%; font-size: 15px; line-height: 1.35; font-variant-numeric: tabular-nums; }
.cab-competitors th { padding: 7px 10px; background: #e7e8ec; color: #50545d; font-size: 13px; font-weight: 600; line-height: 18px; text-align: left; white-space: nowrap; }   /* шапка как у таблицы акций */
.cab-competitors th:first-child { border-radius: 6px 0 0 6px; }
.cab-competitors th:last-child { border-radius: 0 6px 6px 0; }
.cab-competitors td { padding: 8px 10px; white-space: nowrap; }
.cab-competitors tbody tr + tr > td { border-top: 1px solid #e5e8eb; }
.cab-competitors :is(th, td):last-child { width: 1%; text-align: right; }
.cab-competitors td:last-child { font-weight: 650; }
.cab-competitor { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.cab-competitor img { flex: none; width: 46px; height: 32px; object-fit: contain; }
.cab-competitor-stock { display: inline-flex; align-items: center; gap: 8px; }
.cab-competitor-stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #159457; }
.cab-competitor-stock.is-out::before { background: #db4851; }
.cab-competitors-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-top: 8px; padding: 10px; border-radius: 10px; background: #f1f3f5; }
.cab-competitors-input { display: flex; align-items: center; height: 36px; padding: 0 12px; border: 1px solid #087850; border-radius: 7px; background: #fff; font-size: 14.5px; }
.cab-competitors-add { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 7px; background: #087850; color: #fff; font-size: 14.5px; font-weight: 600; white-space: nowrap; }

/* ---------- Ячейка «Правило» (сводка AdjustmentSummary / MSE:1651–1700) и окно «Правило остатков» (MSE:1962–2420),
   окно крупнее кабинетного; уровень, в котором товар сейчас (хватит на 4 дня), подсвечен. ---------- */
.cab-rule { grid-column: 1; min-width: 0; overflow: hidden; color: #172033; font-size: 12.5px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.cab-rule i { display: inline-block; width: 1px; height: 14px; margin: 0 8px; vertical-align: -2px; background: #d6dde8; }
.cab-rule .is-low { color: #dc2626; }
.cab-rule .is-normal { color: #059669; }
.cab-rule .is-excess { color: #d97706; }
.cab-rule em { color: #94a3b8; font-style: normal; font-weight: 500; }
/* Сводка правила или расписания — одна строка; карандаш в ней по центру ячейки и синий, как у этих групп (MSE:1703–1726). */
:is(.cab-rule, .cab-sum) ~ .cab-cell-edit { grid-row: 1; background: #dbeafe; color: #2563eb; }
.cab-rule, .cab-sum { align-self: center; }
.cab-pop-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; color: #0f172a; font-size: 16px; font-weight: 650; }
.cab-pop-close { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; color: #8b91a1; }   /* как крестик окон, без рамки */
.cab-stock-metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 8px; border: 1px solid #e5eaf1; border-radius: 9px; }
.cab-stock-metrics > div { display: flex; flex-direction: column; gap: 1px; padding: 6px 14px; color: #64748b; font-size: 12.5px; }
.cab-stock-metrics > div + div { border-left: 1px solid #e5eaf1; }
.cab-stock-metrics b { color: #172033; font-size: 17px; font-weight: 650; }
.cab-stock-metrics small { color: #64748b; font-size: 12px; font-weight: 500; }
.cab-stock-metrics b.is-low { color: #dc2626; }
.cab-stock-rule { width: 100%; overflow: hidden; border: 1px solid #d2d6de; border-radius: 7px; border-collapse: separate; border-spacing: 0; color: #475569; font-size: 14px; }
.cab-stock-rule th { padding: 6px 12px; background: #e7e8ec; color: #50545d; font-size: 13px; font-weight: 600; line-height: 18px; text-align: left; }   /* шапка как у таблицы акций */
.cab-stock-rule td { padding: 4px 12px; border-bottom: 1px solid #dfe2e8; white-space: nowrap; }
.cab-stock-rule tr:last-child td { border-bottom: 0; }
.cab-stock-rule tr.is-current td { background: #fef2f2; }
.cab-level { display: inline-flex; align-items: center; gap: 8px; color: #172033; font-weight: 600; }
.cab-level::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #159457; }
.cab-level.is-low::before { background: #dc434d; }
.cab-level.is-excess::before { background: #df871b; }
.cab-input { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 26px; margin: 0 4px; padding: 0 6px; border: 1px solid #d6dde8; border-radius: 6px; background: #fff; color: #111827; font-weight: 600; }
.cab-sign { display: inline-block; width: 14px; font-weight: 700; text-align: center; }
.cab-sign.is-up { color: #dc2626; }
.cab-sign.is-down { color: #d97706; }
.cab-stock-rule .cab-none { color: #94a3b8; text-align: center; }
.cab-pop-foot { display: flex; justify-content: flex-end; margin-top: 8px; }
.cab-apply { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px; border-radius: 8px; background: #2563eb; color: #fff; font-size: 13.5px; font-weight: 600; }

/* ---------- Ячейка «Расписание и надбавки» (AdjustmentSummary, TPS:183–188) и окно расписания 7 × 24 —
   TimePriceSchedulePanel.module.css: слоты 22 px, группы по 6 часов, кисти надбавок, «+ Надбавка», «Применить». ---------- */
.cab .is-amber { --tone: #f4a62a; --tone-wash: #fffbeb; }
.cab .is-teal { --tone: #1fae9e; --tone-wash: #f0fdfa; }
.cab-sum { grid-column: 1; min-width: 0; overflow: hidden; color: #64748b; font-size: 12.5px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cab-sum :is(b, strong) { color: #172033; font-weight: 650; }
.cab-sum b.is-minus { color: #b91c1c; }
.cab-sum i { display: inline-block; width: 1px; height: 14px; margin: 0 9px; vertical-align: -2px; background: #d6dde8; }
.cab-sum-mark { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 2px; background: var(--tone); }
.cab-schedule { display: flex; flex-direction: column; gap: 2px; width: max-content; }
.cab-schedule > div { display: flex; gap: 2px; }
.cab-schedule > div > :first-child { flex: none; width: 26px; color: #475569; font-size: 12px; font-weight: 500; line-height: 22px; }
.cab-schedule > div > :nth-child(6n+2):not(:nth-child(2)) { margin-left: 3px; }   /* группы по 6 часов */
.cab-schedule > div:first-child { margin-bottom: 2px; }
.cab-schedule > div:first-child > span { width: 22px; color: #475569; font-size: 12px; font-weight: 500; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums; }
.cab-schedule > div:first-child > span:first-child { width: 26px; }
.cab-schedule i { flex: none; width: 22px; height: 22px; border-radius: 4px; background: #edf1f6; }
.cab-schedule i[class] { background: var(--tone); }
.cab-schedule .is-split { margin-top: 4px; }   /* выходные отдельно */
.cab-schedule-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 6px; margin-top: 10px; }
.cab-chip { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 3px 0 8px; border: 1px solid #d7e0ec; border-radius: 7px; background: #fff; }
.cab-chip.is-active { border-color: var(--tone); box-shadow: inset 0 0 0 1px var(--tone); background: var(--tone-wash); }
.cab-chip-swatch { width: 12px; height: 12px; margin-right: 1px; border-radius: 3px; background: var(--tone); }
.cab-chip-value { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 22px; padding: 0 4px; border: 1px solid #d6dde8; border-radius: 4px; background: #fff; color: #111827; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cab-chip-value.is-minus { color: #b91c1c; }
.cab-chip-unit { min-width: 12px; color: #94a3b8; font-size: 11.5px; text-align: center; }
.cab-chip svg { margin: 0 4px; color: #94a3b8; }
.cab-chip-add { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px 0 8px; border: 1px solid #cbd5e1; border-radius: 7px; color: #334155; font-size: 12px; font-weight: 500; }
.cab-schedule-foot .cab-apply { margin-left: auto; }
/* Расписание при подложке 580–660 px: окно 640 с ячейкой и курсором не помещается в экран — окно 570 и клетки 19 px;
   на подложке уже 580 окно и клетки задаёт снимок (ниже), отсюда действуют только ужатые чипы. */
@container (width <= 660px) {
  .showcase-page--schedule { --pop-width: 570px; }
  .cab-schedule i, .cab-schedule > div:first-child > span { width: 19px; }
  .cab-schedule i { height: 19px; }
  .cab-schedule > div > :first-child { line-height: 19px; }
  .cab-chip { padding: 0 2px 0 6px; }
  .cab-chip-value { min-width: 34px; }
  .cab-chip svg { margin: 0 2px; }
  .cab-chip-add { padding: 0 8px 0 6px; }
}

/* ---------- «МРЦ и РРЦ»: группа «Удержание цен» редактора (MSE:486, переключатель .booleanSwitch MSE:7153) и две
   витрины. От РРЦ ветви идут к WB и Ozon: при разных скидках площадок покупатель видит одну цену. Витрины —
   стилизованные фрагменты карточки товара; цвета сняты с живых страниц WB и Ozon 26.11.2026. ---------- */
.showcase-page--hold { --fork: 48px; --hold-pad: 12px; }
.showcase-page--hold .showcase-scene { gap: var(--fork); }
.cab-hold { display: flex; align-items: center; gap: 10px; padding: var(--hold-pad); border-radius: 14px; background: #fff; color: #172033; font-variant-numeric: tabular-nums; }
.cab-hold-name { display: inline-flex; align-items: center; gap: 10px; margin-right: 6px; font-size: 16px; font-weight: 600; white-space: nowrap; }
.cab-hold-icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; background: #ede9fe; color: #7c3aed; }
/* МРЦ — нижняя граница, второй план; РРЦ — цена витрины, от неё ветви. */
.cab-hold-field { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; height: 40px; padding: 0 12px; border: 1px solid #e2e8f0; border-radius: 9px; color: #64748b; line-height: 38px; white-space: nowrap; }
.cab-hold-field small { font-size: 13px; font-weight: 600; }
.cab-hold-field b { font-size: 17px; font-weight: 500; }
.cab-hold-field.is-rrc { border-color: #8b5cf6; box-shadow: inset 0 0 0 1px #8b5cf6; background: #f5f3ff; color: #172033; }
.cab-hold-field.is-rrc small { color: #7c3aed; }
.cab-hold-field.is-rrc b { font-weight: 650; }
.cab-hold-field.is-rrc::after { content: ""; position: absolute; left: calc(50% - 1px); top: 100%; width: 2px; height: calc(var(--hold-pad) + var(--fork) / 2); background: rgb(255 255 255 / 88%); }
.showcase-sync { position: absolute; z-index: 1; left: 50%; top: calc(100% + var(--hold-pad) + var(--fork) / 2); display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; box-shadow: 0 4px 12px rgb(10 19 29 / 30%); color: #2563eb; transform: translate(-50%, -50%); }
.cab-switch { position: relative; flex: none; width: 42px; height: 24px; margin-left: 4px; border-radius: 999px; background: #2563eb; }
.cab-switch::before { content: ""; position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(15 23 42 / 25%); }
.cab-switch .showcase-cursor { left: calc(100% - 10px); top: 45%; }
/* Перекладина над витринами: ветви опускаются к их серединам, ствол от РРЦ встаёт на неё в узле синхронизации.
   Витрины — подпись к цене, а не второе окно: ряд чуть шире группы «Удержание цен», шапка — тонкая полоса. */
.store-cards { --gap: 48px; position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); width: min(580px, 100% - 48px); }
.store-cards::before { content: ""; position: absolute; left: calc(25% - var(--gap) / 4 - 1px); right: calc(25% - var(--gap) / 4 - 1px); bottom: 100%; height: calc(var(--fork) / 2 + 1px); border: 2px solid rgb(255 255 255 / 88%); border-bottom: 0; border-radius: 14px 14px 0 0; }
.store-card { overflow: hidden; border-radius: 12px; background: #fff; color: #242429; }
.store-bar { display: flex; align-items: center; height: 30px; padding: 0 12px; }
.store-logo { font-size: 14px; line-height: 1; white-space: nowrap; }
.store-body { display: grid; grid-template: "photo name" auto "photo price" 1fr "photo buy" auto / 64px minmax(0, 1fr); column-gap: 10px; padding: 10px; }
/* Фото на сером тона его фона (#eceef2): светлую скруглённую кромку снимка срезаем по кругу углов. Метка — скидка
   площадки. */
.store-photo { grid-area: photo; position: relative; display: flex; align-items: center; overflow: hidden; border-radius: 8px; background: #eceef2; }
.store-photo img { width: 100%; aspect-ratio: 1; clip-path: inset(3% round 16%); transform: scale(1.05); }
.store-photo em { position: absolute; left: 4px; top: 4px; padding: 0 4px; border-radius: 4px; color: #fff; font-size: 10.5px; font-style: normal; font-weight: 650; line-height: 15px; }
.store-name { grid-area: name; font-size: 12.5px; line-height: 16px; text-wrap: balance; }
.store-price { grid-area: price; display: flex; align-items: center; gap: 6px; margin: 4px 0 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.store-price b { font-size: 20px; font-weight: 700; line-height: 26px; letter-spacing: -.01em; }
.store-price s { font-size: 12px; font-weight: 400; text-decoration-thickness: 1.5px; }
.store-buy { grid-area: buy; display: flex; align-items: center; justify-content: center; height: 30px; border-radius: 9px; color: #fff; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
/* Шапка витрины — полоса цвета площадки с белым логотипом. WB: градиент сайта, красная цена
   с кошельком, фиолетовая кнопка. */
.store-card--wb .store-bar { background: linear-gradient(97deg, #ed3cca, #d02bd9 29%, #ae1ae8 57%, #8306f7); }
.store-card--wb .store-logo { color: #fff; font-weight: 700; letter-spacing: -.03em; }
.store-card--wb .store-photo em { background: #cb11ab; }
.store-wallet { flex: none; width: 20px; height: 17px; margin-right: -2px; color: #fa1f4b; }
.store-card--wb .store-price b { color: #fa1f4b; }
.store-card--wb .store-price s { color: #9e9eab; }
.store-card--wb .store-buy { background: #a73afd; }
/* Ozon: синяя полоса, зелёная плашка цены, синяя кнопка. */
.store-card--ozon .store-bar { background: #005bff; }
.store-card--ozon .store-logo { color: #fff; font-size: 15.5px; font-weight: 800; letter-spacing: .01em; }
.store-card--ozon .store-photo em { background: #f91155; }
.store-card--ozon .store-price b { padding: 0 7px; border-radius: 8px; background: #00c451; color: #fff; }
.store-card--ozon .store-price s { color: rgb(0 26 51 / 60%); }
.store-card--ozon .store-buy { background: #005bff; }

/* ---------- До 800 px: окно 4 : 3 стоит в лайме целиком, с полями 12 px по бокам; под ним пульт (problems.css) ----------
   На подложке 580–760 px — ПК-окно с композицией этой ступени, на подложке уже 580 px — снимок (ниже). */
@media (max-width: 800px) {
  .showcase-shot { --shot-visible: calc((100cqi - 2 * var(--shot-inset)) * .75); --shot-bleed: 0px; margin-inline: calc(var(--shot-inset) - var(--gutter)); }
}

/* ---------- Подложка уже 580 px (телефон, ПК 801–1013): снимок ПК-окна, как дашборд в херо ----------
   Окно раскладывается в 620 × 465 CSS px (4 : 3) с композицией ступени 580–760 (её правила выше действуют и здесь;
   кабинет 1 : 1 вместо .88) и целиком уменьшается до ширины подложки без двух полей по 12 px; поле снизу задаёт
   раскладка блока (problems.css). Масштаб считает CSS: у окна 100cqi — ширина подложки. transform, а не zoom: раскладка
   остаётся ПК-шной на любой ширине (zoom заново раскладывает текст в 4–6 px). 620 — у нижней границы ступени: её сцены
   заполняют окно 4 : 3, а текст на 14 % крупнее, чем в окне шириной с ПК-окно (709). */
@container (width < 580px) {
  .showcase-shot {
    --shot-width: 620px;
    --shot-visible: 465px;
    --shot-bleed: 0px;
    --shot-scale: tan(atan2(100cqi - 2 * var(--shot-inset), var(--shot-width)));
    height: calc(var(--shot-visible) * var(--shot-scale));
    margin-inline: calc(var(--shot-inset) - var(--gutter));
  }
  .showcase-window { right: auto; width: var(--shot-width); border-radius: calc(8px / var(--shot-scale)); transform: scale(var(--shot-scale)); transform-origin: 0 0; }
  /* Полоса как в херо: выше, точки крупнее, без адреса (он был бы текстом 5 px). */
  .showcase-window-bar { gap: 10px; padding: 16px 20px; }
  .showcase-window-bar > i { width: 13px; height: 13px; }
  .showcase-window-url { display: none; }
  .showcase-screen { --screen-zoom: 1; }
  /* Отличия от сцены ступени — только то, что в снимке не читается. Самый мелкий текст — около 6 px на экране при 390:
     артикулы в ячейке «Конкуренты» (ячейка шире, «3 артикула» над ними крупнее), метки скидок и название товара на
     витринах «МРЦ и РРЦ». */
  .showcase-page--competitors .cab-cell { width: 340px; }
  .cab-cell-main { font-size: 14px; }
  .cab-cell-meta { font-size: 13px; }
  .store-photo em { font-size: 13px; line-height: 17px; }
  .store-name { font-size: 13px; }
  /* Расписание: подписан каждый час — видно, с какого по какой час идёт надбавка; клетки квадратные, с зазором
     3 px — 2 px в масштабе .41–.53 сливаются. Окно 545 — ровно по сетке из 24 клеток по 17 px: курсор у карандаша
     не прижат к краю экрана. */
  .showcase-page--schedule { --pop-width: 545px; }
  .cab-schedule, .cab-schedule > div { gap: 3px; }
  .cab-schedule i { width: 17px; height: 17px; }
  .cab-schedule > div:first-child { margin-bottom: 4px; }
  .cab-schedule > div:first-child > span { width: 17px; }
  .cab-schedule > div > :first-child, .cab-schedule > div:first-child > span:first-child { width: 30px; }
  .cab-schedule > div > span:first-child { font-size: 15px; line-height: 17px; }
}
