.qb-pagination {
    --qb-pagination-font-size: 14px;
    --qb-pagination-bg-color: var(--qb-fill-color-blank);
    --qb-pagination-text-color: var(--qb-text-color-primary);
    --qb-pagination-border-radius: 2px;
    --qb-pagination-button-color: var(--qb-text-color-primary);
    --qb-pagination-button-width: 32px;
    --qb-pagination-button-height: 32px;
    --qb-pagination-button-disabled-color: var(--qb-text-color-placeholder);
    --qb-pagination-button-disabled-bg-color: var(--qb-fill-color-blank);
    --qb-pagination-button-bg-color: var(--qb-fill-color);
    --qb-pagination-hover-color: var(--qb-color-primary);
    --qb-pagination-font-size-small: 12px;
    --qb-pagination-button-width-small: 24px;
    --qb-pagination-button-height-small: 24px;
    --qb-pagination-button-width-large: 40px;
    --qb-pagination-button-height-large: 40px;
    --qb-pagination-item-gap: 16px;
    white-space: nowrap;
    color: var(--qb-pagination-text-color);
    font-size: var(--qb-pagination-font-size);
    font-weight: 400;
    display: flex;
    align-items: center;
}

.qb-pagination .qb-input__inner {
    text-align: center;
    -moz-appearance: textfield;
}

.qb-pagination .qb-select {
    width: 128px;
}

.qb-pagination>a {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: var(--qb-pagination-font-size);
    min-width: var(--qb-pagination-button-width);
    height: var(--qb-pagination-button-height);
    line-height: var(--qb-pagination-button-height);
    color: var(--qb-pagination-button-color);
    background: var(--qb-pagination-bg-color);
    padding: 0 4px;
    border: none;
    border-radius: var(--qb-pagination-border-radius);
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}

/* .qb-pagination button * {
    pointer-events: none;
} */

.qb-pagination>a:focus {
    outline: none;
}

.qb-pagination>a:hover {
    color: var(--qb-pagination-hover-color);
}

.qb-pagination>a.is-active {
    color: var(--qb-pagination-hover-color);
    cursor: default;
    font-weight: 700;
}

.qb-pagination>a.is-active.is-disabled {
    font-weight: 700;
    color: var(--qb-text-color-secondary);
}

.qb-pagination>a:disabled,.qb-pagination>a.is-disabled {
    color: var(--qb-pagination-button-disabled-color);
    background-color: var(--qb-pagination-button-disabled-bg-color);
    cursor: not-allowed;
}

.qb-pagination>a:focus-visible {
    outline: 1px solid var(--qb-pagination-hover-color);
    outline-offset: -1px;
}

.qb-pagination .btn-prev .qb-icon,.qb-pagination .btn-next .qb-icon {
    display: block;
    font-size: 12px;
    font-weight: 700;
    /* width: inherit; */
}

.qb-pagination .is-first {
    margin-left: 0!important;
}

.qb-pagination .is-last {
    margin-right: 0!important;
}

.qb-pagination .btn-prev {
    margin-left: var(--qb-pagination-item-gap);
}

.qb-pagination__sizes,.qb-pagination__total {
    margin-left: var(--qb-pagination-item-gap);
    font-weight: 400;
    color: var(--qb-text-color-regular);
}

.qb-pagination__total[disabled=true] {
    color: var(--qb-text-color-placeholder);
}

.qb-pagination__jump {
    display: flex;
    align-items: center;
    margin-left: var(--qb-pagination-item-gap);
    font-weight: 400;
    color: var(--qb-text-color-regular);
}

.qb-pagination__jump[disabled=true] {
    color: var(--qb-text-color-placeholder);
}

.qb-pagination__goto {
    margin-right: 8px;
}

.qb-pagination__editor {
    text-align: center;
    box-sizing: border-box;
}

.qb-pagination__editor.qb-input {
    width: 56px;
}

