/* Table wrapper */
.table-wrapper {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    overflow: hidden;
}

/* Base table */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

th {
    padding: 0.625rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #f8fafc;
    border: none;
    border-bottom: 2px solid #e2e8f0;
}

td {
    padding: 0.625rem 0.875rem;
    color: #334155;
    border: none;
    border-top: 1px solid #f1f5f9;
}

tbody tr {
    transition: background-color 0.1s;
}

tbody tr:first-child td {
    border-top: none;
}

tbody tr:hover {
    background-color: #f8fafc;
}

/* Sortable headers */
th.sortHead,
.sortHead {
    cursor: pointer;
}

th a {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

th a:visited {
    color: inherit;
}

th a:hover {
    text-decoration: none;
    color: inherit;
}

/* Table links */
.tableLink,
.tableLink:visited,
.tableLink:hover,
.tableLink:active,
.tableLink:focus {
    color: #334155;
    text-decoration: none;
    cursor: pointer;
}

.tableLink:hover {
    color: #3b82f6;
}

/* Empty state */
.cell-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #94a3b8;
}

/* Reusable status badges */
.badge-status {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 1rem;
}

.badge-status--success {
    color: #166534;
    background: #dcfce7;
}

.badge-status--error {
    color: #991b1b;
    background: #fee2e2;
}

.badge-status--pending {
    color: #854d0e;
    background: #fef9c3;
}
