.table-borderless th {
    background-color: var(--bg-f0f2f8) !important;
    font-weight: bold !important;
    padding: 14px !important;
}

.table-borderless td {
    padding: 11.2px 12px !important;
    position: relative;
}

.table-borderless td .img-table {
    width: 40px;
    height: 40px;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    border-radius: 50%;
}

.table-borderless td,
.table-borderless th {
    font-size: 11px !important;
}

.table-borderless tbody tr:hover {
    box-shadow: 0 0 6px 0 var(--sh-ff3636);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table-dark th {
    background-color: var(--bg-243848);
}

.table,
.table thead {
    box-shadow: 0 0 5px 0 var(--sh-dddddd);
    border-radius: 5px;
}

.table .img {
    width: 50px;
    height: 50px;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    border-radius: 50%;
    -o-object-fit: cover;
    object-fit: cover;
}

.table td {
    vertical-align: middle;
}

.table td .icon-table {
    width: 25px;
}

.table-style {
    width: 100%;
    box-shadow: unset !important;
    border-radius: unset !important;
    border-collapse: unset !important;
    border: 0 !important;
    border-spacing: 0 1.1rem;
}

.table-style thead {
    box-shadow: unset !important;
    border-radius: unset !important;
}

.table-style thead tr {
    border: 0 !important;
}

.table-style thead tr th {
    border: 0 !important;
    text-align: center;
    padding: 1rem 1rem 0;
    color: var(--fg-182b7b);
    font-size: 14.66px;
    font-weight: 700;
    line-height: 21.99px;
}

.table-style tbody tr {
    border: 0 !important;
    background-color: var(--bg-ffffff);
    border-radius: 8px !important;
    box-shadow: 0 0 12px 0 var(--sh-000000-a0129);
}

.table-style tbody tr td {
    padding: 1.2rem 1rem;
    border: 0 !important;
    color: var(--fg-171725);
    font-size: 14.66px;
    font-weight: 500;
    text-align: center;
    line-height: 21.99px;
}

.table-style tbody tr td.warning {
    color: var(--fg-e39233);
}

.table-style tbody tr td.success {
    color: var(--fg-016904);
}

.table-style tbody tr td.success-light {
    color: var(--fg-00b106);
}

.table-style tbody tr td.danger {
    color: var(--fg-9c0517);
}

.table-style tbody tr td.danger-light {
    color: var(--fg-db0921);
}

.table-style tbody tr td.primary {
    color: var(--fg-182b7b);
}

.table-style tbody tr td .btn-table {
    color: var(--fg-ffffff);
    background-color: var(--bg-78d25b);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 11px;
    font-weight: 700;
    line-height: 21.99px;
    text-align: center;
}

.main-pagination {
    border-radius: 4px !important;
}

nav:has(.pagination) {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.pagination {
    justify-content: center;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, .25) transparent;
}

.pagination::-webkit-scrollbar {
    height: 4px;
}

.pagination::-webkit-scrollbar-track {
    background: transparent;
}

.pagination::-webkit-scrollbar-thumb {
    background: var(--bg-000000-a025);
    border-radius: 4px;
}

.pagination .page-item {
    flex: 0 0 auto;
}

.pagination .page-link {
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--fg-4b5563);
    border: 1.5px solid var(--bd-e5e7eb);
    border-radius: 7px !important;
    background-color: var(--bg-ffffff);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.pagination .page-link:hover {
    background-color: var(--primary-tint);
    border-color: var(--primary-tint);
    color: var(--primary-deep);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-deep);
    border-color: var(--primary-deep);
    color: var(--fg-ffffff);
    box-shadow: 0 3px 8px var(--sh-8b6508-a035);
}

.pagination .page-item.disabled .page-link {
    color: var(--fg-c7c7c7);
    background-color: var(--bg-f9fafb);
    border-color: var(--bd-f0f0f0);
}

.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    min-width: 26px;
    border: none;
    background: var(--bg-f3f4f6);
    color: var(--fg-6b7280);
    font-size: 15px;
    font-weight: 400;
    box-shadow: none;
}

.pagination .page-item:first-child .page-link:hover,
.pagination .page-item:last-child .page-link:hover {
    background: var(--primary-tint);
    color: var(--primary-deep);
}

.pagination .page-item:first-child.disabled .page-link,
.pagination .page-item:last-child.disabled .page-link {
    color: var(--fg-d0d3d8);
    background: var(--bg-f9fafb);
}

.table-responsive {
    border-radius: 14px;
    background: var(--bg-ffffff);
    box-shadow: 0 1px 2px var(--sh-0f172a-a004), 0 1px 8px var(--sh-0f172a-a006);
}

.main-table {
    width: 100%;
    border: none;
    border-collapse: separate;
    border-spacing: 0;
}

.main-table thead {
    background: var(--bg-f8fafc);
    border: none;
}

.main-table thead tr th {
    padding: 10px 14px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .2px;
    color: var(--fg-475569);
    text-align: center;
    white-space: nowrap;
    border-bottom: 1px solid var(--bd-e5e7eb);
}

.main-table tbody tr {
    transition: background-color .15s ease;
}

.main-table tbody tr:nth-child(even) {
    background-color: var(--bg-fbfcfe);
}

.main-table tbody tr:hover {
    background-color: var(--bg-f1f5f9);
}

