.algolia-autocomplete {
  width: 100%;
  z-index: 500;
}



.algolia-autocomplete .aa-input,
.algolia-autocomplete .aa-hint {
  width: 100%;
}

.algolia-autocomplete .aa-hint {
  color: #999;
}

.algolia-autocomplete .aa-dropdown-menu {
  width: 100%;
  background-color: #fff;
  border: 1px solid #999;
  border-top: none;
}

.algolia-autocomplete .aa-dropdown-menu .aa-suggestion {
  cursor: pointer;
  padding: 20px 4px;
  color: black;
}

.algolia-autocomplete .aa-dropdown-menu .aa-suggestion.aa-cursor {
  background-color: #b2d7ff;
}

.algolia-autocomplete .aa-dropdown-menu .aa-suggestion em {
  font-weight: bold;
  font-style: normal;
}

body {
  /* Location of the image */
  /* background-image: url(Backgrounds/Image-Desktop.jpg); */
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);





  /* Background image doesn't tile */
  background-repeat: no-repeat;

  /* Background image is fixed in the viewport so that it doesn't move when 
     the content's height is greater than the image's height */
  background-attachment: fixed;

  /* This is what makes the background image rescale based
     on the container's size */
  background-size: cover;

  /* Set a background color that will be displayed
     while the background image is loading */
  background-color: #464646;
}



@media only screen and (max-width: 767px) {
  body {
    /* The file size of this background image is 93% smaller
       to improve page load speed on mobile internet connections */
    /* background-image: url(Backgrounds/Image-Tablet.jpg); */
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  }
}



/* .center222 {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.699);
  border-radius: 25px;
  padding: 10px;
} */

/* ===== Logged-out centre block ===== */
#LoggedOut .center {
  display: grid;
  place-items: center;
  padding: 16px;
  min-height: calc(100vh - 56px);
  /* account for navbar height */
  background: transparent;
  /* container is the page; box is inside */
}

#LoggedOut .center>* {
  width: 100%;
  max-width: 420px;
}

#LoggedOut .center .card-like {
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 25px;
  padding: 16px;
}


.center1 {
  position: absolute;
  left: 50%;
  top: 20%;
  transform: translate(-50%, -20%);
  background-color: rgba(0, 0, 0, 0.699);
  border-radius: 25px;
  padding: 10px;
}

/* .col-sm-6 {
  margin-top: 25px;
}

.col-sm-12 {
  margin-top: 25px;
}

.row {
  margin-left: 25px;
  margin-right: 25px;
} */

/* .center2 {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.699);
  border-radius: 25px;
  padding: 10px;
} */
.pac-container {
  z-index: 100000;
}

.success-message-box {
  background-color: #28a745;
  color: white;
  padding: 20px;
  border-radius: 5px;
  text-align: center;
  margin: 0 auto;
  max-width: 80%;
  position: relative;
}

.checkmark-circle {
  background-color: white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #28a745;
}

.gray-mask {
  background-color: rgba(128, 128, 128, 0.5);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
}

.success-message-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

#changeDateSuccessMessage {
  background-color: #4CAF50;
  padding: 20px;
  border-radius: 5px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s ease-in;
}

.circle-check {
  background-color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}

.circle-check i {
  color: #4CAF50;
  font-size: 24px;
}

.success-text {
  color: #fff;
  font-size: 16px;
}

.confirmation-message {
  display: none;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  padding: 20px;
  margin-bottom: 20px;
  text-align: center;
}

.confirmation-message span {
  font-weight: bold;
}

#changeSiteModal .modal-content {
  position: relative;
}

#changeSiteModal .completion-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 10;
  align-items: center;
  justify-content: center;
}

.completion-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #28a745;
  color: white;
  border-radius: 5px;
  padding: 20px;
  text-align: center;
}

.completion-icon {
  font-size: 48px;
  margin-bottom: 10px;
}

.drop-zone {
  border: 5px dashed #000;
  height: 150px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-family: Arial, sans-serif;
  padding: 20px;
  cursor: pointer;
  border-radius: 5px;
  /* Match the modal border-radius */
  box-sizing: border-box;
  /* Include padding and border */
}

.drop-text {
  text-align: center;
  pointer-events: none;
  font-size: 1.2em;
}

.drop-zone i {
  font-size: 2em;
  margin-bottom: 10px;
}

.drop-zone:hover {
  background-color: #f2f2f2;
}

