.report-container {
    max-width: 1000px;
    margin: 120px auto 60px;
    padding: 0 24px;
}

.pdf-rendering {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    background-color: var(--bg-primary);
    transform: scale(0.9);
    transform-origin: top left;
}

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

.pdf-rendering .hero-title {
    font-size: 2.2rem !important;
}

.report-header {
    text-align: center;
    margin-bottom: 48px;
}

.report-grade-circle {
    width: 160px;
    height: 160px;
    margin: 0 auto 24px;
    border-radius: 50%;
    border: 8px solid var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.4);
    background: rgba(10, 12, 16, 0.5);
    backdrop-filter: blur(10px);
}

.report-grade-circle.grade-a {
    color: #34d399;
    border-color: #34d399;
    box-shadow: 0 0 40px rgba(52, 211, 153, 0.4);
}

.report-grade-circle.grade-b {
    color: #fbbf24;
    border-color: #fbbf24;
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.4);
}

.report-grade-circle.grade-c {
    color: #f59e0b;
    border-color: #f59e0b;
    box-shadow: 0 0 40px rgba(245, 158, 11, 0.4);
}

.report-grade-circle.grade-f {
    color: #ef4444;
    border-color: #ef4444;
    box-shadow: 0 0 40px rgba(239, 68, 68, 0.4);
}

.report-section {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(16px);
}

.report-section h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: #f8fafc;
}

.report-section p.lead {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

/* Horizontal Bar Chart */
.horiz-bar-row {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
}

.horiz-label {
    width: 200px;
    font-weight: 500;
}

.horiz-track {
    flex: 1;
    height: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.horiz-fill {
    height: 100%;
    border-radius: 8px;
}

.horiz-fill.grade-a {
    background: linear-gradient(90deg, #34d399 20%, #10b981 100%);
}

.horiz-fill.grade-b {
    background: linear-gradient(90deg, #fbbf24 20%, #f59e0b 100%);
}

.horiz-fill.grade-c {
    background: linear-gradient(90deg, #fb923c 20%, #ea580c 100%);
}

.horiz-fill.grade-f {
    background: linear-gradient(90deg, #f87171 20%, #ef4444 100%);
}

.horiz-score {
    width: 60px;
    text-align: left;
    font-weight: 700;
}

.horiz-score.grade-a {
    color: #34d399;
}

.horiz-score.grade-b {
    color: #fbbf24;
}

.horiz-score.grade-c {
    color: #f59e0b;
}

.horiz-score.grade-f {
    color: #ef4444;
}

/* Stacked Column Chart */
.stacked-chart-container {
    height: 350px;
    position: relative;
    display: flex;
    margin-bottom: 32px;
    padding-left: 50px;
    padding-bottom: 40px;
    margin-top: 40px;
}

.stacked-chart-container.rotate-labels {
    height: 420px;
    padding-bottom: 110px;
}

.y-axis {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 40px;
    width: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: right;
}

.y-axis-label {
    position: absolute;
    bottom: 70%;
    transform: translateY(50%);
    right: -5px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 2px 4px;
    border-radius: 4px;
    z-index: 2;
}

.chart-area {
    flex: 1;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.dotted-line {
    position: absolute;
    left: 0;
    right: 0;
    border-bottom: 2px dashed rgba(255, 255, 255, 0.3);
    z-index: 0;
}

.dotted-line-text {
    position: absolute;
    right: 0;
    bottom: 4px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding-left: 8px;
    z-index: 2;
}

.chart-col-group {
    height: 100%;
    width: 8%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    z-index: 1;
}

.chart-col {
    width: 100%;
    display: flex;
    flex-direction: column-reverse;
}

.col-yes {
    background: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.col-yes.grade-a {
    background: #34d399;
}

.col-yes.grade-b {
    background: #fbbf24;
}

.col-yes.grade-c {
    background: #f59e0b;
}

.col-yes.grade-f {
    background: #ef4444;
}

.col-no {
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 0.8rem;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.col-label {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.1;
    width: 200%;
    word-wrap: break-word;
}

.stacked-chart-container.rotate-labels .col-label {
    top: calc(100% + 10px);
    left: auto;
    right: 50%;
    transform-origin: right center;
    transform: rotate(-90deg);
    font-size: 0.75rem;
    white-space: nowrap;
    text-align: right;
    width: auto;
}

/* Callout Box */
.callout {
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid var(--accent-blue);
    padding: 20px;
    border-radius: 0 8px 8px 0;
    margin-top: 24px;
}

.callout h4 {
    color: var(--accent-blue);
    margin-bottom: 8px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Stacked Horiz Bar Chart */
.stacked-horiz-row {
    margin-bottom: 24px;
}

.stacked-horiz-label {
    margin-bottom: 8px;
    font-weight: 500;
}

.stacked-horiz-track {
    height: 28px;
    display: flex;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.stacked-yes {
    background: #10b981;
    display: flex;
    align-items: center;
    padding-left: 12px;
    font-size: 0.85rem;
    font-weight: bold;
    color: white;
    height: 100%;
}

.stacked-no {
    background: #475569;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
    font-size: 0.85rem;
    font-weight: bold;
    color: white;
    height: 100%;
}

/* Tables */
.report-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    overflow: hidden;
}

.report-table th,
.report-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.report-table th {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    color: #f8fafc;
}

.report-table tr:last-child td {
    border-bottom: none;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-good {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.status-neutral {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.status-bad {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.disclaimer-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 60px;
    padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .horiz-bar-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .horiz-label {
        width: 100%;
    }

    .horiz-score {
        width: 100%;
        text-align: left;
    }

    .chart-col-group {
        width: 30px;
    }

    .stacked-chart-container:not(.rotate-labels) .col-label {
        font-size: 0.75rem;
        top: auto;
        bottom: -40px;
        transform: rotate(-45deg);
        transform-origin: top left;
    }
}