/***********/
/* Variables */
:root {
  --bs-list-group-active-color: #fff !important;
  --bs-list-group-active-bg: #7AABDE !important;
  --bs-list-group-active-border-color: #7AABDE !important;
}

/***********/
/* Layout */



.ggclimate-chart .ggchart-supercont {
  display: flex;
  height: 100%;
  width: 100%;
}

.ggclimate-chart .ggchart-supercont.withchart .ggchart-tabs {
  display: block;
}

.ggclimate-chart .ggchart-tabs {
  min-width: 170px;
  padding-top: 20px;
  padding-right: 1rem;
  border: none;
  gap: 8px;
}

/***********/
/* List items */
.list-group-item {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 30px !important;
  border-radius: 50px !important;
  background: #EFF0EB !important;
  color: #B4B4B4 !important;
  font-family: Montserrat, sans-serif !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  padding: 0 10px !important;
}

.list-group-item.active {
  background-color: #7AABDE !important;
  border-color: #7AABDE !important;
  color: #FFF !important;
}

/***********/
/* Tabs dropdown */
.ggclimate-chart .ggchart-tabs-dropdown {
  display: none;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 400;
  font-size: 12px;
  line-height: 15px;
}

/***********/
/* Chart container */
.ggchart-cont {
  width: 100%;
  height: 100%;
}

.ggchart-multiplechart {
  max-height: 45%; /* last declaration wins */
  height: 100%;
  position: relative;
}

/***********/
/* Toolbar */
.ggclimate-chart .ggchart-tollbar {
  width: 100%;
  padding-top: 5px;
  text-align: center;
}

.ggclimate-chart .ggchart-tollbar .ggchart-tollbar-item {
  background-color: #EEA42D;
  border-radius: 10px;
  border: none;
  padding: 8px;
  margin: 0px 5px;
  height: 35px;
  width: 35px;
}

.ggclimate-chart .ggchart-tollbar .ggchart-tollbar-item svg {
  fill: #FFFFFF;
  height: 20px;
  width: 20px;
}

.ggclimate-chart .ggchart-tollbar .ggchart-tollbar-item:hover {
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

/***********/
/* Chart controls */
.ggclimate-chart .ggchart-cont .ggchart-multiplechart .ggchart-multiplechart-chartctrls {
  position: absolute;
  right: 0;
  top: 0;
  border: solid 1px #EEA42D;
  border-radius: 5px;
  cursor: pointer;
}

.ggclimate-chart .ggchart-cont .ggchart-multiplechart .ggchart-multiplechart-chartctrls svg {
  width: 20px;
  height: 19px;
  margin: 0.3rem;
}

.ggclimate-chart .ggchart-cont .ggchart-multiplechart .ggchart-multiplechart-chartctrls svg.togglesvg {
  stroke: #EEA42D;
}

.ggclimate-chart .ggchart-cont .ggchart-multiplechart .ggchart-multiplechart-chartctrls:hover {
  background-color: #EEA42D;
  border-radius: 10px;
}

.ggclimate-chart .ggchart-cont .ggchart-multiplechart .ggchart-multiplechart-chartctrls:hover svg.togglesvg {
  stroke: #FFFFFF;
  stroke-width: 2px;
}

.ggclimate-chart .ggchart-cont .ggchart-multiplechart .ggchart-multiplechart-chartctrls .ggchart-multiplechart-chartctrls-menu {
  padding-left: 0.2rem;
  display: none;
}

.ggclimate-chart .ggchart-cont .ggchart-multiplechart .ggchart-multiplechart-chartctrls .ggchart-multiplechart-chartctrls-menu svg {
  margin-right: 0.4rem;
}

.ggclimate-chart .ggchart-cont .ggchart-multiplechart .ggchart-multiplechart-chartctrls .ggchart-multiplechart-chartctrls-menu svg:hover {
  opacity: 0.8;
}

.ggclimate-chart .ggchart-cont .ggchart-multiplechart .ggchart-multiplechart-chartctrls:hover .ggchart-multiplechart-chartctrls-menu {
  display: inline-block;
}

/***********/
/* Sliders */
.irs--flat {
  height: 40px !important;
}

/***********/
/* Dashboards */
.dashclidata-chart-div.ggclimate-chart {
  height: 100%;
  display: none;
}


.ggclimate-chart .ggchart-tollbar .ggchart-tollbar-item{
  padding: 5px;
}

/***********/
/* Responsive breakpoints */

@media (min-width: 1800px) {
  .ggchart-multiplechart {
    max-height: 43%;
  }
}

@media (max-width: 1799.98px) and (min-width: 1600px) {
  .ggchart-multiplechart {
    max-height: 45%;
  }
}

@media (max-width: 1599.98px) and (min-width: 1400px) {
  .ggchart-multiplechart {
    max-height: 47%;
  }
}

@media (max-width: 1399.98px) and (min-width: 1200px) {
  .ggchart-multiplechart {
    max-height: 40%;
  }
}

@media (max-width: 1199.98px) and (min-width: 992px) {


  .ggclimate-chart .ggchart-tabs .list-group-item{
    padding: 0.1rem 0.1rem !important;
  }

  .col-lg-4,
  .col-lg-8 {
    max-height: 80vh;
  } 

  #dashbar .dashbar-section .dashbar-section-label img {
    height: auto;
    width: 18px;
    margin-right: 0.3rem;
  }

  .text-nowrap .list-group-item .list-group-item-action{
    padding: 0.2rem 0.1rem !important;
  }

  .list-group-item {
    height: auto !important;
  }

}

