/* =========================================================
   GLOBAL BASE + SHARED CONTRACTS
   ---------------------------------------------------------
   RULES:
   • No page layouts
   • No attorney-specific UI
   • No client-specific UI
   • Shared primitives ONLY
========================================================= */

/* ---------- Reset ---------- */

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto,
    Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue,
    sans-serif;
  background: #f5f6f8;
  color: #111;
}

* { box-sizing: border-box; }

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Utility ---------- */

.hidden {
  display: none !important;
}

.muted {
  color: #777;
}

/* ---------- Containers ---------- */

.container {
  padding: 24px;
}

.card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
}

/* ---------- Tables (Generic) ---------- */

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.data-table th,
.data-table td {
  padding: 14px;
  border-bottom: 1px solid #eee;
}

.data-table tr {
  cursor: pointer;
}

.data-table tr:hover:not(.selected) {
  background: #f8fafc;
}

/* ---------- Persistent Selection ---------- */

.clickable-row.selected {
  background: rgba(37, 99, 235, 0.08);
  border-left: 3px solid #2563eb;
}

.clickable-row.selected td {
  font-weight: 500;
}

/* ---------- Tabs ---------- */

.tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.tab {
  padding: 10px 16px;
  border: none;
  background: #e5e7eb;
  cursor: pointer;
  border-radius: 6px;
}

.tab.active {
  background: #1e3a8a;
  color: #fff;
}

/* ---------- Status Pills (Shared) ---------- */

.status-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.status-pill.open {
  background: #e0f2fe;
  color: #0369a1;
}

.status-pill.active {
  background: #dcfce7;
  color: #166534;
}

.status-pill.discovery {
  background: #fef3c7;
  color: #92400e;
}
