/* earnings_debrief type-specific styles — PR #249 cleanup
   Mobile table typography rules removed; now handled by CSS variables in atlas-report-base.css.
   Only type-specific chip/badge styles remain here. */

.report-detail .priority-high,
.report-detail .impact-high {
  color: #b91c1c !important;
  background: #fee2e2 !important;
  font-weight: 700 !important;
  padding: 2px 8px !important;
  border-radius: 4px !important;
  display: block !important;
  width: fit-content !important;
  margin: 0 auto !important;
  text-align: center !important;
}

.report-detail .priority-medium,
.report-detail .impact-medium {
  color: #b45309 !important;
  background: #fef3c7 !important;
  font-weight: 700 !important;
  padding: 2px 8px !important;
  border-radius: 4px !important;
  display: block !important;
  width: fit-content !important;
  margin: 0 auto !important;
  text-align: center !important;
}

.report-detail .priority-low,
.report-detail .impact-low {
  color: #1d4ed8 !important;
  background: #dbeafe !important;
  font-weight: 700 !important;
  padding: 2px 8px !important;
  border-radius: 4px !important;
  display: block !important;
  width: fit-content !important;
  margin: 0 auto !important;
  text-align: center !important;
}

.report-detail .summary-box strong {
  color: #0f172a;
}