.main-table tbody tr:not(:last-child) td {
    border-bottom: 1px solid var(--bd-f1f5f9);
}

.main-table tfoot tr {
    background: var(--primary-tint);
}

.main-table tfoot td {
    padding: 10px 14px;
    font-weight: 700;
    font-size: 13px;
    color: var(--primary-deep);
    text-align: center;
    border-top: 2px solid var(--primary);
}

.main-table tbody tr.active {
    background: var(--bg-8b6508-a007);
}

.main-table tbody tr td {
    padding: 9px 14px;
    font-weight: 500;
    font-size: 13px;
    text-align: center;
    color: var(--fg-1f2937);
}

.main-table tbody tr td .user {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.main-table tbody tr td .user img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    -o-object-fit: contain;
    object-fit: contain;
}

.main-table tbody tr td .user span {
    font-weight: 500;
    font-size: 14px;
}

.main-table tbody tr td .form-check .form-check-input {
    width: 3.2em !important;
    height: 1.5em;
}

.main-table .badge {
    font-size: 11.5px;
    font-weight: 600;
    padding: 5.5px 11px;
    border-radius: 20px;
    letter-spacing: .2px;
}

@media print {
    .table-responsive {
        width: 100% !important;
    }

    .table-info {
        width: 74%;
    }
}

.table-action-btn {
    width: 26px;
    height: 26px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none !important;
    border-radius: 7px;
    background: var(--action-view, #17C1D9) !important;
    color: var(--fg-ffffff);
    font-size: 11px;
    box-shadow: 0 2px 5px var(--sh-000000-a012);
    transition: filter .15s ease, transform .15s ease, box-shadow .15s ease;
}

.table-action-btn i {
    color: var(--fg-ffffff);
    font-size: 11px;
}

.table-action-btn:hover {
    filter: brightness(1.08);
    color: var(--fg-ffffff);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px var(--sh-000000-a018);
}

.table-action-btn:active {
    filter: brightness(.95);
    transform: translateY(0);
}

.main-table td>.d-flex:has(> .table-action-btn),
.main-table td>.d-flex:has(> form > .table-action-btn) {
    justify-content: flex-start !important;
}

.table-action-btn:hover i,
.table-action-btn:focus i,
.table-action-btn:active i,
.table-action-btn.active i {
    color: var(--fg-ffffff) !important;
}

.table-action-btn-edit {
    background: var(--action-edit, #2F6FED) !important;
}

.table-action-btn-danger {
    background: var(--action-delete, var(--danger)) !important;
    color: var(--fg-ffffff);
}

.branches-table th,
.branches-table td {
    text-align: -webkit-match-parent !important;
    text-align: match-parent !important;
}

.branches-table {
    text-align: start;
}

.branches-table th.text-center,
.branches-table td.text-center {
    text-align: center !important;
}

.tbl-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

.tbl-chip {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    background: var(--bg-f3f4f6);
    color: var(--fg-4b5563);
    font-size: 12px;
    font-weight: 600;
}

.tbl-chip-gold {
    background: var(--primary-tint);
    color: var(--primary);
}

.main-table thead tr th {
    color: var(--fg-4b5563);
    border-bottom-color: var(--line);
}

.table-responsive {
    box-shadow: none;
    border: 1px solid var(--line);
}

.main-table thead,
.main-table thead tr,
.main-table thead tr th {
    background: var(--bg-ffffff);
    box-shadow: none;
}

.main-table thead tr th {
    color: var(--fg-374151);
    font-size: 12.5px;
    border-bottom: 1px solid var(--line);
}

.main-table tbody tr:nth-child(even) {
    background-color: var(--bg-fafafb);
}

.table-action-btn-success {
    background: var(--bg-15803d) !important;
}

.table-action-btn-accent {
    background: var(--bg-b45309) !important;
}

.table-action-btn-print {
    background: var(--bg-4b5563) !important;
}

.table-action-btn-schedule {
    background: var(--bg-0d9488) !important;
}

.table-action-btn-manage {
    background: var(--bg-9a3412) !important;
}

.table-action-btn-download {
    background: var(--bg-2563eb) !important;
}

@media (max-width: 767.98px) {
    .main-table thead th {
        font-size: 11px;
        padding: 8px 10px;
        white-space: nowrap;
    }

    .main-table tbody td {
        font-size: 11px;
        padding: 8px 10px;
        white-space: nowrap;
    }
}

@media (max-width: 575.98px) {
    nav > .d-flex.d-sm-none .pagination {
        gap: 3px;
    }

    nav > .d-flex.d-sm-none .pagination .page-link {
        display: block;
        min-width: 30px;
        padding: 7px 6px;
        text-align: center;
        border-radius: 8px !important;
        font-size: 11px;
        font-weight: 600;
    }
}

.table-responsive {
    scrollbar-width: none;
}

.table-responsive::-webkit-scrollbar {
    display: none;
}

.status-cell {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-cell .badge {
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 20px;
}

.main-table .btn-holder .btn,
.main-table .btn-holder .main-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.case-thumbs {
    display: flex;
    gap: 6px;
}

.case-thumb {
    width: 56px;
    height: 42px;
    border-radius: 6px;
    border: 1px solid var(--bd-e5e7eb);
    object-fit: cover;
}

.case-thumb-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-f0f2f8);
    color: var(--bd-dddddd);
}
