.table-container {
    position: relative;
}

.table-wrapper {
    border-radius: var(--bs-border-radius);
    border: 1px solid #dee2e6;
}

    .table-wrapper thead tr:first-child {
        border-top: none;
    }

    .table-wrapper tbody tr:last-child {
        border-bottom: none;
    }

    .table-wrapper th:first-child,
    .table-wrapper td:first-child,
    .table-wrapper th.fixed-scroll {
        border-left-width: 0;
    }

    .table-wrapper th:last-child,
    .table-wrapper td:last-child,
    .table-wrapper .table-fixed-header th:nth-last-of-type(2) {
        border-right-width: 0;
    }

    .table-wrapper tr:last-child td {
        border-bottom-width: 0;
    }

    .table-wrapper .table-fixed-body td:last-child {
        border-right-width: 1px;
    }

.table-th-checkbox {
    width: 36px;
}

    .table-th-checkbox.show-text {
        width: 80px;
    }

.table-th-button {
    width: 130px;
}

.table {
    margin-bottom: 0;
    --bb-table-selected-bg: #9ec6ef;
}

    .table thead th, .table tbody td {
        border-top: none;
    }

    .table thead th {
        white-space: nowrap;
        vertical-align: top;
    }

        .table thead th.sortable:hover,
        .table thead th.filterable:hover {
            background-color: #e9ecef;
        }

            .table thead th.sortable:hover > .fa {
                color: #999;
            }

    .table thead.table-dark th.sortable:hover,
    .table thead.table-dark th.filterable:hover {
        background-color: #343a40;
    }

    .table thead th .table-cell {
        justify-content: space-between;
        position: relative;
    }

        .table thead th .table-cell .table-text {
            flex: 1;
        }

        .table thead th .table-cell > .fa {
            content: "";
            position: absolute;
            right: -8px;
            top: -8px;
            bottom: -8px;
            width: 1.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #ddd;
        }

            .table thead th .table-cell > .fa:hover {
                background-color: #ddd;
                color: #606266;
            }

        .table thead th .table-cell .fa-filter {
            cursor: pointer;
        }

            .table thead th .table-cell .fa-filter.active {
                color: #409eff;
            }

    .table thead.table-dark th .table-cell > .fa:hover {
        background-color: #6c757d;
        color: #fff;
    }

    .table thead.table-light th .table-cell > .fa {
        color: #c0c4cc;
    }

        .table thead.table-light th .table-cell > .fa:hover {
            color: #495057;
        }

    .table thead th.sortable .fa-sort-asc,
    .table thead th.sortable .fa-sort-desc {
        color: inherit;
    }

    .table thead th.sortable .table-cell .table-text,
    .table thead th.filterable .table-cell .table-text {
        padding-right: 1rem;
    }

    .table thead th.filterable .table-cell .fa-filter {
        right: -8px;
    }

    .table thead th.sortable.filterable .table-cell .fa-filter {
        right: calc(1.5rem - 8px);
    }

    .table thead th.sortable.filterable .table-cell .table-text {
        padding-right: 2.5rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .table tfoot {
        font-weight: bold;
        border-top: 2px solid #dee2e6;
    }

    .table td, .table th {
        min-width: 0;
        text-overflow: ellipsis;
    }

    .table .is-editform .table-cell {
        overflow: hidden;
    }

.table-sm thead th .table-cell > .fa {
    right: -4px;
    top: -4px;
    bottom: -4px;
}

.table-sm thead th.filterable .table-cell .fa-filter {
    right: -4px;
}

.table-sm thead th.sortable.filterable .table-cell .fa-filter {
    right: calc(1.5rem - 4px);
}

.is-clickable tbody tr,
.is-clickable .table-row {
    cursor: pointer;
}

.table-cell {
    display: flex;
    align-items: center;
    word-break: break-all;
}

    .table-cell.is-sort {
        cursor: pointer;
    }

        .table-cell.is-sort .fa-sort {
            color: #ddd;
        }

    .table-cell .btn-group .btn {
        white-space: nowrap;
    }

.table-hover tbody tr.is-detail:hover,
.table-hover tbody tr.is-editform,
.table-hover tbody tr.is-editform:hover {
    --bs-table-accent-bg: unset;
}

.table tbody tr.is-master td:first-child {
    padding-left: 0;
    padding-right: 0;
}

.table-toolbar:after {
    content: "";
    display: block;
    clear: both;
}

.table-toolbar .table-toolbar-button {
    margin-bottom: 0.5rem;
}

    .table-toolbar .table-toolbar-button .table-toolbar-search {
        border-top-left-radius: 4px;
        border-bottom-left-radius: 4px;
    }

.table-toolbar .dropdown-menu .dropdown-item span {
    margin-left: 0.5rem;
}

.table-toolbar .dropdown-item.hover,
.table-toolbar .dropdown-item:hover {
    color: #fff;
    background-color: #007bff;
}

.table-pagination.is-top {
    margin-bottom: 0.5rem;
}

.table-pagination:not(.is-top) {
    margin-top: 0.5rem;
}

.btn-gear .dropdown-menu {
    min-width: initial;
    padding: 0;
}

    .btn-gear .dropdown-menu .dropdown-item {
        padding: 6px 12px;
        display: table-cell;
        color: #504d4d;
    }

        .btn-gear .dropdown-menu .dropdown-item:not(:first-child) {
            border-left: solid 1px #aeb2b7;
        }

.table-column-right {
    margin-left: 0.3125rem;
}

.search-input-tooltip {
    font-size: 0.75rem;
}

    .search-input-tooltip kbd {
        display: inline-block;
        background: #17a2b8;
        padding: 1px 6px;
    }

.table-fixed {
    height: 100%;
}

    .table-fixed .table {
        table-layout: fixed;
    }

.table-fixed-header {
    overflow: hidden;
    border-top-left-radius: var(--bs-border-radius);
    border-top-right-radius: var(--bs-border-radius);
}

.table-fixed-body {
    overflow-x: auto !important;
    overflow-y: scroll !important;
}

.table-scroll {
    overflow: auto;
}

    .table-scroll .table tbody td .table-cell:not(.is-wrap) {
        white-space: nowrap;
    }

.table-cell.is-ellips {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

    .table-cell.is-ellips.is-resizable {
        position: absolute;
        left: 12px;
        right: 12px;
    }

.table-loading,
.table-loader,
.form-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: var(--bs-border-radius);
    padding: 2rem;
    flex: 1;
}

.table-loader,
.form-loader {
    display: none;
    opacity: 0.8;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: #f8f9fa;
    z-index: 4;
}

    .table-loader.show,
    .form-loader.show {
        display: flex;
    }

.table-modal-footer {
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
    text-align: right;
}

.table tbody tr.active:not(.is-edit),
.table-row.active {
    background-color: var(--bb-table-selected-bg);
}

.table-hover > tbody > tr.is-detail:hover,
.table-hover > tbody > tr.is-edit.active,
.table-excel > tbody > tr:hover {
    --bs-table-accent-bg: none;
}

.table-row {
    padding: 0.75rem;
}

    .table-row:not(:last-child) {
        border-bottom: 1px solid #dee2e6;
    }

    .table-row:first-child {
        border-top-left-radius: 4px;
        border-top-right-radius: 4px;
    }

    .table-row:last-child {
        border-bottom-left-radius: 4px;
        border-bottom-right-radius: 4px;
    }

    .table-row .table-cell:not(:last-child) {
        padding-bottom: 0.5rem;
    }

    .table-row .table-cell label:not(.form-checkbox) {
        font-weight: bold;
        width: 30%;
        min-width: 30%;
        margin-bottom: 0;
        color: #212529;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        margin-right: 6px;
    }

    .table-row .table-cell > span {
        display: inherit;
    }

    .table-row.table-footer {
        display: flex;
    }

        .table-row.table-footer .table-cell {
            padding-bottom: 0;
        }

            .table-row.table-footer .table-cell:first-child {
                font-weight: bold;
                width: 30%;
                margin-bottom: 0;
                color: #212529;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }

.table-fixed-column .table {
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
}

    .table-fixed-column .table .fixed,
    .table-fixed-column .table .fixed-scroll {
        background-color: #fff;
    }

    .table-fixed-column .table tr .fixed {
        position: sticky;
        z-index: 2;
    }

    .table-fixed-column .table th,
    .table-fixed-column .table td {
        border-left-width: 0;
        border-top-width: 0;
    }

    .table-fixed-column .table .table-light .fixed,
    .table-fixed-column .table .table-light .fixed-scroll,
    .table-fixed-column .table .table-dark .fixed,
    .table-fixed-column .table .table-dark .fixed-scroll {
        background-color: var(--bs-table-bg);
    }

    .table-fixed-column .table .fixed {
        border-right: 1px solid #409eff;
    }

    .table-fixed-column .table .fixed-right {
        border-right: inherit;
        border-left: 1px solid #409eff;
    }

.table-fixed-column .fixed-scroll {
    position: sticky;
    right: 0;
    background-color: var(--bs-table-bg);
}

.table .is-bar {
    padding: 0;
    justify-content: center;
}

    .table .is-bar .fa-caret-right {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        transition: background-color .3s linear, transform .3s linear;
    }

        .table .is-bar .fa-caret-right:hover {
            background-color: #ddd;
        }

.table .is-detail {
    display: none;
}

    .table .is-detail.show {
        display: table-row;
    }

.table .table-cell .table-container,
.table .table-cell .tabs,
.table .table-cell form {
    flex: 1;
}

    .table .table-cell .tabs .tabs-body {
        padding: 1rem 0 0 0;
    }

.table-resize thead th,
.table-resize tbody td {
    position: relative;
}

    .table-resize thead th .col-resizer {
        width: .25rem;
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        cursor: col-resize;
    }

.table-resize .border-resize {
    border-right: 1px solid #409eff;
}

.table .table-cell.is-tree {
    cursor: pointer;
}

.table-cell.is-incell {
    margin: -7px -6px;
}

    .table-cell.is-incell .switch {
        padding-left: 6px;
    }

    .table-cell.is-incell .select {
        width: 100%;
    }

.table-sm .table-cell.is-incell {
    margin: -.25rem;
}

    .table-sm .table-cell.is-incell .form-control {
        height: calc(1.5em + .75rem -3px);
    }

    .table-sm .table-cell.is-incell .switch {
        height: 30px;
        padding-left: 4px;
    }

.table-bordered thead tr:last-child > th {
    border-bottom-width: 2px !important;
    border-bottom-color: var(--bs-secondary);
}

.table-striped > tbody > tr.is-master:nth-of-type(odd) {
    --bs-table-accent-bg: #fff;
}

    .table-striped > tbody > tr.is-master:nth-of-type(odd).active {
        --bs-table-accent-bg: var(--bb-table-selected-bg);
    }

.table-striped > tbody > tr.is-master:nth-of-type(4n+1) {
    --bs-table-accent-bg: var(--bs-table-striped-bg);
    color: var(--bs-table-striped-color);
}

.table-wrapper .empty-text {
    padding: 1rem;
}

form .table .table-cell > .form-label {
    display: none;
}

form .table .table-cell > textarea {
    width: 100%;
}

.table-search {
    margin-bottom: .5rem;
}

    .table-search .card-header {
        padding: 0;
    }

        .table-search .card-header .table-search-title {
            padding: .5rem 1rem;
            flex: 1;
            cursor: pointer;
        }

        .table-search .card-header .table-search-buttons {
            padding: .25rem 1rem;
        }

            .table-search .card-header .table-search-buttons .btn {
                padding: .275rem .5rem;
            }

.table-search-collapse {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

    .table-search-collapse .table-search-collapse-arrow {
        cursor: pointer;
        transition: .3s transform linear;
        transform: rotate(0);
    }

    .table-search-collapse.is-open .table-search-collapse-arrow {
        transform: rotate(90deg);
    }

    .table-search-collapse .table-search-collapse-title {
        cursor: pointer;
        margin-left: .5rem;
        flex: 1;
    }

.table-search .collapsed .card-header {
    border-bottom-color: transparent;
}

.table-search .card-header .input-group,
.table-search .collapsed .input-group + .table-search-buttons {
    display: none;
}

.table-search .card-header .input-group {
    width: auto;
    padding: 2px;
}

    .table-search .card-header .input-group .table-toolbar-search,
    .table-search .card-header .input-group .btn {
        height: 34px;
    }

.table-search .collapsed .input-group {
    display: flex;
}

.table-excel-toolbar {
    display: none;
    position: absolute;
}

.table-excel.table > :not(caption):not(thead) > * > * {
    padding: 0;
}

.table-excel tbody .table-cell > .form-check {
    padding: 6px 8px;
}

.table-excel tbody .table-cell .switch {
    padding: .375rem .1875rem;
    justify-content: center;
}

.table-excel .form-control,
.table-excel .table-cell .select .form-select {
    border: none;
    border-radius: 0;
    padding: .375rem .1875rem;
}

.table-excel .table-cell .select {
    width: 100%;
}

.table-excel .table-cell > .disabled {
    background-color: var(--bs-bg-disabled);
    width: 100%;
    padding: .375rem .1875rem;
}

.table-excel .datetime-picker-input {
    padding-left: 2rem;
}

.table-excel .datetime-picker-input-icon {
    line-height: 32px;
}

.table-excel.table tbody tr.active {
    background-color: transparent;
}

.table-cell.text-center,
.table-cell.text-center .switch {
    justify-content: center;
}

    .table-cell.text-center input {
        text-align: center;
    }

.table-cell.text-end,
.table-cell.text-end .switch {
    justify-content: end;
}

    .table-cell.text-end input {
        text-align: right;
    }

.table-cell > .progress {
    flex: 1;
}

.table-cell.is-ph {
    height: 12.5px;
    background-color: #e9ecef;
    border-radius: var(--bs-border-radius);
    margin: 5px 0;
}

.table-cell .is-dbcell {
    display: flex;
    cursor: pointer;
    position: relative;
}

    .table-cell .is-dbcell:hover:before {
        content: "";
        position: absolute;
        bottom: -3px;
        height: 1px;
        width: 100%;
        background-color: var(--bs-primary);
    }
