/* Full order / transaction history: same visual contract for every currency and locale. */
html body #root .player-shell .content-page:is(.transaction-records-page, .order-records-page) {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 720px !important;
  margin: 0 auto !important;
  padding: 10px 12px calc(88px + env(safe-area-inset-bottom)) !important;
  gap: 0 !important;
}
html body #root .player-shell .content-page:is(.transaction-records-page, .order-records-page) > .page-heading {
  min-height: 52px !important;
  margin: 0 !important;
  padding: 0 4px !important;
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) 42px !important;
  align-items: center !important;
  border: 0 !important;
  background: transparent !important;
}
html body #root .player-shell .content-page:is(.transaction-records-page, .order-records-page) > .page-heading > div {
  grid-column: 2 !important;
  text-align: center !important;
  min-width: 0 !important;
  max-width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
html body #root .player-shell .content-page:is(.transaction-records-page, .order-records-page) > .page-heading p {
  display: none !important;
}
html body #root .player-shell .content-page:is(.transaction-records-page, .order-records-page) > .page-heading h1 {
  margin: 0 !important;
  color: #173d60 !important;
  font-size: 20px !important;
  line-height: 28px !important;
  font-weight: 800 !important;
}
html body #root .player-shell .content-page:is(.transaction-records-page, .order-records-page) > .page-heading .wallet-back-button {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 38px !important;
  min-width: 38px !important;
  height: 38px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid rgba(171, 134, 49, .55) !important;
  border-radius: 50% !important;
  background: #fffdf6 !important;
  color: #173d60 !important;
  box-shadow: 0 3px 8px rgba(67, 54, 25, .08) !important;
  font-size: 0 !important;
}
html body #root .player-shell .content-page:is(.transaction-records-page, .order-records-page) > .record-summary,
html body #root .player-shell .content-page:is(.transaction-records-page, .order-records-page) > .table-panel:not(.detailed-record-panel),
html body #root .player-shell .content-page:is(.transaction-records-page, .order-records-page) .detailed-record-panel > .panel-heading {
  display: none !important;
}
html body #root .player-shell .content-page:is(.transaction-records-page, .order-records-page) .detailed-record-panel {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body #root .player-shell .content-page:is(.transaction-records-page, .order-records-page) .record-filter-bar {
  box-sizing: border-box !important;
  width: 100% !important;
  height: 48px !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(164, 138, 77, .38) !important;
  border-radius: 10px !important;
  background: rgba(239, 240, 231, .92) !important;
}
html body #root .player-shell .content-page:is(.transaction-records-page, .order-records-page) .record-filter-bar > label {
  box-sizing: border-box !important;
  min-width: 0 !important;
  height: 48px !important;
  margin: 0 !important;
  padding: 0 5px !important;
  display: grid !important;
  place-items: center !important;
  border: 0 !important;
  background: transparent !important;
}
html body #root .player-shell .content-page:is(.transaction-records-page, .order-records-page) .record-filter-bar > label + label {
  border-left: 1px solid rgba(113, 111, 95, .24) !important;
}
html body #root .player-shell .content-page:is(.transaction-records-page, .order-records-page) .record-filter-bar > label > span {
  display: none !important;
}
html body #root .player-shell .content-page:is(.transaction-records-page, .order-records-page) .record-filter-bar > label:nth-last-child(1) {
  display: none !important;
}
html body #root .player-shell .content-page:is(.transaction-records-page, .order-records-page) .record-filter-bar select,
html body #root .player-shell .content-page:is(.transaction-records-page, .order-records-page) .record-filter-bar input[type="month"] {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 46px !important;
  margin: 0 !important;
  padding: 0 20px 0 5px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  color: #27332e !important;
  box-shadow: none !important;
  font-size: 12px !important;
  line-height: 46px !important;
  font-weight: 650 !important;
  text-align: center !important;
  text-align-last: center !important;
}
html body #root .player-shell .content-page:is(.transaction-records-page, .order-records-page) .detailed-record-list {
  box-sizing: border-box !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 12px !important;
  overflow: hidden !important;
  border: 1px solid rgba(167, 137, 70, .42) !important;
  border-radius: 12px !important;
  background: #fffdf7 !important;
}
html body #root .player-shell .content-page:is(.transaction-records-page, .order-records-page) .detailed-record-row {
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 62px !important;
  margin: 0 !important;
  padding: 8px 0 !important;
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 9px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #202a25 !important;
  text-align: left !important;
}
html body #root .player-shell .content-page:is(.transaction-records-page, .order-records-page) .detailed-record-row + .detailed-record-row {
  border-top: 1px solid rgba(124, 118, 94, .19) !important;
}
html body #root .player-shell .content-page:is(.transaction-records-page, .order-records-page) .detailed-record-row .record-icon {
  width: 36px !important;
  height: 36px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 50% !important;
}
html body #root .player-shell .content-page:is(.transaction-records-page, .order-records-page) .detailed-record-row .record-main {
  min-width: 0 !important;
  display: grid !important;
  gap: 3px !important;
}
html body #root .player-shell .content-page:is(.transaction-records-page, .order-records-page) .detailed-record-row .record-main strong {
  overflow: hidden !important;
  color: #1f2b26 !important;
  font-size: 12px !important;
  line-height: 17px !important;
  font-weight: 750 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
