/* =========================================
   TABLE LISTING SYSTEM
   Layout only for toolbar components
========================================= */

.tbl-page {
    display: block;
}

.tbl-panel {
    border: 1px solid var(--app-soft-card-border, #dbe2ea);
    border-radius: var(--app-soft-card-radius, 1.25rem);
    background: var(--app-soft-card-bg, #fff);
    box-shadow: var(--app-soft-card-shadow, 0 12px 30px rgba(15, 23, 42, 0.05));
    overflow: hidden;
    transition:
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.22s ease;
}

.tbl-panel:hover {
    border-color: color-mix(in srgb, var(--bs-primary) 18%, var(--app-soft-card-border, #dbe2ea));
    box-shadow: var(--app-soft-card-shadow-hover, 0 18px 36px rgba(15, 23, 42, 0.08));
    transform: translateY(-1px);
}

.tbl-panel__head {
    padding: 1.15rem 1.15rem 1rem;
    border-bottom: 1px solid var(--app-soft-card-divider, #edf1f5);
    background: var(--app-soft-card-head-bg, linear-gradient(
        to bottom,
        rgba(15, 23, 42, 0.015),
        transparent
    ));
}

.tbl-panel__body {
    position: relative;
    padding: 0;
    background: transparent;
}

/* =========================================
   INSIGHTS
========================================= */

.tbl-insights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.tbl-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 42px;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #e4e9ef;
    background: #f8fafc;
    color: #344767;
    font-size: 0.83rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.tbl-pill__dot {
    width: 0.58rem;
    height: 0.58rem;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.95;
}

.tbl-pill__label {
    opacity: 0.9;
}

.tbl-pill__value {
    font-weight: 800;
}

.tbl-pill--primary {
    color: var(--bs-primary);
    background: color-mix(in srgb, var(--bs-primary) 7%, white);
    border-color: color-mix(in srgb, var(--bs-primary) 16%, white);
}

.tbl-pill--secondary {
    color: var(--bs-secondary);
    background: color-mix(in srgb, var(--bs-secondary) 8%, white);
    border-color: color-mix(in srgb, var(--bs-secondary) 16%, white);
}

.tbl-pill--success {
    color: #198754;
    background: color-mix(in srgb, #198754 8%, white);
    border-color: color-mix(in srgb, #198754 16%, white);
}

.tbl-pill--danger {
    color: #dc3545;
    background: color-mix(in srgb, #dc3545 8%, white);
    border-color: color-mix(in srgb, #dc3545 16%, white);
}

.tbl-pill--warning {
    color: #b45309;
    background: color-mix(in srgb, #f59e0b 10%, white);
    border-color: color-mix(in srgb, #f59e0b 18%, white);
}

/* =========================================
   TOOLBAR
   Only spacing and alignment
========================================= */

.tbl-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: stretch;
}

.tbl-toolbar__group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    flex: 1 1 auto;
    min-width: 0;
}

.tbl-toolbar__item {
    min-width: 190px;
    flex: 1 1 190px;
    display: flex;
    align-items: stretch;
}

.tbl-toolbar__item--search {
    min-width: 280px;
    flex: 1.7 1 340px;
}

.tbl-toolbar__reset {
    flex: 0 0 auto;
    margin-left: auto;
    display: flex;
    align-items: stretch;
}

/* only remove outer component spacing */
.tbl-toolbar .mui-field,
.tbl-toolbar .mds-field,
.tbl-toolbar .mps-field,
.tbl-toolbar .mut-field,
.tbl-toolbar .mun-field,
.tbl-toolbar .mcl-field,
.tbl-toolbar .mti-field,
.tbl-toolbar .mdp-field,
.tbl-toolbar .mph-field,
.tbl-toolbar .miu-field {
    margin-bottom: 0 !important;
}

/* remove bootstrap column side padding if component uses col classes */
.tbl-toolbar .col-12,
.tbl-toolbar [class*="col-md-"],
.tbl-toolbar [class*="col-lg-"],
.tbl-toolbar [class*="col-xl-"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* let wrapped components fill available width */
.tbl-toolbar__item > * {
    width: 100%;
}

.tbl-toolbar__reset .mui-btn,
.tbl-toolbar__reset .btn {
    height: 100%;
    min-height: 46px;
}

.tbl-bulkbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid #e4e9ef;
    border-radius: 1rem;
    background: #fafbfd;
}

.tbl-bulkbar__summary {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
    flex-wrap: wrap;
}

.tbl-bulkbar__count {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid #dbe2ea;
    background: #fff;
    color: #344767;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.tbl-bulkbar__text {
    color: #667085;
    font-size: 0.84rem;
    font-weight: 700;
}

.tbl-bulkbar__actions {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

/* =========================================
   TABLE WRAP
========================================= */

.tbl-wrap {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

.tbl-table {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
}

/* =========================================
   TABLE HEAD
========================================= */

.tbl-table thead th {
    padding: 1.05rem 1.15rem;
    border-bottom: 1px solid #e9eef5;
    background: #fafbfd;
    color: #667085;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    vertical-align: middle;
    white-space: nowrap;
}

.tbl-table thead th:first-child {
    padding-left: 1.35rem;
}

.tbl-table thead th:last-child {
    padding-right: 1.35rem;
}

/* =========================================
   TABLE BODY
========================================= */

.tbl-table tbody td {
    padding: 1.15rem 1.15rem;
    border-bottom: 1px solid #eef2f6;
    color: #344767;
    font-size: 0.89rem;
    font-weight: 600;
    vertical-align: middle;
    background: #fff;
    transition: background-color 0.18s ease;
}

.tbl-table tbody td:first-child {
    padding-left: 1.35rem;
}

.tbl-table tbody td:last-child {
    padding-right: 1.35rem;
}

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

.tbl-table tbody tr:hover td {
    background: #fcfdff;
}

/* =========================================
   CELL TYPOGRAPHY
========================================= */

.tbl-table__main {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.tbl-identity {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.tbl-identity--head {
    gap: 0.75rem;
}

.tbl-head-label {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.tbl-identity__selector {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tbl-row-check {
    appearance: none;
    -webkit-appearance: none;
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
    position: relative;
    border-radius: 0.38rem;
    border: 1px solid #c8d3df;
    background-color: #fff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.75),
        0 4px 10px rgba(15, 23, 42, 0.04);
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.tbl-row-check::after {
    content: "";
    position: absolute;
    left: 0.33rem;
    top: 0.11rem;
    width: 0.28rem;
    height: 0.52rem;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg) scale(0.2);
    transform-origin: center;
    opacity: 0;
    transition: transform 0.16s ease, opacity 0.16s ease;
}

.tbl-row-check:hover:not(:disabled) {
    border-color: color-mix(in srgb, var(--bs-primary) 32%, #c8d3df);
    box-shadow:
        0 0 0 4px color-mix(in srgb, var(--bs-primary) 10%, transparent),
        0 6px 14px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.tbl-row-check:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 4px color-mix(in srgb, var(--bs-primary) 14%, transparent),
        0 6px 14px rgba(15, 23, 42, 0.08);
}

.tbl-row-check:checked {
    border-color: var(--bs-primary);
    background: linear-gradient(
        135deg,
        var(--bs-primary),
        color-mix(in srgb, var(--bs-primary) 76%, #0f172a)
    );
    box-shadow:
        0 0 0 4px color-mix(in srgb, var(--bs-primary) 12%, transparent),
        0 8px 18px color-mix(in srgb, var(--bs-primary) 20%, transparent);
    animation: tbl-check-pop 0.22s ease;
}

.tbl-row-check:checked::after {
    opacity: 1;
    transform: rotate(45deg) scale(1);
}

.tbl-row-check:indeterminate {
    border-color: var(--bs-primary);
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--bs-primary) 88%, white),
        color-mix(in srgb, var(--bs-primary) 70%, #0f172a)
    );
    box-shadow:
        0 0 0 4px color-mix(in srgb, var(--bs-primary) 12%, transparent),
        0 8px 18px color-mix(in srgb, var(--bs-primary) 18%, transparent);
}

.tbl-row-check:indeterminate::after {
    left: 0.2rem;
    top: 0.42rem;
    width: 0.48rem;
    height: 0;
    border-right: 0;
    border-bottom: 2px solid #fff;
    transform: scale(1);
    opacity: 1;
}

.tbl-row-check:disabled {
    cursor: default;
    opacity: 0.42;
    background: #f4f7fa;
    border-color: #dde5ee;
    box-shadow: none;
}

@keyframes tbl-check-pop {
    0% {
        transform: scale(0.9);
    }

    60% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

.tbl-identity__avatar {
    position: relative;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid #dbe3ec;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--bs-primary) 12%, white),
        color-mix(in srgb, var(--bs-secondary) 8%, white)
    );
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.tbl-identity__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tbl-identity__avatar-fallback {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1f3b64;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tbl-identity__content {
    min-width: 0;
    flex: 1 1 auto;
}

.tbl-identity__content > * {
    min-width: 0;
}

.tbl-table__title {
    font-size: 0.98rem;
    font-weight: 800;
    color: #1f3b64;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tbl-table__sub {
    font-size: 0.79rem;
    font-weight: 700;
    color: #98a2b3;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tbl-cell-text {
    color: #2f4b75;
    font-weight: 700;
}

.tbl-cell-muted {
    color: #98a2b3;
    font-weight: 600;
}

.tbl-cell-strong {
    color: #2b4c7e;
    font-weight: 800;
    letter-spacing: 0.01em;
}

/* =========================================
   STATUS
========================================= */

.tbl-status {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    min-height: 32px;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1;
    border: 1px solid transparent;
    white-space: nowrap;
}

.tbl-status::before {
    content: "";
    width: 0.46rem;
    height: 0.46rem;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.92;
}

.tbl-status--primary {
    color: var(--bs-primary);
    background: color-mix(in srgb, var(--bs-primary) 8%, white);
    border-color: color-mix(in srgb, var(--bs-primary) 16%, white);
}

.tbl-status--secondary {
    color: var(--bs-secondary);
    background: color-mix(in srgb, var(--bs-secondary) 8%, white);
    border-color: color-mix(in srgb, var(--bs-secondary) 16%, white);
}

.tbl-status--success {
    color: #198754;
    background: color-mix(in srgb, #198754 8%, white);
    border-color: color-mix(in srgb, #198754 16%, white);
}

.tbl-status--danger {
    color: #dc3545;
    background: color-mix(in srgb, #dc3545 8%, white);
    border-color: color-mix(in srgb, #dc3545 16%, white);
}

.tbl-status--warning {
    color: #b45309;
    background: color-mix(in srgb, #f59e0b 10%, white);
    border-color: color-mix(in srgb, #f59e0b 20%, white);
}

/* =========================================
   ACTIONS
========================================= */

.tbl-col-actions {
    width: 1%;
    white-space: nowrap;
    text-align: right;
}

.tbl-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.tbl-action-btn {
    width: 40px;
    min-width: 40px;
    height: 40px;
    border-radius: 0.9rem;
    border: 1px solid #dbe3ec;
    background: #fff;
    color: #506683;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.03);
    transition: all 0.18s ease;
}

.tbl-action-btn i {
    font-size: 0.92rem;
    line-height: 1;
}

.tbl-action-btn--primary:hover {
    color: var(--bs-primary);
    border-color: color-mix(in srgb, var(--bs-primary) 20%, white);
    background: color-mix(in srgb, var(--bs-primary) 7%, white);
}

.tbl-action-btn--secondary:hover {
    color: var(--bs-secondary);
    border-color: color-mix(in srgb, var(--bs-secondary) 20%, white);
    background: color-mix(in srgb, var(--bs-secondary) 7%, white);
}

.tbl-action-btn--danger:hover {
    color: #dc3545;
    border-color: color-mix(in srgb, #dc3545 20%, white);
    background: color-mix(in srgb, #dc3545 7%, white);
}

/* =========================================
   EMPTY STATE
========================================= */

.tbl-empty {
    padding: 2.4rem 1.2rem;
    text-align: center;
    color: #7b8794;
    font-size: 0.92rem;
    font-weight: 700;
}

/* =========================================
   PAGINATION
========================================= */

.tbl-pagination-nav {
    width: 100%;
}

.tbl-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.15rem;
    padding: 1.1rem 1.25rem 1.25rem;
    border-top: 1px solid #eef2f6;
    background:
        radial-gradient(
            circle at top left,
            color-mix(in srgb, var(--bs-primary) 4%, white),
            transparent 42%
        ),
        linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    flex-wrap: wrap;
}

.tbl-pagination__summary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    min-width: 0;
}

.tbl-pagination__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--bs-primary) 12%, #e7edf5);
    background: color-mix(in srgb, var(--bs-primary) 6%, white);
    color: var(--bs-primary);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
}

.tbl-pagination__meta {
    display: flex;
    align-items: center;
    gap: 0.42rem;
    flex-wrap: wrap;
    font-size: 0.84rem;
    font-weight: 800;
    color: #51647d;
    line-height: 1.4;
}

.tbl-pagination__meta-copy {
    color: #7b8794;
    font-weight: 700;
}

.tbl-pagination__meta-strong {
    color: #1f3b64;
    font-weight: 900;
}

.tbl-pagination__controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tbl-page-list {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    padding: 0.3rem;
    border-radius: 1.15rem;
    border: 1px solid #e3eaf2;
    background: rgba(255, 255, 255, 0.88);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 10px 24px rgba(15, 23, 42, 0.04);
}

.tbl-page-btn {
    min-width: 44px;
    height: 44px;
    padding: 0 0.95rem;
    border-radius: 1rem;
    border: 1px solid #dbe2ea;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    color: #48627f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 900;
    line-height: 1;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 8px 16px rgba(15, 23, 42, 0.04);
    transition:
        color 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.tbl-page-btn:hover {
    color: var(--bs-primary);
    border-color: color-mix(in srgb, var(--bs-primary) 26%, #dbe2ea);
    background: color-mix(in srgb, var(--bs-primary) 8%, white);
    box-shadow:
        0 0 0 4px color-mix(in srgb, var(--bs-primary) 8%, transparent),
        0 12px 22px rgba(15, 23, 42, 0.07);
    transform: translateY(-1px);
}

.tbl-page-btn.is-active {
    color: #fff;
    background: linear-gradient(
        135deg,
        var(--bs-primary),
        color-mix(in srgb, var(--bs-primary) 72%, #0f172a)
    );
    border-color: var(--bs-primary);
    box-shadow:
        0 0 0 4px color-mix(in srgb, var(--bs-primary) 12%, transparent),
        0 14px 24px color-mix(in srgb, var(--bs-primary) 24%, transparent);
    pointer-events: none;
    transform: translateY(-1px);
}

.tbl-page-btn.is-disabled {
    color: #a0acba;
    background: linear-gradient(180deg, #fbfcfd 0%, #f3f6fa 100%);
    border-color: #e8edf3;
    box-shadow: none;
    pointer-events: none;
}

.tbl-page-btn--nav {
    padding: 0 1.15rem;
    min-width: auto;
}

.tbl-page-btn i {
    font-size: 0.82rem;
    line-height: 1;
}

.tbl-page-ellipsis {
    min-width: 32px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #98a2b3;
    font-size: 0.9rem;
    font-weight: 800;
}

@media (max-width: 991.98px) {
    .tbl-toolbar {
        align-items: stretch;
    }

    .tbl-toolbar__item,
    .tbl-toolbar__item--search {
        min-width: 100%;
        flex: 1 1 100%;
    }

    .tbl-toolbar__reset {
        margin-left: 0;
    }
}

@media (max-width: 767.98px) {
    .tbl-bulkbar {
        flex-direction: column;
        align-items: stretch;
    }

    .tbl-bulkbar__actions .mui-btn,
    .tbl-bulkbar__actions .btn {
        width: 100%;
    }

    .tbl-pagination {
        flex-direction: column;
        align-items: flex-start;
    }

    .tbl-pagination__summary,
    .tbl-pagination__controls {
        width: 100%;
    }

    .tbl-pagination__controls {
        justify-content: flex-start;
    }

    .tbl-page-list {
        width: 100%;
        justify-content: flex-start;
    }
}

/* =========================================
   DARK MODE
========================================= */

[data-bs-theme="dark"] .tbl-panel {
    background: var(--app-soft-card-bg, #1b2333);
    border-color: var(--app-soft-card-border, #2d3950);
    box-shadow: var(--app-soft-card-shadow, none);
}

[data-bs-theme="dark"] .tbl-panel__head {
    background: var(--app-soft-card-head-bg, #1f2940);
    border-bottom-color: var(--app-soft-card-divider, #2d3950);
}

[data-bs-theme="dark"] .tbl-panel__body {
    background: #1b2333;
}

/* Pills */
[data-bs-theme="dark"] .tbl-pill {
    background: #162036;
    border-color: #2d3950;
    color: #f8fafc;
}

[data-bs-theme="dark"] .tbl-pill--primary {
    color: var(--bs-primary);
    background: color-mix(in srgb, var(--bs-primary) 12%, #162036);
    border-color: color-mix(in srgb, var(--bs-primary) 28%, #162036);
}

[data-bs-theme="dark"] .tbl-pill--secondary {
    color: var(--bs-secondary);
    background: color-mix(in srgb, var(--bs-secondary) 12%, #162036);
    border-color: color-mix(in srgb, var(--bs-secondary) 28%, #162036);
}

[data-bs-theme="dark"] .tbl-pill--success {
    color: #22c55e;
    background: color-mix(in srgb, #22c55e 12%, #162036);
    border-color: color-mix(in srgb, #22c55e 28%, #162036);
}

[data-bs-theme="dark"] .tbl-pill--danger {
    color: #ef4444;
    background: color-mix(in srgb, #ef4444 12%, #162036);
    border-color: color-mix(in srgb, #ef4444 28%, #162036);
}

[data-bs-theme="dark"] .tbl-pill--warning {
    color: #f59e0b;
    background: color-mix(in srgb, #f59e0b 14%, #162036);
    border-color: color-mix(in srgb, #f59e0b 30%, #162036);
}

[data-bs-theme="dark"] .tbl-pill__dot {
    opacity: 1;
}

[data-bs-theme="dark"] .tbl-bulkbar {
    background: #121a2d;
    border-color: #2d3950;
}

[data-bs-theme="dark"] .tbl-bulkbar__count {
    background: #10182b;
    border-color: #2d3950;
    color: #f8fafc;
}

[data-bs-theme="dark"] .tbl-bulkbar__text {
    color: #8ea0bc;
}

/* Table head */
[data-bs-theme="dark"] .tbl-table thead th {
    background: #121a2d;
    border-bottom-color: #2d3950;
    color: #9fb0cb;
}

/* Table rows */
[data-bs-theme="dark"] .tbl-table tbody td {
    background: #1b2333;
    border-bottom-color: #2a3448;
    color: #edf2f7;
}

[data-bs-theme="dark"] .tbl-table tbody tr:hover td {
    background: #212c41;
}

/* Typography */
[data-bs-theme="dark"] .tbl-table__title {
    color: #ffffff;
}

[data-bs-theme="dark"] .tbl-table__sub,
[data-bs-theme="dark"] .tbl-empty {
    color: #8ea0bc;
}

[data-bs-theme="dark"] .tbl-cell-text {
    color: #e8eef8;
}

[data-bs-theme="dark"] .tbl-cell-muted {
    color: #8ea0bc;
}

[data-bs-theme="dark"] .tbl-cell-strong {
    color: #ffffff;
}

[data-bs-theme="dark"] .tbl-row-check {
    border-color: #324059;
    background-color: #10182b;
    box-shadow: none;
}

[data-bs-theme="dark"] .tbl-row-check:hover:not(:disabled) {
    border-color: color-mix(in srgb, var(--bs-primary) 38%, #324059);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--bs-primary) 14%, transparent);
}

[data-bs-theme="dark"] .tbl-row-check:focus-visible {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--bs-primary) 16%, transparent);
}

[data-bs-theme="dark"] .tbl-row-check:checked,
[data-bs-theme="dark"] .tbl-row-check:indeterminate {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--bs-primary) 14%, transparent);
}

[data-bs-theme="dark"] .tbl-row-check:disabled {
    background: #162036;
    border-color: #2d3950;
    opacity: 0.3;
}

[data-bs-theme="dark"] .tbl-identity__avatar {
    border-color: #2d3950;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--bs-primary) 18%, #162036),
        color-mix(in srgb, var(--bs-secondary) 12%, #162036)
    );
    box-shadow: none;
}

[data-bs-theme="dark"] .tbl-identity__avatar-fallback {
    color: #f8fafc;
}

/* Status badges */
[data-bs-theme="dark"] .tbl-status--primary {
    color: var(--bs-secondary);
    background: color-mix(in srgb, var(--bs-primary) 14%, #162036);
    border-color: color-mix(in srgb, var(--bs-primary) 30%, #162036);
}

[data-bs-theme="dark"] .tbl-status--secondary {
    color: var(--bs-secondary);
    background: color-mix(in srgb, var(--bs-secondary) 14%, #162036);
    border-color: color-mix(in srgb, var(--bs-secondary) 30%, #162036);
}

[data-bs-theme="dark"] .tbl-status--success {
    color: #22c55e;
    background: color-mix(in srgb, #22c55e 14%, #162036);
    border-color: color-mix(in srgb, #22c55e 30%, #162036);
}

[data-bs-theme="dark"] .tbl-status--danger {
    color: #ef4444;
    background: color-mix(in srgb, #ef4444 14%, #162036);
    border-color: color-mix(in srgb, #ef4444 30%, #162036);
}

[data-bs-theme="dark"] .tbl-status--warning {
    color: #f59e0b;
    background: color-mix(in srgb, #f59e0b 16%, #162036);
    border-color: color-mix(in srgb, #f59e0b 32%, #162036);
}

/* Action buttons */
[data-bs-theme="dark"] .tbl-action-btn {
    background: #10182b;
    border-color: #2d3950;
    color: #c7d2e5;
    box-shadow: none;
}

[data-bs-theme="dark"] .tbl-action-btn--primary:hover {
    color: var(--bs-primary);
    border-color: color-mix(in srgb, var(--bs-primary) 30%, #2d3950);
    background: color-mix(in srgb, var(--bs-primary) 12%, #10182b);
}

[data-bs-theme="dark"] .tbl-action-btn--secondary:hover {
    color: var(--bs-secondary);
    border-color: color-mix(in srgb, var(--bs-secondary) 30%, #2d3950);
    background: color-mix(in srgb, var(--bs-secondary) 12%, #10182b);
}

[data-bs-theme="dark"] .tbl-action-btn--danger:hover {
    color: #ef4444;
    border-color: color-mix(in srgb, #ef4444 30%, #2d3950);
    background: color-mix(in srgb, #ef4444 12%, #10182b);
}

/* Pagination */
[data-bs-theme="dark"] .tbl-pagination {
    background:
        radial-gradient(
            circle at top left,
            color-mix(in srgb, var(--bs-primary) 10%, #1b2333),
            transparent 42%
        ),
        linear-gradient(180deg, #1b2333 0%, #182131 100%);
    border-top-color: #2d3950;
}

[data-bs-theme="dark"] .tbl-pagination__eyebrow {
    background: color-mix(in srgb, var(--bs-primary) 16%, #162036);
    border-color: color-mix(in srgb, var(--bs-primary) 32%, #2d3950);
    color: #ffffff;
}

[data-bs-theme="dark"] .tbl-pagination__meta {
    color: #8ea0bc;
}

[data-bs-theme="dark"] .tbl-pagination__meta-copy {
    color: #8ea0bc;
}

[data-bs-theme="dark"] .tbl-pagination__meta-strong {
    color: #ffffff;
}

[data-bs-theme="dark"] .tbl-page-list {
    background: rgba(16, 24, 43, 0.92);
    border-color: #2d3950;
    box-shadow: none;
}

[data-bs-theme="dark"] .tbl-page-btn {
    background: linear-gradient(180deg, #10182b 0%, #0d1526 100%);
    border-color: #2d3950;
    color: #d7e0ee;
    box-shadow: none;
}

[data-bs-theme="dark"] .tbl-page-btn:hover {
    color: #ffffff;
    border-color: color-mix(in srgb, var(--bs-primary) 30%, #2d3950);
    background: color-mix(in srgb, var(--bs-primary) 12%, #10182b);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--bs-primary) 12%, transparent);
}

[data-bs-theme="dark"] .tbl-page-btn.is-active {
    color: #ffffff;
    background: linear-gradient(
        135deg,
        var(--bs-primary),
        color-mix(in srgb, var(--bs-primary) 72%, #0b1220)
    );
    border-color: var(--bs-primary);
}

[data-bs-theme="dark"] .tbl-page-btn.is-disabled {
    background: #0d1424;
    border-color: #243041;
    color: #667891;
}

[data-bs-theme="dark"] .tbl-page-ellipsis {
    color: #667891;
}

.dark-version .tbl-pill--primary {
    color: whitesmoke;
}
