/* ============================================
   ELM Pro - Report Stylesheet
   ============================================ */

.report-preview {
    background: var(--white);
    border: 1px solid var(--light);
    border-radius: var(--radius);
    max-height: 700px;
    overflow-y: auto;
    padding: 0;
}

/* Report Container */
.report {
    font-family: 'Georgia', 'Times New Roman', serif;
    color: #333;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

/* Cover Page */
.report-cover {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f9d89c 0%, #f5c066 100%);
    border-radius: var(--radius-lg);
    margin-bottom: 3rem;
}

.report-cover .logo {
    font-size: 5rem;
    font-weight: 900;
    color: #b1cb1e;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.report-cover .title {
    font-size: 2rem;
    color: #b1cb1e;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.report-cover .subtitle {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.report-cover .address {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.report-cover .meta {
    font-size: 0.95rem;
    color: #666;
    margin-top: 2rem;
}

/* Section */
.report-section {
    margin-bottom: 3rem;
    page-break-inside: avoid;
}

.report-section h2 {
    font-size: 1.75rem;
    color: #b1cb1e;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #b1cb1e;
}

.report-section h3 {
    font-size: 1.25rem;
    color: #b1cb1e;
    margin: 2rem 0 1rem;
}

.report-section h4 {
    font-size: 1.1rem;
    color: #444;
    margin: 1.5rem 0 0.75rem;
}

.report-section p {
    margin-bottom: 1rem;
    text-align: justify;
}

/* Key Figures */
.report-key-figures {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.report-figure {
    background: #f8f9fa;
    padding: 1.5rem;
    text-align: center;
    border-radius: 10px;
    border-left: 4px solid #b1cb1e;
}

.report-figure .number {
    font-size: 2rem;
    font-weight: 700;
    color: #b1cb1e;
    font-family: 'Segoe UI', sans-serif;
}

.report-figure .label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Tables */
.report-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-family: 'Segoe UI', sans-serif;
}

.report-table th {
    background: #b1cb1e;
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.report-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #eee;
}

.report-table tr:hover {
    background: #fef9f3;
}

.report-table tr:nth-child(even) {
    background: #f9f9f9;
}

.report-table tr:nth-child(even):hover {
    background: #fef9f3;
}

/* Comparison Table */
.comparison-table {
    margin: 1.5rem 0;
}

.comparison-table th:first-child {
    background: #f8f9fa;
    color: #333;
}

.comparison-table .zone-col {
    background: #fef3e5;
    font-weight: 600;
}

/* Charts in Report */
.report-chart {
    margin: 2rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.report-chart-title {
    text-align: center;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #444;
}

/* SWOT in Report */
.report-swot {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.report-swot-box {
    padding: 1.25rem;
    border-radius: 10px;
}

.report-swot-box h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.report-swot-box ul {
    margin: 0;
    padding-left: 1.25rem;
}

.report-swot-box li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.report-swot-box.strengths {
    background: #d5f5e3;
    border: 2px solid #27ae60;
}

.report-swot-box.strengths h4 { color: #27ae60; }

.report-swot-box.weaknesses {
    background: #fadbd8;
    border: 2px solid #e74c3c;
}

.report-swot-box.weaknesses h4 { color: #e74c3c; }

.report-swot-box.opportunities {
    background: #d4efdf;
    border: 2px solid #2ecc71;
}

.report-swot-box.opportunities h4 { color: #2ecc71; }

.report-swot-box.threats {
    background: #fdebd0;
    border: 2px solid #f39c12;
}

.report-swot-box.threats h4 { color: #f39c12; }

/* Conclusions Box */
.report-conclusions {
    background: linear-gradient(135deg, #f8f9fa 0%, #ecf0f1 100%);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 5px solid #b1cb1e;
    margin: 2rem 0;
}

.report-conclusions h4 {
    margin: 0 0 1rem 0;
    color: #b1cb1e;
}

.report-conclusions p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.report-conclusions .check {
    color: #27ae60;
    font-weight: bold;
}

/* Score Box */
.report-score-box {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #b1cb1e 0%, #8fb016 100%);
    color: white;
    border-radius: 10px;
    margin: 2rem 0;
}

.report-score-box .score-big {
    font-size: 4rem;
    font-weight: 900;
    font-family: 'Segoe UI', sans-serif;
}

.report-score-box .score-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

.report-score-box .verdict {
    font-size: 1.5rem;
    margin-top: 1rem;
    font-weight: 600;
}

/* Financial Summary */
.report-financial {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.report-financial-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
}

.report-financial-card h4 {
    margin: 0 0 1rem 0;
    color: #b1cb1e;
    font-size: 1rem;
}

.report-financial-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dashed #ddd;
}

.report-financial-item:last-child {
    border-bottom: none;
    font-weight: 600;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 2px solid #b1cb1e;
}

/* Map Placeholder */
.report-map {
    height: 300px;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-style: italic;
    margin: 2rem 0;
    border: 2px dashed #ddd;
}

/* Footer */
.report-footer {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
    margin-top: 3rem;
}

.report-footer p {
    margin: 0.25rem 0;
    font-size: 0.95rem;
}

.report-footer .author {
    font-weight: 600;
    color: #b1cb1e;
}

/* Page Break for Print */
.page-break {
    page-break-after: always;
}

/* Executive Summary Style */
.executive-summary {
    padding: 2rem;
}

.executive-summary .header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #b1cb1e;
}

.executive-summary .header h1 {
    font-size: 1.75rem;
    color: #b1cb1e;
}

.executive-summary .grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.executive-summary .box {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.executive-summary .box h3 {
    font-size: 1rem;
    color: #b1cb1e;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ddd;
}

.executive-summary .highlight-box {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #b1cb1e 0%, #8fb016 100%);
    color: white;
    text-align: center;
    padding: 1.5rem;
}

.executive-summary .highlight-box h3 {
    color: white;
    border-bottom-color: rgba(255,255,255,0.3);
}

/* Print Styles */
@media print {
    .report {
        padding: 0;
        max-width: none;
    }
    
    .report-cover {
        page-break-after: always;
    }
    
    .report-section {
        page-break-inside: avoid;
    }
    
    .report-swot,
    .report-financial {
        page-break-inside: avoid;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .report-key-figures {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .report-swot {
        grid-template-columns: 1fr;
    }
    
    .report-financial {
        grid-template-columns: 1fr;
    }
    
    .executive-summary .grid {
        grid-template-columns: 1fr;
    }
}
