/* ============================================
   lajiao 辣椒进货管理系统 - Global Styles
   ============================================ */

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    font-size: 14px;
    color: #333;
    background: #f0f2f5;
    min-height: 100vh;
    margin: 0;
}

h1 { font-size: 1.8rem; margin-bottom: 0.5rem; color: #1a1a2e; }
h2 { font-size: 1.5rem; margin-bottom: 1rem; color: #1a1a2e; }
h3 { font-size: 1.2rem; margin: 1rem 0 0.5rem; color: #333; }
h4 { font-size: 1rem; margin: 0.75rem 0 0.25rem; color: #555; }

label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.25rem;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

input:focus, select:focus, textarea:focus {
    border-color: #e94560;
    box-shadow: 0 0 0 2px rgba(233, 69, 96, 0.15);
}

a {
    color: #e94560;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===== Top Navigation ===== */
.top-nav {
    display: flex;
    align-items: center;
    background: #0f3460;
    color: #fff;
    padding: 0 1rem;
    height: 56px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 100;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-right: 0.75rem;
    line-height: 1;
    border-radius: 6px;
    transition: background 0.2s;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.top-nav .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.nav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.username-display {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

.login-btn, .logout-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: inherit;
    transition: background 0.2s;
}

.login-btn:hover, .logout-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ===== Home Page ===== */
.home-container {
    max-width: 800px;
    margin: 2rem auto;
    text-align: center;
}

.home-container h1 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.subtitle {
    color: #888;
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #e94560;
}

.stat-label {
    font-size: 0.9rem;
    color: #888;
    margin-top: 0.25rem;
}

/* ===== Content Page ===== */
.content-page {
    max-width: 1400px;
    margin: 0 auto;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.page-header h2 {
    margin-bottom: 0;
}

/* ===== Forms ===== */
.entry-form, .config-section {
    background: #fff;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.form-group {
    flex: 1;
    min-width: 140px;
}

.form-group label {
    margin-bottom: 0.2rem;
}

.price-mode-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.3rem;
}

.radio-label {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.filter-bar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-bar .form-group {
    min-width: 150px;
}

.date-stepper {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.date-stepper input {
    flex: 1;
    min-width: 0;
}

.form-check-cell {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.form-check-label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap;
}

.form-check-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

/* ===== Tables ===== */
.table-container {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    background: #fff;
}

.spec-table-container {
    max-height: 440px;
    overflow-y: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    background: #fff;
}

.data-table thead {
    background: #f7f8fa;
}

.data-table th {
    padding: 0.65rem 0.5rem;
    text-align: left;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #e8e8e8;
    white-space: nowrap;
}

.data-table th.num-center {
    text-align: center;
}

.data-table td {
    padding: 0.55rem 0.5rem;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background: #fafafa;
}

.data-table td.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-family: "SF Mono", "Cascadia Code", "Consolas", monospace;
}

.data-table td.num-center {
    text-align: center;
    font-variant-numeric: tabular-nums;
    font-family: "SF Mono", "Cascadia Code", "Consolas", monospace;
    font-size: 0.82rem;
}

.data-table td.notes {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.data-table td.label {
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

.data-table .loss-high {
    color: #e53935;
    font-weight: 600;
}

.data-table .action-cell {
    white-space: nowrap;
    display: flex;
    gap: 0.35rem;
}

.current-user-row {
    background: #fffde7 !important;
}

.current-user-row:hover {
    background: #fff9c4 !important;
}

/* ===== ROI Plan List ===== */
.plan-row-selected {
    background: #e3f2fd !important;
}
.plan-row-selected:hover {
    background: #bbdefb !important;
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 1.75rem;
    min-width: 420px;
    max-width: 90vw;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.25s ease;
}

.modal-content.modal-wide {
    min-width: 600px;
    max-width: 95vw;
}

.modal-content.modal-confirm {
    min-width: 380px;
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 1.25rem;
    font-size: 1.15rem;
}

.modal-drag-handle {
    cursor: move;
    -webkit-user-select: none;
    user-select: none;
    margin: -1.75rem -1.75rem 1.25rem -1.75rem;
    padding: 1.75rem;
    border-bottom: 1px solid #eee;
    border-radius: 12px 12px 0 0;
    background: #f9f9fb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-drag-handle h3 {
    margin: 0;
    font-size: 1.15rem;
    pointer-events: none;
}

.modal-close-btn {
    flex-shrink: 0;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #999;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
}
.modal-close-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-content p {
    margin-bottom: 1rem;
    color: #666;
}

.modal-content .warn {
    color: #e53935;
    font-weight: 500;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.modal-actions button {
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    border: 1px solid #d9d9d9;
    background: #fff;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.2s;
}

.modal-actions button:not(.btn-danger):last-child {
    background: #e94560;
    color: #fff;
    border-color: #e94560;
}

.modal-actions button:not(.btn-danger):last-child:hover {
    background: #d63852;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ===== Right Panel (Login Panel) ===== */
.right-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 900;
    display: flex;
    justify-content: flex-end;
    animation: fadeIn 0.2s ease;
}

.right-panel {
    background: #fff;
    width: 360px;
    max-width: 90vw;
    height: 100vh;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    animation: slideLeft 0.3s ease;
    padding: 0;
}

@keyframes slideLeft {
    from { transform: translateX(40px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

.panel-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #999;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    line-height: 1;
}

.close-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.login-form {
    padding: 1.5rem;
}

.login-form .form-group {
    margin-bottom: 1rem;
}

.user-info {
    padding: 1.5rem;
    text-align: center;
}

.user-info p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.captcha-group {
    margin-bottom: 0.5rem;
}

.captcha-row {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.captcha-row input {
    flex: 1;
    min-width: 80px;
}

.captcha-img {
    height: 36px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    cursor: pointer;
    background: #fafafa;
}

.captcha-img:hover {
    border-color: #e94560;
}

/* ===== Buttons ===== */
.btn-primary {
    background: #e94560;
    color: #fff;
    border: none;
    padding: 0.55rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: inherit;
    font-weight: 500;
    transition: background 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
}

.btn-primary:hover {
    background: #d63852;
    box-shadow: 0 2px 8px rgba(233, 69, 96, 0.35);
}

.btn-secondary {
    background: #fff;
    color: #333;
    border: 1px solid #d9d9d9;
    padding: 0.55rem 1.25rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.2s;
}

.btn-secondary:hover {
    border-color: #e94560;
    color: #e94560;
}

.btn-login {
    width: 100%;
    background: #e94560;
    color: #fff;
    border: none;
    padding: 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 500;
    margin-top: 0.5rem;
    transition: background 0.2s;
}

.btn-login:hover {
    background: #d63852;
}

.btn-logout {
    background: #fff;
    color: #e94560;
    border: 1px solid #e94560;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: inherit;
}

.btn-logout:hover {
    background: #fff0f3;
}

.btn-change-password {
    background: #fff;
    color: #555;
    border: 1px solid #d9d9d9;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: inherit;
    margin: 0 0.5rem;
}

.btn-change-password:hover {
    border-color: #999;
    color: #333;
}

.btn-save {
    background: #e94560;
    color: #fff;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: inherit;
}

.btn-save:hover {
    background: #d63852;
}

.btn-add {
    background: #e94560;
    color: #fff;
    border: none;
    padding: 0.45rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: inherit;
}

.btn-add:hover {
    background: #d63852;
}

.btn-delete {
    background: #fff;
    color: #e53935;
    border: 1px solid #e53935;
    padding: 0.35rem 0.75rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: inherit;
}

.btn-delete:hover {
    background: #fff0f0;
}

.btn-danger {
    background: #e53935 !important;
    color: #fff !important;
    border-color: #e53935 !important;
}

.btn-danger:hover {
    background: #c62828 !important;
}

.btn-edit-sm {
    background: #e8f4fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.78rem;
    font-family: inherit;
    transition: all 0.15s;
}

.btn-edit-sm:hover {
    background: #bbdefb;
}

.btn-delete-sm {
    background: #fce4ec;
    color: #c62828;
    border: 1px solid #f8bbd0;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.78rem;
    font-family: inherit;
    transition: all 0.15s;
}

.btn-delete-sm:hover {
    background: #f8bbd0;
}

.btn-delete-sm:disabled, .btn-delete-sm[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-copy-sm {
    background: #e8eaf6;
    color: #3949ab;
    border: 1px solid #c5cae9;
    padding: 0.2rem 0.45rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.7rem;
    font-family: inherit;
    transition: all 0.15s;
}
.btn-copy-sm:hover {
    background: #c5cae9;
}

/* ===== Messages & Toast ===== */
.message {
    padding: 0.6rem 1rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.login-toast {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.3s ease;
    font-size: 0.9rem;
}

.toast-icon {
    font-size: 1.1rem;
}

@keyframes slideDown {
    from { transform: translateX(-50%) translateY(-20px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* ===== Role & Status Badges ===== */
.role-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 500;
}

.role-superadmin {
    background: #fce4ec;
    color: #c62828;
}

.role-admin {
    background: #e3f2fd;
    color: #1565c0;
}

.role-custom {
    background: #f3e5f5;
    color: #7b1fa2;
}

.status-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 500;
}

.status-active {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-disabled {
    background: #f5f5f5;
    color: #999;
}

/* ===== Permissions Section (in modals) ===== */
.perm-section {
    margin-top: 1rem;
    padding: 1rem;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

.perm-section h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: #333;
}

.perm-section-privilege {
    background: #fff8e1;
    border-color: #ffe082;
}

.perm-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.perm-row:last-child {
    border-bottom: none;
}

.perm-row-privilege {
    padding: 0.4rem 0.5rem;
    border-radius: 4px;
}

.perm-menu-label {
    font-weight: 600;
    font-size: 0.85rem;
    min-width: 80px;
    color: #333;
}

.perm-tags {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.perm-check-label {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.78rem;
    color: #666;
    cursor: pointer;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    -webkit-user-select: none;
    user-select: none;
}

.perm-check-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.perm-check-label.perm-view-fixed {
    color: #999;
    cursor: default;
}

.perm-check-label.perm-view-fixed input[type="checkbox"] {
    cursor: default;
}

.perm-hint {
    color: #999;
    font-size: 0.82rem;
    margin: 0.5rem 0;
}

.privilege-tag {
    display: inline-block;
    background: #e94560;
    color: #fff;
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    vertical-align: middle;
}

.menu-check-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.15rem 0;
}

.menu-check-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.menu-name {
    font-weight: 500;
}

.menu-check-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    cursor: pointer;
    font-size: 0.9rem;
    border-bottom: 1px solid #f5f5f5;
}

.menu-check-item:last-child {
    border-bottom: none;
}

.menu-check-item input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

/* ===== Config Section ===== */
.config-section h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.required {
    color: #e53935;
    font-weight: 600;
}

.role-menu-section {
    margin-top: 1rem;
    padding: 1rem;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

.role-menu-section h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

/* ===== Calculation Results ===== */
.calc-results {
    background: #fff;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.calc-results h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.calc-results .data-table td {
    padding: 0.45rem 0.5rem;
}

.calc-results .warn {
    color: #e53935;
    font-weight: 600;
}

/* ===== Actions bar ===== */
.actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ===== Error UI (Blazor default) ===== */
#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff3cd;
    color: #856404;
    padding: 0.75rem 1.5rem;
    z-index: 2000;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
}

#blazor-error-ui .reload {
    color: #0d6efd;
    margin-left: 1rem;
    cursor: pointer;
    text-decoration: underline;
}

#blazor-error-ui .dismiss {
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    cursor: pointer;
    font-size: 1.2rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .form-group {
        min-width: 100%;
    }

    .modal-content {
        min-width: auto;
        width: 95vw;
        padding: 1.25rem;
    }

    .modal-content.modal-wide {
        min-width: auto;
        width: 95vw;
    }

    .right-panel {
        width: 100vw;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .top-nav .logo span:last-child {
        display: none;
    }

    .data-table {
        font-size: 0.78rem;
    }

    .data-table th, .data-table td {
        padding: 0.4rem 0.35rem;
    }
}

/* ===== Pagination ===== */
.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    gap: 1rem;
    flex-wrap: wrap;
}

.pagination-info {
    font-size: 0.875rem;
    color: #666;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.pagination-left {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    color: #555;
    white-space: nowrap;
    flex-shrink: 0;
}

.pagination-left select {
    width: auto;
    flex: none;
    padding: 0.25rem 0.5rem;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 0.875rem;
    background: #fff;
    cursor: pointer;
}

.pagination-right {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 0.5rem;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    -webkit-user-select: none;
    user-select: none;
}

.pagination-btn:hover:not(:disabled) {
    background: #e8f4fd;
    border-color: #4a90d9;
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-btn.active {
    background: #4a90d9;
    color: #fff;
    border-color: #4a90d9;
}
