/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.waiting * {
  cursor: progress;
}

html {
    font-family: var(--font-family);
    font-size: var(--font-size2);
    background-color:var(--background-color1);
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 2px;
  height: 2px;
  border-radius: 1px;
}

::-webkit-scrollbar-track {
  background: var(--background-color1);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color2);
}

::-webkit-scrollbar-thumb:hover {
  width: 4px;
  height: 4px;
  background: var(--border-color1);
}

::-webkit-scrollbar-thumb:active {
  background-image: linear-gradient(90deg, rgba(0, 177, 255, 0.9), rgba(0, 70, 151, 0.9), rgba(88, 5, 205, 0.9) 85%) !important;
  background: linear-gradient(20deg, rgba(0, 255, 170, 0.4) 0%, rgba(0, 177, 255, 0.9) 35%, rgba(0, 70, 151, 0.9) 75%, rgba(88, 5, 205, 0.9) 100%);
  box-shadow: var(--border-color2) 0 3px 7px inset !important;
}

button:disabled {
  color: var(--font-color3); /* Dim the text color a bit */
  background-color: var(--background-color4); /* Light gray background */
}
button:disabled * {
  color: var(--font-color3);
}
button:disabled img {
  opacity: 0.4
}
button:disabled:active, button:disabled:hover  {
  border: 1px solid var(--border-color2-alpha) !important
}

/* GET BACK SECTIONS BUTTON */
#get-back-div {
  position: absolute;
  z-index: 9999;
  left: 55px;
  top: 5px;
  height: 40px;
  width: auto;
  box-sizing: content-box;
  display: none;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background-color: var(--background-color3);
  background-clip: content-box, padding-box;
  border-radius: 2px
}

#get-back-div>i {
  display: flex;
  justify-content: center;
  align-items: center;
  width: auto;
  padding: 2px;
  height: 100%;
  color: var(--icon-color);
  background-color: var(--background-color4);
  border-radius: 2px;
  opacity: 0.5;
  cursor: grab
}

#get-back-div>i:hover, #get-back-div>i:active, #get-back-div>i:focus {
  color: var(--icon-color);
  opacity: 1
}

#get-back-button {
  width: 100%;
  height: 85%;
  padding: 5px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 5px;
  color: var(--font-color1);
  border-radius: 2px;
}

#get-back-button i {
  opacity: 0.5;
  color: var(--icon-color)
}

#get-back-button i:hover, #get-back-button i:active, #get-back-button i:focus {
  opacity: 1;
}

#get-back-button div {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
}

#get-back-button span:not(#previous-section) {
  font-size: var(--font-size2)
}

#get-back-button #previous-section {
  font-size: var(--font-size3);
  font-weight: bold;
}

#get-back-button #previous-section:hover {
  color: var(--font-color2)
}

/* PAGES */
.page {
  display: block
}
.page:not(#substitution-plan-page) {
  display: none;
}

.dropdown-content {
	display: none;
	align-items: stretch;
	flex-direction: column;
  flex-wrap: nowrap;
	position: fixed;
  z-index: 100000;
	gap: 5px;
	padding: 5px;
  border-radius: 5px;
	min-width: 200px;
  max-width: 300px;
  min-height: 0px;
	max-height: 200px;
	overflow-y: auto;
	box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
	background-color: var(--background-color3);
	color: var(--font-color1);
	font-weight: normal;
	font-size: var(--font-size3)
}
.dropdown-content label:not(.radio-label) {
  padding: 0px 10px;
}
.menu-dropdown {
	position: relative;
	display: inline-block;
}

.dropdown-content label:hover {
  color: var(--font-color2);
	font-weight: bold
}

input[type="text"] {
	min-width: 200px;
	min-height: 25px;
	padding: 0px 5px;
	text-align: center;
	color: var(--font-color1);
	background-color: var(--background-color1);
	border: solid 1px var(--border-color2);
	border-radius: 5px;
}
input.cmap-input {
  padding: 5px !important;
  background-clip: content-box !important;
}
input[type="text"]:hover, input[type="text"]:focus {
	color: var(--font-color2);
	font-weight: bold;
}
input[type="text"]:focus + .dropdown-content,
.dropdown-content:hover {
	display: flex;
}