.uploaded-file {
  display: none;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.delete-icon {
  display: none;
  position: absolute;
  top: -26px;
  /* Extend into the padding area */
  right: 3px;
  /* Extend into the padding area */
  color: red;
  cursor: pointer;
  font-size: 10px;
  /* Smaller delete icon */

}

.excel-icon {
  display: none;
  color: green;
  font-size: 50px;
}

.modal-dialog {
  transition: max-width 0.3s ease-out;
  /* Animate the max-width property */
}

.modal-wide {
  max-width: 80%;
}

.border-line {
  border-right: 1px solid #dee2e6;
}

#rightColumn {
  border-left: 1px solid #dee2e6;
  /* You can adjust this color as needed */
  margin-left: 10px;
}

#rightrightColumn {
  border-left: 1px solid #dee2e6;
  /* You can adjust this color as needed */
}

.pill {
  display: inline-block;
  padding: 5px 10px;
  margin-right: 5px;
  background-color: #007bff;
  color: #fff;
  border-radius: 20px;
}

.dropdown-menu {
  z-index: 200000;
  /* or some other high value */
}

.selected-option {
  font-weight: bold;
}

.inline-container {
  display: flex;
  align-items: center;
}

.label-text {
  margin-right: 5px;
}

.example-data {
  white-space: nowrap;
  overflow: auto;
  text-overflow: ellipsis;
  width: 200px;
}


.spinner-border {
  width: 3rem;
  height: 3rem;
}

.disable-pointer-events {
  pointer-events: none;
  overflow: hidden;
}

.loading-mask {
  display: none;
  /* This will align child elements in a row */
  position: fixed;
  z-index: 99999;
  /* Make sure it's on top of everything else */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  /* This will center the child elements both horizontally and vertically */
}


.loading-mask-content {
  background-color: white;
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  width: 60%;
  /* Adjust this as needed */
  margin: auto;
}

.loading-spinner img {
  width: 100px;
  /* adjust as needed */
  height: 100px;
  /* adjust as needed */
  animation: spin 2s linear infinite;
}

.loading-status {
  margin-top: 20px;
  margin-bottom: 20px;
}

.loading-progress {
  width: 100%;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}



.modal-full {
  min-width: 100%;
}

.modal-full .modal-content {
  min-height: 100vh;
}

/* Ensures the dropdown menu appears under the entire button group */
.btn-group .dropdown-menu {
  width: 100%;
  /* Full width of the button group */
}

/* Custom Dropdown Menu Styles */
.dropdown-menu {
  background-color: #f8f9fa;
  /* Light background */
  border: 1px solid #e3e3e3;
  /* Light gray border */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  /* Subtle shadow */
  font-family: Arial, sans-serif;
  /* Professional font */
  font-size: 0.9rem;
  /* Appropriate font size */
}

.dropdown-item {
  color: #333;
  /* Darker text color for contrast */
  padding: 0.5rem 1rem;
  /* Comfortable padding */
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: #e7e7e7;
  /* Light gray background on hover */
  color: #212529;
  /* Slightly darker text */
}

.dropdown-divider {
  margin: 0.5rem 0;
  /* Space around dividers */
}


.grid-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.grid-box {
  flex: 1 1 auto;
  /* Allow boxes to grow and shrink */
  max-width: 200px;
  /* Maximum width for larger screens */
  margin: 5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  /* Rounded corners */
  padding: 15px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.7);
  /* Translucent white */
  backdrop-filter: blur(5px);
  /* Glass effect */
  border: 1px solid rgba(255, 255, 255, 0.5);
  /* White border for glass effect */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  /* Subtle shadow for depth */
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 120px;
  /* Fixed height for all boxes */
  margin: 5px;
}

.grid-box:hover {
  transform: translateY(-5px);
  /* Lift the box up slightly */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  /* More pronounced shadow on hover */
}

.grid-box.active {
  background-color: rgba(0, 123, 255, 0.7);
  /* Translucent bootstrap primary color */
  color: white;
  border-color: rgba(0, 123, 255, 0.5);
  /* Matching border color */
}

.grid-box i {
  font-size: 24px;
  /* Icon size */
  margin-bottom: 8px;
  /* Space between icon and text */
}

