/* These styles are generated from project.scss. */
html, body{
  height: 100%;
}

.nav-logo{
  height: auto;
  width: 200px;
}

.alert-debug {
  color: black;
  background-color: white;
  border-color: #d6e9c6;
}

.alert-error {
  color: #b94a48;
  background-color: #f2dede;
  border-color: #eed3d7;
}


.container{
  margin-left: 0px;
  margin-right: 0px;
  padding-left: 0px;
  padding-right: 0px;
}

.list-group-flush{
  margin-left: 0px !important;
  margin-right: 0px !important;
  margin-top: 0px !important;
  margin-bottom: 0px !important;
}

.sidebar{
  padding-top: 15px;
  padding-right: 15px;
  min-height: calc(100vh - 56px);
  max-height: calc(100vh - 56px);
  display: block;
  width: 100%;
}



.sidebar-list{
  overflow-y: scroll;
  overflow-x: hidden;
  min-height: calc(100vh - 190px);
  max-height: calc(100vh - 190px);
  padding-bottom: 40px;
}

.stops-sidebar-list{
  overflow-y: scroll;
  overflow-x: hidden;
  min-height: calc(100vh - 150px);
  max-height: calc(100vh - 150px);
}

.sidebar-header{
  padding-left: 20px;
}

.mb-1{
  margin-bottom: 0px !important;
}

.page-link{
  font-size: 11px;
}

.student-count{
  font-size: 14px;
  font-weight: normal;
  margin-left: 20px;
  position: relative;
  top: -3px;
}

.list-group-item-header{
  display: block;
  background-color: rgba(248, 249, 250);
  color: rgba(0, 0, 0, 0.7);
  margin: 0;
  padding: 5px;
}

/* .list-group-item{
  padding: 0;
} */

.no-bottom-margin{
  margin-bottom: 0;
}

#page-nav-bar{
  bottom: -25px;
  position: absolute;
  padding-top: 10px;
  padding-bottom: 5px;
  text-align: center;
  background-color: white;
  width: 100%;
}

#page-nav-container{
  margin: auto;
  width: 50%;
}

.student-card{
  color:rgba(68, 68, 68, 1);
  font-size: 14px;
  padding-left: 2px;
}

.col-lg-3, .col-lg-9{
  padding: 0;
}

.map{
  min-height: calc(100vh - 140px);
}

.student-list-map-overlay{
  max-height: calc(100vh - 170px);
  overflow-y: auto;
  /* position: relative;
  margin-bottom: 10px; */
}

.map-sm{
  min-height: 400px;
}

.clickable{
  cursor: pointer;
}

.clickable:hover strong{
  color: rgb(56, 103, 204);
}

.filter-bar{
  background-color: rgb(243, 243, 243);
  width: 100%;
  margin-left: 0;
  padding-top: 10px;
  padding-bottom: 10px;
  color: rgba(0, 0, 0, 0.7);
  text-align: center;
}

.icon{
  padding-top: 5px;
}

.add-student-button{
  float: right;
  margin-right: 20px;
}

div.content{
  margin: 30px;
}

tbody th{
  font-weight: normal;
}

.btn-choice-inactive{
  background-color: transparent;
  color: rgb(158, 158, 158);
  border-color: transparent;
}

.pointer{
  cursor: pointer;
}

.route-leg:hover{
  border: 1px solid red;
  background-color:#ffe8e8;
  border-radius: 3px;
}

.route-leg-hover{
  border: 1px solid red;
  background-color:#ffe8e8;
  border-radius: 3px;
}

.route-color{
  height: 15px;
  width: 15px;
  border: 0px;
  margin-right: 15px;
  z-index: 10000;
  display: inline-block;
}

.field-trip-color{
  height: 15px;
  width: 15px;
  border: 0px;
  margin-right: 15px;
  z-index: 10000;
  display: inline-block;
}


.stop-buttons{
  display: none;
  float: right;
}

