#chart{
    background-color: var(--e-global-color-f80768d);
}
.chart-item{
    padding-inline: 16px;
    line-height: 20px;
    padding-bottom: 5px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
.chart-item > span:last-of-type{
    font-weight: bold;
}

.chart-item > span:first-of-type{
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-item:last-of-type{
    padding-bottom: 16px;
}

.chart-bullet{
    width: 7px;
    height: 7px;
    display: block;
    border-radius: 7px;
}

.chart-total{
    padding: 16px;
    padding-bottom: 5px;
    font-weight: bold;
    line-height: 20px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
.chart-filters, .chart-filter-list{
    display: flex;
    flex-direction: column;
}
.chart-filter select{
    display: none;
}

.chart-filters{
    background-color: var(--color-background);
}

.chart-filters button{
    border: none;
    height: 46px;
    padding-inline: 16px;
    border-radius: 0;
    color: var(--color-text);
    display: flex;
    gap: 14px;
    align-items: center;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 500;
}
.chart-filters button:hover,
.chart-filters button:active,
.chart-filters button:focus{
    background: inherit;
    color: var(--color-text);
}
.chart-filters span{
    color: inherit !important;
}
.chart-filters .chart-select-blue button{
    background-color: var(--e-global-color-primary);
    color: white;
}
.chart-filters .chart-select-blue button .d33-arrow{
    font-size: 10px;
    color: white;
}

.chart-filters label{
    height: 48px;
    padding-inline: 16px;
    display: flex;
    gap: 8px;
    align-items: center;
    border-bottom: 1px solid #0054851A;
    color: var(--color-title);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}
.chart-filters label input{
    display: none;
}

.chart-filters label input +span{
    height: 24px;
    width: 24px;
    border: 1px solid var(--color-text);
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}
.chart-filters label input +span i{
    transform: translateY(20px);
    transition: all 0.2s cubic-bezier(0.01,-1.32, 1, 2.32);
}
.chart-filters label input:checked +span{
    background: var(--e-global-color-accent);
    border-color: var(--e-global-color-accent);
}
.chart-filters label input:checked +span i{
    transform: translateY(0px);
}

.chart-filters .chart-select-blue .chart-fake-dropdown{
    background-color: var(--e-global-color-primary);
}

.chart-filters .chart-select-blue label{
    border-bottom: none;
    color: white;
    text-transform: uppercase;
    font-size: 11px;
}
.chart-filters .chart-select-blue .chart-fake-item[data-selected]{
    display: none;
}

.chart-filters .chart-select-blue label input +span{
    display: none;
}

.chart-filters label input[type="radio"] +span{
    border-radius: 50px;
}

.d33-arrow{
    font-size: 10px;
    color: var(--color-title);
    transition: all 0.3s ease-in-out;
}
.d33-close{
    font-size: 10px;
    color: var(--color-title);
    transition: all 0.3s ease-in-out;
}
.d33-close:hover{
    color: red;
}

.chart-filter.open .d33-arrow{
    transform: rotate(180deg);
}
.chart-filters button .chart-fake-badget{
    background: red;
    color: white !important;
    font-size: 10px;
    min-width: 14px;
    min-width: 14px;
    min-height: 14px;
    border-radius: 100px;
    margin-right: -10px;
}

.chart[data-type='region'] [data-filter="trend"],
.chart[data-type='region'] [data-filter="ccaa"]{
    display: none;
}

.chart[data-type='machine'] [data-filter="trend"],
.chart[data-type='machine'] [data-filter="machine"]{
    display: none;
}

.chart[data-type='atlas'] [data-filter="ccaa"]{
    display: none;
}

.d33-filters{
    font-size: 14px;
    margin-right: -9px;
}

.chart .apexcharts-xaxis-texts-g text{
    fill: var(--color-text);
}
.chart .apexcharts-yaxis-label{
    fill: var(--color-text);
    opacity: 0.4;
}
.chart .apexcharts-tooltip.apexcharts-theme-light{
    border-color: var(--color-border) !important;
}
.chart .apexcharts-inner line{
    stroke: var(--color-border) !important;
}
.chart .apexcharts-grid-borders line, .chart .apexcharts-inner line.apexcharts-xaxis-tick{
    stroke: transparent !important;
}
.chart .apexcharts-grid > line{
    stroke: none !important;
}
.chart .apexcharts-series-markers-wrap{
    display: none;
}

.chart .chart-switch label{
    border:none
}
.chart .chart-switch input+span{
    width: 45px;
    height: 22px;
    border-radius: 100px;
    border-color: var(--color-border) ;
}
.chart .chart-switch input+span i{
    width: 16px;
    height: 16px;
    border-radius: 100px;
    background: var(--e-global-color-accent);
    transform: translate(-11px, 0);
    transition: all 0.2s cubic-bezier(1,-0.2, 1, 1.01)
}

.chart .chart-switch input:checked+span{
    background: transparent;
    border-color: var(--color-border) ;
}

.chart .chart-switch input:checked+span i{
    transform: translate(11px, 0);
}

.chart .chart-filter.disabled, .chart .chart-fake-item-disabled{
    opacity: 0.5;
}
.chart-filter, .chart-fake-item-disabled{
    position: relative;
}
.chart-modal{
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}



@media (min-width: 768px) {
    #chart{
        padding: 0 50px;
    }
    .chart-filter-list{
        display: block;
    }
    .chart-filter-show{
        display: none;
    }
    .chart-filters, .chart-filter-list{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .chart-filter{
        position: relative;
    }
    .chart-filter-list .chart-filter:last-of-type .chart-fake-dropdown{
        right: 0;
    }
    .chart-filters .chart-fake-item{
        white-space: nowrap;
    }
    .chart-fake-dropdown{
        position: absolute;
        background-color: var(--color-background);
        z-index: 1;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease-in-out;
        max-height: 320px;
        overflow: auto;
    }
    .chart-filter.open .chart-fake-dropdown{
        opacity: 1;
        pointer-events: all;
    }

    .chart-fake-select{
        position: relative;
    }
    .chart-fake-select::after{
        content: "";
        position: absolute;
        bottom: 12px;
        left: 16px;
        right: 16px;
        height: 1px;
        background: var(--color-border);
    }
    .chart-select-blue .chart-fake-select::after{
        background: none;
    }
    .chart .chart-switch {
        margin-right: 70px;
    }
    .chart .chart-switch[data-filter="type"] {
        margin-right: 30px;
    }
    
}

@media (max-width: 767px) {
    .chart-wrapper{
        overflow-x: auto;
        overflow-y: hidden;
    }
    .chart-wrapper #chart{
        min-width: 730px;
    }
    .chart-filters{
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
    .chart-filter-show, 
    .chart-filter-show button{
        width: 100%;
        justify-content: center;
    }
    .chart-filter-show .d33-arrow{
        transition: all 0.3s ease-in-out;
    }
    .chart-filter-show.open .d33-arrow{
        transform: rotate(180deg);
    }
    .chart-select-blue .chart-fake-dropdown{
        position: absolute;
        opacity: 0;
        z-index: 1;
        transition: opacity 0.3s ease-in-out;
        pointer-events: none;
    }
    .chart-select-blue.open .chart-fake-dropdown{
        opacity: 1;
        pointer-events: all;
    }

    .chart-filter-list{
        display: block;
        position: absolute;
        background: var(--color-background);;
        z-index: 1000;
        width: 100%;
        top: 46px;
        padding: 20px;
        opacity: 0;
        pointer-events: none;
    }
    .chart-filter-list.open{
        opacity: 1;
        pointer-events: all;
    }
    .chart-fake-select{
        width: 100%;
        position: relative;
    }
    .chart-filter-list .chart-fake-select i{
        position: absolute;
        right: 16px;
    }
    .chart-filter-list .chart-fake-dropdown{
        max-height: 0;
        overflow: auto;
        transition: all 0.3s ease-in-out;
        border-bottom: 1px solid var(--color-border) !important;
        padding-bottom: 0px;
    }
    .chart-filter-list .open .chart-fake-dropdown{
        max-height: 275px;
        padding-bottom: 10px;
    }
    .chart .chart-switch{
        justify-content: center;
        display: flex;
        padding-bottom: 20px;
        border-bottom: 1px solid var(--color-border) !important;
    }
    
}