/* BUTTON */
button, .dataTables_wrapper button {
  font-size: var(--font-size2) !important;
  width: 100%;
  align-items: center !important;
  background-color: var(--background-color2);
  border: 1px solid var(--border-color2-alpha) !important;
  border-radius: 3px !important;
  margin: 0px 3px 0px 3px !important;
  box-sizing: border-box !important;
  color: var(--font-color1) !important;
  display: flex;
  justify-content: center;
  gap: 5px;
  line-height: 1em !important;
  padding: 1px !important;
  text-decoration: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
  touch-action: manipulation !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}

button:active, .dataTables_wrapper button:active,
button:hover, .dataTables_wrapper button:hover {
  outline: 0 !important;
  color: var(--font-color2) !important;
  font-weight: bold !important;
}

button:hover, .dataTables_wrapper button:hover {
  border: 0.5px solid var(--border-color2) !important;
}

button:active, .dataTables_wrapper button:active {
  border: 0.5px solid var(--border-color3) !important;
}

button span, .dataTables_wrapper button span {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center !important;
  gap: 5px !important;
  background-color: var(--background-color2) !important;
  padding: 3px 3px !important;
  border-radius: 5px !important;
  width: 100% !important;
  height: 100% !important;
  transition: 300ms !important;
}

button:hover span, .dataTables_wrapper button:hover span {
  background: none !important;
  box-shadow: none !important;
}

.min-width-btn {
  min-width: 100px;
  width: auto !important;
}

/* CHENGE STRATEGY BUTTON */
.changeStrategy-btn {
  width: 70px !important;
  height: 0%;
  opacity: 0.5;
  transition: all 0.5s;
}

.changeStrategy-btn:hover {
  color:var(--border-color3);
  /*transform: scale(1, 2);*/
  opacity: 1;
}

/*.arrow {
  border: 2px solid var(--border-color3);
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 3px;
}

.right {
  -webkit-transform: rotate(-45deg) translate(0px, -2px);
  transform: rotate(-45deg) translate(0px, -2px);
}

.left {
  -webkit-transform: rotate(135deg) translate(-6px, -6px);
  transform: rotate(135deg) translate(-6px, -6px);
}*/

/* MULTI-STATE TOGGLE BUTTON */
.multi-state-toggle {
  position: absolute;
  top: calc(50% - 15px);
  width: 100%;
  height: 30px;
  padding: 0px 1px;
  background: transparent;
  border-radius: 5px;
  overflow: hidden;
  display: flex;  
  justify-content: space-between;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

#toggle-button-cover {
  position: absolute;
  height: 15px;
  width: 100%;
  border-radius: 7.5px;
  background-color: #03a8f443;
  top: calc(50% - 7.5px);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  transition: 0.3s ease all;
}

.multi-state-toggle-button {
  border: none;
  top: 4px !important;
  left: 4px !important;
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  background-color: transparent !important;
  box-shadow: inset 0px 0px 5px #919191 !important;
  line-height: 1;
  padding: 7px 7px !important;
  z-index: 2;
  margin: 5px !important;
  cursor: pointer;
}

.multi-state-toggle-button.active {
  border: none;
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.1) !important;
  color: var(--font-color2) !important;
  font-size: var(--font-size3) !important;
  font-weight: bolder !important;
  transition: all .5s ease-in !important;  
  width: 25px !important;
  min-height: 25px !important;
}

#annual-subs-rate-perc-toggle-button.active {
  background-image: linear-gradient(
    90deg,
    rgb(3, 18, 229) 0%,
    rgb(3, 78, 229) 35%,
    rgb(17, 142, 219) 100%
  ) !important;
}

#annual-subs-rate-km-toggle-button.active {
  background-image: linear-gradient(
    90deg,
    rgb(17, 219, 17) 0%,
    rgb(17, 160, 1) 20%,
    rgb(24, 118, 0) 50%,
    rgb(17, 160, 1) 80%,
    rgb(17, 219, 17) 100%
  ) !important;
}

#annual-subs-rate-budget-toggle-button.active {
  background-image: linear-gradient(
    270deg,
    rgb(161, 5, 0) 0%,
    rgb(184, 34, 0) 35%,
    rgb(223, 63, 0) 100%
  ) !important;
}

.multi-state-toggle-button:focus {
  outline: none;
}

