@import "../../../../../style/reset";

& {
    @include reset;
    color: #58666e;

    .panel {
        border-radius: 2px;
        margin-bottom: 20px;
        background-color: #fff;
        border: 1px solid #dee5e7;
        box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
    }

    .panel-heading {
        border-color: #edf1f2;
        background-color: #f6f8f8;
        color: #333;
        border-radius: 2px 2px 0 0;
        padding: 0 15px;
        height: 40px;
        display: flex;
        align-items: center;
        border-bottom: 1px solid transparent;
    }

    .table-responsive {
        overflow-x: auto;
    }
}

table {
    width: 100%;
    border-collapse: collapse;
}

.table > thead > tr > th, .table > tbody > tr > td, .table > tfoot > tr > td {
    padding: 10px 15px;
    border-top: 1px solid #eaeff0;
    vertical-align: middle;
    max-width: 250px;
    word-break: break-all;
}

.table > thead > tr > th {
    padding: 10px 15px !important;
    white-space: nowrap;
}

.table > thead > tr > th {
    padding: 6px 15px;
    border-bottom: 1px solid #eaeff0;
    line-height: 1.42857143;
}

th {
    text-align: left;
}

.table-striped {
    margin: 0;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #f9f9f9;
}

.panel {
    margin: 0;
}

.search-bar {
    display: flex;
    align-items: center;
    border-top: 1px solid #eaeff0;
    padding: 15px;
    .flex {
        display: flex;
        align-items: center;
    }
}

.empty-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px;
}

.pagination-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    padding-right: 20px;
    border-top: 1px solid #eaeff0;
    height: 50px;
    box-sizing: border-box;
}

// 删除
.remove {
    height: 100%;
    width: 50px;
    color: #f05050;
    transition: all 0.2s;
    text-align: center;
    cursor: pointer;
    &:hover {
        background: #f05050;
        color: white;
    }
}

.pull-right {
    float: right;
    &.danger {
        color: #f05050;
    }
    &.success {
        color: #23ad44;
    }
}

.sort-arrow {
    margin-left: 5px;
    &:hover {

    }
}

.table-th {
    user-select: none;
    &.sortable {
        cursor: pointer;
        &:hover {
            color: #333;
        }
        .sort-can-use {
            margin-left: 5px;
            color: #ddd;
        }
    }
    .fa-sort-asc, .fa-sort-desc {
        margin-left: 5px;
    }
}
