//
// _table.scss
//

.table {
    th {
        font-weight: $font-weight-bold;
    }
    .table-light {
        color: $body-color;
        border-color: $table-border-color;
        background-color: var(--#{$prefix}light) !important;
    }
}

.table > :not(caption) > * > * {
    border-bottom-width: 0px;
    border-top-width: $table-border-width;
}

.table > :not(:last-child) > :last-child > * {
    border-bottom-color: $table-border-color;
}

.table-dark > :not(:last-child) > :last-child > * {
    border-bottom-color: $table-dark-border-color;
}

.table-nowrap {
    th,
    td {
        white-space: nowrap;
    }
}


@each $color, $value in $theme-colors {
    .border-#{$color} {
        &.table {
            > :not(:first-child) {
                border-color: $value !important;
            }
        }
    }
}

//Table centered
.table-centered {
    td,
    th {
        vertical-align: middle !important;
    }
}

// table card list

.table-card-list {
    border-collapse: separate;
    border-spacing: 0 12px;
    tr {
        background-color: var(--#{$prefix}custom-white);
    }
}

