﻿/* v---- Order and Invoice Serach*/
.hidden-invoice, .hidden-field, .hidden-order, .hidden-products {
    display: none !important;
}

#pageNumbers {
    margin-top: -12px;
}

.controls-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.pagination-container {
    text-align: left;
}

.pagination {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
}

    .pagination button {
        padding: 8px 12px;
        border: 1px solid #ccc;
        background-color: #fff;
        cursor: pointer;
        border-radius: 4px;
        display: flex;
        align-items: center;
        height: 34px;
        box-sizing: border-box;
    }

        .pagination button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

    .pagination a {
        padding: 8px 12px;
        border: 1px solid #ccc;
        text-decoration: none;
        color: #333;
        border-radius: 4px;
        margin: 0 5px;
        display: flex;
        align-items: center;
        height: 34px;
        box-sizing: border-box;
    }

        .pagination a.active {
            background-color: #BB1018;
            color: white;
            border-color: #BB1018;
            font-size: 1.2em;
        }

        .pagination a:hover:not(.active) {
            background-color: #f0f0f0;
        }

    .pagination span {
        padding: 8px;
        display: flex;
        align-items: center;
    }

.rows-per-page {
    text-align: right;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rows-per-page-label {
    margin: 0;
    white-space: nowrap;
    line-height: 34px; /* Match the height of the buttons and select for vertical centering */
    vertical-align: middle; /* Explicit vertical alignment */
    padding-bottom: 1em;
}

#rowsPerPage {
    height: 34px; /* Ensure consistent height with buttons */
    padding: 6px; /* Adjust padding to maintain visual balance */
    box-sizing: border-box; /* Include padding in height calculation */
}

.total-orders-container {
    margin: 20px 0;
    text-align: center;
}

.total-orders {
    font-size: 1em;
    color: #666;
}

.reset-button {
    margin: 10px 0;
    padding: 8px 16px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
}

/* Mobile view adjustments */
@media (max-width: 768px) {
    .controls-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .pagination-container {
        text-align: center;
    }

    .pagination {
        justify-content: center;
    }

    .rows-per-page {
        text-align: center;
        justify-content: center;
    }
}
/*^---- Order and Invoice Serach*/
