/* V36.7.1 — customer withdrawal tracking, softer action button and compact profile controls. */
.customer-withdrawals-card {
  margin: 0 0 22px; padding: clamp(15px, 2.5vw, 22px);
  border: 1px solid var(--border-color, rgba(130,150,180,.3));
  border-radius: 18px; background: color-mix(in srgb, var(--bg-surface, #fff) 90%, transparent);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .07);
}
.customer-withdrawals-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:14px; }
.customer-withdrawals-head h3 { margin:0 0 5px; font-size:clamp(16px,2vw,19px); color:var(--text-main,var(--text-color)); }
.customer-withdrawals-head p { margin:0; color:var(--text-sub,var(--text-muted)); font-size:12px; line-height:1.55; }
.customer-withdrawals-refresh { flex:0 0 auto; padding:8px 11px !important; }
.customer-withdrawals-filters { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)) auto auto; align-items:end; gap:9px; margin-bottom:13px; }
.customer-withdrawals-filters label { display:grid; gap:5px; color:var(--text-sub,var(--text-muted)); font-size:11px; font-weight:700; }
.customer-withdrawals-filters .form-control { min-width:0; min-height:42px; padding:8px 10px; font-size:12px; }
.customer-withdrawals-filters button { min-height:42px; padding:8px 13px !important; white-space:nowrap; }
.customer-withdrawals-list { display:grid; gap:9px; }
.customer-withdrawal-row { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 13px; border:1px solid var(--border-color,rgba(130,150,180,.28)); border-radius:13px; background:color-mix(in srgb,var(--bg-surface,#fff) 94%,transparent); }
.customer-withdrawal-main { display:grid; gap:4px; min-width:0; }
.customer-withdrawal-main strong { color:var(--text-main,var(--text-color)); font-size:13px; }
.customer-withdrawal-main span,.customer-withdrawal-main small { color:var(--text-sub,var(--text-muted)); font-size:11px; overflow-wrap:anywhere; }
.customer-withdrawal-meta { display:grid; justify-items:end; gap:6px; flex:0 0 auto; }
.customer-withdrawal-meta>b { font-size:15px; color:var(--text-main,var(--text-color)); }
.withdrawal-state { display:inline-flex; align-items:center; border-radius:999px; padding:5px 9px; font-size:10px; font-weight:800; }
.withdrawal-state.pending { color:#a16207; background:rgba(250,204,21,.17); }
.withdrawal-state.paid { color:#15803d; background:rgba(34,197,94,.15); }
.withdrawal-state.rejected { color:#b91c1c; background:rgba(239,68,68,.13); }

/* A lighter, tactile withdraw action. */
.balance-withdraw-action .btn-copy {
  background:linear-gradient(135deg,#a7e8d0,#a8d8f5) !important;
  color:#16445a !important; border:1px solid rgba(87,164,190,.42) !important;
  box-shadow:0 5px 14px rgba(72,150,180,.16) !important;
  transition:transform .16s ease, box-shadow .16s ease, filter .16s ease !important;
  -webkit-tap-highlight-color:transparent;
}
.balance-withdraw-action .btn-copy:hover { filter:saturate(1.08) brightness(1.02); box-shadow:0 8px 20px rgba(72,150,180,.23) !important; }
.balance-withdraw-action .btn-copy:active { transform:translateY(1px) scale(.975) !important; filter:brightness(.96) saturate(1.15); box-shadow:0 2px 6px rgba(72,150,180,.18) !important; }
.balance-withdraw-action .btn-copy:focus-visible { outline:3px solid rgba(56,189,248,.38); outline-offset:3px; }

.profile-password-toggle { width:100%; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:13px 0; border:0; border-radius:0; background:transparent; color:var(--text-main,var(--text-color)); font:inherit; font-weight:800; font-size:17px; text-align:left; cursor:pointer; }
.profile-password-toggle .profile-toggle-chevron { display:grid; place-items:center; width:28px; height:28px; border-radius:9px; background:color-mix(in srgb,var(--accent,#4f8fd8) 12%,transparent); transition:transform .18s ease; }
.profile-password-toggle[aria-expanded="true"] .profile-toggle-chevron { transform:rotate(180deg); }
#profile-password-fields { padding-top:10px !important; }

/* Portrait drawer: trim another small amount of vertical whitespace without hiding items. */
@media (orientation:portrait) and (max-width:600px) {
  #app-sidebar #main-tabs-nav { gap:0 !important; }
  #app-sidebar #main-tabs-nav .nav-section-heading { min-height:23px !important; margin:5px 4px 1px !important; padding:4px 8px 3px !important; font-size:9.5px !important; }
  #app-sidebar #main-tabs-nav > .tab-btn { min-height:39px !important; padding:7px 10px !important; gap:8px !important; font-size:12.5px !important; }
  #app-sidebar #main-tabs-nav .nav-icon-shell { width:21px !important; height:21px !important; flex-basis:21px !important; }
  #app-sidebar > .sidebar-heading { padding-top:8px !important; padding-bottom:8px !important; }
  #app-sidebar > .sidebar-foot { padding-top:6px !important; padding-bottom:6px !important; }
}
@media(max-width:620px) {
  .customer-withdrawals-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .customer-withdrawals-filters button { width:100%; }
  .customer-withdrawal-row { align-items:flex-start; }
  .customer-withdrawal-meta>b { font-size:13px; }
}
@media(max-width:380px) {
  .customer-withdrawals-head { flex-direction:column; }
  .customer-withdrawals-refresh { align-self:flex-end; }
  .customer-withdrawal-row { flex-direction:column; }
  .customer-withdrawal-meta { width:100%; display:flex; justify-content:space-between; align-items:center; }
}
