/*
 * BPC Athlete Intelligence — fixed application theme (single brand look).
 * Loaded after main.css / responsive.css. Do not pair with blue/dark/semi-dark/bordered theme CSS.
 */
:root {
  --bpc-navy: #0d1b3e;
  --bpc-navy-hover: #1a2f6b;
  --bpc-page-bg: #f4f6fa;
  --bpc-card-border: #e8ecf2;
  --bpc-text: #1a1f36;
  --bpc-text-secondary: #6b7280;
  --bpc-text-caption: #9ca3af;
  --bpc-link: #2563eb;
  --bpc-link-hover: #1d4ed8;
  --bpc-success: #10b981;
  --bpc-warning: #f59e0b;
  --bpc-danger: #ef4444;
  --bpc-card-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --bpc-sidebar-header-height: 155px;
  --bpc-topbar-height: 64px;
  --bs-primary: #0d1b3e;
  --bs-primary-rgb: 13, 27, 62;
  --bs-link-color: var(--bpc-link);
  --bs-link-hover-color: var(--bpc-link-hover);
  --bs-body-color: var(--bpc-text);
  --bs-body-bg: var(--bpc-page-bg);
  --bs-secondary-color: var(--bpc-text-secondary);
  --bs-border-color: var(--bpc-card-border);
  --bs-success: #10b981;
  --bs-warning: #f59e0b;
  --bs-danger: #ef4444;
}

html {
  font-size: 16px;
}

body {
  color: var(--bpc-text);
  background-color: var(--bpc-page-bg) !important;
  background-image: none !important;
  overflow-x: clip;
}

/* ——— Header — WHITE (matches reference design) ——— */
.top-header .navbar {
  background-color: #ffffff !important;
  box-shadow: 0 1px 0 var(--bpc-card-border), 0 2px 8px rgba(0, 0, 0, 0.04);
  height: var(--bpc-topbar-height);
  min-height: var(--bpc-topbar-height);
}

.top-header .navbar .nav-item {
  height: var(--bpc-topbar-height);
}

/* Hamburger / menu toggle */
.top-header .btn-toggle a {
  color: #4b5563 !important;
}

.top-header .btn-toggle a:hover,
.top-header .btn-toggle a:focus {
  background-color: #f3f4f6 !important;
  color: #1a1f36 !important;
}

/* Bell, user, and nav icon links */
.top-header .nav-right-links .nav-link {
  color: #4b5563 !important;
}

.top-header .nav-right-links .nav-link:hover,
.top-header .nav-right-links .nav-link:focus {
  background-color: #f3f4f6 !important;
  color: #1a1f36 !important;
}

/* Search bar — explicit padding beats global .form-control !important (fixes icon overlap) */
.top-header .navbar .search-bar .search-control {
  background-color: #f4f6fa !important;
  border: 1px solid #e8ecf2 !important;
  color: #1a1f36 !important;
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
  padding-left: 2.75rem !important;
  padding-right: 1rem !important;
  padding-inline-start: 2.75rem !important;
  padding-inline-end: 1rem !important;
  font-size: 0.9375rem !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
}

.top-header .navbar .search-bar .search-control::placeholder {
  color: #6b7280 !important;
  opacity: 1 !important;
}

.top-header .navbar .search-bar .search-control:focus {
  background-color: #fff !important;
  border-color: var(--bpc-navy) !important;
  color: #1a1f36 !important;
  box-shadow: 0 0 0 3px rgba(13, 27, 62, 0.08) !important;
}

.top-header .navbar .search-bar .search-control:focus::placeholder {
  color: #9ca3af !important;
}

/* Icon fixed inset — does not sit on top of text */
.top-header .navbar .search-bar #bpcSearchWrap > span.material-icons-outlined {
  color: #6b7280 !important;
  pointer-events: none;
  z-index: 2;
  inset-inline-start: 0.85rem !important;
  inset-inline-end: auto !important;
  margin-left: 0 !important;
  margin-inline-start: 0 !important;
  font-size: 1.25rem !important;
  width: 1.25rem;
  transform: translateY(-50%) !important;
}

/* Sidebar */
.sidebar-wrapper {
  background-color: var(--bpc-navy) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.sidebar-wrapper .sidebar-header {
  background-color: var(--bpc-navy) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  height: var(--bpc-sidebar-header-height);
  min-height: var(--bpc-sidebar-header-height);
}

.sidebar-wrapper .sidebar-header .sidebar-close {
  color: #fff !important;
}

.sidebar-wrapper .sidebar-header .sidebar-close:hover,
.sidebar-wrapper .sidebar-header .sidebar-close:focus {
  background-color: rgba(255, 255, 255, 0.12) !important;
}

.bpc-sidebar-logo-img {
  width: auto;
  height: 126px;
  max-width: 210px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  padding: 8px 0;
}

.sidebar-wrapper .sidebar-nav {
  background-color: var(--bpc-navy) !important;
  margin-top: var(--bpc-sidebar-header-height);
}

.sidebar-wrapper .sidebar-nav .metismenu ul {
  background-color: rgba(0, 0, 0, 0.12) !important;
}

.sidebar-wrapper .sidebar-nav .metismenu a {
  color: rgba(255, 255, 255, 0.92) !important;
}

.sidebar-wrapper .sidebar-nav .metismenu a:hover,
.sidebar-wrapper .sidebar-nav .metismenu a:focus {
  color: #fff !important;
  background-color: rgba(255, 255, 255, 0.08) !important;
}

.sidebar-wrapper .sidebar-nav .metismenu a:active {
  color: #fff !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
}

.sidebar-wrapper .sidebar-nav .metismenu .mm-active > a {
  color: #fff !important;
  background-color: var(--bpc-navy-hover) !important;
}

.sidebar-wrapper .menu-label {
  color: rgba(255, 255, 255, 0.45) !important;
}

.sidebar-wrapper .sidebar-nav .metismenu a .parent-icon,
.sidebar-wrapper .sidebar-nav .metismenu a .parent-icon .material-icons-outlined {
  color: #fff !important;
}

.metismenu .has-arrow::after {
  border-color: rgba(255, 255, 255, 0.45) !important;
}

/* Main column */
.main-wrapper {
  margin-top: var(--bpc-topbar-height);
  background-color: var(--bpc-page-bg);
  box-sizing: border-box;
  max-width: 100%;
  overflow-x: clip;
}

.main-wrapper .main-content {
  color: var(--bpc-text);
  box-sizing: border-box;
  max-width: 100%;
  overflow-x: clip;
}

/* Navbar: flex children need min-width 0 or long search/UI can widen past viewport → horizontal scroll & layout shift */
.top-header .navbar .search-bar {
  min-width: 0;
}

.top-header .navbar .search-bar #bpcSearchWrap {
  min-width: 0;
}

.page-footer {
  background-color: #fff !important;
  border-top: 1px solid var(--bpc-card-border) !important;
  color: var(--bpc-text-secondary);
}

/* Cards */
.card {
  background-color: #fff !important;
  background-image: none !important;
  border: 1px solid var(--bpc-card-border) !important;
  box-shadow: var(--bpc-card-shadow) !important;
  color: var(--bpc-text);
}

.card-title,
.card-header {
  color: var(--bpc-text);
}

.table {
  --bs-table-bg: #fff;
  border-color: var(--bpc-card-border);
}

/* Primary actions */
.btn-primary,
.btn-grd-primary,
.btn-grd-primary:hover,
.btn-grd-primary:focus,
.btn-grd-primary:active {
  background: var(--bpc-navy) !important;
  background-image: none !important;
  border-color: var(--bpc-navy) !important;
  color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-grd-primary:hover {
  background-color: var(--bpc-navy-hover) !important;
  border-color: var(--bpc-navy-hover) !important;
}

.btn-outline-primary {
  color: var(--bpc-navy);
  border-color: var(--bpc-navy);
}

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

/* Former "success" action buttons → navy (badges/alerts stay green below) */
.btn-success,
.btn-success:hover,
.btn-success:focus,
.btn-success:active {
  background-color: var(--bpc-navy) !important;
  background-image: none !important;
  border-color: var(--bpc-navy) !important;
  color: #fff !important;
}

.btn-success:hover,
.btn-success:focus {
  background-color: var(--bpc-navy-hover) !important;
  border-color: var(--bpc-navy-hover) !important;
}

.btn-outline-success {
  color: var(--bpc-navy) !important;
  border-color: var(--bpc-navy) !important;
  background-color: #fff !important;
}

.btn-outline-success:hover,
.btn-outline-success:focus {
  background-color: var(--bpc-navy) !important;
  border-color: var(--bpc-navy) !important;
  color: #fff !important;
}

/* Reports: secondary export action */
.bpc-btn-export-csv {
  background-color: #fff !important;
  color: var(--bpc-navy) !important;
  border: 1px solid var(--bpc-navy) !important;
}

.bpc-btn-export-csv:hover:not(:disabled),
.bpc-btn-export-csv:focus:not(:disabled) {
  background-color: var(--bpc-page-bg) !important;
  color: var(--bpc-navy) !important;
  border-color: var(--bpc-navy) !important;
}

.bpc-btn-export-csv:disabled {
  opacity: 0.55;
}

.main-wrapper .main-content a:not(.btn):not(.dropdown-item):not(.page-link):not(.nav-link) {
  color: var(--bpc-link);
}

.main-wrapper .main-content a:not(.btn):not(.dropdown-item):not(.page-link):not(.nav-link):hover {
  color: var(--bpc-link-hover);
}

.text-secondary {
  color: var(--bpc-text-secondary) !important;
}

.text-muted {
  color: var(--bpc-text-caption) !important;
}

.form-label {
  color: var(--bpc-text-secondary);
}

.form-control,
.form-select {
  border-color: var(--bpc-card-border);
  color: var(--bpc-text);
  background-color: #fff;
}

.form-control::placeholder {
  color: var(--bpc-text-caption);
}

.form-control:focus {
  border-color: rgba(13, 27, 62, 0.35);
  box-shadow: 0 0 0 0.2rem rgba(13, 27, 62, 0.12);
}

/* Modals & embedded forms: light fields on white chrome */
.modal-content {
  background-color: #fff !important;
  border: 1px solid var(--bpc-card-border) !important;
  color: var(--bpc-text) !important;
}

.modal-header {
  background-color: #fff !important;
  border-bottom: 1px solid var(--bpc-card-border) !important;
  color: var(--bpc-text) !important;
}

.modal-title {
  color: var(--bpc-text) !important;
}

.modal-body,
.modal-footer {
  background-color: #fff !important;
}

.modal-body .form-label,
.modal-footer .form-label {
  color: #374151 !important;
}

.modal-body .form-control,
.modal-body .form-select,
.modal-body textarea,
.modal-footer .form-control,
.modal-footer .form-select,
.modal-footer textarea {
  background-color: #fff !important;
  border: 1px solid #d1d5db !important;
  color: var(--bpc-text) !important;
}

.modal-body .form-control::placeholder,
.modal-body textarea::placeholder,
.modal-footer .form-control::placeholder {
  color: var(--bpc-text-caption) !important;
}

.modal-body .form-control:focus,
.modal-body .form-select:focus,
.modal-body textarea:focus,
.modal-footer .form-control:focus,
.modal-footer .form-select:focus,
.modal-footer textarea:focus {
  border-color: var(--bpc-navy) !important;
  box-shadow: 0 0 0 0.2rem rgba(13, 27, 62, 0.12) !important;
}

.modal .input-group-text {
  background-color: #fff !important;
  border: 1px solid #d1d5db !important;
  color: var(--bpc-text-secondary) !important;
}

.modal-body .form-text,
.modal-footer .form-text {
  color: var(--bpc-text-secondary) !important;
}

/* badge colors — soft; dots added via design-system section below */
.badge.bg-success {
  background-color: #d1fae5 !important;
  color: #065f46 !important;
}

.badge.bg-warning,
.badge.text-bg-warning {
  background-color: #fef3c7 !important;
  color: #92400e !important;
}

/* Notification count badge stays solid red — use :not() */
.badge.bg-danger:not(#bpcNotifyBadge) {
  background-color: #fee2e2 !important;
  color: #991b1b !important;
}

#bpcNotifyBadge.badge.bg-danger {
  background-color: #ef4444 !important;
  color: #fff !important;
}

/* Auth pages */
.bpc-login-body,
.bpc-auth-body {
  min-height: 100vh;
  background: var(--bpc-page-bg) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.bpc-login-shell,
.bpc-auth-shell {
  width: 100%;
  max-width: 400px;
}

.bpc-login-card,
.bpc-auth-card {
  border: 1px solid var(--bpc-card-border) !important;
  border-radius: 0.75rem !important;
  box-shadow: var(--bpc-card-shadow) !important;
  background: #fff !important;
}

.bpc-login-brand-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--bpc-navy);
  letter-spacing: 0.04em;
}