/* INPUT */
input[type=number] {
  font-size: var(--font-size3);
  font-weight: bold;
  width: 60px;
  min-height: 25px;
  padding-right: 1.5em;
  border-radius: 4px;
  border: outset 1px var(--border-color2) !important;
  box-sizing: border-box;
  background-color: transparent;
  color: var(--font-color2);
  text-align: right;
  outline: none;
}

input:focus,
select:focus {
  /*background: linear-gradient(to top, var(--background-color2) 0%, var(--background-color3) 100%) !important;*/
  border: solid 2px var(--border-color2) !important;
  outline: none !important;
}

input[type="number"]::-webkit-outer-spin-button, 
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    background: var(--border-color2) url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAAKUlEQVQYlWNgwAT/sYhhKPiPT+F/LJgEsHv37v+EMGkmkuImoh2NoQAANlcun/q4OoYAAAAASUVORK5CYII=) no-repeat center center;
    width: 1em;
    opacity: 0.1;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
}

input[type="number"]::-webkit-inner-spin-button:hover,
input[type="number"]::-webkit-inner-spin-button:active{
    background-color: var(--border-color2);
    opacity: 1;
}

/* RESIZER */
flex {
  position: relative;  
  height: 100%;
	display: flex;
	overflow: hidden;
  align-items: stretch;
}

flex.h {
  flex-direction: row;
  align-items: center;
}

flex.v {
  flex-direction: column;
}

flex > flex-resizer {
  flex: 0 0 2px;
  border-radius: 2px;
}

flex.h > flex-resizer {
  cursor: ew-resize;
}

flex.v > flex-resizer {
  cursor: ns-resize;
}

flex-item {
  flex-grow: 0;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: stretch;
  position: relative;
  overflow: hidden;
  flex-direction: row;
  justify-content: flex-start;
  align-content: flex-start;
  flex-wrap: wrap;
}

flex > flex-item {
  flex-basis: 100%;
  z-index: 1;
}

flex-item > div {
  position: relative;
}

flex-resizer {
  width: 90%;
  height: 90%;
  z-index: 0;
  background-color: #2a3b53;
  cursor: row-resize;
  margin: 0px auto 0px auto;
	padding: 1px;
}

flex-resizer:hover {
  background: linear-gradient(20deg, rgba(0, 255, 170, 0.7) 0%, rgba(0, 177, 255, 0.7) 35%, rgba(0, 65, 138, 0.7) 75%, rgba(88, 5, 205, 0.7) 100%);
  box-shadow: 2px 0px 60px 10px rgba(0, 255, 170, 0.15),
    0px 2px 60px 10px rgba(0, 177, 255, 0.15),
    -2px 0px 60px 10px rgba(88, 5, 205, 0.3),
    0px -2px 60px 10px rgba(0, 53, 113, 0.3);
}

/* CHECKBOX */
.checkbox {
  --brdr-actv: rgba(88, 5, 205, 0.9);
  --brdr-hovr: rgba(0, 177, 255, 0.9);
  --dur: calc((var(--size, 2)/2) * 1s);
  display: inline-block;
  width: calc(var(--size, 1) * 22px);
  position: relative;
}

.checkbox:after {
  content: "";
  width: 100%;
  padding-top: 100%;
  display: block;
}

.checkbox > * {
  position: absolute;
}

.checkbox input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  background-color: var(--background-color1);
  border-radius: calc(var(--size, 1) * 4px);
  border: calc(var(--newBrdr, var(--size, 1)) * 1px) solid;
  color: var(--newBrdrClr, var(--border-color2)) !important;
  outline: none;
  margin: 0;
  padding: 0;
  transition: all calc(var(--dur) / 3) linear;
}

.checkbox input:hover,
.checkbox input:checked {
  --newBrdr: calc(var(--size, 1) * 2);
}

.checkbox input:hover,
.checkbox input:focus {
  --newBrdrClr: var(--brdr-hovr);
  border: solid 2px var(--newBrdrClr) !important;
}

.checkbox input:checked {
  --newBrdrClr: var(--brdr-actv);
  transition-delay: calc(var(--dur) /1.3);
}

.checkbox input:checked + svg {
  --dashArray: 16 93;
  --dashOffset: 109;
}

