div.container-fluid.page-toolbar > div.row > div {
    margin-left: 15px;
    float: left;
}
#date-range-picker {
    height: 40px;
    width: 100%;
}
.date-picker-container{
    height: 40px;
    border-bottom: 1px #ac00d5 solid;
    width: 200px;
}
#date-range-picker + span {
    position: relative;
    bottom: calc(100% - 9px);
    left: calc(100% - 20px);
    cursor: pointer;
}

div.wrapper.page-toolbar div.month-picker {
    margin: 0;
}
div.wrapper.page-toolbar div.month-picker > span {
    margin: 15px 0 0 15px;
}

.wrapper {
    display: flex;
    flex-wrap: wrap;
    padding: 0 !important;
    padding-bottom: 15px !important;
}
.wrapper > div {
    margin-top: 15px;
    margin-left: 15px;
}
/* overwrite bootstrap radio buttons */
div.wrapper.page-toolbar > div.btn-group > label{
    height: 40px;
    line-height: 30px;
    background-color: #f9f3e9;
    color: #000;
    width: 90px;
    z-index: 0;
}
div.wrapper.page-toolbar > div.btn-group > label.active {
    background-color: #ac00d5;
    color: #fff;
}
#charts-row {
    overflow-x: auto;
    margin: 0;
}
#charts-row > span:first-child {
    margin-top: 15px;
    display: block;
}
#charts-area {
    width: 100%;
    min-width: 768px;
}
#charts-area canvas {
    position: unset !important;
    margin-top: 15px;
    width: 100%;
}

/* gia ton chart slider */
#chart-slider {
    margin: 15px;
}
#chart-slider > span {
    border-color: #ac00d5;
    outline: none;
    background: #ac00d5;
}
/* end chart slider */

/* gia to sleep chart legend */
#charts-row > div:first-child {
    display: grid;
    grid-template-columns: repeat(5, 170px);
    justify-content: center;
    margin-top: 15px;
}


#charts-row > div:first-child > div > div:first-child {
    height: 20px;
    width: 60px;
    float: left;
    border-width: 2px;
    border-style: solid;
}
#charts-row > div:first-child > div > span {
    float: left;
    margin: 0 10px;
}

@media (max-width: 768px){
    div.wrapper.page-toolbar > div {
        margin-top: 15px;
        margin-left: 15px;
        float: unset !important;
        display: block;
    }

    .wrapper {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding-bottom: 15px;
    }

    .wrapper > div {
        margin: 0 15px;
        margin-top: 15px;
    }

    #charts-area {
        width: 768px;
    }
}

@media (max-width: 992px){
    #charts-row > div:first-child {
        justify-content: unset;
    }
}