@font-face{font-family:"Avenir Next W00"; 
  src: url("../fonts/avenir-next/Avenir_Next_W00_400.eot?#iefix");
  src: url("../fonts/avenir-next/Avenir_Next_W00_400.eot?#iefix") format("eot"),
  url("../fonts/avenir-next/Avenir_Next_W00_400.woff2") format("woff2"),
  url("../fonts/avenir-next/Avenir_Next_W00_400.woff") format("woff"),
  url("../fonts/avenir-next/Avenir_Next_W00_400.ttf") format("truetype"),
  url("../fonts/avenir-next/Avenir_Next_W00_400.svg") format("svg");
  font-weight:400;font-style:normal}
  
@font-face{font-family:"Avenir Next W00"; 
  src:url("../fonts/avenir-next/Avenir_Next_W00_Italic_400.eot?#iefix");
  src:url("../fonts/avenir-next/Avenir_Next_W00_Italic_400.eot?#iefix") format("eot"),
  url("../fonts/avenir-next/Avenir_Next_W00_Italic_400.woff2") format("woff2"),
  url("../fonts/avenir-next/Avenir_Next_W00_Italic_400.woff") format("woff"),
  url("../fonts/avenir-next/Avenir_Next_W00_Italic_400.ttf") format("truetype"),
  url("../fonts/avenir-next/Avenir_Next_W00_Italic_400.svg") format("svg");
  font-weight:400;font-style:italic}
  
@font-face{font-family:"Avenir Next W00";
  src:url("../fonts/avenir-next/Avenir_Next_W00_600.eot?#iefix");
  src:url("../fonts/avenir-next/Avenir_Next_W00_600.eot?#iefix") format("eot"),
  url("../fonts/avenir-next/Avenir_Next_W00_600.woff2") format("woff2"),
  url("../fonts/avenir-next/Avenir_Next_W00_600.woff") format("woff"),
  url("../fonts/avenir-next/Avenir_Next_W00_600.ttf") format("truetype"),
  url("../fonts/avenir-next/Avenir_Next_W00_600.svg") format("svg");
  font-weight:600;font-style:normal}
  
@font-face{font-family:"Avenir Next W00";
  src:url("../fonts/avenir-next/Avenir_Next_W00_Italic_600.eot?#iefix");
  src:url("../fonts/avenir-next/Avenir_Next_W00_Italic_600.eot?#iefix") format("eot"),
  url("../fonts/avenir-next/Avenir_Next_W00_Italic_600.woff2") format("woff2"),
  url("../fonts/avenir-next/Avenir_Next_W00_Italic_600.woff") format("woff"),
  url("../fonts/avenir-next/Avenir_Next_W00_Italic_600.ttf") format("truetype"),
  url("../fonts/avenir-next/Avenir_Next_W00_Italic_600.svg") format("svg");
  font-weight:600;font-style:italic}


html, body {
  font-family: "Avenir Next W00";
  overflow: auto;
  padding: 0;
  margin: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

/* Override Bootstrap hr styling */
hr {
  margin-top: 8px;
  margin-bottom: 0rem;
  border-width: 1px;
  border-style: inset;
}

fieldset {
  border-width: 2px;
  border-style: groove;
  border-color: threedface;
  border-image: initial;
  display: block;
  margin-inline-start: 2px;
  margin-inline-end: 2px;
  padding-block-start: 0.35em;
  padding-inline-start: 0.75em;
  padding-inline-end: 0.75em;
  padding-block-end: 0.625em;
  min-inline-size: min-content;
}


legend {
  font-size: 1rem;
  width: inherit;
  padding: 5px;
  margin-bottom: 0px;
  text-align: left;
  line-height: 18px;
  color: #555;
  text-align: center;
}

/* Loading Screen */
#loading {
  width: 75%;
  height: calc(96.25% - 168px);
  display: block;
  position: absolute;
  left: 0;
  z-index: 100;
  background-color: rgba(192, 192, 192, 0.5);
  background-image: url("../images/loading.gif");
  background-repeat: no-repeat;
  background-position: center;
}

