

.highcharts-root { margin-bottom: -11rem; }
#charts-item-539b8db4-604c-4b71-adc0-21fba6e49392-0 .highcharts-root { margin-bottom: 0; }


.highcharts-root .highcharts-legend { display: none !important; }


.charts-highchart,
.charts-highchart .highcharts-container {
    overflow: visible !important;
}

.charts-highchart .highcharts-container {
    height: 100% !important;
    top: unset !important;
    position: relative;
    width: 100% !important;
}

.charts-highchart .highcharts-legend {
    position: relative !important;
    display: block;
    left: unset !important;
    top: unset !important;
    bottom: 2rem !important;
    width: 100% !important;
    height: fit-content !important;
    overflow: visible;
}

.charts-highchart .highcharts-legend > div {
    position: relative !important;
    display: block;
}
.charts-highchart .highcharts-legend > div::before {
    content: '';
    width: 200vw;
    height: calc(100% + 4rem);
    z-index: -1;
    background-color: #F6F6F6;
    top: -2rem;
    left: -100vw;
    display: block;
    position: absolute;
}

.charts-highchart .highcharts-legend > div > div {
    position: relative !important;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
}

.charts-highchart .highcharts-legend .highcharts-legend-item {
    left: 0 !important;
    top: 0 !important;
    position: relative !important;
    width: 100%;
    min-width: 100px;
    height: 100%;
    display: block;
    background-color: #fff;
    border: 1px solid #ccc;
    margin-bottom: .5rem;
}
.charts-highchart .highcharts-legend .highcharts-legend-item:last-child { margin-right: 0; }

.charts-highchart .highcharts-legend .highcharts-legend-item > span {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    padding: .5rem 1rem;
    width: 100% !important;
}

.charts-highchart .highcharts-legend .highcharts-legend-item span span {
    font-size: 0;
    width: .75rem;
    height: .75rem;
    border-radius: 50%;
    margin-right: .5rem;
    display: block;
    min-width: .75rem;
}
.charts-highchart .highcharts-legend .highcharts-legend-item.highcharts-legend-item-hidden span span { background-color: #ccc !important; }


.view-charts {
    margin-top: 2rem;
    margin-bottom: 5rem;
}

.view-charts .views-field-title {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2em;
    text-align: left;
    margin-bottom: 2rem;
    position: relative;
}


@media (min-width: 768px) {
    .highcharts-root { margin-bottom: -4rem; }

    .charts-highchart .highcharts-legend > div > div {
        margin: 0 auto 2rem auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap : 1rem 2rem;
    }
    
    .charts-highchart .highcharts-legend .highcharts-legend-item { 
        height: fit-content;
        margin: 0;
    }

    .charts-highchart .highcharts-legend .highcharts-legend-item > span { padding: .75rem 1rem; }
}


@media (min-width: 1024px) {
    .highcharts-root { margin-bottom: 0; }
    .view-charts { margin-top: 4rem;}
    
    .view-charts .views-field-title { font-size: 31px; }
    
    .view-charts .views-field-title,
    .view-charts .views-field-field-chart-description {
        width: 75%;
    }

    .charts-highchart .highcharts-legend {
        position: absolute !important;
        bottom: 0 !important;
    }
}


/* @media (min-width: 1200px) {
    .charts-highchart .highcharts-legend > div > div { width: 80%; }
} */

@media (min-width: 1400px) {
    .view-charts .views-field-title,
    .view-charts .views-field-field-chart-description {
        width: 50%;
    }
}
