/* An opaque backing prevents rows from showing through translucent themes.
   Move the original row group so sorting, select-all, and focus keep working. */
table > thead.cm-table-head {
  position: relative;
  z-index: 30;
  transform: translateY(var(--cm-table-head-y, 0px));
  background-color: var(--bg, var(--color-bg-dark, #121b2c));
  box-shadow: 0 1px 0 var(--border, rgba(128, 128, 128, .3));
}
/* Vertical movement belongs to the whole header, including multi-row headers.
   Preserve each cell's position/left rules for horizontally frozen columns. */
table > thead.cm-table-head > tr > :is(th, td) {
  top: auto !important;
  bottom: auto !important;
}
@media print {
  table > thead.cm-table-head {
    position: static;
    transform: none !important;
    box-shadow: none;
  }
}
