@import '../../style/themes/default';

@standardTable-prefix-cls: ~'@{ant-prefix}-standardTable';

.@{standardTable-prefix-cls} {
    .ant-table-pagination {
        margin-top: 24px;
    }

    .@{standardTable-prefix-cls}-tableAlert {
        margin-bottom: 16px;
    }
}

// .j-table{
.j-table-wrap {
    position: relative;
    flex: 1;
    // max-height: 324px;
    // padding-bottom: 10px;
    overflow-y: auto;
}

.j-table-scroll {
    // position: absolute;
    // bottom: 10px;
    // left: 0;
    width: 100%;
    background: #fff;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.j-table-filter-img {
    float: right;
    cursor: pointer;
    margin-right: 8px;
}



.j-table-filter-wrap {
    float: right;
}

.j-table-filter-checkbox {
    margin-top: 8px;
    margin-bottom: 8px;
}

.jlt-table-resetbutotn {
    margin-left: 6px;
}

// .ant-table-thead > tr > th.ant-table-selection-column,
// .ant-table-tbody > tr > td.ant-table-selection-column {
//   width: auto;
// }

.ant-table-thead .ant-table-header-column {
    width: 100%;
}

.popTargetDom {
    position: absolute;
    top: 1px;
    right: 0px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    background: #faf9f9;
}

.j-table-operate-view {
    margin-top: 15px;
}

.j-table-popover {
    .ant-popover-title {
        text-align: center;
        border-top-left-radius: 4px;
        border-top-right-radius: 4px;
    }

    .ant-popover-inner-content {
        background: #ffffff;
        border-bottom-left-radius: 4px;
        border-bottom-right-radius: 4px;
    }

    .ant-popover-title {
        background: #f6f6f6;
        border-bottom: 0px solid #ffffff;
    }

    .ant-popover-inner {
        padding-top: 0px !important;
    }

    .ant-popover-arrow {
        border-color: #f6f6f6 !important;
    }

    .ant-popover-placement-topRight {}
}

.j-table-popover.ant-popover-placement-topRight {
    .ant-popover-arrow {
        border-color: #fff !important;
    }

    .j-table-scroll {
        bottom: 20px;
    }
}

.j-table-popView {
    max-height: 324px;
    display: flex;
    flex-direction: column;
}

.react-resizable {
    position: relative;
}

.react-resizable-handle {
    position: absolute;
    width: 10px;
    height: 100%;
    bottom: 0;
    right: -5px;
    cursor: col-resize;
}

.j-table-border {
    .ant-table {
        border: 1px solid #e9e9e9;
    }
}

.j-table-no-border {
    .ant-table {
        border: none;
    }

    .ant-table-body {
        background: #faf9f9 !important;
    }

    .ant-table-tbody>tr>td {
        border-bottom: none;
    }

    .ant-table-thead>tr>th {
        border-bottom: none;
    }
}

.ant-table-fixed-right {
    .ant-table-header {
        overflow: hidden !important;
    }
}

.ant-table-fixed-left,
.ant-table-fixed-right {
    .ant-table-thead {
        background: #faf9f9 ;
    }
}

.ant-table-header {
    background: #faf9f9;
}

.tr.ant-table-expanded-row,
tr.ant-table-expanded-row:hover {
    background: #faf9f9 !important;
}