.ct-table {
    position: relative;
    box-sizing: border-box;
    background-color: #fff;
    font-size: 12px;
    // color: #606266; 
    overflow: hidden;
    border: solid $border-color; 
    border-width: 1px;
    &.ct-table-border-bottom {
        border: 1px solid $border-color;
    }
    .ct-table__wrap{    
        &.ct-table-overflow-x {
            overflow-y: scroll;
        }
        .ct-table-thead,.ct-table-tbody {
            position: relative;
            width: 100%;
            .ct-table-row {
                    width: 100%;
                    .ct-table-col {                    
                        border-bottom:1px solid $border-color;
                        vertical-align: middle;                       
                        height: 40px; 
                        text-align: left;
                        box-sizing: border-box;
                        white-space: nowrap;
                        box-sizing: border-box;
                        overflow: visible;
                        &.ct-table-hidden {
                            opacity: 0;
                            visibility: hidden;
                        }
                        &:last-child,&.fixed-right-last {
                            border-right: none !important;
                        }
                        .ct-cell {
                            background: transparent;
                            box-sizing: border-box; 
                            text-overflow: ellipsis;
                            white-space: normal;
                            word-break: break-all;
                            font-size: inherit;
                            &:hover {
                                background: inherit;
                            }
                            
                        }
                    }
            }
        }     
        .ct-table-normal {
            // overflow-x:hidden;
            overflow: hidden;
            .ct-table-normal-thead {
                text-overflow:ellipsis;
                scrollbar-width: none;
                &::-webkit-scrollbar {
                    display: none;
                }
            }   
            .ct-table-normal-tbody {
                overflow: auto; 
                // &.ct-table-overflowY {
                //     overflow-y:auto; 
                // }
                // &.ct-table-overflowX {
                //     overflow-x:auto; 
                // }
            }
        }   
        .ct-table-fixed-left {
            position: absolute;
            top: 0;
            left: 0;
            bottom: 0;
            z-index: 100;
            box-shadow: 2px 0 6px 0 rgba(158,158,158,.8);
            overflow: hidden;
            .ct-table-right-thead { 
                background: #f8f8f8;
            }
            .ct-table-left-tbody {
                background: #fff;
                overflow:scroll;
                &::-webkit-scrollbar {
                    display: none;
                }
            }
        } 
        .ct-table-fixed-right {
            position: absolute;
            top: 0;
            right: 0;
            bottom:0;
            z-index: 100;
            box-shadow: -2px 0 6px 0 rgba(158,158,158,.8);
            overflow: hidden;
            .ct-table-right-thead {
                background: #f8f8f8;
            }
            .ct-table-right-tbody {
                background: #fff;
                overflow-y:scroll;
                overflow-x:hidden; 
                &::-webkit-scrollbar {
                    display: none;
                }
            }
        }
        .ct-table-fixed-right-bg {
            position: absolute;
            top: 0;
            right: 0;
            width: 17px;
            background: #f8f8f8;
            border-bottom: 1px solid $border-color;
            border-left: 1px solid $border-color;
        }
        .ct-table-thead {
            text-overflow: ellipsis;
            .ct-table-row {
                .ct-table-col {
                    background: #f8f8f8;
                    .ct-table-filter {
                        position: relative;
                        z-index: 100;
                        display: inline-block;
                        .ct-table-filter-header {
                            .ct-icon {
                                color: #9e9e9e;
                                margin-left: 3px;
                                &:hover {
                                    color: inherit;
                                }
                                &.is-active {
                                    color:#42a5f5;
                                }
                            }
                        }
                        .ct-table-filter-body {
                            &.is-show {
                                opacity: 1;
                                visibility: visible;
                            }
                            .ct-table-filter-arrow {
                                        // left: 50%;
                                        margin-left: calc(50% - 8px);
                                        width: 0;
                                        height: 0;
                                        // position: absolute;
                                        border-color: transparent;
                                        border-style: solid;
                                        border-width: 0 8px 8px;
                                        border-bottom-color:#e0e0e0;                            
                                        &::after {
                                            content: " ";
                                            display: block;
                                            top: 1px;
                                            left: calc(50% - 7px);
                                            position: absolute;
                                            width: 0;
                                            height: 0;
                                            border-color: transparent;
                                            border-style: solid;
                                            border-width: 0 7px 7px;
                                            border-bottom-color: #fff;
                                        }
                            }
                            .ct-table-filter-list {
                                padding: 5px 0;
                                margin: -10px;
                                // width: max-content;
                                // background: #fff;
                                // box-shadow: 0 1px 5px rgba(0,0,0,.2);
                                // border-radius: 3px;
                                .ct-table-filter-item {
                                    padding:5px 10px;
                                    font-weight: normal;
                                    &:hover {
                                        background: #f2f2f2;
                                    }
                                    &.is-active {
                                        color: $primary-bg;
                                    }
                                }
                            }
                        }
                    }
                }
            }
            &.ct-table-fixed-top {
                position: absolute;
                top: 0;
                left: 0;
                z-index: 50;
            }
        }
        .ct-table-tbody{
            .ct-table-left-body {
                position: absolute;
                top: 0;
                left: 0;
                z-index: 10;
                box-shadow: 2px -1px 6px 0 rgba(158,158,158,1);
                background: #fff;
            }
            .ct-table-right-body {
                position: absolute;
                right: 0;
                top: 0;
                z-index: 10;
                box-shadow: -2px -1px 6px 0 rgba(158,158,158,1);
                background: #fff;
            }
            .ct-table-row {
                &.ct-table-hover-row {
                    background: #e6f5ff; 
                }
            }
            &.ct-table-stripe {
                .ct-table-row:nth-child(even) {
                    background: #f8f8f8;
                }
            }
            &.ct-table-overflow-y {
                overflow-y:scroll;
            }
            &.ct-table-overflow-x {
                overflow-x:scroll;
            }
        }
        //border
        &.ct-table-border {
            .ct-table-thead,.ct-table-tbody {
                .ct-table-row {
                    .ct-table-col {
                        border-right: 1px solid $border-color;
                        &.fixed-right-last {
                            border-right: none !important;
                        }
                    }
                }
            }
        }
    }
}
  


  