body {
  background-color: #f9f1e9;
  margin: 1vmin;
}
#grid {
  display: grid;
  padding-right: 1px;
  width: 100%;
  grid-template-columns: max-content repeat(var(--rooms),1fr);
  grid-template-rows: max-content repeat(96,0) repeat(174,5px) repeat(18,0);
  column-gap: 3px;
}
.booking {
  background-color: var(--room-color);
  border: 1px solid black;
  border-radius: 3px;
  z-index: 2;
  font-size: smaller;
  white-space: pre-wrap;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  line-height: 0.9;
}
.row {
  position: relative;
  z-index: 3;
  visibility: hidden;
  pointer-events: none;
  &>div::before {
    content:'';
    position: absolute;
    border-top: 1px dotted #444;
    width: calc(100% + 1px);
    left: -1px;
    visibility: visible;
    opacity: 0.3;
    pointer-events: none;
  }
  & :nth-child(2 of .row)>div::before, & :nth-child(1 of .row)>div::before { border-top: 1px solid #444; }
}
.column {
	outline: 1px solid #444;
	outline-offset: 1px;
}
.time {
  margin-top: -7px;
  font-size: 10px;
  padding-left: 3px;
  padding-right: 1px;
}
.room {
  text-align: center;
  padding: 3px;
}
.now {
	outline: 1px solid gold;
	outline-offset: -2.5px;
  z-index: 2;
  opacity: 0.7;
  margin-left: -100px;
  margin-right: -2.5px;
}
html {
  visibility: visible !important;
}