html body #root .player-shell .content-page:is(.transaction-records-page, .order-records-page) .detailed-record-row .record-main small {
  color: #858b87 !important;
  font-size: 9px !important;
  line-height: 12px !important;
}
html body #root .player-shell .content-page:is(.transaction-records-page, .order-records-page) .detailed-record-row .record-amount {
  display: grid !important;
  justify-items: end !important;
  gap: 2px !important;
}
html body #root .player-shell .content-page:is(.transaction-records-page, .order-records-page) .detailed-record-row .record-amount em {
  color: #6d756f !important;
  font-size: 8px !important;
  line-height: 11px !important;
  font-style: normal !important;
}
html body #root .player-shell .content-page:is(.transaction-records-page, .order-records-page) .detailed-record-row .record-amount b {
  color: #17211d !important;
  font-size: 13px !important;
  line-height: 18px !important;
  font-weight: 800 !important;
}
html body #root .player-shell .content-page:is(.transaction-records-page, .order-records-page) .detailed-record-row .record-amount b.negative {
  color: #a63f32 !important;
}
html body #root .player-shell .content-page:is(.transaction-records-page, .order-records-page) .detailed-record-row .record-amount b small {
  margin-right: 3px !important;
  color: #8b918e !important;
  font-size: 8px !important;
  font-weight: 500 !important;
}
html body #root .player-shell .content-page:is(.transaction-records-page, .order-records-page) .record-list-footer {
  margin: 10px 0 0 !important;
  padding: 0 4px !important;
}
@media (max-width: 359px) {
  html body #root .player-shell .content-page:is(.transaction-records-page, .order-records-page) {
    padding-inline: 8px !important;
  }
  html body #root .player-shell .content-page:is(.transaction-records-page, .order-records-page) .record-filter-bar select,
  html body #root .player-shell .content-page:is(.transaction-records-page, .order-records-page) .record-filter-bar input[type="month"] {
    font-size: 10px !important;
  }
}

/* v3: use the full player viewport and keep controls close to the fixed header. */
html body #root .player-shell .content-page:is(.transaction-records-page, .order-records-page) {
  width: 100% !important;
  max-width: none !important;
  min-height: calc(100dvh - 150px) !important;
  margin: 0 !important;
  padding: 0 4px calc(82px + env(safe-area-inset-bottom)) !important;
}
html body #root .player-shell:has(.transaction-records-page, .order-records-page) .main-area {
  padding-top: 10px !important;
}
html body #root .player-shell .content-page:is(.transaction-records-page, .order-records-page) > .page-heading {
  min-height: 44px !important;
  height: 44px !important;
  margin: 0 0 2px !important;
  padding-inline: 6px !important;
}
html body #root .player-shell .content-page:is(.transaction-records-page, .order-records-page) > .common-tool-inline-header {
  padding-top: 0 !important;
  border-bottom: 0 !important;
  background: transparent !important;
}
html body #root .player-shell .content-page:is(.transaction-records-page, .order-records-page) > .common-tool-inline-header > div {
  top: 22px !important;
}
html body #root .player-shell .content-page:is(.transaction-records-page, .order-records-page) > .common-tool-inline-header .player-action-page-back {
  top: 3px !important;
}
html body #root .player-shell .content-page:is(.transaction-records-page, .order-records-page) .record-filter-bar {
  margin-bottom: 6px !important;
  border-radius: 9px !important;
}
html body #root .player-shell .content-page:is(.transaction-records-page, .order-records-page) .detailed-record-list {
  min-height: calc(100dvh - 278px) !important;
  padding-inline: 8px !important;
  border-radius: 9px !important;
}

/* v4: one aligned title row and one clean, full-width three-column filter bar. */
html body #root .player-shell:has(.transaction-records-page, .order-records-page) .page-content {
  padding-inline: 0 !important;
}

html body #root .player-shell .content-page:is(.transaction-records-page, .order-records-page) {
  padding-inline: 0 !important;
}

html body #root .player-shell .content-page:is(.transaction-records-page, .order-records-page) > .page-heading {
  box-sizing: border-box !important;
  width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) 44px !important;
  grid-template-rows: 48px !important;
  align-items: center !important;
}

html body #root .player-shell .content-page:is(.transaction-records-page, .order-records-page) > .page-heading > div {
  position: static !important;
  inset: auto !important;
  width: auto !important;
  transform: none !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: center !important;
  justify-self: stretch !important;
  text-align: center !important;
}

html body #root .player-shell .content-page:is(.transaction-records-page, .order-records-page) > .page-heading .wallet-back-button,
html body #root .player-shell .content-page:is(.transaction-records-page, .order-records-page) > .page-heading .player-action-page-back {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  align-self: center !important;
  justify-self: start !important;
  margin: 0 !important;
}

/* Bold CJK glyphs sit optically lower than their line box on iOS Safari. */
html body #root .player-shell .content-page:is(.transaction-records-page, .order-records-page) > .page-heading h1 {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  text-align: center !important;
  white-space: nowrap !important;
  transform: translateY(-3px) !important;
}

html body #root .player-shell .content-page:is(.transaction-records-page, .order-records-page) .record-filter-bar {
  box-sizing: border-box !important;
  width: 100% !important;
  height: 52px !important;
  margin: 0 0 6px !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html body #root .player-shell .content-page:is(.transaction-records-page, .order-records-page) .record-filter-bar > label {
  height: 50px !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html body #root .player-shell .content-page:is(.transaction-records-page, .order-records-page) .record-filter-bar > label + label {
  border-left: 1px solid rgba(113, 111, 95, .24) !important;
}

html body #root .player-shell .content-page:is(.transaction-records-page, .order-records-page) .record-filter-bar > label:nth-last-child(1) {
  display: none !important;
  border: 0 !important;
}
