
.version-manage {
    width: 100%;
    line-height: 18px;
    font-size:12px;
    .link{
        color: #2299FF;
        cursor: pointer;
    }
    .left{
        text-align: left;
    }
    .center{
        text-align: center;
    }
    .right{
        text-align: right;
    }
    .inline-block{
        display: inline-block;
    }
    select{
        background: transparent;
    }
    .batch-delete-btn{
        position: relative;
        left: 135px;
        bottom: -35px;
        cursor: pointer;
        color: #333;
        z-index:100;
        &:hover{
            color: #F44336;
        }
        i.icon{
            margin-right: 5px;
            font-size: 14px;
        }
    }
    .empty-product-con{
        padding-top: 180px;
        text-align: center;
        background: url(http://img12.360buyimg.com/uba/jfs/t17821/135/2198725401/4894/c92a4b4f/5ae967a8N52ec8611.png) no-repeat center 70px;
        background-size: 80px 88px;
        p{
            font-size: 14px;
            color: #999;
            letter-spacing: 0;
            margin-bottom: 20px;
        }
    }
    &.no-edit{
        .tool-con,
        .head-tool,
        .save-version,
        .add-version-btn,
        .cd-url,
        .min-tool-con,
        .one-time-msg,
        .add-item,
        .cd-level-close,
        .cd-add{
            display: none !important;
        }
        .link-input{
            border:0 !important;
        }
        .product-name{
            width: 200px !important;
            textarea,
            input{
                border-color: transparent !important;
            }
            .tool{
                display: none !important;
            }
        }
        .level{
            background: #fff !important;
        }


    }
    .edit-able-input{
        line-height: 1em;
        input{
            line-height: 1em;
            border: 1px solid transparent;
            width: 100px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            &[disabled]{
                background-color: transparent;
            }
        }
        .icon{
            vertical-align: middle;
            cursor: pointer;
            &.icon-complete,
            &.icon-close{
                display: none;
            }
            &:hover{
                color: #E2231A;
            }
        }
        &.editing{
            .icon-complete,
            .icon-close{
                display: inline;
            }
            .icon-edit{
                display: none;
            }
        }
    }
    .main-con {
        padding: 10px 20px 0 20px;
        height: 100%;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }
    .header-bar {
        position: relative;
        .group-info {
            color: #333;
            span {
                margin-right: 15px;
                &.tips {
                    color: #999;
                }
            }
        }
        .save-version {
            position: absolute;
            right: 0px;
            top: -5px;
        }
        .version-tab {
            width: 100%;
            overflow-x: auto;
            color: #333;
            padding-bottom: 5px;
            .tab-warp {
                white-space: nowrap;
                .one-time-msg{
                    position: absolute;
                    right: 0px;
                    top: 22px;
                    p{
                        font-size: 12px;
                        color: #999;
                        span{
                            margin-left: 10px;
                            color: #2299FF;
                            cursor: pointer;
                            &.disabled{
                                color: #c8c8c8;
                            }
                        }
                    }
                }
            }
            .tab-item {
                position: relative;
                display: inline-block;
                vertical-align: middle;
                border: 1px solid #E1E1E1;
                width: 180px;
                height:45px;
                color: #666;
                margin-right: 10px;
                cursor: pointer;
                border-radius: 2px;
                font-size: 0;
                text-align: left;
                float: none;

                .one-line-time{
                    line-height: 43px;
                    font-size: 12px;
                    margin-left: 8px;
                }
                .min-tool-con{
                    position: absolute;
                    right: 5px;
                    top: 15px;
                    height: 16px;
                    .icon{
                        font-size: 14px;
                        padding: 3px;
                        cursor: pointer;
                        color: #666;
                        &:hover{
                            color: #333;
                        }
                    }
                }
                .index{
                    display: inline-block;
                    width:24px;
                    height: 100%;
                    line-height: 45px;
                    text-align: center;
                    vertical-align: top;
                    font-size:12px;
                }
                .tool-right{
                    position: relative;
                    display: inline-block;
                    width: 154px;
                    height: 43px;
                    border: 1px solid transparent;
                    border-left-color: #E1E1E1;
                    font-size:12px;
                    text-align: left;
                    .time{
                        display: inline-block;
                        margin-top: 5px;
                        margin-left: 5px;
                        text-align: left;
                    }
                    .tool-con {
                        position: absolute;
                        right:8px;
                        top: 12px;
                        text-align: center;
                        i{
                            display: none;
                        }
                        .icon {
                            font-size: 14px;
                            padding: 3px;
                            cursor: pointer;
                            color: #666;
                            &:hover {
                                color: #333;
                            }
                        }
                    }
                }
                
                &.active {
                    color: #333;
                    border-color: #F44336;
                    .index{
                        background-color: #F44336;
                        color: #fff;
                    }
                    .tool-right{
                        border-color: #F44336;
                        .tool-con{
                            i{
                                display: inline-block;
                            }
                        }
                    }

                    &:after{
                        content: '';
                        width: 16px;
                        height: 16px;
                        position: absolute;
                        background: url(http://img13.360buyimg.com/uba/jfs/t19126/49/1546303501/2179/d4fe9853/5acf2ce4N7ac5fc8a.png) no-repeat;
                        background-size:16px;
                        right:0;
                        top: 0;
                    }
                }
            }
            .add-version-btn {
                display: inline-block;
                width: 110px;
                height:45px;
                line-height: 45px;
                border: 1px  #E1E1E1 dashed;
                cursor: pointer;
                color: #666;
                text-align: center;
                border-radius: 2px;
                &:hover {
                    border-style: solid;
                    background-color: #F2F2F2;
                }
            }
        }
        .head-tool {
            margin-top: 10px;
            .version-name,
            .has-in {
                font-size: 14px;
                color: #333;
                line-height: 30px;
                vertical-align: middle;
            }
            .version-info-right {
                float: right;
                .has-in{
                    b{
                        color: #2299FF;
                        margin-left: 3px;
                        font-weight: normal;
                        margin-right: 20px;
                    }
                }
                .add-item{
                    &.disabled{
                        cursor: no-drop;
                        color: #c8c8c8!important;
                        border-color: #c8c8c8!important;
                        background-color: #fff!important;
                    }
                }
            }
        }
    }
    .table-con {
        overflow-y: auto;
        overflow-x: hidden;
        margin-top: 10px;
        input[type="text"]{
            width: 120px;
            padding: 0 5px;
            height: 25px;
            line-height: 25px;
            margin-left: 5px;
        }
        input.cd-input-count{
            position: relative;
            width:50px;
        }
        table {
            th{
                .gray{
                    color: #999;
                    font-weight: normal;
                }
            }
            select{
                width: auto;
                margin-top: -8px;
            }
            tbody{
                tr:last-child{
                    td{
                        border-bottom: 0;
                    }
                }
            }
            .link-input{
                position: relative;
                cursor: pointer;
                max-width: 300px;
                width: 100%;
                height: 30px;
                line-height: 30px;
                padding-left: 86px;
                padding-right: 32px;
                box-sizing: border-box;
                border:1px solid #ddd;
                cursor: pointer;
                overflow: hidden;
                text-overflow:ellipsis;
                white-space: nowrap;
                .l-label{
                    position: absolute;
                    left: 0;
                    width: 70px;
                    background: #F2F2F2;
                    border-radius: 2px;
                    color: #999;
                    margin-top: 4px;
                    margin-left: 3px;
                    line-height: 20px;
                    height: 20px;
                    padding:0 3px;
                    overflow:hidden;
                    text-overflow:ellipsis;
                    white-space:nowrap;
                }
                .cd-url{
                    position: absolute;
                    right: 0;
                    width: 32px;
                    top: 0;
                    border-left: 1px solid #ddd;
                    .cd-icons{
                        vertical-align: sub;
                    }
                }
                .cd-href{
                    display: inline-block;
                    text-align: left;
                    width: 100%;
                    height: 100%;
                    border: 0;
                    vertical-align: top;
                    overflow:hidden;
                    text-overflow:ellipsis;
                    white-space:nowrap;
                }
            }
            .cd-sku-id {
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                position: relative;
                // 超级新品打标
                .d-new-product-tag {
                    width: 50px;
                    font-size: 12px;
                    line-height: 14px;
                    color: #FFFFFF;
                    padding: 0 5px;
                    background-color: #FD624E;
                }
            }
            .image-item {
                position: relative;
                width: 60px;
                height: 60px;
                margin: 0 auto;
                border: 1px solid #EFEFEF;
                padding:0;
                text-align:center;
                img {
                    width: 100%;
                    height: 100%;
                }
                &:hover {
                    .mask {
                        display: block;
                    }
                }

                
                .mask {
                    display: none;
                    position: absolute;
                    left: 0;
                    top: 0;
                    right: 0;
                    bottom: 0;
                    background-color: rgba(0, 0, 0, 0.5);
                    text-align:center;
                    hr{
                        margin: 0 3px;
                    }
                    span {
                        display: block;
                        color: #fff;
                        cursor: pointer;
                        line-height: 30px;
                        margin: 0;
                        border: 0;
                        background: transparent;
                        .icon {
                            font-size: 16px;
                        }
                        &:hover {
                            opacity: 0.9;
                        }
                    }
                }
            }
            .bi-sort-item{
                text-align: center;
                .sort-item{
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    height: 23px;
                    margin: 0 3px;
                }
                .level{
                    background: #F2F2F2;
                    padding: 1px 3px;
                    line-height: 16px;
                    height: 16px;
                    position: relative;
                    &:not(:last-child){
                        margin-right: 10px;
                        &:after{
                            content: '>';
                            position: absolute;
                            right: -9px;

                        }
                    }
                    i{
                        max-width: 61px;
                        display: inline-block;
                        overflow: hidden;
                        font-style: normal;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                        min-width: 55px;
                    }

                }

                .cd-add,.cd-sort-group{
                    border: 1px solid #E1E1E1;
                    text-align: center;
                    height: 24px;
                    line-height: 24px;
                    box-sizing: border-box;
                }
                .cd-sort-group{
                    margin-bottom: 10px;
                    position: relative;
                    .cd-level-close{
                        position: absolute;
                        top:-4px;
                        right: -4px;
                        cursor: pointer;
                    }
                }
                .cd-add{
                    cursor: pointer;
                    .cd-add-icon{
                        color: #d8d8d8;
                        font-size: 26px;
                        line-height: 17px;
                        vertical-align: top;
                    }
                    .cd-number{
                        i{
                            color: #29f;
                            font-style: normal;

                        }
                    }
                }

            }
            .product-name {
                width: 240px;
                textarea {
                    width: 100%;
                    padding: 5px 8px;
                    height: 71px;
                    overflow-y: auto;
                    resize: none;
                    box-sizing: border-box;
                    border: 1px solid #E1E1E1;
                    
                }
                .tool {
                    margin-top: -1px;
                    height: 28px;
                    line-height: 28px;
                    border: 1px solid #E1E1E1;
                    background-color: #F7F7F7;
                    padding: 0 8px;
                    //visibility: hidden;
                    .name-num {
                        float: right;
                        font-weight: none;
                        color: #999;
                    }
                }
                &:hover,
                &.hover,
                &.editing {
                    textarea {
                        
                    }
                    .tool {
                        //visibility: visible;
                    }
                }
                .save-name,
                .cancel-name {
                    display: none;
                }
                &.editing {
                    .edit-name,
                    .reset-name {
                        display: none;

                    }
                    .save-name,
                    .cancel-name {
                        display: inline-block;
                    }
                }
            }
            &.signboard-table{
                .image-item{
                    
                    padding:0;
                    text-align:center;
                    .mask{
                        padding: 0;
                        background-color: rgba(0, 0, 0, 0.5);
                    }
                    hr{
                        margin: 0 3px;
                    }
                    span{
                        display: block;
                        color: #fff;
                        cursor: pointer;
                        line-height: 30px;
                        margin: 0;
                        border: 0;
                        background: transparent;
                    }
                }
                textarea{
                    height: 50px;
                }
            }
        }
    }
}
.calendar-input {
    position: relative;
    .icon-calendar {
        position: absolute;
        right: 8px;
        top: 12px;
    }
}
//.cd-modal-content{
    .version-delete-pop{
        position: absolute;
        left: 0;
        top: 70px;
        right: 0;
        bottom: 80px;
        padding-top: 150px;
        text-align: center;
        background-color: #fff;
        h2{
            font-size: 14px;
            color: #333333;
            letter-spacing: 0;
            text-align: center;
            background: #fff;
            font-weight: normal;
        }
        p{
            margin-top: -5px;
            font-size: 12px;
            color: #999999;
            letter-spacing: 0;
            text-align: center;
        }
        h2,p{
            line-height: 35px;
        }
    }
    .form-panel {
        padding: 20px 40px;
        > .line {
            margin-bottom: 20px;
            font-size: 12px;
            line-height: 35px;
            .right{
                text-align: right;
            }
            span.label {
                margin-right: 10px;
                line-height: 30px;
            }
            label.radio {
                margin-right: 30px;
                font-size: 12px;
                cursor: pointer;
            }
            input[type="text"] {
                color: #666;
                width: 100%;
            }
            .select {
                display: inline-block;
            }
        }
        .img-select-con{
            width: 100%;
            text-align: center;
            padding: 80px 0;
            border-radio: 2px;
            background-repeat: no-repeat;
            background-position: 50%;
            background-size: contain;

            button{
                margin: 0 5px;
            }
        }

        .modal-bottom {
            > span {
                margin-left: 15px;
            }
        }
    }
    .act-list {
        margin: 10px 0 30px 0;
        font-size: 12px;
        li {
            padding: 5px 0px 10px 0px;
            border-bottom: 1px solid #E1E1E1;
            span.name {
                display: inline-block;
                width: 339px;
            }
        }
    }
//}

