/* Print Styles */
@media print {

    /* Hide everything initially */
    body * {
        visibility: hidden;
    }

    /* Show only the print report and its children */
    #ifc-print-report,
    #ifc-print-report * {
        visibility: visible;
    }

    /* Position the report */
    #ifc-print-report {
        display: block !important;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 2rem;
        background: #fff;
        z-index: 9999;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif, "Microsoft YaHei", "WenQuanYi Micro Hei", "Hiragino Sans GB", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Meiryo", "Malgun Gothic";
    }

    /* Report Header */
    .ifc-report-header {
        text-align: center;
        border-bottom: 2px solid #6750a4;
        padding-bottom: 1.5rem;
        margin-bottom: 2rem;
    }

    .ifc-report-logo {
        max-height: 80px;
        width: auto;
        margin: 0 auto 1rem auto;
        display: block;
    }

    .ifc-report-header h1 {
        margin: 0;
        font-size: 2.5rem;
        color: #6750a4;
    }

    .ifc-report-header p {
        margin: 0.5rem 0 0;
        color: #666;
    }

    .ifc-report-date {
        font-weight: bold;
        margin-top: 0.5rem;
    }

    /* Sections */
    .ifc-report-section {
        margin-bottom: 2.5rem;
        page-break-inside: avoid;
    }

    .ifc-report-section h2 {
        font-size: 1.5rem;
        border-bottom: 1px solid #eee;
        padding-bottom: 0.5rem;
        margin-bottom: 1rem;
        color: #444;
    }

    /* Grid Layouts */
    .ifc-report-grid {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 1.5rem;
    }

    .ifc-report-item label {
        display: block;
        font-size: 0.8rem;
        text-transform: uppercase;
        color: #888;
        margin-bottom: 0.25rem;
    }

    .ifc-report-item span {
        font-size: 1.1rem;
        font-weight: 600;
    }

    /* Highlight Section */
    .ifc-highlight-section {
        background: #f9f9f9;
        padding: 1.5rem;
        border-radius: 8px;
        border: 1px solid #eee;
    }

    .ifc-report-stats {
        display: flex;
        justify-content: space-around;
        margin-top: 1.5rem;
    }

    .ifc-stat-box {
        text-align: center;
    }

    .ifc-stat-box .label {
        display: block;
        font-size: 0.9rem;
        color: #666;
    }

    .ifc-stat-box .value {
        display: block;
        font-size: 2.5rem;
        font-weight: 800;
        color: #6750a4;
        line-height: 1.2;
    }

    /* Charts */
    .ifc-report-charts {
        display: flex;
        justify-content: space-between;
        gap: 2rem;
    }

    .ifc-report-chart {
        flex: 1;
        text-align: center;
    }

    .ifc-report-chart img {
        max-width: 100%;
        height: auto;
        max-height: 200px;
    }

    /* Schedule */
    .ifc-report-schedule {
        background: #fff;
        border: 1px solid #eee;
        border-radius: 8px;
    }

    .schedule-row {
        display: flex;
        justify-content: space-between;
        padding: 1rem;
        border-bottom: 1px solid #eee;
    }

    .schedule-row:last-child {
        border-bottom: none;
    }

    .schedule-row .time-label {
        font-weight: 600;
    }

    /* Footer */
    .ifc-report-footer {
        text-align: center;
        font-size: 0.8rem;
        color: #999;
        margin-top: 4rem;
        border-top: 1px solid #eee;
        padding-top: 1rem;
    }
}