/* Tenant Portal — style.css
 *
 * Shares design system with CB Ops admin portal but uses a blue accent
 * to visually distinguish the tenant-facing experience.
 */

:root {
  --color-bg: #f5f7fa;
  --color-surface: #ffffff;
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-primary-light: #dbeafe;
  --color-text: #1f2937;
  --color-text-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-success: #059669;
  --color-warning: #d97706;
  --color-danger: #dc2626;
  --color-info: #2563eb;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

/* ── Login Screen ───────────────────────────── */

.login-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #1e3a5f 0%, #1d4ed8 50%, #2563eb 100%);
}

.login-card {
  background: var(--color-surface);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 2.5rem;
  width: 400px;
  max-width: 90vw;
}

.login-brand {
  text-align: center;
  margin-bottom: 2rem;
}

.login-brand h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
}

.login-brand small {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.login-error {
  margin-top: 1rem;
  padding: 0.75rem;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  color: #991b1b;
  font-size: 0.85rem;
}

.hint {
  display: block;
  margin-top: 0.25rem;
  color: var(--color-text-muted);
  font-size: 0.78rem;
}

/* ── Mock-login section ────────────────────── */

.mock-login-section {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.mock-label {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}

.mock-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.btn-mock {
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn-mock:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* ── Layout ─────────────────────────────────── */

.shell {
  display: flex;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  padding: 2rem 2.5rem;
  overflow-y: auto;
  width: 95%;
  margin: 0 auto;
}

nav.sidebar {
  width: 240px;
  background: #1e3a5f;
  color: #f9fafb;
  padding: 1.5rem 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

nav.sidebar .brand {
  padding: 0 1.25rem 1.25rem;
  border-bottom: 1px solid #1e40af;
  margin-bottom: 0.75rem;
}

nav.sidebar .brand h1 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

nav.sidebar .brand small {
  color: #93bbfd;
  font-size: 0.75rem;
  font-family: monospace;
}

nav.sidebar a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  color: #dbeafe;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.15s;
}

nav.sidebar a:hover,
nav.sidebar a.active {
  background: #1e40af;
  color: #ffffff;
}

nav.sidebar a.active {
  border-left: 3px solid #60a5fa;
  padding-left: calc(1.25rem - 3px);
}

.nav-spacer {
  flex: 1;
}

.nav-logout {
  border-top: 1px solid #1e40af;
  margin-top: 0.5rem;
  padding-top: 0.75rem !important;
  color: #93bbfd !important;
  font-size: 0.85rem !important;
}

.nav-logout:hover {
  color: #f87171 !important;
}

.sidebar-user {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid #1e40af;
  font-size: 0.8rem;
  color: #93bbfd;
}

.sidebar-user .user-name {
  color: #eff6ff;
  font-weight: 500;
  font-size: 0.85rem;
}

.sidebar-user .user-role {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #93bbfd;
}

main.content {
  flex: 1;
  padding: 2rem;
  min-width: 0;
}

main.content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* ── Cards ──────────────────────────────────── */

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-text-muted);
}

.card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text-muted);
}

/* ── Dashboard Grid ─────────────────────────── */

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}

.stat-card .stat-icon {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.stat-card .stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
}

.stat-card .stat-label {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Status Banner ──────────────────────────── */

.status-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
}

.status-banner .status-icon {
  font-size: 1.5rem;
}

