/* voter-card.css — dense voter row used by /voters lists.
 * Sits on top of .vc-card (glass.css). One file so list/detail/search share it. */

.vc-voter-card {
  padding: 12px 14px;
  margin: 8px 0;
}

.vc-voter-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.vc-voter-card__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--vc-text-high);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vc-voter-card__name-regional {
  font-weight: 400;
  color: var(--vc-text-muted);
  font-size: 14px;
}
.vc-voter-card__epic {
  font-size: 11px;
  color: var(--vc-text-muted);
  font-family: ui-monospace, SFMono-Regular, monospace;
  letter-spacing: 0.04em;
}

.vc-voter-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.vc-voter-card__pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  font-size: 11px;
  color: var(--vc-text-muted);
  background: var(--vc-bg-glass);
  border: 1px solid var(--vc-border);
  border-radius: var(--vc-radius-pill);
}

.vc-voter-card__row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.35;
}
.vc-voter-card__row-label {
  flex: 0 0 38px;
  color: var(--vc-text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: 1px;
}
.vc-voter-card__row-value {
  color: var(--vc-text-high);
  flex: 1;
  min-width: 0;
}

.vc-voter-card__overlay {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--vc-border);
}

.vc-chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--vc-radius-pill);
  border: 1px solid transparent;
}
.vc-chip--phone { background: var(--vc-primary-soft); color: var(--vc-primary); }
.vc-chip--wa    { background: rgba(37, 211, 102, 0.16); color: #25d366; }
.vc-chip--party { background: var(--vc-bg-glass); color: var(--vc-text-high); border-color: var(--vc-border); }
.vc-chip--note  { background: rgba(245, 158, 11, 0.16); color: var(--vc-warning); }

/* SupporterType chips — semantic colours per bucket. */
.vc-chip--sup-loyal     { background: rgba(34, 197, 94, 0.16);  color: #22c55e; }
.vc-chip--sup-swing     { background: rgba(245, 158, 11, 0.16); color: var(--vc-warning); }
.vc-chip--sup-opponent  { background: rgba(239, 68, 68, 0.16);  color: var(--vc-danger); }
.vc-chip--sup-undecided { background: rgba(148, 163, 184, 0.18); color: var(--vc-text-muted); }

/* ---------- Filter bar that sits above a list ---------- */
.vc-filter-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin: 12px 0;
}
.vc-filter-bar__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.vc-filter-bar__row .vc-select { width: auto; min-width: 130px; }

.vc-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--vc-text-muted);
  font-size: 14px;
}

.vc-paging {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.vc-paging__info { font-size: 12px; color: var(--vc-text-muted); }

/* ---------- Family-members panel ---------- */
.vc-fm-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--vc-border);
}
.vc-fm-row:last-of-type { border-bottom: 0; }
.vc-fm-row__display {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.vc-fm-row__actions {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}
.vc-fm-add {
  display: grid;
  grid-template-columns: 1fr 1fr 80px 1fr;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--vc-border);
}
.vc-fm-add > label,
.vc-fm-add > .vc-btn {
  grid-column: 1 / -1;
}