.checkbox svg {
  fill: none;
  left: 0;
  pointer-events: none;
  stroke: var(--stroke, var(--brdr-active));
  stroke-dasharray: var(--dashArray, 93);
  stroke-dashoffset: var(--dashOffset, 94);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2px;
  top: 0;
  transition: stroke-dasharray var(--dur), stroke-dashoffset var(--dur);
}

.checkbox svg,
.checkbox input {
  display: block;
  height: 100%;
  width: 100%;
}

.select-wdn {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: var(--font-size2);
  text-align: center;
  padding: 5px 0px 5px 0px;
}

/* Dashboard Content */
.dashboard-content {
  display: flex;
  flex-flow: column nowrap;
  align-items: stretch;
  position: relative;
  gap: 3px;
  width: 100%;
  margin: 0;
  padding: 4px;
  background-color: var(--background-color1);
}

.container {
    display: flex;
    flex-flow: row wrap;   
    justify-content: space-evenly;
    gap: 3px;
    z-index: 1;
    margin: 0;
    background-color: var(--background-color1);
    color: var(--font-color2);
    font-size: var(--font-size2);
    padding: 1px;
}

/*Top Navigator */
.navigator {
  justify-content: space-between !important;
  overflow: hidden;
}

.btn-container {
  position: relative;
  color: var(--font-color1);
  font-size: var(--font-size3);
  width: 100%;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  align-content: stretch;
  flex-wrap: nowrap;
  flex-direction: row;
  padding: 5px;
}

.btn-container .btn-section {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.btn-section img {
  height:20px;
  width:20px;
}

/* Switch Annual Substitution Criteria Button */
.extra-info {
	background-color: var(--background-color2);
	color: var(--font-color1);
	border: none;
	padding: 5px 1px;  
  gap: 5px;
	border-radius: 3px;
  display: flex !important;
  flex-direction: row;
  align-content: flex-end;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
}

/* Table */
/* width */
#top-section {
  width: 100%;
  display: flex;
  align-items: flex-start;
  align-content: flex-start;
}

/* Map */
#WDNmap {
	position: relative;
	width: 100%;
	height: 100%;
	left: 0.0%;
	top: 0.0%;
	border-radius: 5px;
}

.section {
  height: 100%;
  display: flex;
  flex-wrap: nowrap;
  flex-direction: column;
  background-color:var(--background-color2);
  border-radius: 5px;
  border: 1px solid var(--border-color2);
  /*box-shadow: 0.5px 0px 0.25px 0px rgba(0, 255, 170, 0.3),
    0px 0.5px 0.25px 0px rgba(0, 177, 255, 0.9),
    -0.5px 0px 0.5px 0px rgba(88, 5, 205, 0.9),
    0px -0.5px 0.5px 1px rgba(0, 70, 151, 0.9);*/
}

#plot-info {
  position: relative;
  width: 100%;
  height: 100px;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
}

.plot-section-btn {
  position: relative;
  /*z-index: 1;*/
  display: flex;
  gap: 5px;
  align-items: center;
}

#plot-window {
  position: relative;
  width: 100%;
  height: calc(100% - 100px);
  flex: 1;
}

.plot-space {
  position: relative;
  height: 100%;
  width: 100%;
  bottom: 0;
}

/*Colormap Selector*/
/* The container <div> - needed to position the dropdown content */
.dropdown {
	position: relative;
	display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
}

/* Leaflet Tooltip - Popup */
.leaflet-container {
  background: none !important;
}

.leaflet-popup {
	display: block;
	position: absolute;
	font-family: var(--font-family);
  line-height: 1.5;
  color: var(--font-color1);
}

.leaflet-popup-content {
  margin: 2px 12px 0px 12px !important;
  line-height: 0.2 !important;
  min-width: 0px;
  display: grid;
  gap: 2px;
  padding: 5px;
  width: 99% !important;
  color: var(--font-color1);
}

.leaflet-popup-content p {
  margin: 1.1em 0 !important;
}

