.report-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 99999;
    overflow-y: auto;
    padding: 0;
}

.report-toolbar {
    position: sticky;
    top: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: #1e293b;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.report-toolbar button {
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.report-toolbar .btn-print {
    background: #4f46e5;
    color: #fff;
}

.report-toolbar .btn-print:hover {
    background: #4338ca;
}

.report-toolbar .btn-close-report {
    background: #64748b;
    color: #fff;
}

.report-toolbar .btn-close-report:hover {
    background: #475569;
}

.report-toolbar .report-toolbar-title {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
}

.report-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 32px 60px;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #1e293b;
    line-height: 1.6;
}

.report-header {
    text-align: center;
    border-bottom: 3px solid #4f46e5;
    padding-bottom: 20px;
    margin-bottom: 32px;
}

.report-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px;
}

.report-header .report-subtitle {
    font-size: 16px;
    color: #64748b;
    margin: 0 0 12px;
}

.report-header .report-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    font-size: 13px;
    color: #94a3b8;
}

.report-section {
    margin-bottom: 32px;
    page-break-inside: avoid;
}

.report-section h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
    margin: 0 0 16px;
}

.report-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #334155;
    margin: 0 0 10px;
}

.report-summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.report-summary-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.report-summary-card .card-value {
    font-size: 32px;
    font-weight: 700;
    color: #4f46e5;
    display: block;
}

.report-summary-card .card-label {
    font-size: 13px;
    color: #64748b;
    display: block;
    margin-top: 4px;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
    font-size: 14px;
}

.report-table thead th {
    background: #f1f5f9;
    color: #334155;
    font-weight: 600;
    padding: 10px 12px;
    text-align: left;
    border-bottom: 2px solid #cbd5e1;
}

.report-table tbody td {
    padding: 8px 12px;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
}

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

.report-table tfoot td {
    padding: 10px 12px;
    font-weight: 700;
    border-top: 2px solid #cbd5e1;
    color: #1e293b;
}

.report-chart-container {
    width: 100%;
    height: 300px;
    margin-bottom: 20px;
    page-break-inside: avoid;
}

.report-footer {
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    border-top: 1px solid #e2e8f0;
    padding-top: 16px;
    margin-top: 40px;
}

@media print {
    body * {
        visibility: hidden !important;
    }

    .report-overlay,
    .report-overlay * {
        visibility: visible !important;
    }

    .report-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        overflow: visible;
        background: #fff;
    }

    .report-toolbar {
        display: none !important;
    }

    .report-content {
        padding: 20px;
        max-width: 100%;
    }

    .report-header {
        border-bottom-color: #000;
    }

    .report-header h1 {
        color: #000;
    }

    .report-section h2 {
        color: #000;
        border-bottom-color: #ccc;
    }

    .report-summary-card {
        border-color: #ccc;
        background: #f5f5f5;
    }

    .report-summary-card .card-value {
        color: #000;
    }

    .report-table thead th {
        background: #e0e0e0 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .report-table tbody tr:nth-child(even) {
        background: #f5f5f5 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .report-chart-container {
        height: 250px;
        page-break-inside: avoid;
    }

    .report-section {
        page-break-inside: avoid;
    }

    .report-footer::after {
        content: " | Page " counter(page);
        counter-increment: page;
    }

    @page {
        margin: 1.5cm;
        size: A4;
    }
}
