/* ==========================================================================
   Live casino bets — /live/bets/ User data section
   (template-live-bets.php, assets/js/livebets-users.js; enqueued by inc/livebets.php)
   Loads after livebets.css + sports-userdata.css. The user-data section is
   built on the /live/sports/ user-data system (.lvu: section nav, tile strip,
   leaderboard panels, bettor ledger, record drawer) so the two boards share
   one look; this file only adds what a casino record needs — a two-section
   nav, the ledger's casino columns, the record drawer's highlight cards.
   Same tokens and type scale as the .lvb shell (12.5 / 13.5 / 15 / 17 / 19 /
   22 / 30; numbers in Inter with tabular figures). Scope: .lvb.lvu.cud
   ========================================================================== */

/* the sports layer trims .lvb-search to 34px for its pillbars; the live
   toolbar here keeps the 36px pills it shares with the two selects */
.cud .lvb-stream .lvb-search{height:36px}

/* ---------- section nav: three sections (live · promotions · user data) ---------- */
.cud .lvu-secnav{grid-template-columns:repeat(3,minmax(0,1fr))}
.cud .lvu-sec{animation:cudIn .22s ease both}
@keyframes cudIn{from{opacity:.35;transform:translateY(5px)}to{opacity:1;transform:none}}

/* promotion row flags — the sports board gets these from livesports.css, which this page does not load */
.cud .lvs-tags{display:inline-flex;gap:4px;margin-left:6px;vertical-align:middle}
.cud .lvs-tag{display:inline-block;font-size:11.5px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;padding:1px 6px;border-radius:5px;background:var(--card-3);color:var(--ink-2)}

/* ---------- tiles ---------- */
.cud .lvb-tile[data-tile="staked"] b{color:var(--mid)}
.cud .lvb-tile[data-tile="topwin"] b,.cud .lvb-tile[data-tile="tophit"] b{max-width:calc(100% - 38px)}

/* ---------- leaderboard panels: game line + open-bet button ---------- */
.cud .lvu-lb .who>span i{font-style:normal;color:var(--ink-3)}
.cud .lvu-lb .lvu-bet-btn{margin-left:2px}

/* ---------- bettor ledger ---------- */
.cud .lvu-lbp-head .cud-src{margin-left:auto;flex:0 0 auto}
.cud .cud-bar .lvu-fsort{margin-left:auto}
.cud .cud-bar .lvb-search{height:30px}
.cud .cud-user-table{min-width:960px}
.cud .cud-user-table .c-who{width:210px}
.cud .cud-user-table .c-n{width:66px}
.cud .cud-user-table .c-rec{width:150px}
.cud .cud-user-table .c-wr{width:96px}
.cud .cud-user-table .c-wager,.cud .cud-user-table .c-payout{width:94px}
.cud .cud-user-table .c-roi{width:78px}
.cud .cud-user-table .c-pnl{width:96px}
.cud .cud-user-table .c-big{width:126px}
.cud .lvu-wr small{white-space:nowrap}
.cud-big{display:inline-block;max-width:100%;text-align:right;line-height:1.2}
.cud-big b{display:block;font-weight:800;color:var(--up,#2ED47F)}
.cud-big small{display:block;font-size:11.5px;font-weight:500;color:var(--ink-4);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ---------- record drawer: highlight cards ---------- */
.cud-drawer-hl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:14px 16px}
.cud-hl{display:flex;flex-direction:column;min-width:0;padding:12px 14px;border-radius:12px;background:var(--card-2);border:1px solid var(--hair)}
.cud-hl>span{font-size:11.5px;color:var(--ink-4)}
.cud-hl>b{display:block;margin-top:4px;font-size:19px;font-weight:800;letter-spacing:-.02em;color:#fff;font-family:var(--font-num);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cud-hl>small{display:block;margin-top:3px;font-size:12.5px;line-height:1.4;color:var(--ink-3)}
.cud-hl.is-up>b{color:var(--up,#2ED47F)}
.cud-hl.is-down>b{color:#FF7A94}
.cud-hl.is-hit>b{color:var(--max)}
.cud .cud-hl .lvu-bet-btn{margin-top:10px;align-self:flex-start;min-width:0;padding:0 10px}
.cud .cud-hl .lvu-bet-btn span{display:inline}
.cud .lvu-drawer-record .lvu-rec-pills{flex-wrap:wrap;gap:3px;vertical-align:baseline}

/* ---------- record drawer: bet history (same cards as the sports drawer's history tab) ---------- */
.cud-hist{border-top:1px solid var(--hair);padding-top:12px}
.cud-hist-title{margin:0 16px 4px;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-4)}
.cud-hist-game{display:flex;align-items:center;gap:10px;min-width:0}
.cud .cud-hist-icon{width:34px;height:34px;border-radius:9px;flex:0 0 auto}
.cud .cud-hist-icon.is-letter{font-size:13px}
.cud-hist-game .lvu-active-event{min-width:0;flex:1 1 auto}
.cud .cud-hist-bet dd .lvb-chip{height:24px;min-width:52px;font-size:12px}
.cud .cud-hist-bet dd .lvu-pnl{display:block;font-size:11.5px;font-weight:700}
.cud .cud-hist-bet footer{margin-top:8px}

/* ---------- responsive ---------- */
@media (max-width:1180px){
	.cud .cud-bar .lvu-fsort{margin-left:0}
}
@media (max-width:640px){
	/* the sports layer hides .c-wr on its mobile stream rows; the ledger is a real table here */
	.cud .cud-user-table td.c-wr{display:table-cell}
	.cud-drawer-hl{grid-template-columns:minmax(0,1fr);padding:12px}
}