.status-banner .status-detail {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.status-banner .status-error {
  font-size: 0.85rem;
  color: var(--color-danger);
  margin-top: 0.25rem;
}

.status-Completed {
  background: #dbeafe;
  border: 1px solid #bfdbfe;
}

.status-InProgress {
  background: #fef3c7;
  border: 1px solid #fde68a;
}

.status-Failed {
  background: #fee2e2;
  border: 1px solid #fecaca;
}

/* ── Meta Grid ──────────────────────────────── */

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.meta-item {
  font-size: 0.85rem;
}

.meta-item .meta-label {
  color: var(--color-text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.meta-item .meta-value {
  margin-top: 0.1rem;
}

/* ── Tables ─────────────────────────────────── */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

table th {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 2px solid var(--color-border);
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

table tbody tr:hover {
  background: #f9fafb;
}

/* ── Badges ─────────────────────────────────── */

.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-active, .badge-Completed, .badge-Complete, .badge-Basic, .badge-success {
  background: #dbeafe;
  color: #1e40af;
}

.badge-Pending, .badge-InProgress, .badge-Premium, .badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.badge-Failed, .badge-error {
  background: #fee2e2;
  color: #991b1b;
}

.badge-Cancelled, .badge-Isolated {
  background: #f3f4f6;
  color: #4b5563;
}

/* ── Buttons ────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover { background: var(--color-primary-hover); }
.btn-primary:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  opacity: 0.7;
}

.btn-sm {
  padding: 0.25rem 0.6rem;
  font-size: 0.78rem;
}

/* ── Forms ──────────────────────────────────── */

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--color-text);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

/* ── Empty State ────────────────────────────── */

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
}

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.empty-state h3 {
  color: var(--color-text) !important;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.empty-state p {
  max-width: 440px;
  margin: 0 auto 0.5rem;
  font-size: 0.9rem;
}

/* ── Detail Header ──────────────────────────── */

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.detail-header h2 {
  margin-bottom: 0;
}

/* ── Import Meta ────────────────────────────── */

.import-meta {
  font-size: 0.9rem;
}

.import-meta .separator {
  margin: 0 0.75rem;
  color: var(--color-text-muted);
}

.error-count {
  color: var(--color-danger);
  font-weight: 600;
  text-decoration: underline;
}

/* ── Misc ───────────────────────────────────── */

.muted {
  color: var(--color-text-muted);
}

code {
  background: #f3f4f6;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.85em;
}

/* ── Toast ──────────────────────────────────── */

.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  color: #fff;
  font-size: 0.9rem;
  z-index: 999;
  animation: slideIn 0.3s ease;
}

.toast-success { background: var(--color-success); }
.toast-error   { background: var(--color-danger); }

@keyframes slideIn {
  from { transform: translateY(1rem); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* ── Loading ────────────────────────────────── */

.loading {
  text-align: center;
  padding: 3rem;
  color: var(--color-text-muted);
}

/* ── Responsive ─────────────────────────────── */

@media (max-width: 768px) {
  nav.sidebar { width: 64px; }
  nav.sidebar .brand h1,
  nav.sidebar .brand small,
  nav.sidebar a span { display: none; }
  main.content { padding: 1rem; }
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .meta-grid { grid-template-columns: 1fr; }
}

/* ── Tabs ───────────────────────────────────── */

.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 1.25rem;
}

.tab {
  padding: 0.6rem 1.25rem;
  border: none;
  background: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}

.tab:hover { color: var(--color-primary); }

.tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* ── Card header row ────────────────────────── */

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.card-header-row h3 { margin-bottom: 0; }

/* ── Policy table (plain headers) ───────────── */
.policy-table th {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 500;
  font-size: 0.875rem;
  color: #1f2937;
}

/* ── Toggle switch ──────────────────────────── */

.toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #d1d5db;
  border-radius: 24px;
  transition: background 0.2s;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
}

.toggle input:checked + .toggle-slider { background: var(--color-primary); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }
.toggle input:disabled + .toggle-slider { opacity: 0.7; cursor: not-allowed; }

/* ── Capabilities matrix table ──────────────── */

.cap-matrix { width: 100%; border-collapse: collapse; }
.cap-matrix thead th { border-bottom: 2px solid #e5e7eb; padding: 0.75rem 0.5rem; }
.cap-matrix tbody tr { border-bottom: 1px solid #f3f4f6; }
.cap-matrix tbody tr:last-child { border-bottom: none; }
.cap-matrix tbody td { padding: 0.75rem 0.5rem; vertical-align: middle; }
.cap-label-col { min-width: 200px; }
.cap-role-col { min-width: 110px; }
.cap-toggle-cell {
  text-align: center;
  vertical-align: middle;
}
.cap-toggle-cell label.toggle {
  display: block;
  margin: 0 auto;
}
.cap-required-label {
  font-size: 0.7rem;
  color: #6b7280;
  margin-top: 2px;
  font-style: italic;
  text-align: center;
}

/* ── Per-User Capability Dialog Table ───────── */

.btn-caps-edit {
  background: none;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  cursor: pointer;
  padding: 2px 6px;
  font-size: 0.85rem;
  color: #6b7280;
  transition: all 0.15s;
}
.btn-caps-edit:hover { background: #f3f4f6; color: #374151; border-color: #9ca3af; }

.ucap-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.ucap-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  padding: 0.4rem 0.5rem;
  border-bottom: 2px solid #e5e7eb;
  font-weight: 600;
}
.ucap-table td {
  padding: 0.5rem;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}
.ucap-table tbody tr:hover { background: #f9fafb; }
.ucap-row-overridden { background: #fffbeb !important; }
.ucap-row-overridden:hover { background: #fef3c7 !important; }

.ucap-yes { color: #059669; font-weight: 600; }
.ucap-no { color: #d1d5db; }
.ucap-granted { color: #059669; font-weight: 500; font-size: 0.82rem; }
.ucap-denied { color: #9ca3af; font-size: 0.82rem; }

.ucap-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  vertical-align: middle;
}
.ucap-badge-grant { background: #d1fae5; color: #065f46; }
.ucap-badge-revoke { background: #fee2e2; color: #991b1b; }

.ucap-revert {
  font-size: 0.7rem !important;
  padding: 0 4px !important;
  line-height: 1.2;
  color: #9ca3af;
  border: 1px solid #d1d5db;
  background: none;
  border-radius: 3px;
  cursor: pointer;
  margin-left: 4px;
  vertical-align: middle;
}
.ucap-revert:hover { color: #dc2626; border-color: #dc2626; }

.ucap-toggle-btn {
  font-size: 0.72rem !important;
  padding: 1px 8px !important;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  border-radius: 4px;
  cursor: pointer;
  color: #4b5563;
}
.ucap-toggle-btn:hover { background: #e5e7eb; }

.ucap-busy-dots {
  display: inline-block;
  font-size: 1.1rem;
  color: #6b7280;
  letter-spacing: 2px;
  animation: ucapPulse 1s ease-in-out infinite;
}
@keyframes ucapPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ── Dialog / Modal overlay ─────────────────── */

.dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.dialog {
  background: var(--color-surface);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  padding: 1.5rem;
  width: 420px;
  max-width: 90vw;
}

.dialog h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.dialog-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 1.25rem;
}

/* ── Small button variant ───────────────────── */

.btn-sm {
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
}

.btn-danger {
  background: var(--color-danger);
  color: #fff;
  border: 1px solid var(--color-danger);
}

.btn-danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

/* ── Table scrollable container ─────────────── */

.table-scroll {
  overflow-x: auto;
}

.text-center { text-align: center; }

/* ── Badge info ─────────────────────────────── */

.badge-info {
  background: #dbeafe;
  color: #1e40af;
}

.badge-custom {
  background: #fff7ed;
  color: #9a3412;
  border: 1.5px solid #f97316;
}

.sis-multi-select {
  min-width: 200px;
  max-width: 260px;
  min-height: 90px;
  padding: 0.2rem;
  font-size: 0.78rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
}
.sis-multi-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}
.sis-multi-select option {
  padding: 0.15rem 0.4rem;
}
.sis-multi-select option:checked {
  background: var(--color-primary);
  color: #fff;
}

.sis-policy-select {
  min-width: 200px;
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
}
.sis-policy-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* ── Import UI styles ───────────────────────── */

.stat-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 4rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-top: 0.25rem;
}

.text-danger { color: var(--color-danger); }
.text-warning { color: var(--color-warning, #d97706); }

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
}

.org-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 20rem;
  overflow-y: auto;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 0.5rem;
  padding: 0.75rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.25rem 0;
}

.checkbox-label input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
}

.error-msg {
  color: var(--color-danger);
  font-size: 0.9rem;
}

input[type="file"] {
  padding: 0.5rem;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 0.5rem;
  background: #fff;
}

.badge-Validated { background: #dbeafe; color: #1e40af; }
.badge-Validating { background: #fef3c7; color: #92400e; }
.badge-ValidationFailed { background: #fee2e2; color: #991b1b; }
.badge-Importing { background: #fef3c7; color: #92400e; }
.badge-Complete { background: #d1fae5; color: #065f46; }
.badge-Pending { background: #f3f4f6; color: #374151; }
.badge-Failed { background: #fee2e2; color: #991b1b; }
.badge-Error { background: #fee2e2; color: #991b1b; }
.badge-Warning { background: #fef3c7; color: #92400e; }

/* ── SIS Role Mapping wizard ────────────────── */

.mapping-wizard {
  max-width: 80%;
  margin: 0 auto;
}

.mapping-header {
  text-align: left;
  margin-bottom: 1.5rem;
}

.mapping-header h3 {
  margin: 0.5rem 0 0.25rem;
  font-size: 1.3rem;
}

.mapping-header .muted {
  margin: 0;
}

.mapping-icon {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.mapping-table {
  width: 100%;
  border-collapse: collapse;
}

.mapping-table th,
.mapping-table td {
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid var(--color-border, #e5e7eb);
}

.mapping-table th {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  white-space: normal;
  max-width: 90px;
  color: #1f2937;
}

.mapping-table tbody td:first-child {
  font-weight: 500;
}

.mapping-table .count-col {
  border-right: 2px solid var(--color-border, #e5e7eb);
  padding-right: 1.25rem;
}

.mapping-table .ignore-col {
  width: 70px;
  text-align: center;
  font-style: italic;
  color: var(--color-muted, #6b7280);
  padding-left: 1.25rem;
  border-left: 2px solid var(--color-border, #e5e7eb);
}

.mapping-table thead th.ignore-col {
  border-left: 2px solid var(--color-border, #e5e7eb);
  padding-left: 1.25rem;
}

.mapping-checkbox,
.mapping-radio {
  width: 1.15rem;
  height: 1.15rem;
  cursor: pointer;
  accent-color: var(--color-primary, #2563eb);
}

.mapping-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1rem;
  font-size: 0.85rem;
  color: var(--color-muted, #6b7280);
}

#wiz-mapping-summary,
#mapping-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.mapping-summary-item strong {
  color: var(--color-text, #1f2937);
  margin-right: 0.25rem;
}

.mapping-warning {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  color: #92400e;
  background: #fefce8;
  border: 1px solid #fde68a;
  border-radius: 6px;
  margin-top: 0.5rem;
}

.mapping-toggle-bar {
  display: flex;
  justify-content: flex-end;
  padding: 0.5rem 0.75rem;
}

.mapping-toggle-bar button {
  background: none;
  border: none;
  color: #3b82f6;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0;
}

.mapping-toggle-bar button:hover {
  text-decoration: underline;
}

.btn-link-toggle {
  background: none;
  border: none;
  color: #3b82f6;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0;
}

.btn-link-toggle:hover {
  text-decoration: underline;
}

tr.ignore-row-hidden,
table.ignore-row-hidden {
  display: none;
}

.mapping-row-unmapped {
  background: #fefce8;
}

.mapping-actions {
  display: flex;
  align-items: center;
  margin-top: 1.25rem;
}

/* ── Users & Roles enriched view ─────────────── */

.ur-info-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  color: #1e40af;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.ur-info-banner .banner-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  fill: #3b82f6;
}

.ur-info-banner a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}
.ur-info-banner a:hover { text-decoration: underline; }

.ur-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  color: #6b7280;
  font-size: 0.8rem;
  line-height: 1.4;
  margin-bottom: 1rem;
}
.ur-note .note-icon {
  flex-shrink: 0;
  font-size: 1rem;
  margin-top: 1px;
}

.ur-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.ur-search {
  flex: 1;
  min-width: 180px;
  max-width: 260px;
  padding: 0.45rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.85rem;
  background: #fff;
  outline: none;
}
.ur-search:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59,130,246,0.15);
}

.ur-filter {
  padding: 0.45rem 0.6rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.85rem;
  background: #fff;
  cursor: pointer;
}

.ur-toolbar-right {
  margin-left: auto;
}

.ur-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.ur-table th {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 2px solid #e5e7eb;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.ur-table th .sort-icon {
  font-size: 0.7rem;
  color: #9ca3af;
  margin-left: 4px;
}
.ur-table th:hover .sort-icon { color: #6b7280; }
.ur-table td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}
.ur-table tbody tr:hover { background: #f9fafb; }

.ur-table .user-name {
  font-weight: 500;
  color: #111827;
}

.ur-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}
.ur-badge-sis-policy {
  background: #dbeafe;
  color: #1d4ed8;
}
.ur-badge-override {
  background: #fed7aa;
  color: #9a3412;
}
.ur-badge-cap-override {
  background: #ede9fe;
  color: #5b21b6;
}
.ur-badge-manual {
  background: #e0e7ff;
  color: #3730a3;
}

.ur-role-select {
  padding: 0.3rem 0.4rem;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  font-size: 0.84rem;
  background: #fff;
  min-width: 160px;
}

.ur-count {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════════
   Setup Wizard
   ═══════════════════════════════════════════════════════════════ */

.wizard-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #f9fafb;
}

.wizard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 2rem;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.wizard-brand {
  flex: 1;
  text-align: center;
}

.wizard-brand h1 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.wizard-brand small {
  font-size: 0.8rem;
  color: #6b7280;
}

.wizard-logout {
  font-size: 0.85rem;
  color: #6b7280;
  text-decoration: none;
  font-weight: 500;
}
.wizard-logout:hover {
  color: var(--color-danger);
}

.wizard-content {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2.5rem 1rem 3rem;
}

.wizard-page {
  width: 100%;
  max-width: 780px;
}

.wizard-page.wizard-page-wide {
  max-width: 100%;
}

.wizard-content-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* ─── Step Indicator ──────────────────────────────────────────── */

.wizard-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 2rem;
}

.stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.stepper-line {
  width: 60px;
  height: 3px;
  flex-shrink: 0;
  background: #d1d5db;
  border-radius: 2px;
  /* center line with dot: (40px dot / 2) - (3px line / 2) = 18.5px */
  margin-top: 18.5px;
  transition: background 0.3s ease;
}
.stepper-line.completed {
  background: #10b981;
}
.stepper-line.transition {
  background: linear-gradient(to right, #10b981, #2563eb);
}

.stepper-label {
  font-size: 0.75rem;
  color: #6b7280;
  white-space: nowrap;
  margin-top: 0.15rem;
}
.stepper-label.step-label-active {
  color: var(--color-primary);
  font-weight: 600;
}

.step-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #d1d5db;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #d1d5db;
  transition: all 0.2s ease;
}
.step-dot svg {
  width: 18px;
  height: 18px;
}
.step-dot.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.2);
  animation: stepper-pulse 2s ease-in-out infinite;
}

@keyframes stepper-pulse {
  0%, 100% {
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.2);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(37, 99, 235, 0.12), 0 0 14px rgba(37, 99, 235, 0.15);
    transform: scale(1.08);
  }
}
.step-dot.completed {
  background: #10b981;
  border-color: #10b981;
}

/* ─── Titles ─────────────────────────────────────────────────── */

.wizard-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 0.35rem;
}

.wizard-subtitle {
  color: #6b7280;
  font-size: 0.95rem;
  margin: 0 0 2rem;
}

/* ─── Timeline (Screen 1) ────────────────────────────────────── */

.wizard-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.timeline-step {
  display: flex;
  gap: 1rem;
  position: relative;
  padding-bottom: 1.5rem;
}

/* Vertical connector between timeline icons */
.timeline-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 24px;
  bottom: 0;
  width: 2px;
  background: #059669;
}

.timeline-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  z-index: 1;
}

.timeline-body {
  flex: 1;
  min-width: 0;
}

.timeline-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.3rem;
}

.timeline-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.timeline-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #d1fae5;
  color: #065f46;
}

.timeline-body > p {
  font-size: 0.88rem;
  color: #4b5563;
  margin: 0 0 0.5rem;
  line-height: 1.5;
}

.timeline-detail {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: #059669;
  font-weight: 500;
}

/* ─── Callout Banner ─────────────────────────────────────────── */

.wizard-callout {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}

.callout-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.callout-body strong {
  display: block;
  font-size: 0.92rem;
  color: #1e40af;
  margin-bottom: 0.15rem;
}

.callout-body p {
  font-size: 0.85rem;
  color: #1e40af;
  margin: 0;
  opacity: 0.85;
}

/* ─── District Card (Screen 2) ───────────────────────────────── */

.district-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  margin-bottom: 2rem;
}

.district-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #f3f4f6;
}

.district-icon {
  flex-shrink: 0;
}

.district-title h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 0.15rem;
}

.district-id {
  font-size: 0.8rem;
  color: #6b7280;
  font-family: var(--font-mono, monospace);
}

.district-details {
  width: 100%;
  border-collapse: collapse;
}

.district-details tr {
  border-bottom: 1px solid #f3f4f6;
}
.district-details tr:last-child {
  border-bottom: none;
}

.district-details td {
  padding: 0.75rem 1.5rem;
  font-size: 0.88rem;
  vertical-align: middle;
}

td.detail-label {
  width: 180px;
  color: #6b7280;
  font-weight: 500;
}

td.detail-value {
  color: var(--color-text);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #6b7280;
}

.status-badge.active {
  background: #d1fae5;
  color: #065f46;
}

/* ─── Wizard Actions ─────────────────────────────────────────── */

/* Shared rule: center single button, spread two buttons apart */
.wizard-actions,
.sso-card-actions,
.sso-config-actions,
.sso-test-actions,
.sis-card-actions,
.sis-test-card-actions,
.sync-card-actions,
.school-select-actions,
.mapping-actions {
  justify-content: center;
}
.wizard-actions:has(> :nth-child(2)),
.sso-card-actions:has(> :nth-child(2)),
.sso-config-actions:has(> :nth-child(2)),
.sso-test-actions:has(> :nth-child(2)),
.sis-card-actions:has(> :nth-child(2)),
.sis-test-card-actions:has(> :nth-child(2)),
.sync-card-actions:has(> :nth-child(2)),
.school-select-actions:has(> :nth-child(2)),
.mapping-actions:has(> :nth-child(2)) {
  justify-content: space-between;
}

.wizard-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.wizard-secondary-action {
  text-align: center;
}

.wizard-secondary-action a {
  font-size: 0.85rem;
  color: #6b7280;
  text-decoration: none;
}
.wizard-secondary-action a:hover {
  text-decoration: underline;
  color: #4b5563;
}

/* ─── District Card Actions (inside card) ────────────────────── */

.district-card-actions {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid #f3f4f6;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

.district-card-secondary {
  text-align: center;
  margin-top: 0.75rem;
}

.district-card-secondary a {
  font-size: 0.85rem;
  color: #6b7280;
  text-decoration: none;
}
.district-card-secondary a:hover {
  text-decoration: underline;
  color: #4b5563;
}

/* ─── Wizard header back link ────────────────────────────────── */

.wizard-header-back {
  font-size: 0.85rem;
  color: #6b7280;
  text-decoration: none;
  font-weight: 500;
  margin-right: auto;
  display: none;
}
.wizard-header-back:hover {
  color: var(--color-primary);
}
.wizard-header-back.visible {
  display: inline;
}

.text-center {
  text-align: center;
}

.btn-lg {
  padding: 0.65rem 1.5rem;
  font-size: 0.95rem;
}

.btn-link {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 0.88rem;
  cursor: pointer;
  padding: 0.5rem;
}
.btn-link:hover {
  color: var(--color-primary);
}

.text-muted {
  color: #6b7280;
}

/* ═══════════════════════════════════════════════════════════════
   Wizard Screen 3 — SSO Setup (mocked)
   ═══════════════════════════════════════════════════════════════ */

.wizard-hero-icon {
  text-align: center;
  margin-bottom: 1rem;
}

.sso-info-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.sso-card-header {
  padding: 1.75rem 1.5rem 0;
  text-align: center;
}

.sso-card-header .wizard-hero-icon {
  margin-bottom: 0.75rem;
}

.sso-card-header .wizard-title {
  margin-bottom: 0.35rem;
}

.sso-card-header .wizard-subtitle {
  margin-bottom: 1.25rem;
}

.sso-info-section {
  padding: 1.25rem 1.5rem 0.5rem;
}

.sso-info-section h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 0.6rem;
}

.sso-prereqs {
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 10px;
  margin: 0 1.5rem 1.5rem;
  padding-bottom: 1rem;
}

.sso-steps-list {
  margin: 0;
  padding-left: 1.4rem;
  list-style: none;
  counter-reset: sso-step;
}

.sso-steps-list li {
  counter-increment: sso-step;
  position: relative;
  padding-left: 0.25rem;
  margin-bottom: 0.55rem;
  font-size: 0.88rem;
  color: #374151;
  line-height: 1.45;
}

.sso-steps-list li::before {
  content: counter(sso-step);
  position: absolute;
  left: -1.4rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: #eff6ff;
  color: #3b82f6;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 2px;
}

.sso-needs-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.sso-needs-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  color: #4b5563;
  line-height: 1.45;
}

.sso-needs-list li::before {
  content: "\25CB";
  position: absolute;
  left: 0;
  color: #9ca3af;
  font-size: 0.75rem;
  top: 1px;
}

.sso-card-actions {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  border-top: 1px solid #f3f4f6;
}

/* ═══════════════════════════════════════════════════════════════
   Wizard Screen 4 — Identity Provider Selection
   ═══════════════════════════════════════════════════════════════ */

.idp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.idp-option {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.9rem 1rem;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  text-align: left;
  width: 100%;
  font-family: inherit;
  font-size: inherit;
}

.idp-option:hover {
  border-color: #93c5fd;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.08);
}

.idp-option.selected {
  border-color: var(--color-primary);
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.idp-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

.idp-label {
  flex: 1;
  min-width: 0;
}

.idp-name {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
}

.idp-desc {
  display: block;
  font-size: 0.78rem;
  color: #6b7280;
  margin-top: 0.1rem;
}

.idp-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.idp-option.selected .idp-check svg circle {
  fill: var(--color-primary);
  stroke: var(--color-primary);
}

.idp-option.selected .idp-check svg {
  /* replace circle with checkmark */
}

/* Override the empty circle with a filled check for selected state */
.idp-option.selected .idp-check {
  position: relative;
}

.idp-option.selected .idp-check::after {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background: var(--color-primary);
  border-radius: 50%;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.idp-option.selected .idp-check svg {
  visibility: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   Wizard Screen 5 — Configure Identity Provider
   ═══════════════════════════════════════════════════════════════ */

.sso-config-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.75rem 2rem;
  max-width: 780px;
  margin: 0 auto;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.sso-form-group {
  margin-bottom: 1.25rem;
}

.sso-form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.35rem;
}

.sso-form-input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 0.88rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  color: var(--color-text);
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.sso-form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.sso-form-input[readonly] {
  background: #f9fafb;
  color: #6b7280;
}

.sso-form-input-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.sso-form-input-row .sso-form-input {
  flex: 1;
}

.btn-icon-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  min-width: 38px;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-icon-copy:hover {
  background: #e5e7eb;
}

.sso-form-help {
  display: block;
  font-size: 0.77rem;
  color: #9ca3af;
  margin-top: 0.3rem;
}

.sso-form-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0;
  color: #9ca3af;
  font-size: 0.82rem;
}

.sso-form-divider::before,
.sso-form-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.sso-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.sso-form-half {
  margin-bottom: 1rem;
}

.sso-config-actions {
  display: flex;
  align-items: center;
  padding-top: 1.25rem;
  margin-top: 1.25rem;
  border-top: 1px solid #f3f4f6;
}

.sso-config-actions-right {
  display: flex;
  gap: 0.75rem;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.btn-outline:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.btn-outline:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════════════════
   Wizard Screen 6 — Test SSO Connection
   ═══════════════════════════════════════════════════════════════ */

.sso-test-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 2rem 2.5rem;
  max-width: 620px;
  margin: 2rem auto 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.sso-test-desc {
  color: #6b7280;
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 1.25rem;
}

.btn-block {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.sso-test-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  color: #6b7280;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e5e7eb;
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.sso-test-success {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 1rem 1.25rem;
}

.sso-test-success strong {
  display: block;
  color: var(--color-text);
  font-size: 0.95rem;
}

.sso-test-success-msg {
  color: #6b7280;
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.sso-test-actions {
  display: flex;
  align-items: center;
  padding-top: 1.25rem;
  margin-top: 1.25rem;
  border-top: 1px solid #f3f4f6;
}

/* ═══════════════════════════════════════════════════════════════
   Wizard Screen 8 — Select SIS Provider
   ═══════════════════════════════════════════════════════════════ */

.sis-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  max-width: 660px;
  margin: 0 auto;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.sis-search {
  position: relative;
  margin-bottom: 1rem;
}

.sis-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.sis-search-input {
  width: 100%;
  padding: 0.6rem 0.75rem 0.6rem 2.25rem;
  font-size: 0.88rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  box-sizing: border-box;
}

.sis-search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.sis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.sis-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  text-align: left;
  width: 100%;
  font-family: inherit;
  font-size: inherit;
}

.sis-option:hover:not(.disabled) {
  border-color: #93c5fd;
  box-shadow: 0 0 0 2px rgba(59,130,246,0.08);
}

.sis-option.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.sis-option.selected {
  border-color: var(--color-primary);
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.sis-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
}

.sis-label {
  flex: 1;
  min-width: 0;
}

.sis-name {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-text);
}

.sis-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #059669;
  background: #ecfdf5;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  margin-top: 0.2rem;
}

.sis-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
}

.sis-option.selected .sis-check svg circle {
  fill: var(--color-primary);
  stroke: var(--color-primary);
}

.sis-option.selected .sis-check svg {
  visibility: hidden;
}

.sis-option.selected .sis-check::after {
  content: "✓";
  position: absolute;
  top: 0; left: 0;
  width: 20px; height: 20px;
  background: var(--color-primary);
  border-radius: 50%;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sis-card-actions {
  display: flex;
  align-items: center;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid #f3f4f6;
}

/* ═══════════════════════════════════════════════════════════════
   Wizard Screen 9 — Configure SIS (reuses sso-config-card)
   ═══════════════════════════════════════════════════════════════ */

.sso-form-select {
  appearance: auto;
  padding-right: 2rem;
}

/* ═══════════════════════════════════════════════════════════════
   Wizard Screen 10 — SIS Connection Test
   ═══════════════════════════════════════════════════════════════ */

.sis-test-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.75rem 2rem;
  max-width: 780px;
  margin: 1.5rem auto 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.sis-check-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.sis-check-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--color-text);
}

.sis-check-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner-sm {
  width: 18px;
  height: 18px;
  border: 2px solid #e5e7eb;
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.sis-check-active {
  animation: pulse-glow 1.5s ease-in-out infinite;
}

.sis-check-active span {
  color: var(--color-primary);
  font-weight: 600;
}

@keyframes pulse-glow {
  0%, 100% { background: transparent; }
  50% { background: #eff6ff; }
}

.sis-check-icon.done .spinner-sm {
  display: none;
}

.sis-success-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-top: 0.5rem;
}

.sis-test-card-actions {
  display: flex;
  align-items: center;
  padding-top: 1.25rem;
  margin-top: 1.25rem;
  border-top: 1px solid #f3f4f6;
}

/* ═══════════════════════════════════════════════════════════════
   Wizard Screen 11 — Upload & Sync Results
   ═══════════════════════════════════════════════════════════════ */

.sync-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.75rem 2rem;
  max-width: 660px;
  margin: 0 auto;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.upload-zone {
  border: 2px dashed #d1d5db;
  border-radius: 10px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
  cursor: pointer;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--color-primary);
  background: #f0f7ff;
}

.upload-zone-text {
  font-size: 0.95rem;
  color: var(--color-text);
  margin: 0 0 0.25rem;
}

.upload-zone-subtext {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0 0 0.5rem;
}

.upload-zone-link {
  color: var(--color-primary);
  cursor: pointer;
  text-decoration: underline;
}

.upload-zone-hint {
  font-size: 0.77rem;
  color: #9ca3af;
  margin: 0;
}

/* Sync progress bar */
.sync-progress {
  margin-bottom: 1.25rem;
}

.sync-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

.sync-progress-bar {
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.sync-progress-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Sync step rows */
.sync-steps {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.sync-step-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
}

.sync-step-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.sync-step-label {
  flex: 1;
  color: var(--color-text);
}

.sync-step-count {
  color: #6b7280;
  font-size: 0.82rem;
  text-align: right;
}

/* Sync log */
.sync-log {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  max-height: 160px;
  overflow-y: auto;
  margin-bottom: 1rem;
}

.sync-log pre {
  font-family: "SF Mono", "Menlo", monospace;
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.5;
}

.sync-card-actions {
  display: flex;
  padding-top: 1rem;
  border-top: 1px solid #f3f4f6;
}

.sync-error {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 1rem 1.25rem;
}

/* ═══════════════════════════════════════════════════════════════
   Wizard Screen 12 — Select Schools to Import
   ═══════════════════════════════════════════════════════════════ */

.school-select-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 0;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  overflow: hidden;
}

.school-select-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  font-size: 1.05rem;
  color: var(--color-text);
}

.school-select-summary .btn-link {
  font-size: 0.95rem;
  padding: 0 0.5rem;
}

.school-groups {
  max-height: 540px;
  overflow-y: auto;
}

.school-group {
  border-bottom: 1px solid #f3f4f6;
}

.school-group:last-child {
  border-bottom: none;
}

.school-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  background: #f9fafb;
  border-bottom: 1px solid #f3f4f6;
}

.school-group-toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 1.05rem;
}

.school-group-toggle input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--color-primary);
}

.school-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.5rem 0.65rem 3rem;
  border-bottom: 1px solid #f9fafb;
  transition: background 0.1s;
}

.school-row:hover {
  background: #f9fafb;
}

.school-row:last-child {
  border-bottom: none;
}

.school-row-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 1rem;
  color: var(--color-text);
}

