/* AffiliateWP – Referrals Tab Enhancer UI (theme-friendly) */
.affwp-rt{
  margin: .5rem 0 1rem;
  font: inherit;
  color: inherit;
}
.affwp-rt__filters{
  display: grid;
  grid-template-columns: repeat( auto-fit, minmax(180px, 1fr) );
  gap: .75rem;
  align-items: end;
  margin-bottom: .75rem;
}
.affwp-rt__field{
  display:flex;
  flex-direction: column;
  gap:.25rem;
}
.affwp-rt__field--wide{ grid-column: span 2; }
@media (max-width:700px){ .affwp-rt__field--wide{ grid-column: span 1; } }

.affwp-rt__actions{
  display:flex;
  gap:.5rem;
  align-items:center;
}

.affwp-rt__meta{
  margin:.25rem 0 .5rem;
  font-size:.95em;
  opacity:.9;
}

.affwp-rt__tablewrap{
  overflow:auto;
}

.affwp-rt__table th, .affwp-rt__table td{
  white-space: nowrap;
}
.affwp-rt__table td{
  vertical-align: top;
}
.affwp-rt__table .affwp-rt__num{
  text-align:right;
}

.affwp-rt__empty{
  display:none;
  padding:1rem;
}

.affwp-rt__pager{
  display:flex;
  gap:.5rem;
  align-items:center;
  margin:.5rem 0;
}
