/* IB Commission History page-only (scoped by #ibCommissionHistoryPage) */

#ibCommissionHistoryPage .ibch-input .form-control,
#ibCommissionHistoryPage .ibch-input .form-select,
#ibCommissionHistoryPage .ibch-input .input-group-text {
  border-color: rgba(148, 163, 184, 0.22);
}

#ibCommissionHistoryPage .ibch-input .input-group-text {
  border-left: 0;
}

#ibCommissionHistoryPage .ibch-table thead th {
  background: #eef3ff;
  color: #2563eb;
  font-weight: 700;
  font-size: 0.8rem;
  border-bottom: 0;
  white-space: nowrap;
}

#ibCommissionHistoryPage .ibch-table tbody td {
  font-size: 0.875rem;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.4);
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  vertical-align: middle;
}

#ibCommissionHistoryPage .ibch-table tbody tr:nth-child(even) td {
  background: #f4f6f8;
}

#ibCommissionHistoryPage .ibch-table th,
#ibCommissionHistoryPage .ibch-table td {
  border-right: 1px dashed rgba(148, 163, 184, 0.35);
}

#ibCommissionHistoryPage .ibch-table th:last-child,
#ibCommissionHistoryPage .ibch-table td:last-child {
  border-right: 0;
}

#ibCommissionHistoryPage .ibch-dots {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  color: #131313;
  background: transparent;
}

#ibCommissionHistoryPage .ibch-dots.dropdown-toggle::after {
  display: none;
}

#ibCommissionHistoryPage .ibch-dots.dropdown-toggle::before {
  content: "⋮";
  font-size: 18px;
  line-height: 1;
  display: inline-block;
  transform: translateY(-1px);
}

#ibCommissionHistoryPage .ibch-dots:hover {
  background: #f1f5f9;
}

#ibCommissionHistoryPage .ibch-actions-menu {
  width: 200px;
  border-radius: 12px;
  padding: 10px 8px;
}

#ibCommissionHistoryPage .ibch-actions-menu .dropdown-item {
  border-radius: 10px;
  padding: 10px 10px;
  font-weight: 700;
  color: #111827;
}

#ibCommissionHistoryPage .ibch-actions-menu .dropdown-item i {
  width: 18px;
  text-align: center;
  color: #111827;
}

#ibCommissionHistoryPage .ibch-actions-menu .dropdown-item:hover {
  background: #f1f5f9;
}

#ibCommissionHistoryPage .ibch-filter-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#ibCommissionHistoryPage .ibch-filter-btn i {
  color: #111827;
}

/* Wallet status pill */
#ibCommissionHistoryPage .ibch-status {
  font-weight: 700;
  font-size: 0.75rem;
  min-width: 88px;
}

#ibCommissionHistoryPage .ibch-status-active {
  background: rgba(34, 197, 94, 0.18);
  color: #16a34a;
}

/* Wallet details card (match screenshot section) */
#ibCommissionHistoryPage .ibch-wallet-card {
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.06) !important;
}

#ibCommissionHistoryPage .ibch-wallet-card .card-body {
  padding-top: 18px !important;
  padding-bottom: 18px !important;
}

#ibCommissionHistoryPage .ibch-wallet-card hr {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  opacity: 1;
}

#ibCommissionHistoryPage .ibch-wallet-card .text-secondary {
  font-size: 0.78rem;
}

#ibCommissionHistoryPage .ibch-wallet-card .fw-bold.text-dark {
  letter-spacing: -0.01em;
}

/* Stat cards */
#ibCommissionHistoryPage .ibch-stat {
  border-radius: 16px;
  min-height: 118px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.06);
}

#ibCommissionHistoryPage .ibch-stat-label {
  letter-spacing: -0.01em;
  font-size: 0.85rem;
}

#ibCommissionHistoryPage .ibch-stat-ico {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.65);
}

#ibCommissionHistoryPage .ibch-stat-value {
  font-size: 1.8rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

#ibCommissionHistoryPage .ibch-stat-total {
  background: rgba(168, 85, 247, 0.10);
}

#ibCommissionHistoryPage .ibch-stat-paid {
  background: rgba(34, 197, 94, 0.10);
}

#ibCommissionHistoryPage .ibch-stat-pending {
  background: rgba(245, 158, 11, 0.12);
}

#ibCommissionHistoryPage .ibch-stat-last {
  background: rgba(37, 99, 235, 0.10);
}

/* Color accents (match screenshot style) */
#ibCommissionHistoryPage .ibch-stat-total .ibch-stat-label { color: #a855f7; }
#ibCommissionHistoryPage .ibch-stat-paid .ibch-stat-label { color: #16a34a; }
#ibCommissionHistoryPage .ibch-stat-pending .ibch-stat-label { color: #f59e0b; }
#ibCommissionHistoryPage .ibch-stat-last .ibch-stat-label { color: #2563eb; }

#ibCommissionHistoryPage .ibch-stat-total .ibch-stat-ico i { color: #a855f7; }
#ibCommissionHistoryPage .ibch-stat-paid .ibch-stat-ico i { color: #16a34a; }
#ibCommissionHistoryPage .ibch-stat-pending .ibch-stat-ico i { color: #f59e0b; }
#ibCommissionHistoryPage .ibch-stat-last .ibch-stat-ico i { color: #2563eb; }

/* Type and status pills in table */
#ibCommissionHistoryPage .ibch-type {
  font-weight: 700;
  font-size: 0.75rem;
  min-width: 74px;
}

#ibCommissionHistoryPage .ibch-type-auto {
  background: rgba(37, 99, 235, 0.14);
  color: #2563eb;
}

#ibCommissionHistoryPage .ibch-type-manual {
  background: rgba(168, 85, 247, 0.14);
  color: #a855f7;
}

#ibCommissionHistoryPage .ibch-pill {
  font-weight: 700;
  font-size: 0.75rem;
  min-width: 88px;
}

#ibCommissionHistoryPage .ibch-pill-paid {
  background: rgba(34, 197, 94, 0.18);
  color: #16a34a;
}

#ibCommissionHistoryPage .ibch-pill-pending {
  background: rgba(37, 99, 235, 0.14);
  color: #2563eb;
}

#ibCommissionHistoryPage .ibch-pill-reserved {
  background: rgba(239, 68, 68, 0.16);
  color: #ef4444;
}