/* Style for the text inside the box to control overflow */
.grid-box span {
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Media query for tablets */
@media (max-width: 768px) {
  .grid-box {
    flex: 1 1 calc(50% - 10px);
    /* 2 columns for tablets */
    max-width: calc(50% - 10px);
  }
}

/* Media query for phones */
@media (max-width: 576px) {
  .grid-box {
    flex: 1 1 calc(33.333% - 10px);
    /* 3 columns for phones */
    max-width: calc(33.333% - 10px);
  }
}

/* Media query for very small screens */
@media (max-width: 400px) {
  .grid-box {
    flex: 1 1 calc(50% - 10px);
    /* 2 columns for very small screens */
    max-width: calc(50% - 10px);
  }
}

.vehicle-details {
  display: flex;
  flex-direction: column;
  margin: 0;
  /* Reset any default margins */
  padding: 0;
  /* Reset any default padding */
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-label {
  font-weight: bold;
  /* margin-right is removed to keep the small screen layout unchanged */
}

.detail-info {
  text-align: right;
  flex-grow: 1;
}

@media (min-width: 768px) {
  .vehicle-details {
    /* Flex direction and wrap are not needed since it's already set to column and no wrapping is required for single items */
    justify-content: space-between;
    /* This will only affect nested flex containers */
    background-color: #f9f9f9;
    /* Light background for the whole details section */
  }

  .detail-item {
    flex-basis: calc(50% - 20px);
    /* Adjust to 50% for 2 columns, minus padding */
    padding: 10px;
    /* Padding for each item for spacing */
    margin-bottom: 10px;
    /* Consistent bottom margin for items */
    border-bottom: 1px solid #eaeaea;
    /* Light border for separation */
  }

  /* Zebra-striping for better readability on larger screens */
  .detail-item:nth-child(odd) {
    background-color: #ffffff;
    /* White for odd items */
  }

  .detail-item:nth-child(even) {
    background-color: #f2f2f2;
    /* Lighter grey for even items */
  }

  .detail-row {
    flex-basis: 100%;
    /* Full width for the row with multiple items */
  }

  /* Align the label and info side by side within .detail-row for larger screens */
  .detail-row .detail-label,
  .detail-row .detail-info {
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
    /* Consistent right margin */
    margin-bottom: 0;
    /* Reset bottom margin for inline elements */
  }
}

/* Stacked layout for smaller screens */
@media (max-width: 767px) {
  .detail-item {
    margin-bottom: 5px;
  }
}

.dynamic-section {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
}

.headings {
  display: flex;
  font-weight: bold;
  padding: 10px;
  background-color: #f7f7f7;
}

.wash-item,
.headings {
  display: flex;
  align-items: center;
}

.wash-heading,
.wash-name,
.system-comment,
.user-comment {
  display: flex;
  align-items: center;
  text-align: left;
}

.wash-heading,
.wash-name {
  flex: 0 0 30%;
  /* Adjust the percentage to match the layout */
}

.system-comment,
.user-comment {
  flex: 0 0 25%;
}

.allowed-icon {
  color: #28a745;
  /* Bootstrap 'success' green */
  margin-right: 10px;
  width: 20px;
}

.disallowed-icon {
  color: #dc3545;
  /* Bootstrap 'danger' red */
  margin-right: 10px;
  width: 20px;
}

.fa-question-circle {
  color: #28a745;
  /* Bootstrap 'success' green */
  margin-right: 10px;
  width: 20px;
}

.photo-required-icon {
  color: #dc3545;
  /* Bootstrap 'danger' red */
  margin-right: 10px;
  width: 20px;
}

.wash-name {
  padding-right: 10px;
}

.system-comment {
  padding-right: 10px;
}

.user-comment {
  flex-grow: 1;
  padding: 5px;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  resize: none;
  /* Prevent manual resizing */
  overflow: hidden;
  /* Hide the scrollbar */
  min-height: 20px;
  /* Adjusted minimum height for a single line */
  line-height: normal;
  /* Ensure line height is normal for single line appearance */
  font-size: 16px;
  /* Adjust font size as needed */
}


/* ... existing styles ... */

.green-background {
  background-color: #d4edda;
  /* Light green background */
}

.red-background {
  background-color: #f8d7da;
  /* Light red background */
}

.yellow-background {
  background-color: #fcfcb5;
  /* Light red background */
}

/* Ensure text color contrasts well with the background */
.green-background .user-comment,
.red-background .user-comment {
  color: #495057;
  /* Darker text color for readability */
}

.title-small-screens {
  display: none;
  /* Hide by default */
  font-weight: bold;
  padding: 10px;
  margin-bottom: 10px;
}

/* Styles for larger screens remain unchanged */

@media (max-width: 767px) {
  .headings {
    display: none;
    /* Hide headings on small screens */
  }

  .title-small-screens {
    display: block;
    /* Show title on small screens */
  }

  .dynamic-section {
    /* Adjust the container's padding, margin, etc., if needed */
  }

  .wash-item {
    flex-direction: column;
    /* Stack elements vertically */
    align-items: flex-start;
    /* Align items to the start */
    padding: 10px;
    /* Adjust padding for smaller screens */
    border-bottom: 1px solid #eaeaea;
    /* Optional: Add a border for separation */
  }

  .wash-item .wash-name {
    font-weight: bold;
    /* Make wash name bold */
    display: flex;
    align-items: center;
    /* Align icon with text */
    margin-bottom: 5px;
    /* Space between wash name and system comment */
  }

  .wash-item .allowed-icon,
  .wash-item .disallowed-icon {
    margin-right: 10px;
    /* Space between icon and wash name */
    font-size: 1.2em;
    /* Adjust the size of the icon */
  }

  .wash-item .system-comment {
    font-size: 0.85em;
    /* Smaller text for system comment */
    color: #6c757d;
    /* Lighter color for system comment */
    margin-bottom: 5px;
    /* Space between system comment and user comment box */
  }

  .wash-item .user-comment {
    width: 100%;
    /* Full width for user comment box */
    margin-bottom: 10px;
    /* Space after the comment box */
  }
}

#upload-container {
  display: flex;
  flex-wrap: wrap;

}

#upload-box {
  width: 100px;
  height: 100px;
  border: 2px dashed #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 5px;
  cursor: pointer;
}

