@page {
    size: A4;
    margin: 10mm 10mm;
}

body {
    font-family: Arial, sans-serif;
    font-size: 11pt;
    line-height: 1.4;
    color: #000;
}

h1 {
    font-size: 18pt;
    margin-bottom: 10px;
    text-align: center;
}

h2 {
    font-size: 16pt;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #198754;
    border-bottom: 1px solid #198754;
    padding-bottom: 5px;
}

h3 {
    font-size: 14pt;
    margin-top: 15px;
    margin-bottom: 10px;
    color: #0d6efd;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.page-break {
    page-break-before: always;
}

.header {
    position: relative;
    width: 100%;
    height: 80px;
    margin-bottom: 20px;
}

.logo {
    position: absolute;
    left: 0;
    top: 0;
    height: 70px;
}

.title-section {
    text-align: center;
    width: 100%;
}

.filter-info {
    margin: 15px 0;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 10pt;
}

.summary-section {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.summary-box {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    width: 30%;
    text-align: center;
    margin-bottom: 10px;
}

.summary-box h4 {
    margin-top: 0;
    font-size: 12pt;
}

.summary-box p {
    font-size: 18pt;
    font-weight: bold;
    margin: 5px 0;
}

.footer {
    text-align: center;
    font-size: 9pt;
    margin-top: 20px;
    color: #666;
}

.chart-container {
    width: 100%;
    height: 300px;
    margin: 20px 0;
    position: relative;
}

.half-width {
    width: 48%;
    display: inline-block;
    vertical-align: top;
}

.chart-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.chart-col {
    width: 48%;
}

@media print {
    .no-print {
        display: none;
    }

    .chart-container {
        height: auto;
        margin: 10px 0; /* Reduced margin */
    }
    
    canvas {
        max-width: 100%;
        height: auto !important;
        display: block; /* Ensures no extra space */
    }
}