/* «Юнитка (лист)»: пересчёт «что если» (unit_whatif.js) — ячейки ввода и подсветка правки */
table.unit-mirror { width: 100%; }
table.unit-mirror tbody tr { height: 32px; } /* Одна высота для текста, полей и кнопок Ozon. */
table.unit-mirror th, table.unit-mirror td { white-space: nowrap; overflow-wrap: normal;
  text-overflow: ellipsis; vertical-align: middle; }
.uw-bar { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.uw-note { color: var(--muted-2); font-size: 11px; }
table.unit-mirror td.uw-edit { padding: 1px 2px; }
table.unit-mirror input.uw-input { width: 100%; box-sizing: border-box; border: 1px dashed var(--muted-2);
  border-radius: 3px; padding: 2px 4px; font: inherit; text-align: right; background: transparent; }
table.unit-mirror input.uw-input.uw-bad { border: 1px solid #c0392b; }
table.unit-mirror td.uw-changed { box-shadow: inset 0 0 0 2px #e0a800; background: rgba(224, 168, 0, .14); }
table.unit-mirror td.uw-promo summary { cursor: pointer; }
table.unit-mirror ul.uw-promo-list { margin: 4px 0 0; padding-left: 16px; text-align: left; white-space: nowrap;
  font-size: 11px; }
table.unit-mirror ul.uw-promo-list li.uw-out { color: var(--muted-2); }
/* Порядок uwOrder: маржа и прибыль за скидкой — мягкий фон; строка с любой правкой — подсветка */
table.unit-mirror :where(th.um-moved, td.um-moved) { background: #f6f9ff; }   /* :where — цвет маржи важнее */
table.unit-mirror td.um-moved { font-weight: 600; }
table.unit-mirror tr.uw-row-changed td { background: #fffbe6; }
/* Панель изменений WB над таблицей (fast_ct2_unit_changes_panel) */
.uw-changes { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; flex-wrap: wrap;
  gap: 6px 18px; margin: 6px 0 8px; padding: 8px 12px; background: var(--surface); border: 1px solid #d6e2ff;
  border-left: 3px solid var(--blue-600); border-radius: 8px; box-shadow: 0 3px 10px rgba(16, 24, 40, .06);
  font-size: 13px; }
.uw-changes:empty { display: none; }
.uw-changes-title { color: var(--muted); font-size: 12px; }
.uw-changes-list { display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; min-width: 0; }
.uw-change { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.uw-change-art { min-width: 150px; }
.uw-diffs { display: flex; flex-wrap: wrap; gap: 4px 12px; color: #344054; }
.uw-diff .uw-was { color: var(--muted-2); }
.uw-diff .uw-now { font-weight: 700; }
.uw-diff .uw-now.um-good, .uw-diff .uw-now.um-ok { color: var(--green); }
.uw-diff .uw-now.um-warn { color: var(--orange); }
.uw-diff .uw-now.um-bad { color: var(--red); }
.uw-change-note { color: var(--red); font-size: 12px; }
.uw-x { width: 22px; height: 22px; padding: 0; color: var(--muted-2); background: none; border: 1px solid #e4e7ec;
  border-radius: 6px; font-size: 13px; line-height: 1; cursor: pointer; }
.uw-x:hover { color: var(--red); border-color: var(--red); }
.uw-changes-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.uw-changes-actions button { min-height: 32px; font-size: 13px; }
.uw-cancel small { color: var(--muted-2); margin-left: 5px; }
@media (max-width: 720px) {
  .uw-changes { flex-direction: column; align-items: stretch; }
  .uw-change-art { min-width: 0; }
  .uw-changes-actions { margin-left: 0; flex-direction: column; align-items: stretch; }
  .uw-changes-actions button, .uw-x { min-height: 44px; min-width: 44px; }
}
/* Цена в WB (wb_price_commands.js): статус строки, модалка «Точно менять?», журнал цен */
table.unit-mirror td.wpc-cell { white-space: nowrap; font-size: 11px; }
table.unit-mirror td.wpc-cell .wpc-status { display: block; color: var(--muted-2); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.wpc-modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .35); display: flex; align-items: center;
  justify-content: center; z-index: 50; padding: 16px; }
.wpc-card { background: #fff; border-radius: 8px; padding: 16px 18px; max-width: 420px; width: 100%;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .25); max-height: calc(100vh - 32px); display: flex; flex-direction: column; }
.wpc-lines { overflow-y: auto; min-height: 0; flex: 1 1 auto; }
.wpc-title { font-weight: 600; margin: 0 0 8px; }
.wpc-line { margin: 2px 0; }
.wpc-error { color: #c0392b; min-height: 1em; margin: 8px 0; }
.wpc-actions { display: flex; gap: 10px; justify-content: flex-end; }
.wpc-snapshot { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 6px 0; font-size: 12px; }
.wpc-snapshot .secondary-button { height: 26px; padding: 0 10px; font-size: 12px; }
.wpc-snapshot-note { white-space: normal; }
.wpc-journal { margin-top: 14px; }
.wpc-journal-title { font-size: 13px; margin: 0 0 6px; }
.wpc-journal-table { border-collapse: collapse; font-size: 11px; }
.wpc-journal-table td { padding: 3px 8px; border-bottom: 1px solid #eef0f2; vertical-align: top; }
.wpc-journal-table tr.wpc-failed td, .wpc-journal-table tr.wpc-unknown td,
.wpc-journal-table tr.wpc-refused td { color: #a04000; }
.wpc-journal-actions .secondary-button { height: 24px; padding: 0 8px; font-size: 11px; }