.bpc-login-brand-sub {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--bpc-text-secondary);
  margin-top: 0.35rem;
}

.main-wrapper .main-content .breadcrumb-title {
  border-right-color: var(--bpc-card-border) !important;
  color: var(--bpc-text);
}

.top-header .navbar .dropdown-menu {
  background-color: #fff !important;
  border: 1px solid var(--bpc-card-border) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
}

/* caret pointing up — matches white header bg now */
.top-header .navbar .dropdown-menu::after {
  background: #fff !important;
  border-top-color: var(--bpc-card-border) !important;
  border-left-color: var(--bpc-card-border) !important;
}

.top-header .navbar .dropdown-item {
  color: var(--bpc-text) !important;
}

.top-header .navbar .dropdown-item:hover,
.top-header .navbar .dropdown-item:focus {
  background-color: #f0f4f8 !important;
}

.top-header .navbar .dropdown-item-text {
  color: var(--bpc-text) !important;
}

/* ═══════════════════════════════════════════════════════
   DESIGN SYSTEM — comprehensive additions
   All rules consolidated in this single file.
   ═══════════════════════════════════════════════════════ */

/* ── 1. Typography & font ─────────────────────────────── */
body,
button,
input,
select,
textarea,
.form-control,
.form-select,
.btn {
  font-family: 'Inter', 'Noto Sans', system-ui, -apple-system,
               BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.main-wrapper .main-content .breadcrumb-title {
  font-size: 1.3rem !important;
  font-weight: 700 !important;
  color: var(--bpc-text) !important;
  border-right-color: var(--bpc-card-border) !important;
}

.page-breadcrumb .breadcrumb-item {
  font-size: 0.875rem;
  color: var(--bpc-text-secondary);
}

.page-breadcrumb .breadcrumb-item.active {
  color: var(--bpc-text-secondary);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--bpc-text);
  font-weight: 600;
}

.small, small {
  font-size: 0.8125rem;
}

/* ── 2. Sidebar: active left-border, icon accent ────────── */
/* add transparent border to all items so active border doesn't shift width */
.sidebar-wrapper .sidebar-nav .metismenu a {
  border-left: 3px solid transparent !important;
  border-radius: 0.375rem !important;
  padding: 0.5rem 1rem !important;
  gap: 0.625rem;
}

.sidebar-wrapper .sidebar-nav .metismenu .mm-active > a {
  border-left: 3px solid rgba(255, 255, 255, 0.9) !important;
  border-radius: 0.375rem !important;
  background-color: #1a3a6b !important;
  color: #fff !important;
}

.sidebar-wrapper .sidebar-nav .metismenu > li.mm-active > a {
  background-color: #1a3a6b !important;
}

/* icon area - larger, consistent */
.sidebar-wrapper .sidebar-nav .metismenu a .parent-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.sidebar-wrapper .sidebar-nav .metismenu a .parent-icon .material-icons-outlined {
  font-size: 1.25rem !important;
  line-height: 1;
}

.sidebar-wrapper .sidebar-nav .metismenu a .menu-title {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.sidebar-wrapper .menu-label {
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, 0.38) !important;
  padding: 1.1rem 1rem 0.35rem !important;
}

/* sub-nav indented items */
.sidebar-wrapper .sidebar-nav .metismenu ul a {
  padding-left: 2.25rem !important;
  font-size: 0.8125rem !important;
}

/* ── 3. Cards ─────────────────────────────────────────── */
.card {
  border-radius: 0.75rem !important;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
}

.card-header {
  background-color: #fff !important;
  border-bottom: 1px solid var(--bpc-card-border) !important;
  color: var(--bpc-text);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 1rem 1.25rem;
}

/* KPI / stat cards — big number */
.card-body h4.fw-bold,
.card-body .kpi-number {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--bpc-text);
}

/* label above the number */
.card-body p.text-secondary.small.mb-1 {
  font-size: 0.75rem !important;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bpc-text-secondary) !important;
  margin-bottom: 0.35rem !important;
}

/* KPI alert/action card — interactive cursor */
.kpi-needs-action {
  cursor: pointer;
}

.kpi-needs-action:hover {
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.14) !important;
}

/* chart card headings */
.card-body h6.fw-bold {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--bpc-text);
  margin-bottom: 0.75rem;
}

/* Association portal: welcome card */
.bg-grd-primary,
.card.bg-grd-primary {
  background: linear-gradient(135deg, #0d1b3e 0%, #1a3a6b 100%) !important;
  color: #fff !important;
  border: none !important;
}

.bg-grd-primary h4,
.bg-grd-primary p,
.card.bg-grd-primary h4,
.card.bg-grd-primary p {
  color: #fff !important;
}

/* ── 4. Tables ────────────────────────────────────────── */
.table {
  font-size: 0.875rem;
  border-color: #f3f4f6;
}

.table thead th,
.table thead td {
  background-color: #f9fafb !important;
  color: var(--bpc-text-secondary) !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  padding: 0.75rem 1rem !important;
  border-bottom: 1px solid var(--bpc-card-border) !important;
  white-space: nowrap;
}

.table tbody tr td {
  padding: 0.75rem 1rem !important;
  border-bottom: 1px solid #f3f4f6 !important;
  color: var(--bpc-text);
  vertical-align: middle;
}

.table tbody tr:last-child td {
  border-bottom: none !important;
}

.table-hover tbody tr:hover > td,
.table-hover tbody tr:hover > th {
  background-color: #f9fafb !important;
}

.table-light {
  --bs-table-bg: #f9fafb !important;
  --bs-table-color: var(--bpc-text-secondary);
}

/* Zebra striping */
.table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-bg-type: #fafafa;
}

/* deleted/retired row */
.table tbody tr.table-secondary td {
  opacity: 0.65;
}

/* table action icon buttons */
.table .btn-sm.p-2.lh-1 {
  width: 2rem;
  height: 2rem;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  border: none !important;
  background: transparent !important;
  color: var(--bpc-text-secondary) !important;
  transition: background 0.15s ease, color 0.15s ease;
}

.table .btn-sm.p-2.lh-1:hover {
  background: #f3f4f6 !important;
  color: var(--bpc-text) !important;
}

/* Keep outline-danger red in tables */
.table .btn-sm.btn-outline-danger {
  color: var(--bpc-danger) !important;
  border: none !important;
  background: transparent !important;
}

.table .btn-sm.btn-outline-danger:hover {
  background: #fee2e2 !important;
  color: #991b1b !important;
}

/* outline-warning in tables */
.table .btn-sm.btn-outline-warning {
  color: var(--bpc-warning) !important;
  border: none !important;
  background: transparent !important;
}

.table .btn-sm.btn-outline-warning:hover {
  background: #fef3c7 !important;
  color: #92400e !important;
}

/* ── 5. Status / entry badges — soft colors + dot indicator ── */

/* Active → green dot pill */
.badge.bg-success {
  background-color: #d1fae5 !important;
  color: #065f46 !important;
  font-weight: 500;
  padding: 0.32em 0.7em !important;
}

.badge.bg-success::before {
  content: "●";
  font-size: 0.6em;
  margin-right: 0.35em;
  vertical-align: middle;
  color: #10b981;
}

/* Pending → amber dot pill */
.badge.bg-warning,
.badge.text-bg-warning {
  background-color: #fef3c7 !important;
  color: #92400e !important;
  font-weight: 500;
  padding: 0.32em 0.7em !important;
}

.badge.bg-warning::before,
.badge.text-bg-warning::before {
  content: "●";
  font-size: 0.6em;
  margin-right: 0.35em;
  vertical-align: middle;
  color: #f59e0b;
}

/* Returned / error → red dot pill (excludes notification badge) */
.badge.bg-danger:not(#bpcNotifyBadge) {
  background-color: #fee2e2 !important;
  color: #991b1b !important;
  font-weight: 500;
  padding: 0.32em 0.7em !important;
}

.badge.bg-danger:not(#bpcNotifyBadge)::before {
  content: "●";
  font-size: 0.6em;
  margin-right: 0.35em;
  vertical-align: middle;
  color: #ef4444;
}

/* Notification count badge — solid red, no dot */
#bpcNotifyBadge.badge.bg-danger {
  background-color: #ef4444 !important;
  color: #fff !important;
  padding: 0.15em 0.4em !important;
  font-weight: 700;
}

#bpcNotifyBadge.badge.bg-danger::before {
  content: none !important;
}

/* bg-secondary badge → retired (gray, no dot) */
.badge.bg-secondary {
  background-color: #f3f4f6 !important;
  color: #374151 !important;
  font-weight: 500;
}

/* bg-dark bg-opacity-10 → active roster (green) */
.badge.bg-dark.bg-opacity-10 {
  background-color: #d1fae5 !important;
  color: #065f46 !important;
}

/* elite badge */
.badge.bpc-elite,
#eliteBadge.badge {
  background-color: #eef2ff !important;
  color: #3730a3 !important;
}

/* toast alert — solid green (no dot) */
.toast.text-bg-success {
  background-color: var(--bpc-success) !important;
  color: #fff !important;
}

.toast.text-bg-success::before {
  content: none !important;
}

/* ── 6. Buttons ───────────────────────────────────────── */
.btn {
  border-radius: 0.5rem !important;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.15s ease, border-color 0.15s ease,
              box-shadow 0.15s ease;
}

.btn-sm {
  font-size: 0.8125rem;
  padding: 0.35rem 0.85rem !important;
  border-radius: 0.4rem !important;
}

.btn-lg {
  padding: 0.75rem 1.5rem !important;
  border-radius: 0.625rem !important;
}

/* secondary (outline gray) */
.btn-secondary {
  background-color: #f3f4f6 !important;
  border-color: #d1d5db !important;
  color: var(--bpc-text) !important;
}

.btn-secondary:hover {
  background-color: #e5e7eb !important;
  border-color: #d1d5db !important;
  color: var(--bpc-text) !important;
}

.btn-outline-secondary {
  border-color: #d1d5db !important;
  color: var(--bpc-text-secondary) !important;
  background-color: transparent !important;
}

.btn-outline-secondary:hover {
  background-color: #f3f4f6 !important;
  border-color: #d1d5db !important;
  color: var(--bpc-text) !important;
}

/* pending review button */
.btn-bpc-pending-review {
  background-color: #fef3c7 !important;
  border-color: #f59e0b !important;
  color: #92400e !important;
}

.btn-bpc-pending-review:hover,
.btn-bpc-pending-review:focus {
  background-color: #fde68a !important;
  border-color: #d97706 !important;
  color: #78350f !important;
}

/* danger (outline only — keep as-is) */
.btn-outline-danger {
  color: var(--bpc-danger) !important;
  border-color: var(--bpc-danger) !important;
  background-color: transparent !important;
}

.btn-outline-danger:hover {
  background-color: #fee2e2 !important;
  border-color: var(--bpc-danger) !important;
  color: #991b1b !important;
}

/* warning outline */
.btn-outline-warning {
  color: #92400e !important;
  border-color: var(--bpc-warning) !important;
  background-color: transparent !important;
}

.btn-outline-warning:hover {
  background-color: #fef3c7 !important;
  border-color: var(--bpc-warning) !important;
  color: #78350f !important;
}

/* btn-close (modal × button) */
.btn-close {
  opacity: 0.5;
}

.btn-close:hover {
  opacity: 1;
}

/* ── 7. Forms / Inputs ───────────────────────────────── */
.form-label {
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  color: #374151 !important;
  margin-bottom: 0.375rem !important;
}

.form-control,
.form-select {
  border-radius: 0.5rem !important;
  padding: 0.5625rem 0.875rem !important;
  font-size: 0.875rem !important;
  border: 1px solid #d1d5db !important;
  color: var(--bpc-text) !important;
  background-color: #fff !important;
  box-shadow: none !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control::placeholder {
  color: var(--bpc-text-caption) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--bpc-navy) !important;
  box-shadow: 0 0 0 3px rgba(13, 27, 62, 0.1) !important;
  outline: none !important;
}

.form-control-sm,
.form-select-sm {
  padding: 0.375rem 0.75rem !important;
  font-size: 0.8125rem !important;
  border-radius: 0.4rem !important;
}

.input-group .form-control {
  border-radius: 0.5rem !important;
}

