/* Compact secondary options and one report/records visual system. */
body.agent-records-active.agent-section-active .main-pane{grid-template-columns:128px minmax(0,1fr);column-gap:14px}
body.agent-records-active .agent-section-nav{padding:7px 6px;gap:3px;border-radius:10px}
body.agent-records-active .agent-section-nav>button{gap:7px;min-height:36px;padding:8px!important;font-size:12px;font-weight:550;border-radius:6px!important}
body.agent-records-active .agent-section-nav>button svg{width:16px!important;height:16px!important;min-width:16px;padding:0!important;margin:0!important;background:transparent!important;border-radius:0!important;box-shadow:none!important;color:inherit!important}
body.agent-records-active .agent-records-page .records-pagination [hidden],body.agent-records-active .agent-records-page tr[hidden]{display:none!important}
body.agent-top-layout .agent-records-page .agent-records-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px;padding:0 0 10px;border-bottom:1px solid var(--agent-theme-line,#dce4f0)}
body.agent-top-layout .agent-records-heading h2{margin:0!important;padding:0!important;border:0!important;font-size:18px;color:var(--agent-theme-ink,#344e69)}
body.agent-top-layout .agent-records-page .records-refresh{margin:0;padding:5px 10px;min-height:30px;font-size:12px;white-space:nowrap;background:var(--agent-theme-light,#edf4ff);color:var(--agent-theme-primary,#326bc1);border:1px solid var(--agent-theme-line,#dce4f0);box-shadow:none}
body.agent-top-layout #agentDrawsPanel.agent-records-page>.agent-game-section-heading,body.agent-top-layout #agentDrawsPanel.agent-records-page>h2,body.agent-top-layout #agentDrawsPanel.agent-records-page>#agentDrawStatus{display:none!important}
.records-pagination{flex:none;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0 0;margin-top:auto;color:var(--agent-theme-ink,#526b86);font-size:12px}
.records-pagination>div{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.records-pagination button,.records-pagination select,.records-pagination input{margin:0!important;min-height:30px;box-sizing:border-box;font-size:12px;border:1px solid var(--agent-theme-line,#dce4f0);border-radius:6px;background:var(--agent-theme-surface,#fff);color:var(--agent-theme-ink,#526b86);padding:5px 9px}.records-pagination input{width:49px}.records-pagination select{width:auto!important}.records-pagination button:disabled{opacity:.4;cursor:default}.records-pagination>div>span{min-width:46px;text-align:center;font-variant-numeric:tabular-nums}.records-page-count{white-space:nowrap}
.records-query{display:flex;gap:8px;align-items:center;flex:none;margin:0 0 10px}.records-query select,.records-query button{margin:0!important}.records-query select{max-width:180px}
.records-explanation{flex:none;color:#7b8ea2;font-size:11px;margin:0 0 8px}.records-explanation summary{cursor:pointer;padding:5px 0}.records-explanation[open]{max-height:120px;overflow:auto}.records-explanation p{font-size:11px;line-height:1.6;margin:6px 0}.records-explanation .notice{padding:8px}
@media(min-width:721px){
 .agent-records-page .records-pagination{padding-right:110px}
 body.agent-top-layout .main-pane>.agent-records-page.agent-page-fit{display:flex;flex-direction:column;overflow:hidden!important;gap:0;padding:16px!important}
 body.agent-top-layout .agent-records-page>h2,body.agent-top-layout .agent-records-page>p,body.agent-top-layout .agent-records-page>.agent-records-heading{flex:none}
 body.agent-top-layout .agent-records-page>p.muted{font-size:11px;line-height:1.6;margin:0 0 8px;color:#8192a4}
 body.agent-top-layout .agent-records-page>.records-table-scroll{flex:1;min-height:0;max-height:none;overflow-x:auto;overflow-y:hidden;border:1px solid var(--agent-theme-line,#dce4f0);border-radius:8px}
 body.agent-top-layout .agent-records-page table{width:100%;border-collapse:collapse;font-size:12px;font-variant-numeric:tabular-nums}
 body.agent-top-layout .agent-records-page table :is(th,td){padding:9px 8px;border:1px solid var(--agent-theme-line,#dce4f0);vertical-align:middle}
 body.agent-top-layout :is(#agentWalletPanel,#betsPanel,#agentDrawsPanel).agent-records-page table :is(th,td){padding-block:7px}
 body.agent-top-layout .agent-records-page table th{background:var(--agent-theme-light,#edf4ff);color:var(--agent-theme-ink,#344e69);font-size:12px;font-weight:600}
 body.agent-top-layout #agentWalletPanel #agentEarnings{flex:none;margin:0 0 10px;padding:10px 12px;border-radius:8px}body.agent-top-layout #agentWalletPanel .agent-earnings-stat strong{font-size:18px}
 body.agent-top-layout #agentWalletPanel .agent-wallet-table{min-width:1190px}
 body.agent-top-layout #betsPanel table{min-width:960px}
 body.agent-top-layout #betsPanel .bill-filter-bar.records-query{display:flex;flex-wrap:wrap;gap:7px;padding:8px;margin:0 0 10px}body.agent-top-layout #betsPanel .bill-filter-bar.records-query :is(input,select,button){height:32px;min-height:32px;font-size:12px}body.agent-top-layout #betsPanel .bill-filter-bar.records-query :is(input,select){max-width:180px;min-width:0}
 body.agent-top-layout #agentWalletPanel .agent-records-heading #refreshAgentWallet{height:30px;margin:0;padding:4px 10px;min-height:30px}
 body.agent-top-layout #agentReportPanel.agent-page-fit{overflow:hidden;gap:8px;padding:16px!important}body.agent-top-layout #agentReportPanel.agent-page-fit>h2{font-size:18px;margin:0;padding:0 0 10px}
 body.agent-top-layout #agentReportPanel .report-filters{padding:10px 12px!important;margin:0!important;gap:7px 12px!important}body.agent-top-layout #agentReportPanel #agentReportOverview{max-height:35%;overflow:auto;min-height:40px}
 body.agent-top-layout #agentReportPanel #agentReportSummary{min-height:0;overflow:auto;flex:0 1 auto}body.agent-top-layout #agentReportPanel #agentReportDetail{max-height:35%;overflow:auto;flex:none}
}
:root[data-agent-theme=night] .agent-records-page{--agent-theme-surface:#192638;--agent-theme-light:#233850;--agent-theme-line:#304259;--agent-theme-ink:#d9e5f4;--agent-theme-primary:#83c7ee}
:root[data-agent-theme=night] body.agent-top-layout .agent-records-page :is(.scroll,table,tbody,tbody td),:root[data-agent-theme=night] body.agent-top-layout #agentReportPanel :is(.agent-report-table td,.report-readable-section,.report-readable-section>.scroll,.report-overview){background:#192638!important;color:#c3d5eb;border-color:#34465f!important}
:root[data-agent-theme=night] body.agent-top-layout .agent-records-page tbody tr:nth-child(even)>td{background:#203148!important}
:root[data-agent-theme=night] body.agent-top-layout #agentReportPanel :is(.report-account-list-title,.agent-report-table th){background:#233850!important;color:#c3d5eb!important;border-color:#34465f!important}
:root[data-agent-theme=night] body.agent-top-layout #agentReportPanel .report-total>td{background:#263d56!important;color:#d2e6fc}
:root[data-agent-theme=night] body.agent-top-layout #agentReportPanel .report-negative,:root[data-agent-theme=night] body.agent-top-layout .agent-records-page :is(.draw-hot,.agent-share-negative){color:#f2938b!important}
:root[data-agent-theme=night] body.agent-top-layout .agent-records-page .draw-cool{color:#89bfff!important}
@media(max-width:1000px){body.agent-records-active.agent-section-active .main-pane{grid-template-columns:116px minmax(0,1fr);column-gap:10px}.records-pagination{align-items:flex-start;flex-wrap:wrap;gap:6px}.records-pagination>div{gap:4px}.records-pagination button{padding-inline:6px}}
@media(max-width:720px){body.agent-records-active.agent-section-active .main-pane{grid-template-columns:92px minmax(0,1fr);column-gap:8px}.records-pagination{margin-top:8px}.records-pagination button,.records-pagination select{font-size:11px;padding:4px 6px}.records-pagination input{display:none}.records-pagination button:first-child,.records-pagination button:nth-child(5){display:none}body.agent-records-active .agent-section-nav>button{font-size:11px;padding:8px 5px!important;gap:5px}body.agent-records-active .agent-section-nav svg{width:14px!important;min-width:14px;height:14px!important}.records-page-count{font-size:11px}}
