/* -------------------------------------------------
 * Select view control panel
 * ------------------------------------------------- */

.select_view {
  font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif;
  position: absolute;
  width: 200px;
  top: 0px;
  right: 42px;
  padding: 5px;
  margin-top: 6px;
  margin-right: 0px;
}
 
.select_view .select_view_sub {
  background-color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  padding: 10px;
  margin-bottom: 10px;
}
 
.select_view_sub fieldset {
  border: none;
  padding: 0;
  margin: 0 0 10px;
}
 
.select_view_sub fieldset:last-child {
  margin: 0;
}
 
.select_view_sub select {
  width: 100%;
}
 
.select_view_sub label {
  display: block;
  font-weight: bold;
  margin: 0 0 5px;
}
 
.select_view_sub button {
  display: inline-block;
  width: 36px;
  height: 20px;
  border: none;
  cursor: pointer;
}
 
.select_view_sub button:focus {
  outline: none;
}
 
.select_view_sub button:hover {
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.select_view_sub .tm_filter {
  display: flex;
  align-items: left;
  flex-direction: column; /* stack diff vertically */
  /*
  justify-content: space-between;
  margin-bottom: 5px;
  gap: 20px;
  */
}

/*
.form-row label {
  flex-basis: 60%;
  margin-right: 10px;
}

.form-row input[type="checkbox"] {
  flex-basis: 40%;
  box-sizing: border-box;
}
*/

/* -------------------------------------------------
 * Free marker (draggable) position display (lng, lat data) 
 * ------------------------------------------------- */
pre.dp-dragIconCoord {
  /* display: none; */
  position:absolute;
  bottom:110px; /* 80 */
  left:10px;
  padding:5px 10px;
  background:rgba(0,0,0,0.5);
  /* background: #fff; */
  color:#fff;
  font-size:11px;
  line-height:18px;
  border-radius:3px;
  width: 400px; /* 390 */
  /* width: 20%; */
}

/* -------------------------------------------------
 * Cursor position display (lng, lat data)
 * ------------------------------------------------- */
pre.dp-currentCursorPos {
  position:absolute;
  bottom:60px; /* 30 */
  left:10px;
  padding:5px 10px;
  background:rgba(0,0,0,0.5);
  color:#fff;
  font-size:11px;
  line-height:18px;
  border-radius:3px;
  width: 400px; /* 390 */
}


/* -------------------------------------------------
 * site marker style
 * ------------------------------------------------- */
.site_marker {
  /* background-image: url('icons/ball_03.png'); */
  background-image: url('icons/circle.svg');
  /* background-image: url('icons/ball_01.png'); */
  background-size: cover;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
}

/*
.site_marker {
  background-image: url('icons/ball_01.png');
  background-size: cover;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  cursor: pointer;
}
*/

.site_marker_select {
  /* background-image: url('icons/ball_03.png'); */
  background-image: url('icons/green_01.png');
  /* background-image: url('icons/circle.svg'); */
  background-size: cover;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  cursor: pointer;
}

.site_marker_orange {
  /* background-image: url('icons/ball_03.png'); */
  /* background-image: url('icons/green_01.png'); */
  background-image: url('icons/orange_01.png');
  background-size: cover;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  cursor: pointer;
}

.site_marker_blue_ball {
  background-image: url('icons/ball_02.png');
  background-size: cover;
  width: 20px;
  height: 20px;
  border-radius: 100%;
  cursor: pointer;
}

.site_marker_circ {
  /* background-image: url('icons/ball_03.png'); */
  /* background-image: url('icons/green_01.png'); */
  background-image: url('icons/circle.svg');
  background-size: cover;
  width: 20px;
  height: 20px;
  border-radius: 80%;
  cursor: pointer;
}

/* -------------------------------------------------
 * mapboxgl-popup tweak (overwritting original)
 * ------------------------------------------------- */
.mapboxgl-popup {
  max-width: 200px;
  padding-bottom: 5px;
}

.mapboxgl-popup-close-button {
  display: none;
}

.mapboxgl-popup-content {
  text-align: center;
  font-family: 'Open Sans', sans-serif;
  font: 90 10px/16px 'Source Sans Pro', 'Helvetica Neue', Sans-serif;
  padding: 0;
  width: 150px;
}

.mapboxgl-popup-content-wrapper {
  padding: 1%;
}

.mapboxgl-popup-content popup_top {
  /* background: #91c949; */
  background: #9da4cf;
  color: #fff;
  margin: 0;
  display: block;
  padding: 5px;
  border-radius: 3px 3px 0px 0px;
  font-weight: 700;
  margin-top: -15px;
  /* width: 100px; */
}

.mapboxgl-popup-content popup_bottom {
  margin: 0;
  display: block;
  padding: 5px 5px 5px 5px;
  font-weight: 400;
  /* width: 100px; */
}

.mapboxgl-popup-content div {
  padding: 5px;
}

.mapboxgl-container .leaflet-marker-icon {
  cursor: pointer;
}

.mapboxgl-popup-anchor-top > .mapboxgl-popup-content {
  margin-top: 10px;
}

.mapboxgl-popup-anchor-top > .mapboxgl-popup-tip {
  border-bottom-color: #91c949;
}

/*
.mapboxgl-popup {
  max-width: 200px;
}

.mapboxgl-popup-content {
  text-align: center;
  font-family: 'Open Sans', sans-serif;
}
*/

/* -------------------------------------------------
 * chart-popup
 * ------------------------------------------------- */
.chart-container {
  display: block;
  width: 300px;
  height: 200px;
  background: white;
}

/*
.chart-container {
  display: block;
  position: absolute;
  top: 30px;
  left: 0;
  width: 300px;
  height: 200px;
  background: white;
  border: 1px solid #ccc;
  padding: 10px;
  z-index: 100;
  box-shadow: 0px 0px 10px rgba(0,0,0,0.5);
}
*/

/* -------------------------------------------------
 * Action panel button style
 * ------------------------------------------------- */
.action_panel {
  font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif;
  font-weight: bold;
  background-color: #e0e5da;
  border-radius: 6px;
  position: absolute;
  width: 90px;
  top: 0px;
  right: 245px;
  margin-top: 10px;
  margin-right: 0px;
  border: 2px groove;
  padding: 4px;
  text-align: center;
}

.action_panel button {
  display: inline-block;
  width: 82px;
  height: 28px;
  border: none;
  padding: 3px;
	text-align: center;
  cursor: pointer;
}

.action_panel button:focus {
  outline: none;
}

.action_panel button:hover {
  box-shadow: inset 0 0 0 rgba(0, 0, 0, 0.3);
  background: #a9cf7f;
}

.action_button_box {
  color:#5a5a7a;
  border-radius: 4px;
}

/* -------------------------------------------------
 * user input form for searching site by ID
 * ------------------------------------------------- */
/* The popup form - hidden by default */
.form-search-popup {
  font: 12px/18px 'Helvetica Neue', Arial, Helvetica, sans-serif;
  /* font-family: Arial, Helvetica, sans-serif; */
  display: none;
  position: fixed;
  bottom: 30px;
  right: 10px;
  border: 3px solid #fcfcfc;
  border-radius: 8px;
  z-index: 9;
}

/* Add styles to the form container */
.form-search-site {
  max-width: 160px;
  padding: 5px;
  background-color: #fcfcfc;
}

/* Full-width input fields */
.form-search-site input[type=text] {
  width: 100%;
  padding: 5px;
  margin: 5px 0 5px 0;
  border: none;
  background: #f0f0f0;
}

/* When the inputs get focus, do something */
.form-search-site input[type=text]:focus {
  background-color: #ddd;
  outline: none;
}

/* Set a style for the Apply button */
.form-search-site .btn {
  background-color: #8acf80;
  color: white;
  padding: 5px 5px;
  border: none;
  cursor: pointer;
  width: 100%;
  margin-bottom:5px;
  opacity: 0.6;
}

/* Set a style for the Cancel button */
.form-search-site .cancel {
  background-color: #8acf80;
}

/* Add some hover effects to buttons */
.form-search-site .btn:hover, .cancel:hover {
  opacity: 1;
}

.form-group-btn-hz {
    float:left;
}

/* -------------------------------------------------
 * Color Scale Panel for Various Telemetry Data
 * ------------------------------------------------- */
.color-scale-container {
  position:absolute;
  bottom:30px;
  left:10px;
  width: 400px;
  height: 25px;
  font-family: Arial, sans-serif;
  font-weight: bold;
  display: flex;
  align-items: center;
  color: white; /* label color */
  padding-left: 10px; /* padding for text alignment */
  padding-right: 10px;
  box-sizing: border-box;
  border-radius: 4px;
  overflow: hidden; /* needed for the gradient */
}

.unit-label {
  font-size: 0.8rem;
  margin-right: 5px; /* Spacing for the unit text */
  flex-shrink: 0;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.5); /* contrast */
}

.number-label {
  /* numbers are distributed evenly */
  flex-grow: 1; 
  text-align: center;
  position: relative;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}

