/* HyperReview admin presentation and responsive navigation. */
        .admin-section,
        .report-section {
            margin-bottom: 1.5rem;
            border: 1px solid #e5e7eb;
            border-radius: 0.75rem;
            background: #ffffff;
            padding: 1.5rem;
            box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
        }

        .admin-warning,
        .alert {
            border-radius: 0.75rem;
            border: 1px solid #fde68a;
            background: #fffbeb;
            color: #92400e;
            padding: 1rem 1.25rem;
        }

        .alert-info {
            border-color: #bfdbfe;
            background: #eff6ff;
            color: #1d4ed8;
        }

        .alert-error {
            border-color: #fecaca;
            background: #fef2f2;
            color: #b91c1c;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 0.5rem;
            padding: 0.625rem 1rem;
            font-size: 0.875rem;
            font-weight: 600;
            line-height: 1.2;
            text-decoration: none;
            transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
        }

        .btn-primary {
            background: #2563eb;
            color: #ffffff;
        }

        .btn-primary:hover {
            background: #1d4ed8;
        }

        .btn-secondary {
            border: 1px solid #cbd5e1;
            background: #ffffff;
            color: #334155;
        }

        .btn-secondary:hover {
            background: #f8fafc;
        }

        .btn-danger {
            background: #dc2626;
            color: #ffffff;
        }

        .btn-danger:hover {
            background: #b91c1c;
        }

        .btn-sm {
            padding: 0.45rem 0.75rem;
            font-size: 0.75rem;
        }

        .actions,
        .form-actions,
        .setup-actions {
            margin: 1.25rem 0;
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
        }

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

        .stat-card {
            border: 1px solid #e5e7eb;
            border-radius: 0.75rem;
            background: #ffffff;
            padding: 1.25rem;
            box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
        }

        .stat-card h3 {
            margin: 0 0 0.5rem;
            color: #475569;
            font-size: 0.95rem;
            font-weight: 600;
        }

        .stat-card p {
            margin: 0;
            color: #0f172a;
            font-size: 1.875rem;
            font-weight: 700;
        }

        .data-table,
        .admin-table {
            width: 100%;
            border-collapse: collapse;
            overflow: hidden;
            border-radius: 0.75rem;
            background: #ffffff;
        }

        .data-table th,
        .data-table td,
        .admin-table th,
        .admin-table td {
            border-bottom: 1px solid #e5e7eb;
            padding: 0.85rem 1rem;
            text-align: left;
            vertical-align: top;
        }

        .data-table th,
        .admin-table th {
            background: #f8fafc;
            color: #475569;
            font-size: 0.75rem;
            font-weight: 700;
            letter-spacing: 0.04em;
            text-transform: uppercase;
        }

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

        .form-group input,
        .form-group select,
        .form-group textarea,
        .filters input,
        .filters select,
        .filters textarea {
            margin-top: 0.35rem;
            width: 100%;
            max-width: 32rem;
            border: 1px solid #cbd5e1;
            border-radius: 0.5rem;
            background: #ffffff;
            padding: 0.65rem 0.85rem;
        }

        .badge,
        .status-badge {
            display: inline-flex;
            align-items: center;
            border-radius: 9999px;
            padding: 0.2rem 0.6rem;
            font-size: 0.75rem;
            font-weight: 700;
            background: #e2e8f0;
            color: #334155;
        }

        .badge-high,
        .status-missing_tables_and_migrations,
        .status-missing_tables {
            background: #fee2e2;
            color: #991b1b;
        }

        .badge-medium,
        .status-pending_migrations,
        .status-schema_drift_untracked_migration {
            background: #fef3c7;
            color: #92400e;
        }

        .badge-low,
        .status-ready {
            background: #dcfce7;
            color: #166534;
        }

        .status-ok {
            background: #dcfce7;
            color: #166534;
        }

        .status-warning {
            background: #fef3c7;
            color: #92400e;
        }

        .status-info {
            background: #dbeafe;
            color: #1d4ed8;
        }

        .text-success {
            color: #15803d;
        }

        .text-warning {
            color: #b45309;
        }

        .text-error {
            color: #b91c1c;
        }

        .text-muted,
        .admin-note,
        .help-text {
            color: #64748b;
        }

        .path-steps {
            margin: 1rem 0;
            padding-left: 1.25rem;
        }

        main h1 {
            margin-bottom: 1rem;
            color: #0f172a;
            font-size: 1.875rem;
            font-weight: 700;
        }

        main h2 {
            margin-bottom: 0.75rem;
            color: #1e293b;
            font-size: 1.25rem;
            font-weight: 700;
        }

        main h3 {
            margin: 1rem 0 0.5rem;
            color: #334155;
            font-size: 1rem;
            font-weight: 600;
        }

        main p,
        main ul {
            margin-bottom: 1rem;
        }

.hr-admin-shell, .hr-admin-main { min-width: 0; }
.hr-admin-sidebar {
    width: 16rem;
    flex: 0 0 16rem;
    min-width: 0;
}
.hr-admin-menu-content { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.hr-admin-nav-toggle { display: none; }
.hr-admin-main { max-width: 100%; overflow-x: auto; }
.hr-admin-main :is(.overflow-hidden, .overflow-x-auto):has(> table) { overflow-x: auto; }
.hr-admin-main :is(.data-table, .admin-table) { min-width: 580px; }
.hr-admin-main :is(a, button, input, select, textarea):focus-visible,
.hr-admin-sidebar :is(a, button):focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 2px;
}
@media (max-width: 800px) {
    .hr-admin-shell { display: block; }
    .hr-admin-sidebar { width: 100%; }
    .hr-admin-sidebar-header { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
    .hr-admin-sidebar-header > div { min-width: 0; }
    .hr-admin-nav-toggle {
        display: inline-flex;
        min-height: 44px;
        align-items: center;
        border: 1px solid #718096;
        border-radius: 9px;
        padding: 8px 14px;
        color: #fff;
        background: #334155;
        font-weight: 700;
    }
    .hr-admin-sidebar.is-collapsed .hr-admin-menu-content { display: none; }
    .hr-admin-sidebar nav { max-height: 50vh; overflow-y: auto; }
    .hr-admin-main { padding: clamp(14px, 4vw, 24px); }
    .hr-admin-main :is(.data-table, .admin-table) { min-width: 540px; }
}
@media (max-width: 420px) {
    .hr-admin-main :is(.stats-cards, .grid) { min-width: 0; }
    .hr-admin-main .form-group :is(input, select, textarea) { max-width: 100%; }
}
