/* Member betting and verified fixture results. The outer tenant skin still
   owns its palette; only casino/slot/mini category accents are local. */
.bet-history-cards{--bet-accent:var(--legacy-accent,var(--accent,#c82d3b));--bet-border:var(--line,#424951);min-width:0;max-width:100%;box-sizing:border-box}
.bet-history-cards *{box-sizing:border-box}
.bet-history-cards [hidden]{display:none!important}
.bet-history-cards .bet-views{display:flex;gap:8px;margin:16px 0;padding:5px;border:1px solid var(--bet-border);border-radius:11px;background:color-mix(in srgb,var(--card,#151719) 90%,var(--bet-accent))}
.bet-history-cards .bet-views button{flex:1;min-width:0;min-height:40px;padding:7px 14px;border:0;border-radius:8px;background:transparent;color:inherit;font-weight:750;cursor:pointer}
.bet-history-cards .bet-views button.on{background:var(--bet-accent);color:#fff;box-shadow:0 4px 14px #0002}
.bet-history-cards .bet-types{display:flex;flex-wrap:wrap;gap:7px;grid-template-columns:none;padding:5px}
.bet-history-cards .bet-types button{flex:1 1 105px;min-width:0}
.bet-history-cards .bet-list-note{margin:12px 0 10px;color:var(--dim,var(--legacy-muted,#8a95a5));font-size:11px;line-height:1.5}
.bet-history-cards .bet-card-list,.bet-history-cards .match-results-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0;margin-top:11px}
.bet-history-cards .bet-card,.bet-history-cards .match-result-card{min-width:0;padding:0;overflow:hidden;border:1px solid var(--bet-border);border-radius:12px;background:var(--card,#151719);color:inherit;box-shadow:0 5px 16px #0001}
.bet-history-cards .bet-card{border-left:4px solid var(--bet-type-accent,var(--bet-accent))}
.bet-history-cards .bet-card.is-sports{--bet-type-accent:var(--bet-accent)}
.bet-history-cards .bet-card.is-casino{--bet-type-accent:#c99536}
.bet-history-cards .bet-card.is-slot{--bet-type-accent:#9766d6}
.bet-history-cards .bet-card.is-mini{--bet-type-accent:#2fa482}
.bet-history-cards .bet-card>header,.bet-history-cards .match-result-card>header{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding:12px 14px;border-bottom:1px solid var(--bet-border);background:color-mix(in srgb,var(--card,#151719) 89%,var(--bet-type-accent,var(--bet-accent)))}
.bet-history-cards .bet-card>header>div{display:grid;gap:4px;min-width:0}
.bet-history-cards .bet-card-type{color:var(--bet-type-accent,var(--bet-accent));font-size:12px;font-weight:850}
.bet-history-cards .bet-card time,.bet-history-cards .match-result-card time{color:var(--dim,var(--legacy-muted,#8896a5));font-size:11px;font-weight:500;white-space:nowrap}
.bet-history-cards .bet-result{flex:none;max-width:42%;padding:4px 8px;border-radius:999px;font-size:10px;font-weight:800;line-height:1.4;text-align:center;white-space:normal}
.bet-history-cards .bet-result.win{color:#0c815c;background:#dff7eb}
.bet-history-cards .bet-result.lose{color:#bb3347;background:#ffebee}
.bet-history-cards .bet-result.end{color:#656e79;background:#e9edf2}
.bet-history-cards .bet-card-body{padding:14px;min-height:74px}
.bet-history-cards .bet-card-title{display:block;font-size:14px;font-weight:850;line-height:1.45;overflow-wrap:anywhere}
.bet-history-cards .bet-card-reference{display:block;margin-top:8px;color:var(--dim,var(--legacy-muted,#8896a5));font-size:11px;overflow-wrap:anywhere}
.bet-history-cards .bet-card-legs{display:grid;gap:5px;max-height:168px;margin:10px 0 0;padding:0;overflow:auto;list-style:none}
.bet-history-cards .bet-card-legs li{padding:7px 9px;border:1px solid var(--bet-border);border-radius:6px;background:color-mix(in srgb,var(--card,#151719) 95%,var(--bet-accent));font-size:11px;line-height:1.5;overflow-wrap:anywhere}
.bet-history-cards .bet-card-amounts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;margin:0;background:var(--bet-border)}
.bet-history-cards .bet-card-amounts>div{min-width:0;padding:10px 12px;background:var(--card,#151719)}
/* Casino/slot cards have two amount cells. Only the unused third grid track
   loses its fill; sports odds and real refund cells keep the normal surface. */
html:is([data-site-front="demo"],[data-site-front="honeybet"],[data-site-front="ilwol"]) .bet-history-cards .bet-card-amounts:has(>div:nth-child(2):last-child){background:transparent}
.bet-history-cards .bet-card-amounts dt{color:var(--dim,var(--legacy-muted,#8896a5));font-size:10px}
.bet-history-cards .bet-card-amounts dd{margin:5px 0 0;font-size:12px;font-weight:850;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.bet-history-cards .bet-card-amounts>div:last-child dd{color:var(--bet-type-accent,var(--bet-accent))}
.bet-history-cards .bet-card-empty{grid-column:1/-1;margin:0;padding:36px 16px;border:1px dashed var(--bet-border);border-radius:10px;color:var(--dim,var(--legacy-muted,#8896a5));text-align:center;font-size:13px}
.bet-history-cards .match-results-head{margin:0 0 15px;padding:0}
.bet-history-cards .match-results-head h2{margin:0 0 5px;font-size:18px}
.bet-history-cards .match-results-head p{margin:0;color:var(--dim,var(--legacy-muted,#8896a5));font-size:12px;line-height:1.55}
.bet-history-cards .match-results-controls{display:flex;align-items:end;gap:8px;flex-wrap:wrap;padding:12px;border:1px solid var(--bet-border);border-radius:10px;background:color-mix(in srgb,var(--card,#151719) 95%,var(--bet-accent))}
.bet-history-cards .match-results-controls label{display:grid;gap:4px;min-width:160px;font-size:11px;color:var(--dim,var(--legacy-muted,#8896a5))}
.bet-history-cards .match-results-controls input{width:100%;min-height:40px;padding:6px 9px;border:1px solid var(--bet-border);border-radius:7px;background:var(--card,#151719);color:inherit}
body.legacy-player .bet-history-cards .match-results-controls input{color-scheme:dark}
.bet-history-cards .match-results-controls button,.bet-history-cards .match-results-more{min-height:40px;padding:7px 13px;border:1px solid var(--bet-border);border-radius:7px;background:var(--card,#151719);color:inherit;cursor:pointer}
.bet-history-cards .match-results-controls [data-result-search],.bet-history-cards .match-results-more{border-color:var(--bet-accent);background:var(--bet-accent);color:#fff;font-weight:800}
.bet-history-cards .match-results-more{display:block;width:100%;margin-top:14px}
.bet-history-cards .match-result-card>header{align-items:center}
.bet-history-cards .match-result-league{min-width:0;font-size:12px;font-weight:800;overflow-wrap:anywhere}
.bet-history-cards .match-result-teams{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:10px;min-height:76px;padding:14px}
.bet-history-cards .match-result-teams strong{min-width:0;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.bet-history-cards .match-result-teams strong:last-child{text-align:right}
.bet-history-cards .match-result-teams strong.is-winner{color:var(--bet-accent)}
.bet-history-cards .match-result-teams b{min-width:70px;padding:7px 9px;border-radius:8px;background:color-mix(in srgb,var(--card,#151719) 82%,var(--bet-accent));color:var(--bet-accent);font-size:16px;text-align:center;white-space:nowrap;font-variant-numeric:tabular-nums}
.bet-history-cards .match-result-card>small{display:block;padding:0 14px 12px;color:var(--dim,var(--legacy-muted,#8896a5));font-size:10px}
@media(max-width:850px){.bet-history-cards .bet-card-list,.bet-history-cards .match-results-list{grid-template-columns:1fr}}
@media(max-width:560px){.bet-history-cards .bet-views button{font-size:12px}.bet-history-cards .bet-card>header,.bet-history-cards .match-result-card>header{padding:10px}.bet-history-cards .bet-card-body{padding:12px}.bet-history-cards .bet-card-amounts>div{padding:9px}.bet-history-cards .match-results-controls{gap:5px}.bet-history-cards .match-results-controls label{flex:1;min-width:120px}.bet-history-cards .match-result-teams{gap:5px;padding:11px}.bet-history-cards .match-result-teams b{min-width:60px;font-size:14px}}
