/* Keep navigation layout independent of booking-module initialization. */
#app.side-hidden {
  grid-template-columns: minmax(0, 1fr) !important;
}
#app.side-hidden > .side {
  display: none !important;
}

@media screen and (min-width: 721px) {
  #app > .side {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    padding: 12px !important;
    overflow: hidden !important;
    scrollbar-width: none !important;
  }
  #app > .side::-webkit-scrollbar { display: none; }
  #app > .side .brand {
    flex: none;
    gap: 9px;
    margin: 0 3px 10px !important;
  }
  #app > .side .brand .logo {
    width: 40px !important;
    height: 40px !important;
    flex: 0 0 40px;
  }
  #app > .side .brand b, #app > .side .who b {
    font-size: 1rem !important;
    line-height: 1.5 !important;
  }
  #app > .side .brand small { font-size: .8125rem; }
  #app > .side .nav {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    gap: 3px !important;
    overflow: visible;
  }
  #app > .side .nav button {
    flex: 0 1 38px;
    min-height: 26px !important;
    max-height: 38px;
    padding: 2px 9px !important;
    font-size: .875rem !important;
    line-height: 1.4 !important;
    white-space: nowrap;
    border: 1px solid rgba(212, 175, 55, .32) !important;
    box-shadow: inset 0 1px rgba(255, 235, 166, .08) !important;
  }
  #app > .side .who {
    flex: none;
    position: static;
    margin-top: 8px !important;
    padding: 0 3px 5px !important;
  }
  #app > .side .who b { margin-bottom: 5px !important; }
  #app > .side .who .btn {
    min-height: 32px !important;
    padding: 4px 8px !important;
    font-size: .875rem !important;
    line-height: 1.4;
  }
}

#app > .side .nav button.active {
  color: #fff9d9 !important;
  background: linear-gradient(100deg, #287665, #155647) !important;
  border-color: #edcf72 !important;
  box-shadow: inset -4px 0 #f1cf65, inset 0 0 16px #e9c65c24,
    0 0 9px #e9c65c50 !important;
  text-shadow: 0 0 8px #fff3bb55;
}
#app > .side .nav button:focus-visible {
  outline: 2px solid #ffe295;
  outline-offset: 1px;
}

/* The floor label stretches to the rooms, never the other way around. */
@media screen and (min-width: 981px) {
  #roomGrid .floor-block {
    align-items: stretch;
    grid-template-columns: 3.5rem minmax(0, 1fr) !important;
  }
  #roomGrid .floor-divider {
    contain: size;
    min-height: 0;
    height: auto;
    align-self: stretch;
    padding: 0 4px !important;
    font-family: var(--font-body), Tahoma, sans-serif !important;
    font-size: .875rem;
    writing-mode: horizontal-tb !important;
    direction: rtl;
    gap: 5px !important;
    box-shadow: inset 0 0 0 1px #f2d67433;
  }
  #roomGrid .floor-divider .floor-label {
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    gap: 0;
    transform: none;
  }
  #roomGrid .room {
    height: clamp(56px, 6.7vh, 66px);
    min-height: clamp(56px, 6.7vh, 66px);
    padding: 3px;
  }
}

#roomGrid .room {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
#roomGrid .floor-label {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  direction: ltr;
  gap: 0;
  flex: none;
}
#roomGrid .floor-number {
  display: inline-flex;
  flex: none;
  box-sizing: border-box;
  width: 1.925rem;
  height: 1.925rem;
  align-items: center;
  justify-content: center;
  border: 2.1px solid #0d493f;
  border-radius: 50%;
  background: #fff;
  color: #0d493f !important;
  -webkit-text-fill-color: #0d493f;
  text-shadow: none;
  direction: ltr;
  font-family: Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}
#roomGrid .room b, #roomGrid .room small {
  font-family: var(--font-body), Tahoma, sans-serif !important;
  font-size: 1rem !important;
  line-height: 1.25 !important;
  letter-spacing: 0;
}
#roomGrid .room b { margin: 0 !important; font-weight: 800; }
#roomGrid .room small {
  margin: 0;
  font-weight: 600;
}
#roomGrid .room.unit-royal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 0;
}
#roomGrid .room.unit-royal b { grid-column: 2; grid-row: 1; }
#roomGrid .room.unit-royal .unit-badge {
  position: static;
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  margin-inline-start: 2px;
  white-space: nowrap;
}
#roomGrid .room.unit-royal small {
  grid-column: 1 / -1;
  grid-row: 2;
  font-weight: 600;
  text-align: center;
}

/* Small screens keep every menu item reachable without a nested scrollbar. */
@media screen and (max-width: 720px) {
  #app > .side { overflow: visible; max-height: none; }
  #app > .side .nav { overflow: visible; }
}


#customers > .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
#customers .customer-summary {
  min-height: 80px; padding: 11px 15px; text-align: right; cursor: pointer;
  box-shadow: 0 4px 0 #17372f20, 0 7px 12px #17372f0d;
  transition: transform .15s ease, box-shadow .15s ease;
}
#customers .customer-summary .label { display: block; font-size: .875rem; line-height: 1.4; }
#customers .customer-summary .value { display: block; margin-top: 4px; font-size: 1.55rem; line-height: 1.25; }
#customers .customer-summary:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #17372f20, 0 9px 15px #17372f12; }
#customers .customer-summary:active { transform: translateY(2px); box-shadow: 0 1px 0 #17372f20; }
#customers .customer-summary:focus-visible { outline: 2px solid #c7a22d; outline-offset: 3px; }
#customerRows td:last-child { white-space: nowrap; }
#customerRows .btn { min-height: 34px; padding: 5px 11px; font-size: .875rem; }
@media (max-width: 620px) {
  #customers > .cards { gap: 6px; }
  #customers .customer-summary { padding: 10px 7px; }
}
@media (prefers-reduced-motion: reduce) { #customers .customer-summary { transition: none; } }
