@date-picker-prefix-cls: ~"@{css-prefix}date-picker";
@picker-prefix-cls: ~"@{css-prefix}picker";

@date-picker-cells-width: 196px;
@date-picker-cells-width-with-weeknumbers: 226px;

.@{date-picker-prefix-cls} {
    .haloe-icon-date:hover {
        color: @color-brand-primary;
    }
    //position: relative:;
    display: inline-block;
    line-height: normal;
    &-rel{
        position: relative;
        .haloe-input{
            min-width: 200px;
            max-width: 440px;
        }
        .haloe-input[disabled], fieldset[disabled] .haloe-input{
            background-color: @datapicker-disabled-bg-color;
        }
        .haloe-input-wrapper-disabled {
           .haloe-input:not(.haloe-input-no-border){
            border: 1px solid @datapicker-disabled-border-color !important;
            } 
        .haloe-input-suffix .haloe-icon{
            color:@datapicker-disabled-icon-color!important;
            }
        }
        .haloe-input[disabled]::placeholder {
            color: @datapicker-disabled-placeholder-color
        }
        .haloe-icon-time{
            color: @gray-500;
            padding-right: 4px;
        }
    }
    .@{select-dropdown-prefix-cls} {
        width: auto;
        padding: 0;
        overflow: visible;
        max-height: none;
        box-shadow: 0 2px 12px  fade(@gray-500, 40%);
    }
    &-cells{
        width: @date-picker-cells-width;
        margin: 10px 0px 10px 16px;
        white-space: normal;
        span{
            display: inline-block;
            width: 24px;
            height: 24px;
            color: #666; // ★待定

            em{
                display: inline-block;
                width: 24px;
                height: 24px;
                line-height: 24px;
                margin: 2px;
                font-style: normal;
                border-radius: @btn-border-radius-small;
                text-align: center;
                transition: all @transition-time @ease-in-out;
            }
        }
        &-header span{
            line-height: 24px;
            text-align: center;
            margin: 2px;
            color: @btn-disable-color;
        }
        &-cell:hover{
            em{
                background: @color-bg-info;
            }
        }
        &-focused{
            em{
                box-shadow: 0 0 0 1px @primary-color inset;
            }
        }

        &-cell{
            span&{
                width: 28px;
                height: 28px;
                cursor: pointer;
                margin-bottom: 8px;
            }
            &-prev-month,&-next-month{
                em{
                    color: @btn-disable-color;
                }
                &:hover{
                    em{
                        background: transparent;
                    }
                }
            }
            span&-week-label,span&-week-label:hover,span&-disabled,span&-disabled:hover{
                cursor: @cursor-disabled;
                color: @btn-disable-color;
                em{
                    color: inherit;
                    background: inherit;
                }
            }
            span&-disabled,span&-disabled:hover{
                background: @btn-disable-bg;
                border-radius: @btn-border-radius;
            }
            &-today{
                color: @primary-color;
                em {
                    display: inline-block;
                    width: 24px;
                    height: 24px;
                    line-height: 24px;
                    margin: 2px;
                    font-style: normal;
                    border-radius: @btn-border-radius-small;
                    text-align: center;
                    transition: all @transition-time @ease-in-out;
                }
            }
            &-range{
                position: relative;
                em{
                    position: relative;
                    z-index: 1;
                }
                &:before{
                    content: '';
                    display: block;
                    background: @color-bg-hover;;
                    border-radius: 0;
                    border: 0;
                    position: absolute;
                    top: 2px;
                    bottom: 2px;
                    left: 0;
                    right: 0;
                }
            }
            &-selected,&-selected:hover
            {
                em{
                    background: @primary-color;
                    color: @color-functional-white;
                em {
                    background: @btn-disable-color;
                    color: @btn-disable-bg;
                }
            }
            &-today&-selected
            {
                em{
                    &:after{
                        background: @color-functional-white;
                    }
                }
            }
        }
    }

    &-cells-show-week-numbers {
        width: @date-picker-cells-width-with-weeknumbers;
        .haloe-date-picker-cells-focused-week{
            background-color: @primary-color;
            color: @color-functional-white;
            em:hover{
                background-color: @primary-color;
            }
        }
        .haloe-date-picker-cells-focused-week-label{
            color: @primary-color;
        }
    }

    &-cells-year,&-cells-month{
        margin-top: 14px;
        span{
            width: 40px;
            height: 28px;
            line-height: 28px;
            margin: 10px 12px;
            border-radius: @btn-border-radius-small;
            em{
                width: 40px;
                height: 28px;
                line-height: 28px;
                margin: 0;
            }
        }

        .@{date-picker-prefix-cls}-cells-cell-focused{
            background-color: tint(@primary-color, 80%);
            background-color: @primary-color;
            color:@color-functional-white
        }

    }

    &-header{
        height: 32px;
        line-height: 32px;
        text-align: center;
        border-bottom: 1px solid @color-scrollbar;
        &-label{
            cursor: pointer;
            transition: color @transition-time @ease-in-out;
            &:hover{
                color: @primary-color;
            }
        }
    }
    &-btn-pulse{
        background-color: tint(@primary-color, 80%) !important;
        border-radius: @border-radius-small;
        transition: background-color @transition-time @ease-in-out;
    }
    &-prev-btn{
        float: left;
        &-arrow-double{
            margin-left: 16px;
            i:after{
                content: "\e771";
                margin-left: -8px;
            }
        }
    }
    &-next-btn{
        float: right;
        &-arrow-double{
            margin-right: 16px;
            i:after{
                content: "\e783";
                margin-left: -8px;
            }
        }
    }

    &-with-range{
        .@{picker-prefix-cls}-panel{
            &-body{
                min-width: (@date-picker-cells-width + 16) * 2;
            }
            &-content{
                float: left;
            }
        }
        .@{picker-prefix-cls}-cells-show-week-numbers {
            min-width: (@date-picker-cells-width-with-weeknumbers + 16) * 2;
        }

    }

    &-with-week-numbers{
        .@{picker-prefix-cls}-panel{
            &-body-date {
                min-width: (@date-picker-cells-width-with-weeknumbers + 16) * 2;
            }
        }
    }

    &-transfer{
        z-index: @zindex-transfer;
        max-height: none;
        width: auto;
    }

    &-focused input:not([disabled]){
        .active();
    }

    &-presently{
      position: absolute;
      bottom: 5px;
      right: 100px;
    }

    &-timeStyle {
      width: 18px;
      display: inline-block;
    }
    &-editor{
        .haloe-input:focus{
            border-color:@color-brand-press !important
        }
    }
}

.@{picker-prefix-cls} {
    &-panel{
        &-icon-btn{
            display: inline-block;
            width: 20px;
            height: 24px;
            line-height: 26px;
            margin-top: 2px;
            text-align: center;
            cursor: pointer;
            color: @btn-disable-color;
            transition: color @transition-time @ease-in-out;
            &:hover{
                color: @primary-color;
            }
            i{
                font-size: 14px;
            }
        }

        &-body-wrapper&-with-sidebar{
            padding-left: 92px;
        }
        &-sidebar{
            width: 92px;
            float: left;
            margin-left: -92px;
            margin-top: 4px;
            position: absolute;
            top: 0;
            bottom: 0;
            // background: #fff;
            background: @color-bg-card;
            border-right: 1px solid @color-scrollbar;
            border-radius: @border-radius-small 0 0 @border-radius-small;
            overflow: auto;
            color: @primary-color;
        }
        &-shortcut{
            padding: 6px @padding-md;
            transition: all @transition-time @ease-in-out;
            cursor: pointer;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            color: @color-complementary-4;
            &:hover{
                background: @color-bg-info;
            }
        }
        &-body{
            float: left;
        }
    }

    &-confirm{
        box-shadow: 0 -1px 6px rgba(155, 168, 200, 0.4); /* x=0, y=-1, 模糊=6, 颜色=#9BA8C8, 透明度=40% */
        // border-top: 1px solid @color-complementary-8;
        text-align: right;
        padding: 8px 16px 8px 8px;
        clear: both;
        & > span{
            color: @link-color;
            cursor: pointer;
            user-select: none;
            float: left;
            padding: 2px 0;
            transition: all @transition-time @ease-in-out;
            &:hover{
                color: @link-hover-color;
            }
            &:active{
                color: @link-active-color;
            }
        }

        &-time{
            float: left;
            color: @color-complementary-3;
            &:hover{
                color: @color-brand-hover;
            }
            &:active{
                color: @color-brand-press;
            }
        }
        &-btn{
            &-cancel{
                margin-right: 4px;
            }
        }
    }
}
.haloe-input-suffix i:focus{
    color: @primary-color;
}
}