.bg-gradient-primary {

    color: #000;
    background-image: linear-gradient(180deg,#fff 10%,#fff 100%);
    background-size: cover;
    box-shadow: 0 0.15rem 1.75rem 1.75rem rgb(58 59 69 / 5%) !important;
}
.app-title{
    margin-top: 10px;
    margin-left: 10px;
    color: #4e73df;
    font-weight: 600;
}
.hidden{
    display: none;
}

.banner{
    height: 10vh;
    padding: 5px;
    /* margin: 5px; */
    display: flex;
    background-image: url('/images/banner_bg.png');
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 80px;
}
.banner img{
    height: 100%;
}
#ttl1{
    color: rgb(172, 5, 5);
    /* font-size: 2rem; */
    font-size: 1.8rem;
    font-weight: 600;
}
#ttl2{
    color: rgb(4, 96, 10);
    font-size: 1rem;
    display: grid;
    font-weight: 600;
}
footer.sticky-footer {
    padding: 0.5rem 0;
    flex-shrink: 0;
    background-color: #fff !important;
}

.ui-widget .ui-widget {
    font-size: 0.65em !important;
}
.sidebar .nav-item .nav-link {
    display: block;
    width: 100% !important;
    text-align: left;
    padding: 1rem;
    width: 14rem;
}
.sidebar .nav-item .nav-link span {
  font-size: 1rem;
  display: inline;
}
.card-header {
  padding: 0.5rem 0.5rem !important;
  margin-bottom: 0;
  background-color: #f8f9fc;
  border-bottom: 1px solid #e3e6f0;
}

 .blockMsg {
  z-index: 1011;
  position: fixed;
  padding: 0px;
  margin: 0px;
  width: auto !important;
  top: 40%;
  left: 47% !important;
  text-align: center;
  color: rgb(0, 0, 0);
  border: 3px solid rgb(170, 170, 170);
  background-color: rgb(255, 255, 255);
  cursor: wait;
  border-radius: 50%;
}

.loginCard{
  top:30% !important;
}

.ui-dialog-titlebar-collapse, .ui-dialog-titlebar-collapse-restore{
    float: right;
    margin-right: 1rem !important;
    margin-top: 3px;
}


.form-check-input:not(:checked), .form-check-input:checked {
  position: absolute;
  pointer-events: none;
  opacity: 0;
}


.singleline {
  white-space: nowrap; 
  overflow: hidden;
  text-overflow: ellipsis;
}

table.dataTable thead th, table.dataTable thead td {
  padding: 5px 15px 5px 5px;
}

.border{
  border: 1px solid #ddd;
}

.dataTables_wrapper {
  position: relative;
  clear: both;
  margin-top: 10px;
}
.form-group {
  margin-bottom: 0.5rem;
}
.map-div{
  height: calc(100vh - 320px) !important;
}

.chartDiv{
  height: 400px;
}

.text-pink{
  color:#e56084;
}
.bg-pink{
  background-color: #e56084;
}
.border-left-pink {
  border-left: 0.25rem solid #e56084 !important;
}
#pollutionData th {text-align:center;vertical-align:middle}
#pollutionData {font-size:13px !important; margin-top:15px;}
.highcharts-credits{
  display: none !important;
}
@media only screen and (max-width: 600px) {
  .loginCard{
    top:0%
  }
    .app-title{
        font-size: 16px;
        margin-left: 0px;
    }
    .banner{
        height: 10vh;
    }
    #ttl1{
        font-size: 1rem;
    }
    #ttl2{
        font-size: 0.8rem;
    }
  }


  @media screen and (max-width: 1366px){
    #pollutionData {
      font-size: 12px !important;
    }
    table.dataTable tbody td {
      padding: 5px 5px;
  }
    /* html {
      zoom: 80%;
   } */
   .chartDiv{
    height: 300px;
  }
   .ui-widget {
    font-size: 0.8em !important;
  }
  .select2-container--bootstrap-5 .select2-selection {
    font-size: 0.9em !important;
  }
      .card-body {
        flex: 1 1 auto;
        min-height: 1px;
        padding: 0.5rem !important;
    } 
     .py-2 {
      padding-bottom: 0.1rem !important;
      padding-top: 0.1rem !important;
    }
    .mb-4, .my-4 {
      margin-bottom: 0.75rem !important;
    }
    .map-div{
      height: calc(100vh - 270px) !important;
    }
  }

  .dt-buttons{
    float: left;
  }

  /* for map */


  .map {
    width: 100%; height: 100%; 
    position: absolute;
    z-index: 101;
    /*width: 100%;  height:700px;*/
  }
  .ol-popup {
    position: absolute;
    background-color: white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #cccccc;
    bottom: 12px;
    left: -50px;
    /* min-width: 280px; */
    min-width: 380px;
  }
  .ol-popup:after, .ol-popup:before {
    top: 100%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
  }
  .ol-popup:after {
    border-top-color: white;
    border-width: 10px;
    left: var(--arrow-left, 48px); /* Use CSS variable, default to 48px if not set */
    margin-left: -10px;
  }
  .ol-popup:before {
    border-top-color: #cccccc;
    border-width: 11px;
    left: var(--arrow-left, 48px); /* Use CSS variable, default to 48px if not set */
    margin-left: -11px;
  }
  .ol-popup-closer {
    position: absolute;
    top: -14px; /* Adjusted to be outside the popup */
    right: -14px; /* Adjusted to be outside the popup */
    width: 36px; /* Increased from 28px */
    height: 36px; /* Increased from 28px */
    background-color: #dc3545; /* Red background */
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px; /* Increased from 18px */
    font-weight: bold;
    line-height: 1;
    border: 2px solid #fff; /* White border */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.2s ease-in-out;
    z-index: 10002; /* Ensure it's above the popup content */
  }

  .ol-popup-closer:hover {
    background-color: #c82333; /* Darker red on hover */
    transform: scale(1.1); /* Slightly enlarge on hover */
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  }

  .ol-popup-closer:after {
    content: "×"; /* Unicode multiplication sign for a clear 'x' */
  }
  .asterisk{
    color: rgb(162, 5, 5);
  }


  /* .mapTitle{
    position: absolute;
    z-index: 99;
    background-color: rgba(255,255,255,0.4);
    left: 40%;
    width:20%;
    text-align: center;
    border-radius: 25px;
    margin-top: 5px;
  } */
  /* .inner-title{
    background-color: rgba(255,255,255,0.8);
    border-radius: 25px;
    margin: 4px;
  } */

  .chartDiv {
    height: 250px;
}

