.wrap {
  max-block-size: 13rem;
  overflow: auto;
  border: 1px solid gainsboro;
}

.timetable {
  font: 0.875rem system-ui, sans-serif;
  white-space: nowrap;
  border-collapse: separate;
  border-spacing: 0;
}

.timetable th,
.timetable td {
  padding: 0.5rem 0.75rem;
  text-align: start;
  background-color: white;
  border-block-end: 1px solid gainsboro;
}

.timetable thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background-color: lavender;
}

.timetable tbody th {
  position: sticky;
  left: 0;
  border-inline-end: 1px solid gainsboro;
}

.timetable thead th:first-child {
  left: 0;
  z-index: 2;
}