.input-group .form-control:not(:last-child) {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.input-group .input-group-text {
  border-color: #d1d5db !important;
  background-color: #f9fafb !important;
  color: var(--bpc-text-secondary) !important;
}

.input-group .form-control:not(:first-child) {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

.form-text {
  font-size: 0.75rem;
  color: var(--bpc-text-secondary);
}

.form-check-input:checked {
  background-color: var(--bpc-navy);
  border-color: var(--bpc-navy);
}

/* ── 8. Modals — full override ───────────────────────── */
.modal-content {
  border-radius: 0.75rem !important;
  border: 1px solid var(--bpc-card-border) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
  overflow: hidden;
}

.modal-header {
  padding: 1.25rem 1.5rem !important;
}

.modal-body {
  padding: 1.25rem 1.5rem !important;
}

.modal-footer {
  padding: 1rem 1.5rem !important;
  border-top: 1px solid var(--bpc-card-border) !important;
  gap: 0.5rem;
}

/* all form elements in modals — white + light border */
.modal-body .form-control,
.modal-body .form-select,
.modal-body textarea {
  border: 1px solid #d1d5db !important;
  background-color: #fff !important;
}

/* ── 9. Navigation tabs — underline style ────────────── */
.nav-tabs {
  border-bottom: 2px solid var(--bpc-card-border);
  gap: 0;
}

.nav-tabs .nav-link {
  border: none !important;
  border-bottom: 2px solid transparent !important;
  margin-bottom: -2px;
  color: var(--bpc-text-secondary) !important;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.625rem 1rem;
  border-radius: 0 !important;
  background: transparent !important;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-tabs .nav-link:hover {
  color: var(--bpc-text) !important;
  border-bottom-color: var(--bpc-card-border) !important;
}

.nav-tabs .nav-link.active {
  color: var(--bpc-navy) !important;
  border-bottom-color: var(--bpc-navy) !important;
  font-weight: 600;
}

/* nav pills — used in reports categories */
.nav-pills .nav-link {
  color: var(--bpc-text-secondary) !important;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem !important;
  padding: 0.5rem 1rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-pills .nav-link:hover {
  background-color: #f3f4f6 !important;
  color: var(--bpc-text) !important;
}

.nav-pills .nav-link.active {
  background-color: var(--bpc-navy) !important;
  color: #fff !important;
}

/* ── 10. Alerts / notifications panel ───────────────── */
.alert {
  border-radius: 0.625rem !important;
  font-size: 0.875rem;
  border: none;
  padding: 0.875rem 1.1rem;
}

.alert-danger {
  background-color: #fee2e2 !important;
  color: #991b1b !important;
}

.alert-warning {
  background-color: #fef3c7 !important;
  color: #92400e !important;
}

.alert-success {
  background-color: #d1fae5 !important;
  color: #065f46 !important;
}

.alert-info {
  background-color: #eff6ff !important;
  color: #1e40af !important;
}

/* dashboard compliance alert list items */
#alPassport li,
#alCls li,
#alMed li,
#alPending li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.8125rem;
  color: var(--bpc-text);
}

#alPassport li:last-child,
#alCls li:last-child,
#alMed li:last-child,
#alPending li:last-child {
  border-bottom: none;
}

/* dashboard alert panel heading */
#alerts-panel h5 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bpc-text);
}

.card-body h6.fw-bold.text-primary {
  color: var(--bpc-navy) !important;
}

/* ── 11. Pagination ──────────────────────────────────── */
#prevPage,
#nextPage {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  border-color: var(--bpc-card-border) !important;
  color: var(--bpc-text-secondary) !important;
  background: #fff !important;
}

#prevPage:hover,
#nextPage:hover {
  background: var(--bpc-page-bg) !important;
  color: var(--bpc-text) !important;
}

#prevPage:disabled,
#nextPage:disabled {
  opacity: 0.35;
}

#pageMeta {
  font-size: 0.8125rem;
  color: var(--bpc-text-secondary);
}

/* ── 12. Dropdown menus ──────────────────────────────── */
.dropdown-menu {
  border: 1px solid var(--bpc-card-border) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
  border-radius: 0.625rem !important;
  padding: 0.375rem !important;
  font-size: 0.875rem;
}

.dropdown-item {
  border-radius: 0.375rem !important;
  padding: 0.5rem 0.875rem !important;
  color: var(--bpc-text) !important;
  font-size: 0.875rem;
  transition: background 0.1s;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: #f3f4f6 !important;
  color: var(--bpc-text) !important;
}

.dropdown-divider {
  border-color: var(--bpc-card-border) !important;
  margin: 0.25rem 0 !important;
}

/* ── 13. Reports page specific ───────────────────────── */
.report-card {
  cursor: default;
  border-radius: 0.75rem !important;
}

.report-card .card-body {
  padding: 1.1rem 1.25rem !important;
}

.report-category-tabs .nav-link.active {
  background-color: var(--bpc-navy) !important;
  color: #fff !important;
}

.report-category-tabs .nav-link.active .text-secondary {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* ── 14. Association portal pulse indicators ─────────── */
@keyframes bpc-pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(245, 124, 0, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(245, 124, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 124, 0, 0); }
}

@keyframes bpc-pulse-red {
  0%   { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(220, 53, 69, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

.bpc-pulse-amber {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f59e0b;
  animation: bpc-pulse-ring 1.6s ease-out infinite;
  flex-shrink: 0;
}

.bpc-pulse-red {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #dc3545;
  animation: bpc-pulse-red 1.6s ease-out infinite;
  flex-shrink: 0;
}

/* ── 15. Alpine.js x-cloak (all pages) ─────────────── */
[x-cloak] { display: none !important; }

/* ── 16. Reports page — chart, print, log tones ─────── */
#reportChartWrap {
  height: 260px;
  position: relative;
}

.table-striped-report > tbody > tr:nth-of-type(odd) > * {
  --bs-table-bg-type: rgba(0, 0, 0, 0.03);
}

.report-print-header { display: none; }

@media print {
  .no-print { display: none !important; }
  .report-print-header {
    display: block !important;
    margin-bottom: 1rem;
    font-size: 11pt;
    font-weight: 600;
  }
  .report-print-title {
    font-size: 10pt;
    color: #333;
    margin-bottom: 0.5rem;
  }
  .card.report-result-shell {
    border: none !important;
    box-shadow: none !important;
  }
  .table { font-size: 9pt; }
}

/* ── 17. Activity log row color tones ───────────────── */
.log-tone-created   { background-color: rgba(16, 185, 129, 0.09) !important; }
.log-tone-updated   { background-color: rgba(59, 130, 246, 0.09) !important; }
.log-tone-doc       { background-color: rgba(245, 158, 11, 0.12) !important; }
.log-tone-resubmit  { background-color: rgba(139, 92, 246, 0.10) !important; }

/* ── 18. Athletes list — row cursor ─────────────────── */
tbody tr.assoc-row-toggle { cursor: pointer; }

/* ── 19. Misc utilities ──────────────────────────────── */

/* text-primary → navy */
.text-primary {
  color: var(--bpc-navy) !important;
}

/* border-start accent colors on KPI cards */
.border-start.border-primary { border-color: var(--bpc-navy) !important; }
.border-start.border-success { border-color: var(--bpc-success) !important; }
.border-start.border-warning { border-color: var(--bpc-warning) !important; }
.border-start.border-danger  { border-color: var(--bpc-danger) !important; }
.border-start.border-info    { border-color: #3b82f6 !important; }
.border-start.border-secondary { border-color: #9ca3af !important; }

/* athlete list photo initial circle */
.bg-grd-primary.text-white.rounded-circle {
  background: linear-gradient(135deg, var(--bpc-navy) 0%, #1a3a6b 100%) !important;
}

/* profile photo placeholder */
#phWrap .rounded-circle {
  object-fit: cover;
}

/* search results dropdown */
.bpc-search-dd {
  border-radius: 0.75rem !important;
  border: 1px solid var(--bpc-card-border) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
  overflow: hidden;
}

.bpc-search-dd .search-hit {
  padding: 0.625rem 0.875rem !important;
  transition: background 0.1s;
}

.bpc-search-dd .search-hit:hover {
  background: #f3f4f6 !important;
}

/* scrollbar - subtle */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* overlay on mobile sidebar open */
.overlay.btn-toggle {
  background-color: rgba(13, 27, 62, 0.45) !important;
}

/* footer text */
.bpc-page-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 1.25rem;
  gap: 1rem;
}

.bpc-page-footer-copy {
  font-size: 0.75rem;
  color: var(--bpc-text-caption);
  text-align: left;
  margin: 0;
}

.bpc-app-version {
  font-size: 0.75rem;
  color: var(--bpc-text-caption);
  font-weight: 500;
  white-space: nowrap;
  text-align: right;
  text-decoration: none;
  transition: color 0.15s;
}

.bpc-app-version:hover {
  color: #0D1B3E;
  text-decoration: underline;
}

/* ── Release notes page ─────────────────────────────────────── */
.bpc-release-card {
  width: 100%;
  border: 1px solid var(--bpc-card-border) !important;
}

.bpc-release-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.bpc-release-head-icon {
  font-size: 36px !important;
  color: #0D1B3E;
  background: #EEF2FF;
  border-radius: 12px;
  padding: 0.5rem;
  line-height: 1 !important;
}

.bpc-release-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: #0D1B3E;
  margin: 0 0 0.25rem;
  line-height: 1.25;
}

.bpc-release-date {
  font-size: 0.85rem;
  color: var(--bpc-text-caption);
}

.bpc-release-summary {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #374151;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #E8ECF2;
}

.bpc-release-section {
  margin-bottom: 1.5rem;
}

.bpc-release-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: #0D1B3E;
  margin-bottom: 0.65rem;
}

.bpc-release-list {
  margin: 0;
  padding-left: 1.25rem;
  color: #374151;
  font-size: 0.9rem;
  line-height: 1.55;
}

.bpc-release-list li {
  margin-bottom: 0.4rem;
}

.bpc-release-list li:last-child {
  margin-bottom: 0;
}

.bpc-release-history-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #6B7280;
  margin-bottom: 0.5rem;
}

.page-footer p {
  font-size: 0.75rem;
  color: var(--bpc-text-caption);
}

/* print fixes */
@media print {
  .sidebar-wrapper,
  .top-header,
  .page-footer,
  .overlay { display: none !important; }
  .main-wrapper { margin-left: 0 !important; margin-top: 0 !important; }
  body { background: #fff !important; }
  .card { box-shadow: none !important; border: 1px solid #ddd !important; }
}

/* responsive: mobile - hide sidebar brand sub on very small */
@media (max-width: 575px) {
  .bpc-sidebar-brand-sub { display: none; }
  .bpc-sidebar-brand-title { font-size: 1.1rem; }
}

/* ═══════════════════════════════════════════════
   REFERENCE-IMAGE ALIGNMENT — final polish
   ═══════════════════════════════════════════════ */

/* Sidebar brand: BAHRAIN bold, committee smaller */
.bpc-sidebar-brand-title {
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #ffffff !important;
  line-height: 1.1;
}

.bpc-sidebar-brand-sub {
  font-size: 0.52rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.07em !important;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, 0.72) !important;
  line-height: 1.3;
  margin-top: 0.1rem !important;
}

/* Sidebar logo area: give it a small divider below */
.sidebar-header .logo-name {
  padding-left: 0.25rem;
}

/* Sidebar bottom address line */
.sidebar-wrapper::after {
  content: "Bahrain Paralympic Committee\AIsа Town, Kingdom of Bahrain";
  display: none; /* shown via HTML text if present */
}

/* Generate Report button: green (matches reference images exactly) */
.btn-success,
.btn-success:hover,
.btn-success:focus,
.btn-success:active {
  background-color: #059669 !important;
  background-image: none !important;
  border-color: #059669 !important;
  color: #fff !important;
}

.btn-success:hover,
.btn-success:focus {
  background-color: #047857 !important;
  border-color: #047857 !important;
}

/* "Add Athlete" / primary action = navy, stays as-is */

/* Header: user info text (name + role) */
.top-header .navbar .dropdown-item-text .fw-bold,
.top-header .navbar .js-user-email {
  color: var(--bpc-text) !important;
  font-size: 0.9rem;
}

/* Header: user name beside avatar */
.navbar .user-name.js-user-email {
  color: var(--bpc-text) !important;
  font-weight: 600;
}

/* Header notification bell — dark on white */
.top-header .bpc-bell-wrap .material-icons-outlined {
  color: #4b5563;
}

/* Page subtitle below page title */
.bpc-page-subtitle {
  font-size: 0.875rem;
  color: var(--bpc-text-secondary);
  margin-bottom: 1.25rem;
  margin-top: -0.25rem;
}

/* Athletes table: cleaner row look matching reference */
#athTableBody tr td:first-child {
  padding-left: 1.25rem !important;
}

#athTableBody tr.bpc-ath-row {
  cursor: pointer;
}

#athTableBody tr.bpc-ath-row:hover td {
  background-color: rgba(13, 110, 253, 0.05);
}

#athTableBody .fw-semibold {
  font-size: 0.9rem;
  color: var(--bpc-text);
}

#athTableBody .text-secondary {
  font-size: 0.78rem;
}

#bpc-tour-athletes-table tbody td {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  vertical-align: middle;
}

