.cm-scroll-datetime{
    display: inline-block;
    position: relative;
    vertical-align: middle;
    i.fa-calendar {
        position: absolute;
        right: 6px;
        top: 8px;
        color: rgba(0, 0, 0, 0.25);
    }
    &.dropup .cm-scroll-datetime-wrap {
        top: auto;
        bottom: 28px;
    }
}
// .cm-date-scroll-box{
//     position: absolute;
//     top: 0;
//     left: 0;
//     width: 100%;
//     overflow: auto;
//     height: 100%;
// }
// .cm-date-scroll-helper{
//     width: 100%;
//     height: 500px;
// }
.cm-scroll-datetime-text {
    padding: 0 30px 0 6px;
    border: 1px solid #d9d9d9;
    border-radius: 2px;
    color: #787878;
    width: 100%;
    min-width: 168px;
    display: inline-block;
    background-color: #fff;
    background-image: none;
    font-size: 13px;
    transition: border-color ease-in-out 0.15s;
    cursor: pointer;
    height: 28px;
    line-height: 26px;
}

.cm-scroll-datetime-wrap {
    position: absolute;
    top: 28px;
    left: 0;
    z-index: 10;
    padding: 5px;
    background: whitesmoke;

    white-space: nowrap;
    padding: 10px;
    display: none;

    &:after{
        content: '';
        display: table;
        clear: both;
    }
    .cm-scroll-date{
        display: inline-block;
        padding: 0;
        background: transparent;
        border: 0;
    }
}

.cm-date-scroll-item-num{
    height: 34px;
    line-height: 34px;
    font-size: 15px;
    color: #959595;

    user-select: none;
    width: 100%;
    padding-left: 25px;
    &:last-child:after{
        content: '';
        height: 151px;
        display: block;
    }
    &.cm-date-scroll-item-num-active{
        color: #000;
        font-weight: 700;
        background-color: #f5f5f5;
    }
    &:hover{
        background-color: #e6f7ff;
    }
}
.cm-date-scroll-item-year{
    .cm-date-scroll-item-num {
        padding-left: 15px;
    }
}
.cm-date-scroll-item{
    width: 70px;
    height: 187px;
    overflow: hidden;
    position: relative;
    float: left;
    border-right: 1px solid #ccc;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;

    &:first-child{
        border-left: 1px solid #ccc;
    }

    // background: linear-gradient(#aaa 0,#eee 45%,#eee 55%,#aaa 100%);
    // background: -webkit-gradient(linear,left bottom,left top,from(#aaa),color-stop(0.45,#eee),color-stop(0.55,#eee),to(#aaa));
    // background: -moz-linear-gradient(#aaa 0,#ddd 45%,#ddd 55%,#aaa 100%);
    // background: -o-linear-gradient(#aaa 0,#ddd 45%,#ddd 55%,#aaa 100%);
}
.cm-date-scroll-item-wrap{
    height: 100%;
    overflow: hidden;

    &:hover{
        overflow-y: auto;
    }
}


.cm-scroll-date{
    background: #ffffff;
    padding: 10px;
    border: 1px solid #ddd;
    display: inline-block;
    border-radius: 3px;
}
.cm-scroll-date-head{
    white-space: nowrap;
}
.cm-scroll-date-head-item{
    display: inline-block;
    text-align: center;
    width: 70px;
    line-height: 30px;
    font-weight: bold;
}
.cm-scroll-datetime-comp{
    display: inline-block;
}

.cm-scroll-datetime-small{
    .cm-date-scroll-item-num{
        font-size: 14px;
    }
    .cm-scroll-date-head-item,
    .cm-date-scroll-item{
        width: 70px;
    }
}

.cm-form-group-invalid{
    .cm-scroll-datetime{
        border-color: #E05B5B;
    }
}