/* «Автоматизация → Управление ценами» (21.11.2026): вид — как «Управление ценами» SellMonitor. */
.rp-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 4px 0 16px; }
.rp-head h1 { margin: 0; font-size: 28px; }
.rp-head .rp-spacer { flex: 1; }
.rp-link { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; padding: 4px 6px; }
.rp-link:hover { color: var(--accent); }
.rp-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.rp-bar input[type=search] { min-width: 240px; }
.rp-bar .rp-spacer { flex: 1; }
.rp-stage { background: var(--accent-soft); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 12px;
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.rp-stage b { font-weight: 600; }
.rp-table { width: 100%; border-collapse: collapse; background: var(--surface); }
.rp-table th { text-align: left; font-weight: 600; padding: 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rp-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rp-table tr.rp-row { cursor: pointer; }
.rp-table tr.rp-row:hover td { background: var(--surface-2); }
.rp-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); margin-right: 6px; }
.rp-dot.on { background: var(--good); }
.rp-kv { display: grid; grid-template-columns: auto auto; gap: 2px 8px; justify-content: start; }
.rp-kv .k { color: var(--muted); }
.rp-down { color: var(--bad); }
.rp-up { color: var(--good); }
.rp-small { font-size: 12px; color: var(--muted); }
.rp-chips { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.rp-chip { border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); padding: 1px 8px; font-size: 12px; }
.rp-chip.accent { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.rp-prop { border-left: 3px solid var(--accent); padding-left: 8px; }
.rp-prop .rp-actions { display: flex; gap: 6px; margin-top: 6px; }
.rp-bulk { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--line);
  padding: 10px; display: flex; gap: 8px; align-items: center; box-shadow: var(--shadow); z-index: 5; }
/* переключатель как в SellMonitor */
.rp-switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.rp-switch input { position: absolute; opacity: 0; pointer-events: none; }
.rp-switch .track { width: 38px; height: 22px; border-radius: 11px; background: var(--line); position: relative; transition: background .15s; flex: none; }
.rp-switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.rp-switch input:checked + .track { background: var(--accent); }
.rp-switch input:checked + .track::after { left: 19px; }
.rp-switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }
.rp-switch input:disabled + .track { opacity: .5; }
/* товар */
.rp-item-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.rp-item-head .product { flex: 1; min-width: 260px; }
.rp-enabled { background: var(--accent-soft); border-radius: var(--radius); padding: 10px 16px; font-weight: 600; }
.rp-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.rp-tabs button { border: 0; background: none; padding: 8px 14px; border-radius: 8px; cursor: pointer; font: inherit; color: var(--text); }
.rp-tabs button[aria-selected="true"] { background: var(--surface); box-shadow: var(--shadow); font-weight: 600; }
.rp-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 10px; }
.rp-card h2 { font-size: 18px; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.rp-card h2 .rp-spacer { flex: 1; }
.rp-card h3 { font-size: 14px; margin: 14px 0 8px; }
.rp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 900px) { .rp-cols { grid-template-columns: 1fr; } }
.rp-radio { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; cursor: pointer; }
.rp-radio input { margin-top: 3px; }
.rp-radio .rp-small { display: block; }
.rp-field { display: block; margin-bottom: 14px; }
.rp-field > span:first-child { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.rp-field input[type=text], .rp-field input[type=number], .rp-field input[type=date], .rp-field select { width: 160px; }
.rp-inline { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.rp-order { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.rp-order .rp-step { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; background: var(--surface-2); display: inline-flex; gap: 4px; align-items: center; }
.rp-order .rp-step button { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 0 2px; font: inherit; }
.rp-order .rp-step button:hover { color: var(--accent); }
/* сетка часов */
.rp-grid { border-collapse: separate; border-spacing: 3px; font-size: 12px; user-select: none; }
.rp-grid th { font-weight: 500; color: var(--muted); padding: 2px; cursor: pointer; }
.rp-grid td { min-width: 38px; height: 28px; text-align: center; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); cursor: pointer; }
.rp-grid td.full { background: #fde2e1; border-color: transparent; }
.rp-grid td.on { background: var(--accent-soft); border-color: transparent; }
.rp-grid td.anchor { outline: 2px solid var(--accent); }
@media (prefers-color-scheme: dark) { .rp-grid td.full { background: #4a2626; } }
.rp-grid-wrap { overflow-x: auto; }
.rp-preview { position: sticky; bottom: 0; z-index: 5; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; box-shadow: var(--shadow); }
.rp-preview .rp-spacer { flex: 1; }
.rp-log td, .rp-log th { font-size: 13px; }
.rp-err { color: var(--bad); }
.rp-add-list { max-height: 50vh; overflow: auto; border: 1px solid var(--line); border-radius: 8px; margin: 10px 0; }
.rp-add-list label { display: flex; gap: 10px; align-items: center; padding: 6px 10px; border-bottom: 1px solid var(--line); cursor: pointer; }
.rp-field > .rp-small { display: block; margin-top: 4px; max-width: 520px; }
.rp-card h2 .rp-link { font-size: 14px; font-weight: 400; }
.rp-tag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.rp-tag-card { text-align: left; cursor: pointer; font: inherit; color: inherit; }
.rp-tag-card:hover { border-color: var(--accent); }
.rp-order { flex-direction: column; align-items: stretch; gap: 6px; }
.rp-order-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 10px; background: var(--surface-2); }
.rp-order-row.off .rp-order-name { color: var(--muted); text-decoration: line-through; }
.rp-order-n { width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 600; flex: none; }
.rp-order-name { font-weight: 600; min-width: 170px; }
.rp-order select { align-self: flex-start; }
