/* BSA Registration Portal — front-end styles */

.bsa-portal {
  font-family: inherit;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

/* Top bar */
.bsa-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 0;           /* removed — handled by tab bar below */
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
}
.bsa-topbar-title strong { font-size: 15px; }
.bsa-topbar-title span   { color: #666; font-size: 14px; margin-left: 6px; }
.bsa-topbar-meta         { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font-size: 13px; color: #555; }
.bsa-deadline-reg,
.bsa-deadline-pay        { white-space: nowrap; }
.bsa-logout              { font-size: 13px; color: #888; text-decoration: none; }
.bsa-logout:hover        { color: #333; }

/* Notices */
.bsa-notice {
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 16px;
}
.bsa-notice-success { background: #e8f5e9; color: #2e7d32; border-left: 4px solid #4caf50; }
.bsa-notice-error   { background: #fdecea; color: #c62828; border-left: 4px solid #f44336; }
.bsa-notice-warning { background: #fff8e1; color: #ef6c00; border-left: 4px solid #ffa726; }
.bsa-notice-info    { background: #e3f2fd; color: #1565c0; border-left: 4px solid #42a5f5; }

/* Summary cards */
.bsa-summary-cards {
  display: grid;
  grid-template-columns: repeat( auto-fit, minmax(180px, 1fr) );
  gap: 12px;
  margin-bottom: 24px;
}
.bsa-card-stat {
  background: #f7f8fa;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 14px 16px;
}
.bsa-stat-label {
  display: block;
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
}
.bsa-stat-value {
  display: block;
  font-size: 22px;
  font-weight: 600;
  color: #1a1a1a;
}
.bsa-status-badge[data-status="paid_locked"] { color: #2e7d32; }
.bsa-status-badge[data-status="submitted_unpaid"] { color: #e65100; }
.bsa-status-badge[data-status="draft"] { color: #888; }

/* Card */
.bsa-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 16px;
}
.bsa-card-header h3 { margin: 0 0 4px; font-size: 17px; }
.bsa-card-header p  { margin: 0 0 16px; color: #666; font-size: 14px; }

/* Login */
.bsa-login-wrap {
  max-width: 420px;
}

/* Table */
.bsa-table-wrap { overflow-x: auto; width: 100%; }
.bsa-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.bsa-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #888;
  padding: 8px 10px;
  border-bottom: 1px solid #e0e0e0;
  white-space: nowrap;
}
.bsa-table td {
  padding: 10px 10px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}
.bsa-table tr:last-child td { border-bottom: none; }
.bsa-table tr:hover td      { background: #fafafa; }
.bsa-empty, .bsa-loading    { color: #aaa; font-style: italic; }
.bsa-mono                   { font-family: monospace; font-size: 13px; }

/* Badges */
.bsa-badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  background: #e8f5e9;
  color: #2e7d32;
  font-weight: 500;
  white-space: nowrap;
}
.bsa-badge-locked { background: #f5f5f5; color: #999; }
.bsa-badge-open   { background: #e8f0fe; color: #1a5298; }
.bsa-locked-label { font-size: 12px; color: #aaa; }

/* Actions row */
.bsa-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.bsa-actions-cell {
  white-space: nowrap;
  text-align: right;
}

/* Buttons */
.bsa-btn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1.4;
  transition: opacity 0.15s;
}
.bsa-btn:disabled { opacity: 0.45; cursor: default; }
.bsa-btn-primary   { background: #1a3a6b; color: #fff; border-color: #1a3a6b; }
.bsa-btn-primary:hover:not(:disabled) { background: #142d55; }
.bsa-btn-secondary { background: #f2f4f7; color: #333; border-color: #d8d8d8; }
.bsa-btn-secondary:hover:not(:disabled) { background: #e8eaed; }
.bsa-btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 4px 6px;
  color: #666;
  border-radius: 4px;
}
.bsa-btn-icon:hover { background: #f0f0f0; color: #111; }

/* Form */
.bsa-form { margin-top: 8px; }
.bsa-field { margin-bottom: 14px; }
.bsa-field label {
  display: block;
  font-size: 13px;
  color: #555;
  margin-bottom: 4px;
  font-weight: 500;
}
.bsa-field input[type="text"],
.bsa-field input[type="tel"],
.bsa-field input[type="email"],
.bsa-field input[type="text"],
.bsa-field input[type="email"],
.bsa-field input[type="tel"],
.bsa-field input[type="number"],
.bsa-field input[type="date"],
.bsa-field input[type="password"],
.bsa-field select,
.bsa-form input[type="text"],
.bsa-form input[type="password"],
.bsa-form select {
  width: 100%;
  max-width: 480px;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
}

/* Short fields — ID number, age, DOB, date */
#bsa-id-number  { max-width: 180px; }
#bsa-dob        { max-width: 140px; }
#bsa-gender     { max-width: 100px; }
#bsa-age        { max-width: 70px;  }
#bsa-province-fee,
#bsa-district-fee,
#bsa-amount-paid,
#bsa-player-credit { max-width: 130px; }
#bsa-date-deposit  { max-width: 160px; }
#bsa-deposit-ref   { max-width: 220px; }

/* Within a 2-col grid, fields fill their column */
.bsa-field-group .bsa-field input,
.bsa-field-group .bsa-field select { max-width: 100%; }
.bsa-field input:focus,
.bsa-field select:focus { outline: none; border-color: #1a3a6b; box-shadow: 0 0 0 2px #e0e7f7; }
.bsa-readonly { background: #f7f8fa !important; color: #888; cursor: not-allowed; }
.bsa-req { color: #c62828; }
.bsa-field-hint { font-size: 12px; color: #888; margin-top: 4px; }
.bsa-hint-success { color: #2e7d32; }
.bsa-hint-error   { color: #c62828; }
.bsa-field-full   { /* full width in grid */ }

.bsa-field-group { display: grid; gap: 12px; }
.bsa-field-group-2 { grid-template-columns: 1fr 1fr; }
.bsa-field-group-3 { grid-template-columns: 1fr 1fr 1fr; }

@media (max-width: 600px) {
  .bsa-field-group-2,
  .bsa-field-group-3 { grid-template-columns: 1fr; }
}

.bsa-section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 14px;
  font-size: 12px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.bsa-section-divider::before,
.bsa-section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e0e0e0;
}

.bsa-upgrade-field .bsa-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: normal;
  cursor: pointer;
}
.bsa-upgrade-field input[type="checkbox"] { width: auto; margin: 0; }
.bsa-upgrade-cost { color: #888; font-size: 13px; }

.bsa-ref-fees label { font-size: 12px; color: #999; }

/* Fee summary */
.bsa-fee-summary {
  background: #f7f8fa;
  border-radius: 8px;
  padding: 14px 16px;
  margin: 16px 0;
}
.bsa-fee-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 4px 0;
  color: #555;
}
.bsa-fee-total {
  font-weight: 600;
  font-size: 16px;
  color: #111;
  border-top: 1px solid #e0e0e0;
  margin-top: 6px;
  padding-top: 8px;
}

.bsa-form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* Checkout */
.bsa-checkout-lines {
  margin: 16px 0;
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
  padding: 12px 0;
}
.bsa-checkout-line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 5px 0;
  color: #555;
}
.bsa-checkout-total {
  font-weight: 700;
  font-size: 17px;
  color: #111;
  border-top: 1px solid #e0e0e0;
  margin-top: 8px;
  padding-top: 10px;
}

/* Correction request */
#bsa-correction-panel { margin-top: 16px; }
#bsa-correction-note  {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 14px;
  margin-bottom: 10px;
}

.bsa-small { font-size: 13px; color: #888; margin-top: 12px; }
.bsa-small a { color: #1a3a6b; }

/* Mainstream disciplines grid */
.bsa-disciplines-grid {
  display: grid;
  grid-template-columns: repeat( auto-fill, minmax( 160px, 1fr ) );
  gap: 8px;
  margin-top: 8px;
  padding: 12px;
  background: var(--bsa-bg-light, #f7f8fa);
  border: 1px solid #e0e0e0;
  border-radius: 6px;
}
.bsa-disciplines-grid .bsa-checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: normal;
  cursor: pointer;
  padding: 4px 0;
}
.bsa-disciplines-grid input[type="checkbox"] {
  width: auto;
  margin: 0;
}

/* Category multi-select checkboxes */
.bsa-categories-grid {
  display: grid;
  grid-template-columns: repeat( auto-fill, minmax( 220px, 1fr ) );
  gap: 8px;
  margin: 8px 0 16px;
}
.bsa-category-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  background: #fafafa;
  transition: border-color 0.15s, background 0.15s;
}
.bsa-category-label:hover { border-color: #1a3a6b; background: #f0f4fb; }
.bsa-category-label input[type="checkbox"] { width: auto; margin: 3px 0 0; flex-shrink: 0; }
.bsa-category-label input:checked + .bsa-cat-name { color: #1a3a6b; font-weight: 600; }
.bsa-category-label:has(input:checked) { border-color: #1a3a6b; background: #e8eefa; }
.bsa-cat-name { flex: 1; font-size: 14px; }
.bsa-cat-fee { font-size: 13px; font-weight: 600; color: #2e7d32; white-space: nowrap; }
.bsa-cat-note { font-size: 11px; color: #888; display: block; margin-top: 2px; }

/* Wide scrollable roster table — max 35 rows visible, scroll both axes */
.bsa-table-scroll {
  overflow-x: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  max-height: calc(25 * 38px + 42px + 36px); /* 25 data rows + header + footer */
}
.bsa-table-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #1a3a6b;
  color: #fff;
}
/* Sticky footer — totals always visible at bottom of scroll pane */
.bsa-table-scroll tfoot tr td,
.bsa-table-scroll tfoot tr th {
  position: sticky;
  bottom: 0;
  z-index: 3;
  background: #eef2fb;
  border-top: 2px solid #1a3a6b;
}
.bsa-table-wide { min-width: 1600px; white-space: nowrap; }
.bsa-table-wide th, .bsa-table-wide td { padding: 8px 10px; font-size: 13px; }
.bsa-col-sticky { position: sticky; left: 0; background: #fff; z-index: 2; box-shadow: 2px 0 4px rgba(0,0,0,0.06); }
.bsa-table-wide thead th.bsa-col-sticky { background: #f7f8fa; }
.bsa-fee-cell { font-weight: 600; color: #2e7d32; }
.bsa-col-actions { min-width: 70px; }

/* Filter bar */
.bsa-filter-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; font-size: 13px; }
.bsa-filter-bar select { font-size: 13px; padding: 5px 8px; border: 1px solid #d0d0d0; border-radius: 4px; min-width: 130px; }
.bsa-btn-sm { padding: 5px 10px; font-size: 13px; }
.bsa-filter-summary { font-size: 13px; color: #1a3a6b; font-style: italic; margin-left: 4px; }

/* Fee breakdown */
.bsa-fee-breakdown { font-size: 12px; color: #555; margin-top: 4px; }
.bsa-breakdown-line { padding: 2px 0; }

/* Sticky actions column (left) */
.bsa-col-sticky-left {
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 3;
  box-shadow: 3px 0 6px rgba(0,0,0,0.08);
  white-space: nowrap;
}
.bsa-table-wide thead th.bsa-col-sticky-left { background: #f7f8fa; }
.bsa-col-actions-head { min-width: 80px; }
.bsa-num-cell { text-align: right; font-variant-numeric: tabular-nums; }

/* Totals footer */
.bsa-totals-row td { background: #f7f8fa; font-size: 13px; border-top: 2px solid #1a3a6b; }

/* Sticky actions column (left) */
.bsa-col-sticky-left {
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 3;
  box-shadow: 3px 0 6px rgba(0,0,0,0.08);
  white-space: nowrap;
}
.bsa-table-wide thead th.bsa-col-sticky-left { background: #f7f8fa; }
.bsa-col-actions-head { min-width: 80px; }
.bsa-num-cell { text-align: right; font-variant-numeric: tabular-nums; }
.bsa-totals-row td { background: #f7f8fa; font-size: 13px; border-top: 2px solid #1a3a6b; }

/* Sticky actions column — RIGHT side */
.bsa-col-sticky-right {
  position: sticky;
  right: 0;
  background: #fff;
  z-index: 3;
  box-shadow: -3px 0 6px rgba(0,0,0,0.08);
  white-space: nowrap;
  text-align: center;
}
.bsa-table-wide thead th.bsa-col-sticky-right { background: #f7f8fa; }

/* Disabled category label */
.bsa-category-label[style*="opacity: 0.4"],
.bsa-category-label[style*="opacity:0.4"] { cursor: not-allowed; }

/* Left-align all table columns including amounts */
.bsa-table-wide td, .bsa-table-wide th { text-align: left; }
.bsa-num-cell { text-align: left; }
.bsa-fee-cell { text-align: left; }
.bsa-left { text-align: left; }

/* ═══════════════════════════════════════════
   STATEMENT OF ACCOUNT
   ═══════════════════════════════════════════ */
.bsa-stmt-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 36px 40px;
  max-width: 900px;
  margin: 24px auto;
}

/* Header */
.bsa-stmt-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 2px solid #1a3a6b;
}
.bsa-stmt-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a3a6b;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}
.bsa-stmt-label { font-size: 11px; text-transform: uppercase; color: #888; letter-spacing: 0.6px; }
.bsa-stmt-province-line { font-size: 12px; color: #555; margin-top: 2px; }
.bsa-stmt-province-name { font-size: 18px; font-weight: 700; color: #1a3a6b; margin: 4px 0 14px; }
.bsa-stmt-ref-line, .bsa-stmt-date-line { font-size: 13px; margin: 4px 0; color: #444; }
.bsa-stmt-ref-line span, .bsa-stmt-date-line span { color: #888; margin-right: 6px; }

.bsa-stmt-header-right { text-align: right; }
.bsa-stmt-bsa-name { font-size: 15px; font-weight: 700; color: #1a3a6b; }
.bsa-stmt-bsa-reg  { font-size: 11px; color: #888; margin-bottom: 6px; }
.bsa-stmt-bsa-addr { font-size: 12px; color: #555; }
.bsa-stmt-bsa-contact { font-size: 12px; color: #555; }

/* Transaction table */
.bsa-stmt-table-wrap { overflow-x: auto; margin-bottom: 24px; }
.bsa-stmt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.bsa-stmt-table thead th {
  background: #1a3a6b;
  color: #fff;
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}
.bsa-stmt-table thead th.bsa-stmt-num { text-align: right; }
.bsa-stmt-table tbody td {
  padding: 9px 12px;
  border-bottom: 1px solid #eef0f6;
  vertical-align: top;
  color: #333;
}
.bsa-stmt-table tbody tr:nth-child(even) td { background: #f9fafc; }
.bsa-stmt-table tbody tr.bsa-stmt-highlight td { background: #e8f0fc; font-weight: 600; }
.bsa-stmt-table tbody tr.bsa-stmt-payment td { color: #2e7d32; }
.bsa-stmt-table tbody tr.bsa-stmt-amendment-charge td { background: #fff3cd; color: #856404; font-style: italic; }
.bsa-stmt-table tbody tr.bsa-stmt-amendment-credit td { background: #d4edda; color: #155724; font-style: italic; }
.bsa-stmt-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bsa-stmt-neg { color: #2e7d32; }
.bsa-stmt-zero { color: #bbb; }

/* Tfoot */
.bsa-stmt-subtotal td, .bsa-stmt-total td {
  padding: 10px 12px;
  font-weight: 600;
  border-top: 2px solid #1a3a6b;
}
.bsa-stmt-total td { font-size: 15px; color: #1a3a6b; background: #eef2fb; }
.bsa-stmt-label-cell { text-align: right; color: #555; font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; }

/* Recon summary */
.bsa-stmt-recon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin: 12px 0 24px;
}
.bsa-stmt-recon-line {
  background: #f5f7fc;
  border: 1px solid #dde3f0;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
}
.bsa-stmt-recon-line .rc-cat { font-weight: 600; color: #1a3a6b; font-size: 12px; }
.bsa-stmt-recon-line .rc-count { color: #555; font-size: 12px; }
.bsa-stmt-recon-line .rc-total { font-weight: 700; font-size: 14px; color: #1a3a6b; margin-top: 4px; }

/* Banking */
.bsa-stmt-bank-table { font-size: 13px; width: auto; margin: 12px 0 24px; }
.bsa-stmt-bank-table td { padding: 5px 16px 5px 0; vertical-align: top; border: none; background: none; }
.bsa-stmt-bank-table td:first-child { color: #888; white-space: nowrap; min-width: 140px; }
.bsa-stmt-bank-table tr:nth-child(even) td { background: none; }

.bsa-stmt-thankyou {
  font-style: italic;
  color: #888;
  font-size: 13px;
  margin-bottom: 20px;
  text-align: center;
}
.bsa-stmt-actions { text-align: center; }

/* Print */
@media print {
  .bsa-topbar, .bsa-stmt-actions { display: none !important; }
  .bsa-stmt-card { box-shadow: none; padding: 0; }
  body { background: #fff; }
}

/* Portal navigation tabs */
.bsa-portal-nav {
  display: flex;
  gap: 4px;
  margin-bottom: 0;
  border-bottom: 2px solid #1a3a6b;
}
.bsa-portal-nav-tab {
  display: inline-block;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  text-decoration: none;
  border-radius: 8px 8px 0 0;
  background: #e8ecf4;
  border: 1px solid #d0d8ea;
  border-bottom: none;
  transition: background 0.15s, color 0.15s;
}
.bsa-portal-nav-tab:hover { background: #d0d8ea; color: #1a3a6b; }
.bsa-portal-nav-active {
  background: #1a3a6b;
  color: #fff !important;
  border-color: #1a3a6b;
}

/* ═══════════════════════════════════════════
   MAIN TABS (Recons / Past Recons)
   ═══════════════════════════════════════════ */
.bsa-main-tabs {
  display: flex;
  gap: 4px;
  margin: 16px 0 0;
  border-bottom: 2px solid #1a3a6b;
  position: sticky;
  top: 57px;          /* height of topbar — adjust if needed */
  z-index: 99;
  background: #fff;
  padding-bottom: 0;
}
.bsa-main-tab {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  background: #e8ecf4;
  border: 1px solid #d0d8ea;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.bsa-main-tab:hover { background: #d0d8ea; color: #1a3a6b; }
.bsa-main-tab-active { background: #1a3a6b !important; color: #fff !important; border-color: #1a3a6b; }
/* Link-style tabs (Province Info, Statement) look identical to button tabs */
a.bsa-main-tab-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  color: #555;
}
a.bsa-main-tab-link:hover { background: #d0d8ea; color: #1a3a6b; text-decoration: none; }
.bsa-tab-panel { padding-top: 16px; }

/* ── Loading spinner ── */
@keyframes bsa-spin { to { transform: rotate(360deg); } }
.bsa-spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid #d0d8ea;
  border-top-color: #1a3a6b;
  border-radius: 50%;
  animation: bsa-spin 0.7s linear infinite;
  margin-right: 6px;
  vertical-align: middle;
}
.bsa-loading-row td {
  background: #f7f9ff;
  color: #1a3a6b;
  font-style: italic;
}
/* Dim tabs while loading */
.bsa-main-tab:disabled,
.bsa-sub-tab:disabled,
.bsa-te-tab:disabled,
.bsa-te-cat-tab:disabled,
.bsa-inv-mgr-tab:disabled {
  cursor: not-allowed;
  pointer-events: none;
}
.bsa-sub-panel { padding-top: 0; }

/* Keep the portal height stable so the page doesn't jump on tab switch */
#bsa-dashboard > .bsa-tab-panel,
#bsa-dashboard > #bsa-tab-recon {
  min-height: 600px;
}

/* Admin main tabs — same sticky behaviour as manager */
#bsa-ra-tabs {
  position: sticky;
  top: 57px;
  z-index: 99;
  background: #fff;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* ── My Recon sub-tabs (Current / Past) ── */
.bsa-sub-tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 16px;
  border-bottom: 2px solid #3a6abf;
}
.bsa-sub-tab {
  padding: 7px 20px;
  font-size: 13px;
  font-weight: 600;
  color: #3a6abf;
  background: #eef2fb;
  border: 1px solid #c0cce8;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.bsa-sub-tab:hover { background: #d8e2f8; color: #1a3a6b; }
.bsa-sub-tab-active { background: #3a6abf !important; color: #fff !important; border-color: #3a6abf; }

/* ═══════════════════════════════════════════
   FROZEN COLUMNS (District + Club)
   Fixed widths ensure left offsets are exact.
   ═══════════════════════════════════════════ */
#bsa-roster-table,
#bsa-past-roster-table {
  border-collapse: separate !important;
  border-spacing: 0;
}

/* Column 1 — District: fixed 120px wide */
#bsa-roster-table th.bsa-frozen-1,
#bsa-roster-table td.bsa-frozen-1,
#bsa-past-roster-table th.bsa-frozen-1,
#bsa-past-roster-table td.bsa-frozen-1,
#bsa-ra-recon-table th.bsa-frozen-1,
#bsa-ra-recon-table td.bsa-frozen-1,
#bsa-ra-past-table th.bsa-frozen-1,
#bsa-ra-past-table td.bsa-frozen-1 {
  position: sticky;
  left: 116px;
  z-index: 3;
  width: 120px;
  min-width: 120px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* Frozen Code column: sits after # at left:36px */
#bsa-roster-table th.bsa-frozen-code,
#bsa-roster-table td.bsa-frozen-code,
#bsa-past-roster-table th.bsa-frozen-code,
#bsa-past-roster-table td.bsa-frozen-code,
#bsa-ra-recon-table th.bsa-frozen-code,
#bsa-ra-recon-table td.bsa-frozen-code,
#bsa-ra-past-table th.bsa-frozen-code,
#bsa-ra-past-table td.bsa-frozen-code {
  position: sticky;
  left: 36px;
  z-index: 3;
  width: 80px; min-width: 80px; max-width: 80px;
  font-family: monospace; font-size: 11px; font-weight: 700; color: #1a3a6b;
  white-space: nowrap;
}
#bsa-roster-table thead th.bsa-frozen-code,
#bsa-past-roster-table thead th.bsa-frozen-code,
#bsa-ra-recon-table thead th.bsa-frozen-code,
#bsa-ra-past-table thead th.bsa-frozen-code {
  z-index: 5; background: #1a3a6b !important; color: #fff;
  font-family: inherit; font-weight: 600;
}
#bsa-roster-table tbody tr:nth-child(odd) td.bsa-frozen-code,
#bsa-past-roster-table tbody tr:nth-child(odd) td.bsa-frozen-code,
#bsa-ra-recon-table tbody tr:nth-child(odd) td.bsa-frozen-code,
#bsa-ra-past-table tbody tr:nth-child(odd) td.bsa-frozen-code { background: #ffffff; }
#bsa-roster-table tbody tr:nth-child(even) td.bsa-frozen-code,
#bsa-past-roster-table tbody tr:nth-child(even) td.bsa-frozen-code,
#bsa-ra-recon-table tbody tr:nth-child(even) td.bsa-frozen-code,
#bsa-ra-past-table tbody tr:nth-child(even) td.bsa-frozen-code { background: #f5f7fc; }
#bsa-roster-table tbody tr:hover td.bsa-frozen-code,
#bsa-past-roster-table tbody tr:hover td.bsa-frozen-code,
#bsa-ra-recon-table tbody tr:hover td.bsa-frozen-code,
#bsa-ra-past-table tbody tr:hover td.bsa-frozen-code { background: #edf3ff !important; }
/* Column 2 — Club: fixed 140px, starts at 116+120=236px */
#bsa-roster-table th.bsa-frozen-2,
#bsa-roster-table td.bsa-frozen-2,
#bsa-past-roster-table th.bsa-frozen-2,
#bsa-past-roster-table td.bsa-frozen-2,
#bsa-ra-recon-table th.bsa-frozen-2,
#bsa-ra-recon-table td.bsa-frozen-2,
#bsa-ra-past-table th.bsa-frozen-2,
#bsa-ra-past-table td.bsa-frozen-2 {
  position: sticky;
  left: 236px;
  z-index: 3;
  width: 140px;
  min-width: 140px;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-right: 2px solid #c8d8f0;
  box-shadow: 3px 0 6px -2px rgba(0,0,0,0.15);
}

/* Header frozen cells */
#bsa-roster-table thead th.bsa-frozen-1,
#bsa-roster-table thead th.bsa-frozen-2,
#bsa-past-roster-table thead th.bsa-frozen-1,
#bsa-past-roster-table thead th.bsa-frozen-2,
#bsa-ra-recon-table thead th.bsa-frozen-1,
#bsa-ra-recon-table thead th.bsa-frozen-2,
#bsa-ra-past-table thead th.bsa-frozen-1,
#bsa-ra-past-table thead th.bsa-frozen-2 {
  z-index: 5;
  background: #1a3a6b !important;
  color: #fff;
}

/* Body frozen cells — match row stripe colours */
#bsa-roster-table tbody tr:nth-child(odd) td.bsa-frozen-1,
#bsa-roster-table tbody tr:nth-child(odd) td.bsa-frozen-2,
#bsa-past-roster-table tbody tr:nth-child(odd) td.bsa-frozen-1,
#bsa-past-roster-table tbody tr:nth-child(odd) td.bsa-frozen-2,
#bsa-ra-recon-table tbody tr:nth-child(odd) td.bsa-frozen-1,
#bsa-ra-recon-table tbody tr:nth-child(odd) td.bsa-frozen-2,
#bsa-ra-past-table tbody tr:nth-child(odd) td.bsa-frozen-1,
#bsa-ra-past-table tbody tr:nth-child(odd) td.bsa-frozen-2 { background: #ffffff; }

#bsa-roster-table tbody tr:nth-child(even) td.bsa-frozen-1,
#bsa-roster-table tbody tr:nth-child(even) td.bsa-frozen-2,
#bsa-past-roster-table tbody tr:nth-child(even) td.bsa-frozen-1,
#bsa-past-roster-table tbody tr:nth-child(even) td.bsa-frozen-2,
#bsa-ra-recon-table tbody tr:nth-child(even) td.bsa-frozen-1,
#bsa-ra-recon-table tbody tr:nth-child(even) td.bsa-frozen-2,
#bsa-ra-past-table tbody tr:nth-child(even) td.bsa-frozen-1,
#bsa-ra-past-table tbody tr:nth-child(even) td.bsa-frozen-2 { background: #f5f7fc; }

#bsa-roster-table tbody tr:hover td.bsa-frozen-1,
#bsa-roster-table tbody tr:hover td.bsa-frozen-2,
#bsa-past-roster-table tbody tr:hover td.bsa-frozen-1,
#bsa-past-roster-table tbody tr:hover td.bsa-frozen-2,
#bsa-ra-recon-table tbody tr:hover td.bsa-frozen-1,
#bsa-ra-recon-table tbody tr:hover td.bsa-frozen-2,
#bsa-ra-past-table tbody tr:hover td.bsa-frozen-1,
#bsa-ra-past-table tbody tr:hover td.bsa-frozen-2 { background: #edf3ff !important; }

/* ═══════════════════════════════════════════
   SORTABLE COLUMN HEADERS
   ═══════════════════════════════════════════ */
.bsa-sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.bsa-sortable:hover { background: rgba(255,255,255,0.12); }
.bsa-sort-arrow { font-size: 11px; opacity: 0.6; margin-left: 4px; }
.bsa-sort-active { opacity: 1; color: #ffd700; }

/* ═══════════════════════════════════════════
   DISCIPLINES SUMMARY TABLE
   ═══════════════════════════════════════════ */
.bsa-disc-summary-wrap { margin: 12px 0 20px; }
.bsa-disc-summary-table {
  width: auto;
  min-width: 500px;
  border-collapse: collapse;
  font-size: 13px;
}
.bsa-disc-summary-table thead th {
  background: #1a3a6b;
  color: #fff;
  padding: 8px 14px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}
.bsa-disc-summary-table tbody td {
  padding: 7px 14px;
  border-bottom: 1px solid #eef0f6;
  white-space: nowrap;
}
.bsa-disc-summary-table tbody tr:nth-child(even) td { background: #f7f8fc; }
.bsa-disc-summary-table tbody tr.bsa-disc-zero td { color: #bbb; }
.bsa-disc-summary-table tbody tr.bsa-disc-section td {
  background: #eef2fb;
  font-weight: 700;
  color: #1a3a6b;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.bsa-disc-total-row td {
  padding: 9px 14px;
  border-top: 2px solid #1a3a6b;
  background: #eef2fb;
  font-size: 14px;
}

/* Admin sort icons */
.bsa-sort-icon { font-size: 11px; margin-left: 4px; opacity: 0.7; }
.bsa-sort-active { opacity: 1; color: #ffd700; }

/* ═══════════════════════════════════════════
   ROSTER TABLE — COMPACT ROWS + BLUE HEADER
   ═══════════════════════════════════════════ */
#bsa-roster-table thead tr,
#bsa-past-roster-table thead tr {
  background: #1a3a6b;
}
#bsa-roster-table thead th,
#bsa-past-roster-table thead th {
  background: #1a3a6b;
  color: #fff;
  padding: 7px 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
  border: none;
}
#bsa-roster-table tbody td,
#bsa-past-roster-table tbody td {
  padding: 3px 8px !important;
  font-size: 12px;
  line-height: 1.3;
  border-bottom: 1px solid #eef0f8;
  vertical-align: middle;
  white-space: nowrap;
}
#bsa-roster-table tbody tr:nth-child(even) td { background: #f5f7fc; }
#bsa-roster-table tbody tr:nth-child(odd)  td { background: #ffffff; }
#bsa-past-roster-table tbody tr:nth-child(even) td { background: #f5f7fc; }
#bsa-past-roster-table tbody tr:nth-child(odd)  td { background: #ffffff; }
#bsa-roster-table tbody tr:hover td,
#bsa-past-roster-table tbody tr:hover td { background: #edf3ff !important; }

/* ═══════════════════════════════════════════
   RECON SUMMARY BAR (above current recon table)
   ═══════════════════════════════════════════ */
.bsa-recon-summary-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  background: #eef2fb;
  border: 1px solid #d0d8ea;
  border-radius: 6px;
  padding: 6px 12px;
  margin-bottom: 8px;
  font-size: 12px;
}
.bsa-rs-item {
  display: flex;
  flex-direction: column;
  padding: 2px 12px 2px 0;
}
/* Clickable category pill states */
.bsa-cat-pill {
  cursor: pointer;
  border-radius: 6px;
  padding: 4px 10px;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}
.bsa-cat-pill:hover {
  background: #edf3ff;
  border-color: #1a3a6b;
}
.bsa-cat-pill.bsa-cat-active,
.bsa-rs-cats .bsa-cat-active {
  background: #1a3a6b !important;
  border-color: #1a3a6b !important;
}
.bsa-cat-pill.bsa-cat-active .bsa-rs-label,
.bsa-cat-pill.bsa-cat-active .bsa-rs-val,
.bsa-cat-pill.bsa-cat-active strong,
.bsa-rs-cats .bsa-cat-active .bsa-rs-label,
.bsa-rs-cats .bsa-cat-active .bsa-rs-val,
.bsa-rs-cats .bsa-cat-active strong {
  color: #fff !important;
}
.bsa-cat-empty {
  opacity: 0.45;
}
.bsa-cat-empty:hover {
  opacity: 0.7;
}
.bsa-cat-zero {
  font-size: 11px;
  color: #aaa;
  font-style: italic;
}
.bsa-rs-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #888;
  font-weight: 600;
}
.bsa-rs-val {
  font-size: 12px;
  color: #1a3a6b;
  font-weight: 600;
  white-space: nowrap;
}
.bsa-rs-sep {
  width: 1px;
  background: #d0d8ea;
  align-self: stretch;
  margin: 0 8px 0 0;
}
.bsa-rs-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  flex: 1;
}
.bsa-rs-cats .bsa-rs-item:not(.bsa-cat-pill) {
  background: #fff;
  border: 1px solid #d0d8ea;
  border-radius: 4px;
  padding: 2px 8px;
}
.bsa-rs-total {
  margin-left: auto;
}
.bsa-rs-total .bsa-rs-val {
  font-size: 14px;
  color: #1a3a6b;
}

/* ═══════════════════════════════════════════
   PROVINCE INFO PAGE
   ═══════════════════════════════════════════ */
.bsa-info-page-title {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: #1a3a6b;
  padding: 14px 0 6px;
  letter-spacing: -0.2px;
}
.bsa-info-province-bar {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 6px 0 4px;
}
.bsa-info-prov-label {
  background: #1a3a6b;
  color: #fff;
  font-weight: 700;
  padding: 6px 16px;
  font-size: 13px;
  min-width: 110px;
}
.bsa-info-prov-val {
  background: #2e6b2e;
  color: #fff;
  font-weight: 700;
  padding: 6px 24px;
  font-size: 13px;
  flex: 1;
}
.bsa-info-note {
  color: #c0392b;
  font-size: 12px;
  margin: 4px 0 10px;
  font-style: italic;
}

/* Info tables */
.bsa-info-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
  font-size: 13px;
}
.bsa-info-table thead th {
  background: #1a3a6b;
  color: #fff;
  padding: 7px 10px;
  text-align: left;
  font-weight: 600;
  border: 1px solid #2a4a7b;
}
.bsa-info-table tbody td {
  border: 1px solid #ccc;
  padding: 4px 8px;
  vertical-align: middle;
}
.bsa-info-table tbody tr:nth-child(even) td { background: #fde8e8; }
.bsa-info-table tbody tr:nth-child(odd)  td { background: #fff; }

.bsa-info-role-label {
  font-size: 12px;
  color: #333;
  white-space: nowrap;
}
.bsa-info-input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 2px 4px;
  font-size: 12px;
  outline: none;
  box-sizing: border-box;
}
.bsa-info-input:focus { background: #fff8e1; }

/* Bank details section */
.bsa-info-bank-header {
  background: #c0392b !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  padding: 12px 10px !important;
  width: 160px;
  vertical-align: middle;
  line-height: 1.4;
}
.bsa-info-bank-field-label {
  font-size: 12px;
  color: #333;
  white-space: nowrap;
  padding: 4px 8px !important;
  width: 140px;
}

/* Fees table */
.bsa-info-fees-table thead th.bsa-info-fees-hdr {
  background: #1a3a6b;
  text-align: center;
  font-size: 13px;
}
.bsa-info-fee-col {
  text-align: center;
  white-space: nowrap;
  min-width: 90px;
  background: #2e6b2e !important;
}
.bsa-info-fee-desc {
  font-size: 12px;
  padding: 4px 8px !important;
}
.bsa-info-fee-bsa, .bsa-info-fee-total {
  text-align: center;
  font-weight: 700;
  white-space: nowrap;
  color: #1a3a6b;
}
.bsa-info-fee-prov, .bsa-info-fee-other {
  text-align: center;
  background: #d5e8d4 !important;
}
.bsa-info-fee-input {
  width: 80px;
  border: 1px solid #aaa;
  padding: 2px 4px;
  font-size: 12px;
  text-align: right;
  border-radius: 3px;
}

/* ═══════════════════════════════════════════
   INFO TABLE — COMPACT LINE HEIGHT
   ═══════════════════════════════════════════ */
.bsa-info-table tbody td,
.bsa-ra-info-body .bsa-info-table tbody td {
  padding: 2px 8px !important;
  line-height: 1.2 !important;
  font-size: 12px;
}
.bsa-info-table thead th {
  padding: 5px 8px !important;
  font-size: 12px;
}
.bsa-info-bank-header {
  padding: 8px 10px !important;
}
.bsa-info-fee-input {
  padding: 1px 4px;
}

/* Inv tab active style for manager */
.bsa-mgr-inv-tab.bsa-inv-tab-active {
  background: #1a3a6b !important;
  color: #fff !important;
}

/* ═══════════════════════════════════════════
   INVOICE SUB-TABS (recon admin + manager)
   ═══════════════════════════════════════════ */
.bsa-inv-tab,
.bsa-mgr-inv-tab {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #d0d8ea;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  background: #e8ecf4;
  color: #555;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.bsa-inv-tab:hover,
.bsa-mgr-inv-tab:hover {
  background: #d0d8ea;
  color: #1a3a6b;
}
.bsa-inv-tab.bsa-inv-tab-active,
.bsa-mgr-inv-tab.bsa-inv-tab-active {
  background: #1a3a6b !important;
  color: #fff !important;
  border-color: #1a3a6b;
}

/* ═══════════════════════════════════════════
   PRINT STYLES — no longer used (JS popup handles printing)
   ═══════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   BSA LOGO
   ═══════════════════════════════════════════ */
.bsa-portal-logo {
  text-align: center;
  padding: 12px 0 0;
  background: #fff;
}
.bsa-logo-img {
  max-height: 70px;
  width: auto;
  display: block;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════
   REPORTS TAB
   ═══════════════════════════════════════════ */
.bsa-reports-grid { padding: 4px 0; }

/* KPI row */
.bsa-reports-kpis {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px;
}
.bsa-rpt-kpi {
  flex: 1; min-width: 120px; background: #fff; border: 1px solid #d0d8ea;
  border-radius: 10px; padding: 14px 18px; text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.bsa-rpt-kpi-val {
  font-size: 28px; font-weight: 700; color: #1a3a6b; line-height: 1.1;
}
.bsa-rpt-kpi-label {
  font-size: 12px; font-weight: 600; color: #333; margin-top: 2px; text-transform: uppercase; letter-spacing: 0.4px;
}
.bsa-rpt-kpi-sub {
  font-size: 11px; color: #888; margin-top: 2px;
}

/* Chart rows */
.bsa-reports-row {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; align-items: flex-start;
}
.bsa-reports-chart-card {
  background: #fff; border: 1px solid #d0d8ea; border-radius: 10px;
  padding: 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); flex: 1; min-width: 260px;
}
.bsa-reports-chart-card h3 {
  font-size: 13px; font-weight: 600; color: #1a3a6b; margin: 0 0 12px 0;
  border-bottom: 1px solid #eef2fb; padding-bottom: 6px;
}
.bsa-reports-wide  { flex: 2; }
.bsa-reports-small { flex: 1; min-width: 180px; }
.bsa-reports-full  { flex: 1 0 100%; }

canvas { max-height: 320px; }

/* ── Admin recon edit & audit log ────────────────────────────────────────── */
.bsa-edit-btn { background: none; border: 1px solid #1a3a6b; color: #1a3a6b; border-radius: 4px; padding: 2px 8px; cursor: pointer; font-size: 12px; }
.bsa-edit-btn:hover { background: #1a3a6b; color: #fff; }
.bsa-edit-input { width: 100%; padding: 2px 4px; border: 1px solid #aac; border-radius: 3px; font-size: 12px; box-sizing: border-box; }
.bsa-audit-section { margin-top: 20px; border-top: 2px solid #1a3a6b; padding-top: 12px; }
.bsa-audit-title { font-weight: 700; color: #1a3a6b; font-size: 14px; margin-bottom: 8px; }
.bsa-audit-log { background: #f7f8fa; border: 1px solid #e0e0e0; border-radius: 6px; overflow: hidden; }
.bsa-audit-log table { width: 100%; border-collapse: collapse; font-size: 12px; }
.bsa-audit-log th { background: #1a3a6b; color: #fff; padding: 6px 10px; text-align: left; font-weight: 600; }
.bsa-audit-log td { padding: 5px 10px; border-bottom: 1px solid #e8e8e8; vertical-align: top; }
.bsa-audit-log tr:last-child td { border-bottom: none; }
.bsa-audit-log tr:hover td { background: #edf3ff; }
.bsa-audit-amendment { color: #856404; font-style: italic; font-size: 11px; }
.bsa-audit-increase { color: #c0392b; font-weight: 600; }
.bsa-audit-decrease { color: #27ae60; font-weight: 600; }
.bsa-audit-no-change { color: #888; }
.bsa-row-editing td { background: #fffbea !important; }
.bsa-row-num {
  color: #999; font-size: 11px; text-align: right; user-select: none;
  width: 36px; min-width: 36px; max-width: 36px;
  position: sticky; left: 0; z-index: 3;
  background: #fff;  /* explicit — never transparent */
}
/* Tournament form rows: don't freeze columns (table is not horizontally scrollable) */
.bsa-te-form-row td.bsa-row-num,
.bsa-te-form-row td.bsa-frozen-code,
.bsa-te-saved-slot td.bsa-row-num,
.bsa-te-saved-slot td.bsa-frozen-code {
  position: static;
  left: auto;
  z-index: auto;
  width: auto; min-width: auto; max-width: none;
  font-family: inherit;
}
.bsa-te-form-row td.bsa-row-num {
  color: #555; font-size: 11px; font-weight: 600;
  white-space: nowrap; padding: 4px 8px;
  width: 70px; min-width: 70px;
}
/* Stripe rows */
tbody tr:nth-child(even) td.bsa-row-num { background: #f5f7fc; }
tbody tr:hover td.bsa-row-num           { background: #edf3ff !important; }
/* Header */
thead th.bsa-row-num { background: #1a3a6b !important; color: #fff; z-index: 5; }
/* Footer */
tfoot td.bsa-row-num { background: #eef2fb !important; }

/* ── Tournament Entries Tab ─────────────────────────────────────────────── */
.bsa-te-tab {
  padding: 7px 16px; font-size: 13px; border: none;
  background: #f0f2f8; color: #333; cursor: pointer;
  border-radius: 4px 4px 0 0; border: 1px solid #d0d8ea; border-bottom: none;
  transition: background 0.15s;
}
.bsa-te-tab:hover { background: #e0e6f7; }
.bsa-te-tab-active { background: #1a3a6b !important; color: #fff !important; border-color: #1a3a6b !important; }
.bsa-te-cat-tab { transition: background 0.15s, border-color 0.15s; }
.bsa-te-cat-tab:hover { background: #e0e6f7 !important; }
.bsa-te-disc-section { padding: 8px 0; }

/* ── Invoice Tab ────────────────────────────────────────────────────────── */
.bsa-inv-mgr-tab {
  padding: 6px 14px; font-size: 12px; border: 1px solid #d0d8ea; border-bottom: none;
  background: #f8f9fc; color: #333; cursor: pointer; border-radius: 4px 4px 0 0;
  transition: background 0.15s;
}
.bsa-inv-mgr-tab:hover { background: #e0e6f7; }
.bsa-inv-mgr-tab-active { background: #1a3a6b !important; color: #fff !important; border-color: #1a3a6b !important; }
.bsa-inv-pay-btn { background: #27ae60; border-color: #27ae60; color: #fff; }
.bsa-inv-pay-btn:hover { background: #219a52; }


/* ── Print / Save as PDF styles ─────────────────────────────────────────── */
@media print {
  /* Hide everything except the isolated print container */
  body.bsa-printing > *:not(#bsa-print-wrap) { display: none !important; }

  /* Show the print container */
  body.bsa-printing #bsa-print-wrap {
    display: block !important;
    position: static !important;
    width: 100%;
    background: #fff;
    padding: 0;
    margin: 0;
  }

  /* Tables fill print width */
  #bsa-print-wrap .bsa-table-wrap  { overflow: visible !important; width: 100%; }
  #bsa-print-wrap .bsa-table-scroll { overflow: visible !important; max-height: none !important; border: none; }
  #bsa-print-wrap .bsa-table       { width: 100% !important; font-size: 10pt; }
  #bsa-print-wrap table { page-break-inside: auto; }
  #bsa-print-wrap tr    { page-break-inside: avoid; page-break-after: auto; }

  /* Reset sticky columns */
  #bsa-print-wrap .bsa-row-num,
  #bsa-print-wrap .bsa-frozen-code { position: static !important; left: auto !important; }

  body { font-size: 10pt; }
  a    { text-decoration: none !important; }
}