.route-buttons, .trip-buttons, .field-trip-buttons{
  float: right;
  position: relative;
}

.field-trip-buttons{
  margin-right: 10px;
}


.route-button{
  cursor: pointer;
  color: rgb(72, 72, 72);
  font-size: 18px;
}

.route-button2{
  cursor: pointer;
  color: rgb(72, 72, 72);
  font-size: 18px;
  padding: 5px;
}

.overlay {
  position: absolute; /* Sit on top of the page content */
  display: block; /* Hidden by default */
  width: 100%; /* Full width (cover the whole page) */
  height: 100%; /* Full height (cover the whole page) */
  min-height: calc(100vh - 56px);
  max-height: calc(100vh - 56px);
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.5); /* Black background with opacity */
  z-index: 2; /* Specify a stack order in case you're using a different order for other elements */
  cursor: pointer; /* Add a pointer on hover */
  color: white;
  font-size: 36px;
  text-align: center;
  padding-top: 25%;
}


#map-student-list {
  position: absolute; /* Sit on top of the page content */
  /* display: inline-block;  */
  display: none; /* Hidden by default */
  width: 300px; /* Full width (cover the whole page) */
  height: auto; /* Full height (cover the whole page) */
  top: 40px;
  left: 0;
  right: 0;
  /* bottom: 0; */
  background-color: rgba(255,255,255,0.8); /* Black background with opacity */
  z-index: 3; /* Specify a stack order in case you're using a different order for other elements */
  cursor: pointer; /* Add a pointer on hover */
  color: black;
  font-size: 12px;
  margin-top: 58px;
}

#map-stop-add-student-list {
  position: absolute; /* Sit on top of the page content */
  /* display: inline-block;  */
  display: none; /* Hidden by default */
  width: 300px; /* Full width (cover the whole page) */
  height: auto; /* Full height (cover the whole page) */
  top: 50px;
  left: 0;
  right: 0;
  /* bottom: 0; */
  background-color: rgba(255,255,255,0.8); /* Black background with opacity */
  z-index: 3; /* Specify a stack order in case you're using a different order for other elements */
  cursor: pointer; /* Add a pointer on hover */
  color: black;
  font-size: 12px;
  margin-top: 58px;
}

#enable-magic-edit-button {
  position: absolute; /* Sit on top of the page content */
  /* display: inline-block;  */
  display: none; /* Hidden by default */
  top: 0;
  left: 8px;
  right: 0;
  /* bottom: 0; */
  z-index: 3; /* Specify a stack order in case you're using a different order for other elements */
  margin-top: 58px;
}

#enable-magic-edit-button2 {
  position: absolute; /* Sit on top of the page content */
  /* display: inline-block;  */
  display: none; /* Hidden by default */
  top: 0;
  left: 50px;
  right: 0;
  /* bottom: 0; */
  z-index: 3; /* Specify a stack order in case you're using a different order for other elements */
  margin-top: 58px;
}

#magic-edit-results {
  position: absolute; /* Sit on top of the page content */
  /* display: inline-block;  */
  display: none; /* Hidden by default */
  top: 50px;
  left: 8px;
  right: 0;
  width: 300px;
  height: auto;
  /* bottom: 0; */
  z-index: 3; /* Specify a stack order in case you're using a different order for other elements */
  margin-top: 58px;
}

#saving-progress-box {
  position: absolute; /* Sit on top of the page content */
  /* display: inline-block;  */
  display: none; /* Hidden by default */
  top: 50px;
  left: 8px;
  right: 0;
  width: 300px;
  height: auto;
  /* bottom: 0; */
  z-index: 3; /* Specify a stack order in case you're using a different order for other elements */
  margin-top: 58px;
}

#magic-edit-results2 {
  position: absolute; /* Sit on top of the page content */
  /* display: inline-block;  */
  display: none; /* Hidden by default */
  top: 50px;
  left: 8px;
  right: 0;
  width: 300px;
  height: auto;
  /* bottom: 0; */
  z-index: 3; /* Specify a stack order in case you're using a different order for other elements */
  margin-top: 58px;
}

