/* V36.8.1 — bank account modal/edit mode and bounded lazy-loaded customer histories. */
.bank-management-heading { align-items:center; }
.bank-edit-toggle { display:inline-flex; align-items:center; justify-content:center; gap:7px; flex:0 0 auto; min-height:40px; padding:8px 11px; border:1px solid var(--border-color,rgba(130,150,180,.35)); border-radius:12px; background:color-mix(in srgb,var(--bg-surface,#fff) 86%,transparent); color:var(--text-main,var(--text-color)); font:inherit; font-size:12px; font-weight:750; cursor:pointer; }
.bank-edit-toggle .ui-line-icon { width:17px; height:17px; }
.bank-edit-toggle.is-editing { border-color:rgba(59,130,246,.55); background:rgba(59,130,246,.12); color:var(--accent,#2563eb); }
.customer-bank-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; align-items:center; gap:7px; }
.customer-bank-actions .btn-copy { min-height:38px; }
.customer-bank-add-modal-card { width:min(520px,calc(100vw - 28px)); max-height:min(88vh,720px); overflow-y:auto; }
.customer-bank-add-modal-card .form-group { margin-bottom:13px; }
.customer-bank-add-modal-card .form-control { min-height:48px; }
.customer-bank-add-modal-card .modal-head { margin-bottom:8px; }
.customer-withdrawals-list, .customer-links-list-scroll {
  display:grid; align-content:start; gap:9px;
  height:clamp(240px,52vh,510px); max-height:clamp(240px,52vh,510px);
  overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain;
  scrollbar-gutter:stable; padding:0 5px 8px 0; -webkit-overflow-scrolling:touch;
}
.customer-list-load-state { padding:10px 8px; text-align:center; color:var(--text-sub,var(--text-muted)); font-size:11px; opacity:.82; }
.customer-link-row { display:flex; align-items:center; justify-content:space-between; gap:12px; min-width:0; margin-bottom:0; padding:10px 12px; border:1px solid var(--border-color,rgba(130,150,180,.22)); border-radius:12px; background:var(--bg-surface,rgba(10,20,45,.5)); font-size:13px; }
.customer-link-main { display:flex; align-items:center; gap:8px; min-width:0; overflow:hidden; }
.customer-link-url { display:block; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--text-main,var(--text-color)); }
.customer-link-row .btn-copy { flex:0 0 auto; min-width:76px; }
.customer-withdrawal-row { flex:0 0 auto; }
@media(max-width:620px) {
  .customer-withdrawals-list, .customer-links-list-scroll { height:clamp(220px,48vh,440px); max-height:clamp(220px,48vh,440px); }
  .customer-bank-actions { justify-content:flex-start; }
  .customer-link-row { align-items:flex-start; }
  .customer-link-main { align-items:flex-start; flex-direction:column; gap:5px; }
}
@media(max-width:380px) {
  .bank-edit-toggle { padding:7px 9px; font-size:11px; }
  .customer-link-row .btn-copy { min-width:66px; padding:8px 9px !important; }
}
