.active-ads-card {
  overflow: hidden;
  padding: 0;
}

.active-ads-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 16px;
  border-bottom: 1px solid var(--border-soft);
}

.active-ads-card__head h2 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.25;
}

.active-ads-card__head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.active-ads-card__count {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.active-ads-table-wrap {
  overflow-x: auto;
}

.active-ads-table {
  min-width: 1140px;
}

.active-ads-table th,
.active-ads-table td {
  padding: 13px 16px;
  vertical-align: middle;
}

.active-ads-table th {
  background: var(--surface-subtle);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.active-ads-sort {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  white-space: nowrap;
  cursor: pointer;
}

.active-ads-sort:hover,
.active-ads-sort:focus-visible,
.active-ads-sort.is-active {
  color: var(--text);
}

.active-ads-sort:focus-visible {
  border-radius: 4px;
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.active-ads-sort__icons {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.active-ads-sort__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  opacity: 0.6;
}

.active-ads-sort__arrow.is-current {
  color: var(--accent);
  opacity: 1;
  font-weight: 700;
}

.active-ads-table td {
  color: var(--text-soft);
  font-size: 13px;
}

.active-ads-table tbody tr:last-child td {
  border-bottom: 0;
}

.active-ads-table tbody tr:hover td {
  background: var(--accent-softer);
}

.active-ads-table .active-ads-content {
  min-width: 250px;
  max-width: 420px;
  color: var(--text);
  font-weight: 650;
  line-height: 1.35;
}

.active-ads-table .active-ads-date,
.active-ads-table .active-ads-money {
  white-space: nowrap;
}

.active-ads-table .active-ads-stt {
  width: 52px;
  color: var(--muted);
  font-weight: 650;
  text-align: center;
}

.active-ads-table .active-ads-money {
  color: var(--text);
  font-weight: 700;
}

.active-ads-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f2f4f7;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.active-ads-empty td {
  padding: 30px 16px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 820px) {
  .active-ads-card__head {
    align-items: flex-start;
    padding: 16px;
  }
}