#upload-box .fa-camera {
  font-size: 30px;
  color: #333;
}

.uploaded-image {
  width: 100px;
  height: 100px;
  position: relative;
  margin: 5px;
  border: 1px solid #ccc;
  /* Optional: adds a border to the image container */
}

.uploaded-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ensures the image covers the area without distortion */
}

/* ... existing styles ... */

.progress-bar1 {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 5px;
  background-color: rgb(57, 255, 20);
  /* Changed color to green */
  width: 0%;
  transition: width 0.5s ease;
  /* Smooth transition for width change */
}

.tick-icon {
  display: none;
  /* Initially hidden */
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 20px;
  color: rgb(57, 255, 20);
}

/* @media (min-width: 992px) {
  .stacked-badges {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 991px) {
  .stacked-badges {
    display: flex;
    flex-direction: row;
  }
} */

.photo-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 1200px;
}

/* .photo-box {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}

.photo-box img {
  max-width: 100%;
  max-height: 100%;
} */
.photo-box {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  /* Ensures we can use absolute positioning inside */
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  /* Height of the box */
}

.photo-box img {
  width: 100%;
  /* Ensures the image covers the entire width */
  height: 100%;
  /* Ensures the image covers the entire height */
  object-fit: cover;
  /* Ensures the image covers the box without distortion */
}

.photo-caption {
  position: absolute;
  bottom: 0;
  /* Aligns the caption at the bottom of the photo box */
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.6);
  /* Semi-transparent background */
  color: white;
  text-align: center;
  padding: 4px 10px;
  /* Padding for text inside the caption */
  font-size: 12px;
  /* Appropriate font size for the caption */
}

/* Common styles for all photo icons */
.photo-icon {
  position: absolute;
  top: 8px;
  /* Distance from the top */
  right: 8px;
  /* Distance from the right */
  font-size: 24px;
  /* Size of the icon */
  width: 28px;
  /* Slightly larger to match font size */
  height: 28px;
  /* Slightly larger to match font size */
  display: flex;
  /* Center the icon inside */
  justify-content: center;
  /* Center horizontally */
  align-items: center;
  /* Center vertically */
  /* z-index: 10; */
  /* Ensures icon is above other content */
  background-color: white;
  /* Base background for icons */
  border-radius: 4px;
  /* Slight rounding for a cleaner look */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  /* Soft shadow for depth */
  transition: transform 0.2s, box-shadow 0.2s;
  /* Smooth hover effect */
}

/* Specific styles for approved icons */
.photo-icon-approved {
  color: green;
  /* Green color for the tick */
}

/* Specific styles for flagged icons */
.photo-icon-flagged {
  color: white;
  /* Icon color */
  background-color: #dc4c64;
  /* Red background for flagged */
}