.leaflet-popup-content-wrapper,
.leaflet-tooltip, .tooltip-container {
	/*font-family: "Arial Narrow", sans-serif !important;*/
	background: var(--background-color2) !important;
	border: none !important;
	/*margin: 10px !important;*/
	white-space: nowrap;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	display: inline-flex;
  place-content: center;
  text-align: center;
  -webkit-box-pack: center;
  width: auto !important;
  position: relative;
  box-sizing: content-box;
  padding: 5px !important;
  border-radius: 5px !important;
	box-shadow: rgb(0 0 0 / 25%) 0px 0px 12px;
  color: var(--font-color1);
  justify-content: space-around;
  align-content: center;
  flex-wrap: wrap;
  flex-direction: column;
}

/*NEW STYLE SECTION*/
.leaflet-popup img {
  border-radius: 3px;
  width: 30px;
}

.leaflet-popup-content-button-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  border-radius: 3px;
}

.popup-section-title {
  margin: 5px
}

hr {
  border: 1px solid var(--border-color2-alpha);
  border-radius: 2px;
	width:100%;
}

.asset-detail-section {
  color: var(--border-color2);
  font-weight: bold;
  font-size: var(--font-size2);
  box-sizing: border-box;
  display: flex;
  flex-flow: column wrap;
  gap: 0px;
  padding: 0px;
  justify-content: left;
  -webkit-box-align: left;
  align-items: left;
}

.impacted-order-container {
  margin-left: 10px
}

.impacted-order-container>div {
  margin-left: 20px
}

.tooltip-header, .popup-header {
  display: flex;
  align-items: flex-end;
  flex-flow: row wrap;
  gap: 0px 12px;
  padding: 5px 0px;
}

.tooltip-header div, .popup-header div {
  display: flex;
  flex-flow: row wrap;
  align-items: baseline;
  gap: 0px 12px;
}

.asset-detail {
  width: 100%;
}

.item-type {
  font-size: var(--font-size2);
  color: var(--font-color1);
  text-transform: capitalize;
}

.item-name {
  font-size: var(--font-size3);
  font-weight: bold;
  color: var(--font-color2);
}

.feature {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  column-gap: 1%;
  justify-content: space-between;
  vertical-align: bottom;
  min-width: 200px;
}

.feature-type {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  gap: 15px;
  justify-content: space-between;
  align-items: baseline;
  vertical-align: bottom;
  align-self: center;
}

.feature-name {
  font-size: var(--font-size2);
  color: var(--font-color1);
  vertical-align: bottom;
}

.feature-unit {
  font-size: var(--font-size1);
  color: var(--font-color1);
  vertical-align: bottom;
}

.feature-value {
  font-size: var(--font-size2);
  font-weight: bold;
  color: var(--font-color2);
  text-align: right;
  vertical-align: bottom;
  align-items: baseline;
  display: flex;
  text-wrap: pretty;
  line-height: 1.3;
}

/*.leaflet-popup-tip-container {
  margin-left: 10px !important;
}*/
.leaflet-popup-tip {
  background: var(--border-color2-alpha) !important;
  box-shadow: 0 3px 14px rgba(0,0,0,0.4);
}

/* Leaflet Control Layer */
.leaflet-control-layers-group-name {
	font-weight: bold;
	margin-bottom: .2em;
	margin-left: 3px;
}

.leaflet-control-layers-scrollbar {
	overflow-y: scroll;
	padding-right: 10px;
}

.leaflet-control-layers-selector {
  accent-color: var(--border-color2);
}

/********** Hydraulic Network Technician Pegman ***********/
#mapStreetViewPegman {
  position: absolute;
  top: 50%;
  left: 20%;
  z-index: 9;
  background-color: 'transparent';
  border: 0px;
  text-align: center;
}

#myPegman:hover {
  /* Start the shake animation and make the animation last for 0.5 seconds */
  animation: shake 0.5s;

  transform: scale(1.6); 

  /* When the animation is finished, start again */
  animation-iteration-count: 2;
}

@keyframes shake {
  0% { transform: translate(0.5px, 0.5px) rotate(0deg) scale(1.6); }
  10% { transform: translate(-0.5px, -1px) rotate(-1deg) scale(1.6); }
  20% { transform: translate(-1.5px, 0px) rotate(1deg) scale(1.6); }
  30% { transform: translate(1.5px, 1px) rotate(0deg) scale(1.6); }
  40% { transform: translate(0.5px, -0.5px) rotate(1deg) scale(1.6); }
  50% { transform: translate(-0.5px, 1px) rotate(-1deg) scale(1.6); }
  60% { transform: translate(-1.5px, 0.5px) rotate(0deg) scale(1.6); }
  70% { transform: translate(1.5px, 0.5px) rotate(-1deg) scale(1.6); }
  80% { transform: translate(-0.5px, -0.5px) rotate(1deg) scale(1.6); }
  90% { transform: translate(0.5px, 1px) rotate(0deg) scale(1.6); }
  100% { transform: translate(0.5px, -1px) rotate(-1deg) scale(1.6); }
}

