body {
  height: 100dvh;
  width: 100%;
  margin: 0;
  display: table;
  overflow: hidden;
}

.navbar {
  padding: unset;
  top: 0;
  display: flex;
  flex-wrap: nowrap;
  background-color: rgb(168, 186, 185);
}

.mylogo {
  text-align: left;
  padding-left: 10px;
  float: left;
}

.mylogo>a>img {
  height: 50px;
}

.mygreeting {
  text-align: right;
  padding-right: 10px;
  float: right;
  font-size: 14px;
  /* padding-top: 1em;
  white-space: nowrap; */
}

.myloginform {
  text-align: right;
  padding-right: 10px;
  /* padding-top: 5px; */
  padding-top: 0.4em;
  float: right;
  font-size: 14px;
  display: flex;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.messages {
  text-align: left;
}

.mapwrapper {
  display: table-row;
  height: 100%;
}

#mapdiv {
  display: table-cell;
  width: 100%;
  height: 100%;
}

#loading-indicator {
  display: none;
}

.loading #loading-indicator {
  display: block;
  z-index: 9999;
  position: fixed;
  top: 1em;
  /* margin-left: 40%;
  width:auto; */
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

#loading-indicator .loading-text {
  background-color: #000000;
  padding: 0.1em 1em 0.1em 1em;
  border-radius: 4px;
  color: white;
  opacity: 0.55;
  font-family: Verdana, Arial, 'Lucida Grande', Sans-Serif;
}

.leaflet-verticalcenter {
  position: absolute;
  z-index: 1000;
  pointer-events: none;
  top: 50%;
  /* possible because the placeholder's parent is the map */
  transform: translateY(0%, -50%);
  /* using the CSS3 Transform technique */
  padding-top: 10px;
}

.leaflet-verticalcenter .leaflet-control {
  margin-bottom: 10px;
}

.leaflet-horizontalcenter {
  left: 50%;
  transform: translate(-50%, 0%);
}

.leaflet-control-mouseposition,
.leaflet-control-scale,
.leaflet-control-mouseposition,
img.leaflet-control {
  margin-left: 5px !important;
  margin-bottom: 10px !important;
}

.leaflet-control-layers-toggle {
  background-color: rgba(0, 0, 0, 0.7) !important;
}

.leaflet-control-layers-expanded {
  background-color: rgba(0, 0, 0, 0.7) !important;
  color: white;
}

.leaflet-control-layers {
  background: unset;
}

.leaflet-control-layers-expanded {
  /* display: none; */
}

.easy-button-button {
  background-color: rgba(0, 0, 0, 0.7) !important;
  color: #fff !Important;
}

.leaflet-popup a {
  color: white !important;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background-color: rgba(0, 0, 0, 0.7) !important;
  color: #fff;
}

.leaflet-popup-content-wrapper {
  border-radius: 4px;
}

.sites-selection-menu-title {
  display: block;
  padding: 5px 10px;

  &:hover {
    background: rgba(255, 255, 255, 0.1)
  }
}

.leaflet-control-zoom>:is(.leaflet-control-zoom-in, .leaflet-control-zoom-out) {
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
}

.leaflet-control-zoom>:is(.leaflet-control-zoom-in, .leaflet-control-zoom-out):focus {
  background-color: rgba(0, 0, 0, 0.7);
  ;
}

.leaflet-control-zoom>:is(.leaflet-control-zoom-in, .leaflet-control-zoom-out):hover {
  background-color: rgba(0, 0, 0, 0.6);
  ;
}

.leaflet-control-zoom>:is(.leaflet-control-zoom-in, .leaflet-control-zoom-out).leaflet-disabled {
  background-color: rgba(114, 114, 114, 0.6);
  ;
}

.custom-select {
  background-color: rgba(0, 0, 0, 0.7) !important;
  color: white;
}

bottom-panel {
  transition: 0.3s;
  width: 100vw;
  display: block;
  max-height: 500px;
  box-shadow: -5px 0 8px 8px rgba(0, 0, 0, 0.2);
  overflow: visible;
  position: relative;
  z-index: 5000;
}

.leaflet-top.leaflet-left {
  z-index: 2000;
}

.leaflet-top.leaflet-left>.leaflet-control {
  pointer-events: none;
}

#pane {
  margin: unset !important;
}

@keyframes is-drawing {
  from {
    opacity: 0.1
  }

  to {
    opacity: 0.8
  }
}

.is-drawing {
  &:after {
    z-index: 500;
    content: "";
    display: block;
    animation-name: is-drawing;
    animation-duration: 2s;
    animation-direction: alternate;
    animation-iteration-count: infinite;
    position: absolute;
    height: 100%;
    width: 100%;
    border: 3px solid rgb(36, 124, 156);
    pointer-events: none;
  }
}

/* for overview site hover */
.leaflet-popup-tip {
  background: rgba(0, 0, 0, 0.7) !important;
  box-shadow: none !important;
}

.temp-dot {
  animation: is-drawing 2s infinite alternate;
}

.draw-tools {
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
}

.leaflet-tooltip {
  &:before {
    content: unset;
  }

  margin:unset;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: unset;
  padding:7px 14px;
}

.contour-data {
  svg {
    height: 10px;
    paint-order: stroke;
    overflow: visible;
  }

  text {
    fill: red;
    stroke: white;
    stroke-width: 3px;
    stroke-linejoin: round;
  }
}

.pointer-events {
  pointer-events: auto;
}

.no-pointer-events {
  pointer-events: none;
}

/* make sure the tooltip is not covered by the map */
.apexcharts-tooltip {
  z-index: 9999 !important;
}