/* Always show vertical scrollbar to prevent layout shift on page load */
html {
  scrollbar-gutter: stable;
  height: 100%;
}

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

body > main, body > .container, body > .container-fluid, body > .container-xxl {
  flex-shrink: 0;
}

/* Prevent Bootstrap modal from adding padding-right (scrollbar gutter handles spacing) */
body.modal-open {
  padding-right: 0 !important;
}

/* Also prevent padding on fixed/sticky elements when modal is open */
.modal-open .sticky-top,
.modal-open .fixed-top,
.modal-open header,
.modal-open #navLogo {
  padding-right: 0 !important;
}

body > .container,
body > .container-fluid:not(.navbar .container-fluid) {

}

.maxwide {
  max-width: 1500px;
}

.navbar-sky {
  background-color: #e3f2fd !important;
  /* ensure readable link/toggler colors on a light background */
  --bs-navbar-color: rgba(0,0,0,.7);
  --bs-navbar-hover-color: rgba(0,0,0,.9);
  --bs-navbar-brand-color: rgba(0,0,0,.85);
  --bs-navbar-brand-hover-color: rgba(0,0,0,1);
  --bs-navbar-toggler-border-color: rgba(0,0,0,.15);
}

/* Ensure navbar/header stays above custom dropdowns */
.sticky-top,
header.sticky-top,
.navbar {
  z-index: 1200 !important;
}

/* Ensure modals stay above navbar and logo */
.modal,
.modal-backdrop {
  z-index: 1400 !important;
}

.modal-backdrop {
  z-index: 1399 !important;
}

/* Fix for multiple modal backdrops bug - only show the last one */
.modal-backdrop ~ .modal-backdrop {
  display: none !important;
}
/*
.table td, .table th { text-align: center; }*/

/* Let the tiny availability grid center inside table cells */
.shift-grid { display: inline-table;}

/* Dropdown menu hover color - Bootstrap warning */
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
  background-color: #ffc107;
  color: #000;
}
