$tableBg:#EFF3F8;
$paddingright:17px;
.ace-table {
    position: relative;
    min-width: 710px;
    .ui-icon {
        position: relative;
        right: 0px;
    }
}

$boxshadow:0 0 1px rgba(0, 0, 0, 0.4);
.ace-wrap {
    position: relative;
    z-index: 5;
    // background: $tableBg;
    // box-shadow: $boxshadow;
    border:1px solid #ccc;
    border-radius:0 0 4px 4px;
    tr>td:first-child {
        // border-left: 0;
        border-left-color:transparent!important;
    }
    tr>td:last-child {
        
        border-right-color:transparent!important;
    }
}

// 标题栏
.ace-table-title {
    // box-shadow: $boxshadow;
    position: relative;
    height: 40px;
    line-height: 24px;
    color: #FFF;
    background: #307ECC;
    padding: 0;
    font-size: 15px;
    >span {
        float: left;
        margin: 8px;
    }
    .arrow {
        position: absolute;
        top: 10%;
        right: 0px;
        width: 19px;
        height: auto;
        margin: 2px 8px 0 0;
        padding: 0 2px 3px;
        text-align: center;
        border-radius: 4px;
        cursor: pointer;
        &:hover {
            background-color: rgba(255, 255, 255, .25);
        }
        span {
            transition: all 0.2s linear;
            font-size: 16px;
            color: #fff;
        }
    }
}

//内容区容器
.ace-table-content {
    position: relative;
    min-height: 300px;
    td,
    & th {
        height: 30px;
    }
}

// 头部
.ace-table-thead {
    position: relative;
    overflow: hidden;
    // border-bottom:1px solid #ccc;
    table {
        table-layout: fixed;
        margin-bottom: 0;
        tr {
            // background: rgb(242, 242, 242)
        }
        th {
            text-align: center;
            overflow: hidden;
            border-top-color: transparent!important;
            // border-bottom-color: transparent!important;
            span:hover {
                color: #547ea8;
            }
            &:last-child {
                border-right-color: transparent!important;
            }
            &:first-child {
                border-left-color: transparent!important;
            }
        }
        span {
            white-space: nowrap;
            user-select: none;
            font-size: 14px;
            // font-weight: bold;
            font-weight: 500;
            color: #333;
            font-family: 微软雅黑;
        }
    }
    .ace-move-block {
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 100%;
        z-index: -1;
        opacity: 0;
        cursor: e-resize;
        // background: red;
    }
}

// 内容区
.ace-table-list {
    position: relative;
    min-height: 150px;
    // padding-right: $paddingright;
    top:-2px;
    table {
        margin-bottom: 0; // border:0px;
        table-layout: fixed;
    }
    .first-row {
        height: 0;
        border-top: 1px solid #E1E1E1;
        padding: 0;
        td {
            padding: 0;
            height: 0;
            border: 0;
            background: #E1E1E1;
        }
    }
    tr {
        background: #F9F9F9;
        
    }
    tr:nth-of-type(2n) {
        background: #fff;
    }
    tr:hover {
        td[rowspan]{
            background:none;
        }
        td{
            background: #Eff4f7;
        }
    }

    tr.ace-checked-row:hover {
        td {
            background-color: #dff0d8;
        }
    }

    td {
        overflow: hidden;
        span {
            white-space: nowrap;
        }
    }
    .ace-checked-row {
        td {
            background-color: #dff0d8;
            border-color: #d6e9c6;
        }
    }

    
    tr:first-child{
       visibility: hidden;

    }

    .table.table-bordered {
        border-bottom:0;
    }
}

.ace-wrap-son {
    position: relative;
}

//拖动线
.ace-move-line {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    width: 2px;
    height: 100%;
    border-radius: 2px;
    background: #777;
    opacity: 0;
    // transition: transform 3s 0 linear;
    transition-timing-function: linear;
    transition-duration: 100ms;
}

// 底部
.ace-table-footer {
    position: relative;
    height: 55px;
    padding: 10px 0;
    margin-bottom: 10px;
    // background-color: #EFF3F8;
    border-top: 1px solid #E1E1E1;
    // border-bottom: 1px solid #E1E1E1; //底部数量说明
    .ace-table-footer-text,
    .select-page-block {
        float: right;
        padding-right: $paddingright;
        padding-top: 8px;
        color: #393939;
        span {
            font-size: 12px; // display: inline-block;
            // vertical-align: middle;
        }
    }
    .select-page-block {
        padding-left: $paddingright;
        padding-top: 3px; // float: left;
    }
}

