/* wider navbar menu */
#navbarSupportedContent > ul > li > ul.dropdown-menu.show {
  min-width: 242px;
}
div.navbar-collapse.collapse.show > ul > li > ul.dropdown-menu.show {
  min-width: initial !important;
}

/* OVERVIEW PAGE */
#kne-key-res-div {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-flow: row wrap;
          flex-flow: row wrap;
  border:1px solid #DDD;
}

#kne-overview-map {
  margin-bottom: 0px !important;
  min-height: 510px;
}
div.leaflet-tooltip {
  /*text-align: center;*/
  font-size: 12px !important;
}

#speciesTab {
  cursor: pointer;
}
#speciesTab > li > a {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  padding-left: 0px;
  padding-right: 0px;
}
#speciesTab > li > a {
  border-top: 1px solid transparent;
  background-color: #f1f1f1;
}
#speciesTab > li > a:hover {
  background-color: #fff !important;
}
#speciesTab > li > a.active {
  border-top: 1px solid transparent;
  background-color: #fff;
  color: #174a5b;
}
#speciesTab > li:first-child > a,
#speciesTab > li:first-child > a.active {
  border-left: 1px solid transparent;
}
#speciesTab > li:last-child > a,
#speciesTab > li:last-child > a.active {
  border-right: 1px solid transparent;
}
#kne-table {
  width: calc(100% - 12px);
  margin: 6px;
}
#kne-table th {
  color: #174a5b;
}
#kne-table a {
  color: rgb(33, 37, 41);
  border-bottom: none;
}
#kne-table a:hover {
  background: transparent;
}
.kne-table-hover {
  background-color: rgba(23, 74, 91, 0.1) !important;
}

/* TTI LEGEND */
div.tti-legend,
div.tti-legend-non-target {
  line-height: 1.3;
  font-size: 14px;
  font-family: "Source Sans Pro", sans-serif;
  background-color: rgba(255, 255, 255, 0.8) !important;
}
#kne-overview-map > div.leaflet-control-container > div.leaflet-bottom.leaflet-left > div > form > div.leaflet-control-layers-overlays > label > div > span {
  font-size: 14px;
  font-family: "Source Sans Pro", sans-serif;
}
div.tti-legend > i:nth-of-type(1),
div.tti-legend-non-target > i:nth-of-type(1),
div.tti-legend > i:nth-of-type(2),
div.tti-legend-non-target > i:nth-of-type(2) {
  height: 5px;
  margin-top: 6px;
}
div.tti-legend > i:nth-of-type(7),
div.tti-legend > i:nth-of-type(8),
div.tti-legend > i:nth-of-type(9),
div.tti-legend-non-target > i:nth-of-type(4),
div.tti-legend-non-target > i:nth-of-type(5),
div.tti-legend-non-target > i:nth-of-type(6) {
    background: none !important;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover !important;
    width: 22px;
    height: 22px;
    -ms-interpolation-mode: nearest-neighbor;
        image-rendering: -moz-crisp-edges;
        image-rendering: -o-pixelated;
        image-rendering: pixelated;
    image-rendering: -webkit-optimize-contrast;
}
div.tti-legend > i:nth-of-type(7) {
    background-image: url(./arrows/increasing-grey.png) !important;
}
div.tti-legend > i:nth-of-type(8) {
    background-image: url(./arrows/no-change-grey.png) !important;
}
div.tti-legend > i:nth-of-type(9) {
    background-image: url(./arrows/decreasing-grey.png) !important;
}
div.tti-legend-non-target > i:nth-of-type(4) {
    background-image: url(./arrows/increasing-blue.png) !important;
}
div.tti-legend-non-target > i:nth-of-type(5) {
    background-image: url(./arrows/no-change-blue.png) !important;
}
div.tti-legend-non-target > i:nth-of-type(6) {
    background-image: url(./arrows/decreasing-blue.png) !important;
}

/* KNE PAGES */

#kne-info > h3 {
   padding-top: 24px;
   margin-top: -36px;
}
#kne-chart-tabs .escir-shared-output {
  margin-bottom: 24px;
}
#kne-chart {
  width: 100%; 
  height: 400px;
}

