main {
  flex-direction: column;
  overflow-y: auto;
  padding: 0;
}

#view-position {
  border: 1px solid #c7d2fe;
  border-radius: 0.25rem;
  color: #1f2937;
  font-size: 1rem;
  font-weight: 700;
  min-width: 10rem;
  padding: 0.45rem 0.55rem;
}

#view-position:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
  outline: none;
}

#calendar {
  background: white;
  border-left: 1px solid #dbe4ff;
  border-top: 1px solid #dbe4ff;
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.day {
  background: white;
  border: 0;
  border-bottom: 1px solid #dbe4ff;
  border-right: 1px solid #dbe4ff;
  box-shadow: none;
  color: #1f2937;
  font-size: 1.05rem;
  font-weight: 700;
  gap: 0.35rem;
  cursor: default;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 10.5rem;
  overflow-y: auto;
  padding: 0.55rem;
  position: relative;
  width: 14.2857%;
}

.day:hover,
.day.active {
  background: #eef2ff;
}

.day-label {
  align-self: flex-start;
}

.currentDay .day-label {
  background: #1f2937;
  border-radius: 0.25rem;
  color: white;
  padding: 0.1rem 0.35rem;
}

.day div {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #1f2937;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.25;
  padding: 0;
}

.day .shift-entry {
  align-items: baseline;
  display: flex;
  gap: 0.35rem;
  min-width: 0;
  white-space: nowrap;
}

.shift-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shift-time {
  flex: 0 0 auto;
}

.day div.DAYOFF {
  background: transparent;
  border: 0;
  color: #be123c;
}

footer {
  background: lightgrey;
  gap: 0.4rem;
}

#btn-submit {
  background-color: #0d6efd;
  color: white;
  font-weight: 700;
}

@media only screen and (max-width: 576px) {
  body {
    height: 100vh;
    height: 100dvh;
    max-height: none;
  }

  main {
    flex: 1;
    min-height: 0;
    width: 100%;
  }

  footer {
    min-height: 3.5rem;
  }

  #calendar {
    display: block;
  }

  .day {
    min-height: 10rem;
    width: 100%;
  }

  .day.week-start:not(:first-child) {
    border-top: 0.55rem solid #4b5563;
  }

}
