/* UiComponents shared styles. Self-contained (no design-system dependency yet). */

.data-table-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    overflow: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    background: #ffffff;
}

.data-table thead {
    position: sticky;
    top: 0;
    z-index: 1;
}

.data-table thead th {
    padding: 0.75rem 1rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
    user-select: none;
}

.data-table thead th[role="button"] {
    cursor: pointer;
}

.data-table thead th[role="button"]:hover {
    background: #e2e8f0;
}

.data-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.08s;
}

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

.data-table tbody tr:hover {
    background: #f8fafc;
}

.data-table td {
    padding: 0.6rem 1rem;
    color: #0f172a;
    vertical-align: middle;
}

.data-table .col-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.data-table .col-id {
    color: #64748b;
    font-size: 0.8rem;
}

.filter-bar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    overflow: visible;
}

/* Pager */
.data-table-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.data-table-pager-summary {
    flex: 1 1 auto;
    min-width: 12rem;
}

.data-table-pager-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.data-table-pager-pagesize {
    width: auto;
    min-width: 6.5rem;
}

.data-table-pager-pageinput {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.data-table-pager-pageinput input {
    width: 4.5rem;
    text-align: center;
}

/* Skeleton loading */
@keyframes uic-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-block {
    border-radius: 0.25rem;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: uic-shimmer 1.4s infinite;
}

.skeleton-table-row {
    height: 2.75rem;
    margin-bottom: 2px;
    border-radius: 0;
}

/* Empty state */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 3rem 1rem;
    color: #64748b;
    text-align: center;
}

.empty-state-icon {
    font-size: 2.5rem;
    opacity: 0.35;
    margin-bottom: 0.4rem;
}

.empty-state-title {
    font-weight: 600;
    font-size: 1rem;
    color: #0f172a;
}

.empty-state-desc {
    font-size: 0.875rem;
    max-width: 28rem;
}