.school-row-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
}

.school-row-meta {
  font-size: 0.92rem;
  color: #9ca3af;
  white-space: nowrap;
}

.school-select-actions {
  display: flex;
  align-items: center;
  padding: 1.15rem 1.5rem;
  border-top: 1px solid #e5e7eb;
}

/* ─── Screen 12 scale overrides ──────────────────────────────── */
.school-select-page .wizard-title { font-size: 1.85rem; }
.school-select-page .wizard-subtitle { font-size: 1.1rem; margin-bottom: 1.5rem; }
.school-select-page .school-select-actions .btn { font-size: 1rem; padding: 0.5rem 1.25rem; }

/* ═══════════════════════════════════════════════════════════════
   Wizard Screen 13 — Data Import Complete
   ═══════════════════════════════════════════════════════════════ */

.import-stats-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 1.5rem auto;
  max-width: 660px;
}

.import-stat-card {
  flex: 1;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.import-stat-icon {
  margin-bottom: 0.5rem;
}

.import-stat-icon svg {
  margin: 0 auto;
}

.import-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}

.import-stat-label {
  font-size: 0.82rem;
  color: #6b7280;
  margin-top: 0.15rem;
}

.import-preview-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  overflow: hidden;
}

.import-preview-tabs {
  display: flex;
  border-bottom: 1px solid #e5e7eb;
  padding: 0 1.25rem;
}

