.entity-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

.entity-list__header {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem 0 1.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
    position: relative;
}

.entity-list__header-main {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.entity-list__header h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    line-height: 1.1;
}

.entity-list__header .section-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.entity-list__header .section-subtitle::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--green-subtle);
}

.entity-list__header-accent {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-end;
    text-align: right;
}

.entity-list__header .page-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 420px;
}

.header-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.header-meta__item strong {
    color: var(--text-primary);
    font-family: var(--font-data);
    font-weight: 500;
}

.header-meta__divider {
    opacity: 0.4;
}

.table-wrap {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9375rem;
}

.data-table thead th {
    padding: 1rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--border);
    background: var(--bg-subtle);
    white-space: nowrap;
    text-align: left;
}

.data-table thead th:first-child {
    border-radius: var(--radius-sm) 0 0 0;
}

.data-table thead th:last-child {
    border-radius: 0 var(--radius-sm) 0 0;
}

.data-table thead th a {
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color var(--transition-fast);
}

.data-table thead th a:hover {
    color: var(--accent);
}

.data-table thead th a svg {
    opacity: 0.4;
    transition: opacity var(--transition-fast);
}

.data-table thead th a:hover svg {
    opacity: 0.8;
}

.data-table thead th a.active-sort svg {
    opacity: 1;
    color: var(--accent);
}

.data-table tbody td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-primary);
    transition: background var(--transition-fast);
    vertical-align: middle;
}

.data-table tbody tr:hover td {
    background: var(--bg-hover);
}

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

.name-cell {
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    font-size: 0.9375rem;
}

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

.data-table .mono {
    font-family: var(--font-data);
    font-size: 0.95rem;
    color: var(--text-data);
}

.data-table .revenue {
    color: var(--green);
    font-weight: 500;
}

.data-table tbody td a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.data-table tbody td a:hover {
    color: var(--accent-dim);
    text-decoration: underline;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 1rem;
    border-top: 1px solid var(--border);
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.pagination a:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.pagination .current {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
}

.pagination .disabled {
    color: var(--text-muted);
    cursor: not-allowed;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.page-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.page-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

.data-table tbody tr:nth-child(even) td {
    background: rgba(99, 102, 241, 0.04);
}

.data-table tbody tr:nth-child(even):hover td {
    background: var(--bg-hover);
}

@media (prefers-color-scheme: dark) {
    .data-table tbody tr:nth-child(even) td {
        background: rgba(129, 140, 248, 0.04);
    }
    .data-table tbody tr:nth-child(even):hover td {
        background: var(--bg-hover);
    }
}

@media (max-width: 768px) {
    .entity-list__header {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem 0 1.25rem;
    }
    .entity-list__header-accent {
        align-items: flex-start;
        text-align: left;
    }
    .entity-list__header h1 {
        font-size: 1.5rem;
    }
    .data-table {
        font-size: 0.875rem;
    }
    .data-table thead th,
    .data-table tbody td {
        padding: 0.875rem 1rem;
    }
}