.mapbox-gl-draw_ctrl-draw-btn {
  display: none !important;
}

.mapboxgl-popup {
  max-width: 360px !important;
}

#student-bulk-edit-box {
  position: absolute; /* Sit on top of the page content */
  /* display: inline-block;  */
  display: none; /* Hidden by default */
  width: 680px; /* Full width (cover the whole page) */
  height: auto; /* Full height (cover the whole page) */
  top: 0;
  left: 0;
  right: 0;
  /* bottom: 0; */
  background-color: rgba(255,255,255,0.8); /* Black background with opacity */
  z-index: 3; /* Specify a stack order in case you're using a different order for other elements */
  cursor: pointer; /* Add a pointer on hover */
  color: black;
  font-size: 14px;
  margin-top: 58px;
}

#route-bulk-edit-box {
  position: absolute; /* Sit on top of the page content */
  /* display: inline-block;  */
  display: none; /* Hidden by default */
  width: 680px; /* Full width (cover the whole page) */
  height: auto; /* Full height (cover the whole page) */
  top: 0;
  left: 0;
  right: 0;
  /* bottom: 0; */
  background-color: rgba(255,255,255,0.8); /* Black background with opacity */
  z-index: 3; /* Specify a stack order in case you're using a different order for other elements */
  cursor: pointer; /* Add a pointer on hover */
  color: black;
  font-size: 14px;
  margin-top: 58px;
}

#stop-bulk-edit-box {
  position: absolute; /* Sit on top of the page content */
  /* display: inline-block;  */
  display: none; /* Hidden by default */
  width: 680px; /* Full width (cover the whole page) */
  height: auto; /* Full height (cover the whole page) */
  top: 0;
  left: 0;
  right: 0;
  /* bottom: 0; */
  background-color: rgba(255,255,255,0.8); /* Black background with opacity */
  z-index: 3; /* Specify a stack order in case you're using a different order for other elements */
  cursor: pointer; /* Add a pointer on hover */
  color: black;
  font-size: 14px;
  margin-top: 58px;
}

.popup-icon{
  color:rgb(83, 83, 83)
}

.loading-spinner{
  position:relative;
  margin-top: 20px;
  font-size: 36px;
}

.pointer{
  cursor: pointer;
}

.bus-popover-content{
  font-size: small;
  display: none;
  width: 750px;
  border: 1px solid rgb(150, 150, 150);
  border-radius: 4px;
  background-color: white;
}

.bus-popover-content .alert{
  height: 30px;
  padding: 5px;
  margin-bottom: 0px;
}

.bus-popover-content .row{
  padding: 10px;
}

.d-lg-block{
  display: block;
}

.vr{
  display: inline-block;
  align-self: stretch;
  width: 1px;
  min-height: 1em;
  background-color: currentColor;
  opacity: .25;
}

.content-row{
  max-height: calc(100vh - 80px);
  overflow: hidden;
}

.student-list-div{
  padding-bottom: 200px;
}

#route-list-div{
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  overflow-x: hidden;
}

#field-trip-list-div{
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  overflow-x: hidden;
}

.bus-color{
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 5px;
  top: 3px;
  position: relative;
}

/* override the default blue inactive/black active */
.navbar-nav li.active a, .text-primary{
  color: #007bff !important;
}

.nav-link{
  color: #495057 !important;
  opacity: 0.7 !important;
}

.nav-link:hover{
  opacity: 1 !important;
  color: #495057 !important;
}

.nav-link.active{
  color: #007bff !important;
  opacity: 1 !important;
}

.nav-link h6{
  font-size: 12px;
  padding-top: 4px;
  line-height: 14px;
}

.nav-link.active h6{
  font-size: 14px;
  line-height: 14px;
}

.navbar-dark .navbar-nav .nav-link{
  opacity: 1.0 !important;
}