.import-preview-tab {
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #6b7280;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.import-preview-tab:hover {
  color: var(--color-text);
}

.import-preview-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.import-preview-content {
  padding: 0;
}

.import-preview-table {
  width: 100%;
  border-collapse: collapse;
}

.import-preview-table th,
.import-preview-table td {
  padding: 0.65rem 1.25rem;
  font-size: 0.88rem;
  text-align: left;
  border-bottom: 1px solid #f3f4f6;
}

.import-preview-table th {
  background: #f9fafb;
  font-weight: 600;
  color: #6b7280;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.import-preview-table tbody tr:last-child td {
  border-bottom: none;
}

.import-preview-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-top: 1px solid #e5e7eb;
}

/* ═══════════════════════════════════════════════════════════════
   Wizard Screen 14 — Role Mapping (reuses mapping-table styles)
   ═══════════════════════════════════════════════════════════════ */

/* Existing .mapping-table / .mapping-wizard styles apply.
   Extra overrides for wizard context only if needed. */

/* ═══════════════════════════════════════════════════════════════
   Wizard Screen 16 — Setup Complete
   ═══════════════════════════════════════════════════════════════ */

.setup-complete-icon {
  margin: 0.5rem auto 0;
  animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
  0%   { transform: scale(0.3); opacity: 0; }
  60%  { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}

.setup-summary-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  max-width: 500px;
  margin: 1.5rem auto 0;
  text-align: left;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.setup-summary-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.setup-summary-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
}

