/* ============================================================
   CLIENTS.CSS — Clients View & Client Tables
   ============================================================ */

/* ── Clients Header ──────────────────────────────────────── */
.clients-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
  background: var(--n-0);
  border-bottom: 1px solid var(--n-150);
}

.clients-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--n-800);
  font-family: var(--font-display);
}

.clients-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-bottom: 12px;
}

/* ── Clients Tabs ────────────────────────────────────────── */
.billing-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--n-150);
  background: var(--n-0);
  overflow-x: auto;
}

.billing-tab {
  padding: 12px 20px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--n-400);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: all var(--t-fast);
}
.billing-tab:hover { color: var(--n-600); }
.billing-tab.active {
  color: var(--brand-500);
  border-bottom-color: var(--brand-500);
  font-weight: 600;
}

/* ── Clients Table ───────────────────────────────────────── */
.clients-table {
  background: var(--n-0);
  border: 1.5px solid var(--n-150);
  border-radius: var(--r-md);
  margin: var(--space-5) var(--space-5);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.table-header {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1.2fr 1fr 190px;
  padding: 11px var(--space-4);
  background: var(--n-50);
  border-bottom: 1.5px solid var(--n-150);
  font-size: 11px;
  font-weight: 700;
  color: var(--n-400);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.table-row {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1.2fr 1fr 190px;
  padding: 13px var(--space-4);
  border-bottom: 1px solid var(--n-100);
  font-size: 13.5px;
  color: var(--n-700);
  align-items: center;
  transition: background var(--t-fast);
}
.table-row:last-child { border-bottom: none; }
.table-row:hover { background: var(--brand-50); }

.table-row .client-name {
  font-weight: 600;
  color: var(--brand-500);
  cursor: pointer;
  transition: color var(--t-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}
.table-row .client-name:hover { color: var(--brand-700); }

.client-initials {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-300), var(--brand-500));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.table-actions {
  display: flex;
  gap: 4px;
}
.table-action-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  border-radius: var(--r-sm);
  color: var(--n-400);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--t-fast);
}
.table-action-btn:hover { background: var(--n-100); color: var(--n-600); }
.table-action-btn.danger:hover { background: var(--accent-red-lt); color: var(--accent-red); }

/* ── Client Info Panel ───────────────────────────────────── */
.client-info-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 12px var(--space-4);
  border-bottom: 1px solid var(--n-100);
  cursor: pointer;
  transition: background var(--t-fast);
}
.client-info-item:hover { background: var(--brand-50); }
.client-info-item.selected { background: var(--brand-50); }

.client-info-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-300), var(--brand-500));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.client-info-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--n-700);
  line-height: 1.3;
}
.client-info-detail {
  font-size: 12px;
  color: var(--n-400);
}

/* ── Status Badges ───────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.badge-active       { background: var(--accent-green-lt); color: #166534; }
.badge-inactive     { background: var(--n-100); color: var(--n-500); }
.badge-prospective  { background: var(--accent-amber-lt); color: #92400e; }
.badge-adult        { background: var(--accent-blue-lt); color: #1e40af; }
.badge-minor        { background: #f3e8ff; color: #6b21a8; }
