/* Shared list table column constraints */
.list-table {
    table-layout: auto;
    /* allow natural sizing */
}

.list-table td:not(.actions-cell),
.list-table th:not(.actions-cell) {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-right: 1px solid #e5e7eb;
    /* light gray separator */
}

/* Allow actions column to expand naturally and keep buttons on one line */
.list-table td.actions-cell,
.list-table th.actions-cell {
    max-width: none;
    white-space: nowrap;
}

.list-table td.wrap-cell,
.list-table th.wrap-cell {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

/* Ensure links/buttons don't force wrap */
.list-table td:not(.actions-cell) a {
    white-space: nowrap;
}

/* Skeleton loading styles */
.skeleton-row td {
    position: relative;
}

.skeleton-block {
    display: block;
    width: 100%;
    height: 0.875rem;
    border-radius: 4px;
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 37%, #e5e7eb 63%);
    background-size: 400% 100%;
    animation: skeleton-shimmer 1.2s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}