.setup-summary-item + .setup-summary-item {
  border-top: 1px solid #f3f4f6;
}

.setup-summary-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.setup-summary-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.setup-summary-text strong {
  font-size: 0.9rem;
  color: #1f2937;
}

.setup-summary-text .muted {
  font-size: 0.82rem;
  color: #6b7280;
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1rem;
}

.btn-block {
  display: block;
  width: 100%;
}

/* ─── Screens 17-22: Admin Console ─────────────────────────── */

/* Breadcrumb */
.breadcrumb {
  font-size: 0.82rem;
  margin-bottom: 0.25rem;
}

/* Page header with badge */
.page-header-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.foundational-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* Nav lock badge */
.nav-badge-lock {
  font-size: 0.6rem;
  opacity: 0.5;
  margin-left: auto;
}

/* ── Health Banner ──────────────────────── */

.health-banner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.health-banner.health-ok {
  background: #d1fae5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}

.health-banner.health-warn {
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #92400e;
}

/* ── Health Cards Grid ──────────────────── */

.health-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.health-card {
  position: relative;
}

.health-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.health-card-header h3 {
  margin: 0;
}

.health-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.health-dot.healthy {
  background: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
}

.health-dot.warning {
  background: #d97706;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.2);
}

.health-dot.neutral {
  background: #9ca3af;
}

.health-meta {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  line-height: 1.7;
}

.health-card-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ── Quick Actions ──────────────────────── */

.quick-actions-grid {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.quick-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  background: #f3f4f6;
  color: var(--color-text);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid #e5e7eb;
  transition: all 0.15s;
}

.quick-action-btn:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
  color: var(--color-primary);
}

