/* ===== Pagination bar ===== */
.osg-pagebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 16px;
    background-color: #f8f9fb;
    border-top: 1px solid #e5e7eb;
}

.osg-pagebar-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.osg-pagebar-row-pager {
    padding-top: 6px;
    border-top: 1px solid #eef0f3;
}

.osg-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2px;
}

.osg-pagebar-summary {
    font-size: 0.8125rem;
    color: #6b7280;
    white-space: nowrap;
}

.osg-pagebar-summary strong {
    color: #1f2937;
    font-weight: 600;
}

.osg-pagebar-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-left: auto;
}

/* Page size select */
.osg-page-size {
    height: 32px;
    padding: 0 10px;
    font-size: 0.8125rem;
    color: #374151;
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    outline: none;
}

.osg-page-size:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Go-to-page input */
.osg-goto {
    display: flex;
    align-items: center;
    gap: 6px;
}

.osg-goto-label {
    font-size: 0.8125rem;
    color: #6b7280;
    white-space: nowrap;
}

.osg-goto-input {
    width: 64px;
    height: 32px;
    padding: 0 8px;
    font-size: 0.8125rem;
    color: #1f2937;
    text-align: center;
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    outline: none;
}

.osg-goto-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Chrome/Safari/Edge: hide number spinner for a cleaner look */
.osg-goto-input::-webkit-outer-spin-button,
.osg-goto-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.osg-goto-btn {
    height: 32px;
    padding: 0 12px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #374151;
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.12s ease, border-color 0.12s ease;
}

.osg-goto-btn:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

.osg-goto-btn:active {
    background-color: #e5e7eb;
}

/* Page number buttons */
.osg-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1;
    color: #374151;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.osg-page-btn:hover:not(:disabled):not(.is-active) {
    background-color: #eef2f7;
    border-color: #e5e7eb;
}

.osg-page-btn.is-active {
    color: #fff;
    background-color: #2563eb;
    border-color: #2563eb;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.35);
}

.osg-page-btn:disabled {
    color: #c7cbd1;
    cursor: not-allowed;
}

.osg-page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 32px;
    color: #9ca3af;
    font-size: 0.8125rem;
}
