/*
 * =========================================================
 * KLH ISPU APPLICATION CSS
 * Depends on the shared KLH Base CSS.
 * =========================================================
 */
:root {
  --ispu-good: #00cc00;
  --ispu-moderate: #0000cc;
  --ispu-unhealthy: #cccc00;
  --ispu-danger: #cc0000;
  --ispu-hazardous: var(--klh-black);
  --ispu-invalid: transparent;
}

body {
  overflow: auto;
}

header {
  top: 5.5%;
  /* top: 0%; */
  position: fixed;
  height: 77px;
  background-color: var(--klh-white);
  box-shadow: var(--klh-shadow-sm, 0 2px 10px rgba(0, 0, 0, 0.08));
}

.background-header {
  top: 5.5%;
  /* top: 0%; */
}

.navbar .navbar-nav a.nav-link {
  color: var(--klh-text);
  font-size: 13px;
}

.navbar .navbar-nav .active>.nav-link {
  color: var(--klh-primary);
}

.navbar .navbar-nav .nav-link:hover {
  color: var(--klh-primary);
}

.page-head-more {
  padding-top: 150px !important;
  text-align: left;
}

.page-heading {
  padding: 350px 0px 80px 0px;
}

/* TABLE  */
.table-custom thead th {
  border-top: 0px;
}

.table-cus {
  border-collapse: collapse;
  border-radius: 1em;
  overflow: hidden;
}

.table-cus>thead>tr>th {
  background: var(--klh-surface-soft);
  border-bottom: 2px solid var(--klh-white);
  vertical-align: middle;
}

.table-cus>thead>tr>th,
.table-cus>tbody>tr>td {
  border: 1px solid var(--klh-border);
  color: var(--klh-black);
}

.table-ispu-home td {
  border-top: 0px;
  padding: 4px;
}

/* END TABLE  */
/* SEARCH  */
.input-icons i {
  position: absolute;
}

.input-icons {
  width: 100%;
  margin-bottom: 6px;
  /* margin-top: 3px; */
}

.icon {
  padding: 10px;
  color: green;
  min-width: 39px;
  text-align: center;
  background: var(--klh-white);
  border: 1px solid var(--klh-border);
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.input-field {
  width: 100%;
  padding: 5px;
  text-align: center;
  border-radius: 10px;
  border: 1px solid var(--klh-border);
}

/* END SEARCH  */
/* CARD ISPU GRAPH  */
.card-ispu-kota {
  position: fixed;
  bottom: 100px;
  margin-left: 10px;
  margin-right: 10px;
  z-index: 1030;
  max-width: 545px;
  width: 100%;
}

.card-bg-texture {
  background-image: repeating-linear-gradient(36deg,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.1) 1px,
      transparent 0px,
      transparent 2px) !important;
}

.card-ispu-header {
  /* max-width: 420px; */
  max-width: 500px;
}

.card-ispu-badge {
  padding: 5px;
  border-radius: 5px;
  background: rgb(255 255 255 / 29%);
  font-size: 11px;
}

.card-ispu-address {
  font-size: 10px;
}

/* END CARD  */
/* CARD SERACH  */
.card-search {
  width: 300px;
  float: right;
  right: 51px;
  top: -11px;
  position: relative;
}

/* CARD LEGEND  */
.card-ispu-bottom {
  position: fixed;
  bottom: 0px;
  clear: both;
  margin-left: 10px;
  margin-right: 10px;
  margin-bottom: 10px;
  z-index: 999;
  max-width: 545px;
  width: 545px;
}

.w-20 {
  width: 20%;
}

.nama-kategori {
  text-align: center;
  color: var(--klh-black);
  font-size: 9px;
  font-weight: 700;
  margin-top: 3px;
}

.jenis-kategori {
  width: 80px;
  height: 20px;
  border-radius: 10px;
  margin: 0 auto;
  text-align: center;
  color: var(--klh-white);
  font-size: 10px;
  vertical-align: top;
  font-weight: bold;
  line-height: 20px;
}

.jenis-kategori.hijau {
  background: var(--ispu-good);
}

.jenis-kategori.biru {
  background: #0000cc;
}

.jenis-kategori.kuning {
  background: var(--ispu-unhealthy);
}

.jenis-kategori.merah {
  background: var(--ispu-danger);
}

.jenis-kategori.hitam {
  background: var(--klh-black);
}

/* END LEGEND  */
/* CARD KETERANGAN  */
.card-ispu-ket {
  position: fixed;
  bottom: 0px;
  clear: both;
  right: 10px;
  margin-right: 10px;
  margin-bottom: 10px;
  z-index: 999;
  max-width: 800px;
  width: 100%;
}

