/* Arena E-Sport 0.1.3 - compatibility layer for Arena plugin views.
 * Loaded after the main theme stylesheet so Arena application screens retain
 * readable contrast and can use a wider management layout.
 */

/* Shared semantic tokens. Arena can consume these directly without depending
 * on the theme's internal --bg/--surface names. */
:root{
  --arena-ui-bg:var(--bg,#090b11);
  --arena-ui-surface:var(--surface,#111522);
  --arena-ui-surface-alt:var(--surface2,#171c2b);
  --arena-ui-text:var(--text,#f7f8fb);
  --arena-ui-text-muted:var(--muted,#9aa4b8);
  --arena-ui-border:var(--line,#252c3d);
  --arena-ui-accent:var(--arena-accent,#7c5cff);
  --arena-ui-success:#2fbf71;
  --arena-ui-warning:#d89b2b;
  --arena-ui-danger:#d95555;
  --arena-ui-radius:14px;
}

/* Arena application pages are management screens, not reading pages. */
body.arena-app-view .page-shell{
  width:min(1440px,calc(100% - 36px));
}
body.arena-app-view .single-card{
  padding:clamp(22px,3vw,42px);
}
body.arena-app-view .single-card>header,
body.arena-app-view .entry-content>*{
  max-width:none;
}
body.arena-app-view .entry-content{
  width:100%;
}

/* Keep third-party/app content readable even when it carries light surfaces
 * while the theme itself is in dark mode. These rules target common Arena
 * wrappers only and deliberately avoid generic WordPress/plugin selectors. */
body.arena-theme-dark.arena-plugin-active .entry-content :is(
  .arena-app,
  .arena-dashboard,
  .arena-manager,
  .arena-manager-area,
  .arena-manager-dashboard,
  .arena-my-arena,
  .arena-my-team,
  .arena-team-dashboard,
  .arena-team-manager,
  .arena-frontend,
  .arena-portal
){
  color:var(--arena-ui-text);
}

body.arena-theme-dark.arena-plugin-active .entry-content :is(
  .arena-app,
  .arena-dashboard,
  .arena-manager,
  .arena-manager-area,
  .arena-manager-dashboard,
  .arena-my-arena,
  .arena-my-team,
  .arena-team-dashboard,
  .arena-team-manager,
  .arena-frontend,
  .arena-portal
) :is(h1,h2,h3,h4,h5,h6,p,li,dt,dd,label,legend,summary,span,strong,small){
  color:inherit;
}

/* Common application cards/panels. We only recolour elements carrying an
 * Arena namespace, preventing global overrides of unrelated plugins. */
body.arena-theme-dark.arena-plugin-active .entry-content :is(
  [class^="arena-"][class*="card"],
  [class*=" arena-"][class*="card"],
  [class^="arena-"][class*="panel"],
  [class*=" arena-"][class*="panel"],
  [class^="arena-"][class*="box"],
  [class*=" arena-"][class*="box"],
  [class^="arena-"][class*="summary"],
  [class*=" arena-"][class*="summary"]
){
  background:var(--arena-ui-surface);
  color:var(--arena-ui-text);
  border-color:var(--arena-ui-border);
}

body.arena-theme-dark.arena-plugin-active .entry-content :is(
  [class^="arena-"][class*="tab"],
  [class*=" arena-"][class*="tab"],
  [class^="arena-"][class*="nav"],
  [class*=" arena-"][class*="nav"]
) a{
  color:var(--arena-ui-text-muted);
  border-color:var(--arena-ui-border);
}
body.arena-theme-dark.arena-plugin-active .entry-content :is(
  [class^="arena-"][class*="tab"],
  [class*=" arena-"][class*="tab"],
  [class^="arena-"][class*="nav"],
  [class*=" arena-"][class*="nav"]
) a:hover,
body.arena-theme-dark.arena-plugin-active .entry-content :is(
  [class^="arena-"][class*="tab"],
  [class*=" arena-"][class*="tab"]
) :is(.active,[aria-current="page"]){
  color:var(--arena-ui-text);
}

/* Inputs and tables inside Arena screens should remain usable in both modes. */
body.arena-plugin-active .entry-content :is(
  .arena-app,.arena-dashboard,.arena-manager,.arena-manager-area,
  .arena-manager-dashboard,.arena-my-arena,.arena-my-team,.arena-team-dashboard,
  .arena-team-manager,.arena-frontend,.arena-portal
) :is(input,select,textarea,button){
  font:inherit;
}
body.arena-theme-dark.arena-plugin-active .entry-content :is(
  .arena-app,.arena-dashboard,.arena-manager,.arena-manager-area,
  .arena-manager-dashboard,.arena-my-arena,.arena-my-team,.arena-team-dashboard,
  .arena-team-manager,.arena-frontend,.arena-portal
) :is(input,select,textarea){
  background:var(--arena-ui-surface-alt);
  color:var(--arena-ui-text);
  border-color:var(--arena-ui-border);
}
body.arena-theme-dark.arena-plugin-active .entry-content :is(
  .arena-app,.arena-dashboard,.arena-manager,.arena-manager-area,
  .arena-manager-dashboard,.arena-my-arena,.arena-my-team,.arena-team-dashboard,
  .arena-team-manager,.arena-frontend,.arena-portal
) :is(table,th,td){
  color:var(--arena-ui-text);
  border-color:var(--arena-ui-border);
}
body.arena-theme-dark.arena-plugin-active .entry-content :is(
  .arena-app,.arena-dashboard,.arena-manager,.arena-manager-area,
  .arena-manager-dashboard,.arena-my-arena,.arena-my-team,.arena-team-dashboard,
  .arena-team-manager,.arena-frontend,.arena-portal
) th{
  background:var(--arena-ui-surface-alt);
}

/* If Arena itself exposes the shared tokens, these aliases let its own CSS
 * win cleanly. This is the preferred integration path for future releases. */
body.arena-plugin-active{
  --arena-bg:var(--arena-ui-bg);
  --arena-surface:var(--arena-ui-surface);
  --arena-surface-alt:var(--arena-ui-surface-alt);
  --arena-text:var(--arena-ui-text);
  --arena-text-muted:var(--arena-ui-text-muted);
  --arena-border:var(--arena-ui-border);
  --arena-accent:var(--arena-ui-accent);
  --arena-success:var(--arena-ui-success);
  --arena-warning:var(--arena-ui-warning);
  --arena-danger:var(--arena-ui-danger);
}

@media(max-width:900px){
  body.arena-app-view .page-shell{width:min(100% - 24px,1440px)}
  body.arena-app-view .single-card{padding:18px}
}


/* 0.1.3: definitive contrast boundary for Arena application pages.
 * Arena 0.x can output its UI without a stable wrapper class, so on pages
 * positively detected as Arena views we establish a light application canvas.
 * This is deliberately page-scoped and cannot affect normal posts/pages. */
body.arena-app-view.arena-plugin-active .entry-content{
  --arena-app-bg:#ffffff;
  --arena-app-text:#172033;
  --arena-app-muted:#667085;
  --arena-app-border:#d8dee9;
  --arena-app-soft:#f6f8fb;
  color:var(--arena-app-text) !important;
  color-scheme:light;
}
body.arena-app-view.arena-plugin-active .entry-content :where(
  div,section,article,header,footer,main,aside,nav,p,span,small,strong,b,em,
  ul,ol,li,dl,dt,dd,label,legend,summary,h1,h2,h3,h4,h5,h6
){color:inherit;}
body.arena-app-view.arena-plugin-active .entry-content :where(p,small,.description,.help,.muted,[class*="muted"],[class*="description"]){
  color:var(--arena-app-muted) !important;
  opacity:1 !important;
}
body.arena-app-view.arena-plugin-active .entry-content :where(h1,h2,h3,h4,h5,h6,strong,b){
  color:var(--arena-app-text) !important;
  opacity:1 !important;
}
body.arena-app-view.arena-plugin-active .entry-content :where(a,button,[role="button"],input,select,textarea,th,td){opacity:1;}
body.arena-app-view.arena-plugin-active .entry-content :where(input,select,textarea){
  background:#fff;color:var(--arena-app-text);border-color:var(--arena-app-border);
}
body.arena-app-view.arena-plugin-active .entry-content :where(table,th,td){
  color:var(--arena-app-text);border-color:var(--arena-app-border);
}
/* Arena's current management UI uses a light card. Keep its descendants
 * readable even when the site chrome is dark. */
body.arena-app-view.arena-theme-dark .entry-content > :where(div,section,article){
  color:var(--arena-app-text);
}
/* Prevent the sticky site header from covering application page headings. */
body.arena-app-view .page-shell{
  padding-top:clamp(78px,7vw,108px) !important;
  padding-bottom:56px;
}
body.admin-bar.arena-app-view .site-header{top:32px;}
/* Give management pages a broad working canvas. */
body.arena-app-view .arena-container.page-shell{
  width:min(1500px,calc(100% - 48px));
}
body.arena-app-view .single-card{
  width:100%;
}
body.arena-app-view .entry-content :where(button,.button,[role="button"],input[type="submit"],input[type="button"]){
  cursor:pointer;
}
body.arena-app-view .entry-content :where(button,.button,[role="button"],a):focus-visible{
  outline:3px solid color-mix(in srgb,var(--arena-accent,#7c5cff) 45%,transparent);
  outline-offset:2px;
}
@media(max-width:782px){body.admin-bar.arena-app-view .site-header{top:46px;}}
@media(max-width:600px){
  body.arena-app-view .arena-container.page-shell{width:min(100% - 20px,1500px)}
  body.arena-app-view .page-shell{padding-top:64px !important}
}


/* 0.1.5: scoped Arena application polish.
 * IMPORTANT: never style arbitrary classes containing "manager" or "action".
 * Previous broad substring selectors could match layout wrappers such as
 * arena-manager-* and recolour entire sections. This layer only targets actual
 * interactive elements or explicit helper classes added by our tiny UI bridge.
 */
body.arena-app-view.arena-plugin-active .entry-content{
  --arena-action:#155eef;
  --arena-action-hover:#0b4cd4;
  --arena-pending-bg:#ffd666;
  --arena-pending-text:#3b2b00;
  --arena-closed-bg:#e7ebf0;
  --arena-closed-text:#263247;
  --arena-tab-active:#6f4cff;
  --arena-tab-border:#aeb9cc;
}

/* Keep the Arena application canvas white and calm, while site chrome stays dark. */
body.arena-app-view.arena-plugin-active .entry-content > :where(div,section,article){
  background-color:#fff;
}

/* Real controls only. No class-substring layout selectors. */
body.arena-app-view.arena-plugin-active .entry-content :is(
  a.button,
  button,
  [role="button"],
  input[type="submit"],
  input[type="button"],
  .arena-ui-action-primary,
  .arena-ui-action-secondary
){
  opacity:1 !important;
  text-shadow:none !important;
  font-weight:700 !important;
  border-radius:9px !important;
  min-height:42px;
  padding:9px 15px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  line-height:1.2;
  box-shadow:none !important;
  transition:background-color .16s ease,border-color .16s ease,color .16s ease,transform .16s ease;
}
body.arena-app-view.arena-plugin-active .entry-content :is(
  a.button,
  button,
  [role="button"],
  input[type="submit"],
  input[type="button"],
  .arena-ui-action-primary
):not([disabled]):not([aria-disabled="true"]){
  color:#fff !important;
  background:var(--arena-action) !important;
  border:1px solid var(--arena-action) !important;
}
body.arena-app-view.arena-plugin-active .entry-content :is(
  a.button,
  button,
  [role="button"],
  input[type="submit"],
  input[type="button"],
  .arena-ui-action-primary
):not([disabled]):not([aria-disabled="true"]):hover{
  color:#fff !important;
  background:var(--arena-action-hover) !important;
  border-color:var(--arena-action-hover) !important;
  transform:translateY(-1px);
}
body.arena-app-view.arena-plugin-active .entry-content .arena-ui-action-secondary{
  color:#155eef !important;
  background:#fff !important;
  border:1px solid #b8c4d8 !important;
}
body.arena-app-view.arena-plugin-active .entry-content .arena-ui-action-secondary:hover{
  color:#0b4cd4 !important;
  background:#f7f9fc !important;
  border-color:#8da1bf !important;
}
body.arena-app-view.arena-plugin-active .entry-content :is(
  a.button,
  button,
  [role="button"],
  input[type="submit"],
  input[type="button"]
):is([disabled],[aria-disabled="true"],.disabled,.is-disabled){
  color:#7d8798 !important;
  background:#f4f6f8 !important;
  border:1px solid #d9dee7 !important;
  opacity:1 !important;
  cursor:not-allowed !important;
  transform:none !important;
}

/* Tabs: outlined by default, purple only for the selected one. */
body.arena-app-view.arena-plugin-active .entry-content .arena-ui-tab{
  color:#526078 !important;
  background:#fff !important;
  border:1px solid var(--arena-tab-border) !important;
  border-radius:7px !important;
  padding:10px 15px !important;
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:500 !important;
}
body.arena-app-view.arena-plugin-active .entry-content .arena-ui-tab:hover{
  color:#172033 !important;
  background:#f7f8fb !important;
  border-color:#8695ad !important;
}
body.arena-app-view.arena-plugin-active .entry-content .arena-ui-tab.arena-ui-tab-active{
  color:#fff !important;
  background:var(--arena-tab-active) !important;
  border-color:var(--arena-tab-active) !important;
  font-weight:800 !important;
  box-shadow:0 0 0 3px rgba(111,76,255,.13) !important;
}

/* Status pills are opt-in classes assigned only to exact status labels. */
body.arena-app-view.arena-plugin-active .entry-content .arena-ui-status{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:5px 12px;
  border-radius:999px;
  border:1px solid transparent;
  font-size:.82rem;
  font-weight:800 !important;
  line-height:1;
  opacity:1 !important;
  white-space:nowrap;
}
body.arena-app-view.arena-plugin-active .entry-content .arena-ui-status-pending{
  color:var(--arena-pending-text) !important;
  background:var(--arena-pending-bg) !important;
  border-color:#efbe37 !important;
}
body.arena-app-view.arena-plugin-active .entry-content .arena-ui-status-closed{
  color:var(--arena-closed-text) !important;
  background:var(--arena-closed-bg) !important;
  border-color:#d7dde6 !important;
}

/* Existing match cards remain white, with a light frame and breathing room. */
body.arena-app-view.arena-plugin-active .entry-content :is(
  [class*="match-row"],
  [class*="match-card"],
  [class*="partido-row"],
  [class*="partido-card"]
){
  background:#fff !important;
  border:1px solid #d9dee7 !important;
  border-radius:10px !important;
  color:var(--arena-app-text) !important;
}

/* Page title belongs to the dark site area and must never hide under the sticky header. */
body.arena-app-view .page-shell{
  padding-top:clamp(92px,8vw,126px) !important;
}
body.arena-app-view .single-card > header{
  margin:0 0 34px;
}
body.arena-app-view .single-card > header h1{
  margin:0;
}

@media(max-width:760px){
  body.arena-app-view.arena-plugin-active .entry-content :is(
    a.button,button,[role="button"],input[type="submit"],input[type="button"],
    .arena-ui-action-primary,.arena-ui-action-secondary
  ){
    min-height:42px;
  }
}

/* 0.1.12: semantic polish matching the approved Arena management direction. */
body.arena-app-view.arena-plugin-active .entry-content{
  background:#fff !important;
  border-radius:14px;
}
body.arena-app-view.arena-plugin-active .entry-content .arena-ui-match-row{
  background:#fff !important;
  border:1px solid #d9e0ea !important;
  border-radius:10px !important;
  padding:14px 16px !important;
  margin:10px 0 !important;
  box-shadow:0 1px 0 rgba(16,24,40,.02) !important;
}
body.arena-app-view.arena-plugin-active .entry-content .arena-ui-match-row:hover{
  border-color:#c4cfdd !important;
  background:#fbfcfe !important;
}
/* Tabs remain quiet except the active one. */
body.arena-app-view.arena-plugin-active .entry-content .arena-ui-tab{
  background:#fff !important;color:#526078 !important;border:1px solid #aeb9cc !important;
}
body.arena-app-view.arena-plugin-active .entry-content .arena-ui-tab.arena-ui-tab-active{
  background:#6f4cff !important;color:#fff !important;border-color:#6f4cff !important;
}
/* Primary match action: blue, secondary/detail: outlined. */
body.arena-app-view.arena-plugin-active .entry-content .arena-ui-action-primary:not([disabled]):not([aria-disabled="true"]){
  background:#155eef !important;color:#fff !important;border-color:#155eef !important;
}
body.arena-app-view.arena-plugin-active .entry-content .arena-ui-action-secondary{
  background:#fff !important;color:#155eef !important;border:1px solid #aebbd0 !important;
}
/* Exact status chips. */
body.arena-app-view.arena-plugin-active .entry-content .arena-ui-status-pending{background:#ffd666 !important;color:#3b2b00 !important;border-color:#efbe37 !important;}
body.arena-app-view.arena-plugin-active .entry-content .arena-ui-status-closed{background:#e7ebf0 !important;color:#263247 !important;border-color:#d7dde6 !important;}
/* Do not paint generic app containers. This explicitly neutralises the bad 0.1.4 behaviour. */
body.arena-app-view.arena-plugin-active .entry-content :where([class*="manager"],[class*="dashboard"],[class*="team"]){
  background-color:transparent;
}
body.arena-app-view.arena-plugin-active .entry-content > :where(div,section,article){background:#fff !important;}
@media(max-width:760px){
  body.arena-app-view.arena-plugin-active .entry-content .arena-ui-match-row{padding:12px !important;}
  body.arena-app-view.arena-plugin-active .entry-content .arena-ui-action-primary,
  body.arena-app-view.arena-plugin-active .entry-content .arena-ui-action-secondary{width:100%;margin-top:8px;}
}

/* 0.2.22: Mi Arena / Finanzas contrast and filter compatibility */
body.arena-app-view.arena-plugin-active .entry-content .arena-finance-summary > div{
  background:#f7f9fc !important;border-color:#d7dde8 !important;color:#111827 !important;
}
body.arena-app-view.arena-plugin-active .entry-content .arena-finance-summary strong,
body.arena-app-view.arena-plugin-active .entry-content .arena-finance-summary span{
  color:#111827 !important;opacity:1 !important;
}
body.arena-app-view.arena-plugin-active .entry-content .arena-finance-ledger,
body.arena-app-view.arena-plugin-active .entry-content .arena-finance-ledger h4,
body.arena-app-view.arena-plugin-active .entry-content .arena-finance-table td{
  color:#172033 !important;
}
body.arena-app-view.arena-plugin-active .entry-content .arena-finance-table{
  background:#fff !important;color:#172033 !important;border-collapse:collapse;width:100%;
}
body.arena-app-view.arena-plugin-active .entry-content .arena-finance-table thead th{
  background:#111827 !important;color:#fff !important;border-color:#2a3448 !important;
}
body.arena-app-view.arena-plugin-active .entry-content .arena-finance-table tbody tr,
body.arena-app-view.arena-plugin-active .entry-content .arena-finance-table tbody td{
  background:#fff !important;color:#172033 !important;border-color:#d7dde8 !important;
}
body.arena-app-view.arena-plugin-active .entry-content .arena-finance-table tbody tr:nth-child(even) td{background:#f8fafc !important;}
body.arena-app-view.arena-plugin-active .entry-content .arena-finance-table td strong{color:#111827 !important;}
body.arena-app-view.arena-plugin-active .entry-content .arena-finance-filters{margin:14px 0 18px;padding:14px;border:1px solid #d7dde8;border-radius:8px;background:#f8fafc;color:#172033;}
body.arena-app-view.arena-plugin-active .entry-content .arena-finance-filters>div{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:10px;align-items:end;}
body.arena-app-view.arena-plugin-active .entry-content .arena-finance-filters label{display:grid;gap:5px;color:#172033;font-weight:600;}
body.arena-app-view.arena-plugin-active .entry-content .arena-finance-filters :is(select,input){width:100%;min-height:40px;background:#fff;color:#172033;border:1px solid #aeb9cc;border-radius:6px;padding:6px 9px;}
body.arena-app-view.arena-plugin-active .entry-content .arena-finance-notice-error{margin:10px 0;padding:10px 12px;border-left:4px solid #b42318;background:#fff1f0;color:#7a271a;font-weight:700;}
@media(max-width:900px){body.arena-app-view.arena-plugin-active .entry-content .arena-finance-filters>div{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:560px){body.arena-app-view.arena-plugin-active .entry-content .arena-finance-filters>div{grid-template-columns:1fr;}}

/* 0.2.23: Mi Arena Finanzas definitive frontend compatibility.
 * Scope to the real Arena classes emitted by plugin 1.8.11 and override
 * generic dark-theme table/card rules without affecting other sections. */
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-section[data-arena-section="finanzas"] .arena-finance-filters{
  display:block !important;margin:16px 0 20px !important;padding:16px !important;
  background:#f8fafc !important;border:1px solid #d7dde8 !important;border-radius:10px !important;
  color:#172033 !important;
}
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-section[data-arena-section="finanzas"] .arena-finance-filters > div{
  display:grid !important;grid-template-columns:repeat(5,minmax(0,1fr)) !important;gap:14px !important;align-items:end !important;
}
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-section[data-arena-section="finanzas"] .arena-finance-filters label{
  display:flex !important;flex-direction:column !important;gap:6px !important;margin:0 !important;
  color:#172033 !important;font-weight:700 !important;line-height:1.25 !important;
}
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-section[data-arena-section="finanzas"] .arena-finance-filters :is(select,input[type="date"]){
  display:block !important;width:100% !important;max-width:none !important;min-width:0 !important;min-height:42px !important;
  margin:0 !important;padding:7px 10px !important;background:#fff !important;color:#172033 !important;
  border:1px solid #aeb9cc !important;border-radius:6px !important;color-scheme:light !important;
}
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-section[data-arena-section="finanzas"] .arena-finance-filters p{
  display:flex !important;gap:8px !important;margin:14px 0 0 !important;align-items:center !important;
}
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-section[data-arena-section="finanzas"] .arena-finance-summary{
  display:grid !important;grid-template-columns:repeat(4,minmax(0,1fr)) !important;gap:10px !important;margin:12px 0 20px !important;
}
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-section[data-arena-section="finanzas"] .arena-finance-summary > div{
  display:block !important;padding:14px !important;background:#f7f9fc !important;border:1px solid #d7dde8 !important;border-radius:7px !important;
  color:#111827 !important;
}
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-section[data-arena-section="finanzas"] .arena-finance-summary > div > strong{
  display:block !important;color:#111827 !important;font-size:24px !important;line-height:1.15 !important;opacity:1 !important;
}
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-section[data-arena-section="finanzas"] .arena-finance-summary > div > span{
  display:block !important;margin-top:5px !important;color:#526078 !important;font-size:13px !important;opacity:1 !important;
}
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-section[data-arena-section="finanzas"] .arena-finance-ledger,
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-section[data-arena-section="finanzas"] .arena-table-scroll{
  color:#172033 !important;background:#fff !important;
}
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-section[data-arena-section="finanzas"] table.arena-finance-table{
  width:100% !important;background:#fff !important;color:#172033 !important;border-collapse:collapse !important;
}
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-section[data-arena-section="finanzas"] table.arena-finance-table thead th{
  background:#111827 !important;color:#fff !important;border-color:#2a3448 !important;opacity:1 !important;
}
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-section[data-arena-section="finanzas"] table.arena-finance-table tbody td{
  background:#fff !important;color:#172033 !important;border-color:#d7dde8 !important;opacity:1 !important;
}
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-section[data-arena-section="finanzas"] table.arena-finance-table tbody tr:nth-child(even) td{
  background:#f8fafc !important;
}
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-section[data-arena-section="finanzas"] table.arena-finance-table tbody td strong{
  color:#111827 !important;opacity:1 !important;
}
@media(max-width:1050px){
 body.arena-app-view.arena-plugin-active .entry-content .arena-manager-section[data-arena-section="finanzas"] .arena-finance-filters > div{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
}
@media(max-width:700px){
 body.arena-app-view.arena-plugin-active .entry-content .arena-manager-section[data-arena-section="finanzas"] .arena-finance-summary{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
}
@media(max-width:560px){
 body.arena-app-view.arena-plugin-active .entry-content .arena-manager-section[data-arena-section="finanzas"] .arena-finance-filters > div,
 body.arena-app-view.arena-plugin-active .entry-content .arena-manager-section[data-arena-section="finanzas"] .arena-finance-summary{grid-template-columns:1fr !important;}
}
/* 0.2.26 · Apuestas: integración visual con Mi Arena */
body.arena-app-view .arena-betting-ui{--bet-accent:var(--arena-ui-accent)}
body.arena-theme-dark.arena-plugin-active .arena-betting-round,
body.arena-theme-dark.arena-plugin-active .arena-betting-summary,
body.arena-theme-dark.arena-plugin-active .arena-betting-rules{background:var(--arena-ui-surface);border-color:var(--arena-ui-border)}
body.arena-theme-dark.arena-plugin-active .arena-betting-round-title,
body.arena-theme-dark.arena-plugin-active .arena-bet-ticket,
body.arena-theme-dark.arena-plugin-active .arena-bet-odd{background:var(--arena-ui-surface-alt);border-color:var(--arena-ui-border)}
body.arena-theme-dark.arena-plugin-active .arena-bet-odd.is-selected{background:var(--arena-ui-accent);color:#fff;border-color:var(--arena-ui-accent)}
body.arena-theme-dark.arena-plugin-active .arena-bet-odd:hover{border-color:var(--arena-ui-accent)}
body.arena-theme-dark.arena-plugin-active .arena-bet-confirm{background:var(--arena-ui-accent);color:#fff}


/* 0.2.34 · Contraste global de Mi Arena + cuotas en próximos partidos. */
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-area,
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-section{color:#172033!important;}
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-area :is(h1,h2,h3,h4,h5,h6,strong,label,th){color:#101828;opacity:1;}
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-area :is(p,li,td,small,span){opacity:1;}
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-area p,
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-area li{color:#526078;}
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-area a:not(.button):not([class*="arena-tab"]){color:#174ea6;}
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-area :is(input,select,textarea){background:#fff;color:#172033;border-color:#aeb9cc;}
/* Dark information/tables must keep light foreground despite the white Mi Arena canvas. */
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-area :is(.arena-betting-summary,.arena-betting-rules,.arena-betting-round-title,thead) :is(span,strong,small,th),
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-area table thead th{color:#fff!important;}
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-area .arena-betting-summary,
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-area .arena-betting-rules{color:#fff!important;}
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-area .arena-betting-summary :is(span,strong,small),
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-area .arena-betting-rules :is(span,strong,small){color:#fff!important;opacity:1!important;}
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-logout{display:none!important;}

.arena-match-card .arena-match-odds{grid-column:1/-1;display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:-3px;}
.arena-match-card .arena-match-odds span{display:inline-flex;align-items:center;gap:5px;padding:5px 9px;border:1px solid color-mix(in srgb,var(--arena-accent) 34%,var(--line));border-radius:8px;background:color-mix(in srgb,var(--arena-accent) 9%,var(--surface2));color:var(--text);font-size:.76rem;font-weight:800;line-height:1;}
.arena-match-card .arena-match-odds b{color:var(--arena-accent);font-weight:950;}
.arena-match-card .arena-match-odds + small{margin-top:0;}
@media(max-width:600px){.arena-match-card .arena-match-odds{gap:5px}.arena-match-card .arena-match-odds span{padding:5px 7px;font-size:.72rem}}
/* 0.2.35 · Las cuotas públicas son accesos a Mi Arena > Apuestas. */
.arena-match-card .arena-match-odds a{display:inline-flex;align-items:center;gap:5px;padding:5px 9px;border:1px solid color-mix(in srgb,var(--arena-accent) 34%,var(--line));border-radius:8px;background:color-mix(in srgb,var(--arena-accent) 9%,var(--surface2));color:var(--text);font-size:.76rem;font-weight:800;line-height:1;text-decoration:none;cursor:pointer;transition:transform .12s ease,border-color .12s ease,background .12s ease}
.arena-match-card .arena-match-odds a:hover,.arena-match-card .arena-match-odds a:focus-visible{transform:translateY(-1px);border-color:var(--arena-accent);background:color-mix(in srgb,var(--arena-accent) 18%,var(--surface2));outline:none}
.arena-match-card .arena-match-odds a b{color:var(--arena-accent);font-weight:950}
@media(max-width:600px){.arena-match-card .arena-match-odds a{padding:5px 7px;font-size:.72rem}}

/* 0.2.36 · Mi Arena: contraste reforzado, especialmente Apuestas. */
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-section[data-arena-section="apuestas"]{
  color:#172033 !important;
}
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-section[data-arena-section="apuestas"] :is(h1,h2,h3,h4,h5,h6,label){
  color:#101828 !important; opacity:1 !important;
}
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-section[data-arena-section="apuestas"] > p,
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-section[data-arena-section="apuestas"] .arena-betting-ui > p{
  color:#526078 !important; opacity:1 !important;
}
/* Dark betting panels: every descendant must remain readable. */
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-section[data-arena-section="apuestas"] :is(.arena-betting-summary,.arena-betting-rules,.arena-betting-round-title){
  background:#111827 !important; color:#fff !important; border-color:#2a3448 !important;
}
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-section[data-arena-section="apuestas"] :is(.arena-betting-summary,.arena-betting-rules,.arena-betting-round-title) *{
  color:#fff !important; opacity:1 !important;
}
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-section[data-arena-section="apuestas"] .arena-betting-summary :is(strong,b,.amount,.value,[class*="value"],[class*="amount"]){
  color:#f8fafc !important; opacity:1 !important;
}
/* Betting table: dark head, high-contrast light body and empty states. */
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-section[data-arena-section="apuestas"] table{
  background:#fff !important; color:#172033 !important;
}
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-section[data-arena-section="apuestas"] table thead,
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-section[data-arena-section="apuestas"] table thead tr,
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-section[data-arena-section="apuestas"] table thead th{
  background:#111827 !important; color:#fff !important; opacity:1 !important; border-color:#2a3448 !important;
}
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-section[data-arena-section="apuestas"] table tbody,
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-section[data-arena-section="apuestas"] table tbody tr,
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-section[data-arena-section="apuestas"] table tbody td{
  background:#fff !important; color:#172033 !important; opacity:1 !important; border-color:#d7dde8 !important;
}
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-section[data-arena-section="apuestas"] table tbody :is(span,strong,small,a){
  color:#172033 !important; opacity:1 !important;
}
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-section[data-arena-section="apuestas"] :is(.empty-state,.arena-empty,.arena-betting-empty){
  background:#f8fafc !important; color:#344054 !important; border-color:#cbd5e1 !important; opacity:1 !important;
}
/* Collapsible permissions and other secondary text on the white canvas. */
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-section[data-arena-section="apuestas"] :is(details,summary),
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-section[data-arena-section="apuestas"] :is(details,summary) *{
  color:#344054 !important; opacity:1 !important;
}

/* 0.2.37 · Contraste definitivo de controles secundarios de Mi Arena. */
/* El bloque de permisos vive fuera de la sección activa en algunas vistas. */
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-area details,
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-area details > summary,
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-area details > summary *{
  color:#344054 !important;
  opacity:1 !important;
}
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-area details > summary{
  background:transparent !important;
}
/* Ticket de confirmación de apuesta: etiquetas y valores sobre panel oscuro. */
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-area .arena-bet-ticket,
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-area .arena-bet-ticket :is(label,span,small,strong,b,p){
  color:#fff !important;
  opacity:1 !important;
}
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-area .arena-bet-ticket :is(input,select,textarea){
  background:#fff !important;
  color:#172033 !important;
  border-color:#aeb9cc !important;
  opacity:1 !important;
}

/* 0.2.39 · Contraste compatible con Arena 1.11.11.3. */
/* Clases reales emitidas por Arena: no dependen del contenedor/sección activa. */
body.arena-app-view.arena-plugin-active .arena-manager-permissions,
body.arena-app-view.arena-plugin-active .arena-manager-permissions > summary,
body.arena-app-view.arena-plugin-active .arena-manager-permissions > summary::marker,
body.arena-app-view.arena-plugin-active .arena-manager-permissions > ul,
body.arena-app-view.arena-plugin-active .arena-manager-permissions > ul * {
  color:#344054 !important;
  opacity:1 !important;
}
body.arena-app-view.arena-plugin-active .arena-manager-permissions > summary {
  background:transparent !important;
  -webkit-text-fill-color:#344054 !important;
}
body.arena-app-view.arena-plugin-active .arena-bet-ticket {
  color:#fff !important;
}
body.arena-app-view.arena-plugin-active .arena-bet-ticket > div,
body.arena-app-view.arena-plugin-active .arena-bet-ticket > div > span,
body.arena-app-view.arena-plugin-active .arena-bet-ticket > div > strong,
body.arena-app-view.arena-plugin-active .arena-bet-ticket [data-bet-payout],
body.arena-app-view.arena-plugin-active .arena-bet-ticket [data-bet-choice] {
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  opacity:1 !important;
}
/* Equipos y textos auxiliares en las filas oscuras de apuestas. */
body.arena-app-view.arena-plugin-active .arena-betting-round .arena-bet-match,
body.arena-app-view.arena-plugin-active .arena-betting-round .arena-bet-match :is(strong,b) {
  color:#f8fafc !important;
  opacity:1 !important;
}

/* 0.2.40 · Estados de apuestas: contraste final dentro de tablas de Mi Arena. */
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-section[data-arena-section="apuestas"] table tbody .arena-ui-status {
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  opacity:1 !important;
}
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-section[data-arena-section="apuestas"] table tbody .arena-ui-status-pending {
  background:#ffd666 !important;
  color:#3b2b00 !important;
  -webkit-text-fill-color:#3b2b00 !important;
  border-color:#efbe37 !important;
}
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-section[data-arena-section="apuestas"] table tbody .arena-ui-status-closed {
  background:#e7ebf0 !important;
  color:#263247 !important;
  -webkit-text-fill-color:#263247 !important;
  border-color:#cbd5e1 !important;
}
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-section[data-arena-section="apuestas"] table tbody :is(.arena-ui-status-cancelled,.arena-ui-status-canceled,.arena-ui-status-void,.arena-ui-status-lost,.arena-ui-status-won) {
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  opacity:1 !important;
}

/* 0.2.41 · Corrección puntual: estado "Anulada por ti" en Mi Arena > Apuestas. */
body.arena-app-view.arena-plugin-active .arena-bets-table .arena-bet-status.is-cancelled_by_user {
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}

/* 0.2.42 · Override exacto del color heredado en "Anulada por ti". */
body.arena-app-view.arena-plugin-active .entry-content .arena-manager-section[data-arena-section="apuestas"] table tbody span.arena-bet-status.is-cancelled_by_user {
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  opacity:1 !important;
}

/* 0.2.52 · Apuestas: paneles azul noche, relieve sutil y contraste accesible. */
body.arena-app-view.arena-plugin-active .arena-betting-ui {
  --arena-bet-night:#081a36;
  --arena-bet-mid:#103461;
  --arena-bet-line:#24568e;
}
body.arena-app-view.arena-plugin-active .arena-betting-summary,
body.arena-app-view.arena-plugin-active .arena-betting-rules,
body.arena-app-view.arena-plugin-active .arena-betting-round {
  background:linear-gradient(125deg,#102e55 0%,#0a1b37 55%,#071429 100%) !important;
  border:1px solid #28568a !important;
  border-radius:13px !important;
  box-shadow:0 5px 15px rgba(6,27,60,.13);
  color:#f8fbff !important;
}
body.arena-app-view.arena-plugin-active .arena-betting-round {
  overflow:hidden;
}
body.arena-app-view.arena-plugin-active .arena-betting-round-title {
  background:linear-gradient(110deg,#173f70,#0b2549 65%,#091a35) !important;
  border-color:#32659a !important;
  color:#fff !important;
}
body.arena-app-view.arena-plugin-active .arena-betting-round :is(.arena-bet-match,.arena-bet-match strong,.arena-bet-match b),
body.arena-app-view.arena-plugin-active .arena-betting-round :is(.arena-bet-match span,.arena-bet-match small) {
  color:#f8fbff !important;
  -webkit-text-fill-color:#f8fbff !important;
  opacity:1 !important;
}
body.arena-app-view.arena-plugin-active .arena-betting-round .arena-bet-odd {
  background:linear-gradient(180deg,#1678f4,#0755cf) !important;
  color:#fff !important;
  border:1px solid #2784ff !important;
  border-radius:10px !important;
  box-shadow:0 2px 5px rgba(0,0,0,.14);
  transition:filter .15s ease,transform .15s ease,box-shadow .15s ease;
}
body.arena-app-view.arena-plugin-active .arena-betting-round .arena-bet-odd :is(span,strong,b,small) {
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}
body.arena-app-view.arena-plugin-active .arena-betting-round .arena-bet-odd:hover {
  filter:brightness(1.13);
  transform:translateY(-1px);
}
body.arena-app-view.arena-plugin-active .arena-betting-round .arena-bet-odd:focus-visible {
  outline:3px solid #8fc8ff !important;
  outline-offset:2px;
}
body.arena-app-view.arena-plugin-active .arena-betting-round .arena-bet-odd.is-selected {
  background:linear-gradient(180deg,#0451c5,#003a9c) !important;
  border-color:#a4d6ff !important;
  box-shadow:0 0 0 2px #66b8ff,0 3px 9px rgba(0,0,0,.24);
}
body.arena-app-view.arena-plugin-active .arena-betting-summary > * + * {
  border-color:rgba(156,195,240,.23) !important;
}
@media (prefers-reduced-motion:reduce) {
 body.arena-app-view.arena-plugin-active .arena-betting-round .arena-bet-odd {transition:none;}
 body.arena-app-view.arena-plugin-active .arena-betting-round .arena-bet-odd:hover {transform:none;}
}