.btn-primary, .btn-info{
  background-color: #007bff !important;
  border-color: #007bff !important;
}

.btn-danger{
  background-color: #dc3444 !important;
  border-color: #dc3444 !important;
}

.text-danger {
  color: #dc3444 !important;
}

.loadEditStudent {
  background-color: rgba(248, 249, 250);
  box-sizing: border-box;
}

#animation-controller {
  position: absolute; /* Sit on top of the page content */
  /* display: inline-block;  */
  display: none; /* Hidden by default */
  width: 50%; /* Full width (cover the whole page) */
  height: 70px; /* Full height (cover the whole page) */
  /* top: 0; */
  left: 0;
  /* right: 0; */
  bottom: 85px;
  background-color: rgba(255,255,255,0.95); /* Black background with opacity */
  z-index: 3; /* Specify a stack order in case you're using a different order for other elements */
  color: black;
  font-size: 36px;
  margin-top: 58px;
  filter: drop-shadow(5px -5px 20px rgb(156, 156, 156));
  padding-left: 15px;
}

.animation-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 25px;
  background: #d3d3d3;
  outline: none;
  opacity: 0.7;
  -webkit-transition: .2s;
  transition: opacity .2s;
}

.animation-slider:hover {
  opacity: 1;
}

.animation-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  background: #007bff;
  cursor: pointer;
}

.animation-slider::-moz-range-thumb {
  width: 25px;
  height: 25px;
  background: #007bff;
  cursor: pointer;
}

.optimization-stop{
  position: absolute;
  z-index: 100;
  width: 100%;
  top: 0px;
  display: none;
}

.trip-schools-list {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background-color: #FFFFFF;
  border: 1px solid #CCCCCC;
  padding: 5px;
  width: 120px;
  z-index: 99999 !important;
  overflow-x: visible !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  border-radius: 4px;
  font-size: 11px;
  line-height: 1.3;
  word-wrap: break-word;
  white-space: normal;
  max-width: 200px;
}

/* Ensure popup containers allow tooltip overflow */
.mapboxgl-popup-content {
  overflow-x: visible !important;
}

/* Ensure the add stop popup allows tooltip overflow */
#add_stop_from_map {
  overflow-x: visible !important;
}

#add_stop_from_map div[style*="overflow-y: scroll"] {
  overflow-y: scroll !important;
  overflow-x: visible !important;
}

/* Alternative approach - target the specific scroll container */
#add_stop_from_map > div {
  overflow-y: scroll !important;
  overflow-x: visible !important;
}

/* Ensure the scroll container doesn't clip tooltips */
#add_stop_from_map div[style*="height: 120px"] {
  overflow-y: scroll !important;
  overflow-x: visible !important;
}

/* Ensure trip labels don't clip tooltips */
#add_stop_from_map label {
  overflow-x: visible !important;
  white-space: normal;
  word-wrap: break-word;
}

/* Force the scroll container to allow horizontal overflow for tooltips */
#add_stop_from_map div[style*="overflow-y: scroll"] {
  overflow-y: scroll !important;
  overflow-x: visible !important;
  clip-path: none !important;
}

/* Additional specificity for the scroll container */
#add_stop_from_map > div[style*="height: 120px"] {
  overflow-y: scroll !important;
  overflow-x: visible !important;
  clip-path: none !important;
}

/* Smart positioning for tooltips that would go off-screen */
.trip-schools-list.off-screen-right {
  left: auto !important;
  right: 100% !important;
}

.trip-schools-list.off-screen-top {
  top: auto !important;
  bottom: 0 !important;
}

/* Ensure tooltips don't get cut off by popup boundaries */
.mapboxgl-popup {
  overflow: visible !important;
}

.mapboxgl-popup-content {
  overflow: visible !important;
}

.parent-portal{
  width: 100%;
  position: absolute;
  top: 72px;
  left: 0;
  padding-top: 20px;
}

