ul.pagination li.page-item {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    position: relative;
    user-select: none;
}

ul.pagination li.page-item .page-link {
    z-index: 0;
    position: relative;
    float: left;
    padding: 6px;
    line-height: 1;
    text-decoration: none;
    border-width: 2px;
    border-style: solid;
    border-color: transparent;
    margin: 0;
    text-align: center;
    justify-content: center;
    -webkit-box-pack: center;
    align-items: center;
    display: flex;
    position: absolute;
    width: 100%;
    height: 100%;
    color: #666;
    border-radius: 20px;
    border-width: 2px;
    background: transparent;
    border-color: transparent;
}

ul.pagination li.page-item .page-link:hover, ul.pagination li.page-item .page-link:focus, ul.pagination li.page-item .page-link:active {
    color: var(--sbb-color-red);
    background: #efefef;
    border-color: #efefef;
    box-shadow: none;
}

ul.pagination li.page-item.active .page-link, ul.pagination li.page-item.active .page-link:hover, ul.pagination li.page-item.active .page-link:focus, ul.pagination li.page-item.active .page-link:active {
    color: #666;
    background: #fff;
    border-color: #666;
}

ul.pagination li.page-item.disabled .page-link {
    color: #ddd;
    cursor: default;
}

ul.pagination .page-total {
    color: #666;
    padding: 11px 6px 0 6px;
    line-height: 1;
}

ul.pagination .ms-Icon--ChevronDownEnd {
    font-size: 22px;
}

ul.pagination .mini-button-group {
    border: 2px solid #ccc;
    border-radius: 1.5rem;
    padding: 0;
    margin-right: 20px;
}

ul.pagination .mini-button-group li.page-item {
    margin: 6px;
    width: 24px;
    height: 24px;
    border-radius: 1rem;
}

ul.pagination .mini-button-group li.page-item .page-link {
    font-size: 10px;
    color: #000;
}

ul.pagination .mini-button-group li.separator {
    width: 2px;
    background: #ddd;
    margin: 4px;
}

ul.pagination .mini-button-group li.page-item.disabled {
    border: 1px dashed darkgray;
    background: #eee;
}

ul.pagination .mini-button-group li.page-item.disabled .page-link {
    color: #000;
}
