/* Compact branch workspace and betting cards. Desktop reports keep their layout. */
@media (max-width:767.98px) {
 html body.branch-console #main-content { padding:16px 12px 26px; }
 html body.branch-console .branch-workspace-header .navbar-inner { padding:0 14px; }
 html body.branch-console .branch-workspace-header .branch-topbar { min-height:58px;padding:9px 0; }
 html body.branch-console .branch-brand-caption strong { font-size:13px; }
 html body.branch-console .branch-brand-caption>span { font-size:9px; }
 html body.branch-console .console-utility { height:44px;padding:0 14px; }
 html body.branch-console .console-account-icon { width:26px;height:26px; }
 html body.branch-console .console-account-role { font-size:9px; }
 html body.branch-console footer { padding:0 14px; }
 html body:has(#branch-betting-history)>.container { width:100%;padding:12px; }
 html body #branch-betting-history.branch-history-unified { min-width:0; }
 html body #branch-betting-history.branch-history-unified header.member-history-heading { display:block!important;min-height:0!important;margin:0 0 12px!important;padding:14px!important;border-radius:14px!important;box-shadow:none!important; }
 html body #branch-betting-history.branch-history-unified header.member-history-heading::before { display:none; }
 html body #branch-betting-history.branch-history-unified .member-history-heading .member-history-heading-copy { min-width:0; }
 html body #branch-betting-history.branch-history-unified .member-history-heading .member-history-category { display:none!important; }
 html body #branch-betting-history.branch-history-unified .member-history-heading .member-history-heading-copy h1 { margin:0!important;font-size:19px!important;line-height:1.4!important;overflow-wrap:anywhere; }
 html body #branch-betting-history.branch-history-unified .member-history-heading .member-history-heading-copy p { display:none!important; }
 html body #branch-betting-history.branch-history-unified .member-history-heading .member-history-metrics { display:flex!important;flex-wrap:wrap;gap:6px 16px!important;width:100%!important;margin:10px 0 0!important; }
 html body #branch-betting-history.branch-history-unified .member-history-heading .member-history-metric { display:flex!important;align-items:center;gap:6px;flex:0 1 auto!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important; }
 html body #branch-betting-history.branch-history-unified .member-history-heading .member-history-metric span { font-size:10px!important; }
 html body #branch-betting-history.branch-history-unified .member-history-heading .member-history-metric strong { font-size:12px!important;line-height:1.5!important; }
 html body #branch-betting-history.branch-history-unified .member-history-heading .member-history-metric small { font-size:10px!important; }
 html body #branch-betting-history.branch-history-unified .member-history-nav { min-height:0;margin:0 0 12px;padding:8px;border-radius:12px;gap:6px; }
 html body #branch-betting-history.branch-history-unified .member-history-link { min-height:34px;padding:7px 10px;font-size:11px; }
 /* A member field with search on the first line; the two dates share a line. */
 html body #branch-betting-history.branch-history-unified form:is([action*="search/search"],.rh-filters) { display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end!important;gap:9px!important;min-height:0!important;margin:0 0 12px!important;padding:12px!important;border-radius:13px!important;box-shadow:none!important; }
 html body #branch-betting-history.branch-history-unified form:is([action*="search/search"],.rh-filters)>:is([class*="col-"],label,.rh-filter-actions) { float:none!important;flex:none!important;width:100%!important;min-width:0!important;max-width:none!important;margin:0!important;padding:0!important;font-size:10px!important; }
 html body #branch-betting-history.branch-history-unified form[action*="search/search"]>div:has([name="s_keyword"]) { grid-column:1;grid-row:1; }
 html body #branch-betting-history.branch-history-unified form[action*="search/search"]>div:has([type="submit"]) { grid-column:2;grid-row:1; }
 html body #branch-betting-history.branch-history-unified form:is([action*="search/search"],.rh-filters) :is(label,.control-label) { margin:0 0 4px!important;font-size:10px!important;line-height:1.4!important; }
 html body #branch-betting-history.branch-history-unified form:is([action*="search/search"],.rh-filters) :is(input:not([type="hidden"]),select,button[type="submit"]) { width:100%!important;min-width:0!important;max-width:100%!important;height:38px!important;min-height:38px!important;margin:0!important;padding:7px 9px!important;border-radius:8px!important;font-size:12px!important;line-height:22px!important;box-sizing:border-box!important; }
 html body #branch-betting-history.branch-history-unified form.rh-filters>label { display:flex!important;flex-direction:column;gap:4px; }
 html body #branch-betting-history.branch-history-unified form.rh-filters>.rh-filter-actions { grid-column:2; }
 /* Scrollable chips keep every game available without filling the screen. */
 html body #branch-betting-history.branch-history-unified .mini-history-skin .panel-body>.nav-tabs { display:flex!important;flex-wrap:nowrap!important;gap:6px!important;margin:0 0 12px!important;padding:0 0 5px!important;border:0!important;overflow-x:auto;scrollbar-width:thin; }
 html body #branch-betting-history.branch-history-unified .mini-history-skin .nav-tabs>li { flex:0 0 auto!important;float:none!important;margin:0!important; }
 html body #branch-betting-history.branch-history-unified .mini-history-skin .nav-tabs>li>a { display:flex!important;align-items:center;min-height:36px!important;margin:0!important;padding:7px 11px!important;font-size:11px!important;white-space:nowrap; }
 html body #branch-betting-history.branch-history-unified :is(.mini-bet-list,.table-responsive,.rh-table-wrap):has(>#betting-history-results) { width:100%!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;overflow:visible!important; }
 html body #branch-betting-history.branch-history-unified #betting-history-results { display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important;border:0!important; }
 html body #branch-betting-history.branch-history-unified #betting-history-results>thead { display:none!important; }
 html body #branch-betting-history.branch-history-unified #betting-history-results>tbody { display:block!important;width:100%!important;min-width:0!important; }
 html body #branch-betting-history.branch-history-unified #betting-history-results>tbody>tr:not(.detail-row):not(.rh-round-row):not(.betting-history-legacy-total):not(.ev-coupon-row) { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 12px;padding:13px;border:1px solid var(--bh-border)!important;border-radius:13px;background:var(--bh-surface)!important;box-shadow:0 3px 12px #17283b05; }
 html body #branch-betting-history.branch-history-unified #betting-history-results>tbody>tr>td { min-width:0!important;max-width:100%!important;box-sizing:border-box!important;white-space:normal!important;overflow-wrap:anywhere; }
 html body #branch-betting-history.branch-history-unified #betting-history-results:is(.mini-exact-table,.casino-history-table,.rh-table)>tbody>tr>td { display:block;margin:0!important;padding:0!important;border:0!important;background:transparent!important;text-align:left!important;font-size:12px!important;line-height:1.5!important; }
 html body #branch-betting-history.branch-history-unified #betting-history-results>tbody>tr>td[colspan]:only-child { grid-column:1/-1;width:100%!important;padding:24px 10px!important;text-align:center!important; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.mini-exact-table>tbody:not(:has(tr))::after { content:'조회된 베팅내역이 없습니다.';display:block;padding:32px 12px;border:1px solid var(--bh-border);border-radius:13px;background:var(--bh-surface);color:var(--bh-muted);font-size:12px;text-align:center; }
 html body #branch-betting-history.branch-history-unified #betting-history-results :is(.mb-money strong,.value-main) { font-size:14px!important; }
 html body #branch-betting-history.branch-history-unified #betting-history-results :is(.mb-state,.status-badge,.rh-badge) { display:inline-block;padding:3px 8px;font-size:10px;line-height:1.5; }
 html body #branch-betting-history.branch-history-unified #betting-history-results :is(.btn,.toggle-btn,summary) { min-height:32px;max-width:100%;padding:6px 10px;font-size:11px;white-space:normal; }
 /* Mini: game/status, identity, pick, result, amounts and the original action. */
 html body #branch-betting-history.branch-history-unified #betting-history-results.mini-exact-table>tbody>tr { grid-template-areas:'game state' 'member id' 'round time' 'pick pick' 'draw odds' 'stake payout' 'action action'; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.mini-exact-table>tbody>tr>td:nth-child(1) { grid-area:id;text-align:right!important;color:var(--bh-muted); }
 html body #branch-betting-history.branch-history-unified #betting-history-results.mini-exact-table>tbody>tr>td:nth-child(2) { grid-area:member; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.mini-exact-table>tbody>tr>td:nth-child(3) { grid-area:game;font-weight:800; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.mini-exact-table>tbody>tr>td:nth-child(4) { grid-area:round; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.mini-exact-table>tbody>tr>td:nth-child(5) { grid-area:pick;padding:9px!important;border-radius:8px;background:var(--bh-soft)!important; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.mini-exact-table>tbody>tr>td:nth-child(6) { grid-area:odds;text-align:right!important; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.mini-exact-table>tbody>tr>td:nth-child(7) { grid-area:stake; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.mini-exact-table>tbody>tr>td:nth-child(8) { grid-area:payout;text-align:right!important; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.mini-exact-table>tbody>tr>td:nth-child(9) { grid-area:draw; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.mini-exact-table>tbody>tr>td:nth-child(10) { grid-area:time;text-align:right!important;color:var(--bh-muted); }
 html body #branch-betting-history.branch-history-unified #betting-history-results.mini-exact-table>tbody>tr>td:nth-child(11) { grid-area:state;text-align:right!important; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.mini-exact-table>tbody>tr>td:nth-child(12) { grid-area:action;padding-top:9px!important;border-top:1px solid var(--bh-border)!important;text-align:right!important; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.mini-exact-table>tbody>tr>td:is(:nth-child(4),:nth-child(6),:nth-child(7),:nth-child(8),:nth-child(9))::before,
 html body #branch-betting-history.branch-history-unified #betting-history-results.casino-history-table>tbody>.toggle-row>td:nth-child(n+6):nth-child(-n+11)::before { display:block;margin-bottom:3px;color:var(--bh-muted);font-size:10px;font-weight:500; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.mini-exact-table>tbody>tr>td:nth-child(4)::before { content:'회차'; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.mini-exact-table>tbody>tr>td:nth-child(6)::before { content:'배당'; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.mini-exact-table>tbody>tr>td:nth-child(7)::before { content:'베팅금액'; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.mini-exact-table>tbody>tr>td:nth-child(8)::before { content:'당첨금액'; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.mini-exact-table>tbody>tr>td:nth-child(9)::before { content:'추첨 결과'; }
 /* Casino/slot retain all three balance snapshots and their existing toggles. */
 html body #branch-betting-history.branch-history-unified #betting-history-results.casino-history-table>tbody>.toggle-row { grid-template-areas:'type state' 'member toggle' 'game game' 'time time' 'stake payout' 'before after' 'final final' 'action action'; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.casino-history-table>tbody>.toggle-row>td:nth-child(1) { grid-area:toggle;text-align:right!important; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.casino-history-table>tbody>.toggle-row>td:nth-child(2) { grid-area:type; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.casino-history-table>tbody>.toggle-row>td:nth-child(3) { grid-area:member; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.casino-history-table>tbody>.toggle-row>td:nth-child(4) { grid-area:game;font-size:14px!important;font-weight:800; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.casino-history-table>tbody>.toggle-row>td:nth-child(5) { grid-area:state;text-align:right!important; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.casino-history-table>tbody>.toggle-row>td:nth-child(6) { grid-area:before; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.casino-history-table>tbody>.toggle-row>td:nth-child(7) { grid-area:stake; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.casino-history-table>tbody>.toggle-row>td:nth-child(8) { grid-area:after;text-align:right!important; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.casino-history-table>tbody>.toggle-row>td:nth-child(9) { grid-area:payout;text-align:right!important; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.casino-history-table>tbody>.toggle-row>td:nth-child(10) { grid-area:final; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.casino-history-table>tbody>.toggle-row>td:nth-child(11) { grid-area:time;color:var(--bh-muted); }
 html body #branch-betting-history.branch-history-unified #betting-history-results.casino-history-table>tbody>.toggle-row>td:nth-child(12) { grid-area:action;text-align:right!important; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.casino-history-table>tbody>.toggle-row>td:nth-child(6)::before { content:'베팅 전 잔액'; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.casino-history-table>tbody>.toggle-row>td:nth-child(7)::before { content:'베팅금액'; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.casino-history-table>tbody>.toggle-row>td:nth-child(8)::before { content:'베팅 후 잔액'; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.casino-history-table>tbody>.toggle-row>td:nth-child(9)::before { content:'당첨금액'; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.casino-history-table>tbody>.toggle-row>td:nth-child(10)::before { content:'당첨 후 잔액'; }
 /* Sports: the existing cells are reflowed; nested matches stay grouped. */
 html body #branch-betting-history.branch-history-unified #sports-history-workspace .sports-history-table>tbody>tr[id] { display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:auto!important;gap:10px!important;padding:12px!important; }
 html body #branch-betting-history.branch-history-unified #sports-history-workspace .sports-history-table>tbody>tr[id]::before { display:none!important; }
 html body #branch-betting-history.branch-history-unified #sports-history-workspace .sports-history-table>tbody>tr[id]>td { position:static!important;grid-column:auto!important;grid-row:auto!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important; }
 html body #branch-betting-history.branch-history-unified #sports-history-workspace .sports-history-table>tbody>tr[id]>td:nth-child(2) { text-align:right!important; }
 html body #branch-betting-history.branch-history-unified #sports-history-workspace .sports-history-table>tbody>tr[id]>td:nth-child(3),
 html body #branch-betting-history.branch-history-unified #sports-history-workspace .sports-history-table>tbody>tr[id]>td:is(.bet-info-cell,.history-summary-cell) { grid-column:1/-1!important;width:100%!important; }
 html body #branch-betting-history.branch-history-unified #sports-history-workspace .history-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:auto!important;gap:7px!important; }
 html body #branch-betting-history.branch-history-unified #sports-history-workspace .history-summary-box { min-height:0!important;padding:9px!important; }
 html body #branch-betting-history.branch-history-unified #sports-history-workspace .history-summary-label { font-size:10px!important; }
 html body #branch-betting-history.branch-history-unified #sports-history-workspace .history-summary-value { font-size:14px!important; }
 html body #branch-betting-history.branch-history-unified #sports-history-workspace .history-match-table { width:100%!important;min-width:0!important; }
 html body #branch-betting-history.branch-history-unified #sports-history-workspace .history-match-table>tbody>tr.history-match-compact { grid-template-columns:minmax(0,1fr) 64px!important;grid-template-areas:'league league' 'fixture fixture' 'pick score' 'pick result'!important;gap:7px!important;padding:10px!important; }
 html body #branch-betting-history.branch-history-unified #sports-history-workspace .history-match-table .league-box { justify-content:flex-start!important;text-align:left!important; }
 html body #branch-betting-history.branch-history-unified #sports-history-workspace .history-filter-bottom { padding:10px!important;margin-bottom:12px!important; }
 html body #branch-betting-history.branch-history-unified #sports-history-workspace .history-filter-label { display:none!important; }
 html body #branch-betting-history.branch-history-unified #sports-history-workspace :is(.history-result-slot,.history-type-slot) { gap:7px!important; }
 html body #branch-betting-history.branch-history-unified #sports-history-workspace :is(.nav-tabs,.betting-links) { gap:5px!important; }
 html body #branch-betting-history.branch-history-unified #sports-history-workspace :is(.nav-tabs a,.betting-links .btn) { min-height:34px!important;height:auto!important;font-size:10px!important; }
 /* Virtual accumulators preserve one set of shared amounts and each leg. */
 html body #branch-betting-history.branch-history-unified #betting-history-results.rh-table>tbody>.ev-coupon-row { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0;padding:13px;border:1px solid var(--bh-border);background:var(--bh-surface)!important; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.rh-table>tbody>.ev-coupon-start { margin-top:12px;border-radius:13px; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.rh-table>tbody>.ev-coupon-start:has(+.ev-coupon-continuation) { border-radius:13px 13px 0 0; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.rh-table>tbody>.ev-coupon-continuation { border-top:0;border-radius:0; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.rh-table>tbody>.ev-coupon-continuation:not(:has(+.ev-coupon-continuation)) { border-radius:0 0 13px 13px; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.rh-table .ev-coupon-row>td { height:auto!important;min-height:0!important; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.rh-table .ev-coupon-row>:is(.ev-league-cell,.ev-selection,.ev-game-result,.ev-state-cell) { grid-column:1/-1; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.rh-table .ev-coupon-row>.ev-selection { padding:9px!important;border-radius:8px;background:var(--bh-soft)!important; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.rh-table .ev-coupon-row>.ev-odds-cell { grid-column:1/-1; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.rh-table .ev-coupon-row>:is(.ev-odds-cell,.ev-stake-cell,.ev-payout-cell)::before { display:block;margin-bottom:3px;color:var(--bh-muted);font-size:10px; }
 html body #branch-betting-history.branch-history-unified .ev-odds-cell::before { content:'배당'; }
 html body #branch-betting-history.branch-history-unified .ev-stake-cell::before { content:'베팅금액'; }
 html body #branch-betting-history.branch-history-unified .ev-payout-cell::before { content:'당첨금액'; }
 html body #branch-betting-history.branch-history-unified .ev-payout-cell { text-align:right!important; }
 html body #branch-betting-history.branch-history-unified .betting-page-totals { margin-top:12px!important;padding:12px!important;border-radius:12px!important;gap:10px!important; }
 html body #branch-betting-history.branch-history-unified .betting-page-totals>div { min-width:0!important;padding:0!important; }
 html body #branch-betting-history.branch-history-unified .betting-page-totals span { font-size:10px!important; }
 html body #branch-betting-history.branch-history-unified .betting-page-totals strong { font-size:15px!important;overflow-wrap:anywhere; }
 html body #branch-betting-history.branch-history-unified .betting-pagination { gap:10px!important;margin-top:12px!important;padding:12px 0!important; }
 /* Keep mobile controls and footers flat and compact. */
 html body #branch-betting-history.branch-history-unified form:is([action*="search/search"],.rh-filters)>:is(.rh-filter-actions,[class*="col-"]:has(.submit,input[type="submit"],button[type="submit"])) { width:100%!important;min-width:0!important;max-width:none!important; }
 html body #branch-betting-history.branch-history-unified .betting-page-totals { border:1px solid var(--bh-border)!important;background:var(--bh-soft)!important; }
 html body #branch-betting-history.branch-history-unified .betting-page-totals>div { border:0!important;border-radius:0!important;background:transparent!important; }
 html body #branch-betting-history.branch-history-unified .betting-page-totals span { margin-bottom:5px!important; }
 html body #branch-betting-history.branch-history-unified .betting-pagination { display:grid!important;grid-template-columns:1fr auto!important;align-items:center!important;padding:10px!important;min-height:0!important; }
 html body #branch-betting-history.branch-history-unified .betting-pagination .bp-summary { order:0!important;font-size:10px; }
 html body #branch-betting-history.branch-history-unified .betting-pagination .bp-pages { order:1!important;width:auto!important; }
 html body #branch-betting-history.branch-history-unified .betting-pagination .bp-position { display:none; }
 html body #branch-betting-history.branch-history-unified #sports-history-workspace #betting-history-results .sports-identity-box { width:100%!important;min-height:0!important;padding:7px 10px!important;border-radius:7px!important; }
 html body #branch-betting-history.branch-history-unified #sports-history-workspace .sports-identity-box .betting-history-identity { display:flex!important;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:7px; }
 html body #branch-betting-history.branch-history-unified #sports-history-workspace .sports-identity-box .betting-history-identity>* { margin:0!important;font-size:11px!important; }
 html body #branch-betting-history.branch-history-unified #sports-history-workspace .history-match-table .league-box { padding:4px!important;border:0!important;background:transparent!important; }
 html body #branch-betting-history.branch-history-unified #sports-history-workspace .history-match-table .history-match-fixture { padding:6px!important;border:0!important; }
 html body #branch-betting-history.branch-history-unified #sports-history-workspace .history-summary-box { padding:7px 9px!important; }
 /* Label the remaining branch report cells without changing their data. */
 html body #branch-betting-history.branch-history-unified #betting-history-results.list-table>tbody>tr>td { display:block;margin:0!important;padding:0!important;border:0!important;background:transparent!important;font-size:12px!important; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.list-table>tbody>tr>td::before,
 html body #branch-betting-history.branch-history-unified #betting-history-results.rh-table>tbody>tr:has(.round-toggle-btn)>td::before { display:block;margin-bottom:3px;color:var(--bh-muted);font-size:10px; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.list-table>tbody>tr>td:nth-child(3)::before { content:'베팅시간'; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.list-table>tbody>tr>td:nth-child(4)::before { content:'게임종류'; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.list-table>tbody>tr>td:nth-child(5)::before { content:'베팅금액'; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.list-table>tbody>tr>td:nth-child(7)::before { content:'당첨금액'; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.rh-table>tbody>tr:has(.round-toggle-btn)>td:nth-child(2)::before { content:'베팅시간'; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.rh-table>tbody>tr:has(.round-toggle-btn)>td:nth-child(4)::before { content:'총판'; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.rh-table>tbody>tr:has(.round-toggle-btn)>td:nth-child(5)::before { content:'베팅금액'; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.rh-table>tbody>tr:has(.round-toggle-btn)>td:nth-child(6)::before { content:'지급금액'; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.rh-table>tbody>tr:has(.round-toggle-btn)>td:nth-child(7)::before { content:'회원손익'; }
 html body #branch-betting-history.branch-history-unified form:is([action*="search/search"],.rh-filters) :is(input:not([type="hidden"]):not([type="submit"]),select) { height:38px!important;min-height:38px!important;margin:0!important;padding:7px 9px!important;font-size:12px!important; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.casino-history-table .status-success { border:1px solid #edd0d5!important;background:#fff0f1!important;color:#b74553!important; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.casino-history-table .status-danger:not(.status-cancel) { border:1px solid #dce2e8!important;background:#eef2f5!important;color:#687684!important; }
 html body:is(.dark-mode,.dashboard-dark) #branch-betting-history.branch-history-unified #betting-history-results.casino-history-table .status-success { border-color:#86505b!important;background:#482e37!important;color:#f2b0b7!important; }
 html body:is(.dark-mode,.dashboard-dark) #branch-betting-history.branch-history-unified #betting-history-results.casino-history-table .status-danger:not(.status-cancel) { border-color:#526170!important;background:#2d3e4e!important;color:#bfccd5!important; }
 html body #branch-betting-history.branch-history-unified #betting-history-results>tbody>tr>td { height:auto!important;min-height:0!important; }
 html body #branch-betting-history.branch-history-unified #betting-history-results .betting-history-identity { display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;flex-wrap:wrap;gap:6px;min-height:0!important;margin:0!important; }
 html body #branch-betting-history.branch-history-unified #betting-history-results .betting-history-identity>* { margin:0!important;font-size:11px!important; }
 html body #branch-betting-history.branch-history-unified #betting-history-results .mb-state-lose { border:1px solid #dce2e8!important;background:#eef2f5!important;color:#687684!important; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.mini-exact-table>tbody>tr:has(.mb-state-lose)>td:nth-child(8) { color:var(--bh-muted)!important; }
 html body:is(.dark-mode,.dashboard-dark) #branch-betting-history.branch-history-unified #betting-history-results .mb-state-lose { border-color:#526170!important;background:#2d3e4e!important;color:#bfccd5!important; }
 /* The mobile hierarchy is title, identity/game, two amounts, then details. */
 html body #branch-betting-history.branch-history-unified header.member-history-heading { padding:0 2px 12px!important;border:0!important;border-radius:0!important;background:transparent!important; }
 html body #branch-betting-history.branch-history-unified .betting-page-totals { border:0!important;border-top:1px solid var(--bh-border)!important;border-bottom:1px solid var(--bh-border)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important; }
 html body #branch-betting-history.branch-history-unified .betting-pagination { border:0!important;background:transparent!important;box-shadow:none!important; }
 html body #branch-betting-history.branch-history-unified .casino-history-skin form[action*="search/search"]>div:has([name="s_keyword"]) { grid-column:1/-1;grid-row:1; }
 html body #branch-betting-history.branch-history-unified .casino-history-skin form[action*="search/search"]>div:has([name="s_created"]) { grid-column:1;grid-row:2; }
 html body #branch-betting-history.branch-history-unified .casino-history-skin form[action*="search/search"]>div:has([type="submit"]) { grid-column:2;grid-row:2; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.casino-history-table>tbody>.toggle-row { grid-template-areas:'member state' 'game game' 'time time' 'stake payout' 'toggle action';gap:7px 12px;padding:14px!important;border-radius:12px!important;box-shadow:none; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.casino-history-table>tbody>.toggle-row>td:is(:nth-child(2),:nth-child(6),:nth-child(8),:nth-child(10)) { display:none!important; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.casino-history-table>tbody>.toggle-row>td:nth-child(3) { align-self:center; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.casino-history-table .betting-history-identity { gap:5px; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.casino-history-table .betting-history-identity>.betting-history-user-link { color:var(--bh-ink)!important;font-size:12px!important;font-weight:700!important; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.casino-history-table .betting-history-identity>.betting-history-nickname { padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:var(--bh-muted)!important;font-size:10px!important;font-weight:400!important; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.casino-history-table>tbody>.toggle-row>td:nth-child(4) { margin-top:2px!important;font-size:14px!important;font-weight:700; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.casino-history-table>tbody>.toggle-row>td:nth-child(11) { padding-bottom:10px!important;margin-bottom:3px!important;border-bottom:1px solid var(--bh-border)!important;font-size:10px!important; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.casino-history-table>tbody>.toggle-row>td:is(:nth-child(7),:nth-child(9)) .value-main { font-size:16px!important;font-weight:700!important; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.casino-history-table>tbody>.toggle-row>td:nth-child(1) { text-align:left!important; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.casino-history-table>tbody>.toggle-row>td:is(:first-child,:last-child) { padding-top:7px!important; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.casino-history-table .toggle-btn { min-height:30px!important;height:30px!important;width:auto!important;padding:4px 0!important;border:0!important;border-radius:0!important;background:transparent!important;color:var(--bh-muted)!important;-webkit-text-fill-color:var(--bh-muted)!important;font-size:0!important;box-shadow:none!important; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.casino-history-table .toggle-btn::after { content:'잔액 · 거래번호 ⌄';font-size:10px;line-height:22px; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.casino-history-table .btn-detail { min-height:30px!important;padding:5px 10px!important;border:1px solid var(--bh-border)!important;border-radius:7px!important;background:transparent!important;color:var(--bh-accent)!important;box-shadow:none!important; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.casino-history-table .toggle-row:has(.status-danger:not(.status-cancel)) .money-win .value-main { color:var(--bh-muted)!important; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.casino-history-table .toggle-row:has(+.hidden-row:not([style*="none"])) { grid-template-areas:'member state' 'game game' 'time time' 'stake payout' 'before after' 'final final' 'toggle action'; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.casino-history-table .toggle-row:has(+.hidden-row:not([style*="none"]))>td:is(:nth-child(6),:nth-child(8),:nth-child(10)) { display:block!important;padding-top:6px!important; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.casino-history-table .toggle-row:has(+.hidden-row:not([style*="none"])) .toggle-btn::after { content:'잔액 · 거래번호 ⌃'; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.casino-history-table>tbody>.hidden-row { padding:10px!important;border-radius:10px!important;background:var(--bh-soft)!important;box-shadow:none!important; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.casino-history-table>tbody>.hidden-row>td[colspan] { padding:0!important;text-align:left!important;font-size:10px!important; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.casino-history-table .detail-box { display:block;padding:0!important;font-size:10px!important;line-height:1.7; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.mini-exact-table>tbody>tr { grid-template-areas:'game state' 'member member' 'round time' 'pick pick' 'draw odds' 'stake payout' 'action action';gap:8px 12px; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.mini-exact-table>tbody>tr>td:first-child { display:none!important; }
 html body #branch-betting-history.branch-history-unified #betting-history-results { background:transparent!important; }
 html body #branch-betting-history.branch-history-unified #betting-history-results .betting-history-identity>.is-repeated-name { display:none!important; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.rh-table>tbody>.ev-coupon-row { grid-template-areas:'time member' 'league league' 'pick pick' 'result result' 'odds state' 'stake payout'; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.rh-table>tbody>.ev-coupon-continuation { grid-template-areas:'league league' 'pick pick' 'result result'; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.rh-table .ev-coupon-row>.rh-date { grid-area:time; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.rh-table .ev-coupon-row>.ev-member-cell { grid-area:member; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.rh-table .ev-coupon-row>.ev-league-cell { grid-area:league; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.rh-table .ev-coupon-row>.ev-selection { grid-area:pick; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.rh-table .ev-coupon-row>.ev-game-result { grid-area:result; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.rh-table .ev-coupon-row>.ev-odds-cell { grid-area:odds; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.rh-table .ev-coupon-row>.ev-state-cell { grid-area:state;text-align:right!important; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.rh-table .ev-coupon-row>.ev-stake-cell { grid-area:stake; }
 html body #branch-betting-history.branch-history-unified #betting-history-results.rh-table .ev-coupon-row>.ev-payout-cell { grid-area:payout; }
 html body #branch-betting-history.branch-history-unified #betting-history-results :is(.rh-badge,.mb-state,.status-badge) { display:inline-flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;min-height:24px;line-height:1.2!important; }
 /* Five equal status segments, with a distinct selected tab. */
 html body #branch-betting-history.branch-history-unified #sports-history-workspace .history-result-slot { display:block!important;width:100%!important;min-width:0; }
 html body #branch-betting-history.branch-history-unified #sports-history-workspace .history-result-slot .nav-tabs { display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:0!important;width:100%!important;min-width:0;margin:0!important;padding:3px!important;border:1px solid var(--bh-border)!important;border-radius:9px!important;background:var(--bh-soft)!important;overflow:hidden; }
 html body #branch-betting-history.branch-history-unified #sports-history-workspace .history-result-slot .nav-tabs>li { float:none!important;min-width:0;margin:0!important;padding:0!important;border:0!important;background:transparent!important; }
 html body #branch-betting-history.branch-history-unified #sports-history-workspace .history-result-slot .nav-tabs>li+li { border-left:1px solid var(--bh-border)!important; }
 html body #branch-betting-history.branch-history-unified #sports-history-workspace .history-result-slot .nav-tabs>li>a { display:flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box;width:100%!important;min-width:0!important;min-height:36px!important;height:auto!important;margin:0!important;padding:8px 2px!important;border:0!important;border-radius:6px!important;background:transparent!important;color:var(--bh-muted)!important;font-size:11px!important;font-weight:500!important;line-height:1.3!important;text-align:center!important;white-space:nowrap!important;box-shadow:none!important; }
 html body #branch-betting-history.branch-history-unified #sports-history-workspace .history-result-slot .nav-tabs :is(li.active>a,a.active,a[aria-current="page"]) { background:var(--bh-accent)!important;color:#fff!important;font-weight:800!important; }
 html body.dark-mode #branch-betting-history.branch-history-unified #sports-history-workspace .history-result-slot .nav-tabs :is(li.active>a,a.active,a[aria-current="page"]) { color:#152332!important; }
}
