#calendar {
  width: 100%;
  max-width: 490px;
  margin: 80px auto;
  border: 1px solid;
  display: flex;
  flex-direction: column;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 5px;
  padding: 20px;
  gap: 5px;
}

#calendar .toprow {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-bottom: 20px;
}

#calendar .days,
#calendar #dates {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  gap: 10px;
}

#calendar .days {
  font-weight: 700;
}

#calendar #dates div {
  display: grid;
  align-items: center;
  justify-content: center;
  border: 1px solid lightgrey;
  height: 50px;
  border-radius: 5px;
  font-size: 22px;
}
#calendar #dates div a {
  text-decoration: none;
}

#calendar #dates div.date {
  border: 1px solid black;
}

#calendar #dates div.have_data {
  border: 1px solid rgb(219, 239, 131);
  background-color: rgb(219, 239, 131);
  color: white;
  font-weight: 700;
}

#calendar #dates div.have_data a {
  color: #000;
  font-weight: 700;
}

#calendar #dates div.today {
  border: 3px solid green;
  /* background-color: green;
  color: white; */
  font-weight: 700;
}

#calendar #dates div.today a {
  /* color: white; */
  font-weight: 700;
}

#calendar button,
#calendar select,
#calendar input {
  padding: 5px;
}

#calendar input {
  width: 70px;
  text-align: center;
}

#calendar #copy {
  margin-top: 20px;
  padding: 5px;
  position: sticky;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 0.8em;
}

#calendar #copy a {
  color: white;
}