/* Specific styles for pending icons */
.photo-icon-pending {
  color: white;
  /* Icon color */
  background-color: #e4a11b;
  /* Yellow background for pending */
}

/* Hover effect for a subtle lift */
.photo-icon:hover {
  transform: translateY(-2px);
  /* Slight lift on hover */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  /* Enhanced shadow on hover */
}




.sticky-offset {
  position: sticky;
  top: 0px;
  /* Adjust this value based on the actual height of your navigation bar */
  z-index: 10;
  /* Ensure it stays on top of other content */
  background: white;
  /* Optional: ensures the text doesn't show through */
}

.col-separator {
  border-right: 1px solid #ddd;
}

.col-separator:last-child {
  border-right: none;
}



.btn-group,
.btn-group button {
  margin-right: 2px;
  /* Minimal spacing between buttons */
}

#map {
  height: 60vh;
}

#GPSViewFilterByAutoComplete {
  z-index: 10;
}

/* Make html/body provide real height */
/* html,
body {
  height: auto;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
} */
/* Page never scrolls */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  /* <- no page-level scroll */
  overscroll-behavior-y: none;
}

/* Body is just a flex wrapper, not a scroller */
body {
  display: flex;
  flex-direction: column;
}

/* App fills the screen but does NOT scroll */
#app {
  flex: 1 1 auto;
  min-height: 0;
  /* critical for nested flex scrolling */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* <- don't scroll here */
}

/* Your logged-in view fills remaining height */
#LoggedIN {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

/* Sticky navbar lives INSIDE the scroller’s ancestor */
.navbar.sticky-top {
  position: sticky;
  top: 0;
  z-index: 1030;
}

/* The ONLY scroller */
.menu-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  /* <- the one true scroll area */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  /* blocks pull-to-refresh inside */
}


/* In case #Menu had inline height/overflow set elsewhere */
#Menu {
  height: auto !important;
  overflow: visible !important;
}

/* Hard guarantee for full height minus navbar (fallback) */
:root {
  --nav-h: 56px;
}

/* adjust if your navbar is taller */


.app-page {
  display: none;
  /* hidden by default */
  flex: 1 1 auto;
  /* fill remaining height of #LoggedIN */
  min-height: 0;
  /* allow inner scrolling */
  overflow: auto;
  /* page scrolls, not body */
  -webkit-overflow-scrolling: touch;
  /* smooth on iOS */
  overflow-x: hidden;
  /* no sideways scrollbars */
  max-width: 100%;
  /* never exceed viewport width */
  padding: 16px;
  /* add gutters so content isn't edge-to-edge */
  box-sizing: border-box;
  margin-left: 12px;
  /* adjust to taste */
  margin-right: 12px;
  padding-top: 16px;
  margin-bottom: 12px;
  /* include padding in width calc */
}

/* Center content & cap its width */
.app-page>* {
  margin-left: 12px;
  /* adjust to taste */
  margin-right: 12px;

  /* adjust: 960px, 1140px, etc. */
}

.app-page.active {
  display: block;
}





/* the visible page */


#liveViewTable tr.dup-row td {
  background-color: #ffd6d6 !important;
}

/* 1) Keep navbar content aligned with page gutters */
.navbar>.container,
.navbar>.container-fluid {
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 992px) {

  .navbar>.container,
  .navbar>.container-fluid {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* 2) Subtle bottom border + shadow */
.navbar {
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .25);
}

/* 3) Logo sizing + vertical alignment */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  /* space between logo and badges */
}

.navbar-brand img {
  height: 32px;
  width: auto;
}

/* 4) Keep everything centered vertically */
.navbar .container-fluid,
.navbar .container {
  display: flex;
  align-items: center;
}

/* 5) Nav links */
.navbar-nav .nav-link {
  white-space: nowrap;
  padding-left: .75rem;
  padding-right: .75rem;
  font-weight: 600;
}

/* 6) Badges inline with logo */


/* 7) Search input sizing */
.navbar .form-control {
  height: 38px;
  padding: .375rem .75rem;
  border-radius: .5rem;
}

/* 8) Compact, clean input for Swap Sites */
.navbar .site-swap {
  height: 36px;
  line-height: 1.2;
  padding: .375rem .75rem;
  border-radius: .5rem;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .9);
  color: #2b2b2b;
  width: clamp(160px, 22vw, 260px);
  box-shadow: none;
}

