.calendar[hidden] { display: none !important }
.calendar {
    display: grid;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: #ffffff;
    border: var(--border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 5px;
    margin-top: 2px;
}
.calendar-days,
.calendar-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px 3px;
  margin: auto;
  justify-content: space-between;
}
.calendar-week div,
.calendar-days div {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 2rem;
  width: 2rem;
  border-radius: var(--border-radius);
}
.calendar-week * {
  font-weight: bold;
}
.calendar-days .selectable {
  border: var(--border);
  cursor: pointer;
  -webkit-user-select: none; /* Safari */
  user-select: none;
}
.calendar-days .current {
  background-color: var(--primary-color);
  color: #ffffff;
}
.calendar-days .selected {
  background-color: var(--primary-color);
  color: #ffffff;
}
.calendar header {
  display: flex;
  width: 100%;
  padding-bottom: .25rem;
  justify-content: space-between;
  align-items: baseline;
  font-weight: bold;
}
.calendar header pre {
  background-color: var(--primary-color);
  border-radius: var(--border-radius);
  width: 2em;
  height: 2em;
  line-height: 2em;
  text-align: center;
  color: #ffffff;
  font-weight: normal;
  cursor: pointer;
  -webkit-user-select: none; /* Safari */
  user-select: none;
}
