/* Right panel */

#right-panel {
    position: relative;
    overflow: inherit;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    z-index: 1001;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    clip-path: inset(0px -10px -10px -20px);
}

#right-panel-title {
    margin: 10px 4px;
}
#right-panel-subtitle {
    text-align: right;
}

#right-panel #right-panel-legend  {
    font-size: 28px;
}
#right-panel #right-panel-legend .tick-labels {
    font-size: 24px;
}
#right-panel #right-panel-legend p.legend-bar img {
    height: 30px;
}

#right-panel #button-toggle-right-panel {
    position: absolute;
    left: -15px;
    top: 10px;
    text-align: center;
    background: white;
    /* background: #fff url("../img/svg/angle-right.svg") no-repeat center center; */
    display: block;
    width: 32px;
    height: 32px;
    z-index: 10000;
    border-radius: 32px;
    cursor: pointer;
    box-shadow: 0 -5px 5px 0 rgba(0, 0, 0, 0.2);
    transform: rotate(180deg);
}

#right-panel #button-toggle-right-panel::before {
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
  }

#right-panel.open #button-toggle-right-panel{
    transition: 0.2s;
    transform: rotate(0deg);
    box-shadow: 0 5px 5px 0 rgba(0, 0, 0, 0.2);
}

#right-panel #content {
    display: flex;
    flex-direction: column;
    overflow: auto;
    padding: 0 15px;
    width: 300px;
    overflow-x: hidden;
    margin-right: -310px; /* when closed */
}

#right-panel.open #content {
    margin-right: 0px;
}


#right-panel .fa.fa-users,
#right-panel .fa.fa-user-plus{
    transform: translateY(3px);
    font-size: 20px;
    background: var(--gca-grey);
    margin-right: 5px;
    cursor: help;
}

#right-panel .fa.fa-users {
    mask: url("../img/svg/users.svg");
    -webkit-mask-attachement: url("../img/svg/users.svg");
}

#right-panel .fa.fa-user-plus {
    mask: url("../img/svg/users-plus.svg");
    -webkit-mask-attachement: url("../img/svg/users-plus.svg");
}

#right-panel .fa.fa-angle-right {
    display: inline-block;
    vertical-align: middle;
    mask: url("../img/svg/angle-right.svg");
    -webkit-mask-attachement: url("../img/svg/angle-right.svg");
}

#right-panel #right-panel-indicators {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    text-align: center;
    justify-content: center;
    margin: 1rem;
}

#right-panel #right-panel-intro {
    text-align: justify;
}

#right-panel .indicator-box {
    height: 52px;
    /* transform: rotate(90deg); */
}
#right-panel .indicator-label {
    display: none;
}
#right-panel .indicator-label.visible {
    display: block;
}
#right-panel #right-panel-indicators > p,
#right-panel #right-panel-indicators > div {
    margin: 0;
    width: 64px;
    font-size: 0.9em;
}
#right-panel .indicator-box.low {
    /* background-color: var(--gca-blue); */
    background-image: url("../img/gauge_low.png");
    background-size: 100%;
}
#right-panel .indicator-box.mid {
    /* background-color: var(--gca-orange); */
    background-image: url("../img/gauge_mid.png");
    background-size: 100%;
}
#right-panel .indicator-box.hight {
    /* background-color: var(--gca-green); */
    background-image: url("../img/gauge_hight.png");
    background-size: 100%;
}

#right-panel .best-year-match {
    cursor: pointer;
}

#right-panel .chart {
    min-height: 230px;
    max-height: 230px;
    width: 280px;
    display: none;
}

#right-panel .chart>#place-holder {
    padding-top: 110px;
    text-align: center;
    color: var(--gca-grey);
}

#right-panel #right-panel-img {
    margin-left: 5px;
    width: 280px;
}


#right-panel .right-panel-stats-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

#right-panel .right-panel-stats {
    margin-right: 20px;
}

/* Toggle switch from https://www.w3.org/WAI/ARIA/apg/patterns/switch/examples/switch/ */
#right-panel #right-panel-switch-charts {
    width: 280px;
    text-align: center;
    font-size: 0.9em;
    display: none;
    margin: 2px;
    padding: 0 4px 8px 8px;
    user-select: none;
  }
  
#right-panel #right-panel-switch-charts .label {
    display: inline-block;
  }
  
#right-panel #right-panel-switch-charts .switch {
    position: relative;
    display: inline-block;
    top: 3px;
    margin-left: 6px;
    margin-right: 6px;
    border: 1px solid var(--gca-blue);
    background-color: var(--gca-light-grey);
    border-radius: 7px;
    height: 14px;
    width: 30px;
  }
  
#right-panel #right-panel-switch-charts .switch span {
    position: absolute;
    top: 2px;
    left: 2px;
    display: inline-block;
    border-radius: 5px;
    height: 10px;
    width: 10px;
    background: var(--gca-blue);
    transition: all 0.2s;
}

#right-panel #right-panel-switch-charts.checked .switch span {
    /* left: 17px; */
    transform: translateX(16px);
}
/* #right-panel #right-panel-switch-charts.checked .switch {
    border: 2px solid var(--gca-blue);
  } */
   
#right-panel #right-panel-switch-charts:focus,
#right-panel #right-panel-switch-charts:hover {
    cursor: pointer;
}
  
/* #right-panel #right-panel-switch-charts:focus span.switch {
    background-color: var(--gca-light-grey);
} */
