body {
  background-color: #d9d9d9;
  margin: 2vw;
}
header {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 2vw;
  min-width: 400px;
  &>div {
    position: relative;
    width: 400px;
    height: 100px;
    &:not(:first-child) {
      &>img {
        width: 100%;
        border-radius: 6px;
      }
      &>a {
        position: absolute;
        bottom: 4px;
        right: 4px;
        background-color: white;
        padding: 1px 2px;
        font-size: smaller;
        border-radius: 4px;
      }
    }
  }
}
#logo {
  display: flex;
  text-decoration: none;
  color: black;
  &>img {
    margin-right: 10px;
  }
  &>div {
    display: flex;
    flex-direction: column;
    margin-top: -6px;
    &>hr {
      background-color: #8da24b;
      border: none;
      height: 0.125rem;
      width: 100%;
      margin: 0;
    }
    &>div {
      &:first-child {
        display: flex;
        justify-content: space-between;
        font-size: 44px;
      }
      &:last-child {
        font-size: 30px;
      }
    }
  }
}
#tabs {
  display: grid;
  column-gap: 2px;
  grid-template-columns: repeat(9,max-content) 1fr;
}
.input {
  display: none;
}
.label {
  grid-row: 1;
  padding: 10px 10px;
  background: var(--room-color);
  opacity: 0.5;
  cursor: pointer;
  border-radius: 10px 10px 0 0;
  z-index: 1;
  &:hover {
    opacity: 1;
  }
  &:has(.input:checked) {
    opacity: 1;
    & + .panel { display: block; }
  }
}
.panel {
  display: none;
  grid-row: 2;
  grid-column: 1/-1;
  border: 4px solid var(--room-color);
  overflow-y: clip;
  background-color: white;
  border-radius: 8px;
}
.info {
  border-bottom: 4px solid var(--room-color);
  padding: 1px;
  display: flex;
  gap: 4px;
  &>div {
    padding: 9px;
  }
  &>* {
    height: 100px;
  }
  &>a>img {
    height: 100px;
  }
}
#week {
  display: flex;
  align-items: center;
  padding-right: 3px;
  grid-row: 1;
}
#next, #prev {
  text-decoration: none;
  color: black;
  font-size: larger;
  display: inline-block;
  width: 0;
  height: 0;
  border: 10px solid transparent;
}
#prev {
  border-right: 16px solid black;
  margin: 0 8px 0 -6px;
}
#next {
  border-left: 16px solid black;
  margin: 0 -6px 0 8px;
}
#admin {
  display: none;
}
.grid {
  display: grid;
  position: relative;
  padding-right: 1px;
  width: 100%;
  grid-template-columns: max-content repeat(7,1fr);
  grid-template-rows: max-content repeat(24,0) repeat(72,14px);
  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: 1;
}
.ghost {
  background-color: #eee;
  border: 1px solid silver;
  border-radius: 3px;
  z-index: 1;
  font-size: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  &:hover { z-index: 3; }
}
.column {
  position: relative;
  pointer-events: none;
  &>div::before {
    content:'';
    position: absolute;
    background-color: silver;
    height: 100%;
    width: 1px;
    left: -2px;
    pointer-events: none;
  }
}
.dow {
  pointer-events: none;
}
.row {
  position: relative;
  z-index: 3;
  visibility: hidden;
  pointer-events: none;
  & :nth-child(2 of .row)>div::before, & :nth-child(1 of .row)>div::before { border-top: 1px solid silver; }
  &>div::before {
    content:'';
    position: absolute;
    border-top: 1px dotted silver;
    width: calc(100% + 1px);
    left: -1px;
    visibility: visible;
    opacity: 0.3;
    pointer-events: none;
  }
}
.time {
  margin-top: -7px;
  font-size: 10px;
  padding-left: 3px;
}
.day {
  text-align: center;
  font-size: 12px;
  padding: 6px;
  margin-left: -1px;
  margin-right: -1px;
  &>div { pointer-events: none; }
}
.today {
  outline: solid orange;
  outline-offset: -1px;
}
dialog>form {
  display: flex;
  flex-direction: column;
}
html {
  visibility: visible !important;
  &.redirecting { opacity: 0.4; }
}