.student-assignments-clear {
  align-items: center;
  background: #cecece;
  border-radius: 50%;
  color: rgba(0, 0, 0, .54);
  cursor: pointer;
  display: flex;
  height: 18px;
  justify-content: center;
  width: 18px;
  z-index: 10;
  font-size: 10px;
}

li.nav-item2 {
  display: block !important;
}

a.nav-link2  {
  width: calc(100%-20px);
  display: block;
  padding: 12px 10px 5px 10px;
  margin-bottom: 10px;
  margin-right: 20px;
}

a.nav-link2.active  {
  color: #ffffff;
  background-color: #007bff !important;
}

.nav-tabs2 {
  display: block !important;
}

.trip-data-display {
  font-size: 12px;
}

.trip-data-header {
  font-size: 12px;
  font-weight: bold;
}

#measure-distance-button {
  display: none;
  position: absolute;
  top: 100px;
  left: 10px;
  z-index: 999;
}

#close-distance-button {
  display: none;
  position: absolute;
  top: 100px;
  left: 55px;
  z-index: 999;
}

.distance-container {
    position: absolute;
    top: 150px;
    left: 10px;
    z-index: 999;
}

.distance-container > * {
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    display: block;
    margin: 0;
    padding: 5px 10px;
    border-radius: 3px;
}

#edit-school-location-box {
  display: none;
  position: absolute;
  top: 60px;
  left: 0;
  z-index: 999;
  background-color: white;
}

.progress-animation {
  width: 0;
  height: 5px;
  background-color: #6c757d;
  animation: fill 2s infinite;
  display: none;
}

.resequence-controls {
  position: absolute;
  top: 10px;
  right: 50px;
  background: white;
  padding: 10px;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  width: 150px;
}

.resequence-controls button {
  display: block;
  margin: 5px 0;
  width: 100%;
}

.sequence-marker {
  cursor: pointer;
  transition: transform 0.2s;
}

.sequence-marker:hover {
  transform: scale(1.1);
}

@keyframes fill {
  0% {
      width: 0;
  }
  100% {
      width: 100%;
  }
}

.re-sequence-stop-button {
  cursor: pointer;
  color: rgb(72, 72, 72);
  padding: 2px;
}

.re-sequence-stop-button:hover {
  background-color: #cccccc;
}

#global-loading-indicator {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(255,255,255,0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
#global-loading-indicator .spinner-border {
  width: 3rem;
  height: 3rem;
  margin-top: 200px;
}

/* Custom Multiselect Styles */
.custom-multiselect-container {
  position: relative;
  width: 100%;
}

.custom-multiselect-input {
  cursor: pointer;
  background-color: #fff;
}

.custom-multiselect-input:focus {
  cursor: text;
}

.custom-multiselect-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 1060;
  max-height: 300px;
  overflow: hidden;
  margin-top: 2px;
}

.custom-multiselect-search {
  padding: 8px;
  border-bottom: 1px solid #eee;
}

.custom-multiselect-search input {
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 4px 8px;
  width: 100%;
  font-size: 14px;
}

.custom-multiselect-options {
  max-height: 200px;
  overflow-y: auto;
  padding: 0;
}

.custom-multiselect-option {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f5f5f5;
  transition: background-color 0.2s;
}

.custom-multiselect-option:hover {
  background-color: #f8f9fa;
}

.custom-multiselect-option:last-child {
  border-bottom: none;
}

.custom-multiselect-checkbox {
  margin-right: 8px;
  margin-bottom: 0;
}

.custom-multiselect-option label {
  margin: 0;
  cursor: pointer;
  flex: 1;
  font-size: 14px;
}

.custom-multiselect-actions {
  padding: 8px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 8px;
}

.custom-multiselect-actions .btn {
  font-size: 12px;
  padding: 4px 8px;
}

.custom-multiselect-selected {
  margin-top: 4px;
  font-size: 12px;
  color: #666;
}

.custom-multiselect-selected .selected-count {
  font-weight: 500;
}

.custom-multiselect-option.hidden {
  display: none;
}