/* ── Text colors ──────────────────────── */

.text-success { color: #059669; font-weight: 600; }
.text-warn { color: #d97706; font-weight: 600; }
.text-muted { color: #9ca3af; }

/* ── Connection status ──────────────────── */

.connection-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

.connection-status.connected {
  background: #d1fae5;
  color: #065f46;
}

.connection-status.disconnected {
  background: #fef3c7;
  color: #92400e;
}

.connection-status.neutral {
  background: #f3f4f6;
  color: #6b7280;
}

/* ── Identity status row ──────────────── */

.identity-status-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.identity-actions .btn {
  font-size: 0.88rem;
}

/* ── Outline warn button ──────────────── */

.btn-outline-warn {
  background: transparent;
  color: #d97706;
  border: 1px solid #d97706;
}
.btn-outline-warn:hover {
  background: #fef3c7;
}

/* ── Toggle Switch ──────────────────────── */

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: #d1d5db;
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.2s;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--color-primary);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

/* ── Alert channel cards ──────────────── */

.alert-channel-card .form-group {
  margin-top: 0.75rem;
}

.checkbox-group,
.radio-group {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.checkbox-group label,
.radio-group label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  cursor: pointer;
}

/* ── Audit Log ──────────────────────────── */

.badge-system {
  background: #e0e7ff;
  color: #3730a3;
}

.badge-roles {
  background: #ede9fe;
  color: #5b21b6;
}

.badge-connections {
  background: #dbeafe;
  color: #1e40af;
}

.badge-sync {
  background: #d1fae5;
  color: #065f46;
}

.badge-users {
  background: #fef3c7;
  color: #92400e;
}

/* ── Modal Overlay ──────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-content {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* ── Button sizes ──────────────────────── */

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
}

/* ── Import Method Step ────────────────── */

.import-method-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 1.5rem auto 0;
}

.import-method-card {
  padding: 1.25rem 1.5rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  text-align: left;
  width: 100%;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
}

/* Inner wrapper needed because <button> doesn't support display:grid */
.import-method-card-inner {
  display: grid;
  grid-template-columns: 48px 1fr 28px;
  gap: 1rem;
  align-items: start;
}

.import-method-card:hover {
  border-color: #a5b4fc;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

.import-method-card.selected {
  border-color: #4F46E5;
  background: #faf8ff;
  box-shadow: 0 2px 12px rgba(79, 70, 229, 0.12);
}

.import-method-icon {
  padding-top: 0.1rem;
}

.import-method-info {
  min-width: 0;
}

.import-method-name {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 0.3rem;
}

.import-method-desc {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0 0 0.65rem;
  line-height: 1.5;
}

.import-method-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.import-method-benefits li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: #475569;
}

.import-method-benefits li svg {
  flex-shrink: 0;
}

.import-method-radio {
  padding-top: 0.6rem;
  justify-self: end;
}

