/* Authorized booking group cards. Every original hourly control remains. */

.booking-page .side-heading {
  color: #31583A;
  font-size: 12px;
  font-weight: 600 !important;
}

/* Native padding, borders, radius and hourly dimensions are untouched.
   Each transparent hourly button remains above the one decorative group card. */
.booking-page .slot.occupied.booking-group-member:not(.selected) {
  z-index: 2;
  background-color: transparent;
  border-color: transparent;
  box-shadow: none;
}
.booking-page .slot.occupied.booking-group-member :is(.slot-name, .slot-sub) {
  visibility: hidden;
}
.booking-page .slot.occupied.booking-group-member.highlighted::after {
  display: none;
}

/* One physical card owns every painted edge and clips all its own content. */
.booking-page .booking-group-card {
  position: absolute;
  display: block;
  box-sizing: border-box;
  overflow: hidden;
  z-index: 1;
  border: 1px solid #B9CCB5;
  border-radius: 5px;
  background-color: #DCE8D6;
  color: #294F35;
  pointer-events: none;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}
.booking-page .booking-group-card * { pointer-events: none; }
.booking-page .booking-card-bar {
  position: absolute;
  left: 1px;
  top: 5px;
  bottom: 5px;
  width: 2px;
  border-radius: 1px;
}
.booking-page .booking-card-caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.booking-page .booking-group-name {
  display: block;
  max-width: calc(100% - 4px);
  color: #294F35;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
.booking-page .booking-group-duration {
  display: block;
  max-width: calc(100% - 8px);
  color: #546D55;
  font-size: 10px;
  line-height: 1.1;
  white-space: nowrap;
  text-align: center;
}
.booking-page .booking-person-0 > .booking-card-bar { background-color: #78927A; }
.booking-page .booking-person-1 > .booking-card-bar { background-color: #71968A; }
.booking-page .booking-person-2 > .booking-card-bar { background-color: #8F9871; }
.booking-page .booking-person-3 > .booking-card-bar { background-color: #7992A3; }
.booking-page .booking-person-4 > .booking-card-bar { background-color: #9A879F; }
.booking-page .booking-person-5 > .booking-card-bar { background-color: #A19475; }

/* Mirror the original filter and hover states on the single group surface. */
.booking-page .booking-group-card.muted-booking { opacity: .25; }
.booking-page .booking-group-card.booking-card-hover { background-color: #D3E1CD; }
.booking-page .booking-group-card.muted-booking.booking-card-hover { opacity: .7; }
.booking-page .booking-group-card.highlighted {
  border-color: #87A877;
  box-shadow: inset 0 0 0 1px #87A877;
}
.booking-page .booking-group-card.booking-sealed {
  background-color: #EDF0EB;
  border-color: #C7CEC5;
}
.booking-page .booking-sealed .booking-group-duration { color: #4A5C4D; }
.booking-page .booking-mini-seal { display: block; margin-top: 3px; color: #4A5C4D; font-size: .76em; }
.booking-seal-note { margin-top: 0; color: #4A5C4D; }
@media (max-width: 699px) {
  .booking-page .booking-group-name { font-size: 11px; }
  .booking-page .booking-group-duration { font-size: 9px; }
}

/* Keep the original hourly hit target transparent over its group card on hover. */
.booking-page .slot.occupied.booking-group-member:not(.selected):hover { border-color: transparent; }
