/* Print stylesheet — applied only when printing (media="print") */

/* ── Screen: hide print view ─────────────────────────────────────────── */
#printView { display: none; }

/* ── Print: show only the print view ────────────────────────────────── */
@media print {
    .site-header,
    .site-footer,
    .day-tabs-wrapper,
    .planner-main,
    .week-summary-section,
    .modal-backdrop,
    .toast {
        display: none !important;
    }

    #printView {
        display: block !important;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 10pt;
        color: #000;
        padding: 0;
        margin: 0;
    }

    /* ── Print header ─────────────────────────────────────────────── */
    .print-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        border-bottom: 2pt solid #2e7d32;
        padding-bottom: 8pt;
        margin-bottom: 12pt;
    }
    .print-title {
        font-size: 20pt;
        font-weight: bold;
        color: #1b5e20;
        margin: 0 0 2pt;
    }
    .print-week {
        font-size: 11pt;
        color: #444;
        margin: 0;
    }
    .print-meta {
        text-align: right;
        font-size: 10pt;
        color: #555;
    }
    .print-meta p { margin: 2pt 0; }

    /* ── Day blocks ───────────────────────────────────────────────── */
    .print-day {
        page-break-inside: avoid;
        break-inside: avoid;
        margin-bottom: 8pt;
        border: 0.75pt solid #ccc;
        border-radius: 3pt;
        overflow: hidden;
    }

    .pd-header {
        display: flex;
        align-items: center;
        gap: 6pt;
        background: #e8f5e9;
        padding: 4pt 8pt;
        border-bottom: 0.5pt solid #a5d6a7;
    }
    .pd-day-name {
        font-weight: bold;
        font-size: 11pt;
        color: #1b5e20;
        flex: 1;
    }
    .pd-date {
        font-size: 9pt;
        color: #555;
    }
    .pd-cal {
        font-size: 9pt;
        font-weight: 600;
        color: #2e7d32;
    }

    /* ── Meals inside a day ───────────────────────────────────────── */
    .pd-meals {
        display: flex;
        flex-wrap: wrap;
        gap: 0;
        padding: 4pt 6pt;
    }
    .pd-meal {
        flex: 1;
        min-width: 100pt;
        padding: 3pt 6pt;
        border-right: 0.5pt solid #e0e0e0;
    }
    .pd-meal:last-child { border-right: none; }

    .pd-meal-name {
        font-size: 8pt;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 0.3pt;
        color: #555;
        border-bottom: 0.5pt solid #e0e0e0;
        padding-bottom: 2pt;
        margin-bottom: 3pt;
    }
    .pd-food {
        font-size: 9pt;
        margin-bottom: 3pt;
        line-height: 1.3;
    }
    .pd-food-name { font-weight: 600; }
    .pd-food-brand { color: #666; font-size: 8pt; }
    .pd-food-detail {
        display: block;
        color: #777;
        font-size: 8pt;
    }
    .pd-empty {
        color: #aaa;
        font-style: italic;
        font-size: 8pt;
        margin: 0;
    }

    /* ── Footer ───────────────────────────────────────────────────── */
    .print-footer {
        margin-top: 12pt;
        padding-top: 6pt;
        border-top: 0.5pt solid #ccc;
        font-size: 8pt;
        color: #888;
        text-align: center;
    }
}
