/** 重写--整个table的样式 */
.table {
    width: 100%;
    border-spacing: 0;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 8px;
    background-color: #fdfdfd;
    border-collapse: separate;
}

/** 去除重复的边框 */
.table tr td:not(:first-child), .table tr th:not(:first-child){
    border-left: none !important;
}

/** 重写--垂直居中 */
.table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th,
    .table>thead>tr>td, .table>thead>tr>th {
    vertical-align: middle;
}

/** 表格行的高度 */
.table tr {
    height: 39px;
}

/**                                  table-bordered                                 */

/** 重写--边框的样式 */
.table-bordered {
    border-radius: 4px;
    border-collapse: collapse;
}

/** 重写--下边框宽度 */
.table.table-bordered>thead>tr>th {
    border-bottom-width: 1px !important;
    border-bottom-color: #CACACA !important;
}

.table-bordered>tbody>tr>th, .table-bordered>tfoot>tr>th,
    .table-bordered>thead>tr>th {
    border: 1px solid #CACACA;
}

.table-bordered>tbody>tr>td, .table-bordered>tfoot>tr>td,
    .table-bordered>thead>tr>td {
    border: 1px solid #CACACA;
    border-top: 0;
    border-bottom: 0;
}

.table-bordered>tbody>tr:last-child>td{
    border-bottom: 1px solid #CACACA;
}

.table-bordered tr:first-child th:first-child {
    border-top-left-radius: 4px;
}

.table-bordered tr:first-child th:last-child {
    border-top-right-radius: 4px;
}

.table-bordered tr:last-child td:first-child {
    border-bottom-left-radius: 4px;
}

.table-bordered tr:last-child td:last-child {
    border-bottom-right-radius: 4px;
}

/**                                  table-striped                                 */

/** 重写--条纹表格的th样式 */
.table-striped th {
    background-color: #FFFFFF;
}

.table-striped > tbody > tr:nth-of-type(2n+1){
    --bs-table-accent-bg: none !important;
}

/** 重写--隔行换色的背景色 */
.table-striped>tbody>tr:nth-child(odd)>td {
    background-color: #FFFFFF;
}

.table-striped>tbody>tr:nth-child(even)>td {
    background-color: #F5F5F5;
}

/**                                  table-hover                                 */

/** 重写--鼠标悬浮时的背景色 */
.table-hover tbody tr:hover>td {
    background-color: #EBEBEB;
}

/**                                  other                                        */
/** 第一列居中或前两列居中 */
.table-col-first tr td:first-child, .table-col-first tr>th:first-child,
.table-col-first-two tr td:first-child, .table-col-first-two tr th:first-child,
.table-col-first-two tr td:nth-child(2), .table-col-first-two tr th:nth-child(2) {
    text-align: center;
}

/** 文字缩进 */
.table-col-first th:not(:first-child), .table-col-first td:not(:first-child),
.table-col-first-two th:not(:first-child):not(:nth-child(2)), .table-col-first-two td:not(:first-child):not(:nth-child(2)){
    padding-left: 20px;
}

.min-w-120 th {
    min-width: 120px;
}

.table a.del{
    color: #DD3E3B;
}

.text-wrap {
    max-width: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
    word-wrap: break-word;
    white-space: nowrap !important;
}