/* Header Logo */
.header-logo {
    max-width: 200px;
    margin-bottom: 1rem;
}

.header-logo img {
    max-width: 100%;
    height: auto;
}

/* Print Button */
.btn-print {
    padding: 0.5rem 1rem;
    background-color: white;
    color: black;
    border: 1px solid black;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 400;
    transition: background-color 0.2s;
}

.btn-print:hover {
    background-color: #f0f0f0;
}

.print-icon {
    margin-right: 0.5rem;
}

/* Fund Info */
.fund-info {
    padding: 0;
}

.fund-name-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 0.75rem 0;
}

.fund-info .info-row {
    margin-bottom: 0;
}

.fund-info .info-row:last-child {
    margin-bottom: 0;
}

.fund-info .label {
    font-weight: 600;
    margin-right: 0.5rem;
}

.fund-info .value {
    color: inherit;
}

/* Chart Container */
.chart-container {
    position: relative;
    width: 100%;
    max-width: 1440px;
    height: 464px;
    margin: 0 auto 3rem auto;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

.chart-error {
    padding: 2rem;
    background-color: #FEE;
    border: 1px solid #F88;
    border-radius: 4px;
    color: #C00;
    text-align: center;
}

.chart-error p {
    margin: 0.5rem 0;
}

.chart-loading {
    padding: 2rem;
    text-align: center;
    color: #666;
}

/* Annual Return Table */
.annual-return-table {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto 2rem auto;
    border-collapse: collapse;
    table-layout: fixed;
}

.annual-return-table thead {
    background-color: transparent;
}

.annual-return-table th,
.annual-return-table td {
    padding: 0.5rem 0.5rem;
    text-align: center;
}

.annual-return-table th:first-child,
.annual-return-table td:first-child {
    width: 180px;
    min-width: 180px;
    text-align: left;
}

.annual-return-table th {
    font-weight: 600;
}

.annual-return-table td {
    color: inherit;
}

.annual-return-table .row-header {
    font-weight: 600;
    text-align: left;
}

.annual-return-table .row-header-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.annual-return-table .row-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.annual-return-table .row-label-text {
    white-space: normal;
    overflow-wrap: anywhere;
}

/* Scenarios Table */
.scenarios-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.scenarios-table thead {
    background-color: #f7fafc;
}

.scenarios-table th,
.scenarios-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
}

.scenarios-table th:last-child,
.scenarios-table td:last-child {
    border-right: none;
}

.scenarios-table th {
    font-weight: 600;
    color: #4a5568;
}

.scenarios-table td {
    color: #1a202c;
}

.scenarios-table .scenario-label {
    font-weight: 600;
    background-color: #f7fafc;
}

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

/* Conditional Labels */
.conditional-labels {
    margin-top: 2rem;
}

.conditional-labels .info-label {
    background-color: #EBF8FF;
    border-left: 4px solid #4299E1;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    color: #2C5282;
    font-size: 0.95rem;
}

.conditional-labels .info-label:last-child {
    margin-bottom: 0;
}

/* Info Section */
.info-section p {
    margin-bottom: 1rem;
    color: #4a5568;
    font-size: 0.95rem;
}

.info-section p:last-child {
    margin-bottom: 0;
}

/* Pre-chart disclaimers (Description + Historic-performance-no-guarantee) */
.pre-chart-disclaimers p {
    margin-bottom: 1rem;
    color: #4a5568;
    font-size: 0.95rem;
}

.pre-chart-disclaimers p:last-child {
    margin-bottom: 0;
}

/* Footer info (CurrencyUsed, FundStarted, FundClassStarted) */
.footer-info-section {
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
    margin-top: 2rem;
}

.footer-info-section p {
    margin-bottom: 0.5rem;
    color: #4a5568;
    font-size: 0.875rem;
}

.footer-info-section p:last-child {
    margin-bottom: 0;
}

.description-section p {
    margin-bottom: 1rem;
    color: #4a5568;
}

.description-section p:last-child {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .title-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .title-section h1 {
        margin-bottom: 1rem;
        font-size: 1.5rem;
    }

    .annual-return-table,
    .scenarios-table {
        font-size: 0.85rem;
    }

    .annual-return-table th,
    .annual-return-table td,
    .scenarios-table th,
    .scenarios-table td {
        padding: 0.25rem;
    }

    .annual-return-table th:first-child,
    .annual-return-table td:first-child {
        width: 120px;
        min-width: 120px;
    }

    .chart-container {
        height: 300px;
    }
}
