/* Акции. Только классы с префиксом раздела; токены цвета — из app.css. */

/* строка стратегии и обновления календаря */
.promo-bar { justify-content: space-between; }
.promo-bar__sync { gap: 10px; }
.promo-strategy { margin-top: -10px; }

/* ── календарь: слева акция, справа полоса на шкале дат ── */
.promo-cal__legend { padding-top: 0; }
.promo-sw { display: inline-block; width: 18px; height: 8px; border-radius: 4px; }
.promo-sw--regular { background: var(--s1); }
.promo-sw--auto { background: var(--s4); }
.promo-sw--today { width: 2px; height: 12px; border-radius: 0; background: var(--ink); }

.promo-cal__grid { border-top: 1px solid var(--line); }
.promo-cal__row {
  display: grid; grid-template-columns: minmax(220px, 34%) minmax(0, 1fr);
  gap: 4px 16px; align-items: center; padding: 9px 20px;
  border-bottom: 1px solid var(--line-soft); cursor: pointer; outline-offset: -2px;
}
.promo-cal__row:last-child { border-bottom: 0; }
.promo-cal__row:hover { background: var(--surface-2); }
.promo-cal__row:focus-visible { outline: 2px solid var(--accent); }
.promo-cal__row.is-active { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--ink); }
.promo-cal__row--axis { cursor: default; padding-top: 6px; padding-bottom: 4px;
  border-bottom-color: var(--line); }
.promo-cal__row--axis:hover { background: none; }
.promo-cal__row--past .promo-cal__label b { color: var(--ink-2); font-weight: 500; }
.promo-cal__row--past .promo-cal__bar { opacity: .35; }

.promo-cal__label { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.promo-cal__label b { font-weight: 600; font-size: 13.5px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.promo-cal__meta { font-size: 12px; color: var(--ink-3); }
.promo-cal__chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.promo-cal__chips:empty { display: none; }

.promo-cal__track { position: relative; height: 22px; min-width: 0; }
.promo-cal__bar { position: absolute; top: 5px; height: 12px; border-radius: 6px; min-width: 4px; }
.promo-cal__bar--regular { background: var(--s1); }
.promo-cal__bar--auto { background: var(--s4); }
.promo-cal__today { position: absolute; top: -3px; bottom: -3px; width: 2px;
  background: var(--ink); opacity: .8; z-index: 1; }
.promo-cal__axis { height: 16px; background: none; }
.promo-cal__tick { position: absolute; top: 0; transform: translateX(-50%); font-size: 11px;
  color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.promo-cal__axis .promo-cal__today { top: 0; bottom: -6px; }

/* ── акция ── */
.promo-detail .tiles { border-top: 1px solid var(--line); }
.promo-effect { font-size: 14px; }
.promo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.promo-upload { position: relative; overflow: hidden; }
.promo-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.promo-upload:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.promo-file__ok { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.promo-tablehead { gap: 8px; }
.promo-filter { margin-bottom: 2px; }

.promo-table td.l, .promo-table th.l { text-align: left; }
.promo-table .zone { font-size: 12px; }
.promo-why { white-space: normal !important; min-width: 220px; max-width: 320px; }
.promo-why .chip { vertical-align: 1px; }
.promo-act { font-size: 12px; font-weight: 600; color: var(--ink); margin-left: 4px; }
.promo-why__txt { display: block; margin-top: 4px; font-size: 12px; line-height: 1.4;
  color: var(--ink-2); }
.promo-why__flags { display: block; margin-top: 2px; font-size: 11px; color: var(--ink-3); }

@media (max-width: 760px) {
  .promo-cal__row { grid-template-columns: minmax(0, 1fr); padding: 10px 16px; }
  .promo-cal__row--axis .promo-cal__label { display: none; }
  .promo-strategy { margin-top: -6px; }
  .promo-why { min-width: 230px; }
}

/* линии недель на шкале календаря */
.promo-cal__week { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line-soft); }
.promo-cal__axis .promo-cal__week { display: none; }

/* карточки товаров — только на телефоне, вместо широкой таблицы */
.promo-cards { display: none; }
.promo-card { padding: 12px 16px; border-top: 1px solid var(--line); display: flex;
  flex-direction: column; gap: 4px; }
.promo-card__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.promo-card__head b { font-weight: 650; }
.promo-card__head .sub { font-size: 12px; color: var(--ink-3); }
.promo-card__head .chip { margin-left: auto; }
.promo-card__line { margin: 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.promo-card__line b { font-weight: 650; }
.promo-card__why { margin: 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.promo-card__why b { color: var(--ink); font-weight: 600; }

@media (max-width: 640px) {
  .promo-detail .scroll { display: none; }
  .promo-cards { display: block; }
}
.promo-cal__more { padding: 8px 20px; }
