/* SHIN-TECH EDGE 0.4.10 final display rules — read-only / no model changes.
   All table content is white; only the final approved WIDE pair gets a cyan background. */
:root{--edge-paper-white:#f7fbff;--edge-wide-only-bg:#075a6b;--edge-wide-only-line:#4ceaf2}
/* White lettering for every race table, probability table, ranking, detail, and result. */
body :is(.edge-roster,.edge-side-table,.edge-side-ranking,.data-table,.matrix-table,
 .edge-auto-panel,.edge-results-panel,.ticket-overview,.pick-card) :is(th,td,p,small,span,b,strong,label,button,a),
body :is(.edge-roster,.edge-side-table,.edge-side-ranking,.data-table,.matrix-table) td :is(.positive,.gold,.pair-strong,.sub-text,.rank-col),
body .edge-roster :is(.positive,.gold),
body .data-table .pair-strong,
body .data-table .sub-text,
body .edge-side-disclaimer,
body .edge-side-subhead,
body .edge-side-intro,
body .edge-side-ranking :is(th,td),
body .edge-side-table :is(th,td),
body .edge-roster :is(th,td),
body .data-table :is(th,td),
body .matrix-table :is(th,td),
body .candidate-row :is(b,small,.good,.weak),
body .table-intro,body .subcaption,
body .edge-results-panel :is(h2,h3,p,small,span,strong),
body .edge-auto-panel :is(h2,h3,span,strong,p) {
  color:var(--edge-paper-white)!important;
}
/* Normal rows have no gold/green/brown highlight, including Core TOP1,
   intermediate scoring candidates, horse roles, and matrix probability bands. */
body .edge-side-table tbody tr td,
body .edge-side-ranking tbody tr td,
body .edge-roster tbody tr td,
body .data-table tbody tr td,
body .matrix-table tbody tr td {
  color:var(--edge-paper-white)!important;
  box-shadow:none!important;
}
body .edge-side-table tbody tr.is-highlight td,
body .edge-side-ranking tbody tr.is-highlight td,
body .edge-roster tbody tr.selected td,
body .data-table tbody tr.highlight td,
body .matrix-table td.mid,body .matrix-table td.strong {
  color:var(--edge-paper-white)!important;
  background:transparent!important;
  box-shadow:none!important;
}
/* Preserve regular alternating rows without introducing a recommendation color. */
body .edge-side-table tbody tr:nth-child(even):not(.edge-wide-approved) td,
body .edge-side-ranking tbody tr:nth-child(even):not(.edge-wide-approved) td,
body .edge-roster tbody tr:nth-child(even) td,
body .data-table tbody tr:nth-child(even):not(.edge-wide-approved) td {
  background:#0a2635!important;
}
body .edge-side-table tbody tr:nth-child(odd):not(.edge-wide-approved) td,
body .edge-side-ranking tbody tr:nth-child(odd):not(.edge-wide-approved) td,
body .edge-roster tbody tr:nth-child(odd) td,
body .data-table tbody tr:nth-child(odd):not(.edge-wide-approved) td {
  background:#071e2b!important;
}
/* Only WIDE + final approved EDGE Pair. Dark cyan keeps white labels legible. */
body :is(.edge-side-table,.edge-side-ranking,.data-table) tbody tr.edge-wide-approved td,
body :is(.edge-side-table,.edge-side-ranking,.data-table) tbody tr.edge-wide-approved:nth-child(even) td,
body :is(.edge-side-table,.edge-side-ranking,.data-table) tbody tr.edge-wide-approved:nth-child(odd) td {
  background:var(--edge-wide-only-bg)!important;
  color:#fff!important;
  border-top:1px solid var(--edge-wide-only-line)!important;
  border-bottom:1px solid var(--edge-wide-only-line)!important;
  font-weight:900;
  box-shadow:none!important;
}
body :is(.edge-side-table,.edge-side-ranking,.data-table) tbody tr.edge-wide-approved td:first-child{
  border-left:3px solid var(--edge-wide-only-line)!important;
}
body :is(.edge-side-table,.edge-side-ranking,.data-table) tbody tr.edge-wide-approved td:last-child{
  border-right:3px solid var(--edge-wide-only-line)!important;
}
/* Badge text also stays white without touching the horse-number boxes and race layout. */
body :is(.edge-roster,.edge-side-table,.data-table) .num-badge,
body .edge-next-pair,body .edge-roster-wrap,body .edge-side-table,
body .edge-side-ranking{color:var(--edge-paper-white)!important}
/* Primary labels and large numbers — keep original emerald/gold frames, but white text. */
body .ticket-card :is(.tile-pair,.tile-horse-name,.tile-footer strong,.ticket-label),
body .pick-card :is(.metric strong,.pair-view,.pair-names,.race-context),
body .edge-role-ribbon :is(.edge-role-name,.edge-role-number,.edge-role-cross),
body .edge-next-row :is(span,small),
body .edge-runner-panel .edge-block-heading :is(h2,button),
body .dashboard-grid .edge-side-panel :is(.edge-side-subhead,.edge-side-intro){color:var(--edge-paper-white)!important}
/* White on bright mint buttons needs a darker fill for contrast. */
body .edge-auto-panel button:not(:disabled),
body .edge-results-actions button.primary-action,
body .edge-results-actions .edge-result-import-label {background:#125b62!important;color:#fff!important;border-color:#4ee5e1!important}
