/**
 * Jillian's Cupboard — Print Stylesheet
 *
 * Applied via media="print" on pages that use the shared layout.
 * Print-specific pages (mealplan_print, grocery_list_print, recipes_print)
 * use their own inline styles and do NOT use this shared layout.
 *
 * This stylesheet affects the main site when the user hits Ctrl+P
 * on a regular page (e.g., grocery list web view, calendar view).
 */

/* Hide non-printable elements */
.navbar,
.navbar-custom,
.btn,
.btn-primary,
.btn-secondary,
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-danger,
.btn-outline-success,
.btn-outline-info,
.alert,
.no-print,
.meal-slot-actions,
.assign-slot-btn,
.grocery-checkbox,
.modal,
.modal-backdrop,
footer {
    display: none !important;
}

/* Clean background for printing */
body {
    background: #fff !important;
    color: #000 !important;
    font-size: 11pt;
}

/* Remove card styling for cleaner print */
.card {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.card-header {
    background: #f5f5f5 !important;
}

/* Calendar adjustments for print */
.calendar-day-card {
    min-height: auto !important;
}

.meal-slot {
    background: #fff !important;
    border-color: #ccc !important;
}

/* Grocery list print adjustments */
.grocery-item.grocery-checked {
    opacity: 0.4;
    text-decoration: line-through;
}

/* Page breaks between recipes */
.recipe-page-break {
    page-break-before: always;
}

/* Ensure links don't show URL */
a {
    color: #000 !important;
    text-decoration: none !important;
}

/* Prevent orphaned headers */
h1, h2, h3, h4, h5 {
    page-break-after: avoid;
}

/* Keep tables together */
table, tr {
    page-break-inside: avoid;
}

@page {
    margin: 0.5in;
}