// 翻页区
.ace-button-area {
    display: inline-block;
    width: auto;
    height: auto; 
    font-size: 0;
    li {
        font-size: 13px;
        display: inline-block;
    }
    .text-area {
        position: relative;
        padding: 0 10px;
        vertical-align: middle;
        margin-right: 8px;
        input {
            font-size: inherit;
            width: 24px;
            height: 20px;
            line-height: 16px;
            box-sizing: content-box;
            text-align: center;
            padding-top: 1px;
            padding-bottom: 1px;
            margin: 0;
            border: none;
        }
        &:before {
            display: block;
            height: 100%;
            width: 1px;
            content: "";
            position: absolute;
            left: 0px;
            background: #000;
            opacity: .2;
        }
        &:after {
            display: block;
            height: 100%;
            width: 1px;
            content: "";
            position: absolute;
            top: 0;
            right: 0px;
            background: #000;
            opacity: .2;
        }
    }
    .text-area-view {
        position: relative;
        display: inline-block;
        height: auto;
        width: auto;
        input {
            z-index: 1;
            color: #000;
        }
        i {
            position: absolute;
            display: block;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            font-style: normal;
            background: #fff;
            color: #000;
            text-align: center;
            line-height: 22px;
            z-index: 5;
            cursor: pointer;
        }
    }
    .icon-btn {

        padding:6px 12px;
        text-align: center;
        border-top: 1px solid #ddd;
        border-left: 1px solid #ddd;
        border-bottom: 1px solid #ddd;
        vertical-align: middle; // border-radius: 50%;
        font-size: 11px; // margin-right: 8px;
        // transform: scale(0.95);
        background: darken(#fff, 1%);
        cursor: pointer;
        span {
            color: #2283c5; // margin-left: -2px;
            // transform: translate(1px, 2px);
        }
    }
    .icon-btn:hover {
        background: #eaeff2;
    }
    .toLeft {
        font-size: 11px;
        span {
            transform: translate(3px, 2px);
        }
    }
    .last-icon {
        border-right: 1px solid #ddd;
    }

    .incon-num-btn {
        width: auto;
        // padding: 6px 12px;
        border-color:#d9d9d9;
    }
    .incon-num-btn.active {
     
        background-color: #6faed9;
        span {
            color: #fff;
        }
    }

    .disable {
        // border: 1px solid darken(#fff, 11%);
        cursor: not-allowed;
        span {
            color: darken(#fff, 11%);
        }
    } 
}

.closeAnimate {
    overflow: hidden;
    height: 0;
    transition: all 0.5s;
}

.ace-checkbox {
    text-align: center;
    width: 50px;
}

//loadding 动画
.ace-table-loadding {
    position: absolute;
    z-index: 100;
    display: inline-block;
    width: auto;
    height: auto;
    left: 50%;
    top: 100px;
    transform: translate(-50%, 0);
    i {
        display: inline-block;
        height: 30px;
        width: 30px;
        background-size: cover;
        background-image: url(./icon/spinner.svg);
        animation: iconRotate 1s linear infinite;
    }
}

@keyframes iconRotate {
    0% {
        transform: rotate(0deg)
    }
    ;
    100% {
        transform: rotate(360deg)
    }
    ;
}

.ace-table-modal {
    position: absolute;
    display: inline-block;
    top: 150px;
    left: 50%;
    padding: 20px;
    line-height: 30px;
    font-size: 14px;
    color: #aaa;
    background: #fff;
    box-shadow: #eee 5px 5px 10px;
    text-align: center;
    transform: translate(-50%, -50%);
    i {
        color: #FCA613;
    }
}

.ace-table-opera {
    width: 200px;
    font-size: 0;
    text-align: center;
    div {
        font-size: 13px;
        display: inline-block;
        vertical-align: top;
        cursor: pointer;
        &:hover {
            span {
                color: #307ECC;
            }
            i {
                color: #307ECC;
            }
        }
    }
    .ace-table-reload {
        margin-right: 20px;
    }
    i {
        font-size: 14px;
        margin-right: 3px;
        vertical-align: middle;
    }
    span {
        display: inline-block;
        vertical-align: middle;
    }
    .ace-table-show-detail {
        i {
            font-size: 21px;
        }
    }
}

.ace-table-edit {
    width: 200px;
    font-size: 0;
    text-align: center;
    div {
        font-size: 13px;
        display: inline-block;
        vertical-align: top;
        cursor: pointer;
        &:hover {
            span {
                color: #307ECC;
            }
            i {
                color: #307ECC;
            }
        }
    }
    span {
        display: inline-block;
        vertical-align: middle;
    }
}

.ace-table-change,
{
    margin-right: 20px;
}

select:focus,input:hover{
    color: #696969;
    border-color: #6faed9;
    outline: 0;
    outline-color: #6faed9;
};

input[type=checkbox].ace:hover+.lbl::before, input[type=radio].ace:hover+.lbl::before, input[type=checkbox].ace+.lbl:hover::before, input[type=radio].ace+.lbl:hover::before {
    border-color: #6faed9;
}

