/***************************/
/*Root*/
:root {
    --chartsubbtncolor: #7AABDE;
    --dash-color-blue: #215083;
    --dash-color-blue: #215083;
    --dashcli-fontsize: 12px;
    --dashcli-fontheight: 14px;
    --navbar-height: 60px;
    --extrapadding: 12px;

}

/***************************/
/*Body*/
body {
    overflow: hidden;
}

/***************************/
/*Dashcontent*/

#dashcontent {
    display: flex;
    height: 100%; 
    padding-top: 1rem;
    overflow: hidden;
    position: relative;
}


.dashcli {
    min-height: 40rem;
    height: 100%;
    padding: 0rem 2rem;
}

#dashclidata {
    height: 100%;
}


/***************************/
/*Dashboard Map and Chart*/

.dashclidata-chart,
.dashclidata-map {
    margin: 0rem 0rem 1rem 0rem;
    width: 100%;
    /*height: calc(100% - 5.0rem);*/
    height: 100vh;
    position: relative;
    border-radius: 15px;
    /*min-height: calc(100vh - 10rem);*/
    max-height: calc(100vh - 15rem);
}

/*tabs not subtaps*/
.ggchart-tabs:not(.subtabs) {
  display: none;
}

/*tab dropdown*/
.ggclimate-mapcont.hideseries .ggclimate-map {
    border-top-left-radius: 0px !important;
    border-top-right-radius: 0px !important;
}

.ggchart-tabs-dropdown:not(.subtabs) .dropdown-toggle.w-100{
    width: 100% !important;
    position: relative;
    text-align: left;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    background: none;
    background-color: rgb(239, 240, 235);
    border: none;
    color: var(--dash-color-blue);
    border-top-left-radius: 15px !important;
    border-top-right-radius: 15px !important;


    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ggchart-tabs-dropdown:not(.subtabs) .dropdown-menu {
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    border: none;
    margin-top: 0px;
    transition: all 0.2s;
    z-index: 9991 !important;
    background: none;
    background-color: #EFF0EB;
    font-size: var(--dashcli-fontsize);
    line-height: var(--dashcli-fontheight);
    background-color: rgb(239, 240, 235);
    color: var(--dash-color-blue);
    font-weight: 400;
    font-size: 12px;
    line-height: 15px;
}

.ggchart-tabs-dropdown:not(.subtabs) .dropdown-menu .dropdown-item {
    font-size: 13px;
    font-weight: 400;
    color: var(--dash-color-blue);
    line-height: 14px;

    padding-top: 0.5rem;
    padding-bottom: 0.5rem;

}


/*Dropdown arrow*/
.ggchart-tabs-dropdown:not(.subtabs) .dropdown-toggle.w-100::after {
    top: 50%;
    position: absolute;
    right: 1rem;
    border-top: .5em solid var(--dash-color-blue);
    border-right: .5em solid transparent;
    border-left: .5em solid transparent;
    transition: all 0.2s;
}


.ggclimate-map-dropdown button.dropdown-toggle.show::after {
    transform: rotate(180deg);
}


/*In case theres no point selected */
.dashclidata-chart-nodata{
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.dashclidata-chart .dashclidata-chart-nodata p{
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    color: var(--color_c1);
    text-align: center;
}

@media only screen and (max-width: 768px) {
    .col-lg-8 {
        margin-top: 20px !important;
    }
}

/***************************/
/* Media Query  */
/* XXXL: ≥1600px */
@media (min-width: 1600px) {
  
  .col-lg-5,
  .col-lg-7 {
    max-height: 82vh !important;
  }

  .dashcli {
    min-height: 40rem;
    height: 100%;
    padding: 0rem 3rem;
  }
}

/* XXL: ≥1400px and <1600px */
@media (min-width: 1400px) and (max-width: 1599.98px) {

  .col-lg-5,
  .col-lg-7 {
    max-height: 80vh !important; 
  }

}

/* XL: ≥1200px and <1400px → 80% */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .col-lg-5,
  .col-lg-7 {
    max-height: 78vh !important; /* 1000 * 0.80 */
  }

}

/* LG: ≥1024px and <1200px */
@media (min-width: 1024px) and (max-width: 1199.98px) {
  .col-lg-5,
  .col-lg-7 {
    max-height: 80vh !important;
  }

}

/* MD: ≥768px and <1024px */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .col-lg-5,
  .col-lg-7{
    max-height: 75vh !important;
  }

}

/* SM: ≥576px and <768px */
@media (min-width: 576px) and (max-width: 767.98px) {
  .col-lg-5,
  .col-lg-7 {
    max-height: 500px !important;
  }
}

/* XS: <576px */
@media (max-width: 575.98px) {
  .col-lg-5,
  .col-lg-7 {
    max-height: 450px !important;
  }
}

/* Mobile menu: <480px */
@media (max-width: 479px) {

  .col-lg-4{
    max-height: 400px !important;    
  }


  .ggclimate-mapcont.hideslidebar.hideseries .ggclimate-map {
    height: calc(52%);
  }

  .col-lg-8{
    max-height: 600px !important;
  }

}

/*No focus*/
.ggclimate-mapcont.hideslidebar.hideseries .ggclimate-map:focus {
    outline: none !important;
}

/*Padding Adjustment*/
.row>* {
  padding-right: 6px;
  padding-left: 6px;
}

/***************************/
/*Dashbar*/

#dashbar {
    min-width: 250px;
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 1rem 0.5rem;
    padding-top: 0px;
    width: 100%;
}

#dashbar .dashbar-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 0;
}

