/**
 * Six Quadrant / EOS — alternating row colors for tables & list rows.
 * Subtle paper stripe; hover / selected / discussing states keep priority.
 */
:root {
  --eos-zebra: #f6f6f6;
  --eos-zebra-hover: #f0f0f0;
}

/* ── HTML tables ─────────────────────────────────────────────────────────── */
.my90-table tbody tr:nth-child(even),
.pr-table tbody tr:nth-child(even),
.td-table tbody tr:nth-child(even),
.hl-table tbody tr:nth-child(even),
.mtg-table tbody tr:nth-child(even),
.dir-table tbody tr:nth-child(even),
.sec-table tbody tr:nth-child(even),
.run-sc-tbl tbody tr:nth-child(even),
.run-conc-table tbody tr:nth-child(even),
.run-conc-rate-table tbody tr:nth-child(even),
.sc-table tbody tr:nth-child(even) {
  background: var(--eos-zebra);
}

.my90-table tbody tr:nth-child(even) td,
.pr-table tbody tr:nth-child(even) td,
.td-table tbody tr:nth-child(even) td,
.hl-table tbody tr:nth-child(even) td,
.mtg-table tbody tr:nth-child(even) td,
.dir-table tbody tr:nth-child(even) td,
.sec-table tbody tr:nth-child(even) td,
.run-sc-tbl tbody tr:nth-child(even) td,
.run-conc-table tbody tr:nth-child(even) td,
.run-conc-rate-table tbody tr:nth-child(even) td,
.sc-table tbody tr:nth-child(even) td:not(.sc-status) {
  background: var(--eos-zebra);
}

/* Scorecard sticky columns must match the stripe */
.sc-table tbody tr:nth-child(even) .sc-grip,
.sc-table tbody tr:nth-child(even) .sc-sticky-owner,
.sc-table tbody tr:nth-child(even) .sc-sticky-title,
.sc-table tbody tr:nth-child(even) .sc-sticky-goal,
.sc-table tbody tr:nth-child(even) .sc-sticky-avg,
.sc-table tbody tr:nth-child(even) .sc-sticky-tot {
  background: var(--eos-zebra);
}

/* Hover — slightly darker than zebra */
.my90-table tbody tr:hover,
.my90-table tbody tr:hover td,
.pr-table tbody tr:hover td,
.td-table tbody tr:hover td,
.hl-table tbody tr:hover td,
.mtg-table tbody tr:hover td,
.dir-table tbody tr:hover td,
.sec-table tbody tr:hover,
.run-sc-tbl tbody tr:hover td,
.run-conc-table tbody tr:hover,
.sc-table tbody tr:hover td:not(.sc-status) {
  background: var(--eos-zebra-hover);
}

.sc-table tbody tr:hover .sc-grip,
.sc-table tbody tr:hover .sc-sticky-owner,
.sc-table tbody tr:hover .sc-sticky-title,
.sc-table tbody tr:hover .sc-sticky-goal,
.sc-table tbody tr:hover .sc-sticky-avg,
.sc-table tbody tr:hover .sc-sticky-tot {
  background: var(--eos-zebra-hover);
}

/* Selected / state rows win over zebra */
.pr-table tbody tr.is-selected td,
.td-table tbody tr.is-selected td,
.sc-table tbody tr.sc-kpi-row.is-selected td:not(.sc-status),
.sc-table tbody tr.sc-kpi-row.is-selected .sc-grip,
.sc-table tbody tr.sc-kpi-row.is-selected .sc-sticky-owner,
.sc-table tbody tr.sc-kpi-row.is-selected .sc-sticky-title,
.sc-table tbody tr.sc-kpi-row.is-selected .sc-sticky-goal,
.sc-table tbody tr.sc-kpi-row.is-selected .sc-sticky-avg,
.sc-table tbody tr.sc-kpi-row.is-selected .sc-sticky-tot,
.run-conc-rate-table tbody tr.is-hilite {
  background: #f3f3f3;
}

.td-table tbody tr.is-overdue td {
  background: #f3f3f3;
}
.td-table tbody tr.is-overdue.is-selected td {
  background: rgba(233, 42, 44, 0.06);
}

/* ── Div-based list rows (IDS Issues, Rocks pane, milestones) ─────────────── */
/* Col header is first child → first data row is :nth-child(2) → stripe on 3,5,7… */
.eos-ids-col > .iss-row:nth-child(2n + 3),
.iss-group-rows > .iss-row:nth-child(2n + 3) {
  background: var(--eos-zebra);
}

.eos-ids-col > .iss-row:hover,
.iss-group-rows > .iss-row:hover {
  background: var(--eos-zebra-hover);
}

/* IDS top 3 — light brand red; wins over zebra striping */
.eos-ids-col > .iss-row.is-top3,
.iss-group-rows > .iss-row.is-top3,
.iss-row.is-top3 {
  background: #fbe4e4 !important;
}
.eos-ids-col > .iss-row.is-top3:hover,
.iss-group-rows > .iss-row.is-top3:hover,
.iss-row.is-top3:hover {
  background: #f7d4d4 !important;
}

.iss-row.is-discussing {
  background: rgba(233, 42, 44, 0.04) !important;
}

.rock-row:nth-child(even),
.pr-ms-row:nth-child(even),
.iss-ms-row:nth-child(even) {
  background: var(--eos-zebra);
}
