table.queue-summary th.collection-as-table:first-child,
table.catalog-summary th.collection-as-table:first-child {
    text-align: left
}

table.queue-summary a,
table.catalog-summary a,
table.collection-as-table a {
    font-weight: bold
}

table.collection-as-table th.collection-as-table,
table.queue-summary th.collection-as-table,
table.catalog-summary th.collection-as-table,
.article-headers .label {
    font-weight: 500;
    /* 500 is between regular (400) and bold (700) */
}

table.queue-summary th.collection-as-table,
table.catalog-summary th.collection-as-table {
    text-align: right
}

.chart-wrapper .query {
    clear: both;
    text-align: center;
    font-size: 1.2em;
    padding: 1em;
}

.page-jump {
    width: 250px;
}

/* Special rules for search result headings that have multiple trs.
   All trs before the last should not have a border and need less spacing. */

table.collection-as-table tr.hide-tr-borders {
    border: none;
    border-bottom-color: var(--bs-body-bg);
}

table.collection-as-table tr.hide-tr-borders th.collection-as-table {
    border-bottom-width: 0;
    padding-bottom: 0;
}

[data-bs-theme=light] {

    table.collection-as-table th.collection-as-table a,
    table.queue-summary th.collection-as-table a,
    table.catalog-summary th.collection-as-table a {
        color: #3858a3;
    }

    table.collection-as-table th.collection-as-table,
    table.queue-summary th.collection-as-table,
    table.catalog-summary th.collection-as-table,
    .article-headers .label {
        color: var(--bs-primary);
    }

    li.page-item>a.rt-page-link {
        color: var(--bs-primary);
    }

    li.page-item.active>a.page-link {
        background-color: var(--bs-primary);
        border-color: var(--bs-primary);
        color: var(--bs-pagination-active-color);
    }
}

[data-bs-theme=dark] {
    .page-link.active, .active > .page-link {
        background-color: unset;
        border-color: unset;
    }
    .page-link:focus {
        box-shadow: none;
    }
}
