/* =========================================================
   PAK TRADING DESIGN SYSTEM — TRANSACTION HISTORY STYLES
   ========================================================= */

.uh-history {
  max-width: 1250px;
  margin: 0 auto;
  padding: 10px 4px 110px;
  color: var(--ink);
  font-family: 'Inter', Arial, sans-serif;
}

.uh-history * { box-sizing: border-box; }
.uh-history a { color: inherit; text-decoration: none; }
.uh-history button, .uh-history input, .uh-history select { font: inherit; }
.uh-history button, .uh-history summary { cursor: pointer; }
.uh-history h1, .uh-history h2, .uh-history p { margin: 0; }

.uh-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 10px 25px;
  position: relative;
}

.uh-eyebrow {
  font-size: 11px;
  color: var(--orange-secondary);
  letter-spacing: 2px;
  font-weight: 800;
  text-transform: uppercase;
}

.uh-heading h1 {
  font-size: clamp(30px, 3.7vw, 48px);
  letter-spacing: -1.8px;
  line-height: 1.12;
  margin: 10px 0 12px;
  font-weight: 800;
  color: var(--ink);
}

.uh-heading p {
  font-size: 14px;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.6;
}

.uh-heading-art {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.uh-heading-art > i {
  font-size: 65px;
  color: var(--orange-secondary);
  transform: rotate(-10deg);
  filter: drop-shadow(3px 5px 0 #ffd58c);
}

.uh-heading-art > span {
  font: italic 23px/1.25 Georgia, serif;
  transform: rotate(-7deg);
  max-width: 180px;
  color: var(--ink);
}

.uh-pages {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line-color);
  padding-bottom: 18px;
  margin-bottom: 23px;
}

.uh-pages a {
  padding: 10px 16px;
  border: 1px solid var(--line-color);
  border-radius: 12px;
  background: rgba(255,255,255,0.85);
  color: #526176;
  font-size: 12.5px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.uh-pages a.active, .uh-pages a[aria-current=page] {
  background: #fff0df;
  border-color: #ffb877;
  color: var(--orange-secondary);
}

.uh-filter-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 11px;
  font-size: 12px;
}

.uh-filter-label > span {
  font-size: 11px;
  color: var(--muted);
}

.uh-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 17px;
  align-items: stretch;
}

.uh-tab {
  --uh-accent: var(--orange-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1 0 auto;
  min-height: 52px;
  padding: 10px 17px;
  border: 1px solid #ffffff;
  border-radius: 17px;
  background: linear-gradient(140deg, #ffffff, #f9f9fb);
  box-shadow: 0 5px 14px rgba(51,56,72,0.05);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.uh-tab > i {
  font-size: 20px;
  color: var(--uh-accent);
}

.uh-tab.active, .uh-tab[aria-pressed=true] {
  background: linear-gradient(150deg, var(--orange-primary), var(--orange-secondary));
  color: #ffffff !important;
  border-color: transparent;
  box-shadow: 0 5px 14px rgba(246,103,32,0.25);
}

.uh-tab.active > i, .uh-tab[aria-pressed=true] > i {
  color: #ffffff !important;
}

.uh-deposit { --uh-accent: #069c3b; --uh-wash: #effaf2; }
.uh-withdraw { --uh-accent: #ed2453; --uh-wash: #fff1f4; }
.uh-profit { --uh-accent: #ed8500; --uh-wash: #fff8e9; }
.uh-bonus { --uh-accent: #8c21eb; --uh-wash: #f8f0ff; }
.uh-investment { --uh-accent: #1685b5; --uh-wash: #edfaff; }
.uh-credit { --uh-accent: #26876b; --uh-wash: #edf9f3; }
.uh-debit { --uh-accent: #576c9d; --uh-wash: #f0f3fa; }

.uh-tools {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 13px;
  margin-bottom: 16px;
}

.uh-search {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 17px;
  border: 1px solid #ffffff;
  border-radius: 18px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 4px 12px rgba(61,65,88,0.04);
}

.uh-search > i { font-size: 18px; color: var(--muted); }
.uh-search input {
  padding: 6px 0;
  border: 0;
  background: transparent;
  width: 100%;
  min-width: 0;
  color: var(--ink);
  font-size: 12.5px;
  outline: none;
}

.uh-records {
  display: grid;
  gap: 14px;
}

.uh-record {
  position: relative;
  overflow: hidden;
  background: linear-gradient(110deg, #ffffff 22%, var(--uh-wash, #f8fafc));
  border: 1px solid #ffffff;
  border-left: 6px solid var(--uh-accent, var(--orange-secondary));
  border-radius: 23px;
  box-shadow: 0 8px 24px rgba(70,53,27,0.06);
}

.uh-record-summary {
  display: grid;
  grid-template-columns: 65px minmax(0, 1.4fr) minmax(120px, 0.85fr) minmax(140px, 0.85fr) 35px;
  align-items: center;
  gap: 16px;
  padding: 18px 18px 18px 15px;
}

.uh-record-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #ffffff;
  background: radial-gradient(circle at 32% 17%, rgba(255,255,255,0.6), transparent 40%), var(--uh-accent, var(--orange-secondary));
  border: 2px solid #ffffff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.12);
  font-size: 24px;
}

.uh-record-main { min-width: 0; }
.uh-record h2 { font-size: 17px; font-weight: 800; letter-spacing: -0.4px; line-height: 1.2; color: var(--ink); }
.uh-record-main p { color: #485e76; font-size: 12px; line-height: 1.5; margin: 4px 0 6px; }

.uh-record-value {
  border-left: 1px solid rgba(31,57,80,0.08);
  padding-left: 15px;
  text-align: right;
  min-width: 0;
}

.uh-record-value > strong {
  display: block;
  color: var(--uh-accent, var(--green-accent));
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.5px;
  font-family: 'Inter', sans-serif;
}

.uh-status {
  display: inline-block;
  border-radius: 99px;
  padding: 5px 12px;
  margin-top: 6px;
  background: #e8f7ec;
  color: #147133;
  font-size: 10px;
  font-weight: 800;
}

.uh-empty {
  text-align: center;
  padding: 45px 15px;
  border-radius: 24px;
  background: #ffffff;
  color: #617186;
}

.uh-empty > i { font-size: 40px; color: var(--orange-secondary); margin-bottom: 15px; }
.uh-empty h2 { font-size: 21px; color: var(--ink); margin-bottom: 9px; }

.uh-brand-footer {
  border-top: 1px solid var(--line-color);
  padding: 25px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
  margin-top: 24px;
}

.uh-brand-footer b { color: var(--orange-secondary); }

@media(max-width: 760px) {
  .uh-heading-art { display: none; }
  .uh-record-summary {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 14px;
  }
  .uh-record-icon { width: 48px; height: 48px; font-size: 20px; }
  .uh-record-value { border-left: 0; border-top: 1px solid rgba(0,0,0,0.06); padding-left: 0; padding-top: 10px; text-align: left; grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
  .uh-tools { grid-template-columns: minmax(0, 1fr); }
  .uh-brand-footer { flex-direction: column; align-items: flex-start; }
}