#athTableBody .bpc-ath-list-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  line-height: 1.25;
  white-space: nowrap;
  vertical-align: middle;
}

#athTableBody .bpc-ath-list-pill::before {
  width: 5px;
  height: 5px;
}

.bpc-roster--active {
  background: #F1F5F9;
  color: #334155;
  border-color: #E2E8F0;
}

.bpc-roster--active::before {
  background: #64748B;
}

.bpc-roster--inactive,
.bpc-roster--retired {
  background: #F1F5F9;
  color: #64748B;
  border-color: #E2E8F0;
}

.bpc-roster--inactive::before,
.bpc-roster--retired::before {
  background: #94A3B8;
}

/* Status column: center the badge */
#athTableBody td .badge {
  font-size: 0.78rem;
  border-radius: 2rem !important;
}

/* Sidebar nav: align icon + text horizontally */
.sidebar-wrapper .sidebar-nav .metismenu a {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.75rem;
}

/* Active sidebar item — slightly stronger highlight */
.sidebar-wrapper .sidebar-nav .metismenu .mm-active > a {
  background-color: rgba(255, 255, 255, 0.12) !important;
  border-left: 3px solid #ffffff !important;
}

/* Report "Generate Report" btn: green with icon alignment */
.bpc-btn-generate {
  background-color: #059669 !important;
  border-color: #059669 !important;
  color: #fff !important;
}

.bpc-btn-generate:hover {
  background-color: #047857 !important;
  border-color: #047857 !important;
}

/* Report result panel header */
.report-result-shell .card-header {
  padding: 1rem 1.5rem !important;
}

/* Classification card: large class code display (T54 style) */
.bpc-class-display {
  background: var(--bpc-navy);
  color: #fff;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* Profile: sport tag pills */
.bpc-sport-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 2rem;
  background-color: #f3f4f6;
  color: var(--bpc-text);
  font-size: 0.8125rem;
  font-weight: 500;
}

/* Report cards: 4-per-row tight grid */
.report-card .card-body {
  padding: 1.1rem !important;
}

/* Pagination match reference: clean minimal */
.page-link {
  color: var(--bpc-text) !important;
  border-color: var(--bpc-card-border) !important;
  font-size: 0.875rem;
  border-radius: 0.375rem !important;
}

.page-link:hover {
  background-color: #f3f4f6 !important;
  color: var(--bpc-text) !important;
}

.page-item.active .page-link {
  background-color: var(--bpc-navy) !important;
  border-color: var(--bpc-navy) !important;
  color: #fff !important;
}

/* KPI cards: ensure stat number is large and bold */
.card-body h4.fw-bold {
  font-size: 2.2rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  color: var(--bpc-text);
}

/* Breadcrumb / page title area */
.page-breadcrumb {
  margin-bottom: 1.25rem;
}

/* Align white header — prevent sidebar top overlapping */
.top-header {
  border-bottom: 1px solid var(--bpc-card-border);
}

/* ═════ Dashboard page — medal strip & layout ═════ */
.bpc-dash-page-title {
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  color: var(--bpc-text) !important;
  line-height: 1.25;
  border: none !important;
  padding-right: 0 !important;
  margin-bottom: 0.25rem !important;
}

main .main-content .bpc-dash-section-label {
  font-size: 0.8125rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: var(--bpc-text-secondary) !important;
}

.bpc-dash-medals-section .bpc-dash-section-label {
  color: var(--bpc-text) !important;
  text-transform: none !important;
  letter-spacing: 0.02em !important;
  font-size: 1rem !important;
}

.bpc-dash-medal-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  border: 1px solid var(--bpc-card-border) !important;
  border-radius: 0.875rem !important;
  background: #fff !important;
}

.bpc-dash-medal-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09) !important;
}

