* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.4;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 30px 40px;
    border-bottom: 4px solid #1e40af;
}

header h1 {
    font-size: 1.8em;
    margin-bottom: 8px;
    font-weight: 600;
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.9;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 0;
    border-bottom: 2px solid #e5e7eb;
}

.metric-section {
    padding: 25px 30px;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.metric-section:nth-child(2n) {
    border-right: none;
}

.metric-section h2 {
    font-size: 1.3em;
    color: #1e3a8a;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #3b82f6;
    font-weight: 600;
}

.compact-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f9fafb;
    border-radius: 4px;
    transition: background 0.2s;
}

.stat-row:hover {
    background: #f3f4f6;
}

.stat-row.highlight-row {
    background: #dbeafe;
    font-weight: 600;
}

.stat-row .label {
    font-size: 0.95em;
    color: #4b5563;
}

.stat-row .value {
    font-size: 1.3em;
    font-weight: 700;
    color: #1e3a8a;
}

.highlight-row .value {
    color: #1e40af;
}

.highlights {
    padding: 30px 40px;
    background: linear-gradient(to bottom, #eff6ff 0%, #fff 100%);
}

.highlights h2 {
    font-size: 1.5em;
    color: #1e3a8a;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.highlight-box {
    text-align: center;
    padding: 20px;
    background: white;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.big-number {
    font-size: 2.5em;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 8px;
}

.highlight-label {
    font-size: 0.9em;
    color: #4b5563;
    line-height: 1.3;
}

.comparison {
    padding: 30px 40px;
}

.comparison h2 {
    font-size: 1.5em;
    color: #1e3a8a;
    margin-bottom: 20px;
    font-weight: 600;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

thead {
    background: #1e3a8a;
    color: white;
}

th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95em;
}

td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
}

tbody tr:hover {
    background: #f9fafb;
}

.total-row {
    background: #dbeafe !important;
    font-weight: 600;
}

.total-row td {
    border-top: 2px solid #3b82f6;
    border-bottom: 2px solid #3b82f6;
}

footer {
    background: #1f2937;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
}

footer a {
    color: #60a5fa;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@media print {
    body {
        background: white;
        padding: 0;
    }

    .container {
        box-shadow: none;
    }

    .stat-row:hover,
    tbody tr:hover {
        background: inherit;
    }
}

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

    .metric-section {
        border-right: none;
    }

    header {
        padding: 20px;
    }

    header h1 {
        font-size: 1.4em;
    }

    .subtitle {
        font-size: 1em;
    }

    .highlights,
    .comparison {
        padding: 20px;
    }

    .big-number {
        font-size: 2em;
    }

    table {
        font-size: 0.9em;
    }

    th, td {
        padding: 8px;
    }
}