@keyframes save-shake {
  0% { transform: rotate(5deg); }
  5% { transform: rotate(-5deg); }
  10% { transform: rotate(5deg); }
  15% { transform: rotate(-5deg); }
  20% { transform: rotate(5deg); }
  25% { transform: rotate(-5deg); }
  30% { transform: rotate(0deg); }
}

/* CHECKBOX */
.checkbox {
	--dur: calc((var(--size, 2)/2) * 1s);
	display: inline-block;
	width: calc(var(--size, 1) * 15px);
	position: relative;
}
.checkbox:after {
	content: "";
	width: 100%;
	padding-top: 100%;
	display: block;
}
.checkbox > * {
	position: absolute;
}
.checkbox input {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	cursor: pointer;
	background-color: var(--bg-color2);
	border-radius: calc(var(--size, 1) * 4px);
	border: calc(var(--newBrdr, var(--size, 1)) * 1px) solid;
	color: var(--newBrdrClr, var(--border-color2)) !important;
	outline: none;
	margin: 0;
	padding: 0;
  opacity: 1;
	transition: all calc(var(--dur) / 3) linear;
}
.checkbox input:hover:not([disabled]),
.checkbox input:checked:not([disabled]) {
	--newBrdr: calc(var(--size, 1) * 1);
}
.checkbox input:hover:not([disabled]),
.checkbox input:focus:not([disabled]) {
	--newBrdrClr: var(--brdr-hovr);
}
.checkbox input:checked:not([disabled]) {
	--newBrdrClr: var(--brdr-actv);
	transition-delay: calc(var(--dur) /1.3);
}
.checkbox input:checked + svg {
	--dashArray: 200 94;
	--dashOffset: 109;
}
.checkbox input:disabled {
  border: 1px var(--font-color3) solid;
  opacity: 0.1
}
.checkbox svg {
	fill: none;
	left: 0;
	pointer-events: none;
	stroke: var(--stroke, var(--brdr-actv));
	stroke-dasharray: var(--dashArray, 93);
	stroke-dashoffset: var(--dashOffset, 94);
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2px;
	top: 0;
	transition: stroke-dasharray var(--dur), stroke-dashoffset var(--dur);
}
.checkbox svg,
.checkbox input {
	display: inline-block;
  position: absolute;
	height: 15px;
	width: 15px;
}

/* RADIO BUTTONS */
@keyframes dot-anim {
  0% {
      top: -2px;
  }
  50% {
      top: 4px;
  }
  100% {
      top: -2px;
  }
}
@keyframes checked-radio {
  0% {
    background-color: var(--border-color2);
    transform: rotate(0) translateY(1px) translateX(1px) scale(0.2);
  }
  85% {
    transform: rotate(360deg) translateY(6px) translateX(6px) scale(1.2);
  }
  100% {
    background-color: var(--border-color2);
    transform: translateY(4px) translateX(4px) scale(1.5);
  }
}
@keyframes unchecked-radio {
  0% {
    transform: translateY(4px) translateX(4px) scale(1.8);
  }
  15% {
    transform: rotate(360deg) translateY(6px) translateX(6px) scale(1.2);
  }
  100% {
    transform: rotate(0) translateY(1px) translateX(1px) scale(0);
  }
}
.dropdown-content .menu-item-radio {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  align-items: center;
  padding: 2px 5px;
}
.radio-label {
  display: inline-block !important;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  transition: all .2s ease-in-out;
  animation-timing-function: ease-in-out;
  /*animation-iteration-count: infinite;*/
  animation-duration: 1.6s;
  animation-name: dot-anim;
}

