/* ==========================================================
   Listing toolbar Ã¢â‚¬â€ "Show 24/48 | Ã¢â€ Â Previous 1 2 Ã¢â‚¬Â¦ 10 11 Next Ã¢â€ â€™ | Go to __"
   ========================================================== */

.x-listing-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
}

.x-listing-toolbar__count {
    color: #6b7280; /* gray-600 */
    font-size: 14px;
    /* margin: 0 0 8px; */
    width: 100%;
    text-align: right;
}

.x-listing-toolbar__controls {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    width: 100%;
    /*border: 1px solid #e5e7eb;*/
    border-radius: 10px;
    padding: 10px 16px;
    justify-content: flex-end;
}

.x-listing-toolbar__divider {
    width: 1px;
    align-self: stretch;
    background: #e5e7eb;
    display: block;
}

/* ---------- Show / Per Page ---------- */

.x-per-page fieldset {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    margin: 0;
    padding: 0;
}

.x-per-page__label {
    font-size: 14px;
    color: #374151;
}

.x-toggle-group {
    display: inline-flex;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
}

.x-toggle-group__btn {
    appearance: none;
    border: 0;
    background: #ffffff;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}

.x-toggle-group__btn + .x-toggle-group__btn {
    border-left: 1px solid #d1d5db;
}

.x-toggle-group__btn:hover {
    background: #f3f4f6;
}

.x-toggle-group__btn--active {
    background: #e58e63; /* orange */
    color: #ffffff;
}

.x-toggle-group__btn--active:hover {
    background: #e07f4f;
}

/* ---------- Pagination ---------- */

.x-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.x-pagination__prev,
.x-pagination__next {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    padding: 8px 4px;
}

.x-pagination__prev:hover,
.x-pagination__next:hover {
    color: #111827;
}

.x-pagination__prev--disabled,
.x-pagination__next--disabled {
    color: #b8bec9;
    cursor: not-allowed;
}

.x-pagination__list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.x-pagination__item {
    display: flex;
}

.x-pagination__item--ellipsis {
    align-items: flex-end;
    padding: 0 4px 4px;
    color: #9ca3af;
    font-weight: 700;
}

.x-pagination__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
    border: initial;
    background-color: initial;
}

.x-pagination__page:hover {
    background: #f3f4f6;
}

.x-pagination__page--current {
    background: #e58e63; /* orange */
    color: #ffffff;
}

.x-pagination__page--current:hover {
    background: #e07f4f;
}

/* ---------- Go to page ---------- */

.x-go-to-page {
    display: flex;
    align-items: center;
    gap: 10px;
}

.x-go-to-page__label {
    font-size: 14px;
    color: #374151;
}

.x-go-to-page__input {
    width: 56px;
    height: 36px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    color: #374151;
}

.x-go-to-page__input::placeholder {
    color: #9ca3af;
}

.x-go-to-page__input::-webkit-outer-spin-button,
.x-go-to-page__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.x-go-to-page__input[type="number"] {
    -moz-appearance: textfield;
}

/* ---------- Utility ---------- */

.u-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.bottom-pagination {
    /*position: absolute;
    bottom: 0;
    right: 0;*/
}