/* ═══════════════════════════════════════════════════
   ui-list.css — Shared mobile list page styles
   Used by every list page (customer groups, etc.)
   DO NOT redefine .select-bar / .bulk-bar / .bottom-sheet
   — those are owned by app.css
   ═══════════════════════════════════════════════════ */

/* ── Title row ── */
.list-title-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px; margin-bottom: 12px;
}
.list-title    { font-size: 18px; font-weight: 800; color: #0f172a; }
.list-subtitle { font-size: 12px; color: #64748b; margin-top: 2px; }
.btn-title-act {
  display: flex; align-items: center; gap: 5px;
  background: #1a56db; border: none; border-radius: 10px;
  padding: 8px 14px; font-size: 12px; font-weight: 700;
  color: #fff; cursor: pointer; text-decoration: none; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(26,86,219,0.28);
}
.btn-title-act i { font-size: 15px; }

/*
 * Always-visible select-all bar.
 * MUST use .list-allbar — NEVER .select-bar.
 * app.css defines .select-bar as position:fixed; top:0; z-index:32
 * so any .select-bar in this page would cover the app-bar.
 */
.list-allbar {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 12px;
  padding: 10px 14px; margin: 0 12px 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.list-allbar label {
  font-size: 13px; font-weight: 600; color: #475569;
  cursor: pointer; user-select: none;
}

/* ── Card ── */
.list-card {
  background: #fff; border-radius: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  margin: 0 12px 10px; overflow: hidden; transition: box-shadow 0.15s;
}
.list-card.selected { box-shadow: 0 0 0 2px #1a56db, 0 2px 12px rgba(26,86,219,0.15); }
.list-card-top {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px 10px; border-bottom: 1px solid #f1f5f9;
}
.list-chk     { margin-top: 2px; width: 20px; height: 20px; accent-color: #1a56db; cursor: pointer; flex-shrink: 0; }
.list-name    { font-size: 15px; font-weight: 700; color: #0f172a; }
.list-sub     { font-size: 10px; color: #94a3b8; margin-top: 3px; }
.list-sort-no { font-size: 13px; font-weight: 800; color: #94a3b8; flex-shrink: 0; margin-top: 1px; }
.list-card-actions { display: flex; }
.list-act {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 5px; padding: 10px 6px; border: none; background: transparent;
  font-size: 12px; font-weight: 600; cursor: pointer;
  transition: background 0.15s; text-decoration: none;
}
.list-act:not(:last-child) { border-right: 1px solid #f1f5f9; }
.list-act.edit { color: #475569; }
.list-act.del  { color: #dc2626; }
.list-act:active { background: #f8fafc; }
.list-act i { font-size: 15px; }

/* ── Sort options (inside sort sheet in list fragment) ── */
.sort-option {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 20px; border-bottom: 1px solid #f1f5f9;
  text-decoration: none; color: #0f172a;
}
.sort-option:last-of-type { border-bottom: none; }
.sort-option span { font-size: 14px; font-weight: 500; }
.sort-option.active span { color: #1a56db; font-weight: 700; }

/* ── Delete confirm sheet content ── */
.confirm-body  { padding: 20px; text-align: center; }
.confirm-icon  {
  width: 64px; height: 64px; background: #fee2e2; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; font-size: 28px; color: #dc2626;
}
.confirm-title { font-size: 17px; font-weight: 700; color: #0f172a; margin-bottom: 6px; }
.confirm-sub   { font-size: 13px; color: #64748b; line-height: 1.5; }

/* ── Sort sheet inner layout (complement to app.css .bottom-sheet) ── */
.sheet-title {
  font-size: 16px; font-weight: 700; color: #0f172a;
  padding: 8px 20px 12px; border-bottom: 1px solid #f1f5f9; flex-shrink: 0;
}
.sheet-body { padding: 0; overflow-y: auto; flex: 1; }

/* ── Sheet action buttons ── */
.btn-sp {
  flex: 1; padding: 13px;
  background: linear-gradient(135deg,#1a56db 0%,#2563eb 60%,#7c3aed 100%);
  color: #fff; border: none; border-radius: 10px;
  font-size: 15px; font-weight: 600; cursor: pointer;
}
.btn-ss {
  padding: 13px 18px; background: #f1f5f9; color: #475569;
  border: none; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer;
}
.btn-del {
  flex: 1; padding: 13px; background: #dc2626; color: #fff;
  border: none; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer;
}

/* ── Default badge ── */
.badge-default {
  display: inline-flex; align-items: center;
  background: #dbeafe; color: #1d4ed8;
  font-size: 10px; font-weight: 700; letter-spacing: 0.4px;
  border-radius: 6px; padding: 1px 7px;
  margin-left: 6px; vertical-align: middle; text-transform: uppercase;
}

/* ── Filter button (next to search bar) ── */
.btn-filter {
  display: flex; align-items: center; gap: 6px;
  background: #fff; border: 1.5px solid #e2e8f0; border-radius: 12px;
  padding: 0 14px; height: 46px; cursor: pointer; flex-shrink: 0;
  color: #475569; font-size: 13px; font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06); transition: border-color 0.15s, background 0.15s;
}
.btn-filter i { font-size: 18px; }
.btn-filter.active { border-color: #1a56db; color: #1a56db; background: #eff6ff; }
.filter-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: #1a56db; color: #fff; border-radius: 10px;
  font-size: 10px; font-weight: 800; min-width: 17px; height: 17px; padding: 0 4px;
}

/* ── Filter sheet inner content ── */
.filter-group { padding: 14px 20px; }
.filter-group + .filter-group { border-top: 1px solid #f1f5f9; padding-top: 14px; }
.filter-label {
  font-size: 11px; font-weight: 700; color: #94a3b8;
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px;
}
.filter-input, .filter-select {
  width: 100%; border: 1.5px solid #e2e8f0; border-radius: 12px;
  padding: 11px 14px; font-size: 14px; color: #0f172a;
  background: #fff; outline: none; box-sizing: border-box;
  -webkit-appearance: none; appearance: none;
}
.filter-input:focus, .filter-select:focus { border-color: #1a56db; }
.filter-date-row { display: flex; gap: 10px; }
.filter-date-row .filter-input { flex: 1; }

/* ── Unlock action button ── */
.list-act.unlock { color: #d97706; }

/* ── Status dot badge ── */
.badge-status {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; margin-left: 5px; vertical-align: middle; flex-shrink: 0;
}
.badge-status.enabled  { background: #22c55e; }
.badge-status.disabled { background: #94a3b8; }

/* ── Group pill badge ── */
.badge-group {
  display: inline-flex; align-items: center;
  background: #f1f5f9; color: #475569;
  font-size: 10px; font-weight: 600; border-radius: 6px; padding: 1px 7px;
}

/* ── Meta row (group badge + date) ── */
.list-meta { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.meta-date { font-size: 10px; color: #94a3b8; }

/* ── Search clear button ── */
.search-clear {
  background: none; border: none; padding: 2px;
  color: #94a3b8; cursor: pointer; display: flex; align-items: center; flex-shrink: 0;
}

/* ── Search + filter inline row (neutralises .search-bar's own margin) ── */
.search-filter-row {
  display: flex; align-items: center; gap: 8px;
  margin: 0 12px 10px;
}
.search-filter-row .search-bar { flex: 1; margin: 0; }

/* ── Colorful group badges (customer list) ── */
.badge-grp {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 700; border-radius: 6px;
  padding: 2px 8px; margin-top: 4px; line-height: 1.4;
  max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.badge-grp-0 { background: #dbeafe; color: #1d4ed8; }
.badge-grp-1 { background: #ede9fe; color: #6d28d9; }
.badge-grp-2 { background: #dcfce7; color: #15803d; }
.badge-grp-3 { background: #fef3c7; color: #b45309; }
.badge-grp-4 { background: #fee2e2; color: #b91c1c; }
.badge-grp-5 { background: #e0f2fe; color: #0369a1; }

/* ── Customer card layout ── */
.cust-card-top {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 8px;
}
.cust-id   { font-size: 11px; font-weight: 800; color: #94a3b8; flex-shrink: 0; }
.cust-date { font-size: 10px; color: #94a3b8; flex-shrink: 0; }

.badge-cust-status {
  font-size: 10px; font-weight: 700; border-radius: 6px;
  padding: 2px 7px; line-height: 1.4; flex-shrink: 0;
}
.badge-cust-status.enabled  { background: #dcfce7; color: #15803d; }
.badge-cust-status.disabled { background: #f1f5f9; color: #94a3b8; }

.cust-card-mid {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 14px 12px; border-bottom: 1px solid #f1f5f9;
}
.cust-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; color: #fff;
  flex-shrink: 0; letter-spacing: 0.5px;
}
.cust-name {
  font-size: 15px; font-weight: 700; color: #0f172a;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cust-email {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; color: #64748b; margin-top: 3px;
  overflow: hidden;
}
.cust-email span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cust-email i    { font-size: 11px; flex-shrink: 0; }

/* ── Bank card layout ── */
.bank-card-top {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 8px;
}
.bank-card-mid {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 14px 12px; border-bottom: 1px solid #f1f5f9;
}
.bank-icon-btn {
  width: 44px; height: 44px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0; text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.bank-icon-btn i { font-size: 22px; }
.bank-icon-btn:hover  { transform: scale(1.1) rotate(-6deg); box-shadow: 0 4px 14px rgba(0,0,0,0.25); }
.bank-icon-btn:active { transform: scale(0.93); box-shadow: 0 1px 4px rgba(0,0,0,0.12); }
.bank-icon-static     { cursor: default; }
.bank-icon-static:hover, .bank-icon-static:active { transform: none; box-shadow: 0 2px 8px rgba(0,0,0,0.18); }

.bank-bal {
  flex-shrink: 0; display: flex; flex-direction: column;
  align-items: flex-end; justify-content: center; min-width: 72px;
}
.bank-bal-amount { font-size: 14px; font-weight: 800; line-height: 1.2; }
.bank-bal-label  { font-size: 10px; color: #94a3b8; margin-top: 2px; font-weight: 500; }
@keyframes spin  { to { transform: rotate(360deg); } }
.bank-bal-spin   { font-size: 16px; color: #cbd5e1; animation: spin 0.8s linear infinite; }
.bank-idx  { font-size: 11px; font-weight: 800; color: #94a3b8; flex-shrink: 0; }
.bank-name { font-size: 15px; font-weight: 700; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bank-type {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; color: #64748b; margin-top: 3px;
}
.bank-type i   { font-size: 11px; flex-shrink: 0; }
.bank-type span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── View action button ── */
.list-act.view { color: #7c3aed; }

/* ── Empty state ── */
.list-empty        { padding: 52px 28px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.list-empty-circle { width: 90px; height: 90px; border-radius: 50%; background: #f1f5f9; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.list-empty-circle i { font-size: 40px; color: #64748b; }
.list-empty-title  { font-size: 18px; font-weight: 800; color: #0f172a; margin-bottom: 8px; }
.list-empty        { background: #fff; border-radius: 14px; margin: 0 12px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.list-empty-desc   { font-size: 13px; color: #64748b; max-width: 240px; }

/* ── Transaction list card ── */
.tx-list-card { background: #fff; border-radius: 16px; padding: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.05); margin: 0 16px 8px; }
.tx-card-top  { display: flex; align-items: flex-start; gap: 10px; }
.tx-list-icon { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0; }
.tx-list-icon.transfer  { background: #eff6ff; color: #1a56db; }
.tx-list-icon.deposit   { background: #dcfce7; color: #16a34a; }
.tx-list-icon.withdrawl { background: #fee2e2; color: #dc2626; }
.tx-meta      { flex: 1; min-width: 0; }
.tx-from-to   { font-size: 13px; font-weight: 700; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-sub-row   { display: flex; align-items: center; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.tx-ref       { font-size: 11px; color: #94a3b8; font-family: monospace; }
.tx-date      { font-size: 11px; color: #94a3b8; }
.tx-status    { display: inline-block; padding: 1px 8px; border-radius: 20px; font-size: 10px; font-weight: 700; }
.tx-status.pass { background: #dcfce7; color: #16a34a; }
.tx-status.fail { background: #fee2e2; color: #dc2626; }
.tx-amount-col  { text-align: right; flex-shrink: 0; }
.tx-amount      { font-size: 15px; font-weight: 800; color: #0f172a; }
.tx-amount.dep  { color: #16a34a; }
.tx-amount.wdl  { color: #dc2626; }
.tx-card-actions { display: flex; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #f1f5f9; }
.tx-act      { display: flex; align-items: center; gap: 5px; padding: 7px 14px; border-radius: 10px; font-size: 12px; font-weight: 700; cursor: pointer; border: none !important; text-decoration: none; background: none; flex: none; justify-content: flex-start; }
.tx-act.view { background: #eff6ff; color: #1a56db; }
.tx-act.edit { background: #f0fdf4; color: #059669; }
.tx-act.del  { background: #fff1f2; color: #dc2626; margin-left: auto; }

/* ── Autocomplete dropdown (filter sheets & forms) ── */
.ac-drop       { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: #fff; border: 1.5px solid #e2e8f0; border-radius: 12px; z-index: 60; box-shadow: 0 4px 16px rgba(0,0,0,.1); overflow: hidden; display: none; }
.ac-item       { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; border-bottom: 1px solid #f8fafc; }
.ac-item:last-child { border-bottom: none; }
.ac-item:active { background: #f8fafc; }
.ac-av         { width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg,#1a56db,#7c3aed); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; flex-shrink: 0; }
.ac-name       { font-size: 13px; font-weight: 700; color: #0f172a; }
.ac-meta       { font-size: 11px; color: #94a3b8; margin-top: 1px; }

/* ── Pagination fragment ── */
.pag-wrap    { display: flex; flex-direction: column; gap: 8px; padding: 4px 16px 80px; text-align: center; }
.pag-results { font-size: 12px; color: #64748b; font-weight: 500; }
.pag-btns    { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.pag-btns a, .pag-btns span { min-width: 38px; height: 38px; padding: 0 10px; border-radius: 10px; background: #fff; border: 1.5px solid #e2e8f0; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; cursor: pointer; color: #64748b; text-decoration: none; }
.pag-btns .active a, .pag-btns a:hover { background: #1a56db; border-color: #1a56db; color: #fff; }

/* ── FAB speed dial ── */
.fab-speed   { position: fixed; bottom: 80px; right: 16px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; z-index: 25; }
.fab-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; opacity: 0; transform: translateY(10px); transition: opacity .2s, transform .2s; }
.fab-speed.open .fab-actions { pointer-events: auto; opacity: 1; transform: translateY(0); }
.fab-action  { display: flex; align-items: center; gap: 10px; cursor: pointer; border: none; background: none; padding: 0; text-decoration: none; }
.fab-action-label { background: #0f172a; color: #fff; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 20px; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.fab-action-btn   { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; box-shadow: 0 3px 10px rgba(0,0,0,.2); flex-shrink: 0; border: none; cursor: pointer; color: #fff; }
.fab-action-btn.transfer  { background: linear-gradient(135deg,#1a56db,#7c3aed); }
.fab-action-btn.deposit   { background: #16a34a; }
.fab-action-btn.withdrawl { background: #dc2626; }
.fab-speed.open .fab-action:nth-child(3) { transition-delay: .04s; }
.fab-speed.open .fab-action:nth-child(2) { transition-delay: .08s; }
.fab-speed.open .fab-action:nth-child(1) { transition-delay: .12s; }
.fab-main  { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg,#1a56db,#7c3aed); color: #fff; font-size: 26px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(26,86,219,.45); border: none; cursor: pointer; transition: transform .25s; flex-shrink: 0; }
.fab-speed.open .fab-main { transform: rotate(45deg); }
.fab-dim   { position: fixed; inset: 0; background: rgba(15,23,42,.25); z-index: 24; opacity: 0; pointer-events: none; transition: opacity .2s; }
.fab-speed.open ~ .fab-dim { opacity: 1; pointer-events: auto; }

/* ── Secondary list-title action (print, export…) ── */
.btn-list-action   { display: flex; align-items: center; gap: 5px; background: #f1f5f9; border: none; border-radius: 10px; padding: 8px 12px; font-size: 12px; font-weight: 600; color: #475569; cursor: pointer; text-decoration: none; flex-shrink: 0; }
.btn-list-action i { font-size: 15px; }