/* Map */
#map {
  height: calc(96.25% - 171px);
  position: absolute;
  z-index: 1;
}

/* Sidebar */
#sidebar {
  position: absolute;
  height: calc(100% - 235px);
  right: 0;
  padding-right: 0px;
  padding-left: 0px;  
  overflow: auto;
}

.modal {
  top: 140px;
}

#modal-body {
  text-align: center;
}

#box-search {
  margin: auto;
}

.nav-tabs {
  padding-bottom: 12px;
}

.nav-tabs li a {
  padding-right: 26px;
}

.nav-tabs li a:hover{
  color: #006f41;
  text-decoration: none;
  font-weight: bold;
}

.greentab > a {
  color: #006f41;
  font-weight: bold;
}

.blacktab > a {
  color: black;
  font-weight: normal;
}

@media (max-width: 1623px) {

  html, body {
    overflow: auto;
  }

  #label-inner-wq-tss {
    display:none
  }

  #label-wq-tss:after{
    content: "TSS"
  }

  #label-inner-wq-tn {
    display:none
  }

  #label-wq-tn:after{
    content: "TN"
  }

  #label-inner-wq-tp {
    display:none
  }

  #label-wq-tp:after{
    content: "TP"
  }

  .modal-body {
    height: 400px !important;
    overflow-y: auto !important;
  }

}

.donut-plot {
  font-size: 80%;
}

.tooltip{
  position: absolute; 
    text-align: center; 
    padding: 2px; 
    font-size: 85%;  
    background: white;  
    border: 0px;          
    border-radius: 8px;
    color:black;
    box-shadow: -3px 3px 15px #888888;
    opacity:0;  
  }

@media (max-width: 2070px) {
  .donut-plot {
    font-size: 70%;
  }
}

@media (max-width: 1500px) {
  .donut-plot {
    font-size: 60%;
  }
}

.info {
  padding: 20px 12px;
  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: 'black';
}

.legend i {
  width: 18px;
  height: 18px;
  float: left;
  margin-right: 8px;
  opacity: 0.7;
}

.navbar {
  background-color: #333;
  min-height: 24px !important;
}

.navbar-nav > li > a, .navbar-brand {
  padding-top:5px !important; padding-bottom:0 !important;
  height: 24px;
}

.navbar-brand {
  font-weight: bold;
  font-size: 1.1rem;
}

.navbar-brand:hover {
  color: #fff;
}

.nav-link,
.navbar-brand {
  color: #fff;
  cursor: pointer;
}
.nav-link {
  margin-right: 1em !important;
}
.nav-link:hover {
  color: #006f41;
}

.navbar-collapse {
  justify-content: flex-end;
}

.navbar-toggle {
  padding: 0 0;
  margin-top: 7px;
  margin-bottom: 0;
}

.btn-primary,
.btn-primary:active,
.btn-primary:visited,
.btn-primary:focus {
    background-color: #333;
    border-color: #333;
}

.btn-primary:hover {
    background-color: #006f41;
    border-color: #006f41;
}

.btn-link {
  color: black;
  text-decoration: none !important;
  font-weight: bold;
}

.card-header {
  background-color: #ECEEF3;
}

.card-header:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.card-header:hover .btn-link {
  font-weight: bold;
  color: black;
}

.card .collapsed {
  font-weight: normal;
}

legend {
  color: black;
}

.card-header .btn-link::before {
	content: "\f107";
	color: #333;
  font-family: "FontAwesome";
  font-size: 26px;
}

.btn-link[aria-expanded="true"]::before {
	content: "\f104";
}

.radio, .checkbox {
  padding-left: 35px;
}

a[data-toggle="popover"] {
  float:right;
  color: black;
}

.custom-range::-webkit-slider-thumb {
  background: #006f41;
}