#dashbar .dashbar-section .dashbar-section-cont {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.0rem;
  border-radius: 50px;
  width: fit-content;
  overflow: visible;
}

#dashbar .dashbar-section .dashbar-section-label {
  font-size: var(--dashcli-fontsize);
  line-height: var(--dashcli-fontheight);
  color: var(--color_c1);
  font-weight: 600;
  margin: 0;
  padding-bottom: 0;           /* Overridden: was 0.8rem in first block */
  display: flex;
  align-items: center;
  white-space: nowrap;        /* Added from second block */
  font-family: 'Montserrat';
}

.dashbar-section-label {
  white-space: normal;       /* Allow text to wrap */
  word-break: break-word;    /* Break long words if needed */
  overflow-wrap: anywhere;   /* Support breaking anywhere */
}

#dashbar .dashbar-section .dashbar-section-label img {
    margin-right: 0.5rem;
    height: fit-content;
}

/***************************/
/*DropdownMenus*/

.dashcli {
    min-height: 40rem;
    height: 100%;
    padding: 0rem 1rem;
}

.dashcli-dropdown {
    font-size: var(--dashcli-fontsize);
    line-height: var(--dashcli-fontheight);
    display: inline-block;
}

.dashcli-dropdown button.dropdown-toggle {
    /*width: 100%;*/
    position: relative;
    text-align: left;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    font-size: var(--dashcli-fontsize);
    line-height: var(--dashcli-fontheight);
    border-radius: 15px;
    white-space: inherit;
}

.dashcli-dropdown button.dropdown-toggle {
  position: relative;
  text-align: left;
  padding: 0.5rem 2.5rem 0.5rem 1rem;
  font-size: var(--dashcli-fontsize);
  line-height: var(--dashcli-fontheight);
  border-radius: 15px;

  /* From second block (overrides where applicable) */
  min-width: 0 !important;
  width: 100%;
  box-sizing: border-box;
  white-space: nowrap; /* Overrides white-space: inherit */
  text-overflow: ellipsis;
  overflow: hidden;
  flex-shrink: 1;
}

.dashcli-dropdown:not(.dashcli-button-dropdown) button.dropdown-toggle {
    border: none;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
}

.dashcli-dropdown button.dropdown-toggle::after {
    top: 50%;
    position: absolute;
    right: 1rem;
    border-right: .5em solid transparent;
    border-left: .5em solid transparent;
    transition: all 0.2s;
}

.dashcli-dropdown:not(.dashcli-button-dropdown) button.dropdown-toggle::after {
    border-top: .5em solid var(--dash-color-blue);
}

.dashcli-dropdown button.dropdown-toggle.show::after {
    transform: rotate(180deg);
}

.dashcli-dropdown button.dropdown-toggle.show {
    background-color: #FFF;
    /*box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);*/
    box-shadow: none;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    border-top: 1px solid var(--dash-color-blue);
    border-left: 1px solid var(--dash-color-blue);
    border-right: 1px solid var(--dash-color-blue);
    border-bottom: none !important;
    box-sizing: border-box;
}

.dashbar-section-label {
  word-break: break-word;
  overflow-wrap: anywhere;
}

.dashcli-dropdown button.dropdown-toggle .dropdown-toggle-label {
    display: none;
    font-size: 10px;
    line-height: 12px;
    text-overflow: ellipsis;
    width: 100%;
    overflow: hidden;
    color: #969696;
}

.dashcli-dropdown button.dropdown-toggle.show .dropdown-toggle-label {
    display: inherit;
}

.dashcli-dropdown button.dropdown-toggle .dropdown-toggle-val {
    display: inline-block;
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.dashcli-dropdown button.dropdown-toggle .dropdown-toggle-val span.group {
    color: var(--color_c1);
}

.dashcli-dropdown button.dropdown-toggle.show .dropdown-toggle-val {
    display: none;
}

.dashcli-dropdown .dropdown-menu {
    /*width: 100%;*/
    font-size: var(--dashcli-fontsize);
    line-height: var(--dashcli-fontheight);
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    border-top: none;
    box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.3);
    transition: all 0.2s;
    z-index: 9991;
    margin-top: 0px;

    border-right: 1px solid var(--dash-color-blue);
    border-left: 1px solid var(--dash-color-blue);
    border-bottom: 1px solid var(--dash-color-blue);

    overflow: auto;
}

.dashcli-dropdown .dropdown-menu .dropdown-item {
    white-space: inherit;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.dashcli-dropdown .dropdown-menu .dropdown-item:hover,
.dashcli-dropdown .dropdown-menu .dropdown-item.active {
    background: none;
    color: var(--dash-color-blue);
}


@media (min-width: 1600px) {

    #dashbar .dashbar-section {
        width: 100%;
    }

    #dashbar .dashbar-section .dashbar-section-cont {
        width: 100%;
        max-width: 33.33333333%;
    }
}

@media (max-width: 1599.98px) {
    #dashbar .dashbar-section {
        width: 100%;
    }

    #dashbar .dashbar-section .dashbar-section-cont {
        width: 100%;
        max-width: 33.33333333%;
    }
}

@media (max-width: 768px) {
    #dashbar .dashbar-section .dashbar-section-cont {
      width: 100%;
      max-width: unset;
    }
}

/***************************/
/*Hoover Styles*/
.station-tooltip {
    position: absolute;
    background: white;
    border: 2px solid #215083;
    border-radius: 6px;
    padding: 8px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 1000;
    pointer-events: none;
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: #215083;
    font-weight: 500;
    white-space: nowrap;
}