/* Captured reference history geometry, with live player data and no product tabs. */
.ref-page:has([data-player-history-slot]) { height:100%; min-height:0; display:flex; flex-direction:column; overflow:hidden; }
.ref-page:has([data-player-history-slot]) > header,
.ref-page:has([data-player-history-slot]) > .ref-surface-status { display:none; }
.ref-page:has([data-player-history-slot]) > .ref-surface-body { flex:1; min-height:0; padding:0; overflow:hidden; }
.ref-nav-history:has([data-player-history-slot]), [data-player-history-slot] { height:100%; min-height:0; }
body[data-standalone="true"] .ref-page:has([data-player-history-slot]) { height:100dvh; min-height:0; }
.player-history-page { display:flex; flex-direction:column; height:100%; min-height:0; padding:0 20px 20px; overflow:hidden; background:#f5f8ff; color:#001c38; font:13px Arial,"Microsoft YaHei",sans-serif; letter-spacing:0; }
.player-history-page * { box-sizing:border-box; letter-spacing:0; }
.player-history-page button, .player-history-page select, .player-history-page input { font:inherit; }
.player-history-page button { cursor:pointer; border:0; }
.player-history-page button:disabled { cursor:default; opacity:.5; }
.player-history-header { display:flex; align-items:center; gap:12px; height:60px; flex:none; border-bottom:1px solid #d7e1f4; }
.player-history-header h1 { margin:0 0 0 163px; font-size:12px; font-weight:400; }
.player-history-header time { margin-left:auto; font-size:12px; white-space:nowrap; }
.player-history-header button { display:grid; place-items:center; width:24px; height:24px; padding:0; color:#179cff; background:transparent; }
.player-history-tabbar { display:flex; align-items:end; justify-content:space-between; gap:12px; flex:none; min-height:42px; border-bottom:1px solid #fff; }
.player-history-tabbar nav { display:flex; gap:24px; }
.player-history-tabbar button { position:relative; height:36px; padding:0; font-size:12px; color:#53677d; background:transparent; white-space:nowrap; }
.player-history-tabbar button[aria-selected="true"] { color:#179cff; }
.player-history-tabbar button[aria-selected="true"]:after { content:""; position:absolute; bottom:0; left:50%; transform:translateX(-50%); width:30px; height:4px; border-radius:6px 6px 0 0; background:#179cff; }
.player-history-note { padding-bottom:10px; color:#66707a; font-size:12px; }
.player-history-note:not(:empty):before { content:""; display:inline-block; width:4px; height:4px; margin:0 5px 2px 0; border-radius:50%; background:#777; }
.player-history-filters { display:flex; flex-wrap:wrap; align-items:center; gap:12px; flex:none; min-height:54px; margin:0; padding:10px 14px; background:#f0f6ff; font-size:12px; }
.player-history-ranges { display:flex; flex:none; height:28px; padding:0 3px; border-radius:18px; background:#fff; }
.player-history-ranges button { min-width:52px; height:28px; padding:0 14px; border-radius:18px; background:transparent; color:#53677d; }
.player-history-ranges button[aria-pressed="true"] { color:#fff; background:#179cff; }
.player-history-categories { display:flex; gap:20px; align-items:center; margin-right:auto; }
.player-history-categories label { display:flex; align-items:center; gap:4px; white-space:nowrap; }
.player-history-categories input { width:14px; height:14px; margin:0; accent-color:#179cff; }
.player-history-sort { display:flex; align-items:center; flex:0 0 180px; height:28px; padding-left:14px; background:#fff; color:#179cff; }
.player-history-sort select { width:100%; min-width:0; height:28px; padding:0 8px; border:0; background:transparent; color:#18365b; }
.player-history-dates { display:flex; align-items:center; gap:3px; min-width:0; height:28px; padding:0 6px; background:#fff; }
.player-history-dates input { min-width:0; width:121px; height:28px; padding:0 2px; border:0; background:transparent; color:#18365b; font-size:12px; }
.player-history-dates > svg { display:none; }
.player-history-dates input::-webkit-calendar-picker-indicator,
.player-history-dates input:first-child::-webkit-calendar-picker-indicator { display:block; cursor:pointer; }
.player-history-query { min-width:60px; height:28px; padding:0 16px; border-radius:18px; background:#179cff; color:#fff; }
.player-history-table-scroll { flex:1 1 0%; min-height:0; overflow:auto; overscroll-behavior:contain; touch-action:pan-x pan-y; -webkit-overflow-scrolling:touch; border-radius:8px 8px 0 0; background:#fff; }
.player-history-page .player-history-table { width:100%; min-width:1080px; table-layout:fixed; border-collapse:separate; border-spacing:0 6px; background:#fff; }
.player-history-page .player-history-table thead tr { height:34px; }
.player-history-page .player-history-table th { position:sticky; top:0; z-index:2; height:34px; padding:0 16px; line-height:30px; font-size:12px; font-weight:400; text-align:left; color:#53677d; background:#f5f8ff; border:solid #fff; border-width:2px 0; }
.player-history-page .player-history-table th:first-child { width:5%; border-left-width:2px; border-radius:9px 0 0 9px; }
.player-history-page .player-history-table th:nth-child(2) { width:22%; }
.player-history-page .player-history-table th:nth-child(3) { width:15%; }
.player-history-page .player-history-table th:nth-child(4) { width:28%; }
.player-history-page .player-history-table th:nth-child(5) { width:10%; }
.player-history-page .player-history-table th:nth-child(6) { width:11%; }
.player-history-page .player-history-table th:last-child { width:9%; border-right-width:2px; border-radius:0 9px 9px 0; }
.player-history-page .player-history-table td { padding:14px 16px; font-size:13px; line-height:22px; vertical-align:middle; white-space:normal!important; overflow-wrap:anywhere; background:#f5f8ff; border:0; border-right:2px solid #dce4f3; }
.player-history-page .player-history-table td:last-child { border-right:0; }
.player-history-page .player-history-table td:first-child,
.player-history-page .player-history-table th:first-child,
.player-history-page .player-history-table td:nth-last-child(-n+3),
.player-history-page .player-history-table th:nth-last-child(-n+3) { text-align:center; }
.player-history-table .player-receipt-order { display:flex; align-items:baseline; justify-content:flex-start; flex-wrap:wrap; gap:4px; margin:0; color:#001c38; line-height:22px; }
.player-history-table .player-receipt-order button { flex:none; padding:0; color:#9aa8bc; }
.player-history-table .player-receipt-ticket-label { display:none; }
.player-history-selection + .player-history-selection, .player-history-market + .player-history-market { margin-top:8px; padding-top:8px; border-top:1px solid #dce4f3; }
.player-history-league { color:#001c38; }
.player-history-selection strong { display:flex; align-items:baseline; gap:10px; font-weight:400; color:#001c38; }
.player-history-selection strong b { color:#179cff; font-weight:400; }
.player-history-selection > div:not(.player-history-league), .player-history-muted { color:#8a8986; }
.player-history-selection > time { display:block; }
.player-history-status { color:#001c38; }
.player-history-status[data-status="2"], .player-history-status[data-status="5"] { color:#34a638; }
.player-history-status[data-status="3"], .player-history-status[data-status="6"] { color:#e93d3d; }
.player-history-page .player-history-table .player-history-money { font-weight:700; font-variant-numeric:tabular-nums; }
.player-history-money small { display:none; }
.player-history-page .player-history-table .player-history-empty { height:240px; text-align:center; vertical-align:middle; font-weight:400; background:#fff; }
.player-history-empty svg { display:inline-block; vertical-align:middle; margin-right:6px; }
.player-history-error { flex:none; margin:0; padding:8px; color:#be4141; background:#efdce4; font-size:12px; }
.player-history-footer { display:flex; align-items:center; justify-content:space-between; gap:20px; flex:none; min-height:50px; padding:10px; background:#fff; }
.player-history-footer nav { display:flex; align-items:center; gap:8px; font-size:12px; }
.player-history-footer button { display:grid; place-items:center; min-width:24px; height:24px; padding:0 4px; color:#179cff; background:transparent; border-radius:3px; }
.player-history-footer button[aria-current="page"], .player-history-jump button { background:#179cff; color:#fff; }
.player-history-footer select { width:60px; height:24px; margin-left:12px; padding:0 6px; border:1px solid #c1c7d0; border-radius:0; color:#001c38; background:#fff; }
.player-history-jump { display:flex; align-items:center; gap:5px; margin-left:20px; }
.player-history-jump input { width:34px; height:24px; padding:0 2px; border:0; text-align:center; color:#001c38; background:#f5f8ff; }
.player-history-totals { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:20px; font-size:14px; color:#8a8986; }
.player-history-totals span { white-space:nowrap; }
.player-history-totals b { margin-left:10px; color:#001c38; font-weight:700; }
.player-history-page :focus-visible { outline:2px solid #179cff; outline-offset:-2px; }
.player-records-footer { flex:none; text-align:center; color:#666; font-size:12px; line-height:24px; padding-top:6px; background:#f0f6ff; }
.player-records-footer a { display:block; min-height:30px; line-height:30px; color:#179cff; background:#e4ecfd; text-decoration:none; }
body.theme-2 .player-history-page, body.theme-2 .player-records-footer { background:#19222d; color:#c0ccdc; }
body.theme-2 .player-history-page .player-history-table th,
body.theme-2 .player-history-page .player-history-table td,
body.theme-2 .player-history-footer, body.theme-2 .player-history-table-scroll,
body.theme-2 .player-history-page .player-history-table { background:#242f3d; color:#c0ccdc; border-color:#43516a; }
body.theme-2 .player-history-filters { background:#202b3b; }
body.theme-2 .player-history-totals b, body.theme-2 .player-history-league, body.theme-2 .player-history-selection strong, body.theme-2 .player-history-status, body.theme-2 .player-receipt-order { color:#eef4ff; }
body.theme-2 .player-records-footer a { background:#303e50; }
@media (max-width:1100px) {
  .player-history-filters { gap:8px; padding:8px 0; }
  .player-history-sort { margin-left:auto; flex-basis:150px; }
  .player-history-categories { margin-right:0; gap:10px; }
  .player-history-footer { flex-wrap:wrap; gap:8px; }
  .player-history-totals { margin-left:auto; font-size:12px; }
}
@media (max-width:600px) {
  .player-history-page { padding:0 8px 8px; }
  .player-history-header { height:48px; }
  .player-history-header h1 { margin-left:4px; }
  .player-history-header time { font-size:11px; }
  .player-history-tabbar nav { gap:20px; }
  .player-history-note { display:none; }
  .player-history-sort { margin-left:0; flex-basis:130px; }
  .player-history-categories { margin-left:auto; }
  .player-history-dates { flex:0 0 calc(100% - 76px); }
  .player-history-dates input { flex:1; width:104px; min-width:100px; }
  .player-history-ranges { flex:none; }
  .player-history-ranges button { padding:0 12px; }
  .player-history-footer { padding:8px 0; }
  .player-history-footer nav { gap:5px; flex-wrap:wrap; }
  .player-history-jump { margin-left:4px; }
  .player-history-totals { width:100%; justify-content:space-between; gap:6px; }
  .player-history-totals b { margin-left:4px; }
}

/* Transaction records use their own column geometry. */
.player-history-page[data-section="transactions"] .player-history-sort { margin-left:auto; flex-basis:140px; }
.player-history-page[data-section="transactions"] .player-history-table { min-width:900px; border-spacing:0; }
.player-history-page[data-section="transactions"] .player-history-table th { height:38px; border:0; border-bottom:1px solid #dce4f3; border-radius:0; }
.player-history-page[data-section="transactions"] .player-history-table th:nth-child(1) { width:5%; }
.player-history-page[data-section="transactions"] .player-history-table th:nth-child(2) { width:16%; }
.player-history-page[data-section="transactions"] .player-history-table th:nth-child(3) { width:11%; }
.player-history-page[data-section="transactions"] .player-history-table th:nth-child(4) { width:27%; }
.player-history-page[data-section="transactions"] .player-history-table th:nth-child(5) { width:14%; text-align:right; }
.player-history-page[data-section="transactions"] .player-history-table th:nth-child(6) { width:18%; text-align:right; }
.player-history-page[data-section="transactions"] .player-history-table th:nth-child(7) { width:9%; }
.player-history-page[data-section="transactions"] .player-history-table td { height:72px; padding:12px 16px; border-right:0; border-bottom:1px solid #e7edf8; background:#fff; line-height:20px; }
.player-history-page[data-section="transactions"] .player-history-table tbody tr:nth-child(even) td { background:#f7faff; }
.player-history-page[data-section="transactions"] .player-history-table tbody tr:hover td { background:#eff6ff; }
.player-transaction-time { display:flex; flex-direction:column; font-variant-numeric:tabular-nums; }
.player-transaction-time span:last-child { color:#73849b; font-size:12px; }
.player-transaction-time small { font-size:10px; color:#94a1b3; margin-left:4px; }
.player-transaction-method { display:inline-block; padding:2px 9px; border-radius:4px; font-size:12px; background:#edf5ff; color:#3979b1; white-space:nowrap; }
.player-transaction-method[data-method="1"], .player-transaction-method[data-method="6"], .player-transaction-method[data-method="7"] { background:#eef8f1; color:#318352; }
.player-transaction-reference { user-select:text; }
.player-transaction-reference > span { display:block; font-size:12px; color:#71839a; }
.player-transaction-reference .player-transaction-id { font-weight:600; color:#274665; font-variant-numeric:tabular-nums; }
.player-history-page[data-section="transactions"] .player-history-table .player-history-money { text-align:right; white-space:nowrap!important; font-weight:600; }
.player-history-page[data-section="transactions"] .player-history-money small { display:block; color:#8797ad; font-size:10px; line-height:16px; font-weight:400; }
.player-history-page[data-section="transactions"] .player-history-table .player-transaction-balance { text-align:right; font-variant-numeric:tabular-nums; }
.player-transaction-balance > div { display:flex; justify-content:space-between; gap:12px; white-space:nowrap; }
.player-transaction-balance span { color:#8797ad; font-size:11px; }
.player-transaction-balance b { font-weight:400; }
.player-transaction-balance > div:last-child b { font-weight:600; }
.player-transaction-balance b[data-change="increase"] { color:#179cff; }
.player-transaction-balance b[data-change="decrease"] { color:#e93d3d; }
.player-transaction-status { display:inline-flex; align-items:center; gap:5px; font-size:12px; color:#318352; white-space:nowrap; }
.player-transaction-status:before { content:""; width:5px; height:5px; border-radius:50%; background:currentColor; }
.player-transaction-status[data-status="2"] { color:#d55252; }
@media (max-width:600px) {
  .player-history-page[data-section="transactions"] .player-history-sort { margin-left:auto; flex-basis:110px; }
  .player-history-page[data-section="transactions"] .player-history-filters { gap:8px; padding:10px 0; }
  .player-history-page[data-section="transactions"] .player-history-table td { padding:10px 12px; }
}
body.theme-2 .player-history-page[data-section="transactions"] .player-history-table td { background:#242f3d; border-color:#354257; }
body.theme-2 .player-history-page[data-section="transactions"] .player-history-table tbody tr:nth-child(even) td { background:#283443; }
body.theme-2 .player-history-page[data-section="transactions"] .player-history-table tbody tr:hover td { background:#303e50; }
body.theme-2 .player-transaction-reference .player-transaction-id { color:#c0ccdc; }
