/* ===== ИЗВЛЕЧЕННЫЕ INLINE СТИЛИ ===== */

/* Прогресс-бар загрузки данных */
#loadingProgressContainer {
    display: none;
    background: rgba(255,255,255,0.95);
    padding: 1rem;
    margin: 0;
}

#loadingProgressContainer > div {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

#loadingProgressText {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
    overflow: hidden;
}

#loadingProgressBar {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 3px;
}

/* Demo-режим уведомление */
#demoModeNotification {
    display: none;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    padding: 1rem;
    margin: 1rem auto;
    max-width: 1200px;
    border-radius: 8px;
    text-align: center;
}

#demoModeNotification .demo-title {
    color: #92400e;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

#demoModeNotification .demo-text {
    color: #78350f;
    font-size: 0.9rem;
}

/* Фильтры протоколов */
.protocol-filters {
    margin-bottom: 2rem;
}

.filter-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

.protocol-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.protocol-tab {
    padding: 0.75rem 1.5rem;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    background: white;
    color: #3b82f6;
}

.protocol-tab.active {
    background: #3b82f6;
    color: white;
}

.protocol-tab:hover {
    background: #3b82f6;
    color: white;
}

.protocol-info {
    font-size: 0.9rem;
    color: #6b7280;
    font-style: italic;
}

/* Скрытые элементы */
/* #workgroups {
    display: none;
} */

/* Стили для критических вопросов */
.critical-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.critical-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #3b82f6;
    cursor: pointer;
    transition: all 0.3s ease;
}

.critical-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.critical-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.critical-card-icon {
    font-size: 2rem;
}

.critical-card-title h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #1f2937;
}

.critical-card-title p {
    margin: 0.25rem 0 0 0;
    color: #6b7280;
    font-size: 0.875rem;
}

.critical-card-status {
    font-size: 1.5rem;
    margin-left: auto;
}

.critical-card-description {
    margin-bottom: 1.5rem;
}

.critical-card-description p {
    color: #4b5563;
    margin: 0;
    line-height: 1.5;
}

.critical-card-stats {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #f9fafb;
    border-radius: 8px;
    flex: 1;
    justify-content: center;
}

.stat-icon {
    font-size: 1.2rem;
}

.stat-value {
    font-weight: 600;
    font-size: 1.1rem;
}

.critical-modal {
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
}

.comment-cell {
    max-width: 300px;
    word-wrap: break-word;
    font-size: 0.875rem;
    color: #4b5563;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    margin-top: 2rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
}

/* Стили для рабочих групп */
.workgroup-row {
    margin-bottom: 2rem;
}

.workgroup-criteria {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.workgroup-criteria small {
    color: #6b7280;
    line-height: 1.4;
    display: block;
}

.workgroup-members {
    margin: 1rem 0;
}

.member-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.member {
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #495057;
    border-left: 3px solid #dee2e6;
}

.card-description {
    margin: 1rem 0;
    color: #6c757d;
    line-height: 1.5;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.active {
    background: #d1f2eb;
    color: #0d6efd;
}

.status-badge.planning {
    background: #fff3cd;
    color: #856404;
}

.status-badge.review {
    background: #f8d7da;
    color: #721c24;
}

.participants-count {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.comments-section[style*="display: none"] {
    display: none;
}

.no-comments[style*="display: none"] {
    display: none;
}

/* Модальные окна с настраиваемыми размерами */
.modal-content.score-detail {
    max-width: 800px;
}

.modal-content.function-detail {
    max-width: 900px;
    /* Наследуем margin и другие базовые стили от .modal-content */
    /* Контент внутри будет прокручиваться через .function-detail-content */
}

/* Стили для сравнения */
.comparison-section {
    margin-top: 30px;
    text-align: center;
    padding: 20px;
    background: #f8f9ff;
    border-radius: 10px;
}

.comparison-section h4 {
    margin-bottom: 15px;
    color: #1e3c72;
}

.comparison-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.comparison-button:hover {
    transform: translateY(-2px);
}

.comparison-description {
    margin-top: 10px;
    color: #666;
    font-size: 0.9em;
}

/* Стили для основных направлений работы */
.committee-directions {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
}

.committee-directions h3 {
    color: #1e40af;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.directions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 15px;
}

.direction-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.direction-card.business-model {
    border-left: 4px solid #0ea5e9;
}

.direction-card.business-model strong {
    color: #0ea5e9;
}

.direction-card.ecof {
    border-left: 4px solid #8b5cf6;
}

.direction-card.ecof strong {
    color: #8b5cf6;
}

.direction-card.digital {
    border-left: 4px solid #10b981;
}

.direction-card.digital strong {
    color: #10b981;
}

.direction-card.investment {
    border-left: 4px solid #f59e0b;
}

.direction-card.investment strong {
    color: #f59e0b;
}

.direction-card.culture {
    border-left: 4px solid #ef4444;
}

.direction-card.culture strong {
    color: #ef4444;
}

.direction-card.processes {
    border-left: 4px solid #6366f1;
}

.direction-card.processes strong {
    color: #6366f1;
}

.direction-card.technical {
    border-left: 4px solid #14b8a6;
}

.direction-card.technical strong {
    color: #14b8a6;
}

.direction-description {
    font-size: 0.9em;
    color: #64748b;
}

/* Дополнительные заголовки с inline стилями */
.committee-overview h2 {
    margin: 15px 0;
    font-size: 1.4em;
}

/* Стили для таблиц с фиксированной шириной колонок */
.score-detail-table th.question-col {
    width: 40%;
}

.score-detail-table th.median-col {
    width: 15%;
}

.score-detail-table th.votes-col {
    width: 15%;
}

.score-detail-table th.distribution-col {
    width: 30%;
}

.function-questions-table th.question-col {
    width: 40%;
}

.function-questions-table th.median-col {
    width: 10%;
}

.function-questions-table th.participants-col {
    width: 10%;
}

.function-questions-table th.distribution-col {
    width: 40%;
}

/* Стили для детализации комитетов */
.committee-meetings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.committee-meeting-section h3 {
    color: #1e3c72;
    margin-bottom: 20px;
}

.meeting-criteria {
    margin: 15px 0;
}

/* Стили для динамически создаваемых таблиц */
.heatmap th.function-col {
    min-width: 250px;
}

.heatmap th.question-col {
    min-width: 40px;
    text-align: center;
}

.heatmap th.median-col {
    background: #f3f4f6;
    color: #374151;
    min-width: 70px;
}

.heatmap td.function-name {
    text-align: left;
    font-weight: 500;
    padding: 0.75rem 0.5rem;
}

.heatmap td.score-cell {
    text-align: center;
    padding: 0.75rem 0.25rem;
}

.heatmap td.median-cell {
    background: #f9fafb;
    font-weight: 600;
    color: #3b82f6;
    text-align: center;
}

.executor-progress {
    color: #6b7280;
    font-size: 0.85rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .protocol-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .directions-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}