.custom-range:active::-webkit-slider-thumb {
  background: #006f41;
}

.custom-range::-moz-range-thumb {
  background: #006f41;
}

.custom-range:active::-moz-range-thumb {
  background: #006f41;
}

.custom-range::-ms-thumb {
  background: #006f41;
}

.custom-range:active::-ms-thumb {
  background: #006f41;
}

.popup-title {
  font-size: 16px;
}

a {
  color: #006f41;
}

a:hover {
  color: black;
}

.btn-group-toggle .btn {
  background-color: #333;
  border-color: black;
  color: white;
}

.btn-group-toggle {
  width: 100%;
}

.btn-group-toggle .active {
  background-color: #006f41;
}

#modal-warning {
  text-align: center;
}

#accordion-card-select .card-body{
  margin-top: -9px;
}

#table-HUC8 {
  display: inline-block;
}

#content-local-view {
  display: none;
}

#accordion-card-data .card-body, #accordion-card-instructions .card-body h5 {
  text-align: center;
}

.table-xtra-condensed > thead > tr > th,
.table-xtra-condensed > tbody > tr > th,
.table-xtra-condensed > tfoot > tr > th,
.table-xtra-condensed > thead > tr > td,
.table-xtra-condensed > tbody > tr > td,
.table-xtra-condensed > tfoot > tr > td {
  padding: 4px;
}

#popup-table-HUC8 {
  text-align: left;
}

#popup-table-catchment {
  text-align: left;
}

.content-state {
  display: none;
}

#accordion-card-wq .card-body {
  margin-top: -8px;
}

.canvasjs-chart-container {
  text-align: center;
  /*margin-left: 65px;*/
}

#accordion-card-wq h5 {
  text-align: center;
}

.canvasjs-chart-canvas {
  /*position: relative !important;*/
}

.table-state {
  margin-top: 0px;
  text-align: left;
}

.table-state h5 {
  text-align: center;
} 

.donut-plot {
  display: inline-block !important; 
  width: 100% !important;
  /* height: 250px !important; */
  text-align: center !important;
  margin: 0 auto !important; 
}

#link-datadownload {
  color:#006f41;
}

#link-datadownload:hover {
  color: black;
  text-decoration: underline;
}

.manual-link

#select-source {
  display: none;
}

#radio-source-TN, #radio-source-TP {
  display: none;
}

#description-source { 
  text-align: left;
}

#checkbox-div-catchments {
  display: none;
}

.leaflet-bar a {
  background-color: #fff;
  border-bottom: 1px solid #ccc;
  /* border-bottom-color: rgb(204, 204, 204); */
  color: #444;
  display: block;
  height: 26px;
  width: 26px;
  line-height: 1.45 !important;
  text-align: center;
  text-decoration: none;
  font: bold 18px'Lucida Console', Monaco, monospace;
}

.btn {
  pointer-events: auto !important;
}

#button-explanation {
  background-color: #ECEEF3;
  color: black;
  border: 1px solid rgba(0, 0, 0, 0.125)
}

#button-explanation:hover {
  background-color: #F7F7F7;
}

#card-explanation {
  margin-top: 25px;
  margin-right: 25px;
}