.bpc-dash-medal-icon-wrap {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bpc-dash-medal-gold .bpc-dash-medal-icon-wrap {
  background: linear-gradient(145deg, #fef3c7 0%, #fde68a 55%, #fcd34d 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 6px 16px rgba(180, 83, 9, 0.22);
}

.bpc-dash-medal-gold .bpc-dash-medal-icon {
  font-size: 2.125rem !important;
  line-height: 1 !important;
  color: #b45309 !important;
}

.bpc-dash-medal-silver .bpc-dash-medal-icon-wrap {
  background: linear-gradient(145deg, #f9fafb 0%, #e5e7eb 50%, #d1d5db 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 6px 16px rgba(75, 85, 99, 0.18);
}

.bpc-dash-medal-silver .bpc-dash-medal-icon {
  font-size: 2.125rem !important;
  line-height: 1 !important;
  color: #6b7280 !important;
}

.bpc-dash-medal-bronze .bpc-dash-medal-icon-wrap {
  background: linear-gradient(145deg, #ffedd5 0%, #fdba74 45%, #ea580c 180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 6px 16px rgba(194, 65, 12, 0.2);
}

.bpc-dash-medal-bronze .bpc-dash-medal-icon {
  font-size: 2.125rem !important;
  line-height: 1 !important;
  color: #9a3412 !important;
}

.bpc-dash-medal-total .bpc-dash-medal-total-icon {
  background: linear-gradient(145deg, #1a3a6b 0%, #0d1b3e 100%);
  box-shadow: 0 8px 20px rgba(13, 27, 62, 0.35);
}

.bpc-dash-medal-total .bpc-dash-medal-total-icon .bpc-dash-medal-icon {
  font-size: 2rem !important;
  color: #fff !important;
}

.bpc-dash-medal-count {
  font-size: 2.35rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--bpc-text);
}

.bpc-dash-medal-total .bpc-dash-medal-count {
  color: var(--bpc-navy);
  font-size: 2.5rem !important;
}

.bpc-dash-medal-total-breakdown {
  font-size: 0.8125rem;
  font-weight: 600;
}

.bpc-dash-mini-gold { color: #d97706; font-size: 0.65rem; vertical-align: middle; }
.bpc-dash-mini-silver { color: #9ca3af; font-size: 0.65rem; vertical-align: middle; }
.bpc-dash-mini-bronze { color: #ea580c; font-size: 0.65rem; vertical-align: middle; }

.letter-spacing-tight {
  letter-spacing: 0.05em !important;
}

/* Passport expiry warnings — dashboard card */
.bpc-passport-warnings-card {
  border: 1px solid rgba(13, 27, 62, 0.08) !important;
}

.bpc-passport-warnings-card .table-responsive {
  padding-inline: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.bpc-passport-warnings-head {
  background: linear-gradient(180deg, rgba(254, 242, 242, 0.65) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.bpc-passport-warnings-icon {
  font-size: 1.35rem !important;
  color: #b91c1c !important;
  line-height: 1 !important;
}

.bpc-passport-warnings-title {
  color: #7f1d1d !important;
  font-size: 0.9375rem !important;
}

.bpc-passport-warnings-table {
  table-layout: auto;
  width: 100%;
  min-width: 36rem;
}

/* Athlete column: never shrink below 10rem so the name can breathe */
.bpc-passport-warnings-table th:first-child,
.bpc-passport-warnings-table td:first-child {
  min-width: 10rem;
  width: 35%;
}

/* Expiry date column: fixed width, no wrapping */
.bpc-passport-warnings-table th:nth-child(2),
.bpc-passport-warnings-table td:nth-child(2) {
  min-width: 9.5rem;
  width: 9.5rem;
  white-space: nowrap;
}

/* Status pill column: fixed width so pill never wraps */
.bpc-passport-warnings-table th:nth-child(3),
.bpc-passport-warnings-table td:nth-child(3) {
  min-width: 10.5rem;
  width: 10.5rem;
  white-space: nowrap;
}

/* Profile button column */
.bpc-passport-warnings-table th.bpc-passport-profile-col,
.bpc-passport-warnings-table td.bpc-passport-profile-cell {
  width: 3.5rem;
  min-width: 3.5rem;
  padding-inline-start: 0.35rem;
  padding-inline-end: 0.5rem;
  vertical-align: middle;
  text-align: center;
  white-space: nowrap;
}

.bpc-passport-warnings-table thead th {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  font-weight: 700;
  border-bottom: 1px solid rgba(13, 27, 62, 0.1);
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  vertical-align: middle;
}

.bpc-passport-warnings-table tbody tr:not(:last-child) td {
  border-bottom: 1px solid rgba(13, 27, 62, 0.07);
}

.bpc-passport-warnings-table tbody tr:hover {
  background: rgba(13, 110, 253, 0.03);
}

.bpc-passport-warnings-avatar {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(13, 27, 62, 0.1);
  object-fit: cover;
}

.bpc-passport-warnings-avatar-placeholder {
  background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
}

/* ─── Type scale for expiry-warning table ───────────────────────────────────
   Base:    0.875rem (14px) — athlete name
   Sub:     0.75rem  (12px) — sport label
   Date:    0.875rem (14px) — expiry date column (same weight as name)
   Pill:    0.8125rem (13px) — status pill text
   ──────────────────────────────────────────────────────────────────────── */
.bpc-passport-warnings-name {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
}

.bpc-passport-warnings-sport {
  font-size: 0.75rem;
  line-height: 1.3;
}

.bpc-passport-warnings-expiry {
  color: #9f1239 !important;
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
}

.bpc-passport-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.6rem 0.25rem 0.45rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  max-width: 100%;
}

.bpc-passport-pill-icon {
  font-size: 0.9375rem !important;
  line-height: 1 !important;
  flex-shrink: 0;
}

.bpc-passport-pill--critical {
  background: #fee2e2;
  color: #991b1b;
}

.bpc-passport-pill--critical .bpc-passport-pill-icon {
  color: #b91c1c !important;
}

.bpc-passport-pill--warning {
  background: #ffedd5;
  color: #9a3412;
}

.bpc-passport-pill--warning .bpc-passport-pill-icon {
  color: #c2410c !important;
}

.bpc-passport-pill--notice {
  background: #fef9c3;
  color: #854d0e;
}

.bpc-passport-pill--notice .bpc-passport-pill-icon {
  color: #a16207 !important;
}

.bpc-passport-pill--muted {
  background: #f1f5f9;
  color: #64748b;
}

.bpc-passport-pill--muted .bpc-passport-pill-icon {
  color: #64748b !important;
}

.bpc-passport-profile-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  min-width: 2.25rem;
  padding: 0 !important;
  line-height: 1 !important;
  border-width: 1px;
  flex-shrink: 0;
  box-sizing: border-box;
}

.bpc-passport-profile-btn-icon {
  font-size: 1.125rem !important;
  line-height: 1 !important;
  vertical-align: middle !important;
}

.bpc-passport-status-cell {
  padding-inline-end: 0.35rem !important;
}

.bpc-passport-warnings-footer {
  color: #0d47a1 !important;
  font-weight: 600;
}

.bpc-passport-warnings-footer:hover {
  color: #1976d2 !important;
}

.bpc-passport-warnings-chevron {
  font-size: 14px !important;
  vertical-align: middle;
  margin-left: 2px;
  opacity: 0.85;
}

/* Dashboard — Athletes by sport doughnut */
.bpc-dash-sport-card .bpc-dash-sport-chart-wrap {
  min-height: 280px;
  height: 280px;
}

.bpc-dash-sport-legend {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem 1rem;
  padding: 0.25rem 0;
}

@media (min-width: 768px) {
  .bpc-dash-sport-legend {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bpc-dash-sport-legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.775rem;
  min-width: 0;
}

.bpc-dash-sport-legend-dot {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  flex-shrink: 0;
}

.bpc-dash-sport-legend-name {
  color: #1e293b;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1 1 0;
  min-width: 0;
}

.bpc-dash-sport-legend-count {
  color: #64748b;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 0.725rem;
}

.bpc-dash-sport-footer {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
  background: rgba(13, 110, 253, 0.08);
  border: 1px solid rgba(13, 110, 253, 0.12);
}

.bpc-dash-sport-footer-icon {
  font-size: 1.125rem !important;
  color: #0d6efd !important;
  flex-shrink: 0;
}

.bpc-dash-sport-footer-text {
  font-size: 0.8125rem;
}

/* Dashboard alert column cards — classification / medical lists */
#alCls li,
#alMed li {
  padding: 0.65rem 0;
}

.bpc-dash-alert-scroll {
  max-height: 340px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  padding-right: 0.25rem;
}

.bpc-dash-alert-scroll::-webkit-scrollbar {
  width: 5px;
}

.bpc-dash-alert-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.bpc-dash-alert-scroll::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   ATHLETE PROFILE PAGE (bpc-ap-*)
   ═══════════════════════════════════════════════════════════════ */

/* ── Page header ─────────────────────────────────────────────── */
.bpc-ap-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.bpc-ap-page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0D1B3E;
  margin: 0;
  line-height: 1.25;
}

.bpc-ap-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: #0D1B3E;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.bpc-ap-pdf-btn:hover {
  background: #1A3A6B;
}

.bpc-ap-btn-icon {
  font-size: 16px !important;
  line-height: 1 !important;
  vertical-align: -3px;
}

/* ── Hero card ───────────────────────────────────────────────── */
.bpc-ap-hero {
  background: #fff;
  border: 1px solid #E8ECF2;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
}

.bpc-ap-hero-body {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 24px 20px;
  flex-wrap: wrap;
}

.bpc-ap-photo-wrap {
  flex-shrink: 0;
  position: relative;
  display: inline-block;
  width: 104px;
}

/* Zoom button — top-left corner of photo */
.bpc-ap-photo-zoom-btn {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.18s, transform 0.18s;
  z-index: 3;
  padding: 0;
}

.bpc-ap-photo-zoom-btn .material-icons-outlined {
  font-size: 16px !important;
  line-height: 1 !important;
}

.bpc-ap-photo-wrap:hover .bpc-ap-photo-zoom-btn {
  opacity: 1;
}

.bpc-ap-photo-zoom-btn:hover {
  transform: scale(1.1);
  background: rgba(0, 0, 0, 0.75);
}

/* Lightbox modal */
.bpc-ap-photo-modal-dialog {
  max-width: 480px;
}

.bpc-ap-photo-zoom-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.bpc-ap-photo-modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: none;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  z-index: 10;
  padding: 0;
}

.bpc-ap-photo-modal-close .material-icons-outlined {
  font-size: 18px !important;
}

/* Camera upload button overlay */
.bpc-ap-photo-upload-btn {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #0D1B3E;
  border: 2px solid #fff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  transition: background 0.15s, transform 0.15s;
  z-index: 2;
  padding: 0;
}

.bpc-ap-photo-upload-btn:hover:not(:disabled) {
  background: #1A3A6B;
  transform: scale(1.08);
}

.bpc-ap-photo-upload-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.bpc-ap-photo-upload-btn .material-icons-outlined {
  font-size: 15px !important;
  line-height: 1 !important;
}

@keyframes bpc-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.bpc-ap-photo-upload-spin {
  font-size: 15px !important;
  line-height: 1 !important;
  display: inline-block;
  animation: bpc-spin 0.9s linear infinite;
}

.bpc-ap-photo {
  width: 104px;
  height: 104px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid #E8ECF2;
  display: block;
}

.bpc-ap-photo-placeholder {
  width: 104px;
  height: 104px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0D1B3E 0%, #2251CC 100%);
  color: #fff;
  font-size: 2.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bpc-ap-name-en {
  font-size: 1.375rem;
  font-weight: 700;
  color: #0D1B3E;
  margin: 0 0 2px;
  line-height: 1.2;
}

.bpc-ap-name-ar {
  font-size: 1rem;
  color: #4B5563;
  font-style: italic;
  margin-bottom: 4px;
}

.bpc-ap-sport-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bpc-ap-sport-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #EEF2FF;
  color: #3730A3;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px 3px 6px;
}

.bpc-ap-sport-tag-icon {
  font-size: 14px !important;
  line-height: 1 !important;
}

/* Status pill */
.bpc-ap-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.bpc-ap-status-pill::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.bpc-ap-entry--active { background: #D1FAE5; color: #065F46; border-color: #6EE7B7; }
.bpc-ap-entry--active::before { background: #10B981; }
.bpc-ap-entry--pending { background: #FEF3C7; color: #92400E; border-color: #FDE68A; }
.bpc-ap-entry--pending::before { background: #F59E0B; }
.bpc-ap-entry--returned { background: #FEE2E2; color: #991B1B; border-color: #FECACA; }
.bpc-ap-entry--returned::before { background: #EF4444; }
.bpc-ap-entry--default { background: #F1F5F9; color: #475569; border-color: #CBD5E1; }
.bpc-ap-entry--default::before { background: #94A3B8; }

.bpc-ap-elite-badge {
  display: inline-flex;
  align-items: center;
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
}

/* Hero actions */
.bpc-ap-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin-left: auto;
}

.bpc-ap-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.bpc-ap-edit-btn:hover {
  background: #F9FAFB;
  border-color: #9CA3AF;
  color: #0D1B3E;
}

.bpc-ap-act-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  padding: 7px 14px;
  border: none;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}

.bpc-ap-act-btn:hover { opacity: 0.87; }
.bpc-ap-act-btn--green { background: #D1FAE5; color: #065F46; }
.bpc-ap-act-btn--amber { background: #FEF3C7; color: #92400E; }

/* Hero meta strip */
.bpc-ap-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid #E8ECF2;
  padding: 0 24px;
}

.bpc-ap-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px 10px 0;
  margin-right: 20px;
  border-right: 1px solid #E8ECF2;
  flex-shrink: 0;
}

.bpc-ap-meta-item:last-child {
  border-right: none;
}

.bpc-ap-meta-icon {
  font-size: 18px !important;
  color: #6B7280 !important;
  line-height: 1 !important;
  flex-shrink: 0;
}

.bpc-ap-meta-lbl {
  font-size: 11px;
  color: #9CA3AF;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.bpc-ap-meta-val {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
}

/* ── Stats strip ─────────────────────────────────────────────── */
.bpc-ap-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.bpc-ap-stat-box {
  background: #fff;
  border: 1px solid #E8ECF2;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}

.bpc-ap-stat-num {
  font-size: 1.625rem;
  font-weight: 700;
  color: #0D1B3E;
  line-height: 1.1;
}

.bpc-ap-stat-lbl {
  font-size: 12px;
  color: #6B7280;
  margin-top: 3px;
}

/* ── Card component ──────────────────────────────────────────── */
.bpc-ap-card {
  background: #fff;
  border: 1px solid #E8ECF2;
  border-radius: 12px;
  padding: 20px;
}

.bpc-ap-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #0D1B3E;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #E8ECF2;
}

.bpc-ap-card-icon {
  font-size: 18px !important;
  color: #0D1B3E !important;
  line-height: 1 !important;
  flex-shrink: 0;
}

.bpc-ap-card-subhead--first {
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: none !important;
}

.bpc-ap-card-subhead {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #6B7280;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid #F1F5F9;
  margin-bottom: 8px;
}

/* ── Personal information chip grid ──────────────────────────── */
.bpc-ap-field-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 4px;
}

.bpc-ap-field-chips--3col {
  grid-template-columns: repeat(3, 1fr);
}

.bpc-ap-chip {
  background: #F8FAFC;
  border: 1px solid #E8ECF2;
  border-radius: 8px;
  padding: 10px 12px;
  min-width: 0;
}

.bpc-ap-chip--empty .bpc-ap-chip-val {
  color: #D1D5DB;
}

.bpc-ap-chip-lbl {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9CA3AF;
  margin-bottom: 4px;
  line-height: 1.2;
}

.bpc-ap-chip-val {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  line-height: 1.35;
  word-break: break-word;
}

/* Bottom section of personal card */
.bpc-ap-personal-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #E8ECF2;
  align-items: start;
}

/* ── 2-column grid ───────────────────────────────────────────── */
.bpc-ap-two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-items: start;
}

/* ── Info list (label-value rows) ────────────────────────────── */
.bpc-ap-info-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.bpc-ap-info-list--2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  column-gap: 0;
}

.bpc-ap-info-list--2col .bpc-ap-info-row {
  border-bottom: 1px solid #F3F4F6;
}

/* every row always has a border — "last-child" trick doesn't work reliably in multi-col grid */
.bpc-ap-info-list--2col .bpc-ap-info-row:nth-last-child(-n+2) {
  border-bottom: none;
}

.bpc-ap-info-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 8px;
  border-bottom: 1px solid #F9FAFB;
  font-size: 13px;
}

.bpc-ap-info-row:last-child {
  border-bottom: none;
}

.bpc-ap-info-lbl {
  color: #6B7280;
  font-weight: 500;
  flex-shrink: 0;
  min-width: 80px;
}

.bpc-ap-info-list--2col .bpc-ap-info-lbl {
  min-width: 70px;
  font-size: 12px;
}

.bpc-ap-info-list--2col .bpc-ap-info-val {
  font-size: 12px;
}

.bpc-ap-info-val {
  color: #111827;
  font-weight: 500;
  text-align: right;
  word-break: break-word;
}

.bpc-ap-info-row--empty .bpc-ap-info-val {
  color: #D1D5DB;
}

/* ── Emergency contacts ──────────────────────────────────────── */
.bpc-ap-ec-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border-bottom: 1px solid #F9FAFB;
  font-size: 13px;
}

.bpc-ap-ec-row:last-child { border-bottom: none; }
.bpc-ap-ec-name { font-weight: 600; color: #111827; }
.bpc-ap-ec-rel { color: #6B7280; font-size: 12px; }
.bpc-ap-ec-phone { display: flex; align-items: center; gap: 3px; color: #374151; }
.bpc-ap-ec-icon { font-size: 13px !important; line-height: 1 !important; color: #9CA3AF; }

/* ── Sports list ─────────────────────────────────────────────── */
.bpc-ap-sport-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #F9FAFB;
}

.bpc-ap-sport-row:last-child { border-bottom: none; }

.bpc-ap-sport-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #EEF2FF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bpc-ap-sport-icon {
  font-size: 16px !important;
  color: #4F46E5 !important;
  line-height: 1 !important;
}

.bpc-ap-sport-name {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

.bpc-ap-sport-disc {
  font-weight: 400;
  color: #6B7280;
}

.bpc-ap-sport-meta {
  font-size: 12px;
  color: #6B7280;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.bpc-ap-sport-meta-icon {
  font-size: 12px !important;
  line-height: 1 !important;
}

.bpc-ap-sport-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  margin-left: auto;
  flex-shrink: 0;
}

.bpc-ap-sport-badge--primary { background: #DBEAFE; color: #1D4ED8; }
.bpc-ap-sport-badge--disc { background: #F3F4F6; color: #6B7280; }

/* ── Disabilities ────────────────────────────────────────────── */
.bpc-ap-dis-row {
  padding: 7px 0;
  border-bottom: 1px solid #F9FAFB;
  font-size: 13px;
}

.bpc-ap-dis-row:last-child { border-bottom: none; }
.bpc-ap-dis-label { color: #111827; font-weight: 500; }
.bpc-ap-dis-en { color: #6B7280; font-weight: 400; }
.bpc-ap-dis-notes { font-size: 12px; color: #6B7280; margin-top: 2px; }

/* ── Classifications ─────────────────────────────────────────── */
.bpc-ap-cls-badge-wrap {
  text-align: center;
  margin-bottom: 12px;
}

.bpc-ap-cls-big-badge {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  background: #0D1B3E;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px;
  letter-spacing: 0.04em;
}

.bpc-ap-cls-badge-label {
  font-size: 11px;
  color: #6B7280;
  font-weight: 500;
}

.bpc-ap-cls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #F9FAFB;
  font-size: 13px;
}

.bpc-ap-cls-row:last-child { border-bottom: none; }
.bpc-ap-cls-lbl { color: #6B7280; font-weight: 500; }
.bpc-ap-cls-val { color: #111827; font-weight: 500; text-align: right; }

.bpc-ap-cls-status {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}

.bpc-ap-cls-status--confirmed { background: #D1FAE5; color: #065F46; }
.bpc-ap-cls-status--review { background: #FEF3C7; color: #92400E; }
.bpc-ap-cls-status--new { background: #F1F5F9; color: #475569; }

.bpc-ap-cls-other {
  font-size: 12px;
  color: #374151;
  padding: 5px 0;
  border-bottom: 1px solid #F9FAFB;
}

.bpc-ap-cls-other:last-child { border-bottom: none; }
.bpc-ap-cls-historical { color: #9CA3AF; }

/* ── Medal summary ───────────────────────────────────────────── */
.bpc-ap-medal-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.bpc-ap-medal-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: #374151;
}

.bpc-ap-medal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.bpc-ap-medal-dot--gold { background: #D4AF37; }
.bpc-ap-medal-dot--silver { background: #ADB5BD; }
.bpc-ap-medal-dot--bronze { background: #B87333; }

.bpc-ap-medal-total {
  font-size: 12px;
  color: #6B7280;
  border-left: 1px solid #E5E7EB;
  padding-left: 12px;
}

/* ── Tables (results + documents) ───────────────────────────── */
.bpc-ap-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 4px;
}

.bpc-ap-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.bpc-ap-table thead th {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6B7280;
  border-bottom: 1px solid #E8ECF2;
  padding: 8px 10px;
  white-space: nowrap;
  background: #F9FAFB;
  text-align: left;
}

.bpc-ap-table tbody td {
  padding: 10px 10px;
  border-bottom: 1px solid #F9FAFB;
  color: #111827;
  vertical-align: middle;
}

.bpc-ap-table tbody tr:last-child td {
  border-bottom: none;
}

.bpc-ap-table tbody tr:hover td {
  background: rgba(13, 27, 62, 0.02);
}

.bpc-ap-table-event .bpc-ap-table-sub {
  font-size: 11px;
  color: #6B7280;
  margin-top: 2px;
}

.bpc-ap-table-sub {
  font-size: 11px;
  color: #6B7280;
  margin-top: 2px;
}

/* Result tags */
.bpc-ap-result-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 4px;
  vertical-align: middle;
}

.bpc-ap-result-tag--pb { background: #DBEAFE; color: #1D4ED8; }
.bpc-ap-result-tag--sb { background: #CFFAFE; color: #0E7490; }
.bpc-ap-result-tag--nr { background: #1F2937; color: #F9FAFB; }
.bpc-ap-result-tag--v { background: #D1FAE5; color: #065F46; }

/* Document status pills */
.bpc-ap-doc-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  margin-right: 4px;
  white-space: nowrap;
}

.bpc-ap-doc-status--valid { background: #D1FAE5; color: #065F46; }
.bpc-ap-doc-status--soon { background: #FEF3C7; color: #92400E; }
.bpc-ap-doc-status--expired { background: #FEE2E2; color: #991B1B; }
.bpc-ap-doc-status--medical { background: #FEF3C7; color: #92400E; }

/* Document action buttons */
.bpc-ap-doc-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: #F9FAFB;
  border: 1px solid #E8ECF2;
  border-radius: 6px;
  cursor: pointer;
  color: #374151;
  transition: background 0.15s;
  line-height: 1;
}

.bpc-ap-doc-action:hover {
  background: #EEF2FF;
  border-color: #C7D2FE;
  color: #4F46E5;
}

.bpc-ap-doc-action--delete:hover {
  background: #FEF2F2;
  border-color: #FECACA;
  color: #DC2626;
}

/* ── Empty state ─────────────────────────────────────────────── */
.bpc-ap-empty {
  font-size: 13px;
  color: #9CA3AF;
  padding: 4px 0;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 992px) {
  .bpc-ap-two-col {
    grid-template-columns: 1fr;
  }
  .bpc-ap-field-chips {
    grid-template-columns: repeat(2, 1fr);
  }
  .bpc-ap-field-chips--3col {
    grid-template-columns: repeat(2, 1fr);
  }
  .bpc-ap-personal-bottom {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 576px) {
  .bpc-ap-field-chips,
  .bpc-ap-field-chips--3col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .bpc-ap-stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .bpc-ap-hero-body {
    flex-wrap: wrap;
    padding: 16px;
  }
  .bpc-ap-hero-actions {
    margin-left: 0;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .bpc-ap-meta-strip {
    padding: 0 16px;
  }
  .bpc-ap-meta-item {
    padding: 8px 12px 8px 0;
    margin-right: 12px;
  }
  .bpc-ap-info-list--2col {
    grid-template-columns: 1fr;
  }
  .bpc-ap-info-list--2col .bpc-ap-info-row:nth-last-child(-n+2) {
    border-bottom: 1px solid #F3F4F6;
  }
  .bpc-ap-info-list--2col .bpc-ap-info-row:last-child {
    border-bottom: none;
  }
}

/* ═══════════════════════════════════════════════════════════════
   ATHLETE REGISTRATION / EDIT WIZARD
   ═══════════════════════════════════════════════════════════════ */

/* ── Outer wrapper ─────────────────────────────────────────── */
.bpc-wizard-bg {
  background: #F4F6FA;
  padding: 24px;
  border-radius: 12px;
}

/* ── Draft restored notice ──────────────────────────────────── */
.bpc-wiz-draft-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: #ECFDF5;
  border: 1px solid #6EE7B7;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #065F46;
}

.bpc-wiz-draft-notice-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bpc-wiz-draft-notice-icon {
  font-size: 18px !important;
  line-height: 1 !important;
  flex-shrink: 0;
  color: #059669 !important;
}

.bpc-wiz-draft-notice-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bpc-wiz-draft-discard {
  font-size: 12px;
  font-weight: 500;
  color: #DC2626;
  background: transparent;
  border: 1px solid #FECACA;
  border-radius: 6px;
  padding: 4px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.bpc-wiz-draft-discard:hover {
  background: #FEF2F2;
}

.bpc-wiz-draft-dismiss {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #6B7280;
  border-radius: 4px;
  line-height: 1;
}

.bpc-wiz-draft-dismiss:hover {
  background: rgba(0,0,0,0.06);
}

.bpc-wiz-draft-dismiss .material-icons-outlined {
  font-size: 18px !important;
  line-height: 1 !important;
}

/* ── Step progress bar ──────────────────────────────────────── */
.bpc-wiz-stepbar {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.bpc-wiz-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  min-width: 0;
}

.bpc-wiz-connector {
  flex: 1;
  height: 2px;
  background: #E5E7EB;
  margin-top: 17px;
  min-width: 6px;
  transition: background 0.25s;
}

.bpc-wiz-connector.bpc-wiz-done {
  background: #0D1B3E;
}

.bpc-wiz-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #D1D5DB;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9CA3AF;
  position: relative;
  z-index: 1;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.bpc-wiz-step.bpc-wiz-done .bpc-wiz-circle {
  background: #0D1B3E;
  border-color: #0D1B3E;
  color: #fff;
}

.bpc-wiz-step.bpc-wiz-active .bpc-wiz-circle {
  border-color: #0D1B3E;
  color: #0D1B3E;
  box-shadow: 0 0 0 4px rgba(13, 27, 62, 0.1);
}

.bpc-wiz-check-icon {
  font-size: 16px !important;
  line-height: 1 !important;
}

.bpc-wiz-num {
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.bpc-wiz-step-lbl {
  font-size: 11px;
  color: #9CA3AF;
  margin-top: 6px;
  text-align: center;
  max-width: 62px;
  line-height: 1.3;
  word-break: break-word;
}

.bpc-wiz-step.bpc-wiz-done .bpc-wiz-step-lbl {
  color: #0D1B3E;
  font-weight: 500;
}

.bpc-wiz-step.bpc-wiz-active .bpc-wiz-step-lbl {
  color: #0D1B3E;
  font-weight: 700;
}

.bpc-wiz-step.bpc-wiz-clickable {
  cursor: pointer;
}

.bpc-wiz-step.bpc-wiz-clickable:hover:not(.bpc-wiz-active) .bpc-wiz-circle {
  border-color: #2251CC;
  background: rgba(34, 81, 204, 0.08);
  transform: scale(1.08);
}

.bpc-wiz-step.bpc-wiz-clickable:hover:not(.bpc-wiz-active) .bpc-wiz-step-lbl {
  color: #2251CC;
}

/* ── Step banners ───────────────────────────────────────────── */
.bpc-wiz-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
  border: 1px solid transparent;
}

.bpc-wiz-banner--info {
  background: #E6F1FB;
  color: #0C447C;
  border-color: #B5D4F4;
}

.bpc-wiz-banner--amber {
  background: #FEF3C7;
  color: #92400E;
  border-color: #FDE68A;
}

.bpc-wiz-banner--green {
  background: #D1FAE5;
  color: #065F46;
  border-color: #6EE7B7;
}

.bpc-wiz-banner--navy {
  background: #EEF2FF;
  color: #3730A3;
  border-color: #C7D2FE;
}

.bpc-wiz-banner-icon {
  font-size: 18px !important;
  line-height: 1 !important;
  flex-shrink: 0;
}

/* ── Form card ──────────────────────────────────────────────── */
.bpc-wiz-card {
  background: #fff;
  border: 0.5px solid #E8ECF2;
  border-radius: 12px;
  padding: 28px 32px;
}

/* ── Section header ─────────────────────────────────────────── */
.bpc-wiz-section-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid #E8ECF2;
}

.bpc-wiz-section-icon {
  font-size: 22px !important;
  color: #0D1B3E !important;
  line-height: 1 !important;
  margin-top: 2px;
  flex-shrink: 0;
}

.bpc-wiz-section-title {
  font-size: 18px;
  font-weight: 500;
  color: #0D1B3E;
  line-height: 1.3;
}

.bpc-wiz-section-subtitle {
  font-size: 13px;
  color: #6B7280;
  margin-top: 3px;
}

/* ── Field grids ────────────────────────────────────────────── */
.bpc-wiz-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 24px;
}

.bpc-wiz-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 20px;
}

.bpc-wiz-full {
  grid-column: 1 / -1;
}

/* ── Individual field ───────────────────────────────────────── */
.bpc-wiz-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bpc-wiz-label {
  font-size: 12px;
  font-weight: 500;
  color: #6B7280;
  margin-bottom: 0;
  line-height: 1.4;
}

.bpc-wiz-req {
  color: #EF4444;
  margin-left: 1px;
}

.bpc-wiz-input,
.bpc-wiz-select,
.bpc-wiz-textarea {
  padding: 10px 14px;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  font-size: 14px;
  color: #111827;
  background: #fff;
  width: 100%;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.bpc-wiz-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.bpc-wiz-input:focus,
.bpc-wiz-select:focus,
.bpc-wiz-textarea:focus {
  border-color: #0D1B3E;
  box-shadow: 0 0 0 3px rgba(13, 27, 62, 0.08);
}

.bpc-wiz-textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.55;
}

input[type="file"].bpc-wiz-input {
  padding: 7px 14px;
  cursor: pointer;
}

.bpc-wiz-hint {
  font-size: 12px;
  color: #9CA3AF;
  margin-top: 3px;
  margin-bottom: 0;
}

/* ── Profile photo preview ──────────────────────────────────── */
.bpc-wiz-photo-preview {
  max-height: 140px;
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
  display: block;
}

/* ── Profile photo crop widget (registration form) ─────────── */
.bpc-photo-crop-widget {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
}

.bpc-photo-crop-preview-wrap {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 12px;
  border: 2px solid #E8ECF2;
  overflow: hidden;
  background: #F3F4F6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bpc-photo-crop-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bpc-photo-crop-preview-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem;
  text-align: center;
  color: #9CA3AF;
  font-size: 11px;
  line-height: 1.3;
}

.bpc-photo-crop-preview-empty .material-icons-outlined {
  font-size: 2rem !important;
  color: #D1D5DB;
}

.bpc-photo-crop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  flex: 1;
  min-width: 200px;
}

.bpc-photo-crop-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #D1D5DB;
  background: #fff;
  color: #0D1B3E;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.bpc-photo-crop-btn:hover {
  background: #F9FAFB;
  border-color: #0D1B3E;
}

.bpc-photo-crop-btn .material-icons-outlined {
  font-size: 18px !important;
}

.bpc-photo-crop-btn--muted {
  color: #6B7280;
}

.bpc-photo-crop-btn--muted:hover {
  color: #EF4444;
  border-color: #FECACA;
  background: #FEF2F2;
}

/* ── Crop modal (Cropper.js) ───────────────────────────────── */
body.bpc-photo-crop-open {
  overflow: hidden;
}

.bpc-photo-crop-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(13, 27, 62, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.bpc-photo-crop-dialog {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(13, 27, 62, 0.2);
  width: min(520px, 100%);
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.bpc-photo-crop-dialog-head {
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 1px solid #E8ECF2;
}

.bpc-photo-crop-dialog-head h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #0D1B3E;
  margin: 0 0 0.35rem;
}

.bpc-photo-crop-dialog-head p {
  font-size: 12px;
  color: #6B7280;
  margin: 0;
  line-height: 1.45;
}

.bpc-photo-crop-stage {
  width: 100%;
  height: min(380px, 55vh);
  background: #111827;
  overflow: hidden;
}

.bpc-photo-crop-stage img {
  display: block;
  max-width: 100%;
}

.bpc-photo-crop-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid #E8ECF2;
  background: #F9FAFB;
}

.bpc-photo-crop-tool {
  width: 36px;
  height: 36px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  background: #fff;
  color: #0D1B3E;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.bpc-photo-crop-tool:hover {
  background: #EEF2FF;
  border-color: #0D1B3E;
}

.bpc-photo-crop-tool .material-icons-outlined {
  font-size: 20px !important;
}

.bpc-photo-crop-zoom {
  flex: 1;
  min-width: 0;
  accent-color: #0D1B3E;
}

.bpc-photo-crop-dialog-foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
}

.bpc-photo-crop-btn-cancel,
.bpc-photo-crop-btn-apply {
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
}

.bpc-photo-crop-btn-cancel {
  background: transparent;
  color: #6B7280;
  border: 1px solid #E5E7EB;
}

.bpc-photo-crop-btn-cancel:hover {
  background: #F3F4F6;
}

.bpc-photo-crop-btn-apply {
  background: #0D1B3E;
  color: #fff;
}

.bpc-photo-crop-btn-apply:hover {
  background: #1a3a6b;
}

/* ── Confirm dialog (replaces native confirm) ──────────────── */
body.bpc-confirm-open {
  overflow: hidden;
}

.bpc-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 10060;
  background: rgba(13, 27, 62, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: bpcConfirmFadeIn 0.18s ease;
}

@keyframes bpcConfirmFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.bpc-confirm-dialog {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(13, 27, 62, 0.22);
  width: min(440px, 100%);
  overflow: hidden;
  animation: bpcConfirmSlideIn 0.2s ease;
}

@keyframes bpcConfirmSlideIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.bpc-confirm-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 1.25rem;
  background: #0D1B3E;
  color: #fff;
}

.bpc-confirm-head--warning {
  background: linear-gradient(135deg, #92400E 0%, #B45309 100%);
}

.bpc-confirm-head--danger {
  background: linear-gradient(135deg, #991B1B 0%, #DC2626 100%);
}

.bpc-confirm-head--success {
  background: linear-gradient(135deg, #065F46 0%, #059669 100%);
}

.bpc-confirm-head--info,
.bpc-confirm-head--primary {
  background: #0D1B3E;
}

.bpc-confirm-icon {
  font-size: 26px !important;
  line-height: 1 !important;
  opacity: 0.95;
  flex-shrink: 0;
}

.bpc-confirm-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.35;
  color: #fff;
}

.bpc-confirm-body {
  padding: 1.15rem 1.25rem 0.5rem;
}

.bpc-confirm-message {
  font-size: 14px;
  line-height: 1.55;
  color: #374151;
  margin: 0;
}

.bpc-confirm-foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem 1.15rem;
}

.bpc-confirm-btn {
  font-size: 13px;
  font-weight: 500;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.bpc-confirm-btn-cancel {
  background: #fff;
  color: #6B7280;
  border-color: #E5E7EB;
}

.bpc-confirm-btn-cancel:hover {
  background: #F3F4F6;
  color: #374151;
}

.bpc-confirm-btn-confirm {
  color: #fff;
}

.bpc-confirm-btn--primary,
.bpc-confirm-btn--info {
  background: #0D1B3E;
}

.bpc-confirm-btn--primary:hover,
.bpc-confirm-btn--info:hover {
  background: #1a3a6b;
}

.bpc-confirm-btn--warning {
  background: #D97706;
}

.bpc-confirm-btn--warning:hover {
  background: #B45309;
}

.bpc-confirm-btn--danger {
  background: #DC2626;
}

.bpc-confirm-btn--danger:hover {
  background: #B91C1C;
}

.bpc-confirm-btn--success {
  background: #059669;
}

.bpc-confirm-btn--success:hover {
  background: #047857;
}

.bpc-confirm-dialog--prompt {
  width: min(480px, 100%);
}

.bpc-confirm-field {
  margin-top: 0.15rem;
}

.bpc-confirm-message + .bpc-confirm-field {
  margin-top: 0.75rem;
}

.bpc-confirm-textarea {
  display: block;
  width: 100%;
  min-height: 88px;
  padding: 0.65rem 0.75rem;
  font-size: 14px;
  line-height: 1.5;
  color: #111827;
  background: #fff;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  resize: vertical;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.bpc-confirm-textarea::placeholder {
  color: #9CA3AF;
}

.bpc-confirm-textarea:focus {
  outline: none;
  border-color: #0D1B3E;
  box-shadow: 0 0 0 3px rgba(13, 27, 62, 0.12);
}

.bpc-confirm-textarea--error {
  border-color: #DC2626;
}

.bpc-confirm-textarea--error:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.bpc-confirm-field-error {
  font-size: 12px;
  color: #DC2626;
  margin: 0.4rem 0 0;
}

/* ── File preview modal ────────────────────────────────────── */
.bpc-file-preview-overlay {
  padding: 1.25rem;
}

.bpc-file-preview-dialog {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(13, 27, 62, 0.22);
  width: min(960px, 100%);
  max-height: calc(100vh - 2.5rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: bpcConfirmSlideIn 0.2s ease;
}

.bpc-file-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem 0.85rem 1.25rem;
  background: #0D1B3E;
  color: #fff;
}

.bpc-file-preview-head-text {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.bpc-file-preview-head-icon {
  font-size: 22px !important;
  flex-shrink: 0;
}

.bpc-file-preview-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bpc-file-preview-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}

.bpc-file-preview-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.bpc-file-preview-close .material-icons-outlined {
  font-size: 20px !important;
}

.bpc-file-preview-body {
  flex: 1;
  min-height: 320px;
  max-height: calc(100vh - 8rem);
  overflow: auto;
  background: #F3F4F6;
  padding: 1rem;
}

.bpc-file-preview-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 280px;
  color: #6B7280;
  font-size: 0.9rem;
}

.bpc-file-preview-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #D1D5DB;
  border-top-color: #0D1B3E;
  border-radius: 50%;
  animation: bpcFilePreviewSpin 0.8s linear infinite;
}

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

.bpc-file-preview-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.bpc-file-preview-image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 10rem);
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(13, 27, 62, 0.12);
  background: #fff;
}

.bpc-file-preview-frame {
  display: block;
  width: 100%;
  height: calc(100vh - 10rem);
  min-height: 420px;
  border: none;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(13, 27, 62, 0.08);
}

.bpc-file-preview-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 280px;
  text-align: center;
  color: #374151;
  font-size: 0.95rem;
}

.bpc-file-preview-fallback-icon {
  font-size: 48px !important;
  color: #9CA3AF;
}

/* ── Identity document copies (CPR / passport) ─────────────── */
.bpc-identity-docs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

@media (max-width: 767px) {
  .bpc-identity-docs-grid {
    grid-template-columns: 1fr;
  }
}

.bpc-identity-upload-box {
  border: 1px solid #E8ECF2;
  border-radius: 10px;
  padding: 1rem;
  background: #F9FAFB;
}

.bpc-identity-upload-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 13px;
  font-weight: 600;
  color: #0D1B3E;
  margin-bottom: 0.65rem;
}

.bpc-identity-upload-head .material-icons-outlined {
  font-size: 20px !important;
  color: #6B7280;
}

.bpc-identity-upload-preview {
  width: 100%;
  max-height: 120px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
  background: #fff;
  margin-bottom: 0.65rem;
}

.bpc-identity-upload-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 72px;
  border: 1px dashed #D1D5DB;
  border-radius: 8px;
  background: #fff;
  color: #9CA3AF;
  font-size: 12px;
  margin-bottom: 0.65rem;
}

.bpc-identity-upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.bpc-identity-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 12px;
  font-weight: 500;
  padding: 0.35rem 0.65rem;
  border-radius: 7px;
  border: 1px solid #E5E7EB;
  background: #fff;
  color: #0D1B3E;
  cursor: pointer;
}

.bpc-identity-upload-btn:hover {
  background: #F3F4F6;
}

.bpc-identity-upload-btn--muted {
  color: #6B7280;
}

.bpc-identity-upload-hint {
  font-size: 11px;
  color: #9CA3AF;
  margin: 0.5rem 0 0;
  line-height: 1.4;
}

.bpc-ap-identity-docs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.25rem;
  padding-top: 0.25rem;
  border-top: 1px solid #E8ECF2;
}

@media (max-width: 767px) {
  .bpc-ap-identity-docs {
    grid-template-columns: 1fr;
  }
}

.bpc-ap-identity-card {
  border: 1px solid #E8ECF2;
  border-radius: 12px;
  padding: 1rem;
  background: #FAFBFC;
}

.bpc-ap-identity-card--warn {
  border-color: #FCD34D;
  background: #FFFBEB;
}

.bpc-ap-identity-card--expired {
  border-color: #FCA5A5;
  background: #FEF2F2;
}

.bpc-ap-identity-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.bpc-ap-identity-card-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 14px;
  font-weight: 600;
  color: #0D1B3E;
}

.bpc-ap-identity-card-title .material-icons-outlined {
  font-size: 20px !important;
  color: #6B7280;
}

.bpc-ap-identity-meta {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.bpc-ap-identity-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 12px;
}

.bpc-ap-identity-meta-lbl {
  color: #6B7280;
}

.bpc-ap-identity-meta-val {
  color: #111827;
  font-weight: 500;
  text-align: right;
}

.bpc-ap-identity-actions {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.bpc-identity-edit-dialog .bpc-identity-edit-field {
  margin-bottom: 0.85rem;
}

.bpc-identity-edit-dialog .bpc-identity-edit-field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.35rem;
}

.bpc-identity-edit-input,
.bpc-identity-edit-file {
  display: block;
  width: 100%;
  font-size: 14px;
  padding: 0.5rem 0.65rem;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  background: #fff;
}

.bpc-identity-edit-input:focus {
  outline: none;
  border-color: #0D1B3E;
  box-shadow: 0 0 0 3px rgba(13, 27, 62, 0.1);
}

.bpc-identity-edit-hint {
  font-size: 11px;
  color: #6B7280;
  margin: 0.35rem 0 0;
}

.bpc-identity-edit-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: #FEF3C7;
  color: #92400E;
  font-size: 12px;
  line-height: 1.45;
  margin-bottom: 0.85rem;
}

.bpc-identity-edit-notice .material-icons-outlined {
  font-size: 18px !important;
  flex-shrink: 0;
}

.bpc-identity-edit-error {
  font-size: 12px;
  color: #DC2626;
  margin: 0.5rem 0 0;
}

/* ── Group / entry box ──────────────────────────────────────── */
.bpc-wiz-group-box {
  background: #F9FAFB;
  border: 0.5px solid #E8ECF2;
  border-radius: 8px;
  padding: 16px 20px;
}

.bpc-wiz-group-title {
  font-size: 13px;
  font-weight: 500;
  color: #6B7280;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.bpc-wiz-group-icon {
  font-size: 15px !important;
  line-height: 1 !important;
  vertical-align: -2px;
}

/* ── Section sub-divider (emergency contacts header) ──────── */
.bpc-wiz-section-divider {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.bpc-wiz-hint-inline {
  font-size: 12px;
  font-weight: 400;
  color: #9CA3AF;
  margin-left: 4px;
}

/* ── Checkbox labels ────────────────────────────────────────── */
.bpc-wiz-checks-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.bpc-wiz-checkbox-label {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  margin-bottom: 0;
  user-select: none;
}

/* ── Entry footer (primary checkbox + remove button) ─────── */
.bpc-wiz-entry-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #E8ECF2;
}

/* ── Remove button ──────────────────────────────────────────── */
.bpc-wiz-remove-btn {
  font-size: 12px;
  font-weight: 500;
  color: #DC2626;
  background: transparent;
  border: 1px solid #FECACA;
  border-radius: 6px;
  padding: 4px 12px;
  cursor: pointer;
  transition: background 0.15s;
}

.bpc-wiz-remove-btn:hover {
  background: #FEF2F2;
}

/* ── Add item button ────────────────────────────────────────── */
.bpc-wiz-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: #fff;
  border: 1.5px dashed #0D1B3E;
  border-radius: 8px;
  color: #0D1B3E;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.bpc-wiz-add-btn:hover {
  background: #EEF2FF;
}

.bpc-wiz-btn-icon {
  font-size: 16px !important;
  line-height: 1 !important;
  vertical-align: -3px;
}

/* ── Review pre ─────────────────────────────────────────────── */
.bpc-wiz-review-pre {
  background: #0F172A;
  color: #E2E8F0;
  padding: 20px 24px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.65;
  max-height: 380px;
  overflow: auto;
  white-space: pre;
}

/* ── Footer navigation ──────────────────────────────────────── */
.bpc-wiz-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #E8ECF2;
}

.bpc-wiz-footer-progress {
  font-size: 12px;
  color: #9CA3AF;
  text-align: center;
  flex-shrink: 0;
}

.bpc-wiz-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: transparent;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.bpc-wiz-btn-back:hover:not(:disabled) {
  background: #F9FAFB;
  border-color: #9CA3AF;
}

.bpc-wiz-btn-back:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.bpc-wiz-btn-next {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: #0D1B3E;
  border: 1px solid #0D1B3E;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.bpc-wiz-btn-next:hover:not(:disabled) {
  background: #1A3A6B;
  border-color: #1A3A6B;
}

.bpc-wiz-btn-next:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ── Review step ────────────────────────────────────────────── */
.bpc-rv-section {
  border: 1px solid #E8ECF2;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}

.bpc-rv-head {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F1F5F9;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #0D1B3E;
  border-bottom: 1px solid #E8ECF2;
}

.bpc-rv-head-icon {
  font-size: 16px !important;
  line-height: 1 !important;
  color: #0D1B3E !important;
  flex-shrink: 0;
}

.bpc-rv-count {
  font-size: 12px;
  font-weight: 400;
  color: #6B7280;
}

.bpc-rv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  padding: 4px 0;
}

.bpc-rv-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 16px;
  border-bottom: 1px solid #F1F5F9;
}

.bpc-rv-row:nth-last-child(-n+2) {
  border-bottom: none;
}

.bpc-rv-full {
  grid-column: 1 / -1;
}

.bpc-rv-lbl {
  font-size: 11px;
  font-weight: 500;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bpc-rv-val {
  font-size: 14px;
  color: #111827;
  font-weight: 400;
  line-height: 1.45;
  word-break: break-word;
}

.bpc-rv-empty {
  padding: 14px 16px;
  font-size: 13px;
  color: #9CA3AF;
}

.bpc-rv-sub {
  border-top: 1px solid #E8ECF2;
  background: #FAFAFA;
}

.bpc-rv-sub:first-of-type {
  border-top: none;
}

.bpc-rv-sub-head {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  background: #F8FAFC;
  border-bottom: 1px solid #E8ECF2;
}

.bpc-rv-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: #E0E7FF;
  color: #3730A3;
  margin-right: 4px;
  margin-bottom: 2px;
}

.bpc-rv-tag--primary {
  background: #DBEAFE;
  color: #1D4ED8;
}

.bpc-rv-tag--gold {
  background: #FEF3C7;
  color: #92400E;
}

.bpc-rv-tag--green {
  background: #D1FAE5;
  color: #065F46;
}

.bpc-rv-tag--red {
  background: #FEE2E2;
  color: #991B1B;
}

@media (max-width: 576px) {
  .bpc-rv-grid {
    grid-template-columns: 1fr;
  }
  .bpc-rv-row:last-child {
    border-bottom: none;
  }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .bpc-wizard-bg {
    padding: 16px;
  }
  .bpc-wiz-card {
    padding: 20px 16px;
  }
  .bpc-wiz-step-lbl {
    font-size: 9px;
    max-width: 46px;
  }
  .bpc-wiz-circle {
    width: 30px;
    height: 30px;
  }
  .bpc-wiz-connector {
    margin-top: 14px;
  }
}

/* ── Help & User Guide page ─────────────────────────────────── */

.bpc-help-page {
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 3rem;
}

.bpc-help-header {
  margin-bottom: 2rem;
}

.bpc-help-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--bpc-navy, #0D1B3E);
  margin-bottom: 0.5rem;
}

.bpc-help-subtitle {
  font-size: 1rem;
  color: #6B7280;
  margin-bottom: 1.25rem;
  max-width: 42rem;
  line-height: 1.55;
}

.bpc-help-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bpc-help-search-wrap {
  position: relative;
  flex: 1 1 auto;
  max-width: 32rem;
  min-width: 0;
}

.bpc-help-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9CA3AF;
  font-size: 1.1rem;
  pointer-events: none;
}

.bpc-help-search-input {
  width: 100%;
  padding: 11px 2.5rem 11px 2.75rem;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  font-size: 0.9375rem;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.bpc-help-search-input:focus {
  outline: none;
  border-color: #0D1B3E;
  box-shadow: 0 0 0 3px rgba(13, 27, 62, 0.08);
}

.bpc-help-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #6B7280;
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1;
  cursor: pointer;
}

.bpc-help-search-clear:hover {
  background: #F3F4F6;
  color: #0D1B3E;
}

.bpc-help-search-meta {
  font-size: 0.8125rem;
  color: #6B7280;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.bpc-help-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.bpc-help-nav {
  position: sticky;
  top: calc(var(--bpc-topbar-height, 64px) + 1.25rem);
  align-self: start;
  padding: 1rem 0;
}

.bpc-help-nav-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9CA3AF;
  margin-bottom: 0.75rem;
}

.bpc-help-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bpc-help-nav-link {
  display: block;
  padding: 0.45rem 0.75rem;
  margin-bottom: 2px;
  font-size: 0.8125rem;
  color: #4B5563;
  text-decoration: none;
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.bpc-help-nav-link:hover {
  background: #F3F4F6;
  color: #0D1B3E;
}

.bpc-help-nav-link--active {
  background: #EEF2FF;
  color: #0D1B3E;
  font-weight: 600;
  border-left-color: #0D1B3E;
}

.bpc-help-main {
  min-width: 0;
}

.bpc-help-section {
  background: #fff;
  border: 0.5px solid #E8ECF2;
  border-radius: 12px;
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
  scroll-margin-top: calc(var(--bpc-topbar-height, 64px) + 1rem);
}

.bpc-help-section-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.bpc-help-section-icon {
  font-size: 1.5rem;
  color: #0D1B3E;
  flex-shrink: 0;
  line-height: 1;
}

.bpc-help-section-title {
  font-size: 1.375rem;
  font-weight: 600;
  color: #0D1B3E;
  margin: 0;
}

.bpc-help-intro {
  font-size: 0.9375rem;
  color: #4B5563;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.bpc-help-subhead {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0D1B3E;
  margin: 0 0 0.75rem;
}

.bpc-help-table-wrap {
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

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

.bpc-help-table thead th {
  text-align: left;
  padding: 0.625rem 0.875rem;
  background: #F9FAFB;
  color: #374151;
  font-weight: 600;
  border: 0.5px solid #E8ECF2;
}

.bpc-help-table tbody td {
  padding: 0.625rem 0.875rem;
  color: #4B5563;
  border: 0.5px solid #E8ECF2;
  vertical-align: top;
}

.bpc-help-table tbody tr:nth-child(even) td {
  background: #FAFBFC;
}

.bpc-help-cover-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.bpc-help-cover-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  background: #F9FAFB;
  border: 0.5px solid #E8ECF2;
  border-radius: 8px;
}

.bpc-help-cover-icon {
  flex-shrink: 0;
  font-size: 1.25rem;
  color: #0D1B3E;
  line-height: 1;
  margin-top: 0.15rem;
}

.bpc-help-cover-item div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.bpc-help-cover-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0D1B3E;
}

.bpc-help-cover-desc {
  font-size: 0.8125rem;
  color: #6B7280;
  line-height: 1.5;
}

.bpc-help-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.bpc-help-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-bottom: 0.875rem;
}

.bpc-help-step-num {
  flex-shrink: 0;
  width: 1.625rem;
  height: 1.625rem;
  border-radius: 50%;
  background: #0D1B3E;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

.bpc-help-step-text {
  font-size: 0.9375rem;
  color: #374151;
  line-height: 1.6;
  flex: 1;
}

.bpc-help-screenshot {
  width: 100%;
  height: 280px;
  background: #F9FAFB;
  border: 2px dashed #D1D5DB;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.875rem;
  color: #6B7280;
  margin-bottom: 1.25rem;
}

.bpc-help-screenshot--filled {
  height: auto;
  min-height: 0;
  padding: 0;
  border-style: solid;
  border-color: #E8ECF2;
  background: #fff;
  overflow: hidden;
}

.bpc-help-screenshot-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  object-position: top center;
}

.bpc-help-tip {
  background: #FFFBEB;
  border-left: 4px solid #F59E0B;
  border-radius: 0 8px 8px 0;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  color: #92400E;
  line-height: 1.55;
}

.bpc-help-tip-label {
  font-weight: 600;
}

.bpc-help-faq-list {
  margin-top: 0.5rem;
}

.bpc-help-faq-item {
  border: 0.5px solid #E8ECF2;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  overflow: hidden;
  background: #fff;
}

.bpc-help-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1rem;
  border: none;
  background: #FAFBFC;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #0D1B3E;
  text-align: left;
  cursor: pointer;
}

.bpc-help-faq-q:hover {
  background: #F3F4F6;
}

.bpc-help-faq-a {
  padding: 0 1rem 1rem;
  font-size: 0.9375rem;
  color: #4B5563;
  line-height: 1.6;
}

.bpc-help-faq-a p {
  margin: 0;
  padding-top: 0.25rem;
}

.bpc-help-no-results {
  text-align: center;
  padding: 3rem 1.5rem;
  color: #6B7280;
  background: #fff;
  border: 0.5px solid #E8ECF2;
  border-radius: 12px;
}

.bpc-help-no-results-icon {
  font-size: 2rem;
  color: #D1D5DB;
  display: block;
  margin-bottom: 0.75rem;
}

.sidebar-wrapper .parent-icon .ti {
  font-size: 22px;
  line-height: 1;
}

/* ── Shepherd.js product tour (BPC theme) ───────────────────── */

.bpc-shepherd-step.shepherd-element {
  background: #ffffff;
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(13, 27, 62, 0.15);
  max-width: 320px;
  z-index: 10000;
}

/* Override Shepherd default gray header (.shepherd-has-title .shepherd-content .shepherd-header) */
.shepherd-element.bpc-shepherd-step.shepherd-has-title .shepherd-content .shepherd-header {
  background: #0d1b3e !important;
  border-radius: 12px 12px 0 0;
  padding: 14px 18px 10px !important;
  align-items: flex-start;
  flex-direction: column;
}

.bpc-shepherd-step .shepherd-header {
  background: #0d1b3e;
  border-radius: 12px 12px 0 0;
  padding: 14px 18px 10px;
  align-items: flex-start;
  flex-direction: column;
}

.shepherd-element.bpc-shepherd-step .shepherd-title {
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  flex: 1;
}

.bpc-shepherd-step .shepherd-title {
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  flex: 1;
}

.bpc-tour-progress {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
  margin-top: 4px;
  line-height: 1.2;
}

.bpc-shepherd-step .shepherd-text {
  color: #374151;
  font-size: 14px;
  line-height: 1.6;
  padding: 16px 18px;
}

.bpc-shepherd-step .shepherd-footer {
  padding: 0 18px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.bpc-shepherd-step .shepherd-button {
  margin: 0;
}

.bpc-tour-btn-next {
  background: #0d1b3e !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 8px 16px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

.bpc-tour-btn-next:hover {
  background: #1a3a6b !important;
}

.bpc-tour-btn-back {
  background: transparent !important;
  color: #6b7280 !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  padding: 8px 16px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

.bpc-tour-btn-skip {
  background: transparent !important;
  color: #ef4444 !important;
  border: none !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  margin-right: auto !important;
}

.bpc-tour-highlight {
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.4) !important;
  position: relative;
  z-index: 9999;
}

/* Match arrow to navy header when step has a title */
.shepherd-element.bpc-shepherd-step.shepherd-has-title[data-popper-placement^="bottom"] > .shepherd-arrow::before {
  background-color: #0d1b3e !important;
}

.shepherd-element.bpc-shepherd-step.shepherd-has-title[data-popper-placement^="top"] > .shepherd-arrow::before {
  background-color: #ffffff !important;
}

.shepherd-element.bpc-shepherd-step.shepherd-has-title[data-popper-placement^="left"] > .shepherd-arrow::before,
.shepherd-element.bpc-shepherd-step.shepherd-has-title[data-popper-placement^="right"] > .shepherd-arrow::before {
  background-color: #0d1b3e !important;
}

.bpc-shepherd-step-finish.shepherd-element {
  max-width: 340px;
}

.shepherd-modal-overlay-container.shepherd-modal-is-visible {
  opacity: 1;
}

.shepherd-modal-overlay-container .shepherd-modal-mask {
  fill: rgba(13, 27, 62, 0.55);
}

.bpc-help-tour-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  padding: 10px 20px;
  background: #0d1b3e;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.bpc-help-tour-btn:hover {
  background: #1a3a6b;
  color: #ffffff;
}

@media (max-width: 991px) {
  .bpc-help-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .bpc-help-nav {
    position: static;
    background: #fff;
    border: 0.5px solid #E8ECF2;
    border-radius: 12px;
    padding: 1rem;
  }

  .bpc-help-nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .bpc-help-nav-link {
    border-left: none;
    border: 1px solid #E5E7EB;
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
  }

  .bpc-help-nav-link--active {
    border-color: #0D1B3E;
  }
}

@media (max-width: 576px) {
  .bpc-help-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .bpc-help-tour-btn {
    margin-left: 0;
    justify-content: center;
  }

  .bpc-help-search-wrap {
    max-width: none;
  }

  .bpc-help-section {
    padding: 1.25rem 1rem;
  }

  .bpc-help-screenshot {
    height: 200px;
    font-size: 0.8125rem;
  }

  .bpc-wiz-grid-2,
  .bpc-wiz-grid-3 {
    grid-template-columns: 1fr;
  }
  .bpc-wiz-step-lbl {
    display: none;
  }
  .bpc-wiz-circle {
    width: 26px;
    height: 26px;
  }
  .bpc-wiz-check-icon {
    font-size: 13px !important;
  }
  .bpc-wiz-num {
    font-size: 11px;
  }
  .bpc-wiz-connector {
    margin-top: 12px;
    min-width: 3px;
  }
  .bpc-wiz-footer-progress {
    display: none;
  }
}