.qb-pagination__editor .qb-input__inner::-webkit-inner-spin-button,.qb-pagination__editor .qb-input__inner::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qb-pagination__classifier {
    margin-left: 8px;
}

.qb-pagination__rightwrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.qb-pagination.is-background .btn-prev,.qb-pagination.is-background .btn-next,.qb-pagination.is-background .qb-pager li {
    margin: 0 4px;
    background-color: var(--qb-pagination-button-bg-color);
}

.qb-pagination.is-background .btn-prev.is-active,.qb-pagination.is-background .btn-next.is-active,.qb-pagination.is-background .qb-pager li.is-active {
    background-color: var(--qb-color-primary);
    color: var(--qb-color-white);
}

.qb-pagination.is-background .btn-prev:disabled,.qb-pagination.is-background .btn-prev.is-disabled,.qb-pagination.is-background .btn-next:disabled,.qb-pagination.is-background .btn-next.is-disabled,.qb-pagination.is-background .qb-pager li:disabled,.qb-pagination.is-background .qb-pager li.is-disabled {
    color: var(--qb-text-color-placeholder);
    background-color: var(--qb-disabled-bg-color);
}

.qb-pagination.is-background .btn-prev:disabled.is-active,.qb-pagination.is-background .btn-prev.is-disabled.is-active,.qb-pagination.is-background .btn-next:disabled.is-active,.qb-pagination.is-background .btn-next.is-disabled.is-active,.qb-pagination.is-background .qb-pager li:disabled.is-active,.qb-pagination.is-background .qb-pager li.is-disabled.is-active {
    color: var(--qb-text-color-secondary);
    background-color: var(--qb-fill-color-dark);
}

.qb-pagination.is-background .btn-prev {
    margin-left: var(--qb-pagination-item-gap);
}

.qb-pagination--small .btn-prev,.qb-pagination--small .btn-next,.qb-pagination--small .qb-pager li {
    height: var(--qb-pagination-button-height-small);
    line-height: var(--qb-pagination-button-height-small);
    font-size: var(--qb-pagination-font-size-small);
    min-width: var(--qb-pagination-button-width-small);
}

.qb-pagination--small span:not([class*=suffix]),.qb-pagination--small button {
    font-size: var(--qb-pagination-font-size-small);
}

.qb-pagination--small .qb-select {
    width: 100px;
}

.qb-pagination--large .btn-prev,.qb-pagination--large .btn-next,.qb-pagination--large .qb-pager li {
    height: var(--qb-pagination-button-height-large);
    line-height: var(--qb-pagination-button-height-large);
    min-width: var(--qb-pagination-button-width-large);
}

.qb-pagination--large .qb-select .qb-input {
    width: 160px;
}

.qb-pager {
    user-select: none;
    list-style: none;
    font-size: 0;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.qb-pager li {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: var(--qb-pagination-font-size);
    min-width: var(--qb-pagination-button-width);
    height: var(--qb-pagination-button-height);
    line-height: var(--qb-pagination-button-height);
    color: var(--qb-pagination-button-color);
    background: var(--qb-pagination-bg-color);
    padding: 0 4px;
    border: none;
    border-radius: var(--qb-pagination-border-radius);
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}

/* .qb-pager li * {
    pointer-events: none;
} */

.qb-pager li:focus {
    outline: none;
}

.qb-pager li:hover {
    color: var(--qb-pagination-hover-color);
}

.qb-pager li.is-active {
    color: var(--qb-pagination-hover-color);
    cursor: default;
    font-weight: 700;
}

.qb-pager li.is-active.is-disabled {
    font-weight: 700;
    color: var(--qb-text-color-secondary);
}

.qb-pager li:disabled,.qb-pager li.is-disabled {
    color: var(--qb-pagination-button-disabled-color);
    background-color: var(--qb-pagination-button-disabled-bg-color);
    cursor: not-allowed;
}

.qb-pager li:focus-visible {
    outline: 1px solid var(--qb-pagination-hover-color);
    outline-offset: -1px;
}
