/* Shared styles for the CLV lever-comparison panel (apps/CLV/clv_lever_panel.js).
   Loaded by both the full and basic CLV tools so the panel reads identically. */

.clv-lever-radio {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border: 1.5px solid var(--app-border, #d6dfea);
  border-radius: 6px;
  background: #f8f9fa;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
  -webkit-user-select: none;
  user-select: none;
}
.clv-lever-radio:hover { border-color: #2a7de1; background: #eef4fc; }
.clv-lever-radio--on {
  border-color: #2a7de1;
  background: #e8f0fe;
  color: #1a56db;
  font-weight: 500;
}
.clv-lever-radio input { accent-color: #2a7de1; cursor: pointer; }

.clv-lever-setup {
  font-size: 0.88rem;
  line-height: 1.5;
  background: #f8fafc;
  border-left: 3px solid #2a7de1;
  border-radius: 0 6px 6px 0;
  padding: 0.6rem 0.9rem;
  margin: 0.9rem 0 0.75rem;
}

.clv-sig-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.9rem; }
.clv-sig {
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
}
.clv-sig--yes { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.clv-sig--no { background: #f8fafc; color: #64748b; border: 1px solid #e2e8f0; }

.clv-lever-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.clv-lever-table th,
.clv-lever-table td {
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--app-border, #e2e8f0);
  text-align: left;
}
.clv-lever-table .num { text-align: right; }
.clv-lever-table tbody tr.clv-row-base { background: #eff6ff; }
.clv-lever-table .positive { color: #15803d; font-weight: 600; }
.clv-lever-table .negative { color: #b91c1c; font-weight: 600; }
.clv-mean-sub { font-size: 0.72rem; color: var(--app-muted, #6b7280); font-weight: 400; }

/* A three-row table with arrows reads as before-and-after at a glance, so the
   disclaimer sits with the numbers rather than in a panel further down the page. */
.clv-lever-caveat {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  line-height: 1.55;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  color: #78350f;
}

.clv-lever-note {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  line-height: 1.5;
  background: #f8fafc;
  border-left: 3px solid #94a3b8;
  padding: 0.6rem 0.9rem;
}

.clv-confound {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  color: #7f1d1d;
}
.clv-confound p { margin: 0.35rem 0 0; font-size: 0.86rem; line-height: 1.55; }
