.report-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 0 18px;padding:18px;background:#fff;border-radius:8px;overflow-wrap:anywhere}
.report-heading h2{font-size:23px;margin:6px 0 10px;color:#4f3482}
.report-heading p{margin:4px 0;font-size:13px}
.report-heading .report-brand{font-weight:600}
.report-heading .report-meta{font-size:11px;color:#666}
.report-heading .btnx{flex-shrink:0;min-height:44px}
@media(max-width:600px){.report-heading{align-items:flex-start;flex-direction:column}}
@media print{
  @page{size:A4 portrait;margin:12mm}
  body.report-page,body.report-page .main{background:white!important;color:#000!important}
  body.report-page .no-print,body.report-page form,body.report-page .report-entry{display:none!important}
  body.report-page .content-container{max-width:none;margin:0;padding:0}
  body.report-page .report-heading{display:block;border-bottom:2px solid #333;padding:0 0 10px;margin-bottom:14px;break-inside:avoid}
  body.report-page .report-heading h2{font-size:20px;color:#000}
  body.report-page .cardx{padding:0;margin-bottom:14px;border:0;box-shadow:none}
  body.report-page .tablewrap{overflow:visible;max-width:none}
  body.report-page table{width:100%;table-layout:fixed;font-size:9pt}
  body.report-page th,body.report-page td{white-space:normal;overflow-wrap:anywhere;padding:6px 4px;border:1px solid #aaa;font-size:9pt}
  body.report-page thead{display:table-header-group}
  body.report-page tr{break-inside:avoid;page-break-inside:avoid}
  body.report-page h2{break-after:avoid}
  body.report-page a[href]::after{content:none!important}
  body.report-page .commission-summary,body.report-page .profit-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;break-inside:avoid}
  body.report-page .commission-summary .cardx,body.report-page .profit-summary .cardx{border:1px solid #aaa;padding:8px}
  body.report-page .commission-summary strong,body.report-page .profit-summary strong{font-size:15px;overflow-wrap:anywhere}
}

.report-game-result{white-space:normal;min-width:105px;line-height:1.6}
.ledger-filters label{display:flex;flex-direction:column;gap:5px;font-weight:600}
.ledger-filters input,.ledger-filters select{min-height:40px;border:1px solid #c7d1dd;border-radius:5px;padding:8px;background:#fff;color:#333}
.ledger-summary{margin:16px 0 8px}.ledger-pagination{margin-bottom:24px}
.ledger-table .bet-number{font-variant-numeric:tabular-nums;font-weight:700}
.ledger-outcome{display:inline-block;padding:4px 8px;border-radius:5px;background:#eef0f4;font-weight:600;font-size:12px}
.outcome-win{background:#e2f3e7;color:#22643b}.outcome-lose{background:#fde9e9;color:#943737}.outcome-pending,.outcome-review-needed{background:#fff2d4;color:#78590d}.outcome-void{color:#626974}
@media print{.report-game-result{min-width:0}}
