/* Fluid, restrained table layout. Loaded after the report theme. */
.campaign-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.campaign-table th:nth-child(1),
.campaign-table td:nth-child(1) { width: 26%; }
.campaign-table th:nth-child(2),
.campaign-table td:nth-child(2) { width: 14%; }
.campaign-table th:nth-child(3),
.campaign-table td:nth-child(3) { width: 16%; }
.campaign-table th:nth-child(4),
.campaign-table td:nth-child(4) { width: 7%; }
.campaign-table th:nth-child(5),
.campaign-table td:nth-child(5) { width: 7%; }
.campaign-table th:nth-child(6),
.campaign-table td:nth-child(6) { width: 15%; }
.campaign-table th:nth-child(7),
.campaign-table td:nth-child(7) { width: 10%; }
.campaign-table th:nth-child(8),
.campaign-table td:nth-child(8) {
  width: 5%;
  padding-right: 12px;
  padding-left: 8px;
}

.campaign-table td { overflow: hidden; }
.campaign-open { margin-left: auto; }
.campaign-pair { min-width: 0; gap: 5px; white-space: nowrap; }

.campaign-yield .campaign-yield-value,
.campaign-yield.promotional .campaign-yield-value {
  color: #5f3dd1;
  font-weight: 400;
}

/* Keep category cues quiet: one visual language, subtle tonal differences. */
.campaign-table tr[data-category] .campaign-type {
  border: 1px solid #e7e0f3;
  background: #f6f3fb;
  color: #625674;
}
.campaign-table tr[data-category="flexible_savings"] .campaign-type,
.campaign-table tr[data-category="exchange_staking"] .campaign-type,
.campaign-table tr[data-category="hold_to_earn"] .campaign-type {
  border-color: #dcece7;
  background: #f2f8f6;
  color: #3e6f61;
}
.campaign-table tr[data-category="launchpool"] .campaign-type,
.campaign-table tr[data-category="launchpad"] .campaign-type {
  border-color: #e7e0f3;
  background: #f7f4fb;
  color: #665a76;
}

@media (max-width: 1050px) {
  .campaign-table th,
  .campaign-table td { padding-right: 10px; padding-left: 10px; }
  .campaign-product { grid-template-columns: 1fr; gap: 7px; min-width: 0; }
  .campaign-product > span:last-child { padding-left: 0; border-left: 0; }
  .campaign-product > span:last-child > small { max-width: 100%; }
  .campaign-pair { min-width: 0; }
}

@media (max-width: 760px) {
  .campaign-table-wrap { overflow-x: auto; }
  .campaign-table { min-width: 820px; table-layout: auto; }
  .campaign-table th:nth-child(n),
  .campaign-table td:nth-child(n) { width: auto; }
  .campaign-product { min-width: 210px; }
  .campaign-table th:nth-child(2),
  .campaign-table td:nth-child(2) { min-width: 145px; }
  .campaign-table th:nth-child(6),
  .campaign-table td:nth-child(6) { min-width: 145px; }
}