/* ── Desktop fallback column proportions (only when data-table-kind missing) ──
   Kind-based widths live in apr-report-tables.css and are the primary source.
   These fallbacks are constrained to missing/empty data-table-kind wrappers and
   use data-apr-table-index instead of brittle nth-of-type selectors.
─────────────────────────────────────────────────────────────────────────────── */
@media (min-width: 641px) {
  /* Table 1: Key Takeaways — Item | Impact | Why It Mattered */
  .report-detail .apr-table:not([data-table-kind]) .apr-report-table[data-apr-table-index="1"],
  .report-detail .apr-table[data-table-kind=""] .apr-report-table[data-apr-table-index="1"] {
    table-layout: fixed;
  }
  .report-detail .apr-table:not([data-table-kind]) .apr-report-table[data-apr-table-index="1"] th:nth-child(1),
  .report-detail .apr-table:not([data-table-kind]) .apr-report-table[data-apr-table-index="1"] td:nth-child(1),
  .report-detail .apr-table[data-table-kind=""] .apr-report-table[data-apr-table-index="1"] th:nth-child(1),
  .report-detail .apr-table[data-table-kind=""] .apr-report-table[data-apr-table-index="1"] td:nth-child(1) { width: 22%; }
  .report-detail .apr-table:not([data-table-kind]) .apr-report-table[data-apr-table-index="1"] th:nth-child(2),
  .report-detail .apr-table:not([data-table-kind]) .apr-report-table[data-apr-table-index="1"] td:nth-child(2),
  .report-detail .apr-table[data-table-kind=""] .apr-report-table[data-apr-table-index="1"] th:nth-child(2),
  .report-detail .apr-table[data-table-kind=""] .apr-report-table[data-apr-table-index="1"] td:nth-child(2) { width: 14%; }

  /* Table 2: Results Versus Expectations — Metric | Reported | Consensus | Guide | Read */
  .report-detail .apr-table:not([data-table-kind]) .apr-report-table[data-apr-table-index="2"],
  .report-detail .apr-table[data-table-kind=""] .apr-report-table[data-apr-table-index="2"] {
    table-layout: fixed;
  }
  .report-detail .apr-table:not([data-table-kind]) .apr-report-table[data-apr-table-index="2"] th:nth-child(1),
  .report-detail .apr-table:not([data-table-kind]) .apr-report-table[data-apr-table-index="2"] td:nth-child(1),
  .report-detail .apr-table[data-table-kind=""] .apr-report-table[data-apr-table-index="2"] th:nth-child(1),
  .report-detail .apr-table[data-table-kind=""] .apr-report-table[data-apr-table-index="2"] td:nth-child(1) { width: 18%; }
  .report-detail .apr-table:not([data-table-kind]) .apr-report-table[data-apr-table-index="2"] th:nth-child(2),
  .report-detail .apr-table:not([data-table-kind]) .apr-report-table[data-apr-table-index="2"] td:nth-child(2),
  .report-detail .apr-table[data-table-kind=""] .apr-report-table[data-apr-table-index="2"] th:nth-child(2),
  .report-detail .apr-table[data-table-kind=""] .apr-report-table[data-apr-table-index="2"] td:nth-child(2) { width: 12%; }
  .report-detail .apr-table:not([data-table-kind]) .apr-report-table[data-apr-table-index="2"] th:nth-child(3),
  .report-detail .apr-table:not([data-table-kind]) .apr-report-table[data-apr-table-index="2"] td:nth-child(3),
  .report-detail .apr-table[data-table-kind=""] .apr-report-table[data-apr-table-index="2"] th:nth-child(3),
  .report-detail .apr-table[data-table-kind=""] .apr-report-table[data-apr-table-index="2"] td:nth-child(3) { width: 18%; }
  .report-detail .apr-table:not([data-table-kind]) .apr-report-table[data-apr-table-index="2"] th:nth-child(4),
  .report-detail .apr-table:not([data-table-kind]) .apr-report-table[data-apr-table-index="2"] td:nth-child(4),
  .report-detail .apr-table[data-table-kind=""] .apr-report-table[data-apr-table-index="2"] th:nth-child(4),
  .report-detail .apr-table[data-table-kind=""] .apr-report-table[data-apr-table-index="2"] td:nth-child(4) { width: 18%; }

  /* Table 3: Sequential Comparison — Metric | Prior Qtr | Current Qtr | Seq Change | YoY */
  .report-detail .apr-table:not([data-table-kind]) .apr-report-table[data-apr-table-index="3"],
  .report-detail .apr-table[data-table-kind=""] .apr-report-table[data-apr-table-index="3"] {
    table-layout: fixed;
  }
  .report-detail .apr-table:not([data-table-kind]) .apr-report-table[data-apr-table-index="3"] th:nth-child(1),
  .report-detail .apr-table:not([data-table-kind]) .apr-report-table[data-apr-table-index="3"] td:nth-child(1),
  .report-detail .apr-table[data-table-kind=""] .apr-report-table[data-apr-table-index="3"] th:nth-child(1),
  .report-detail .apr-table[data-table-kind=""] .apr-report-table[data-apr-table-index="3"] td:nth-child(1) { width: 22%; }
  .report-detail .apr-table:not([data-table-kind]) .apr-report-table[data-apr-table-index="3"] th:nth-child(2),
  .report-detail .apr-table:not([data-table-kind]) .apr-report-table[data-apr-table-index="3"] td:nth-child(2),
  .report-detail .apr-table[data-table-kind=""] .apr-report-table[data-apr-table-index="3"] th:nth-child(2),
  .report-detail .apr-table[data-table-kind=""] .apr-report-table[data-apr-table-index="3"] td:nth-child(2) { width: 18%; }
  .report-detail .apr-table:not([data-table-kind]) .apr-report-table[data-apr-table-index="3"] th:nth-child(3),
  .report-detail .apr-table:not([data-table-kind]) .apr-report-table[data-apr-table-index="3"] td:nth-child(3),
  .report-detail .apr-table[data-table-kind=""] .apr-report-table[data-apr-table-index="3"] th:nth-child(3),
  .report-detail .apr-table[data-table-kind=""] .apr-report-table[data-apr-table-index="3"] td:nth-child(3) { width: 18%; }
  .report-detail .apr-table:not([data-table-kind]) .apr-report-table[data-apr-table-index="3"] th:nth-child(4),
  .report-detail .apr-table:not([data-table-kind]) .apr-report-table[data-apr-table-index="3"] td:nth-child(4),
  .report-detail .apr-table[data-table-kind=""] .apr-report-table[data-apr-table-index="3"] th:nth-child(4),
  .report-detail .apr-table[data-table-kind=""] .apr-report-table[data-apr-table-index="3"] td:nth-child(4) { width: 11%; }

  /* Table 6: Management Commentary Tracker — Topic | Prior Quote | Current Quote | Signal */
  .report-detail .apr-table:not([data-table-kind]) .apr-report-table[data-apr-table-index="6"],
  .report-detail .apr-table[data-table-kind=""] .apr-report-table[data-apr-table-index="6"] {
    table-layout: fixed;
  }
  .report-detail .apr-table:not([data-table-kind]) .apr-report-table[data-apr-table-index="6"] th:nth-child(1),
  .report-detail .apr-table:not([data-table-kind]) .apr-report-table[data-apr-table-index="6"] td:nth-child(1),
  .report-detail .apr-table[data-table-kind=""] .apr-report-table[data-apr-table-index="6"] th:nth-child(1),
  .report-detail .apr-table[data-table-kind=""] .apr-report-table[data-apr-table-index="6"] td:nth-child(1) { width: 18%; }
  .report-detail .apr-table:not([data-table-kind]) .apr-report-table[data-apr-table-index="6"] th:nth-child(2),
  .report-detail .apr-table:not([data-table-kind]) .apr-report-table[data-apr-table-index="6"] td:nth-child(2),
  .report-detail .apr-table[data-table-kind=""] .apr-report-table[data-apr-table-index="6"] th:nth-child(2),
  .report-detail .apr-table[data-table-kind=""] .apr-report-table[data-apr-table-index="6"] td:nth-child(2) { width: 34%; }
  .report-detail .apr-table:not([data-table-kind]) .apr-report-table[data-apr-table-index="6"] th:nth-child(3),
  .report-detail .apr-table:not([data-table-kind]) .apr-report-table[data-apr-table-index="6"] td:nth-child(3),
  .report-detail .apr-table[data-table-kind=""] .apr-report-table[data-apr-table-index="6"] th:nth-child(3),
  .report-detail .apr-table[data-table-kind=""] .apr-report-table[data-apr-table-index="6"] td:nth-child(3) { width: 34%; }
}
