@media print {
  @page {
    size:  calc(13.69 * 96px) calc(8.0 * 96px);
    margin-left: calc(0.12 * 96px);
    margin-right: calc(0.20 * 96px);
    margin-bottom: calc(0.26 * 96px);
    margin-top: calc(0.25 * 96px);
  }
}
body {
  width: calc(13.69 * 96px);
  height: calc(8.0 * 96px);
  margin-left: calc(0.12 * 96px);
  margin-right: calc(0.20 * 96px);
  margin-bottom: calc(0.26 * 96px);
  margin-top: calc(0.25 * 96px);
}

.paper-legal {
  width: 100%;
  height: 100%;
  position: relative;
  background-color: white;
  color: black;
  display: flex;
  font-size: 0.875rem;
  font-family: sans-serif;
  text-transform: uppercase;
  page-break-inside: avoid;
}

.month {
  width: calc(100% / 12);
  display: flex;
  flex-direction: column;
}

.month-name {
  outline: 2px solid black;
  outline-offset: -1px;
  height: calc(100% / 24);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.day-row {
  outline: 2px solid black;
  outline-offset: -1px;
  height: calc(100% / 24);
  max-height: calc(100% / 24);
  /* font-size: 1rem; */
  /* padding: 0.25rem 0.5rem; */
  display: flex;
  flex-direction: row;
}
.day-row:not(.weekend) {
  line-height: 0.875rem;
}
.day-row:not(.weekend) .dates {
  margin-left: -0.2rem;
  max-width: 2.5rem;
  align-items: center;
}
.dates {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  font-weight: 900;
  max-width: 2.5rem;
  justify-content: center;
  margin-top: -0.2rem;
  align-items: start;
}
.editable {
  flex-grow: 1;
  text-transform: none;
  font-size: 0.8rem;
  line-height: 0.8rem;
  padding-top: 2px;
  position: relative;
}
.day-row:not(.weekend) .editable:after {
  content: "am";
  font-size: 0.5rem;
  position: absolute;
  top: 2px;
  right: 2px;
  z-index: 3;;
  color: #807e81;
}
.day-row:not(.weekend) .editable:before {
  content: "pm";
  font-size: 0.5rem;
  position: absolute;
  right: 2px;
  bottom: 2px;
  z-index: 3;
  color: #807e81;
}

.date {
  padding-left: 0.25rem;
  padding-top: 0.25rem;
  text-align: center;
}
.weekend .date-num {
  width: 17px;
  text-align: end;
  display: inline-block;
}
.weekend .date {
  padding-left: 0;
}
.weekend .dates {
  max-width: 2.65rem;
  margin-left: -0.2rem;
}
.weekend {
  font-size: 0.5rem;
  line-height: 0.3rem;
}
.gray {
  color: #807e81;
  font-weight: 600;
}
.day-row.past {
  opacity: 0.5;
}