/* html, body {
  margin: 0;
} */

html {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  height: 100%;
}

#mapid {
  height: 100%;
  width: 100%;
 }

#map-style-menu {
  position: absolute;
  background: #fff;
  padding: 10px;
}

.leaflet-z-index {
  z-index: 1;
}

.mapboxgl-popup {
  max-width: 400px;
  font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif;
  }

.table.is-table-borderless td, .table.is-table-borderless th {
  border: 0px;
}

.outer {
  position: fixed;
  top: 54px;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  padding: 0;
  z-index: -100;
}

.test-box {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: none;
  z-index: 100
}

.mapbox-polygon-save {
  position: fixed;
  background-color: #ffffff;
  top: 64px;
  right: 12px;
  /* bottom: max(calc(100% - 446px), 0px); */
  display: none;
  z-index: 100;
  width: 300px;
  overflow-y: scroll;
}

.mapbox-sidebar-search {
  position: fixed;
  background-color: #ffffff;
  top: 64px;
  right: 12px;
  bottom: 12px;
  display: block;
  z-index: 50;
  width: 400px;
  overflow-y: scroll;
}

.mapbox-sidebar-hidden {
  position: fixed;
  background-color: #ffffff;
  top: 64px;
  right: 12px;
  bottom: 12px;
  display: block;
  z-index: 50;
  width: 50px;
  overflow-y: scroll;
}

.mapbox-window-sidebar {
  position: absolute;
  background-color: #ffffff;
  top: 12px;
  right: 12px;
  bottom: 12px;
  display: block;
  z-index: 50;
  width: 300px;
  overflow-y: scroll;
}

.mapbox-window-sidebar-hidden {
  position: absolute;
  background-color: #ffffff;
  top: 12px;
  right: 12px;
  bottom: 12px;
  display: block;
  z-index: 50;
  width: 50px;
  overflow-y: scroll;
}

.gridplan-window-sidebar {
  position: absolute;
  background-color: #ffffff;
  top: 12px;
  right: 12px;
  bottom: 350px;
  /* max-height: 600px; */
  display: block;
  z-index: 50;
  width: 450px;
  overflow-y: scroll;
}

.gridplan-window-sidebar-hidden {
  position: absolute;
  background-color: #ffffff;
  top: 12px;
  right: 12px;
  bottom: 350px;
  display: block;
  z-index: 50;
  width: 50px;
  overflow-y: scroll;
}

.mapbox-bottombar-feeder {
  position: fixed;
  background-color: #ffffff;
  right: 84px;
  bottom: 48px;
  left: 84px;
  display: block;
  z-index: 51;
  max-height: 350px;
  max-width: 1200px;
  overflow-x: scroll;
  overflow-y: scroll;
}

.mapbox-bottombar-gridplan {
  position: fixed;
  background-color: #ffffff;
  right: 12px;
  bottom: 12px;
  left: 10px;
  padding-top: 0;
  display: block;
  z-index: 51;
  height: 350px;
  /* max-width: 1000px; */
  overflow-x: scroll;
  overflow-y: auto;
}

.mapbox-bottombar-gridplan  .tabs {
    margin-bottom: 12px;
    padding-top: 12px;
    position: sticky;
    top: 0;
    z-index: 2;
    background: white; /* or your box background */
}

.highlight-row {
    background-color: #ffe066 !important;
    transition: background-color 0.5s;
}

.mapbox-bottombar-gridplan .table td:last-child, .mapbox-bottombar-gridplan .table th:last-child {
    width: 1%;
    white-space: nowrap;
}

.map-card {
  margin-bottom: 20px;
}

/* This may not be applicable anymore - 2023_07 - MB */
.mapbox-legend {
  position: fixed;
  background-color: #ffffff;
  bottom: 20px;
  left: 12px;
  /* bottom: max(calc(100% - 446px), 0px); */
  display: block;
  z-index: 100;
  width: 200px;
  overflow-y: scroll;
  padding: 0.75rem;
}

/* This max-height does get modified by javascript when the legend is loaded */
.legend-ctrl {
  padding: 0.75rem;
  max-height: calc(100vh - 448px);
  max-height: calc(100dvh - 448px);
  /* max-height: inherit; */
  overflow-y: scroll;
}

/* This max-height does get modified by javascript when the legend is loaded */
.legend-ctrl-gridplan {
  padding: 0.75rem;
  max-height: calc(100vh - 374px);
  max-height: calc(100dvh - 374px);
  /* max-height: inherit; */
  overflow-y: scroll;
}

.mapbox-distance-container {
  position: fixed;
  top: 104px;
  left: 50px;
  z-index: 100;
  }
   
.mapbox-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;
  }

.project-input {
  position: fixed;
  background-color: #ffffff;
  top: 64px;
  right: 12px;
  bottom: max(calc(100% - 108px), 0px);
  display: block;
  z-index: 100;
  width: 250px;
  overflow-y: scroll;
}

.panel-block-input {
  display: block;
}

.test-button {
    width: 10em;
    display: block;
    margin: 1em;
}

.signin {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-right: -50%;
  transform: translate(-50%, -50%) 
}

.svg-container {
  display: inline-block;
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  vertical-align: top;
  overflow: hidden;
}
.svg-content {
  display: inline-block;
  position: absolute;
  top: 0;
  left: 0;
}

/* The four below are related to the leaflet legend */
.info {
  padding: 6px 8px;
  font: 14px/16px;
  background: white;
  background: rgba(255,255,255,0.8);
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  border-radius: 5px;
}
.info h4 {
  margin: 0 0 5px;
  color: #777;
}

.legend {
  line-height: 18px;
  color: #555;
  /* background: rgba(255, 255, 255, 0.8); */
}

.legend i {
  width: 18px;
  height: 18px;
  float: left;
  margin-right: 8px;
  opacity: 0.7;
}

/* Add CSS styles for the tooltip */
.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: min(calc(100vw - 20px), 400px);
  background-color: #eff5fb;
  color: #296fa8;
  font-weight: 400;
  text-align: left;
  border-radius: 4px;
  padding: 10px;
  position: absolute;
  z-index: 100;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}