/* Source tables can combine width="100%" with a fixed left margin. Reset
   that offset at every pane size, including print, without clipping content. */
#manualContent[data-manual="SPM"] table {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Borderless source tables contain both indented prose and data columns. */
#manualContent[data-manual="SPM"] table[border="0"] {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  table-layout: fixed;
}

#manualContent[data-manual="SPM"] table[border="0"] > :is(tbody, thead, tfoot) > tr > :is(td, th) {
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Some source paragraphs use a label class for the entire note. */
#manualContent[data-manual="SPM"] :is(.notelabel, .warninglabel, .cautionlabel) {
  white-space: normal;
  overflow-wrap: anywhere;
}

#manualContent[data-manual="SPM"] table[border="0"] > tbody > tr > td.spm-step-label {
  width: 2em;
  white-space: nowrap;
  overflow-wrap: normal;
}

/* Keep standalone safety labels readable beside their wrapping message. */
#manualContent[data-manual="SPM"] table.ct7-safety-notice {
  table-layout: auto;
}

#manualContent[data-manual="SPM"] table[border="0"] > tbody > tr > td.ct7-safety-label {
  width: 1%;
  white-space: nowrap;
  overflow-wrap: normal;
}

/* Dense data tables scroll within the paper instead of stretching it. */
#manualContent[data-manual="SPM"] .spm-table-scroll {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}

#manualContent[data-manual="SPM"] .spm-table-scroll:focus-visible {
  outline: 2px solid #1769a8;
  outline-offset: -2px;
}

#manualContent[data-manual="SPM"] .spm-table-scroll > table {
  display: table;
  width: 100%;
  min-width: 100%;
  max-width: none;
  table-layout: auto;
  white-space: normal;
}

#manualContent[data-manual="SPM"] .spm-table-scroll > table > :is(tbody, thead, tfoot) > tr > :is(td, th) {
  white-space: normal;
  overflow-wrap: break-word;
}

@media print {
  #manualContent[data-manual="SPM"] .spm-table-scroll {
    overflow: visible;
  }

  #manualContent[data-manual="SPM"] .spm-table-scroll > table {
    table-layout: fixed;
  }

  #manualContent[data-manual="SPM"] .spm-table-scroll > table > :is(tbody, thead, tfoot) > tr > :is(td, th) {
    overflow-wrap: anywhere;
  }
}

@media screen and (max-width: 1024px), screen and (max-width: 1366px) and (hover: none), screen and (max-width: 1366px) and (pointer: coarse) {
  .topbar.ux-two-tier .manual-option:not(.active) {
    color: #243b4b;
    background: #f3f6f8;
  }
}
