.preview-scroll-affordance {
  color: var(--ink-faint);
  font-size: .76rem;
  white-space: nowrap;
}

.preview-table-scroll {
  max-height: none;
  overflow-x: auto;
  overflow-y: visible;
}

#previewCellsTable {
  width: max-content;
  min-width: 100%;
}

#previewCellsTable th,
#previewCellsTable td {
  max-width: 240px;
}

#previewCellsTable th > span,
#previewCellsTable td > span {
  display: block;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#previewCellsTable thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

#previewCellsTable td.is-selected {
  outline: 2px solid var(--primary-strong);
  outline-offset: -2px;
  background: var(--primary-soft);
}

@media (forced-colors: active) {
  #previewCellsTable td.is-selected {
    outline: 2px solid Highlight;
    outline-offset: -2px;
    background: Highlight;
    color: HighlightText;
  }
}

@media (max-width: 640px) {
  .preview-scroll-affordance {
    display: block;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