.navbar .site-swap::placeholder {
  color: #777;
}

.navbar .site-swap:focus {
  border-color: #82b1ff;
  outline: 0;
  box-shadow: 0 0 0 .15rem rgba(130, 177, 255, .35);
}

/* 9) Space before input */
.navbar .nav-end-gap {
  margin-right: 12px;
}

/* 10) Mobile adjustments */
@media (max-width: 991.98px) {
  .navbar .container-fluid {
    flex-wrap: wrap;
  }

  .navbar-brand {
    flex-wrap: wrap;
  }





  /* make the new badge span the full width (second row) */


  .navbar .site-swap {
    width: 100%;
    margin-top: .5rem;
  }
}




/* Default (desktop) logo */
.navbar-brand img {
  height: 32px;
  width: auto;
  content: url("Backgrounds/Logo-Nav.png");
  /* current logo */
}

/* On mobile (when navbar collapses) */
@media (max-width: 991.98px) {
  .navbar-brand img {
    content: url("Backgrounds/Logo-Swirl.png");
    /* swirl logo */
  }
}


/* 1) Lock the two top badges to fixed widths */
.stacked-badges {
  display: inline-grid;
  grid-template-columns: 135px 70px;
  /* ← set the exact widths you want */
  gap: 4px 6px;
  align-items: start;
}

/* bottom badge spans the combined width of the two above */
.stacked-badges .full-row {
  grid-column: 1 / -1;
  grid-row: 2;
  display: block;
  width: 100%;
}

/* 2) Make each badge a flex row: [label][scroll viewport] */
.stacked-badges .badge {
  display: flex;
  align-items: center;
  gap: .35em;
  font-size: .75rem;
  padding: .35em .55em;
  border-radius: 999px;
  line-height: 1;
  width: 100%;
  /* fill its fixed grid column */
  overflow: hidden;
  /* prevent growth from contents */
  white-space: nowrap;
  /* no wrapping inside the badge */
}

/* 3) The viewport that never changes size */
.scroll {
  flex: 1 1 auto;
  /* take remaining space after the label */
  min-width: 0;
  /* allow shrinking without pushing badge wider */
  overflow: hidden;
  /* clip scrolling text */
  position: relative;
  white-space: nowrap;
}

/* 4) The moving text */
.scroll span {
  display: inline-block;

}

.scroll.is-overflowing span {
  padding-left: 100%;
  animation: marquee 8s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* Grid spacing stays the same */
#HomePage #Menu .row {
  margin-left: 0;
  margin-right: 0;
}

/* App tile base */
.app-tile {
  --tile-size: clamp(120px, 26vw, 180px);
  /* responsive square */
  width: var(--tile-size);
  aspect-ratio: 1 / 1;
  /* perfect square */
  border-radius: 24px;
  padding: 14px;
  display: grid;
  place-items: center;
  gap: 10px;
  text-align: center;
  background: rgba(255, 255, 255, .08);
  /* subtle glass */
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  color: inherit;
  text-decoration: none;
  position: relative;
  /* so banner can sit inside */
}

/* Hover/active/focus */
.app-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .24);
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .24);
}

.app-tile:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .22);
}

.app-tile:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(130, 177, 255, .45);
}

/* Icon bubble */
.app-tile .icon-bubble {
  width: 56%;
  aspect-ratio: 1/1;
  border-radius: 22%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .08));
  border: 1px solid rgba(255, 255, 255, .25);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, .25), 0 6px 14px rgba(0, 0, 0, .18);
}

/* Use Bootstrap Icons you already load */
.app-tile .icon-bubble i {
  font-size: clamp(2rem, 6vw, 2.6rem);
  opacity: .95;
}

/* Label */
.app-tile .label {
  font-weight: 600;
  line-height: 1.2;
  font-size: .95rem;
  color: white;
}

/* Optional sublabel (kept subtle) */
.app-tile .sublabel {
  font-size: .8rem;
  color: #adb5bd;
  line-height: 1.1;
}

/* Color accents (optional per tile) */
.app-tile.theme-blue .icon-bubble {
  background: linear-gradient(180deg, rgba(99, 173, 255, .35), rgba(47, 119, 255, .25));
}

.app-tile.theme-green .icon-bubble {
  background: linear-gradient(180deg, rgba(89, 214, 164, .35), rgba(28, 157, 115, .25));
}