.legend { list-style: none; }
.legend li { float: left; margin-right: 10px; }
.legend span { border: 1px solid black; float: left; width: 15px; height: 15px; margin: 2px; margin-left:-28px}
.legend .color-HUC8-tss-1 { background-color: #fff5eb; }
.legend .color-HUC8-tss-2 { background-color: #fee6ce; }
.legend .color-HUC8-tss-3 { background-color: #fdd0a2; }
.legend .color-HUC8-tss-4 { background-color: #fdae6b; }
.legend .color-HUC8-tss-5 { background-color: #fd8d3c; }
.legend .color-HUC8-tss-6 { background-color: #f16913; }
.legend .color-HUC8-tss-7 { background-color: #d94801; }
.legend .color-HUC8-tss-8 { background-color: #8c2d04; }


.legend .color-HUC8-tn-1 { background-color: #edf8e9; }
.legend .color-HUC8-tn-2 { background-color: #c7e9c0; }
.legend .color-HUC8-tn-3 { background-color: #a1d99b; }
.legend .color-HUC8-tn-4 { background-color: #74c476; }
.legend .color-HUC8-tn-5 { background-color: #41ab5d; }
.legend .color-HUC8-tn-6 { background-color: #238b45; }
.legend .color-HUC8-tn-7 { background-color: #005a32; }


.legend .color-HUC8-tp-1 { background-color: #f2f0f7; }
.legend .color-HUC8-tp-2 { background-color: #dadaeb; }
.legend .color-HUC8-tp-3 { background-color: #bcbddc; }
.legend .color-HUC8-tp-4 { background-color: #9e9ac8; }
.legend .color-HUC8-tp-5 { background-color: #756bb1; }
.legend .color-HUC8-tp-6 { background-color: #54278f; }


.legend .color-catchment-tss-1 { background-color: #feedde; }
.legend .color-catchment-tss-2 { background-color: #fdbe85; }
.legend .color-catchment-tss-3 { background-color: #fd8d3c; }
.legend .color-catchment-tss-4 { background-color: #e6550d; }
.legend .color-catchment-tss-5 { background-color: #a63603; }


.legend .color-catchment-tn-1 { background-color: #edf8e9; }
.legend .color-catchment-tn-2 { background-color: #c7e9c0; }
.legend .color-catchment-tn-3 { background-color: #a1d99b; }
.legend .color-catchment-tn-4 { background-color: #74c476; }
.legend .color-catchment-tn-5 { background-color: #31a354; }
.legend .color-catchment-tn-6 { background-color: #006d2c; }


.legend .color-catchment-tp-1 { background-color: #fcfbfd; }
.legend .color-catchment-tp-2 { background-color: #efedf5; }
.legend .color-catchment-tp-3 { background-color: #dadaeb; }
.legend .color-catchment-tp-4 { background-color: #bcbddc; }
.legend .color-catchment-tp-5 { background-color: #9e9ac8; }
.legend .color-catchment-tp-6 { background-color: #807dba; }
.legend .color-catchment-tp-7 { background-color: #6a51a3; }
.legend .color-catchment-tp-8 { background-color: #4a1486; }


.div-legend {
  display: none;
  text-align: center;
}

.leaflet-container {
  font-family: "Avenir Next W00";
}

#modal-userguide-tab-1, #modal-userguide-tab-2, #modal-userguide-tab-3, #modal-userguide-tab-4 {
  text-align: center;
}

#modal-userguide-tab-1 p, #modal-userguide-tab-2 p, #modal-userguide-tab-3 p, #modal-userguide-tab-4 p{
  text-align: left;
}

.modal-dialog { overflow-y: initial !important;}

.modal-body {
  max-height: 65vh;
  overflow-y: auto !important;
}

@media screen and (max-width: 550px){
  body {
   margin-bottom: 0;
  }
  
  footer.footer {
    position: relative;
    clear: both;
    z-index: 105;
  }
  
  
  #map {
    height: 240px;
    position: relative;
  }
  #sidebar {
    position: relative;
  }
    
  #loading {
    width: 100%;
    height: 200px;
    display: block;
    position: absolute;
    left: 0;
    z-index: 100;
    background-color: rgba(192, 192, 192, 0.5);
    background-image: url("../images/loading.gif");
    background-repeat: no-repeat;
    background-position: center;
  }
}

@media screen and (max-width: 768px) and (min-width: 991px) {
  #loading {
    width: 75%;
    height: calc(96.25% - 168px);
    display: block;
    position: absolute;
    left: 0;
    z-index: 100;
    background-color: rgba(192, 192, 192, 0.5);
    background-image: url("../images/loading.gif");
    background-repeat: no-repeat;
    background-position: center;
  }
}