/* line maps */
#kne-mon-map-div {
  border: 1px solid #DDD;
  max-width: 450px;
  display: inline-block;
  float: right;
  margin-left: 16px;
  margin-top: -32px;
}
.kne-mon-line-legend {
  line-height: 1.4; 
}
/* default lines for first legend item */
.kne-mon-line-legend > i:nth-of-type(1) {
  height: 4px;
  margin-top: 7px;
}
/* ot has circles for tunnel */
.kne-mon-line-legend.kne-mon-tunnel > i:nth-of-type(1) {
  background: none !important;
  border: 4px solid #f45b5b;
  border-radius: 15px;
  height: 14px;
  width: 14px;
  margin-top: 2px;
  margin-left: 2px;
}
/* all have cyan second */
.kne-mon-line-legend > i:nth-of-type(2) {
  background: none !important;
  border: 4px solid #91e8e1;
}
/* default purple for area for third */
.kne-mon-line-legend > i:nth-of-type(3) {
  background: none !important;
  border: 4px solid #8085e9;
}
/* EXCEPT for wai which has nta third and purple fourth */
.kne-mon-line-legend.kne-mon-nta > i:nth-of-type(3) {
  border: 4px solid #e4d354;
}
.kne-mon-line-legend > i:nth-of-type(4) {
  background: none !important;
  border: 4px solid #8085e9;
}
#kne-mon-map-div > p {
  padding: 0px 10px;
  margin-bottom: 12px;
}

#kne-mon-minimap-div {
    position: absolute;
    top: 0;
    margin: 6px;
    padding: 6px;
    padding-bottom: 0px;
    background: #fff;
    border-radius: 5px;
}

/* CHARTS */
#monitoring-information h3 {
    padding-top: 1px;
    margin-top: -14px;
}

/* month checks */
.kne-banner-div {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-flow: row wrap;
            flex-flow: row wrap;
    padding-left: 12px;
    -webkit-box-align: self-end;
        -ms-flex-align: self-end;
            align-items: self-end;
}
.kne-month-div {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-flow: row wrap;
            flex-flow: row wrap;
}
.kne-month-div .form-check-input:checked {
    background-color: #174a5b;
    border-color: #174a5b;
}
label.form-check-label {
  padding-left: 6px;
}
.form-check {
  cursor: pointer;
}
.kne-month-prefix {
  margin-right: 12px;
  padding-bottom: 2px;
}
.kne-chart-title {
    color: #174a5b;
    font-size: 24px;
    font-weight: bold;
    -webkit-box-flex: 1;
        -ms-flex-positive: 1;
            flex-grow: 1;
}

/* METHODS */
.methods-andor-indent {
    margin-left: 32px;
    margin-top: -8px;
    margin-bottom: 8px;
}

/* LOADING SCREENS */

#loading {
  background: rgba(255,255,255,0.75);
  z-index: 10000;
  -ms-flex-line-pack: center;
    align-content: center;
  display: none;
}
.while-loading #loading {
  /* override display-none while loading */
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-flow: row wrap;
          flex-flow: row wrap;
  height: 100%;
  width: 100%;
  z-index: 9999;
}

/* overview */
#kne-key-res-div.while-loading {
  position: relative;
}

#kne-key-res-div.while-loading #loading {
  position: absolute;
}

/* charts */
#kne-chart-tabs .while-loading {
  height: 436px;
}

/* loading rings CREDIT to https://loading.io/css/ */
.lds-ring {
  display: inline-block;
  position: relative;
  width: 100%;
  height: 80px;
  -ms-flex-item-align: center;
      -ms-grid-row-align: center;
      align-self: center;
}
.lds-ring div {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  display: block;
  position: absolute;
  width: 64px;
  left: calc(50% - 32px);
  height: 64px;
  margin: 8px;
  border: 8px solid #CCCCCC;
  border-radius: 50%;
  -webkit-animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
          animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: #CCCCCC transparent transparent transparent;
}
.lds-ring div:nth-child(1) {
  -webkit-animation-delay: -0.45s;
          animation-delay: -0.45s;
}
.lds-ring div:nth-child(2) {
  -webkit-animation-delay: -0.3s;
          animation-delay: -0.3s;
}
.lds-ring div:nth-child(3) {
  -webkit-animation-delay: -0.15s;
          animation-delay: -0.15s;
}
@-webkit-keyframes lds-ring {
  0% {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}
@keyframes lds-ring {
  0% {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}

/* RESPONSIVES */
@media (max-width: 930px) {
  #kne-key-res-div > div:nth-child(2) {
    min-width: 100%;
  }
  #kne-key-res-div > div:nth-child(3) {
    width: calc(100vw - 90px);
    overflow-x: auto;
  }
}
#scroll-note {
  margin-top: 16px;
  font-style: italic;
  display: none;
}
@media (max-width: 500px) {
  /*#kne-table-wrapper {
    overflow-x: auto;
  }*/
  #scroll-note {
    display: block;
  }
}
@media (max-width: 630px) {
  #methods .mobile-scroll {
    overflow-x: auto;
  }
}

/* bootstrap fix */
.section.level1, .section.level2, .section.level3, section.level1, section.level2, section.level3 {
  margin-top: 0px !important;
}
div.escir-shared-output {
    border: 1px solid #DDD;
    border-top: none;
    padding: 4px;
    padding-top: 12px;
    margin-top: -28px;
}
