.report-section {
    margin-bottom: 2rem;
}

.report-header {
    background: linear-gradient(135deg, var(--deep-marine-blue) 0%, var(--dark-olive-green) 100%);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
}

.report-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.report-header p {
    opacity: 0.9;
    font-size: 0.95rem;
}

.report-body {
    background: var(--white);
    border: 1px solid var(--medium-gray);
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 1.5rem;
}

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

.summary-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .summary-grid-4 {
        grid-template-columns: 1fr;
    }
}

.summary-card {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid var(--bright-lime-green);
    transition: var(--transition);
}

.summary-card:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px var(--shadow);
}

.summary-card h4 {
    color: var(--dark-olive-green);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.summary-card .value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--deep-marine-blue);
}

.summary-card .change {
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.change.positive {
    color: #2ecc71;
}

.change.negative {
    color: #e74c3c;
}

.change.neutral {
    color: #95a5a6;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.data-table thead {
    background-color: var(--deep-marine-blue);
    color: var(--white);
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--medium-gray);
}

.data-table tbody tr:nth-child(even) {
    background-color: rgba(132, 189, 0, 0.05);
}

.data-table tbody tr:hover {
    background-color: rgba(132, 189, 0, 0.1);
    transition: var(--transition);
}

.data-table tfoot {
    border-top: 2px solid var(--deep-marine-blue);
}

.data-table .total-row {
    background-color: #f0f7ff;
}

.data-table .total-row td {
    font-weight: bold;
    color: var(--deep-marine-blue);
}

.section-divider {
    margin: 2rem 0;
    padding: 1rem 0;
    border-bottom: 2px solid var(--medium-gray);
}

.section-title {
    color: var(--deep-marine-blue);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    color: var(--bright-lime-green);
}

.variation-list {
    list-style: none;
    padding: 0;
}

.variation-item {
    background: var(--light-gray);
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.variation-item:hover {
    background: var(--medium-gray);
}

.variation-item .name {
    font-weight: 500;
    color: var(--dark-gray);
}

.variation-item .details {
    font-size: 0.9rem;
    color: #666;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-inclusion {
    background-color: #d4edda;
    color: #155724;
}

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

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

.executive-report {
    font-size: 1.05rem;
    line-height: 1.8;
}

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

.executive-report .highlight {
    background: linear-gradient(to right, rgba(132, 189, 0, 0.2), rgba(132, 189, 0, 0));
    padding: 1rem;
    border-left: 4px solid var(--bright-lime-green);
    margin: 1.5rem 0;
}

.conciliation-form {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h4 {
    color: var(--deep-marine-blue);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field label {
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: var(--dark-gray);
}

.form-field input[type="text"],
.form-field input[type="date"],
.form-field textarea {
    padding: 0.5rem;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    font-size: 0.95rem;
}

.form-field textarea {
    resize: vertical;
    min-height: 80px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.signature-section {
    border: 1px solid var(--medium-gray);
    padding: 1.5rem;
    border-radius: 6px;
    margin-top: 2rem;
}

.signature-field {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.signature-field label {
    font-weight: 500;
    display: flex;
    align-items: center;
}

.signature-field input {
    padding: 0.5rem;
    border: none;
    border-bottom: 1px solid var(--dark-gray);
    background: transparent;
}

.important-note {
    background-color: #ffeaa7;
    border: 1px solid #fdcb6e;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 2rem;
}

.important-note strong {
    color: #d63031;
}

@media print {
    .export-section,
    .report-tabs,
    header,
    footer {
        display: none;
    }
    
    .results-section h2 {
        page-break-after: avoid;
        margin-bottom: 0.5rem;
    }
    
    .report-content {
        padding: 0;
    }
    
    .report-header {
        page-break-after: avoid;
    }
    
    .report-header h3 {
        page-break-after: avoid;
        margin-bottom: 0.3rem;
    }
    
    .report-header p {
        page-break-after: avoid;
        margin-bottom: 1rem;
    }
    
    /* Prevent page breaks between report title and content */
    .report-section .report-header + .report-body {
        page-break-before: avoid;
    }
    
    .data-table {
        font-size: 0.9rem;
        page-break-inside: avoid;
    }
    
    .section-title {
        page-break-after: avoid;
    }
}

/* Charts Section Styles */
.charts-section {
    margin: 2rem 0;
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    overflow: hidden;
}

.charts-section h3 {
    background: linear-gradient(135deg, var(--deep-marine-blue) 0%, var(--dark-olive-green) 100%);
    color: var(--white);
    padding: 1rem 1.5rem;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 2rem;
    background: var(--white);
}

.chart-container {
    background: var(--white);
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chart-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.chart-container h4 {
    color: var(--deep-marine-blue);
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.chart-container canvas {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
}

.chart-legend {
    margin-top: 1rem;
    text-align: left;
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.legend-label {
    color: var(--dark-gray);
    font-weight: 500;
}

.summary-note {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.summary-note p {
    margin: 0;
    color: var(--dark-gray);
    font-size: 0.95rem;
}

.summary-note i {
    color: #2196f3;
    margin-right: 0.5rem;
}

/* Responsive adjustments for charts */
@media (max-width: 768px) {
    .charts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .chart-container {
        padding: 1rem;
    }
    
    .chart-container canvas {
        width: 100% !important;
        height: auto !important;
    }
}

@media (max-width: 480px) {
    .charts-section h3 {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
    
    .chart-container h4 {
        font-size: 1rem;
    }
    
    .summary-note {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}