/* shared.css — consistent UI styles */
:root {
  --brand-50: #eef2ff;
  --brand-100: #e0e7ff;
  --brand-200: #c7d2fe;
  --brand-300: #a5b4fc;
  --brand-400: #818cf8;
  --brand-500: #6366f1;
  --brand-600: #4f46e5;
  --brand-700: #4338ca;
  --brand-800: #3730a3;
  --brand-900: #312e81;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #f9fafb;
}

html,
body {
  color: var(--text);
  background: #f3f4f6;
}

.container {
  max-width: 1000px;
}

.tablist {
  gap: .5rem;
}

/* Base nav link */
.tablist a.nav-link {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--brand-200);
  background: #fff;
  color: #111827;
  padding: .375rem .75rem;
  border-radius: .375rem;
  text-decoration: none;
  line-height: 1.25rem;
  white-space: nowrap;
}

.tablist a.nav-link svg {
  flex-shrink: 0;
}

/* Active nav link */
.tablist a.nav-link.nav-link--active,
.tablist a.nav-link[aria-current="page"] {
  background: var(--brand-50);
  color: #1e3a8a;
  border-color: var(--brand-300);
  font-weight: 600;
}

/* Section cards */
.section-card,
.rounded-lg.border.bg-white {
  border: 1px solid var(--border);
  border-radius: .5rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.kpi {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: .375rem;
  padding: .5rem .75rem;
}

/* Tables */
table {
  border-collapse: separate;
  border-spacing: 0;
}

table th,
table td {
  border: 1px solid var(--border);
}

thead th {
  background: var(--brand-700);
  color: #fff;
  font-weight: 600;
}

.sticky-th {
  position: sticky;
  top: 0;
  z-index: 1;
}

/* Badges */
.badge {
  padding: .125rem .5rem;
  border-radius: .375rem;
  color: #fff;
}

/* Print */
@media print {
  .no-print {
    display: none !important;
  }

  body {
    background: #fff;
  }
}

/* Helper for muted description text */
.muted {
  color: var(--muted);
  font-size: .875rem;
}