.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-generate {
    padding: 10px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    align-self: flex-end;
}

.btn-generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-reports {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.btn-reports:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.header-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Статистика отчета */
.report-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card-large {
    background: white;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 2px solid #e5e7eb;
    transition: all 0.3s;
}

.stat-card-large:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.stat-card-large.success {
    border-color: #10b981;
    background: linear-gradient(135deg, #ffffff 0%, #d1fae5 100%);
}

.stat-card-large.danger {
    border-color: #ef4444;
    background: linear-gradient(135deg, #ffffff 0%, #fee2e2 100%);
}

.stat-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.stat-card-large .stat-value {
    font-size: 42px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.stat-card-large .stat-label {
    font-size: 14px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Детализация */
.report-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 24px;
}

.detail-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.detail-card h2 {
    font-size: 20px;
    color: #1f2937;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.detail-table {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    background: #f9fafb;
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e5e7eb;
}

tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
    color: #4b5563;
}

tbody tr:hover {
    background: #f9fafb;
}

tbody tr:last-child td {
    border-bottom: none;
}

.empty-message {
    text-align: center;
    color: #9ca3af;
    font-style: italic;
    padding: 32px 16px !important;
}

.percentage {
    font-weight: 600;
}

.percentage.high {
    color: #10b981;
}

.percentage.medium {
    color: #f59e0b;
}

.percentage.low {
    color: #ef4444;
}

/* Адаптивность */
@media (max-width: 768px) {
    .report-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .report-details {
        grid-template-columns: 1fr;
    }

    .detail-card {
        min-width: unset;
    }

    .filter-group {
        min-width: unset;
    }
}
