/**
 * Print Studio screen preview — Paged.js generated page stack.
 * Layout/typography live in per-menu style.css (template CSS).
 */

@media screen {
    html {
        background: #c5c5c5;
    }

    body.paged-preview {
        margin: 0;
        padding: 16px 0 32px;
        background: #c5c5c5;
    }

    body.paged-preview .pagedjs_pages {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0 !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 0 0 48px !important;
        box-sizing: border-box;
    }

    body.paged-preview .pagedjs_pages>.pagedjs_page {
        flex: 0 0 auto;
        margin: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    }

    /* Visible page break between sheets (studio preview only) */
    body.paged-preview .pagedjs_pages>.pagedjs_page+.pagedjs_page {
        border-top: 1px solid #666 !important;
        margin-top: 12px !important;
    }

    body.paged-preview .pagedjs_margin-content {
        color: #6b6258;
        font-size: 9pt;
    }

    body.paged-preview .menu-print {
        min-height: 0;
        box-shadow: none;
    }
}

@media print {
    body.paged-preview {
        padding: 0;
        background: #fff;
    }

    body.paged-preview .pagedjs_pages {
        gap: 0 !important;
    }

    body.paged-preview .pagedjs_pages>.pagedjs_page {
        box-shadow: none;
    }

    body.paged-preview .pagedjs_pages>.pagedjs_page+.pagedjs_page {
        border-top: none !important;
        margin-top: 0 !important;
    }
}