/* PRO_DETAILED_ANALYSIS_V2_PHASE4
   Professional Systems Builder only.
   Dedicated negative-evidence tables plus accepted 2K readability refinement.
   Component-scoped responsive rules preserve the existing compact laptop state. */

/* ==========================================================================
   2K / LARGE DESKTOP READABILITY
   ========================================================================== */

@media (min-width: 1801px) {
  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .report-navigator-panel {
    width: 264px !important;
    flex-basis: 264px !important;
  }

  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .report-nav-header span {
    font-size: 8px !important;
  }

  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .report-nav-header strong {
    font-size: 15px !important;
  }

  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .report-nav-tools button {
    height: 27px !important;
    font-size: 9px !important;
  }

  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .report-nav-group-head {
    min-height: 34px !important;
    grid-template-columns: 18px minmax(0, 1fr) auto !important;
    padding: 5px 6px !important;
  }

  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .report-nav-plus {
    font-size: 13px !important;
  }

  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .report-nav-group-title {
    font-size: 9.4px !important;
    line-height: 1.13 !important;
  }

  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .report-nav-group-count,
  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .report-nav-status {
    font-size: 7.3px !important;
  }

  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .report-nav-item {
    min-height: 30px !important;
    padding: 5px 6px !important;
  }

  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .report-nav-item-label {
    font-size: 9px !important;
    line-height: 1.14 !important;
  }

  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .detail-breakdown-title-row h3 {
    font-size: 12px !important;
  }

  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report :is(.detail-chart-view-button, .race-profiler-evidence-add-button, .detail-table-guide-toggle) {
    min-height: 28px !important;
    height: 28px !important;
    padding: 0 11px !important;
    font-size: 8.5px !important;
  }

  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .detail-breakdown-meta,
  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .detail-breakdown-badge {
    font-size: 7.8px !important;
  }

  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .dual-cohort-detail-table td,
  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .negative-only-detail-table td {
    height: 29px !important;
    padding: 4px 4px !important;
    font-size: 10px !important;
    line-height: 1.12 !important;
  }

  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .dual-cohort-detail-table thead th,
  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .negative-only-detail-table thead th {
    font-size: 8.8px !important;
  }

  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .dual-cohort-detail-table .detail-cohort-group-row th,
  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .negative-only-detail-table .detail-cohort-group-row th {
    font-size: 9.2px !important;
  }

  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .dual-cohort-detail-table tfoot td,
  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .negative-only-detail-table tfoot td {
    height: 31px !important;
    font-size: 10px !important;
  }
}

/* ==========================================================================
   DEDICATED NEGATIVE EVIDENCE
   ========================================================================== */

body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .negative-only-breakdown-card {
  border-color: rgba(211, 79, 104, .20) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(244, 63, 94, .07), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,.985), rgba(255,249,251,.96)) !important;
}

body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .negative-only-breakdown-card .detail-breakdown-table-wrap {
  overflow-x: hidden !important;
}

body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .negative-only-detail-table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .negative-only-detail-table th,
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .negative-only-detail-table td,
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .negative-only-detail-table th.detail-metric-th,
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .negative-only-detail-table td.detail-metric-td {
  height: 28px !important;
  padding: 4px 5px !important;
  font-size: 9.4px !important;
  line-height: 1.1 !important;
  text-align: center !important;
  white-space: normal !important;
}

body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .negative-only-detail-table thead th {
  color: #6f2940 !important;
  font-size: 8.4px !important;
  font-weight: 900 !important;
}

body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .negative-only-detail-table .detail-cohort-identity-heading {
  width: 23% !important;
  background: linear-gradient(180deg, rgba(242,246,252,.98), rgba(232,240,250,.94)) !important;
  color: #26446f !important;
}

body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .negative-only-detail-table .detail-cohort-group-heading.is-negative {
  border-left: 2px solid rgba(213, 72, 98, .28) !important;
  border-radius: 0 8px 0 0 !important;
  background: linear-gradient(180deg, rgba(255,237,242,.99), rgba(253,225,234,.95)) !important;
  color: #9d2948 !important;
}

body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .negative-only-detail-table .detail-cohort-metric-row th {
  background: rgba(255, 243, 247, .92) !important;
  color: #773247 !important;
}

body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .negative-only-detail-table tbody td:not(:first-child),
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .negative-only-detail-table tfoot td:not(:first-child) {
  background: rgba(255, 249, 251, .68) !important;
}

body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .negative-only-detail-table tbody tr:hover td {
  background: rgba(255, 239, 244, .91) !important;
}

body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .negative-only-detail-table th:first-child,
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .negative-only-detail-table td:first-child {
  width: 23% !important;
  max-width: none !important;
  font-weight: 850 !important;
  text-align: center !important;
}

body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .negative-only-detail-table .detail-column-negative_races {
  border-left: 2px solid rgba(213, 72, 98, .22) !important;
}

body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .negative-only-detail-table tfoot td {
  font-weight: 900 !important;
}

/* ==========================================================================
   RESPONSIVE RETENTION — KEEP THE ACCEPTED COMPACT BEHAVIOUR
   ========================================================================== */

@media (max-width: 1800px) {
  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .negative-only-detail-table th,
  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .negative-only-detail-table td,
  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .negative-only-detail-table th.detail-metric-th,
  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .negative-only-detail-table td.detail-metric-td {
    padding-inline: 3px !important;
    font-size: 8.7px !important;
  }

  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .negative-only-detail-table thead th {
    font-size: 7.8px !important;
  }
}

@media (max-width: 1450px) {
  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .negative-only-detail-table th,
  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .negative-only-detail-table td,
  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .negative-only-detail-table th.detail-metric-th,
  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .negative-only-detail-table td.detail-metric-td {
    padding-inline: 2px !important;
    font-size: 8px !important;
  }

  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .negative-only-detail-table thead th,
  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .negative-only-detail-table .detail-cohort-group-row th {
    font-size: 7.2px !important;
  }

  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .negative-only-detail-table th:first-child,
  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .negative-only-detail-table td:first-child,
  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .negative-only-detail-table .detail-cohort-identity-heading {
    width: 20% !important;
  }
}
