.chart-container ~ .chart-container {
    margin-top: 30px;
}

@media(min-width: 992px) {
    .chart-container ~ .chart-container {
        margin-top: 80px;
    }
}

.chart-container .caption-wrapper {
    border-radius: 0px 45px 0px 50px;
    position: relative;
    color: #fff;
    padding: 0;
}

@media(min-width: 992px) {
    .chart-container .caption-wrapper {
        --caption-height: 100px;
        background: #16355A;
        border-radius: 0px 45px 0px 50px;
        position: relative;
        color: #fff;
        padding: 0;
        height: var(--caption-height);
        margin-left: calc(var(--caption-height) / 2);
    }
}

.chart-container .caption-wrapper .caption {
    height: 100%;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    margin-left: calc(var(--caption-height) / 2);
}

@media(min-width: 992px) {
    .chart-container .caption-wrapper .caption {
        height: 100%;
        align-items: center;
        flex-direction: row;
        margin-left: unset;
    }
}

.chart-container .caption-wrapper .image {
    position: absolute;
    top: 0;
    left: calc(var(--caption-height) / 2 * -1);
    border-radius: 100%;
    background: #037BC4;
    border: 3px solid #fff;
    height: 100%;
    aspect-ratio: 1/1;
    text-align: center;
    overflow: hidden;
    display: none;
}

.chart-container .caption-wrapper .image > img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

@media(min-width: 992px) {
    .chart-container .caption-wrapper .image {
        display: initial;
    }
}

.chart-container .caption-wrapper .text-wrapper {
    flex: 0 1 auto;
}

@media(min-width: 992px) {
    .chart-container .caption-wrapper .text-wrapper {
        flex: 0 1 100%;
    }
}

.chart-container .caption-wrapper .text-wrapper .text {
    margin-left: 0;
    margin-bottom: 8px;
    color: #037BC4;
}

@media(min-width: 992px) {
    .chart-container .caption-wrapper .text-wrapper .text {
        color: white;
        padding: 12px;
        margin-bottom: 0px;
    }
}

@media(min-width: 992px) {
    .chart-container .caption-wrapper .text-wrapper .text {
        margin-left: calc(var(--caption-height) / 2);
    }
}

.chart-container .caption-wrapper .caption .text-wrapper .text .text-label{
    font-size: 20px;
    line-height: 24px;
    padding: 0;
    font-weight: normal;
}

.chart-container .caption-wrapper .caption .text-wrapper .text .text-label__unique{
    font-size: 20px;
    line-height: 24px;
    font-weight: bold;
}

@media (min-width: 992px) {
    .chart-container .caption-wrapper .caption .text-wrapper .text .text-label{
        font-size: 20px;
    }

    .chart-container .caption-wrapper .caption .text-wrapper .text .text-label__unique{
        font-size: 26px;
        line-height: 30px;
    }
}

.chart-container .caption-wrapper .caption .text-wrapper .text .text-value {
    font-size: 20px;
    line-height: 24px;
    font-weight: bold;
}

@media (min-width: 992px) {
    .chart-container .caption-wrapper .caption .text-wrapper .text .text-value {
        font-size: 40px;
        line-height: 48px;
    }
}

.chart-container .caption-wrapper .caption .selector-wrapper {
    flex: 1 1 30%;
    display: flex;
    justify-content: flex-start;
    flex-direction: row;
    width: 100%;
    gap: 12px;
}

@media(min-width: 992px) {
    .chart-container .caption-wrapper .caption .selector-wrapper {
        justify-content: flex-end;
        padding: 0 32px;
    }
}

.chart-container .caption-wrapper .selector-wrapper .form-group {
    max-width: 180px;
    margin: 0;
    padding-top: 0;
}

@media (min-width: 992px) {
    .chart-container .caption-wrapper .selector-wrapper .form-group {
        max-width: 180px;
        width: 100%;
        margin: 0 8px;
        padding-top: 0;
    }
}

.chart-container .caption-wrapper .selector-wrapper .form-group > label {
    position: static;
    max-width: unset;
    width: 100px;
    font-weight: 700;
    font-size: 10px;
    color: #037BC4;
    padding: 8px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 1px solid #037BC4;
    background: white;
    border-radius: 4px;
    margin: 0;
    height: 32px;
    text-align: center;
    cursor: pointer;
}

.chart-container .caption-wrapper .selector-wrapper .form-group > label::before {
    content: unset;
}

@media (min-width: 992px) {
    .chart-container .caption-wrapper .selector-wrapper .form-group > label {
        width: 100%;
        height: 32px;
        font-size: 16px;
        padding: 8px;
        height: 35px;
    }
}

.chart-container .caption-wrapper .selector-wrapper .form-group > input {
    display: none;
}

.chart-container .caption-wrapper .selector-wrapper .form-group > input:checked ~ label {
    color: white;
    background-color: #037BC4;
}

.chart-container .caption-wrapper .selector-wrapper .form-group > input[disabled] ~ label {
    opacity: 0.65;
}

.chart-container .graph-wrapper {
    padding-top: 20px;
}

@media (min-width: 992px) {
    .chart-container .graph-wrapper {
        padding-top: 60px;
    }
}

.chart-container .graph-wrapper .graph-col.loading::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.chart-container .graph-wrapper .graph-col.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border: 5px solid #FFF;
    border-bottom-color: #16355A;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

.chart-container .graph-wrapper .graph-col.loading.loaded::before {
    animation: fadeout 400ms ease forwards;
}

.chart-container .graph-wrapper .graph-col.loading.loaded::after {
    animation: rotation 1s linear infinite, fadeout 400ms ease forwards;
}

@keyframes rotation {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
} 

@keyframes fadeout {
    from { 
        opacity: 1; 
    }
    to { 
        opacity: 0; 
    }
}

.chart-container .graph-wrapper .form-group > label {
    position: static;
    color: #037BC4;
    font-size: 16px;
    line-height: 18px;
    padding-left: 0;
}

.chart-container .graph-wrapper .form-group > .chosen-container > a {
    border: 1px solid #037bc4;
    background: #F3FCFF;
    text-align: center;
    color: #16355A;
    line-height: 35px;
    height: 35px;
}

.chart-container .graph-wrapper .legend-wrapper {
    display: flex;
    padding: 8px 0;
    justify-content: center;
    flex-direction: column;
}

.chart-container .graph-wrapper .legend-wrapper .btn {
    padding: 8px;
    min-height: auto;
    align-items: center;
    display: inline-block;
    margin: 8px auto;
}

.chart-container .graph-wrapper .legend.collapsing,
.chart-container .graph-wrapper .legend.in {
    display: flex;
}

.chart-container .graph-wrapper .legend {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    overflow: hidden;
}

@media (min-width: 992px) {
    .chart-container .graph-wrapper .legend-wrapper {
        gap: 16px;
        padding: 16px 0;
    }
}

.chart-container .graph-wrapper .legend-wrapper .legend-item-color {
    width: 30px;
    height: 16px;
    margin-right: 8px;
    flex: 0 0 30px;
    background: var(--legend-color);
}

.chart-container .graph-wrapper .legend-wrapper .legend-item-color.rounded-circle {
    position: relative;
    background: transparent;
}

.chart-container .graph-wrapper .legend-wrapper .legend-item-color.rounded-circle::after {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    content: "";
    width: 16px;
    height: 16px;
    border-radius: 100%;
    margin-right: 8px;
    flex: 0 0 auto;
    background: var(--legend-color);
}

.chart-container .graph-wrapper .legend-wrapper .legend-item {
    display:  flex;
    flex: 0 0 auto;
}