/* health-check.css -- Health Check modal (.hc-* prefix)
   Modal chrome only. Summary card visuals reuse .ciw-summary-* from
   csv-import-wizard.css (no duplication, no drift). */

/* ── Backdrop ────────────────────────────────────────────────────────── */
.hc-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 2rem 1rem;
  z-index: 60;
  overflow-y: auto;
}
.hc-backdrop[hidden] { display: none !important; }

/* ── Modal ───────────────────────────────────────────────────────────── */
.hc-modal {
  width: 100%;
  max-width: 72rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
}

/* ── Header ──────────────────────────────────────────────────────────── */
.hc-header {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.hc-header-title {
  flex: 1;
  font-size: 0.875rem; font-weight: 600; color: var(--text-primary);
}
.hc-header i { width: 1rem; height: 1rem; color: var(--text-muted); }

/* ── Close button ────────────────────────────────────────────────────── */
.hc-close-btn {
  width: 1.75rem; height: 1.75rem; border-radius: var(--rm);
  background: transparent; border: none;
  color: var(--text-secondary); line-height: 1;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.hc-close-btn:hover { background: var(--bg-base); color: var(--text-primary); }
.hc-close-btn i { width: 1rem; height: 1rem; }

/* ── Body ────────────────────────────────────────────────────────────── */
.hc-body {
  padding: 1.25rem 1.5rem 0.75rem;
}

/* ── Empty state note ────────────────────────────────────────────────── */
.hc-empty-note {
  text-align: center;
  color: var(--text-faint);
  font-size: 0.8125rem;
  margin: 0.85rem 0 0;
}

/* ── In-modal preview table overrides ───────────────────────────────── */
/* Base table styling (background, thead surface, hover, chip font-size)
   lives in csv-import-wizard.css so the wizard Preview and Health Check
   stay visually identical. Only modal-specific tweaks live here. */
.hc-modal .ciw-preview-scroll {
  margin-top: 1rem;
  max-height: calc(100vh - 18rem); /* recovers space the intro note used */
}

/* Tighter pagination footer (less air around Prev / Next / page info) */
.hc-modal .ciw-preview-pagination {
  margin-top: 0.5rem;
  padding: 0.25rem 0.25rem 0;
}
