/* Scope all styles so agent settlement details can be inserted into the existing
   management shell without changing member betting or login pages. */
.replica-agent-records { color:#1c3857; font:12px Arial,"Microsoft YaHei",sans-serif; }
.replica-agent-records * { box-sizing:border-box; }
.replica-agent-records .ar-settlement-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:5px; }
.replica-agent-records .ar-round-summary { display:flex; flex-wrap:wrap; align-items:center; gap:8px 22px; color:#617488; }
.replica-agent-records .ar-round-summary span { min-width:132px; }
.replica-agent-records .ar-round-summary strong { color:#b62419; font-size:14px; }
.replica-agent-records .ar-filter { display:flex; flex-wrap:wrap; align-items:center; gap:5px 9px; padding:5px; margin-bottom:5px; background:#e7f0fa; }
.replica-agent-records .ar-filter label { display:flex; flex-direction:row; align-items:center; gap:4px; min-width:0; color:#244b77; }
.replica-agent-records .ar-filter input,
.replica-agent-records .ar-filter select { min-width:70px; max-width:145px; height:23px; padding:1px 4px; border:1px solid #89a3bf; border-radius:0; background:#fff; color:#20384d; font:inherit; }
.replica-agent-records .ar-filter label:first-child select { min-width:88px; }
.replica-agent-records .ar-filter .button { height:23px; padding:1px 7px; border-radius:2px; font:inherit; }
.replica-agent-records .ar-filter [data-ar-error] { min-width:180px; color:#b52622; align-self:center; }
.replica-agent-records .ar-summary { margin:0; }
.replica-agent-records .ar-subtotal { display:flex; flex-wrap:wrap; gap:4px 20px; align-items:center; padding:4px 8px; min-height:24px; border:1px solid #93afd0; border-bottom:0; background:#d8eafa; color:#24486b; }
.replica-agent-records .ar-subtotal strong { color:#273e54; font-weight:600; }
.replica-agent-records .ar-table-scroll { overflow-x:auto; border:1px solid #8ca8c4; background:#fff; }
.replica-agent-records .ar-settlement-table { width:100%; min-width:1220px; border-collapse:collapse; table-layout:auto; }
.replica-agent-records .ar-settlement-table th,
.replica-agent-records .ar-settlement-table td { height:24px; padding:2px 5px; border-right:1px solid #a2b8cf; border-bottom:1px solid #a2b8cf; white-space:nowrap; text-align:center; }
.replica-agent-records .ar-settlement-table th { color:#153e67; font-weight:400; background:#a6cef4; }
.replica-agent-records .ar-settlement-table tbody tr:nth-child(even) td { background:#fbfdff; }
.replica-agent-records .ar-settlement-table tbody tr:hover td { background:#fffbea; }
.replica-agent-records .ar-settlement-table .numeric { text-align:right; }
.replica-agent-records .ar-settlement-table .nowrap { white-space:nowrap; }
.replica-agent-records .ar-settlement-table .ar-product { max-width:260px; overflow:hidden; text-overflow:ellipsis; }
.replica-agent-records .ar-settlement-table .ar-actions { white-space:nowrap; }
.replica-agent-records .ar-settlement-table .ar-actions .button { padding:1px 5px; margin:0 2px; min-height:18px; height:20px; font:inherit; }
.replica-agent-records .ar-empty { height:84px !important; text-align:center !important; color:#8293a2; }
.replica-agent-records .ar-profit { color:#138447; }
.replica-agent-records .ar-loss { color:#b52b28; }
.replica-agent-records .pager { display:flex; align-items:center; justify-content:center; gap:14px; padding:13px 0 4px; color:#617488; }
.replica-agent-records .pager .button { min-width:68px; }
.ar-risk-summary { background:#fff; border:1px solid #9bbbd8; font-size:12px; }
.ar-risk-head { position:relative; padding:8px 12px; background:#eaf3fb; border-bottom:1px solid #9bbbd8; color:#244c70; }
.ar-risk-title { font-weight:700; color:#235e94; }
.ar-risk-title span { color:#526c82; font-weight:400; }
.ar-risk-totals { margin-top:4px; color:#374f64; }
.ar-risk-draw { position:absolute; right:14px; top:10px; color:#274f70; }
.ar-risk-controls { display:flex; align-items:center; gap:12px; padding:6px 10px; border-bottom:1px solid #b9cde0; background:#f7fbff; }
.ar-risk-controls select { min-width:70px; }
.ar-risk-table-scroll { overflow-x:auto; }
.ar-risk-table { border-collapse:collapse; min-width:1280px; width:100%; color:#263d54; }
.ar-risk-table th { background:#a6c7e6; border:1px solid #8eafd0; padding:4px 5px; white-space:nowrap; font-weight:600; }
.ar-risk-table td { border:1px solid #b6c8d9; padding:3px 5px; height:24px; white-space:nowrap; text-align:center; }
.ar-risk-table tbody tr:nth-child(even) { background:#f3f8fc; }
.ar-risk-table tbody tr:hover { background:#e7f2fc; }
@media (max-width:760px) {
  .replica-agent-records .ar-filter label { min-width:calc(50% - 8px); }
  .replica-agent-records .ar-filter .button { flex:0 0 auto; }
  .replica-agent-records .ar-round-summary { gap:5px 12px; }
}
.replica-agent-records .ar-delete-toolbar {display:flex; align-items:center; gap:16px; padding:8px 10px; background:#fff8e6; border:1px solid #dfd4b4; margin:6px 0;}
.replica-agent-records .ar-delete-toolbar[hidden] {display:none;}
.replica-agent-records .ar-select {width:32px; text-align:center;}
.replica-agent-records .ar-actions {white-space:nowrap;}
.replica-agent-records .ar-actions .button + .button {margin-left:4px;}
