/* These classes are only created by the detailed sports-history pages.
   Explicit ticket palettes keep light and dark tenant skins equally readable. */
.bet-history-cards .sports-history-ticket{
  --history-surface:#fff;--history-row:#f8fbff;--history-alt:#edf5fc;
  --history-head:#e5f1fc;--history-heading:#d6e9fa;--history-selection:#e5f2ff;
  --history-ink:#184362;--history-muted:#536e86;--history-accent:#075b9e;
  --history-odds:#086f9c;--history-border:#c7dbee;--history-pending-bg:#e2efff;--history-pending-ink:#285a93;
  --history-win-bg:#def4e8;--history-win-ink:#126444;--history-lose-bg:#ffe5eb;--history-lose-ink:#a92944;
  --history-void-bg:#fff0d4;--history-void-ink:#875700;
  min-width:0;border:1px solid var(--history-border);border-top:3px solid var(--history-accent);
  border-radius:12px;background:var(--history-surface);color:var(--history-ink);overflow:hidden;box-shadow:0 4px 16px #0001;
}
html[data-site-front="honeybet"] .sports-history-ticket{
  --history-surface:#fff;--history-row:#fffdf8;--history-alt:#fff7e8;
  --history-head:#fff1d6;--history-heading:#ffe6b6;--history-selection:#fff1d0;
  --history-ink:#303c53;--history-muted:#73634b;--history-accent:#925900;
  --history-odds:#a65b00;--history-border:#e7d7b7;--history-pending-bg:#fff0cc;--history-pending-ink:#815600;
}
html[data-site-front="ilwol"] .sports-history-ticket{
  --history-surface:#131c30;--history-row:#19243b;--history-alt:#222d46;
  --history-head:#2b2a48;--history-heading:#393153;--history-selection:#302c4d;
  --history-ink:#f3efff;--history-muted:#b9b9cf;--history-accent:#e0bbff;
  --history-odds:#f2d398;--history-border:#48516f;--history-pending-bg:#2b4262;--history-pending-ink:#c7dfff;
  --history-win-bg:#193d36;--history-win-ink:#90e1ba;--history-lose-bg:#482839;--history-lose-ink:#ffafc1;
  --history-void-bg:#443823;--history-void-ink:#f3d09a;
}
body.legacy-player:is([data-legacy-brand="bbr"],[data-legacy-brand="gogo"]) .sports-history-ticket{
  --history-surface:#111316;--history-row:#171a1e;--history-alt:#20242a;
  --history-head:#20242a;--history-heading:#2a2f36;
  --history-ink:#f3f4f6;--history-muted:#b6bec9;--history-accent:var(--legacy-border);
  --history-odds:#f5d482;--history-border:#42474e;
  --history-pending-bg:#263343;--history-pending-ink:#c7dfff;
  --history-win-bg:#193a2d;--history-win-ink:#91e2b4;
  --history-lose-bg:#412329;--history-lose-ink:#ffb0bb;
  --history-void-bg:#3b3221;--history-void-ink:#f3d09a;
}
body.legacy-player[data-legacy-brand="bbr"] .sports-history-ticket{
  --history-selection:#321b1f;
}
body.legacy-player[data-legacy-brand="gogo"] .sports-history-ticket{
  --history-selection:#162b3b;
}
.bet-history-cards .bet-card-list.is-sports-history{grid-template-columns:minmax(0,1fr);gap:22px}
.bet-history-cards .sports-history-ticket>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px;border-bottom:1px solid var(--history-border);background:var(--history-head);font-size:14px}
.bet-history-cards .sports-history-ticket>header>strong{min-width:0;color:var(--history-accent);font-weight:850;overflow-wrap:anywhere}
.bet-history-cards .sports-history-table-wrap{width:100%;min-width:0}
.bet-history-cards .sports-history-table{width:100%;min-width:0;table-layout:fixed;border-collapse:collapse;color:var(--history-ink);font-size:12px;line-height:1.55;text-align:center}
.bet-history-cards .sports-history-table caption{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.bet-history-cards .sports-history-table thead{background:var(--history-heading);color:var(--history-ink)}
.bet-history-cards .sports-history-table th{height:40px;padding:8px 6px;border:0;background:transparent;color:inherit;font-size:12px;font-weight:800;white-space:nowrap}
.bet-history-cards .sports-history-table th:nth-child(1){width:10%}.bet-history-cards .sports-history-table th:nth-child(2){width:13%}.bet-history-cards .sports-history-table th:nth-child(3){width:23%}.bet-history-cards .sports-history-table th:nth-child(4){width:12%}.bet-history-cards .sports-history-table th:nth-child(5){width:19%}.bet-history-cards .sports-history-table th:nth-child(6){width:7%}.bet-history-cards .sports-history-table th:nth-child(7){width:8%}.bet-history-cards .sports-history-table th:nth-child(8){width:8%}
.bet-history-cards .sports-history-table .sports-history-leg{background:var(--history-row)}
.bet-history-cards .sports-history-table .sports-history-leg:nth-child(even){background:var(--history-alt)}
.bet-history-cards .sports-history-table td{padding:14px 8px;border-bottom:1px solid var(--history-border);color:inherit;font-size:12px;vertical-align:middle;overflow-wrap:anywhere}
.bet-history-cards .sports-history-table tbody tr:last-child td{border-bottom:0}
.bet-history-cards .sports-history-table .sports-history-time time{display:grid;gap:3px;color:var(--history-muted);font-size:11px;line-height:1.5;white-space:nowrap;font-variant-numeric:tabular-nums}
.bet-history-cards .sports-history-leg-label{display:block;margin-bottom:5px;color:var(--history-accent);font-size:10px;font-weight:750;line-height:1.3}
.bet-history-cards .sports-history-clock{color:var(--history-ink);font-size:13px;font-weight:800}
.bet-history-cards .sports-history-league strong,.bet-history-cards .sports-history-league>span{display:block}
.bet-history-cards .sports-history-league strong{color:var(--history-accent);font-size:12px}
.bet-history-cards .sports-history-league>span{margin-top:4px;color:var(--history-muted);font-size:11px;line-height:1.5}
.bet-history-cards .sports-history-match{font-weight:750}
.bet-history-cards .sports-history-team{display:flex;justify-content:center;align-items:center;gap:6px;min-width:0}
.bet-history-cards .sports-history-team img{width:24px;height:24px;flex:none;object-fit:contain}
.bet-history-cards .sports-history-team>span{min-width:0;overflow-wrap:anywhere}
.bet-history-cards .sports-history-table .sports-history-vs{display:block;max-width:none;margin:4px 0;color:var(--history-muted);font-size:10px;font-weight:600;text-align:center}
.bet-history-cards .sports-history-table .sports-history-market{font-weight:650;color:var(--history-muted)}
.bet-history-cards .sports-history-table .sports-history-pick{color:var(--history-accent);font-weight:850}
.bet-history-cards .sports-history-pick .sports-history-value{display:block;padding:8px 7px;border:1px solid var(--history-border);border-radius:7px;background:var(--history-selection);font-size:12px;line-height:1.6;white-space:normal;overflow-wrap:anywhere}
.bet-history-cards .sports-history-table .sports-history-odds{color:var(--history-odds);font-size:14px;font-weight:850;font-variant-numeric:tabular-nums}
.bet-history-cards .sports-history-table .sports-history-score{font-size:13px;font-weight:800;font-variant-numeric:tabular-nums}
.bet-history-cards .sports-history-ticket .bet-result{display:inline-block;max-width:none;padding:5px 9px;border-radius:6px;white-space:nowrap;font-size:11px;font-weight:800;line-height:1.4}
.bet-history-cards .sports-history-ticket .bet-result[data-status="PENDING"]{color:var(--history-pending-ink);background:var(--history-pending-bg)}
.bet-history-cards .sports-history-ticket .bet-result.win{color:var(--history-win-ink);background:var(--history-win-bg)}
.bet-history-cards .sports-history-ticket .bet-result.lose{color:var(--history-lose-ink);background:var(--history-lose-bg)}
.bet-history-cards .sports-history-ticket .bet-result[data-status="VOID"]{color:var(--history-void-ink);background:var(--history-void-bg)}
.bet-history-cards .sports-history-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 16px;border-top:1px solid var(--history-border);background:var(--history-head)}
.bet-history-cards .sports-history-summary{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;min-width:0;margin:0;font-size:12px;line-height:1.6}
.bet-history-cards .sports-history-summary>div{display:flex;gap:5px;flex-wrap:wrap}
.bet-history-cards .sports-history-summary dt{color:var(--history-muted)}
.bet-history-cards .sports-history-summary dd{margin:0;color:var(--history-ink);font-weight:800;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.bet-history-cards .sports-history-summary .is-odds dd,.bet-history-cards .sports-history-summary .is-potential dd{color:var(--history-odds)}
.bet-history-cards .sports-history-summary .is-paid dd{color:var(--history-win-ink)}
.bet-history-cards .sports-history-summary .is-status dd{color:var(--history-accent)}
.bet-history-cards .sports-history-summary .is-placed time{display:flex;gap:6px;flex-wrap:wrap;color:var(--history-ink);font-size:12px;white-space:normal}
.bet-history-cards .sports-history-summary .sports-history-clock{font-size:inherit}
.bet-history-cards .bet-history-actions{display:flex;justify-content:flex-end;gap:7px;flex:none;margin:0;padding:10px 14px;border-top:1px solid var(--bet-border)}
.bet-history-cards .sports-history-footer>.bet-history-actions{padding:0;border:0}
.bet-history-actions button{min-height:40px;padding:8px 13px;border:1px solid var(--bet-border);border-radius:7px;background:var(--card,#fff);color:inherit;font-size:12px;font-weight:800;line-height:1.5;white-space:nowrap;cursor:pointer}
.bet-history-actions .bet-history-hide{border-color:color-mix(in srgb,#d34e5d 55%,var(--bet-border));background:color-mix(in srgb,var(--card,#fff) 90%,#d34e5d);color:var(--text,inherit)}
.bet-history-actions button:not(:disabled):hover{border-color:var(--bet-accent);color:var(--bet-accent)}
.bet-history-actions button:focus-visible{outline:2px solid var(--bet-accent);outline-offset:2px}
.bet-history-actions button:disabled{opacity:.45;cursor:not-allowed}
.bet-history-cards .sports-history-footer .bet-history-cancel{border-color:var(--history-border);background:var(--history-surface);color:var(--history-accent)}
@media(max-width:1100px){
  .bet-history-cards .sports-history-footer{flex-wrap:wrap}
  .bet-history-cards .sports-history-footer>.bet-history-actions{margin-left:auto}
  .bet-history-cards .sports-history-table td{padding:12px 5px}
}
@media(max-width:760px){
  .bet-history-cards .bet-card-list.is-sports-history{gap:18px}
  .bet-history-cards .sports-history-ticket>header{padding:12px;font-size:13px}
  .bet-history-cards .sports-history-table{display:block}
  .bet-history-cards .sports-history-table thead{display:none}
  .bet-history-cards .sports-history-table tbody{display:grid;gap:12px;padding:12px;background:var(--history-surface)}
  .bet-history-cards .sports-history-table .sports-history-leg,
  .bet-history-cards .sports-history-table .sports-history-leg:nth-child(even){
    display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:0;width:100%;min-width:0;padding:0;
    border:1px solid var(--history-border);border-radius:9px;background:var(--history-row);overflow:hidden;
  }
  .bet-history-cards .sports-history-table td{
    display:block;width:auto;min-width:0;margin:0;padding:0;border:0;font-size:12px;text-align:left;
  }
  .bet-history-cards .sports-history-table td:nth-child(n)::before{content:none}
  .bet-history-cards .sports-history-table .sports-history-time{grid-area:1/1/2/4;padding:10px 10px 9px;background:var(--history-head)}
  .bet-history-cards .sports-history-table .sports-history-time time{display:flex;align-items:center;flex-wrap:wrap;gap:4px 7px;font-size:11px;line-height:1.5}
  .bet-history-cards .sports-history-time .sports-history-clock{font-size:12px}
  .bet-history-cards .sports-history-table .sports-history-league{grid-area:1/4/2/7;padding:10px 10px 9px 4px;background:var(--history-head);text-align:right}
  .bet-history-cards .sports-history-league strong{font-size:11px}
  .bet-history-cards .sports-history-league>span{margin-top:2px;font-size:10px;line-height:1.4}
  .bet-history-cards .sports-history-table .sports-history-match{grid-area:2/1/3/7;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:8px;padding:13px 10px;font-size:12px;line-height:1.55}
  .bet-history-cards .sports-history-team{justify-content:flex-start;align-items:center;gap:5px}
  .bet-history-cards .sports-history-team:last-child{flex-direction:row-reverse;text-align:right}
  .bet-history-cards .sports-history-team img{width:22px;height:22px}
  .bet-history-cards .sports-history-table .sports-history-vs{margin:0;font-size:9px}
  .bet-history-cards .sports-history-table .sports-history-market{grid-area:3/1/4/7;margin:0 10px;padding:8px 10px 2px;border:1px solid var(--history-border);border-bottom:0;border-radius:7px 7px 0 0;background:var(--history-selection);color:var(--history-muted);font-size:11px;line-height:1.5}
  .bet-history-cards .sports-history-table .sports-history-pick{grid-area:4/1/5/7;margin:0 10px 10px;padding:1px 10px 9px;border:1px solid var(--history-border);border-top:0;border-radius:0 0 7px 7px;background:var(--history-selection)}
  .bet-history-cards .sports-history-pick .sports-history-value{padding:0;border:0;border-radius:0;background:transparent;color:var(--history-accent);font-size:13px;font-weight:850;line-height:1.6}
  .bet-history-cards .sports-history-table .sports-history-odds{grid-area:5/1/6/3}
  .bet-history-cards .sports-history-table .sports-history-score{grid-area:5/3/6/5}
  .bet-history-cards .sports-history-table .sports-history-outcome{grid-area:5/5/6/7}
  .bet-history-cards .sports-history-table .sports-history-leg :is(.sports-history-odds,.sports-history-score,.sports-history-outcome){display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;min-height:63px;padding:9px 5px;border-top:1px solid var(--history-border);background:var(--history-alt);text-align:center;font-size:13px;font-weight:800}
  .bet-history-cards .sports-history-table .sports-history-score{border-left:1px solid var(--history-border);border-right:1px solid var(--history-border)}
  .bet-history-cards .sports-history-table .sports-history-leg :is(.sports-history-odds,.sports-history-score,.sports-history-outcome)::before{content:attr(data-label);color:var(--history-muted);font-size:10px;font-weight:500;line-height:1.3}
  .bet-history-cards .sports-history-ticket .bet-result{padding:4px 7px;font-size:10px}
  .bet-history-cards .sports-history-footer{padding:12px;gap:12px}
  .bet-history-cards .sports-history-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:0;border:1px solid var(--history-border);border-radius:8px;background:var(--history-surface);overflow:hidden}
  .bet-history-cards .sports-history-summary>div{display:block;min-width:0;padding:9px 10px;border-bottom:1px solid var(--history-border)}
  .bet-history-cards .sports-history-summary>div:nth-child(odd):not(.is-placed){border-left:1px solid var(--history-border)}
  .bet-history-cards .sports-history-summary>div:last-child{border-bottom:0}
  .bet-history-cards .sports-history-summary>.is-placed{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;grid-column:1/-1;gap:3px 8px;background:var(--history-alt)}
  .bet-history-cards .sports-history-summary dt{font-size:10px;line-height:1.5}
  .bet-history-cards .sports-history-summary dd{margin-top:3px;font-size:12px;line-height:1.55}
  .bet-history-cards .sports-history-summary .is-placed dd{margin-top:0}
  .bet-history-cards .sports-history-summary .is-placed time{font-size:11px}
  .bet-history-cards .sports-history-footer>.bet-history-actions{width:100%;margin:0}
  .bet-history-cards .sports-history-footer>.bet-history-actions button{flex:1;min-height:42px;font-size:12px}
}
