/* PRO_DETAILED_ANALYSIS_V2_PHASE3
   Professional Systems Builder only.
   Dual grouped headers for current-result and combined-unique negative evidence.
   Negative settlement: GROSS_LAY_1_VALID_BSP_ONLY. */

body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .dual-cohort-breakdown-card {
  border-color: rgba(75, 117, 198, .18) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(245, 96, 117, .045), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(249,251,255,.95)) !important;
}

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

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

/* Phase 1 intentionally erred on the side of maximum density. The completed
   dual-cohort geometry has enough width at the accepted desktop viewports, so
   the main analytical values are restored one readable step. */
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .dual-cohort-detail-table th,
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 .dual-cohort-detail-table th.detail-metric-th,
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .dual-cohort-detail-table td.detail-metric-td {
  height: 27px !important;
  padding: 3px 3px !important;
  font-size: 9px !important;
  line-height: 1.08 !important;
  text-align: center !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .dual-cohort-detail-table thead th {
  color: #233a5f !important;
  font-size: 8px !important;
  font-weight: 900 !important;
  letter-spacing: .025em !important;
}

body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .dual-cohort-detail-table .detail-cohort-group-row th {
  height: 25px !important;
  padding: 4px 5px !important;
  border-bottom: 1px solid rgba(72, 103, 172, .16) !important;
  font-size: 8.4px !important;
  font-weight: 950 !important;
  letter-spacing: .12em !important;
  line-height: 1 !important;
  text-align: center !important;
  text-transform: uppercase !important;
}

body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .dual-cohort-detail-table .detail-cohort-identity-heading {
  width: 12.5% !important;
  min-width: 0 !important;
  border-right: 1px solid rgba(78, 111, 173, .18) !important;
  border-radius: 8px 0 0 0 !important;
  background: linear-gradient(180deg, rgba(238,244,252,.98), rgba(231,239,249,.92)) !important;
  color: #24416d !important;
}

body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .dual-cohort-detail-table .detail-cohort-group-heading.is-positive {
  background:
    linear-gradient(180deg, rgba(230, 251, 246, .98), rgba(218, 246, 239, .92)) !important;
  color: #087667 !important;
}

body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .dual-cohort-detail-table .detail-cohort-group-heading.is-negative {
  border-left: 2px solid rgba(213, 72, 98, .27) !important;
  border-radius: 0 8px 0 0 !important;
  background:
    linear-gradient(180deg, rgba(255, 240, 243, .98), rgba(253, 230, 236, .93)) !important;
  color: #a93650 !important;
}

body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .dual-cohort-detail-table .detail-cohort-metric-row th {
  height: 27px !important;
  background: rgba(246, 249, 253, .96) !important;
}

body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .dual-cohort-detail-table .detail-cohort-metric-row th.detail-cohort-positive {
  background: rgba(239, 251, 248, .88) !important;
}

body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .dual-cohort-detail-table .detail-cohort-metric-row th.detail-cohort-negative {
  background: rgba(255, 244, 246, .88) !important;
  color: #87364a !important;
}

body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .dual-cohort-detail-table .detail-column-negative_runners,
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .dual-cohort-detail-table td:nth-last-child(6) {
  border-left: 2px solid rgba(213, 72, 98, .22) !important;
}

body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .dual-cohort-detail-table tbody td:nth-last-child(-n+6),
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .dual-cohort-detail-table tfoot td:nth-last-child(-n+6) {
  background-color: rgba(255, 248, 249, .62) !important;
}

body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .dual-cohort-detail-table tbody tr:hover td:nth-last-child(-n+6) {
  background-color: rgba(255, 240, 244, .88) !important;
}

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

body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .dual-cohort-detail-table .metric-help,
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .dual-cohort-detail-table .summary-inline-info-trigger {
  width: 13px !important;
  height: 13px !important;
  font-size: 7px !important;
}

body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .dual-cohort-detail-table .detail-column-help-label {
  justify-content: center !important;
  gap: 2px !important;
}

body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .dual-cohort-detail-table tfoot td {
  height: 29px !important;
  font-size: 9px !important;
  font-weight: 900 !important;
}

@media (max-width: 1800px) {
  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .dual-cohort-detail-table th,
  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 .dual-cohort-detail-table th.detail-metric-th,
  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .dual-cohort-detail-table td.detail-metric-td {
    padding-inline: 2px !important;
    font-size: 8.5px !important;
  }
  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .dual-cohort-detail-table thead th {
    font-size: 7.5px !important;
  }
}

@media (max-width: 1450px) {
  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .dual-cohort-detail-table th,
  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 .dual-cohort-detail-table th.detail-metric-th,
  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .dual-cohort-detail-table td.detail-metric-td {
    padding-inline: 1px !important;
    font-size: 7.8px !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 .dual-cohort-detail-table .detail-cohort-group-row th {
    font-size: 7px !important;
  }
  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .dual-cohort-detail-table th:first-child,
  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .dual-cohort-detail-table td:first-child,
  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .dual-cohort-detail-table .detail-cohort-identity-heading {
    width: 11% !important;
  }
}
