:root{
    --background-tooltip: rgba(247, 247, 247, 0.85);
    --background-scroll: #e1e1e1;
    --color-lineCuadricula: rgb(230, 230, 230);
}
&[data-theme='light'] {
    --background-tooltip: rgba(247, 247, 247, 0.85);
    --background-scroll: #e1e1e1;
    --color-lineCuadricula: rgb(230, 230, 230);
}
&[data-theme='dark'] {
    --background-tooltip: rgb(118 118 118);
    --background-scroll: #454545;
    --color-lineCuadricula: rgb(157 157 157);
}

.graficaStyleCss{
    /* & *{
        font-family: 'Libre Franklin';
    } */
    

    & .scroller *{
        font-size: 11px;
    }

    & .wrapper *{
        font-size: 11px;
    }

    & .actions-btn{
        font-size: 11px;
    }

    & .bs-container{
        font-size: 11px;
    }

    /*estilo de los numeros internos de las barras*/
    & div.graficaStyleCss svg > g > g > text > tspan {
        stroke-width: 0.1px;
    }

    & .card * {
        font-size: 11px;  
        
        & h5 {
            font-size: 14px;
        }

        & .fa-minus-circle{
            font-size: 16px;
        }

        & .fa-plus-circle{
            font-size: 16px;
        }

        & .close {
            font-size: 25px;
        }

        & .dropdown-toggle {
            font-size: 16px;
        }
    }

    & accordionGraph {
        padding-bottom: 10px;
    }

    & .cardIn {
        border-left: none;
        border-right: none;
        border-bottom-left-radius: .25rem;
        border-bottom-right-radius: .25rem;
        border-top-left-radius: 0px;
        border-top-right-radius: 0px;
        margin-bottom: -1px;

        & .card-header {
            height: 30px !important;
            align-content: center !important;
            align-items: center !important;
            border-bottom: none;
        }
    }

    & .card-link {
        color:#666666;
        margin-top: -5px;

        &:hover {
            color:black;
        }
    }
    
    & .inlineGraph {
        display: inline;
    }

    & .card-header button.btn:focus {
        box-shadow: none!important;
    }

    & .widthLinks {
        padding: 0px;
        line-height: 1.5;
        width: 48%;
        float: left!important;
        margin-top: -5px
    }

    /*div grafica*/
    &.grafica {
        min-height: 400px;
        margin: 0 auto;
        border: 1px solid #dee2e6;
        border-radius: .25rem;
    }

    & .chartPanelMain {
        margin: 0 auto;
        border: 1px solid #dee2e6;
        border-top: none;
        border-bottom-right-radius: .25rem;
        border-bottom-left-radius: .25rem;
    }

    & .chartPanel {
        min-width: 280px;
        height: 400px;
    }

    & dropdown.bootstrap-select.show-tick button{  
        font-size: 11px !important;
    }

    /*ERROR*/
    & .errorGraph {
        width: 100%;
        height: auto;
        text-align: center;
        padding-top: 180px;
        color: rgb(242, 116, 116);

        &  p {
            max-width: 300px;
            margin: auto;
        }
    
        &  i {
            font-size: 30px;
        }
    }

    & .wrapper {
        border-top-right-radius: .25rem;
        border-top-left-radius: .25rem;
        border-top: 1px solid rgb(216, 216, 216);
        border-left: 1px solid rgb(216, 216, 216);
        border-right: 1px solid rgb(216, 216, 216);
        position:relative;
        margin:0 auto;
        overflow:hidden;
        padding:5px;
        height:33px;

        & .nav-tabs{
            background-color: #f7f7f7;

            & .nav-link{
                border-color: #dee2e6 #dee2e6 #dee2e6;
                border-bottom: none;
                color: #666;
                padding-right: 30px;

                &:hover {
                    border-color: #dee2e6 #dee2e6 #dee2e6;
                    border-bottom: none;
                    color: black;
                    background-color: rgb(252,252,252);
                }
            }
        }
    }

    & .list {
        position:absolute;
        left:0px;
        top:0px;
        min-width:3500px;
        margin-top:-1px;
        margin-left: -1px;

        & li{
            display:table-cell;
            position:relative;
            text-align:center;
            cursor:grab;
            cursor:-webkit-grab;
            color:#efefef;
            vertical-align:middle;
        }
    }

    & .scroller {
        border: 1px solid #dee2e6;
        text-align:center;
        cursor:pointer;
        display:none;
        padding:7px;
        padding-top:0px;
        white-space:no-wrap;
        vertical-align:middle;
        background-color:#fff;
    }

    /**/
    /* Context menu  */
    /* Cambiar para que funcione la grafica radial */
    /* .graficaStyleCss .highcharts-container {
    position: inherit !important;
    } */
    & .highcharts-contextmenu {
        z-index:9999!important;
        bottom: -400px!important;
    }
    /**/

        /*Scroll-horizontal-Selectores*/
    & .slider {
        width: 100%;
        display: flex;
        align-items: stretch; 
        overflow-x: scroll;
        -ms-overflow-x: scroll;
        -webkid-overflow-x: scroll;
        overflow-y: hidden;
        padding: 0px!important;
        scroll-snap-type: x mandatory; /* Chrome Canary */  
        scroll-snap-type: mandatory; /* Firefox */  
        -ms-scroll-snap-type: mandatory; /* IE/Edge */  
        -webkit-scroll-snap-type: mandatory; /* Safari */  
        -webkit-scroll-snap-destination: 0% 0%;  
        -webkit-overflow-scrolling: touch; /* important for iOS */ 

        &::-webkit-scrollbar-track
        {
            background-color: transparent;
        }

        &::-webkit-scrollbar
        {
            height: 6px;
            width: 8px;
        }

        &::-webkit-scrollbar-thumb
        {
            border-radius: 30px;
            background-color: #999;
        }

    }

    &  .inner
    {
        &::-webkit-scrollbar-track
        {
            background-color: transparent;
        }


        &::-webkit-scrollbar
        {
            height: 6px;
            width: 8px;
        }

        
        &::-webkit-scrollbar-thumb
        {
            border-radius: 30px;
            background-color: #999;
        }
    }

    & .section {
        padding-top: .5rem;
        padding-left: 3rem;
        width: 25%;
        flex-shrink: 0;  
        scroll-snap-align: start; /* latest (Chrome 69+) */  
        scroll-snap-coordinate: 0% 0%; /* older (Firefox/IE) */  
        -webkit-scroll-snap-coordinate: 0% 0%; /* older (Safari) */ 
        position: relative;
    }

    & .highcharts-text-outline{
        fill: transparent;
        stroke: transparent;
    }

    & .highcharts-label text{
        color: white !important;
        fill: var(--color-text-S360) !important;
        color: rgb(255 255 255);
    }

    & .highcharts-axis-labels text{
        color: white !important;
        fill: var(--color-text-S360) !important;
        color: rgb(255 255 255);
    }

    & .highcharts-axis text{
        color: var(--color-text-S360) !important;
        fill: var(--color-text-S360) !important;
    }

    & .highcharts-container {

        & .highcharts-background {
            fill: var(--background-S360) !important;
        }

        & .highcharts-root{

            *{
                font-family: 'Libre Franklin', sans-serif;
            }

            & .highcharts-series{

                & .highcharts-point{
                    stroke: var(--background-S360) !important;
                }
            }

            & .highcharts-legend-item text {
                fill: var(--color-text-S360) !important;
            }

            & .highcharts-title{
                fill: var(--color-text-S360) !important;
            }
        }
    }

    & .highcharts-tooltip{
        & .highcharts-label-box{
            fill: var(--background-tooltip)
        }
    }

    & .highcharts-navigator{
        &  .highcharts-navigator-mask-inside{
            fill: rgb(186 174 152 / 34%);
        }
    }

    & .highcharts-legend-item text{
        font-family: 'Libre Franklin',  sans-serif;
    }

    & .highcharts-scrollbar-thumb{
        cursor: pointer;
    }

}


@media (max-device-width: 1024px) {
    .errorGraph p {
        max-width: 200px;
    }
}