:root {
  --thead-bg: #F7F9FB;
  --thead-color: hsl(210, 5%, 40%);
  --bd-color: #ebebeb;
  --time-color: hsl(210, 5%, 70%);
  --body-bg: #FDFDFD;
  --time-width: 75px;
  --sticky-height: 55px;
}

.wrapper {
  max-width: 800px;
}

.table {
  position: relative;
  border-width: 0 1px 0 0;
  overscroll-behavior: contain;
}

.headers {
  top: var(--sticky-height);
  position: -webkit-sticky;
  position: sticky;
  justify-content: flex-end;
  display: flex;
  z-index: 1;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.04);
}

.tracks,
.scroller {
  display: flex;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.scroller {
  overflow-x: hidden;
  flex: 1;
}

.tracks::-webkit-scrollbar,
.scroller::-webkit-scrollbar {
  display: none;
}

.track {
  flex: 1 0 calc(17% + 10px);
}

.track + .track {
  margin-left: -1px;
}

.time {
  flex: 0 0 var(--time-width);
  position: -webkit-sticky;
  position: sticky;
  left: 0;
}

.headers .time {
  z-index: 5;
}

.tracks .time {
  box-shadow: 20px 0 50px rgba(0, 0, 0, 0.05);
}

time {
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .03em;
}

time {
  padding: 2px;
  color: black;
  text-align: right;
}

.time .heading {
  justify-content: flex-end;
  padding-right: 1em;
  font-weight: 500;
  background: #F9F9F9;
}

.heading {
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  border: solid var(--bd-color);
  border-width: 1px;
  color: hsla(210, 5%, 40%, 1);
  z-index: 1;
  background: var(--thead-bg);
  font-weight: 700;
  font-size: 13px;
}

.entry {
  border: 1px solid #ebebeb;
  border-top: 0;
  background: var(--body-bg);
  height: 2em;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.track:last-of-type > div {
  border-right: 0;
}

.time .entry,
.time .heading {
  position: relative;
  border-color: transparent var(--bd-color) var(--bd-color) transparent;
  border-color: transparent var(--bd-color) transparent transparent;
}

.details {
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 15px 30px -10px rgba(0,0,0,0.50);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid #EBECEE;
  padding-left: 7px;
  padding-top: 5px;
  border-left: 4px solid var(--theme-bg);
  height: 100%;
}

.details:hover {
  padding-left: 5px;
  border-left: 6px solid var(--theme-bg);
}

.details a {
  color: var(--theme-color);
}

.details h3 {
  font-size: 12px;
  background: var(--theme-bg);
  padding: 3px 8px;
  border-radius: 2px;
  color: var(--theme-color);
  width: max-content;
}

.registrable {
  --theme-color: #2d4710;
  --theme-bg: #c6efce;
}

.user-reserved{
  --theme-color: white;
  --theme-bg: #4472c4;
}

.closed {
  --theme-color: var(--thead-bg);
  --theme-bg: #BBBCBC;
}

.reserved{
  --theme-color: #9c0006;
  --theme-bg: #ffc7ce;
}

.admin{
  --theme-color: white;
  --theme-bg: #252525;
}

.buttons {
  display: flex;
  justify-content: space-between;
  position: absolute;
  z-index: 6;
  height: 100%;
  padding: 1px 0;
  width: calc(100% - var(--time-width));
}

button {
  border-radius: 0;
  border: 0;
  padding: 5px;
  font: inherit;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  outline: none !important;
  cursor: pointer;
  background: var(--thead-bg);
}

button > svg {
  line-height: 0;
  width: 20px;
  height: 20px;
  fill: var(--thead-color);
  pointer-events: none;
}

.btn-left {
  transform: scaleX(-1);
}

@media (max-width: 767px) {
  .track:not(.time) {
    flex: 1 0 calc(25% + 7px);
  }
}

@media (max-width: 430px) {
  .track:not(.time) {
    flex: 1 0 calc(40% + 7px);
  }
}