/* ============================================================
   BILLING.CSS — Billing View
   ============================================================ */

/* ── Billing Header ──────────────────────────────────────── */
.billing-header {
  background: var(--n-0);
  border-bottom: 1px solid var(--n-150);
  padding: 20px 24px 0;
}

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

/* ── Billing Content ─────────────────────────────────────── */
.billing-content {
  padding: var(--space-5) var(--space-5);
}

/* ── Billing Table ───────────────────────────────────────── */
.billing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--n-0);
  border: 1.5px solid var(--n-150);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  font-size: 13.5px;
}

.billing-table thead {
  background: var(--n-50);
}

.billing-table th {
  padding: 11px var(--space-4);
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--n-400);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1.5px solid var(--n-150);
  white-space: nowrap;
}

.billing-table td {
  padding: 13px var(--space-4);
  color: var(--n-700);
  border-bottom: 1px solid var(--n-100);
  vertical-align: middle;
}

.billing-table tbody tr:last-child td { border-bottom: none; }
.billing-table tbody tr:hover { background: var(--brand-50); }

.billing-table .client-col {
  font-weight: 600;
  color: var(--brand-500);
  cursor: pointer;
}
.billing-table .client-col:hover { color: var(--brand-700); }

.billing-table .amount-col {
  font-weight: 600;
  color: var(--n-800);
}

/* Payment status badges */
.status-paid {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: var(--accent-green-lt);
  color: var(--accent-green);
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 600;
}
.status-unpaid {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: var(--accent-amber-lt);
  color: var(--accent-amber);
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 600;
}
.status-unpaid::before { content: '●'; font-size: 8px; }
.status-paid::before   { content: '✓'; }

/* ── Invoice link ────────────────────────────────────────── */
.invoice-link {
  color: var(--brand-500);
  font-weight: 600;
  cursor: pointer;
  font-size: 12px;
}
.invoice-link:hover { color: var(--brand-700); text-decoration: underline; }

/* ── Settings View ───────────────────────────────────────── */
.settings-tab-content { display: none; }
.settings-tab-content:first-child { display: block; }
