/* UI Enterprise additions (Bootstrap 5 / AdminKit base) */

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 2000;
  padding: 0.5rem 0.75rem;
  background: #000;
  color: #fff;
  border-radius: 0.25rem;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: translateY(0);
}

/* Strong, consistent focus ring */
:focus-visible {
  outline: 3px solid rgba(59, 125, 221, 0.65);
  outline-offset: 2px;
}
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.form-check-input:focus-visible,
a:focus-visible {
  box-shadow: 0 0 0 0.25rem rgba(59, 125, 221, 0.2) !important;
}

/* Mobile-first content spacing */
.content .container-fluid {
  max-width: 1400px;
}

/* KPI cards */
.kpi-card {
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.kpi-card .kpi-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: rgba(59, 125, 221, 0.12);
  color: #3b7ddd;
}
.kpi-card .kpi-value {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Tables */
.table thead th {
  white-space: nowrap;
}
.table td {
  vertical-align: middle;
}

/* Wizard */
.wizard-steps .nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.wizard-steps .step-badge {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(108, 117, 125, 0.15);
  color: #6c757d;
  font-weight: 700;
}
.wizard-steps .nav-link.active .step-badge {
  background: rgba(59, 125, 221, 0.15);
  color: #3b7ddd;
}

/* High contrast mode (toggle adds .contrast-high on <html>) */
html.contrast-high {
  --bs-body-bg: #ffffff;
  --bs-body-color: #111111;
}
html.contrast-high .card,
html.contrast-high .modal-content {
  border-color: rgba(0, 0, 0, 0.25) !important;
}
html.contrast-high .sidebar {
  background: #0b1324 !important;
}

/* Live notification inbox */
.live-notif-menu {
  width: min(420px, 92vw);
  max-height: 70vh;
  overflow: auto;
}
.live-notif-item {
  white-space: normal;
}
