
/* Measure chart content rather than the iframe viewport. */
html,
body {
    height: auto;
    min-height: 0;
}

body,
#embed-content {
    display: flow-root;
}

.WPS-chart__title {
    margin-bottom: 20px;
    display:none;
}



.WPS-chart__buttons_container {
    margin-bottom: 3px;
}

/* Align desktop filters with the dot plot beside the 35% ranking panel. */
@media (min-width: 754px) {
    .WPS-chart__buttons_container {
        margin-left: 35%;
    }
}

.WPS-chart__button_group {
    display: flex;
    flex-wrap: wrap;
}

.WPS-chart--hide-group2 .group--2 {
    display: none;
}

.WPS-chart__nav-button {
    box-sizing: content-box;
    position: relative;
    display: inline-block;
    border-radius: 0;
    padding: 10px;
    margin: 2px 5px 2px 0;
    background: #fff;
    min-width: 45px;
    border: 1px solid #bdbbbc;
    line-height: 1;
    color: #bdbbbc;
    vertical-align: middle;
    text-decoration: none;
    font-family: "GenslerSans-Medium", Verdana, Helvetica, Arial, sans-serif;
    font-weight: normal;
    font-size: 13px;
    cursor: pointer;
}

.WPS-chart__nav-button:hover {
    color: #000;
}

.WPS-chart__nav-button:active,
.WPS-chart__nav-button--active {
    color: #000;
    border: 1px solid #000;
}

.WPS-chart__nav-button--lvl1 {
    background-color: #fff;
    color: #333;
    font-size: 1em;
   
    margin-bottom: 4px;
    margin-right: 0;
    width: 163px;
    min-width: 163px;
}

.WPS-chart__nav-button--lvl2 {
    text-align: center;
    min-width: 67px;
    white-space: nowrap;
}

@media (max-width: 760px) {
    .WPS-chart__nav-button {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .WPS-chart__nav-button--lvl1 {
        width: 140px;
        min-width: 140px;
        font-size: 12px;
    }

    .WPS-chart__nav-button--lvl2 {
        min-width: 55px;
        font-size: 11px;
    }
}

    
.WPS-chart__nav-button--lvl1:hover,
.WPS-chart__nav-button--lvl1:active,
.WPS-chart__nav-button--lvl1.WPS-chart__nav-button--active {
    background-color: #222222;
    color: #fff;
    border: 1px solid #333;
}


.WPS-chart__nav-button--lvl2:hover,
.WPS-chart__nav-button--lvl2:active,
.WPS-chart__nav-button--lvl2.WPS-chart__nav-button--active {
    background-color: #636363;
    color: #fff;
}

.WPS-chart__iframe-container iframe {
    height: 100%;
}

.WPS-chart__iframe-container {
    height: 650px;
}

.WPS-chart--Industry .WPS-chart__iframe-container {
    height: 650px;
}


.WPS-chart--Country .WPS-chart__iframe-container {
    height: 860px;
}


.WPS-chart--AI_users .WPS-chart__iframe-container {
    height: 560px;
}

.WPS-chart--Innovation .WPS-chart__iframe-container {
    height: 560px;
}

.cat {
    font-size: 0.9em;
    color: gray;
    font-weight: 800;
}
.cat.on {
   color: #000;
}

.cat:hover {
    color: #000;
}
.mobile_only{
   display: none;
  }
  #catTooltip{
  position: fixed;
  background: rgba(0,0,0,.75);
  color:#fff;
  font-size:12px;
  padding:6px 10px;
  border-radius:4px;
  pointer-events:none;
  opacity:0;
  transform: translate(-50%, -120%);
  transition: opacity .15s ease;
  z-index:9999;
}
.r-title-html {
  font-family: KievitWeb;
  font-size: 18px;
  font-weight: 600;
  color: #000;
  line-height: 1;
  padding-left:15px;
}

.row.faded { opacity: 0.25; }

.cat.on { font-weight: 700; }
.cat { user-select: none; }
/*call out box*/
/* Highcharts wrappers sometimes clip the pseudo-tooltip */
#container .highcharts-container,
#container .highcharts-axis-labels,
#container .highcharts-axis-labels > span {
  overflow: visible !important;
}

/* Make sure the axis label layer can receive hover */
#container .highcharts-axis-labels,
#container .highcharts-axis-labels * {
  pointer-events: auto !important;
}

/* Ensure tooltip appears above the plot */
#container .highcharts-axis-labels {
  position: relative;
  z-index: 10;
}

/* (optional) if the tooltip still appears behind other elements */
#container .cat { z-index: 20; }

/* Only show on desktop */
@media (min-width: 632px) {
  #container .cat{
    position: relative;
    display: inline-block;
  }

  #container .cat:hover::after{
    content: "Click to update ranking";
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 6px;

    padding: 6px 8px;
    border: 1px solid #bbb;
    border-radius: 2px;
    background: rgba(238, 238, 238,0.6);
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);

    font-size: 12px;
    font-weight: normal;
    color: #222;
    white-space: nowrap;
    z-index: 9999;
    pointer-events: none;
  }

  #container .cat:hover::before{
    content: "";
    position: absolute;
    left: 12px;
    top: 100%;
    margin-top: 1px;

    border: 6px solid transparent;
    border-bottom-color: rgba(255,255,255,0.95);
    filter: drop-shadow(0 -1px 0 #bbb);
    pointer-events: none;
    z-index: 9999;
  }
}

@media (max-width: 753px) {
 
    .mobile_only{
   display: block;
  }
  #main-content #container {
    display: none !important;   /* hide Highcharts */
  }

   select {
      width: 320px;
      min-width: 200px;
        padding-top:10px;
        background: none;
        -moz-appearance: auto;
        -webkit-appearance: auto;
        appearance: auto;
 
    }
    #subgroupSelect {
      font-family: GenslerSans-Regular, Helvetica Neue, Helvetica, Arial, sans-serif;
      margin-bottom: 10px;
      padding: 6px 5px 4px;
      font-size: 13px;
      font-weight: bold;
      border-bottom: 1px solid currentcolor;
      background-color: #eee;
      min-width: 200px;
      
    }


  /* Open dropdown list (options) */
  #subgroupSelect option {
    font-size: 14px;   /* smaller */
  }

   #subgroupSelect:focus {
  border: none;
  outline: none;
  box-shadow: none; /* important for Chrome/Safari */
  border-bottom: 1px solid currentcolor;
    }
    .hide-subgroup #subgroupWrapper {
    display: none;
  }

  /* .hide-subgroup #rankingChart .r-title {
    display: block;
  } */
 .r-title-html {
    display: none;
  }

}

@media (max-width: 378px) {
   
#subgroupSelect {
    width: 91%;
    padding: 20px 10px 2px;
   
    }
}