table.dataTable tbody th, table.dataTable tbody td {
  padding: 3px 5px;
}

/* .custom-mouse-position{
  pointer-events: auto;
  text-align: right;
  font-weight: bold;
  font-family: serif;
  bottom: 0;
  position: absolute;
  text-align: center;
  left: 3%;
} */

.ol-control {
  position: absolute;
  background-color: rgb(209 209 209 / 40%) !important;
  border-radius: 4px;
  padding: 2px;
}


.ol-layerswitcher .layerswitcher-opacity .layerswitcher-opacity-cursor, .ol-layerswitcher .layerswitcher-opacity .layerswitcher-opacity-cursor:before {
  position: absolute;
  width: 12px !important;
  height: 12px !important;
  top: 50%;
  left: 50%;
  background: rgba(0,60,136,0.5);
  border-radius: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  z-index: 1;
}

/* .ol-noscroll{
  display: none !important;
} */
.layerup {
  display: none !important;
}
.ol-layerswitcher-buttons {
  float: left !important;
  margin-top: -1px;
  padding-right: 5px;
}

.ol-layerswitcher .layerswitcher-opacity {
  position: relative;
  border: 0px solid #369 !important;
  height: 2px !important;
  width: 120px;
  margin: 5px 1em 10px 7px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  border-radius: 3px;
  background: #69c;
  background: -webkit-gradient(linear, left top, right top, from(rgba(0,60,136,0)), to(rgba(0,60,136,0.6)));
  background: linear-gradient(to right, rgba(0,60,136,0), rgba(0,60,136,0.6));
  cursor: pointer;
  -webkit-box-shadow: 1px 1px 1px rgb(0 0 0 / 50%);
  box-shadow: 1px 1px 1px rgb(0 0 0 / 50%);
}

.ol-layerswitcher .panel li label {
  display: inline-block;
  height: 1.4em;
  max-width: 12em;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 0 0 0 1.7em;
  position: relative;
  font-weight: 600;
}

.ol-layerswitcher .panel li label span {
  display: inline-block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 0.2em;
}


.ol-layerswitcher .panel li > div {
    display: inline-block;
    position: relative;
}
*, ::after, ::before {
    box-sizing: border-box;
}

div {
    display: block;
}

li {
    text-align: -webkit-match-parent;
}
.ol-layerswitcher .panel {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow: hidden;
    font-family: Tahoma,Geneva,sans-serif;
    font-size: 0.8em !important;
    -webkit-transition: top 0.3s;
    transition: top 0.3s;
    position: relative;
    top: 0;
}


.ol-scale-line {
  background: rgba(0,60,136,.3);
  border-radius: 4px;
  margin-bottom: 25px !important;
  right: 8px !important;
  left: auto !important;
  padding: 2px;
  position: absolute;
}

.custom-mouse-position {
  pointer-events: auto;
  text-align: right;
  background-color: #ffffff;
  /* color: #F44336; */
  font-weight: bold;
  font-family: serif;
  /* bottom: 0; */
  position: absolute;
  text-align: center;
  right: 0 !important;
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 3px;
}

.blockMsg {
  z-index: 1011;
    position: fixed;
    padding: 0px;
    margin: 0px;
    width: 30%;
    top: 40%;
    left: 35%;
    text-align: center;
    color: rgb(0, 0, 0);
    border: 1px solid rgb(170, 170, 170) !important;
    background-color: rgb(255, 255, 255);
    cursor: wait;
    padding: 5px !important;
    border-radius: 5px;
}
.ol-search-type {
  top: 0.6rem;
  left: 3rem;
  cursor: pointer !important;
  pointer-events: auto !important;
}

/* .ol-search {
  top: 0.5em;
  left: 5em !important;
} */

.ui-dialog {
  z-index: 1001 !important;
}

.ol-control.ol-legend .ol-legend {
  display: none !important;
}

.ol-layer-vector{
  display: none !important;
}

.counter-div .card-body {
  flex: 1 1 auto;
  min-height: 1px;
  padding: 0.25rem 1.25rem !important;
}

.mb-4, .my-4 {
  margin-bottom: 0.8rem !important;
}
.map-div {
  height: calc(100vh - 220px) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  box-sizing: border-box;
  display: inline-block;
  min-width: 1.5em;
  padding: 0.1em 0.5em;
  margin-left: 2px;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  *cursor: hand;
  color: #333 !important;
  border: 1px solid transparent;
  border-radius: 2px;
}
#ddl-pollution-type .select2-selection--multiple, #ddl-pollution-type .select2 {
  width: 400px !important;
}

.container, .container-fluid, .container-sm, .container-md, .container-lg, .container-xl {
  padding-left: 1rem;
  padding-right: 1rem;
}