/* Keep the upgrade step and first resource visible before formation bonuses. */
body.site-ui.site-refresh[data-page="formations"] #formation-detail .fm-table .fm-row-id {
  min-width: 64px !important;
  max-width: 72px !important;
  width: 64px !important;
  padding-inline: 7px;
}
body.site-ui.site-refresh[data-page="formations"] #formation-detail .fm-table :is(th,td):nth-child(2) {
  min-width: 96px;
  max-width: 110px;
}
body.site-ui.site-refresh[data-page="formations"] #formation-detail .fm-table [data-material-header] {
  min-width: 118px;
  max-width: 150px;
  overflow-wrap: break-word;
}
/* Two-column guide tables should fit the screen, not scroll prose sideways. */
body.site-ui.site-refresh .htg-table:has(thead th:nth-child(2)):not(:has(thead th:nth-child(3))) {
  table-layout: fixed !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
body.site-ui.site-refresh .htg-table:has(thead th:nth-child(2)):not(:has(thead th:nth-child(3))) :is(th,td) {
  min-width: 0 !important;
  max-width: none !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-break: normal;
  vertical-align: top;
}
body.site-ui.site-refresh .htg-table:has(thead th:nth-child(2)):not(:has(thead th:nth-child(3))) :is(th,td):first-child { width: 38% !important; }
body.site-ui.site-refresh .htg-table:has(thead th:nth-child(2)):not(:has(thead th:nth-child(3))) :is(th,td):nth-child(2) { width: 62% !important; }
body.site-ui.site-refresh .htg-table:has(thead th:nth-child(2)):not(:has(thead th:nth-child(3))) td { text-align: start; }
@media (max-width: 380px) {
  body.site-ui.site-refresh[data-page="formations"] #formation-detail .fm-table .fm-row-id { min-width: 70px !important; width: 70px !important; max-width: 70px !important; padding-inline: 5px; }
  body.site-ui.site-refresh[data-page="formations"] #formation-detail .fm-table :is(th,td):nth-child(2) { min-width: 80px; max-width: 80px; padding-inline: 5px; }
  body.site-ui.site-refresh[data-page="formations"] #formation-detail .fm-table [data-material-header] { min-width: 110px; max-width: 110px; padding-inline: 5px; }
}

body.site-ui.site-refresh[data-page="formations"] #formation-detail .fm-table .fm-step { white-space: normal; overflow-wrap: break-word; }
