.promos-content { padding-top: 26px; }
.promos-top { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 30px; }
.promos-top h1, .promos-top p, .promos-top small { margin: 0; }
.promos-top h1 { font-size: 30px; }
.promos-top p { margin-top: 8px; font-weight: 800; }
.promos-top span, .promos-top small { color: var(--muted); }
.promos-top small { display: block; margin-top: 8px; font-size: 14px; }
.promo-actions { display: flex; gap: 14px; }
.promo-actions button, .promo-filter button, .promo-table td button, .promo-footer button, .promo-footer select, .ending-soon button {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font-weight: 800;
}
.promo-actions button { display: inline-flex; gap: 9px; align-items: center; height: 44px; padding: 0 18px; }
.promo-actions .primary { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--green-bright), var(--green)); }

.promo-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; margin-bottom: 26px; }
.promo-stats article { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: center; min-height: 128px; padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 10px 26px rgba(23,44,39,.05); }
.promo-stats article > span { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 12px; }
.promo-stats p, .promo-stats small { margin: 0; }
.promo-stats p { color: #4f5e59; font-weight: 800; }
.promo-stats strong { display: block; margin: 10px 0 12px; font-size: 24px; }
.promo-stats article,
.promo-stats article > div { min-width: 0; }
.promo-stats strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(18px, 1.45vw, 24px);
  line-height: 1.15;
}
.promo-stats small { font-weight: 800; }
.promo-stats .up { color: var(--green); }
.promo-stats .warn-text { color: #d48200; }

.promo-filter { display: grid; grid-template-columns: 1.1fr .7fr .8fr .72fr 1fr auto auto; gap: 18px; align-items: center; margin-bottom: 18px; }
.promo-filter label > span { position: relative; display: block; }
.promo-filter input, .promo-filter select { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 7px; background: #fff; outline: 0; }
.promo-filter input { padding: 0 42px 0 14px; }
.promo-filter select { padding: 0 14px; }
.promo-filter label > span i { position: absolute; right: 12px; top: 11px; color: var(--muted); }
.promo-filter button { display: inline-flex; gap: 9px; align-items: center; justify-content: center; height: 42px; padding: 0 22px; }
.promo-filter button:last-child { color: var(--green); border-color: rgba(15,159,99,.42); }

.promo-main { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 18px; align-items: start; }
.promo-table { padding: 0; overflow: hidden; }
.promo-table h2 { height: 62px; margin: 0; padding: 20px 22px 0; font-size: 18px; }
.table-scroll { max-width: 100%; overflow-x: auto; }
.promo-table table { width: 100%; min-width: 1160px; table-layout: auto; }
.promo-table th { background: #fbfcfc; }
.promo-table td, .promo-table th { padding: 15px 18px; vertical-align: middle; }
.promo-table td small { display: block; margin-top: 5px; color: var(--muted); }
.promo-name { display: grid; grid-template-columns: 60px 1fr; gap: 14px; align-items: center; min-width: 250px; }
.promo-badge {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  font-style: normal;
  font-size: 12px;
  font-weight: 1000;
  line-height: 1.05;
  text-align: center;
}
.promo-badge.green { background: linear-gradient(135deg,#12ba78,#087b4f); }
.promo-badge.orange { background: linear-gradient(135deg,#ffb329,#f07800); }
.promo-badge.cyan { background: linear-gradient(135deg,#a8f0ed,#51c4c0); color: #166b75; }
.promo-badge.blue { background: linear-gradient(135deg,#9fd8ff,#3995e8); }
.promo-badge.purple { background: linear-gradient(135deg,#a85cff,#6e38d5); }
.promo-badge.red { background: linear-gradient(135deg,#ff6172,#ee253b); }
.promo-badge.yellow { background: linear-gradient(135deg,#ffd957,#ffa51b); color: #5d3f00; }
.promo-badge.gray { background: linear-gradient(135deg,#e4e7e6,#a9b1ae); color: #2e3834; }
.type, .active-status, .done-status { display: inline-flex; padding: 6px 10px; border-radius: 7px; font-style: normal; font-weight: 900; white-space: nowrap; }
.green-type, .active-status { color: var(--green); background: #eaf9f2; }
.blue-type { color: #1e80c7; background: #e8f3ff; }
.purple-type { color: #884fe2; background: #f1e8ff; }
.yellow-type { color: #b47a00; background: #fff4d8; }
.done-status { color: #5f6d67; background: #eef2f2; }
.promo-table td:last-child { display: flex; gap: 9px; align-items: center; }
.promo-table td button { display: grid; width: 38px; height: 38px; place-items: center; }
.promo-table td button.danger { color: #e34b5b; }
.promo-footer { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 18px 20px; border-top: 1px solid var(--line); }
.promo-footer p { margin: 0; color: #4f5e59; }
.promo-footer div { display: flex; gap: 10px; align-items: center; }
.promo-footer button, .promo-footer select { min-width: 38px; height: 38px; padding: 0 12px; }
.promo-footer button.active { color: #fff; background: var(--green); }

.promo-side { display: grid; gap: 0; }
.promo-summary, .ending-soon { padding: 22px; border-radius: 0; }
.promo-summary { border-radius: 8px 8px 0 0; }
.ending-soon { border-radius: 0 0 8px 8px; }
.promo-summary h2, .ending-soon h2 { margin: 0 0 20px; font-size: 17px; }
.promo-summary p { display: flex; justify-content: space-between; gap: 14px; margin: 16px 0; color: #4f5e59; font-weight: 800; }
.promo-summary b { color: var(--ink); }
.ending-soon > div { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 12px; }
.ending-soon a { color: var(--green); font-weight: 900; }
.ending-soon article { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; padding: 11px 0; }
.ending-soon b small { display: block; margin-top: 6px; color: var(--muted); }
.ending-soon span { display: grid; gap: 5px; justify-items: end; color: #d48200; font-weight: 900; }
.ending-soon span small { color: #4f5e59; }
.ending-soon button { display: inline-flex; width: 100%; height: 42px; justify-content: center; align-items: center; gap: 8px; margin-top: 18px; color: var(--green); border-color: rgba(15,159,99,.42); }

@media (max-width: 1500px) { .promo-main { grid-template-columns: 1fr; } .promo-stats { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 1200px) { .promo-stats { grid-template-columns: repeat(2,1fr); } .promo-filter { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 760px) {
  .promos-top { align-items: flex-start; flex-direction: column; }
  .promo-actions { width: 100%; flex-direction: column; }
  .promo-actions button { justify-content: center; }
  .promo-stats, .promo-filter { grid-template-columns: 1fr; }
  /* Rows per page footer — scroll horizontal */
  .promo-footer {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    white-space: nowrap;
  }
  .promo-footer::-webkit-scrollbar { display: none; }
  .promo-footer p { flex-shrink: 0; }
  .promo-footer div {
    flex-shrink: 0;
    flex-wrap: nowrap;
    align-items: center;
  }
}
