/* public/assets/css/app.css - стиль iOS "стекло" (glassmorphism):
   полупрозрачные поверхности с backdrop-filter, мягкие многослойные тени,
   крупные скругления, градиентный фон. */

:root {
    --accent: #4F46E5;
    --accent-hover: #4338CA;
    --accent-soft: #EEF2FF;
    --success: #059669;
    --success-soft: #ECFDF5;
    --danger: #DC2626;
    --danger-soft: #FEF2F2;
    --warning: #D97706;
    --warning-soft: #FFFBEB;
    --info: #0891B2;
    --info-soft: #ECFEFF;

    --slate-900: #0F172A;
    --slate-700: #334155;
    --slate-500: #64748B;
    --slate-400: #94A3B8;
    --slate-200: #E2E8F0;
    --slate-100: #F1F5F9;
    --slate-50: #F8FAFC;

    /* Стеклянные поверхности - полупрозрачные, с blur позади */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-bg-strong: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px rgba(31, 41, 55, 0.08), 0 1px 2px rgba(31, 41, 55, 0.04);
    --glass-shadow-hover: 0 16px 40px rgba(79, 70, 229, 0.14), 0 2px 8px rgba(31, 41, 55, 0.06);

    --surface: rgba(255, 255, 255, 0.7);
    --border: rgba(226, 232, 240, 0.8);
    --radius-lg: 20px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

* { box-sizing: border-box; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--slate-900);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% 0%, rgba(129, 140, 248, 0.35) 0%, transparent 45%),
        radial-gradient(circle at 90% 0%, rgba(56, 189, 248, 0.30) 0%, transparent 45%),
        radial-gradient(circle at 50% 100%, rgba(196, 181, 253, 0.30) 0%, transparent 55%),
        linear-gradient(160deg, #EEF2FF 0%, #E0E7FF 35%, #DBEAFE 70%, #EDE9FE 100%);
    background-attachment: fixed;
}

a { color: var(--accent); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--accent-hover); }

h1 { font-size: 1.55rem; font-weight: 700; margin: 0 0 1.1rem; letter-spacing: -0.02em; color: var(--slate-900); }
h2 { font-size: 1.1rem; font-weight: 650; margin: 1.5rem 0 0.75rem; color: var(--slate-900); }
h3 { font-size: 0.95rem; font-weight: 600; margin: 1rem 0 0.5rem; color: var(--slate-700); }

svg.icon { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; vertical-align: middle; }

/* ===== Навигационная панель - стеклянная, с сильным blur ===== */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--glass-bg-strong);
    backdrop-filter: saturate(190%) blur(24px);
    -webkit-backdrop-filter: saturate(190%) blur(24px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 4px 24px rgba(31,41,55,0.06);
    padding: 0.85rem 1.75rem;
    flex-wrap: wrap;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}
.topbar-brand { font-weight: 700; font-size: 1.05rem; color: var(--slate-900); letter-spacing: -0.01em; }
.topbar-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.topbar-nav a { color: var(--slate-500); font-size: 0.86rem; font-weight: 500; position: relative; }
.topbar-nav a:hover { color: var(--slate-900); }
.topbar-nav a::after {
    content: ''; position: absolute; left: 0; bottom: -4px;
    width: 0; height: 2px; background: var(--accent); border-radius: 2px;
    transition: width 0.2s ease;
}
.topbar-nav a:hover::after { width: 100%; }
.topbar-user { display: flex; align-items: center; gap: 1.1rem; font-size: 0.84rem; }
.user-role { color: var(--slate-500); font-weight: 500; }

.active-center-badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: rgba(79, 70, 229, 0.12);
    backdrop-filter: blur(8px);
    color: var(--accent);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem; font-weight: 600;
    border: 1px solid rgba(79, 70, 229, 0.15);
}

.notif-icon { position: relative; display: inline-flex; color: var(--slate-500); transition: color 0.15s ease, transform 0.15s ease; }
.notif-icon:hover { color: var(--slate-900); transform: scale(1.08); }
.notif-badge {
    position: absolute; top: -5px; right: -7px;
    background: var(--danger); color: #fff;
    border-radius: 999px; font-size: 0.62rem; font-weight: 700;
    padding: 1px 5px; min-width: 15px; text-align: center;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.9);
    animation: fadeIn 0.3s ease;
}

