/* Styles for resources/views/pagination/sahalat*.blade.php - the app-wide pager.
   Self-contained: no Bootstrap utilities, so it renders identically in the
   customer, vendor and admin portals whatever else each one loads. */
:root {
    --pager-active: #0b5d4b;
    --pager-border: #e3e7ee;
    --pager-text: #374151;
    --pager-muted: #9ca3af;
}

.pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.pager--simple {
    justify-content: flex-end;
}

/* The notification pages already space the pager off the list. */
.notifications-pagination .pager {
    margin-top: 0;
}

.pager__summary {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.pager__summary strong {
    color: var(--pager-text);
    font-weight: 600;
}

/* The compact "Page X of Y" line replaces the range summary on small screens. */
.pager__summary--compact {
    display: none;
}

.pager__list {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 0 auto;
    padding: 0;
    list-style: none;
}

.pager__item {
    margin: 0;
}

.pager__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--pager-border);
    border-radius: 8px;
    background: #fff;
    color: var(--pager-text);
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

a.pager__link:hover {
    border-color: var(--pager-active);
    color: var(--pager-active);
}

a.pager__link:focus-visible {
    outline: none;
    border-color: var(--pager-active);
    box-shadow: 0 0 0 3px rgba(11, 93, 75, 0.18);
}

.pager__link.is-active {
    border-color: var(--pager-active);
    background: var(--pager-active);
    color: #fff;
    font-weight: 600;
}

.pager__item.is-disabled .pager__link {
    color: var(--pager-muted);
    background: #f9fafb;
    cursor: not-allowed;
}

.pager__item--gap .pager__link {
    border-color: transparent;
    background: transparent;
    color: var(--pager-muted);
    padding: 0 4px;
    min-width: 0;
}

.pager__icon {
    width: 14px;
    height: 14px;
    flex: none;
}

@media (max-width: 767.98px) {
    .pager {
        justify-content: center;
    }

    /* Numbers would wrap onto several rows on a phone, so trade them for the
       page-of-total line and keep only the two navigation controls. */
    .pager__item--number,
    .pager__item--gap,
    .pager__summary {
        display: none;
    }

    .pager__summary--compact {
        display: block;
        width: 100%;
        text-align: center;
        order: -1;
    }

    .pager__list {
        margin: 0 auto;
        width: 100%;
        justify-content: space-between;
    }
}
