/*
 * Copyright (C) 2005 - 2023. Cloud Software Group, Inc. All Rights Reserved.
 * http://www.jaspersoft.com.
 *
 * Unless you have purchased a commercial license agreement from Jaspersoft,
 * the following license terms apply:
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */

/*  --------------------------------------
    Pagination control used in Dashboard
    --------------------------------------
    File last modified N0v 17 2022
    --------------------------------------  */

.paginationControlWrapper {
    background-color: var(--background-white);
    height: 36px;
    padding-top: 8px;
    padding-right: 8px;
    padding-left: 8px;
}

.paginationControl {
    border-collapse: collapse;
    border-spacing: 0;
    height: 28px;
    margin: 0;
    max-width: 318px;
    min-width: 200px;
    padding: 0;
    width: auto;
}

.paginationControl td {
    height: 28px;
    line-height: 0;
    text-align: center;
    vertical-align: middle;
    width: 32px;
}

.paginationControl button {
    background: none;
    border: 0;
    cursor: pointer;
    display: inline-block;
    height: 28px;
    margin: 0;
    padding: 0;
    position: relative;
    width: 28px;
    outline: 0;
}

.paginationControl button .wrap {
    background: rgba(0, 0, 0, 0) none scroll;
    border: 0;
    cursor: auto;
    display: inline;
    height: auto;
    margin: 0;
    padding: 0;
    width: auto;
}

.paginationControl button .wrap .icon {
    background-color: rgba(0, 0, 0, 0);
    background-image: url(images/button_action_icons_sprite@1x.png);
    background-repeat: no-repeat;
    background-size: 240px;
    border: 0;
    display: block;
    height: 24px;
    left: 0;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 0;
    width: 24px;
    zoom: 1;
    cursor: pointer;
}

/* 2x icons */
@media (-webkit-min-device-pixel-ratio: 2),(min-resolution: 192dpi){
    .paginationControl > tbody > tr > td > button > .wrap > .icon {
        background-image: url(images/button_action_icons_sprite@2x.png);
    }
}

/* icon positions */
.paginationControl > tbody > tr > td > button.toLeft > .wrap > .icon {
    background-position: 0 -116px;
}

.paginationControl > tbody > tr > td > button.left > .wrap > .icon {
    background-position: 0 4px;
}

.paginationControl > tbody > tr > td > button.right > .wrap > .icon {
    background-position: 2px -26px;
}

.paginationControl > tbody > tr > td > button.toRight > .wrap > .icon {
    background-position: 2px -146px;
}

.paginationControl .currentPageCell {
    line-height: 28px;
    min-width: 104px;
    max-width: 165px;
    white-space: nowrap;
    width: 52%;
}

.paginationControl .currentPageCell .wrap {
    padding: 0 5px;
}

.paginationControl .currentPageCell .current {
    cursor: auto;
    display: inline-block;
    height: 22px;
    line-height: 13px;
    margin: 0 0 -3px;
    padding: 2px 3px;
    white-space: nowrap;
    width: 50px;
}

/* States */
.paginationControl > tbody > tr > td > button:active > .wrap > .icon {
    opacity: .7;
}

.paginationControl > tbody > tr > td > button[disabled] > .wrap > .icon {
    cursor: default;
    opacity: .4;
}