:root {
  --tw-ring-color: $dark
;
}

#scheduler {
  width: 100%;
  height: 100%;
  background-color: #fefaf9;
}

#scheduler .cal {
  height: 65%;
  overflow-y: auto;
  overflow-x: clip;
}

#scheduler .cal .week {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-content: stretch;
  align-items: flex-start;
}

#scheduler .cal .week .month {
  width: 100%;
  text-align: center;
  font-size: 36px;
}

#scheduler .cal .week .month h3 {
  padding: 1rem 0 1rem 0;
}

#scheduler .cal .week .day {
  padding: 0.25rem;
}

#scheduler .cal .week .day .number {
  width: 3rem;
  height: 3rem;
  border-radius: calc( 3rem/2);
  display: grid;
  place-items: center;
  color: #fefaf9;
  font-size: 20px;
}

#scheduler .cal .week .weekday {
  padding: 0.25rem;
}

#scheduler .cal .week .weekday .abbr {
  width: 3rem;
  height: 3rem;
  border-radius: calc( 3rem/2);
  border: 1px solid #AAAAAA;
  color: #AAAAAA;
  background-color: white;
  display: grid;
  place-items: center;
  font-size: 20px;
}

#scheduler .cal .week .empty {
  padding: 0.25rem;
}

#scheduler .cal .week .empty .spacer {
  width: 3rem;
  height: 3rem;
  border-radius: calc( 3rem/2);
  border: 1px solid #CCCCCC;
}

#scheduler .openings {
  height: 35%;
  overflow-y: auto;
  margin: 0 auto;
}

#scheduler .openings h3 {
  padding: .75rem;
  width: 100%;
  font-size: 32px;
  text-align: center;
  background-color: #b9832c;
  color: #fefaf9;
}

#scheduler .openings .slots {
  margin: 0 auto;
  max-width: 40rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 0.5em 0.5em;
}

#scheduler .openings .slots .slot-container {
  display: grid;
  place-items: center;
  padding: 1rem;
}

#scheduler .openings .slots .slot-container .slot {
  padding: 0.5rem;
  text-align: center;
  width: 6rem;
  border: 1px solid #b9832c;
  border-radius: 4px;
  background-color: #f0dec1;
  color: #906622;
}

#scheduler .openings .slots .slot-container .slot.sel {
  background-color: #b9832c;
  color: #fefaf9;
  font-weight: bold;
}

#scheduler .openings .full {
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
  max-width: none;
}

#scheduler.multi-loc .locs {
  height: 50px;
  overflow-x: auto;
  border-top: 2px solid #b9832c;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-content: stretch;
  align-items: center;
  margin: 0;
  padding: 0;
}

#scheduler.multi-loc .locs .loc {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-content: stretch;
  align-items: center;
}

#scheduler.multi-loc .locs .loc .color-label {
  width: 40px;
  height: 40px;
  border-radius: calc( 40px/2);
}

#scheduler.multi-loc .locs .loc .name {
  padding: 0 1rem;
  font-size: 24px;
}

#scheduler.multi-loc .cal {
  height: calc(65% - 50px / 2);
}

#scheduler.multi-loc .openings {
  height: calc(35% - 50px / 2);
}

.no-slots {
  width: 100%;
  padding: 2rem;
  text-align: center;
}

.no-slots div {
  text-align: center;
  width: 100%;
  color: #AA520B;
  font-weight: bold;
  font-size: 32px;
}

.unavailable {
  width: 100%;
  padding: 2rem;
  text-align: center;
}

.unavailable div {
  text-align: center;
  width: 100%;
  color: #AA520B;
  font-weight: bold;
  font-size: 32px;
}

.loading {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.loading .row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-content: stretch;
  align-items: center;
}

.loading h2 {
  padding-left: 1rem;
  font-size: 28px;
  color: #AA520B;
}

@media only screen and (max-width: 820px) {
  #scheduler .cal {
    height: 50%;
  }
  #scheduler .cal .week {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-content: stretch;
    align-items: flex-start;
  }
  #scheduler .cal .week .month {
    font-size: 30px;
  }
  #scheduler .cal .week .day {
    padding: 0.25rem;
  }
  #scheduler .cal .week .day .number {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: calc( 2.5rem/2);
    font-size: 18px;
  }
  #scheduler .cal .week .weekday {
    padding: 0.25rem;
  }
  #scheduler .cal .week .weekday .abbr {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: calc( 2.5rem/2);
    font-size: 18px;
  }
  #scheduler .cal .week .empty {
    padding: 0.25rem;
  }
  #scheduler .cal .week .empty .spacer {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: calc( 2.5rem/2);
    font-size: 18px;
  }
  #scheduler .openings {
    height: 50%;
  }
  #scheduler .openings #openings-for {
    display: none;
  }
  #scheduler .openings .slots {
    width: 100%;
    max-width: unset;
    grid-template-columns: 1fr 1fr;
    max-width: 100%;
  }
}
