.browser-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.browser-table {
    width: 100%;
    min-width: 56rem;
    table-layout: fixed;
}

.browser-table th:nth-child(1),
.browser-table td:nth-child(1) {
    width: 7%;
}

.browser-table th:nth-child(2),
.browser-table td:nth-child(2) { width: 4%; }
.browser-table th:nth-child(3),
.browser-table td:nth-child(3) {
    width: 6%;
    min-width: 5.5rem;
}
.browser-table th:nth-child(4),
.browser-table td:nth-child(4) { width: 24%; }
.browser-table th:nth-child(5),
.browser-table td:nth-child(5) { width: 8%; }
.browser-table th:nth-child(6),
.browser-table td:nth-child(6) { width: 8%; }
.browser-table th:nth-child(7),
.browser-table td:nth-child(7) { width: 8%; }
.browser-table th:nth-child(8),
.browser-table td:nth-child(8),
.browser-table th:nth-child(9),
.browser-table td:nth-child(9) {
    width: 6.5rem;
    min-width: 6.5rem;
    max-width: 6.5rem;
}
.browser-table th:nth-child(10),
.browser-table td:nth-child(10) {
    width: 14%;
    min-width: 5rem;
}

.browser-uniprot-cell,
.browser-protein-name-cell,
.browser-notes-cell,
.browser-references-cell,
.browser-table td:nth-child(5),
.browser-table td:nth-child(6),
.browser-table td:nth-child(7),
.browser-table td:nth-child(8),
.browser-table td:nth-child(9),
.browser-table td:nth-child(10) {
    word-break: break-word;
    overflow-wrap: anywhere;
}

.browser-notes-cell {
    white-space: pre-wrap;
}

.browser-references-cell {
    line-height: 1.35;
}

.browser-reference-item {
    display: block;
}

.browser-reference-link {
    color: var(--brand-color);
    font-weight: 500;
    text-decoration: none;
}

.browser-reference-link:hover {
    text-decoration: underline;
}

.browser-protein-name-cell,
.browser-table th:nth-child(4) {
    white-space: normal;
    padding-left: 1.25rem;
}

.browser-table th:nth-child(3),
.browser-table td:nth-child(3) {
    padding-right: 1.25rem;
}

.browser-table th:nth-child(8) .browser-th-content,
.browser-table th:nth-child(9) .browser-th-content,
.browser-table th:nth-child(10) .browser-th-content {
    flex-wrap: nowrap;
    white-space: nowrap;
}

.browser-table th:nth-child(2),
.browser-table td:nth-child(2),
.browser-table th:nth-child(3),
.browser-table td:nth-child(3) {
    text-align: center;
}

.browser-th-link {
    display: inline;
    line-height: 1.2;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.browser-table-hint {
    font-size: 0.875rem;
}

.browser-pagination-toolbar {
    justify-content: flex-end;
}

.browser-pagination-toolbar .pagination-toolbar-summary {
    margin-right: auto;
}

.browser-pagination-toolbar .pagination-toolbar-nav {
    margin-left: auto;
}

@media (max-width: 767.98px) {
    .browser-pagination-toolbar .pagination-toolbar-nav {
        align-self: flex-end;
    }
}

@media (max-width: 991.98px) {
    .browser-table {
        min-width: 50rem;
    }

    .browser-table th {
        font-size: 0.75rem;
        line-height: 1.35;
        padding: 0.5rem 0.55rem;
        vertical-align: middle;
    }

    .browser-table td {
        font-size: 0.8rem;
        padding: 0.5rem 0.55rem;
    }

    .browser-th-content {
        flex-wrap: wrap;
        align-items: center;
        gap: 0.2rem;
    }

    .browser-header-info {
        font-size: 0.65rem;
    }
}

@media (max-width: 575.98px) {
    .browser-table {
        min-width: 46rem;
    }

    .browser-table th,
    .browser-table td {
        padding-left: 0.45rem;
        padding-right: 0.45rem;
    }

    .browser-table th {
        font-size: 0.7rem;
    }

    .browser-table-hint {
        font-size: 0.8125rem;
    }
}

@media (max-width: 767.98px) {
    .kme-label {
        font-size: 0.6875rem;
        padding: 0.2rem 0.4rem;
        min-height: 1.35rem;
    }
}

.browser-table th,
.browser-table td {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.browser-table td {
    vertical-align: top;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
}

.browser-table th {
    font-size: 0.8rem;
    line-height: 1.2;
    padding: 0.5rem 0.75rem;
    vertical-align: middle;
}

.browser-th-content {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.1rem 0.15rem;
    max-width: 100%;
}

.browser-th-content .browser-th-link {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    line-height: 1.2;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.browser-header-info {
    border: none;
    background: none;
    color: #6c757d;
    font-size: 0.7rem;
    padding: 0;
    line-height: 1;
    flex: 0 0 auto;
    align-self: center;
    margin-top: 0;
    cursor: help;
}

.browser-header-info:hover,
.browser-header-info:focus {
    color: var(--brand-color);
    outline: none;
}

.browser-table td.browser-degree-cell {
    text-align: center;
    vertical-align: top;
    overflow: hidden;
}

.browser-table td.browser-degree-cell .kme-label {
    max-width: 100%;
}

.browser-uniprot-link {
    color: var(--brand-color);
    font-weight: 600;
    text-decoration: none;
}

.browser-uniprot-link:hover {
    text-decoration: underline;
}

.browser-table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.pagination .page-link {
    color: var(--brand-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--brand-color);
    border-color: var(--brand-color);
    color: #fff;
}

.pagination .page-link:hover {
    color: #1a7ba1;
}

.pagination .page-link:focus {
    box-shadow: 0 0 0 0.25rem rgba(37, 150, 190, 0.25);
}
