.calendar {
  padding: 1.5rem;
  border-radius: 4px;
  background-color: #FFF;
  margin-bottom: 1rem;
}
.calendar .table-container {
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid #CCCCCC;
  margin-bottom: 1rem;
}
.calendar table {
  width: 100%;
  margin-bottom: 0;
  border: none;
  table-layout: fixed;
}
.calendar thead {
  font-weight: bold;
  background-color: #EEE;
}
.calendar thead .days th {
  font-size: 80%;
}
.calendar tbody {
  background-color: #FFF;
}
.calendar tbody td {
  vertical-align: middle;
  text-align: center;
  line-height: 0;
  padding: 4px;
}
.calendar tbody td div {
  display: block;
  position: relative;
  width: 100%;
  padding-top: 100%;
  border-radius: 50%;
}
.calendar tbody td span {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
}
.calendar tbody th {
  text-align: left;
  border-top: none;
}
.calendar tbody th.label-month {
  text-align: left;
  border-top: 1px solid #444;
}
.calendar th {
  vertical-align: middle;
  text-align: center;
  line-height: 2;
}
td.active {
  background-color: #444;
}
thead td:nth-child(6), thead td:nth-child(7) {
  color: #BBB;
}
.week td:nth-child(6), .week td:nth-child(7) {
  color: #BBB;
}
.entry-header {
  text-shadow: 0 0 1rem rgba(0, 0, 0, 0.5);
}
.key .legend-1, td.legend-1 div {
  background-color: #0093BD;
  color: #FFF;
}
.key .legend-2, td.legend-2 div {
  background-color: #0BD4CA;
  color: #FFF;
}
.key .legend-3, td.legend-3 div {
  background-color: #0AC98A;
  color: #FFF;
}
.key .legend-closed, td.closed div {
  background-color: #333 !important;
  color: #FFF;
}
