/* ══════════════════════════════════════════════════════════════════
   Patient CRM — Module Styles
   ══════════════════════════════════════════════════════════════════ */

.modal-wide { max-width: 800px; }

/* ── CRM Connection Banner ─────────────────────────────────── */
.crm-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #166534;
}
.crm-banner-icon { font-size: 16px; }
.crm-banner-warn {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}
.crm-banner-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

/* ── Patient type badges ───────────────────────────────────── */
.patient-type {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}
.type-pedia { background: #dbeafe; color: #1d4ed8; }
.type-adult { background: #dcfce7; color: #15803d; }

/* ── Branch pills ──────────────────────────────────────────── */
.branch-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  background: #f1f5f9;
  color: #475569;
  margin-right: 4px;
}

/* ── Clickable table rows ──────────────────────────────────── */
#patientTable tr { cursor: pointer; transition: background .15s; }
#patientTable tr:hover { background: var(--primary-xlight); }

/* ── Detail grid ───────────────────────────────────────────── */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.detail-item {}
.detail-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.detail-value {
  font-size: 14px;
  color: var(--text);
}
.detail-full { grid-column: 1 / -1; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .detail-grid { grid-template-columns: 1fr; }
  .modal-wide { max-width: 100%; }
}
