/**
 * ============================================================================
 * MUAADH PRINT STYLES
 * ============================================================================
 *
 * Print-only rules extracted from muaadh-core.css in Phase 3 Wave 1
 * (2026-05-13).
 *
 * Loaded on every page that includes @themeStyles via shell layouts.
 * The browser activates @media print only when printing or print-preview,
 * so this file has zero runtime cost in normal screen rendering.
 *
 * Owns:
 *   - @page declarations for A4 sizing (used by purchase invoice print views)
 *   - @media print overrides for hiding shell chrome and full-bleed layout
 * ============================================================================
 */

/* ============================================================================
 * @page — A4 sizing (consumed by purchase print views:
 *   user/purchase/print, merchant/sales/print, operator/purchase/print)
 * ============================================================================ */
@page { size: auto; margin: 0mm; }
@page {
    size: A4;
    margin: 0;
}

/* ============================================================================
 * @media print — hide shell chrome, full-bleed content area
 * ============================================================================ */
@media print {
    .muaadh-shell-sidebar,
    .muaadh-shell-topbar,
    .muaadh-shell-footer,
    .muaadh-shell-overlay {
        display: none;
    }

    .muaadh-shell-main {
        margin-left: 0;
        margin-right: 0;
    }

    .muaadh-shell-content {
        padding: 0;
    }

    .muaadh-pagehead,
    form,
    .muaadh-action {
        display: none;
    }

    .muaadh-panel {
        border: var(--chassis-border-thin) solid var(--theme-border);
    }

    html,
    body {
        width: 210mm;
        height: 287mm;
    }

    /* Belt-and-suspenders: same hide list outside the nested rule above.
     * Kept verbatim from the original consolidation in core.css to avoid
     * any specificity surprise during the split. */
    .muaadh-pagehead,
    .muaadh-shell-topbar,
    .muaadh-action {
        display: none;
    }
}

/* ============================================================================
 * APPENDED (Phase 13 Wave 13, 2026-05-13): tile box-shadow override
 * Pulled from muaadh-frontend.css print block.
 * ============================================================================ */
@media print {
    .muaadh-tile { box-shadow: none; }
}
