/* Промоции в „Заявки“ (T04): карта в инфо лентата, етикет „ПРОМО“ на реда и при
   техника, блокът „Промоция“ в заявката. Зеленото е цветът на промоциите и на сайта. */
.promo-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 6px;
  background: #1f7d65;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  white-space: nowrap;
}
.promo-badge--big { padding: 4px 10px; font-size: 13px; }
.technician-promo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 0; color: var(--text); font-weight: 700; }

.promo-status { color: inherit; text-decoration: none; }
.promo-status:hover { border-color: #2f6b5c; }
.promo-status:focus-visible { outline: 0; box-shadow: var(--focus); }
.promo-dot { display: inline-block; flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: #1f9d7b; }
.promo-status--scheduled .promo-dot { background: var(--text-muted); }
.promo-status-label { display: block; margin-top: 3px; font-size: 12px; font-weight: 700; color: var(--mode-text); }
.promo-status-detail { display: block; margin-top: 2px; font-size: 12px; color: var(--text-soft); }
.summary-group--settings .promo-status { flex: 0 0 auto; min-width: 0; width: 196px; }
@media (max-width: 1360px) { .summary-group--settings .promo-status { flex: 1 1 196px; } }
/* На телефон картата е на отделен ред под другите. */
@media (max-width: 620px) { .summary-group--settings .promo-status { flex: 1 1 100%; width: auto; } }

.request-promotion h2 { margin-bottom: 8px; }
.request-promotion fieldset { margin: 0; padding: 0; border: 0; }
.request-promotion legend { margin-bottom: 6px; font-weight: 700; }
.request-promotion-option { display: flex; align-items: flex-start; gap: 8px; margin: 6px 0; }
.request-promotion-option input { width: auto; margin-top: 4px; }
.request-promotion-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.request-promotion-actions form { margin: 0; }
.request-promotion-history { margin-top: 12px; }
.request-promotion-history summary { cursor: pointer; color: var(--text-soft); }
.request-promotion-history ul { margin: 8px 0 0; padding-left: 18px; color: var(--text-soft); font-size: 12px; }

/* „Анализи → Промоции“ (T06). */
.promo-stats-intro { margin: 0 0 14px; }
.promo-stats-list { display: grid; gap: 14px; }
.promo-stats-card { display: grid; gap: 6px; color: inherit; text-decoration: none; }
.promo-stats-card:hover { border-color: #2f6b5c; }
.promo-stats-card:focus-visible { outline: 0; box-shadow: var(--focus); }
.promo-stats-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.promo-stats-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 8px 0 0; }
.promo-stats-facts div { padding: 10px 12px; border-radius: 10px; background: var(--surface-inset); }
.promo-stats-facts dt { font-size: 12px; color: var(--text-soft); }
.promo-stats-facts dd { margin: 3px 0 0; font-size: 18px; font-weight: 800; }
.promo-stats-facts dd small { font-size: 12px; font-weight: 400; color: var(--text-soft); }
.promo-stats-summary { margin: 6px 0 0; color: var(--text-soft); }
.promo-stats-verdict p { margin: 6px 0 0; }
.promo-stats-verdict p:first-of-type { font-size: 17px; font-weight: 700; }
.promo-compare th[scope="row"] { text-align: left; font-weight: 600; }
.promo-compare tr.is-sub th[scope="row"] { padding-left: 22px; font-weight: 400; color: var(--text-soft); }
.promo-delta { white-space: nowrap; color: var(--text-soft); }
.promo-delta.is-up { color: #6fc492; }
.promo-delta.is-down { color: #ef9a90; }
.compact-list .is-sub strong { padding-left: 14px; font-weight: 400; color: var(--text-soft); }
@media (max-width: 760px) { .promo-stats-facts { grid-template-columns: 1fr 1fr; } }
/* На телефон всеки показател е карта: трите периода на един ред, разликите под тях. */
@media (max-width: 620px) {
  .promo-compare thead { display: none; }
  .promo-compare, .promo-compare tbody { display: block; width: 100%; }
  .promo-compare tr { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .promo-compare th[scope="row"] { grid-column: 1 / -1; padding: 0; border: 0; }
  .promo-compare td { grid-column: span 2; display: grid; gap: 2px; padding: 0; border: 0; text-align: left; font-variant-numeric: tabular-nums; }
  .promo-compare td.promo-delta { grid-column: span 3; }
  .promo-compare td::before { content: attr(data-label); font-size: 12px; color: var(--text-soft); }
  .promo-compare tr.is-sub th[scope="row"] { padding-left: 0; }
  .promo-compare tr.is-sub td.promo-delta { display: none; }
}