.card-ket-text {
  font-size: 12px;
}

.b-radius {
  border-radius: 10px !important;
}

/* END CARD KETERANGAN  */
/* VERTICAL GRAPH */
.verticalChart {
  width: 100%;
  height: 100%;
}

.verticalChart .chart-left,
.verticalChart .chart-right {
  float: left;
  height: 100%;
}

.verticalChart .chart-left {
  width: 35%;
}

.verticalChart .chart-right {
  width: 65%;
}

.verticalChart .categoryBar {
  height: 100%;
  margin-right: 5px;
}

.verticalChart .singleBar {
  width: calc(14.25% - 5px);
  float: left;
  margin-right: 5px;
  height: 100%;
}

.verticalChart .singleBar .bar,
.verticalChart .categoryBar .bar {
  position: relative;
  height: 206px;
  /* background: rgb(0 0 0 / 20%); */
  background: rgb(169 169 169 / 20%);
  overflow: hidden;
}

.verticalChart .singleBar .bar .value,
.verticalChart .categoryBar .bar .value {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: var(--klh-border);
  color: var(--klh-border);
}

.verticalChart .singleBar .bar .value span,
.verticalChart .categoryBar .bar .value span {
  position: absolute;
  font-size: 12px;
  bottom: 0;
  width: 100%;
  height: 20px;
  color: var(--klh-border);
  text-shadow:
    0 -1px 0 var(--klh-white),
    0 1px 0 var(--klh-white),
    1px 0 0 var(--klh-white),
    -1px 0 0 var(--klh-white),
    -1px -1px 0 var(--klh-white),
    -1px 1px 0 var(--klh-white),
    1px 1px 0 var(--klh-white),
    1px -1px 0 var(--klh-white);
  display: none;
  text-align: center;
}

.verticalChart .singleBar .bar span.top-position {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: absolute;
  font-size: 1em;
  top: 0;
  width: 100%;
  height: 20%;
  color: var(--klh-black);
  font-weight: bold;
  text-shadow:
    0 -1px 0 var(--klh-white),
    0 1px 0 var(--klh-white),
    1px 0 0 var(--klh-white),
    -1px 0 0 var(--klh-white),
    -1px -1px 0 var(--klh-white),
    -1px 1px 0 var(--klh-white),
    1px 1px 0 var(--klh-white),
    1px -1px 0 var(--klh-white);
  border-bottom: 3px solid var(--klh-danger);
  text-align: center;
  z-index: 999;
}

.verticalChart .singleBar .bar span.bm-position {
  position: absolute;
  font-size: 1em;
  top: 20%;
  width: 100%;
  color: var(--klh-black);
  text-shadow:
    0 -1px 0 var(--klh-white),
    0 1px 0 var(--klh-white),
    1px 0 0 var(--klh-white),
    -1px 0 0 var(--klh-white),
    -1px -1px 0 var(--klh-white),
    -1px 1px 0 var(--klh-white),
    1px 1px 0 var(--klh-white),
    1px -1px 0 var(--klh-white);
  text-align: center;
  z-index: 999;
}

.verticalChart .singleBar .title,
.verticalChart .categoryBar .title {
  margin-top: 5px;
  text-align: center;
  height: 30px;
}

.verticalChart .ispu-category {
  height: 20%;
  color: var(--klh-white);
  font-weight: bold;
  font-size: 0.9vw;
  position: relative;
}

.verticalChart .ispu-category span {
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: block;
  width: 100%;
  text-align: center;
}

#stasiun-detail .verticalChart .ispu-category span {
  font-size: 1.5em !important;
}

.category-5 {
  background-color: var(--ispu-hazardous) !important;
  color: var(--klh-white) !important;
}

.category-4 {
  background-color: var(--ispu-danger) !important;
  color: var(--klh-white) !important;
}

.category-3 {
  background-color: var(--ispu-unhealthy) !important;
  color: var(--klh-white) !important;
}

.category-2 {
  background-color: #0000cc !important;
  color: var(--klh-white) !important;
}

.category-1 {
  background-color: var(--ispu-good) !important;
  color: var(--klh-white) !important;
}

.category-6 {
  background-color: var(--klh-white) !important;
  color: var(--klh-white) !important;
  display: none;
}

.category-invalid {
  background-color: transparent !important;
  color: var(--klh-white) !important;
}

.title-category {
  padding: 3px 5px;
}

.stasiun-title {
  font-weight: bold;
  font-size: 1.1em;
}

.card-ispu-kota .btn-group-sm>.btn,
.btn-sm {
  font-size: 10px;
  border: 1px solid var(--klh-border);
}

/* SCROLL */
::-webkit-scrollbar-thumb {
  background-color: rgba(194, 194, 194, 0.8);
  border: 4px solid transparent;
  border-radius: 8px;
  background-clip: padding-box;
}

