/* ClaimTrack Core 4.2.59 — Fase 1 alignment and compact card refinements. */

html body .ct-app.ct-view-claim-phase[data-ct-phase-code="KDP"] .ct-ref-phase--1:not(.ct-stop-loss-dashboard) .ct-ref-kpi-grid{
  width:auto!important;
  margin:0 16px!important;
  padding:15px 0 16px!important;
}

/* Position table: regular-weight body copy and centered BO column. */
html body .ct-app.ct-view-claim-phase[data-ct-phase-code="KDP"] .ct-ref-phase--1:not(.ct-stop-loss-dashboard) table.ct-ref-table--detail tbody td,
html body .ct-app.ct-view-claim-phase[data-ct-phase-code="KDP"] .ct-ref-phase--1:not(.ct-stop-loss-dashboard) table.ct-ref-table--detail tbody .ct-ref-group th{
  font-weight:400!important;
}
html body .ct-app.ct-view-claim-phase[data-ct-phase-code="KDP"] .ct-ref-phase--1:not(.ct-stop-loss-dashboard) table.ct-ref-table--detail thead th:nth-child(2),
html body .ct-app.ct-view-claim-phase[data-ct-phase-code="KDP"] .ct-ref-phase--1:not(.ct-stop-loss-dashboard) table.ct-ref-table--detail tbody tr:not(.ct-ref-group) td:nth-child(2),
html body .ct-app.ct-view-claim-phase[data-ct-phase-code="KDP"] .ct-ref-phase--1:not(.ct-stop-loss-dashboard) table.ct-ref-table--detail tfoot th:nth-child(2){
  text-align:center!important;
}

@media (min-width:981px){
  /* Keep every UKER legend entry within its card instead of allowing its last
   * rows to overlap the image slot below. */
  html body .ct-app.ct-view-claim-phase[data-ct-phase-code="KDP"] .ct-ref-phase--1:not(.ct-stop-loss-dashboard) .ct-phase1-uker-donut>.ct-ref-chart-card{
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
    padding:8px!important;
  }
  html body .ct-app.ct-view-claim-phase[data-ct-phase-code="KDP"] .ct-ref-phase--1:not(.ct-stop-loss-dashboard) .ct-phase1-uker-donut .ct-ref-donut{
    flex:0 0 auto!important;
    width:160px!important;
    height:160px!important;
    margin:0 auto 5px!important;
  }
  html body .ct-app.ct-view-claim-phase[data-ct-phase-code="KDP"] .ct-ref-phase--1:not(.ct-stop-loss-dashboard) .ct-phase1-uker-donut .ct-ref-legend{
    flex:1 1 auto!important;
    min-height:0!important;
    gap:1px!important;
    overflow:hidden!important;
  }
  html body .ct-app.ct-view-claim-phase[data-ct-phase-code="KDP"] .ct-ref-phase--1:not(.ct-stop-loss-dashboard) .ct-phase1-uker-donut .ct-ref-legend li{
    min-height:12px!important;
    gap:4px!important;
    padding:0 2px!important;
    line-height:1!important;
  }
  html body .ct-app.ct-view-claim-phase[data-ct-phase-code="KDP"] .ct-ref-phase--1:not(.ct-stop-loss-dashboard) .ct-phase1-uker-donut .ct-ref-legend li span,
  html body .ct-app.ct-view-claim-phase[data-ct-phase-code="KDP"] .ct-ref-phase--1:not(.ct-stop-loss-dashboard) .ct-phase1-uker-donut .ct-ref-legend li b{
    font-size:8px!important;
  }

  /* The lower donut headings need the same breathing room as the reference. */
  html body .ct-app.ct-view-claim-phase[data-ct-phase-code="KDP"] .ct-ref-phase--1:not(.ct-stop-loss-dashboard) .ct-phase1-area-donut--reference,
  html body .ct-app.ct-view-claim-phase[data-ct-phase-code="KDP"] .ct-ref-phase--1:not(.ct-stop-loss-dashboard) .ct-phase1-product-donut{
    height:calc(100% - 10px)!important;
    margin-top:10px!important;
  }
}

/* Restored nominative columns follow the reference's compact black header. */
html body .ct-app.ct-view-claim-phase[data-ct-phase-code="KDP"] .ct-ref-phase--1:not(.ct-stop-loss-dashboard) .ct-ref-nominative-table thead th{
  font-weight:400!important;
  text-align:center!important;
}
html body .ct-app.ct-view-claim-phase[data-ct-phase-code="KDP"] .ct-ref-phase--1:not(.ct-stop-loss-dashboard) .ct-ref-nominative-table tbody tr[data-unit-id] td:nth-child(3){
  text-align:center!important;
}
html body .ct-app.ct-view-claim-phase[data-ct-phase-code="KDP"] .ct-ref-phase--1:not(.ct-stop-loss-dashboard) .ct-ref-nominative-table tbody tr[data-unit-id] td:nth-child(6){
  text-align:left!important;
}
