/* FILE: print-style.css */
@media print {
    @page { 
        size: A4 landscape; 
        margin: 0;
    }
    body { 
        background-color: #fff !important; 
        color: #000 !important;
        transform: scale(0.81);
        transform-origin: top left;
        width: 123.45%; /* 100 / 0.81 */
    }
    .no-print, .top-nav, .input-section, .page-header, footer, .print-button, #calendarLegend, .based-on, .calendar-title { 
        display: none !important; 
    }
    main, .container, .result-card { 
        background-color: transparent !important; 
        box-shadow: none !important; 
        padding: 0 !important; 
        border: none !important;
        margin: 0;
    }
    #print-header {
        display: block !important;
        text-align: center;
        font-size: 12px;
        margin-bottom: 1rem;
        font-weight: 600;
    }
     .calendar-header {
        display: none; /* Hide the whole screen header */
    }
    .calendar-grid { 
        gap: 0 !important; 
        border: 1px solid #999 !important; 
    }
    .calendar-grid .day-name { 
        background-color: #e0e0e0 !important; 
        border: 1px solid #ccc !important;
        font-size: 9pt;
        padding: 4px;
    }
    .calendar-grid .day { 
        border: 1px solid #ccc !important; 
        min-height: 110px; /* Adjusted for A4 landscape */
    }
    .calendar-grid .day.empty { 
        background-color: #fff !important; 
        border-color: #fff !important; 
    }
    .day .day-number-large { 
        color: rgba(0, 0, 0, 0.1) !important; 
        text-shadow: none !important;
        font-size: 3em; 
    }
    .day-split-top, .day-split-bottom { 
        color: #fff !important; 
    }
    .day .time-info { 
        color: rgba(255,255,255,0.9) !important; 
        font-size: 7pt;
    }
    .day.neutral-day { 
        background-color: #fff !important; 
    }
    .day.neutral-day .day-number-large { 
        color: rgba(0,0,0,0.1) !important;
    }
    .day.neutral-day .time-info { 
        color: #333 !important; 
    }
    .print-footer-container { 
        display: flex !important; 
        justify-content: space-between; 
        margin-top: 10px; 
        font-size: 8pt; 
        color: #555; 
        width: 100%;
    }
}
