/*
 * Admin: reference data
 * Reference Data tab lists (admin/dashboard/_reference_data_detail_*):
 * special offers, pending programs, users + tier select.
 */

/* ===== Special Offers List ===== */
.special-offers-list,
.pending-review-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.special-offers-list li,
.pending-review-list li {
  border-bottom: 1px solid var(--color-border);
}

.special-offers-list li:last-child,
.pending-review-list li:last-child {
  border-bottom: none;
}

.special-offer-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
  text-decoration: none;
  color: inherit;
}

.special-offer-link:hover {
  color: var(--color-primary);
}

.special-offer-link .offer-name {
  font-weight: 500;
}

.special-offer-link .offer-meta {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.special-offer-link .wine-count {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.empty-message {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

/* ===== Users Table Specific ===== */
.users-table tr.inactive {
  opacity: 0.5;
}

.users-table .text-muted {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

/* Per-tier user counts beside the Users heading's total. The pills take the
   body font so they match the tier badges in the table, not the heading. */
.tier-counts {
  display: inline-flex;
  font-family: var(--font-family);
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-left: var(--space-sm);
  vertical-align: middle;
}

/* Tier select dropdown */
.tier-form {
  margin: 0;
}

.tier-select {
  height: 28px;
  padding: 0 var(--space-md);
  border-radius: var(--radius);
  font-size: var(--font-size-xs);
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  appearance: auto;
}

.tier-select.tier-free {
  background: color-mix(in srgb, var(--color-text-muted) 12%, transparent);
  color: var(--color-text-muted);
}

.tier-select.tier-plus {
  background: var(--color-primary-subtle);
  color: var(--color-primary);
}

.tier-select.tier-pro {
  background: color-mix(in srgb, var(--color-warning) 12%, transparent);
  color: var(--color-warning);
}
