/* =========================================================
   topup-history.css — ສະໄຕລ໌ສະເພາະໜ້າ "ປະຫວັດເຕີມເງິນ" (topup-history.html)
   ໃຊ້ໂຕນສີ/ຕົວແປຮ່ວມກັບ style.css (--bg ດຳສະໜິດ #000000, --red-glow ແດງສະໜິດ)
   ========================================================= */

.th-main{ padding:18px 20px 40px; position:relative; z-index:1; }

.th-title-row{ display:flex; align-items:center; gap:12px; margin:6px 0 6px; }
.th-back-btn{
  width:36px; height:36px; border-radius:11px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  background:var(--card); border:1px solid var(--card-border); color:var(--red-glow);
}
.th-back-btn svg{ width:18px; height:18px; }
.th-title-row h1{ font-size:21px; font-weight:800; }
.th-sub{ font-size:13px; color:var(--text-dim); margin:0 0 20px; }

/* ---------- Stat cards (stacked, full width — ตามภาพตัวอย่าง) ---------- */
.th-stats{ display:flex; flex-direction:column; gap:12px; margin-bottom:22px; }
.th-stat{
  background:var(--card); border:1px solid var(--card-border); border-radius:16px;
  padding:16px 18px;
}
.th-stat-head{
  display:flex; align-items:center; gap:7px;
  font-size:12.5px; color:var(--text-faint); font-weight:600; margin-bottom:8px;
}
.th-stat-head svg{ width:14px; height:14px; }
.th-stat-value{ font-size:24px; font-weight:800; color:var(--text); line-height:1; }
.th-stat-value.is-green{ color:#37d67a; }
.th-stat-value.is-red{ color:var(--red-glow); }
.th-stat-value .unit{ font-size:14px; font-weight:700; margin-left:2px; }

/* ---------- Loading ---------- */
.th-loading{ text-align:center; color:var(--text-faint); font-size:13px; padding:50px 20px; }

/* ---------- Empty state ---------- */
.th-empty{
  background:var(--card); border:1px solid var(--card-border); border-radius:20px;
  padding:48px 24px; text-align:center;
}
.th-empty-icon{
  width:56px; height:56px; margin:0 auto 18px; border-radius:16px;
  display:flex; align-items:center; justify-content:center;
  background:var(--bg-raise); color:var(--text-faint);
}
.th-empty-icon svg{ width:26px; height:26px; }
.th-empty h2{ font-size:16px; font-weight:800; margin-bottom:6px; }
.th-empty p{ font-size:12.5px; color:var(--text-faint); margin-bottom:22px; }
.th-empty-btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:12px 26px; border-radius:13px; border:none; font-family:inherit;
  font-size:14px; font-weight:800; color:#fff;
  background:var(--red);
  box-shadow:none;
}

/* ---------- History list ---------- */
.th-list{ display:flex; flex-direction:column; gap:12px; }
.th-item{
  background:var(--card); border:1px solid var(--card-border); border-radius:16px;
  padding:14px 16px; display:flex; align-items:center; gap:12px;
}
.th-item-icon{
  width:40px; height:40px; border-radius:12px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  background:var(--bg-raise); color:var(--red-glow);
}
.th-item-icon svg{ width:19px; height:19px; }
.th-item-body{ flex:1; min-width:0; }
.th-item-amount{ font-size:15px; font-weight:800; color:var(--text); }
.th-item-date{ font-size:11.5px; color:var(--text-faint); margin-top:2px; }
.th-item-ref{ font-size:11.5px; color:var(--text-faint); margin-top:2px; letter-spacing:.4px; }
.th-item-status{
  flex-shrink:0; font-size:11px; font-weight:800; padding:5px 11px; border-radius:999px;
  white-space:nowrap;
}
.th-item-status.pending{ background:rgba(232,179,74,.12); color:var(--gold); border:1px solid rgba(232,179,74,.35); }
.th-item-status.approved{ background:rgba(55,214,122,.12); color:#37d67a; border:1px solid rgba(55,214,122,.35); }
.th-item-status.rejected{ background:rgba(255,0,1,.12); color:var(--red-glow); border:1px solid rgba(255,0,1,.35); }

.th-error{ text-align:center; color:var(--text-faint); font-size:12.5px; padding:20px; }

@media (max-width:360px){
  .th-stats{ gap:10px; }
  .th-stat{ padding:14px; }
}
