table.problist {
    width: 100%;
    border: var(--border);
    border-spacing: 0;
    border-collapse: separate;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow);
}

table.problist tr {
    height: 38px;
    transition: all .25s ease;
}

table.problist tr:nth-child(even),
table.problist tr:nth-child(even) td {
    background: var(--surface-strong);
}

table.problist tr:nth-child(odd),
table.problist tr:nth-child(odd) td {
    background: var(--surface);
}

table.problist tr:not(.probhead):hover {
    background: var(--surface-soft);
    cursor: pointer;
}

table.problist th {
    position: sticky;
    top: 0;
    z-index: 3;
    text-align: left;
    background: var(--surface-soft);
    color: var(--text);
    font-weight: 500;
    padding: 10px 12px;
    white-space: nowrap;
    font-family: var(--sans-font);
}

table.problist td,
table.problist th {
    border: none;
    padding: 8px;
}

table.problist th.probno {
    position: sticky;
    left: 0;
    z-index: 8;
    min-width: 80px;
}

table.problist th.probtitle,
table.problist th.tags {
    min-width: 180px;
}

table.problist td.probno {
    position: sticky;
    left: 0;
    z-index: 5;
    font-family: var(--mono-font);
    word-break: break-all;
}

table.problist td.source div,
table.problist td.soluser div {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

table.problist td.source div img,
table.problist td.soluser div img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 6px;
    object-fit: cover;
}

table.problist td.source div i,
table.problist td.soluser div i {
    font-size: 18px;
    color: var(--primary);
    margin-right: 4px;
}

.problist-container {
    padding: 0 !important;
    height: 100% !important;
    border: none !important;
}

div.problist-wrap {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: auto;
}

div.problist-wrap table.problist {
    margin: 0;
    overflow: auto;
}

div.problist-wrap table.problist tr.filler td {
    pointer-events: none;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 16px 0;
    flex-wrap: wrap;
}

.pagination .page-link {
    padding: 4px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-color);
}

.pagination .page-link:hover {
    background: var(--hover-bg);
}

.pagination .page-current {
    padding: 4px 10px;
    border-radius: 4px;
    background: var(--accent-color);
    color: #fff;
}

.pagination .page-ellipsis {
    padding: 4px 2px;
    color: var(--text-muted);
}

.pagination .page-info {
    margin-left: 12px;
    color: var(--text-muted);
    font-size: 0.9em;
}