.btn-link { background: none; border: none; color: var(--accent); cursor: pointer; font-size: 0.85rem; padding: 0; font-weight: 500; font-family: inherit; transition: color 0.15s ease; }
.btn-link:hover { color: var(--accent-hover); }
.btn-link-danger { color: var(--danger); }
.btn-link-danger:hover { color: #B91C1C; }

/* ===== Контент ===== */
.content { max-width: 1180px; margin: 1.75rem auto; padding: 0 1.5rem; animation: fadeInUp 0.4s ease; }
.footer { text-align: center; color: var(--slate-500); font-size: 0.78rem; padding: 2rem 1rem 1rem; }

/* ===== Алерты - стеклянные капсулы ===== */
.alert {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-size: 0.88rem; font-weight: 500;
    backdrop-filter: blur(12px);
    border: 1px solid transparent;
    animation: fadeInUp 0.3s ease;
}
.alert-success { background: rgba(52, 199, 89, 0.14); color: #065F46; border-color: rgba(52,199,89,0.25); }
.alert-danger { background: rgba(220, 38, 38, 0.12); color: #991B1B; border-color: rgba(220,38,38,0.22); }
.alert-warning { background: rgba(217, 119, 6, 0.12); color: #92400E; border-color: rgba(217,119,6,0.22); }
.alert-info { background: rgba(8, 145, 178, 0.12); color: #155E75; border-color: rgba(8,145,178,0.22); }
.alert-secondary { background: rgba(100, 116, 139, 0.1); color: var(--slate-700); border-color: rgba(100,116,139,0.2); }

/* ===== Кнопки ===== */
.btn {
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.62rem 1.2rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.88rem; font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
    font-family: inherit;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
    color: #fff;
    box-shadow: 0 4px 14px -2px rgba(79, 70, 229, 0.4);
}
.btn-primary:hover { box-shadow: 0 6px 20px -2px rgba(79, 70, 229, 0.55); color: #fff; }
.btn-secondary {
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    color: var(--slate-700);
    border-color: var(--border);
}
.btn-secondary:hover { background: rgba(255,255,255,0.85); border-color: var(--accent); color: var(--slate-900); }
.btn-danger { background: linear-gradient(135deg, #F87171 0%, #DC2626 100%); color: #fff; box-shadow: 0 4px 14px -2px rgba(220, 38, 38, 0.4); }
.btn-danger:hover { box-shadow: 0 6px 20px -2px rgba(220, 38, 38, 0.55); color: #fff; }
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.8rem; }
.btn-block { width: 100%; justify-content: center; }

/* ===== Формы ===== */
.form { max-width: 640px; }
.form-group { margin-bottom: 1.1rem; }
.form-row { display: flex; gap: 1rem; }
.form-row .form-group { flex: 1; }

label { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.83rem; color: var(--slate-700); }

input[type=text], input[type=email], input[type=password], input[type=tel],
input[type=number], input[type=url], input[type=date], input[type=file],
select, textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(8px);
    color: var(--slate-900);
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255,255,255,0.9);
    box-shadow: 0 0 0 4px var(--accent-soft);
}
textarea { resize: vertical; }
.form-hint { font-size: 0.79rem; color: var(--slate-500); margin-top: 0.35rem; }
.field-error { color: var(--danger); font-size: 0.79rem; margin-top: 0.35rem; font-weight: 500; }
.form-check label { display: flex; align-items: center; gap: 0.6rem; font-weight: 400; color: var(--slate-900); }
.form-check input { width: auto; accent-color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ===== Таблицы - стеклянная поверхность ===== */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1.25rem;
    box-shadow: var(--glass-shadow);
}
.data-table th, .data-table td { padding: 0.75rem 1.05rem; text-align: left; font-size: 0.85rem; }
.data-table th {
    background: rgba(255,255,255,0.4);
    font-weight: 600; color: var(--slate-500);
    font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em;
    border-bottom: 1px solid var(--glass-border);
}
.data-table td { border-bottom: 1px solid rgba(226,232,240,0.5); color: var(--slate-700); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr { transition: background 0.12s ease; }
.data-table tbody tr:hover { background: rgba(255,255,255,0.5); }
.row-highlight { background: var(--accent-soft) !important; font-weight: 600; }
.data-table td strong { color: var(--slate-900); }

/* ===== Карточки статистики - стекло с hover-подъёмом ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.9rem; margin-bottom: 1.5rem; }
.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.15rem;
    box-shadow: var(--glass-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: fadeInUp 0.35s ease;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--glass-shadow-hover); }
.stat-value { font-size: 1.6rem; font-weight: 700; color: var(--slate-900); letter-spacing: -0.02em; }
.stat-label { font-size: 0.77rem; color: var(--slate-500); margin-top: 0.3rem; font-weight: 500; }

/* ===== Бейджи ===== */
.badge { display: inline-block; padding: 0.22rem 0.68rem; border-radius: 999px; font-size: 0.72rem; font-weight: 600; backdrop-filter: blur(6px); }
.badge-success { background: rgba(5, 150, 105, 0.14); color: #065F46; }
.badge-warning { background: rgba(217, 119, 6, 0.14); color: #92400E; }
.badge-danger { background: rgba(220, 38, 38, 0.14); color: #991B1B; }
.badge-info { background: rgba(8, 145, 178, 0.14); color: #155E75; }
.badge-secondary { background: rgba(100, 116, 139, 0.12); color: var(--slate-500); }

/* ===== Секции - основная "стеклянная" карточка приложения ===== */
.dashboard-section, .report-section {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--glass-shadow);
    animation: fadeInUp 0.4s ease;
}
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.1rem; flex-wrap: wrap; gap: 0.75rem; }
.empty-state { color: var(--slate-500); font-size: 0.88rem; padding: 0.5rem 0; }

/* ===== Блок действий сущности (исследование и т.п.) ===== */
.study-meta {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--glass-shadow);
}
.study-meta p { margin: 0.3rem 0; font-size: 0.9rem; color: var(--slate-700); }
.study-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 1.1rem; }
.study-actions form { display: inline-flex; margin: 0; }

/* ===== Быстрые действия - стеклянные плитки ===== */
.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.9rem; }
.quick-action-card {
    display: flex; flex-direction: column; gap: 0.6rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.15rem 1.2rem;
    text-decoration: none;
    box-shadow: var(--glass-shadow);
    transition: border-color 0.15s ease, transform 0.2s ease, box-shadow 0.2s ease;
    animation: fadeInUp 0.4s ease;
}
.quick-action-card:hover {
    border-color: rgba(79,70,229,0.3);
    transform: translateY(-4px);
    box-shadow: var(--glass-shadow-hover);
    color: inherit;
}
.quick-action-icon {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(99,102,241,0.18), rgba(79,70,229,0.1));
    border-radius: var(--radius-sm);
    color: var(--accent);
    transition: transform 0.2s ease;
}
.quick-action-card:hover .quick-action-icon { transform: scale(1.08) rotate(-3deg); }
.quick-action-title { font-size: 0.9rem; font-weight: 600; color: var(--slate-900); }
.quick-action-desc { font-size: 0.79rem; color: var(--slate-500); line-height: 1.4; }

/* ===== Логин ===== */
.login-page {
    display: flex; align-items: center; justify-content: center; min-height: 100vh;
    background:
        radial-gradient(circle at 20% 20%, rgba(129, 140, 248, 0.4) 0%, transparent 45%),
        radial-gradient(circle at 80% 10%, rgba(56, 189, 248, 0.35) 0%, transparent 40%),
        radial-gradient(circle at 50% 90%, rgba(196, 181, 253, 0.35) 0%, transparent 55%),
        linear-gradient(160deg, #EEF2FF 0%, #E0E7FF 35%, #DBEAFE 70%, #EDE9FE 100%);
}
.login-box {
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    padding: 2.5rem 2.25rem;
    border-radius: 24px;
    width: 100%;
    max-width: 380px;
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: 0 24px 60px -12px rgba(79, 70, 229, 0.25), 0 1px 0 rgba(255,255,255,0.6) inset;
    animation: fadeInUp 0.45s ease;
}
.login-box h1 { text-align: center; }
.subtitle { text-align: center; color: var(--slate-500); font-size: 0.84rem; margin-bottom: 1.75rem; line-height: 1.5; }
.help-text { text-align: center; font-size: 0.78rem; color: var(--slate-500); margin-top: 1.25rem; }

/* ===== Форма мониторинга (общие классы, детали в monitoring-form.css) ===== */
.direction-block {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.2rem 1.4rem;
    margin-bottom: 1rem;
    box-shadow: var(--glass-shadow);
    animation: fadeInUp 0.3s ease;
}
.direction-max { font-weight: 400; color: var(--slate-500); font-size: 0.8rem; }
.indicator-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid rgba(226,232,240,0.5); flex-wrap: wrap; }
.indicator-row:last-child { border-bottom: none; }
.indicator-info { flex: 2; min-width: 260px; }
.indicator-code { font-weight: 700; color: var(--accent); margin-right: 0.5rem; }
.indicator-input { flex: 1; display: flex; gap: 0.5rem; min-width: 320px; }

/* ===== Отчёты ===== */
.report-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.1rem; }
.report-text { font-size: 0.88rem; line-height: 1.6; color: var(--slate-700); }
.deficit-block { background: rgba(217, 119, 6, 0.1); backdrop-filter: blur(12px); border: 1px solid rgba(217,119,6,0.25); padding: 0.9rem 1.2rem; margin-bottom: 1rem; border-radius: var(--radius-md); }
.deficit-score { font-weight: 400; color: var(--slate-500); font-size: 0.8rem; }
.print-only { display: none; }

/* ===== Уведомления ===== */
.notifications-list { display: flex; flex-direction: column; gap: 0.6rem; }
.notification-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.3rem;
    box-shadow: var(--glass-shadow);
    transition: border-color 0.15s ease;
    animation: fadeInUp 0.3s ease;
}
.notification-unread { border-color: rgba(79,70,229,0.35); background: rgba(238,242,255,0.75); }
.notification-header { display: flex; justify-content: space-between; margin-bottom: 0.4rem; }
.notification-date { font-size: 0.76rem; color: var(--slate-500); }

/* ===== Фильтры и пагинация ===== */
.filter-form { max-width: none; }
.filter-row { display: flex; gap: 1rem; flex-wrap: wrap; align-items: end; }
.filter-row .form-group { min-width: 160px; margin-bottom: 0.75rem; }
.pagination { display: flex; gap: 0.4rem; margin-top: 1rem; }
.pagination a {
    padding: 0.4rem 0.8rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--slate-700);
    font-size: 0.83rem; font-weight: 500;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.pagination a:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.pagination a.page-active { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 4px 12px -2px rgba(79,70,229,0.4); }

code { background: rgba(241,245,249,0.8); padding: 0.15rem 0.4rem; border-radius: 6px; font-size: 0.85em; color: var(--slate-700); font-family: "SF Mono", Menlo, Consolas, monospace; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
/* ===== Иконки-кнопки действий в таблицах ===== */
.row-actions { display: flex; align-items: center; gap: 0.4rem; }
.icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.7);
    color: var(--slate-500);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
    font-family: inherit;
    text-decoration: none;
    flex-shrink: 0;
    padding: 0;
    line-height: 0;
}
.icon-btn svg {
    width: 16px;
    height: 16px;
    display: block;
}
.icon-btn:hover { transform: translateY(-1px); color: var(--slate-900); text-decoration: none; }
.icon-btn:active { transform: scale(0.94); }

.icon-btn-key { color: var(--accent); border-color: rgba(79,70,229,0.25); }
.icon-btn-edit { color: var(--info); border-color: rgba(8,145,178,0.25); }
.icon-btn-danger { color: var(--danger); border-color: rgba(220,38,38,0.25); }
.icon-btn-success { color: var(--success); border-color: rgba(5,150,105,0.25); }

.icon-btn-key:hover { background: var(--accent-soft); border-color: rgba(79,70,229,0.35); color: var(--accent); }
.icon-btn-edit:hover { background: rgba(8,145,178,0.12); border-color: rgba(8,145,178,0.35); color: var(--info); }
.icon-btn-danger:hover { background: var(--danger-soft); border-color: rgba(220,38,38,0.35); color: var(--danger); }
.icon-btn-success:hover { background: var(--success-soft); border-color: rgba(5,150,105,0.35); color: var(--success); }

.row-actions form { margin: 0; display: inline-flex; }

/* ===== Панель экспорта - аккуратная единая группа (select + кнопка) ===== */
.export-card {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 0.35rem;
    margin-bottom: 1.1rem;
    box-shadow: var(--glass-shadow);
}
.export-card form { display: flex; align-items: center; gap: 0.5rem; margin: 0; }
.export-card select {
    border: none;
    background: transparent;
    padding: 0.5rem 0.7rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--slate-700);
    min-width: 190px;
    border-radius: var(--radius-sm);
}
.export-card select:focus { outline: none; background: rgba(255,255,255,0.6); box-shadow: none; }
.export-card .btn {
    margin: 0;
    white-space: nowrap;
}
.export-card-simple { display: inline-block; margin-bottom: 1.1rem; }

.notif-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.notif-card {
    display: flex;
    gap: 0.9rem;
    width: 100%;
    padding: 1.1rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: 14px;
    background: #fff;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.notif-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15,23,42,0.08); }
.notif-card-new { border-color: var(--accent); background: var(--accent-soft); }
.notif-card-icon {
    flex-shrink: 0;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--border);
    color: var(--slate-500);
}
.notif-card-new .notif-card-icon { color: var(--accent); border-color: rgba(79,70,229,0.3); }
.notif-card-content { min-width: 0; flex: 1; }
.notif-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }
.notif-card-title { margin: 0 0 0.35rem; font-size: 1rem; font-weight: 600; }
.notif-card-text { margin: 0 0 0.6rem; color: var(--slate-500); line-height: 1.45; word-break: break-word; }
.notif-card-date { font-size: 0.82rem; color: var(--slate-500); }
.report-analysis h3 { margin: 1.25rem 0 0.4rem; font-size: 1.05rem; }
.report-analysis .report-text { line-height: 1.6; margin: 0 0 0.6rem; }
.report-list { margin: 0.4rem 0 0 1.2rem; line-height: 1.6; }
.report-analysis { margin-top: 1.25rem; }
.report-analysis h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.report-analysis .report-text { line-height: 1.6; margin: 0 0 0.6rem; }
.report-conclusion {
    margin-top: 1rem;
    padding: 0.9rem 1.1rem;
    border-left: 4px solid var(--accent);
    background: var(--accent-soft);
    border-radius: 0 10px 10px 0;
}
.report-list { margin: 0.4rem 0 0 1.2rem; line-height: 1.6; }
@media print { .report-conclusion { background: none; border-left: 3px solid #4f46e5; } }
tr.own-row { background: #eef2ff; font-weight: 600; }
.pos { color: #15803d; font-weight: 600; }
.neg { color: #b91c1c; font-weight: 600; }
.back-link { font-size: 0.9rem; text-decoration: none; display: inline-block; margin-bottom: 0.4rem; }

/* Фильтры центров */
.filter-form.centers-filter .filter-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 16px;
    align-items: end;
}
.filter-form.centers-filter .filter-row + .filter-row {
    margin-top: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
}
.filter-form.centers-filter .form-group { margin: 0; width: auto; min-width: 0; flex: none; }
.filter-form.centers-filter select,
.filter-form.centers-filter input[type="text"] { width: 100%; }
.centers-filter-actions { display: flex; gap: 8px; }
@media (max-width: 900px) {
    .filter-form.centers-filter .filter-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .filter-form.centers-filter .filter-row + .filter-row { grid-template-columns: 1fr; }
}

/* Модальное окно */
dialog.modal-dialog {
    border: none;
    border-radius: 16px;
    padding: 0;
    width: min(440px, 92vw);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.3);
}
dialog.modal-dialog::backdrop { background: rgba(15, 23, 42, 0.45); }
dialog.modal-dialog form { margin: 0; padding: 22px 24px; }
dialog.modal-dialog h2 { margin: 0 0 8px; font-size: 1.15rem; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.filter-form.centers-filter { margin-bottom: 24px; }