/* UI31: UI30-approved theme preserved; scoped legibility fixes only.
   No new animation, shadow, financial selectors, lottery state or transaction changes. */
/* Member key entry: the currently selected main mode and 19-door variant
   use the requested #8B2033 wine highlight; action buttons and disabled
   states stay unchanged. No automatic setting or business action. */
html[data-exlot-theme] .member-workspace .key-bet-page .key-mode-bar > button.active:not(:disabled),
html[data-exlot-theme] .member-workspace .key-bet-page .key-mode-options > button.selected:not(:disabled),
html[data-exlot-theme] .member-workspace .key-bet-page .key-mode-options > button[aria-pressed='true']:not(:disabled) {
  background-color:#8B2033!important;
  background-image:none!important;
  color:#F5DEA8!important;
  border-color:#B85A6A!important;
  box-shadow:none!important;
  text-shadow:none!important;
  opacity:1!important;
}
html[data-exlot-theme] .member-workspace .key-bet-page .key-mode-bar > button.active:not(:disabled):hover,
html[data-exlot-theme] .member-workspace .key-bet-page .key-mode-options > button.selected:not(:disabled):hover {
  background-color:#711A2A!important;
  border-color:#C89A4C!important;
}
html[data-exlot-theme] .member-workspace .key-bet-page :is(.key-mode-bar,.key-mode-options) > button:is(.active,.selected,[aria-pressed='true']):focus-visible {
  outline:2px solid #C89A4C!important;
  outline-offset:2px!important;
}
/* Agent notification bell: same visible line weight and accent as Member top bar. */
html[data-exlot-theme='light'] .agent-topbar .topbar-actions > button.detail-link,
html[data-exlot-theme='dark'] .agent-topbar .topbar-actions > button.detail-link {
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:30px!important;min-width:30px!important;height:30px!important;
  padding:4px!important;border-radius:6px!important;box-shadow:none!important;
  background:transparent!important;opacity:1!important;
}
html[data-exlot-theme='light'] .agent-topbar .topbar-actions > button.detail-link {color:#9d6418!important}
html[data-exlot-theme='dark'] .agent-topbar .topbar-actions > button.detail-link {color:#f3c37c!important}
html[data-exlot-theme] .agent-topbar .topbar-actions > button.detail-link svg {
  display:block!important;width:18px!important;height:18px!important;stroke:currentColor!important;stroke-width:1.9!important;opacity:1!important;
}
html[data-exlot-theme] .agent-topbar .topbar-actions > button.detail-link:focus-visible {
  outline:2px solid #C89A4C!important;outline-offset:2px!important;
}
/* Member ticket figures: align readability with Agent reports, retain amount signs and states. */
html[data-exlot-theme] .member-workspace .bill-history-table td.bill-money,
html[data-exlot-theme] .member-workspace .bill-history-table tfoot td.bill-money {
  font-weight:650!important;font-variant-numeric:tabular-nums!important;
  opacity:1!important;text-shadow:none!important;
}
html[data-exlot-theme='light'] .member-workspace .bill-history-table td.bill-money {color:#233748!important}
html[data-exlot-theme='light'] .member-workspace .bill-history-table td.bill-debit {color:#007e65!important}
html[data-exlot-theme='light'] .member-workspace .bill-history-table td.bill-discount {color:#a36312!important}
html[data-exlot-theme='light'] .member-workspace .bill-history-table td.bill-payout {color:#c83d36!important}
html[data-exlot-theme='light'] .member-workspace .bill-history-table td.bill-positive {color:#046b86!important}
html[data-exlot-theme='dark'] .member-workspace .bill-history-table td.bill-money {color:#eff5f8!important}
html[data-exlot-theme='dark'] .member-workspace .bill-history-table td.bill-debit {color:#49d6b2!important}
html[data-exlot-theme='dark'] .member-workspace .bill-history-table td.bill-discount {color:#ffcc80!important}
html[data-exlot-theme='dark'] .member-workspace .bill-history-table td.bill-payout {color:#ff817d!important}
html[data-exlot-theme='dark'] .member-workspace .bill-history-table td.bill-positive {color:#55d5e9!important}
/* Report headings, selector controls and light-on-light panel titles: Agent only. */
html[data-exlot-theme='light'] .agent-workspace :is(.bet-type-meta,.member-agent-bar,.report-context-line,.report-date-section,.report-date-caption) {
  color:#24394a!important;
}
html[data-exlot-theme='dark'] .agent-workspace :is(.bet-type-meta,.member-agent-bar,.report-context-line,.report-date-section,.report-date-caption) {
  color:#e9f0f4!important;
}
html[data-exlot-theme='dark'] .agent-workspace :is(.bet-type-meta,.member-agent-bar) {
  background-color:#232b31!important;border-color:#485764!important;
}
html[data-exlot-theme='light'] .agent-workspace :is(.bet-type-meta,.member-agent-bar) {
  background-color:#edf1f4!important;border-color:#c8d3dd!important;
}
html[data-exlot-theme] .agent-workspace :is(.bet-type-meta,.member-agent-bar) :is(span,b,strong,small,p) {
  color:inherit!important;opacity:1!important;text-shadow:none!important;
}
html[data-exlot-theme='light'] .agent-workspace .report-date-section label,
html[data-exlot-theme='light'] .agent-workspace .report-context-line p {color:#274052!important;opacity:1!important}
html[data-exlot-theme='dark'] .agent-workspace .report-date-section label,
html[data-exlot-theme='dark'] .agent-workspace .report-context-line p {color:#ebf2f5!important;opacity:1!important}

/* UI31 owner addition: accessible native date range controls, existing theme/effects retained. */
.ex20v-head:has(.ex31-date-range:not([hidden])){flex-wrap:wrap}
.ex20v-head .ex20v-actions:has(.ex31-date-range:not([hidden])){flex-wrap:wrap;max-width:100%}
.ex20v-actions .ex31-date-range[hidden]{display:none!important}
.ex20v-actions .ex31-date-range{display:flex;flex-wrap:wrap;gap:8px;align-items:end;max-width:100%}
.ex20v-actions .ex31-date-range label{display:grid;gap:4px;font-size:12px;min-width:0}
.ex20v-actions .ex31-date-range input{font:inherit;max-width:100%;min-width:0;padding:6px;border:1px solid currentColor;border-radius:5px;background:var(--ex20v-panel,#fff);color:inherit}
html[data-exlot-theme='dark'] .ex31-date-range input{background:#222b34;color:#f1f5f9;color-scheme:dark}
html[data-exlot-theme='light'] .ex31-date-range input{background:#fff;color:#25394a;color-scheme:light}
.ex31-date-range :is(input,button):focus-visible{outline:2px solid #c89a4c;outline-offset:2px}
@media(max-width:600px){.ex20v-head .ex20v-actions{flex-wrap:wrap;max-width:100%}.ex31-date-range{flex-basis:100%}}
/* Actual SSR fixture audit: scoped contrast corrections, no layout/card changes. */
html[data-exlot-theme] .agent-topbar .topbar-actions > button.detail-link {
 width:24px!important;min-width:24px!important;height:24px!important;padding:0!important;color:#087f8c!important;
}
html[data-exlot-theme] .agent-topbar .topbar-actions > button.detail-link svg {stroke-width:2!important}
html[data-exlot-theme='light'] .agent-workspace :is(.ex20v-eyebrow,.agent-page-heading>div>span){color:#87591c!important}
html[data-exlot-theme='dark'] .agent-workspace .agent-page-heading>span {background:#27323d!important;color:#e9f0f6!important}
html[data-exlot-theme='dark'] .agent-workspace :is(.report-date-fields,.report-presets)>button:not(.active),
html[data-exlot-theme='dark'] .agent-workspace .report-market-table td button:not(.detail-link){background:#26313b!important;color:#eaf0f6!important;border-color:#5d6c7a!important}
html[data-exlot-theme='dark'] .agent-workspace .report-context-line b,
html[data-exlot-theme='dark'] .agent-workspace .detail-link {color:#63d6e0!important}
html[data-exlot-theme='light'] .member-workspace .key-page-back{color:#087282!important}
html[data-exlot-theme='light'] .member-workspace .bet-summary b{color:#80500e!important}
html[data-exlot-theme='dark'] .member-workspace .draft-totals>small{color:#aebdcd!important}
html[data-exlot-theme='dark'] .member-workspace .key-rate-panel table b{color:#efbf70!important}
html[data-exlot-theme='light'] .ex20v-panel .ex23-ticket-status.pending{color:#795318!important}
.ex31-lottery-mark{display:inline-block;vertical-align:middle;object-fit:contain;margin-inline-end:6px;flex-shrink:0}
.ex31-bill-id{display:block;font-size:10px;overflow-wrap:anywhere;color:inherit;opacity:.85}
.ex31-bill-note{min-width:100px;max-width:180px;white-space:normal!important;overflow-wrap:anywhere}
.ex23-lower .ex23-table-scroll{max-height:340px;overflow:auto}
.ex23-lower .ex23-table-scroll table{min-width:580px}
html[data-exlot-theme] .member-workspace .bill-history-table tfoot td.bill-money{color:#f2f6fa!important}
html[data-exlot-theme='light'] .member-workspace .bill-history-table tbody .bill-debit{color:#006f58!important}
html[data-exlot-theme='light'] .member-workspace .bill-history-table tbody .bill-discount{color:#86500c!important}
html[data-exlot-theme='light'] .member-workspace .bill-history-table tbody .bill-payout{color:#b32f2a!important}
html[data-exlot-theme='light'] .member-workspace :is(.eyebrow.dark,.bill-range b){color:#87591c!important}
html[data-exlot-theme='light'] .member-workspace :is(.bill-range,.bill-pagination>span,.bill-history-table time){color:#586b76!important}
html[data-exlot-theme='light'] .member-workspace .bill-link{color:#087282!important}
html[data-exlot-theme] .member-workspace .bill-market-filters button.selected{color:#2b210e!important}
html[data-exlot-theme='dark'] .member-workspace .bill-date-form label,
html[data-exlot-theme='dark'] .member-workspace .welcome-row>[data-slot='badge']{color:#dce6ef!important}
html[data-exlot-theme='dark'] .member-workspace :is(.bill-presets,.bill-status-filters,.bill-market-filters,.bill-pagination,.bill-date-form) button:not(.selected):not(:disabled){background:#26313b!important;color:#eaf0f6!important;border-color:#5d6c7a!important}
html[data-exlot-theme='dark'] .member-workspace :is(.bill-range b,.bill-history-table time){color:#b9c8d6!important}
html[data-exlot-theme='dark'] .member-workspace .bill-link{color:#63d6e0!important}
html[data-exlot-theme='dark'] .member-workspace .bet-summary b{color:#80500e!important}
html[data-exlot-theme='light'] .member-workspace .welcome-row p:not(.eyebrow){color:#586b76!important}
html[data-exlot-theme='dark'] .member-workspace .welcome-row p:not(.eyebrow){color:#aebdcd!important}
html[data-exlot-theme='dark'] .member-workspace .section-heading>[data-slot='badge']{color:#dce6ef!important}
html[data-exlot-theme='dark'] .member-workspace .bill-category-picker button:not(.bill-category-active){background:#26313b!important;color:#eaf0f6!important;border-color:#5d6c7a!important}
/* Extended Agent report/form audit: retain semantic money hues and status backgrounds. */
html[data-exlot-theme='light'] .agent-workspace :is(.page-heading,.agent-page-heading) .eyebrow{color:#87591c!important}
html[data-exlot-theme='light'] .agent-workspace :is(.page-heading,.agent-page-heading) p:not(.eyebrow),
html[data-exlot-theme='light'] .agent-workspace :is(.agent-panel p,.agent-panel small,.agent-table-scroll small,.report-count,.empty-cell,.add-user-form small){color:#586b76!important}
html[data-exlot-theme='dark'] .agent-workspace :is(.page-heading,.agent-page-heading) p:not(.eyebrow),
html[data-exlot-theme='dark'] .agent-workspace :is(.agent-panel p,.agent-panel small,.agent-panel label>span,.add-user-field>span,.add-user-submit p){color:#b4c3d1!important}
html[data-exlot-theme] .agent-workspace .username-prefix-field b{color:#80500e!important}
html[data-exlot-theme] .agent-workspace .add-user-balance-card.user span{color:#122f3b!important}
html[data-exlot-theme] .agent-workspace .level-badge{background:#59636d!important;color:#fff!important}
html[data-exlot-theme] .agent-workspace .blue-button{background:#236e9b!important;color:#fff!important}
html[data-exlot-theme] .agent-workspace :is(.orange-button,.result-category-filter button.active){color:#342105!important}
html[data-exlot-theme='light'] .agent-workspace :is(.money-green,.report-member-badge){color:#006d4e!important}
html[data-exlot-theme='light'] .agent-workspace .money-red{color:#ad2e35!important}
html[data-exlot-theme='light'] .agent-workspace .report-scope-bar{color:#586b76!important}
html[data-exlot-theme='light'] .agent-workspace table td>a:not(.detail-link){color:#146c99!important}
html[data-exlot-theme='dark'] .agent-workspace table td>a:not(.detail-link){color:#7ac5ee!important}
html[data-exlot-theme='dark'] .agent-workspace :is(.report-scope-bar,.report-details-toggle){background:#26313b!important;color:#eaf0f6!important}
html[data-exlot-theme='dark'] .agent-workspace .report-scope-bar :is(b,span){color:#eaf0f6!important}
html[data-exlot-theme='dark'] .agent-workspace .report-date-caption b{color:#63d6e0!important}
html[data-exlot-theme='dark'] .agent-workspace .report-member-badge{color:#006d4e!important}
html[data-exlot-theme='dark'] .agent-workspace :is(table td,.market-controls-toolbar,.report-category-actions) button.bg-background:not(:disabled){background:#26313b!important;color:#eaf0f6!important;border-color:#5d6c7a!important}
html[data-exlot-theme='dark'] .agent-workspace table td>[data-slot='badge']:not(.level-badge):not(.close-time-badge){color:#eaf0f6!important}
html[data-exlot-theme] .agent-workspace .agent-table-scroll td>span:is([style*='background: rgb(223, 148, 13)'],[style*='background: rgb(21, 151, 92)'],[style*='background: rgb(39, 138, 188)']){color:#10232a!important}
html[data-exlot-theme='light'] .agent-workspace .report-scope-bar>span{color:#586b76!important}
html[data-exlot-theme] .agent-workspace .add-user-balance-card.user b{color:#122f3b!important}
html[data-exlot-theme='dark'] .agent-workspace table td>.close-time-badge{color:#68400c!important}
html[data-exlot-theme] .agent-workspace .agent-table-scroll td>span[style*='background: rgb(39, 138, 188)']{color:#06131b!important}
/* Radix portals are siblings of the workspace; scope through the active role. */
html[data-exlot-theme='light']:has(.agent-workspace) .bet-type-dialog .money-green{color:#006d4e!important}
html[data-exlot-theme='light']:has(.agent-workspace) .bet-type-dialog .money-red{color:#ad2e35!important}
html[data-exlot-theme]:has(.agent-workspace) .bet-type-dialog .blue-button{background:#236e9b!important;color:#fff!important}
html[data-exlot-theme='dark']:has(.agent-workspace) .bet-type-dialog :is(.text-muted-foreground,.bet-type-meta p){color:#b4c3d1!important}
html[data-exlot-theme='dark']:has(.agent-workspace) .bet-type-dialog .detail-link{color:#63d6e0!important}
html[data-exlot-theme='dark']:has(.agent-workspace) .bet-type-dialog :is(tbody tr:hover,.total-row){background:#26313b!important;color:#edf2f7!important}
html[data-exlot-theme='dark']:has(.agent-workspace) .bet-type-dialog .money-green{color:#65dab3!important}
html[data-exlot-theme='dark']:has(.agent-workspace) .bet-type-dialog .money-red{color:#ff9399!important}
html[data-exlot-theme='light']:has(.member-workspace) .bill-detail-dialog .bill-link{color:#087282!important}
html[data-exlot-theme='light']:has(.member-workspace) .bill-detail-dialog .bill-payout{color:#b32f2a!important}
html[data-exlot-theme='dark']:has(.member-workspace) .bill-detail-dialog :is(.text-muted-foreground,.bill-day-winners-title h3){color:#b4c3d1!important}
html[data-exlot-theme='dark']:has(.member-workspace) .bill-detail-dialog .detail-facts{background:#222b34!important;color:#edf2f7!important}
html[data-exlot-theme='dark']:has(.member-workspace) .bill-detail-dialog .detail-facts>div{background:transparent!important;color:inherit!important}
html[data-exlot-theme='dark']:has(.member-workspace) .bill-detail-dialog .bill-link{color:#63d6e0!important}
html[data-exlot-theme='dark']:has(.agent-workspace) .bet-type-dialog .total-row td{background:#26313b!important}
html[data-exlot-theme='dark']:has(.member-workspace) .bill-detail-dialog .detail-facts dt{color:#b4c3d1!important}

html[data-exlot-theme] .agent-workspace .add-user-balance-card.owner span{color:#082d1b!important}
/* New bill/lottery panels have different columns from the old fixed six-type table. */
.ex23-lower .ex23-table-scroll table{table-layout:auto!important;width:max-content!important;min-width:100%!important}
.ex23-lower .ex23-table-scroll :is(th,td){white-space:nowrap}

/* UI31-R3: latest report win/lose badges only; no cards, keying, other statuses affected. */
html[data-exlot-theme='light'] .agent-workspace .ex20v-panel .ex23-ticket-status.win {color:#096b3d!important;background:#e3f6ea!important;border-color:#80c7a1!important;font-weight:700!important}
html[data-exlot-theme='dark'] .agent-workspace .ex20v-panel .ex23-ticket-status.win {color:#b5ffd3!important;background:#123923!important;border-color:#3d9061!important;font-weight:700!important}
html[data-exlot-theme='light'] .agent-workspace .ex20v-panel .ex23-ticket-status.lose {color:#b22338!important;background:#fce9ed!important;border-color:#e4a1ae!important;font-weight:700!important}
html[data-exlot-theme='dark'] .agent-workspace .ex20v-panel .ex23-ticket-status.lose {color:#ffbdc6!important;background:#45212b!important;border-color:#a55465!important;font-weight:700!important}