.app-tile.theme-amber .icon-bubble {
  background: linear-gradient(180deg, rgba(255, 200, 99, .35), rgba(223, 150, 22, .25));
}

.app-tile.theme-purple .icon-bubble {
  background: linear-gradient(180deg, rgba(205, 160, 255, .35), rgba(142, 95, 219, .25));
}

/* Layout: center the grid and let it wrap nicely */
.app-launcher {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(120px, 26vw, 180px), 1fr));
  gap: 16px;
  justify-items: center;
}

/* Motion-safe */
@media (prefers-reduced-motion: reduce) {
  .app-tile {
    transition: none;
  }

  .app-tile:hover,
  .app-tile:active {
    transform: none;
  }
}

/* Banner across top of tile */
/* Banner across top of tile */
.app-tile .tile-banner {
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  background: #dc3545;
  /* red alert color */
  color: #fff;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 6px 6px 0 0;
  z-index: 3;
  /* above the ::after overlay */
}

.app-tile.inactive {
  pointer-events: none;
  /* block clicks */
  cursor: not-allowed;
}

/* Dim all children EXCEPT the banner */
.app-tile.inactive> :not(.tile-banner) {
  filter: grayscale(100%) saturate(0) brightness(0.8);
}

.app-tile.inactive::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.35);
  border-radius: inherit;
  z-index: 2;
}

.app-page,
#Menu,
#EnterUnit,
#customerSearchPage,
#heatMapPage,
#GenerateReportPage,
#generateSpreadsheetsDiv,
#BulkPhotoReview,
#GpsView,
#liveViewPage {
  height: auto !important;
  max-height: none !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

/* Make sure their flex parents let them grow and scroll */
#LoggedIN {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  /* critical for nested scrollers */
}

.menu-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/* Parent containers in the stack */
#LoggedIN,
.menu-scroll,
.app-page {
  min-height: 0;
  /* allows children to actually scroll */
}

/* ===== Card base ===== */
.hit-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 8px 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  outline: none;
}

/* Hover/Focus */
.hit-card:hover,
.hit-card:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .10);
  border-color: rgba(0, 0, 0, .10);
}

/* Title / SearchIndex */
.hit-name {
  font-weight: 650;
  font-size: 1rem;
  color: #1b1f23;
  line-height: 1.25;
  margin: 2px 0 8px;
  /* allow Algolia <em> highlights to stand out */
}

.hit-name em {
  background: rgba(255, 223, 77, .35);
  font-style: normal;
  padding: 0 .15em;
  border-radius: 3px;
}

/* Meta row: badges for Type / Owner */
.hit-meta {
  display: flex;
  flex-wrap: wrap;
  /* wraps on small screens */
  gap: 8px;
  align-items: center;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .8125rem;
  line-height: 1;
  font-weight: 600;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Distinct badge colors */
.badge-type {
  background: rgba(0, 102, 204, .10);
  color: #0a5dc2;
  border: 1px solid rgba(10, 93, 194, .18);
}

.badge-owner {
  background: rgba(16, 148, 92, .10);
  color: #0e8a58;
  border: 1px solid rgba(14, 138, 88, .18);
}

/* ===== Responsiveness ===== */
/* Small screens: slightly larger title for readability, badges full-width if crowded */
@media (max-width: 480px) {
  .hit-card {
    padding: 12px;
    border-radius: 10px;
  }

  .hit-name {
    font-size: 1.05rem;
    margin-bottom: 10px;
  }

  .badge {
    font-size: .8125rem;
    padding: 7px 10px;
  }
}

/* Medium+ screens: keep compact, meta row sits inline */
@media (min-width: 481px) {
  .hit-meta {
    gap: 10px;
  }
}

/* Motion preference */
@media (prefers-reduced-motion: reduce) {
  .hit-card {
    transition: none;
  }
}

/* Mobile tweaks */
@media (max-width: 480px) {
  .aa-item-header {
    flex-direction: column;
    /* stack title and type */
    align-items: flex-start;
    gap: 4px;
  }

  .aa-item-title {
    max-width: 100%;
    /* let it use full width */
    font-size: 14px;
  }

  .aa-item-type {
    font-size: 11px;
    /* smaller badge under the title */
    padding: 1px 6px;
  }

  .aa-item-owner {
    font-size: 11px;
    /* slightly smaller for mobile */
    margin-top: 2px;
  }

  .aa-item-wrapper {
    padding: 8px 12px;
    /* slightly larger touch padding */
  }
}