input[type="radio"]:checked + .radio-label {
  border: solid 1px var(--brdr-actv);
  animation-play-state: paused;
}
.radio-label:before {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--brdr-actv);
  border-radius: 50%;
  box-shadow: rgba(0, 0, 0, 0.117647) 0 0 .8px 0, rgba(0, 0, 0, 0.239216) 0 .8px .8px 0;
  transition: all .2s;
}
.radio-label:hover:before {
  box-shadow: rgba(0, 0, 0, 0.0784314) 0 0 1px 0, rgba(0, 0, 0, 0.239216) 0 1px 1px 0;
}
.radio-label:after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: scale(0);
}
input[type="radio"]:checked + .radio-label:after {
  transition: all .5s;
  transform: scale(1);
}
input[type="radio"] + .radio-label {
  background: var(--bg-color2);
  border: solid 1px var(--border-color2);
  animation-delay: .6s;
}
input[type="radio"] + .radio-label:before {
  animation: unchecked-radio .5s both;
}
input[type="radio"]:checked + .radio-label:before{
  animation-name: checked-radio;
  animation-duration: .6s;
  animation-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
  animation-fill-mode: both;
}
.leaflet-map input[type="radio"], .menu-dropdown[type="cmaps"] input[type="radio"] {
  display: none;
}

/* CRIT ANALYSIS LEGEND */
#crit-analysis-legend {
  display: none;
  z-index: 999;
  position: fixed;
  bottom: 0%;
  left: calc(50% - 25%);
  width: 50%;
  height: auto;
  background-color: var(--background-color2);
  color: var(--font-color1);
  /*display: flex;*/
  margin: 5px;
  padding: 10px;
  border-radius: 5px;
	box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}

.crit-analysis-legend-header, .crit-analysis-info {
  display: flex;
  flex-flow: row nowrap;  
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.crit-analysis-type, .crit-analysis-type-element {
  font-size: var(--font-size2);
  color: var(--font-color1);
  display: flex;
  align-items: flex-end;
  gap: 0px 12px;
}

.crit-analysis-element {
  font-weight: bold;
  color: var(--font-color2);
}

.crit-analysis-wdn {
  min-width: 50px !important;
  width: 200px !important;
  color: var(--font-color2) !important;
}

#crit-analysis-summary {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-around;
  align-items: stretch;
  gap: 10px;
  margin: 10px;
}

.crit-analysis-data {
  width: 25%;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 5px;
  background-color: var(--background-color3);
  box-shadow: 0px 0px 5px 1px var(--background-color1);
  gap: 5px;
  padding: 5px;
  color: rgb(51, 255, 0)
}

.crit-analysis-data:hover {
  box-shadow: 0px 0px 3px 1px var(--border-color2);
}

.crit-analysis-name, .crit-analysis-class-data {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
}

.crit-analysis-class-data {
  width: 30%;
}

.crit-analysis-class-data div {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 10px;
  width: 50%;
  border-radius: 5px;
  background-color: var(--background-color3);
  box-shadow: 0px 0px 5px 1px var(--background-color1);
  padding: 5px;
}

.crit-analysis-class-data div:hover {
  box-shadow: 0px 0px 3px 1px var(--border-color2);
}

.crit-analysis-value {
  color: var(--font-color2);
  font-weight: bold;
  font-size: var(--font-size5);
}

#crit-analysis-class-container {
  display: flex;
  flex-flow: column nowrap;
  gap: 10px;
  padding: 0px 10px;
}

.crit-analysis-class {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: space-between;
  font-size: var(--font-size2);
}

select#subs-plan-mode-select, select#pipeline-length-select {
  font-size: var(--font-size3);
  font-weight: bold;
  width: 115px;
  min-height: 25px;
  padding-right: 0.5em;
  border-radius: 4px;
  border: outset 1px var(--border-color2) !important;
  box-sizing: border-box;
  background-color: transparent;
  color: var(--font-color2);
  text-align: right;
  outline: none;
}
select#subs-plan-mode-select option, select#pipeline-length-select option {
  background-color: var(--background-color2);
  text-align: start;
  color: var(--font-color1)
}

#top-section .btn-container > div:first-child {
  width: 40%
}

.btn-section#annual-subs-rate-section,
.btn-section#change-mode-section,
.btn-section#pipeline-length-section,
.btn-section#pipeline-years-section {
  width: 400px;
  justify-content: flex-end !important;
}

.plot-tooltip-text * {
  font-size: var(--font-size1)
}