/* "Carica altri" under the customer lists (App_Code/CustomerListPages.cs, 24/11/2026).
   The button keeps the portal's button style (.btn.portal-nav-button, Assets/Css/public-buttons.css). */
.customer-list-more {
    clear: both;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    max-width: 100%;
    margin: 8px auto 24px;
    padding: 0 16px;
    text-align: center;
}

.customer-list-more-count {
    margin: 0;
    color: #4a5a68;
    font-family: var(--portal-font-family);
    font-size: 15px;
    line-height: 1.5;
}

.customer-list-more .btn.portal-nav-button.customer-list-more-button {
    min-width: 220px;
}

.customer-list-more .customer-list-more-button[aria-busy="true"] {
    opacity: .75;
    cursor: progress;
}

.customer-list-more-invite {
    max-width: 640px;
    margin: 0;
    color: #1f2d3a;
    font-family: var(--portal-font-family);
    font-size: 16px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.customer-list-more-invite a {
    font-weight: 600;
    text-decoration: underline;
}

/* Compact screens append the next group. A wide screen uses numbers from the third page onward. */
.customer-list-more .yi-list-position { margin: 0; color: #364e61; }
.customer-list-more .yi-list-previous { padding: 10px 12px; text-decoration: underline; }
.yi-fixed-count { clear: both; padding: 10px 12px; text-align: center; }
#page .customer-list-more[data-list-mode="numbers"] > .customer-list-more-button,
#page .customer-list-more[data-list-mode="numbers"] > .yi-list-previous { display: none; }
@media (max-width: 991px), (max-width: 1024px) and (max-height: 500px) {
    #page .customer-list-more[data-list-mode="numbers"] > .yi-list-pages.pagination { display: none; }
    #page .customer-list-more[data-list-mode="numbers"] > .customer-list-more-button,
    #page .customer-list-more[data-list-mode="numbers"] > .yi-list-previous { display: inline-flex; }
}

/* Phones (360 px and narrower): the button takes the whole width of the column. */
@media (max-width: 479px) {
    .customer-list-more {
        padding: 0 8px;
    }

    .customer-list-more .btn.portal-nav-button.customer-list-more-button {
        width: 100%;
        min-width: 0;
    }
}