@media (max-width: 991.98px) and (min-width: 768px) {

  body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  .ggchart-multiplechart {
    max-height: 42%;
  }

  .ggclimate-chart .ggchart-supercont {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .ggclimate-chart .ggchart-tabs {
    
    display: flex;
    flex-direction: row;
    
    min-width: 170px;
    padding-top: 40px;
    padding-right: .2rem;
    border: none;
    gap: 20px;
    margin-bottom: 20px;

  }

  .ggclimate-chart .ggchart-tollbar .ggchart-tollbar-item {
      padding: 5px;
  }
}

@media (max-width: 767.98px) and (min-width: 576px) {

    body {
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    .ggchart-multiplechart {
        max-height: 25%;
    }

    .ggclimate-chart .ggchart-supercont {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .ggclimate-chart .ggchart-tabs {
        
        display: flex;
        flex-direction: row;
        
        min-width: 170px;
        padding-top: 20px;
        padding-right: .2rem;
        border: none;
        gap: 20px;

    }

    .ggchart-cont {
        margin-top: 15px;
    }

    .ggclimate-chart .ggchart-tollbar .ggchart-tollbar-item {
      padding: 5px;
    }

}

@media (max-width: 575.98px) {

    html, body {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        width: 100%;
    }

    .ggchart-multiplechart {
        max-height: 52%;
    }

    .ggclimate-chart .ggchart-supercont {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .ggclimate-chart .ggchart-tabs {
        
        display: flex;
        flex-direction: row;
        
        padding-top: 20px;
        padding-right: .2rem;
        border: none;
        gap: 5px;

    }

    .ggchart-supercont {
        display: none;
    }

    .ggchart-cont {
        margin-top: 15px;
    }

    /* Hide only the original text content */
    .list-group-item:nth-of-type(3),
    .list-group-item:nth-of-type(4),
    .list-group-item:nth-of-type(5) {
    font-size: 0 !important;           /* This hides the original text */
    }

    /* Replacement short labels */
    .list-group-item:nth-of-type(3)::after {
    content: "N.71-00";
    font-size: 12px;        /* Restore font size for new content */
    color: #B4B4B4;
    }

    .list-group-item:nth-of-type(4)::after {
    content: "N.81-10";
    font-size: 12px;
    color: #B4B4B4;
    }

    .list-group-item:nth-of-type(5)::after {
    content: "N.91-20";
    font-size: 12px;
    color: #B4B4B4;
    }

    .ggchart-tollbar {
        padding-bottom: 10px;
    }


    /*Red Bar*/
    .ggchart-slider-cont{
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
    }

    .irs--flat{
      width: 100%;
      max-width: calc(100% - 10px);
    } 

    .ggclimate-chart .ggchart-tollbar .ggchart-tollbar-item {
        padding: 5px;
    }   
    
  .ggclimate-chart .ggchart-cont .ggchart-multiplechart .ggchart-multiplechart-chartctrls{
    top: 30px;
  }    

}


@media (max-width: 377px) {
    .irs--flat {
        width: 100%;
        max-width: calc(100% - 35px);
    }

    .ggclimate-chart .ggchart-tollbar .ggchart-tollbar-item {
        padding: 5px;
    }
}

@media(max-width: 320px){

    .logo-ipma{
        width: 130px;
        height: 55px;
    }

    .ver-sep {
        margin: 0 5px;
    }

    .icon-dataclima{
        width: 38px !important;
        height: 38px !important;
    }

    .ggclimate-chart .ggchart-tabs {
        flex-direction: column;
    }    

    .list-group-item:nth-of-type(3)::after,
    .list-group-item:nth-of-type(4)::after,
    .list-group-item:nth-of-type(5)::after {
        display: none !important;
    }
    
    /* Optionally restore the original text if you want */
    .list-group-item:nth-of-type(3),
    .list-group-item:nth-of-type(4),
    .list-group-item:nth-of-type(5) {
        font-size: 11px !important; /* or whatever size you want */
    }

    .ggclimate-chart .ggchart-cont .ggchart-multiplechart .ggchart-multiplechart-chartctrls {
        top: 30px;
        right: -5px;
    }

    .ggclimate-chart .ggchart-tollbar .ggchart-tollbar-item {
        padding: 5px;
    }

}


/*Adjustments*/
.ggchart-multiplechart {
  margin-bottom: 10px;
}


/*****************************************/
/*Popup*/

.ggchart-cont{
    position: relative; 
}

.ema-blur-item {
    filter: blur(3px);
    transition: filter 0.3s ease;
}

button[chartaction='info'].ema-active {
    filter: drop-shadow(-4px 4px 8px rgba(0, 0, 0, 0.35)) !important;
    transition: filter 0.3s ease;
}

.ema-info-popup{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;

  border-radius:  0 0 20px 20px;
  background: #EFF0EB;

  width: 60%;
  display: flex;
  flex-direction: column;
  align-items: center; 

}

.ema-info-popup-title{
  background: #EEA42D;
  border-radius: 20px 20px 0 0;
  width: 100%;
  text-align: center;

  color: #FFF;
  font-family: 'Montserrat';
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;

  padding-top: 16px;
  padding-bottom: 16px;
}

.ema-info-popup-content{

  width: 100%;
  padding: 2rem;

  display: flex;
  flex-direction: column;
  gap: 5px;

  color: #323232;
  font-family: 'Montserrat';
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;

}

.ema-info-popup-content > div {
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word; 
  max-width: 100%;
}

.ema-info-popup-content .ema-label{

  color: #323232;
  font-family: 'Montserrat';
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;

}

/*****************************************/
@media (max-width: 425px) {
  .ema-info-popup {
    width: 95%;
    max-width: 95%;
  }
  
  .ema-info-popup-title {
    font-size: 12px;
    padding: 12px;
  }
  
  .ema-info-popup-content {
    padding: 1rem;
    font-size: 12px;
    gap: 8px;
  }
  
  .ema-info-popup-content .ema-label {
    font-size: 12px;
  }
  
  .ema-info-popup-content > div {
    line-height: 1.4;
    margin-bottom: 6px;
  }
}
