/* VE-v25: the Extra Services metric is intentionally wider than numeric
   neighbour columns. The normal/TV/fullscreen table still uses the existing
   dynamic metric order, ranking, colors and row sizing. */
@media (min-width:921px) {
  .team-panel .team-table[data-dynamic-metrics="1"] thead th[data-metric-key="extraServices"],
  .team-panel .team-table[data-dynamic-metrics="1"] tbody td[data-metric-key="extraServices"] {
    width:clamp(146px,9.8vw,174px) !important;
    min-width:0 !important;
    padding-left:4px !important;
    padding-right:4px !important;
    text-align:center !important;
    overflow:visible !important;
    text-overflow:clip !important;
  }
  .team-panel .team-table[data-dynamic-metrics="1"] thead th[data-metric-key="extraServices"] {
    vertical-align:middle !important;
  }
  .team-panel .team-table[data-dynamic-metrics="1"] thead th[data-metric-key="extraServices"] .team-extra-header-pill {
    display:inline-flex !important;
    flex-direction:column !important;
    justify-content:center !important;
    align-items:center !important;
    vertical-align:middle !important;
    width:max-content !important;
    max-width:100% !important;
    min-height:32px !important;
    padding:3px 7px !important;
    line-height:1.06 !important;
    white-space:normal !important;
    overflow:visible !important;
  }
  .team-panel .team-table[data-dynamic-metrics="1"] .team-extra-header-line {
    display:block;
    white-space:nowrap;
    text-align:center;
  }
  .team-panel .team-table[data-dynamic-metrics="1"] tbody td[data-metric-key="extraServices"] .metric-value-wrap {
    display:inline-flex !important;
    flex-flow:row nowrap !important;
    align-items:baseline !important;
    justify-content:center !important;
    max-width:none !important;
    width:max-content !important;
    white-space:nowrap !important;
    font-variant-numeric:tabular-nums;
    letter-spacing:-.018em;
  }
  .team-panel .team-table[data-dynamic-metrics="1"] tbody td[data-metric-key="extraServices"] .metric-value-wrap strong,
  .team-panel .team-table[data-dynamic-metrics="1"] tbody td[data-metric-key="extraServices"] .metric-value-wrap .plan {
    flex:0 0 auto !important;
    min-width:0 !important;
    display:inline !important;
    white-space:nowrap !important;
  }
}
/* On a full-HD TV the global typography rules increase every numeric cell
   to 15–17px; reserve extra width for this currency-valued metric. */
@media (min-width:921px) {
  html[data-responsive-layout="tv"] .team-panel .team-table[data-dynamic-metrics="1"] thead th[data-metric-key="extraServices"],
  html[data-responsive-layout="tv"] .team-panel .team-table[data-dynamic-metrics="1"] tbody td[data-metric-key="extraServices"] {
    width:clamp(156px,10.2vw,190px) !important;
  }
}
/* Mobile already uses stacked member cards: never force desktop column widths
   there, but preserve fact / plan on a single line when space permits. */
@media (max-width:920px) {
  html.v118-mobile-layout .team-table tbody td[data-metric-key="extraServices"] .metric-value-wrap {
    flex-wrap:nowrap !important;
    white-space:nowrap !important;
    width:max-content !important;
    max-width:100% !important;
  }
  html.v118-mobile-layout .team-table tbody td[data-metric-key="extraServices"] .metric-value-wrap strong,
  html.v118-mobile-layout .team-table tbody td[data-metric-key="extraServices"] .metric-value-wrap .plan {
    white-space:nowrap !important;
  }
}
