/* Tables may scroll sideways, but must not trap vertical page/dialog gestures. */
body.site-ui .tv340-scroll,
body.site-ui.site-refresh[data-page="formations"] #formation-detail .fm-table-scroll {
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
}

/* Anchor overflow menus to the whole action group, including Close. */
body.site-ui.site-refresh #detail .dp-header > .compact-detail-actions {
  position: relative !important;
}
body.site-ui.site-refresh #detail .dp-header > .compact-detail-actions > .compact-detail-more {
  position: static !important;
}
body.site-ui.site-refresh #detail .dp-header > .compact-detail-actions .compact-detail-menu {
  top: calc(100% + 6px);
  inset-inline-end: 0;
  max-width: calc(100vw - 56px);
}

/* Use one inset and one table frame inside the component level panel. */
body.site-ui.site-refresh.hq-public[data-hq-page="components"] #detail .dp-all-levels {
  padding: 14px !important;
}
body.site-ui.site-refresh.hq-public[data-hq-page="components"] #detail .dp-all-levels > :not(summary) {
  margin-inline: 0 !important;
}
body.site-ui.site-refresh.hq-public[data-hq-page="components"] #detail .dp-all-levels > .table-wrap:has(.tv340-scroll) {
  width: 100%;
  max-width: 100%;
  margin-block: 10px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}
body.site-ui.site-refresh.hq-public[data-hq-page="components"] #detail .dp-all-levels .tv340-table-help {
  margin: 0 0 10px;
}
@media (min-width: 360px) and (max-width: 600px) {
  body.site-ui.site-refresh.hq-public[data-hq-page="components"] #detail .dialog-head {
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
  }
  body.site-ui.site-refresh.hq-public[data-hq-page="components"] #detail .dialog-head > .compact-detail-actions {
    grid-column: 3;
    grid-row: 1;
    width: auto;
    justify-self: end;
    align-self: center;
  }
}
