@import '../functions.less';
@import '../../../../files/config/colors.less';


.drs-graphics-03 {
    background: #FFF;
    border-radius: 4px;
    position: relative;
    padding: 20px 0;
    * {
        box-sizing: border-box;
    }
    .chartDoughnut {
        max-width: 500px;
        margin-left: calc(50% - 250px);
    }
    > i {
        position: absolute;
        width: 80px;
        height: 20px;
        bottom: 18px;
        left: calc(50% + 180px);
        background: #FFF;
        z-index: 20;
    }
    .title {
        font-size: 1.3em;
        text-align: center;
    }
    .legend {
        display: block;
        width: 100%;
        display: inline-block;
        > label {
            display: inline-block;
            cursor: pointer;
            padding: 5px 10px;
            > div {
                display: grid;
                grid-template-columns: 25px 1fr;
                grid-gap: 5px;
                > span {
                    display: inline-block;
                    width: 27px;
                    height: 15px;
                    border-radius: 3px;
                }
            }
            &:hover {
                opacity: 75%;
            }
            &.stroke {
                text-decoration: line-through;
                opacity: 50%;
            }
            &._ {
                display: none;
            }
        }
    }
    .total {
        width: 150px;
        position: absolute;
        bottom: 207px;
        left: calc(50% - 75px);
        display: block;
        text-align: center;
        font: 18px arial;
        z-index: 10;
    }
}

@media screen and ( max-width: 700px ){
    .drs-graphics-03 {
        .chartDoughnut {
            max-width: 400px;
            max-height: 320px;
            margin-left: calc(50% - 200px);
        }
        > i {
            left: calc(50% + 128px);
        }
        .total {
            bottom: 165px;
        }
    }
}