[hidden] {
  display: none !important;
}
.board.month-board {
  width: calc(190px + var(--days) * 180px);
  min-width: 0;
}
.board.month-board .boardhead,
.board.month-board .resource-row {
  grid-template-columns: 190px repeat(var(--days), 180px);
}
.board-scroll {
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.board .resource,
.boardhead > div:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fbfcfd;
}
.boardhead > div:first-child {
  z-index: 3;
}
.board .weekend {
  background: #f0f3f6;
}
.absence {
  display: block;
  width: 100%;
  border: 1px solid #d5a842;
  border-left: 4px solid #b5821e;
  border-radius: 6px;
  padding: 7px;
  text-align: left;
  background: #fff3d1;
  color: #62480b;
  font-size: 14px;
  margin-bottom: 5px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.absence.illness {
  background: #edf0f4;
  border-color: #a5afbd;
  color: #3b4758;
}
.absence strong {
  display: block;
  color: #973c27;
}
.absence-section {
  margin-top: 24px;
  padding: 20px;
}
.topright {
  flex-wrap: wrap;
}
.hall-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}
.hall-heading h2 {
  margin: 0;
  font-size: clamp(20px, 1.5vw, 40px);
}
.hall-heading p {
  margin: 4px 0 0;
  font-size: clamp(14px, 0.85vw, 24px);
}
.hall-mode .sidebar,
.hall-mode .topbar,
.hall-mode footer,
.hall-mode .connection-bar {
  display: none;
}
.hall-mode .main {
  width: 100%;
  margin: 0;
}
.hall-mode #content {
  max-width: none;
  padding: 18px 24px;
  min-height: 100dvh;
}
.hall-mode.hall-controls .connection-bar {
  display: flex;
}
.hall-weeks {
  height: calc(100dvh - 115px);
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.hall-week {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.hall-week h3 {
  margin: 0;
  padding: 6px 14px;
  font-size: clamp(16px, 1vw, 28px);
  background: var(--nav);
  color: white;
}
.hall-booking.booking {
  margin: 0;
  padding: 3px 6px;
  flex-shrink: 0;
  font-size: clamp(14px, 0.85vw, 24px);
  line-height: 1.25;
  overflow-wrap: anywhere;
  white-space: normal;
}
.hall-booking.booking > div {
  overflow: hidden;
  text-overflow: ellipsis;
}
.hall-booking.booking {
  min-height: 0;
}
.hall-booking.booking b,
.hall-booking.booking span {
  display: inline;
  font-size: inherit;
  margin: 0;
}
.hall-heading .account-actions {
  flex-wrap: wrap;
}
.hall-mode.hall-controls .hall-weeks {
  height: calc(100dvh - 175px);
}
@media (max-width: 900px) {
  .hall-mode #content {
    padding: 12px;
  }
  .hall-weeks {
    height: auto;
    grid-template-rows: auto auto;
  }
  .hall-week {
    overflow: auto;
  }
  .hall-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .absence-section .section-heading {
    flex-wrap: wrap;
  }
}

/* Compact hall board: content sets row height; each day shows every booking. */
.hall-heading h2 {
  font-size: 20px;
}
.hall-heading p {
  font-size: 14px;
}
.hall-mode #content {
  padding: 12px 16px;
}
.hall-weeks,
.hall-mode.hall-controls .hall-weeks {
  height: auto;
  min-height: calc(100dvh - 95px);
  grid-template-rows: auto auto;
  align-content: start;
  gap: 10px;
}
.hall-week {
  overflow: visible;
  min-height: 0;
}
.hall-week h3 {
  font-size: 16px;
  padding: 5px 10px;
}
.hall-booking.booking {
  font-size: 14px;
}
.hall-booking.booking {
  padding: 3px 5px;
  line-height: 1.3;
}
.hall-booking.booking > div {
  overflow: visible;
  text-overflow: clip;
}
@media (max-width: 900px) {
  .hall-week {
    overflow: visible;
  }
  .hall-weeks {
    overflow-x: auto;
    min-height: 0;
  }
  .hall-heading h2 {
    font-size: 20px;
  }
}

.board-shift {
  padding: 6px 8px;
  margin: 4px 0;
  border-radius: 6px;
  background: #edf2f7;
  border-left: 3px solid #64748b;
  font-size: 12px;
}
.board-shift small {
  display: block;
  font-size: 11px;
}
.hotline-shift {
  background: #fff4d8;
  border-left-color: #b7791f;
}
.oncall-shift {
  background: #e8f2ff;
  border-left-color: #2563eb;
}

.boardhead > div.rlp-holiday,
.cell.rlp-holiday,
.day-title.rlp-holiday {
  background: #fff2d2;
  box-shadow: inset 0 3px 0 #a66a00;
}
.holiday-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #805000;
  line-height: 1.3;
  margin-top: 4px;
  white-space: normal;
}
.month-board .holiday-label {
  font-size: 10px;
}
.day-title.rlp-holiday {
  padding: 10px;
  border-radius: 6px;
}