div::-webkit-scrollbar {
  width: 16px;
}

/* CARD ISPU HOME  */
.card-ispu-home {
  position: absolute;
  top: 19%;
  right: 11px;
  bottom: 90px;
  margin-left: 10px;
  margin-right: 10px;
  z-index: 1030;
  /* max-width: 360px;\**
*\*  width: 360px; */
  max-width: 500px;
  width: 500px;
  font-size: 12px;
}

.card-ispu-home .card-body {
  overflow: auto;
}

/* END */
/* CARD DOWNLOAD  */
.card-ispu-download {
  position: absolute;
  bottom: 80px;
  clear: both;
  margin-left: 20px;
  margin-right: 20px;
  margin-bottom: 10px;
  z-index: 999;
  max-width: 345px;
  width: 345px;
}

/* END  */
/* CARD ISPU TITLE  */
.card-ispu-title {
  position: fixed;
  bottom: 12%;
  clear: both;
  margin-left: 10px;
  margin-right: 10px;
  margin-bottom: 10px;
  z-index: 999;
  max-width: 420px;
  width: 420px;
}

.bg-trans-black {
  background: color-mix(in srgb, var(--klh-black) 74%, transparent) !important;
}

.bg-trans {
  background: transparent;
}

.bg-black {
  background: var(--klh-black);
}

/* MAPS  */
.leaflet-layer,
.leaflet-control-zoom-in,
.leaflet-control-zoom-out,
.leaflet-control-attribution {
  /* filter: invert(100%) hue-rotate(180deg) brightness(201%) contrast(97%) */
}

#map {
  height: 800px;
}

.btn-reset-zoom {
  position: absolute;
  right: -50px;
}

.container {
  max-width: var(--klh-container-max-width, 1300px);
  /* max-width: 100%; */
}

.klh-top-menu {
  padding: 8px 0;
  background-color: var(--klh-primary-dark);
  position: fixed;
  width: 100%;
  z-index: 9999;
}

.navbar .navbar-brand {
  margin-top: -22px;
  padding-bottom: 0px;
  margin-left: -16px;
}

.navbar .navbar-brand img {
  width: 75px;
}

.logo-text {
  margin-bottom: -5px;
}

.navbar {
  box-shadow: 0px 0px 0px !important;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .active>.nav-link,
.navbar .navbar-nav .nav-link.active,
.navbar .navbar-nav .nav-link.show,
.navbar .navbar-nav .show>.nav-link {
  border-bottom: 0px;
}

/* END  */
@media only screen and (max-width: 600px) {

  header,
  .background-header {
    top: 4.2%;
    /* top: 0%; */
  }

  .navbar .navbar-brand {
    margin-top: -33px;
  }

  .logo-text {
    font-size: 12px;
  }

  .img-logo {
    width: 300px;
    margin-top: -7px;
  }

  .card-ispu-bottom {
    max-width: 390px;
  }

  .card-ispu-ket {
    position: fixed;
    bottom: 96px;
    left: 10px;
    max-width: 390px;
    width: 100%;
  }

  .container-jenis-kategori {
    width: 100%;
    overflow-y: auto;
    display: flex;
    padding: 5px;
  }

  .card-ispu-home {
    position: absolute;
    height: 500px;
    background: var(--klh-black) !important;
    max-width: 94%;
    width: 100%;
    top: 100%;
    right: 0px;
    left: 0px;
    margin-top: 10px;
  }

  .card-ispu-title {
    display: none;
  }

  .card-ispu-download {
    position: absolute;
    display: block;
    top: 17%;
    max-width: 100%;
    height: 80px;
  }

  #map {
    height: 800px;
  }

  #legand-wind {
    bottom: 9px;
    left: 10px;
    width: 94%;
    display: block;
    right: 10px;
  }

  #time-prediksi {
    top: 71%;
    left: 10px;
    width: 94%;
    display: block;
    right: 10px;
  }

  #leg-ispu {
    width: 94%;
    display: block;
    height: 82px;
    right: 14px;
    bottom: 84px;
  }

  .card-search {
    top: 291px;
  }

  .map-container {
    position: relative !important;
  }

  .card-ispu-kota {
    position: absolute;
    top: 670px;
    display: block;
    max-width: 100%;
    margin: 0px;
    height: 700px;
  }

  .card-ispu-ket {
    position: absolute;
    bottom: -351px;
    height: 0px;
    display: block;
    width: 94%;
    z-index: 1030;
  }

  .btn-reset-zoom {
    float: left;
    top: -51px;
    right: 10px;
  }

  body {
    overflow: auto;
  }
}