/* Wallets page-only (scoped by #ibWalletsPage) */

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

#ibWalletsPage .ibw-input .input-group-text {
  border-left: 0;
}

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

#ibWalletsPage .ibw-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;
}

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

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

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

#ibWalletsPage .ibw-status {
  font-weight: 700;
  font-size: 0.75rem;
  min-width: 88px;
}

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

#ibWalletsPage .ibw-status-suspended {
  background: rgba(239, 68, 68, 0.16);
  color: #ef4444;
}

#ibWalletsPage .ibw-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;
}

#ibWalletsPage .ibw-dots.dropdown-toggle::after {
  display: none;
}

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

#ibWalletsPage .ibw-dots:hover {
  background: #f1f5f9;
}

#ibWalletsPage .ibw-actions-menu {
  width: 260px;
  border-radius: 12px;
  padding: 10px 8px;
}

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

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

#ibWalletsPage .ibw-actions-menu .dropdown-item.text-danger i {
  color: #ef4444;
}

#ibWalletsPage .ibw-actions-menu .dropdown-item:hover {
  background: #f1f5f9;
}

/* Delete Wallet modal (same overlay pattern as other modals) */
body.ibw-del-open .modal-backdrop.show {
  background: #0b1220;
  opacity: 0.72;
  z-index: 2000;
}

body.ibw-del-open .modal.ibw-del-modal {
  z-index: 2005;
}

.ibw-del-dialog {
  margin: 96px auto 0;
  max-width: 560px;
}

.ibw-del-content {
  border-radius: 18px;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.24);
}

.ibw-del-title {
  color: #dc2626;
}

.ibw-del-close {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.22);
  border: 0;
}

.ibw-del-close i {
  color: #111827;
  font-size: 16px;
}

.ibw-del-list li {
  margin-bottom: 0.4rem;
}

.ibw-del-list li::marker {
  color: #2563eb;
}

.ibw-del-warn {
  background: rgba(239, 68, 68, 0.10);
  border: 2px solid rgba(220, 38, 38, 0.65);
  color: #dc2626;
  border-radius: 12px;
}

.ibw-del-warn i {
  color: #dc2626;
}

/* Assign Referral offcanvas */
body.ibw-assign-open .offcanvas-backdrop.show {
  background: #0b1220;
  opacity: 0.72;
  z-index: 2000;
}

body.ibw-assign-open .offcanvas.ibw-assign-offcanvas {
  z-index: 2005;
}

body.ibw-assign-open .ibw-assign-subtitle,
.offcanvas.ibw-assign-offcanvas .ibw-assign-subtitle {
  margin-top: 4px;
}

.offcanvas.ibw-assign-offcanvas .ibw-assign-card {
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.offcanvas.ibw-assign-offcanvas .ibw-assign-warn {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 10px;
  color: #7c2d12;
}

.offcanvas.ibw-assign-offcanvas .ibw-assign-warn-ico {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.22);
}

.offcanvas.ibw-assign-offcanvas .ibw-assign-warn-ico i {
  color: #b45309;
}

.offcanvas.ibw-assign-offcanvas .ibw-assign-search .form-control,
.offcanvas.ibw-assign-offcanvas .ibw-assign-search .input-group-text {
  border-color: rgba(148, 163, 184, 0.22);
}

.offcanvas.ibw-assign-offcanvas .ibw-assign-search .input-group-text {
  border-left: 0;
}

.offcanvas.ibw-assign-offcanvas .ibw-ref-item {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  text-align: left;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 12px;
  padding: 14px 14px;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.offcanvas.ibw-assign-offcanvas .ibw-ref-item:hover {
  background: #f8fafc;
  border-color: rgba(37, 99, 235, 0.35);
}

.offcanvas.ibw-assign-offcanvas .ibw-ref-item.is-selected {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 10px 18px rgba(13, 110, 253, 0.12);
}

.offcanvas.ibw-assign-offcanvas .ibw-ref-check {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: transparent;
  flex: 0 0 auto;
}

.offcanvas.ibw-assign-offcanvas .ibw-ref-item.is-selected .ibw-ref-check {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.offcanvas.ibw-assign-offcanvas .ibw-assign-footer {
  position: sticky;
  bottom: 0;
  margin-top: 18px;
  padding-top: 12px;
  padding-bottom: 16px;
  background: #ffffff;
}

