/* ==========================================================================
   Ahimsa Resources – Print Styles
   Applied via media="print" on the main page AND used by the print preview.
   ========================================================================== */

@page {
    size: 8.5in 11in;
    margin: 0.5in;
}

@media print {

    /* Hide everything except the print overlay when it exists */
    body > *:not(.ares-print-overlay) {
        display: none !important;
    }
    .ares-print-overlay {
        position: static !important;
        left: auto !important;
        top: auto !important;
        width: auto !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        background: none !important;
        padding: 0 !important;
    }

    .ares-print-frame {
        box-shadow: none !important;
        width: 100% !important;
        max-height: none !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    .ares-print-header {
        margin-bottom: 20pt;
        padding-bottom: 12pt;
        border-bottom: 2pt solid #1a1a2e;
    }
    .ares-print-header h1 {
        font-size: 12pt;
    }
    .ares-print-header p {
        font-size: 9pt;
    }

    .ares-print-title {
        font-size: 18pt;
        margin-bottom: 14pt;
    }

    .ares-print-body {
        font-size: 11pt;
        line-height: 1.6;
    }
    .ares-print-body p {
        margin-bottom: 8pt;
    }
    .ares-print-body ul, .ares-print-body ol {
        margin-bottom: 8pt;
        padding-left: 14pt;
    }

    .ares-print-footer {
        margin-top: 24pt;
        padding-top: 12pt;
        border-top: 1pt solid #ccc;
        page-break-inside: avoid;
    }

    .ares-print-qr {
        width: 72pt !important;
        height: 72pt !important;
    }
    .ares-print-qr img,
    .ares-print-qr canvas {
        width: 72pt !important;
        height: 72pt !important;
    }

    .ares-print-footer-text {
        font-size: 9pt;
    }
    .ares-print-footer-text strong {
        font-size: 10pt;
    }

    /* Hide non-print elements that might leak through */
    .ares-modal-overlay,
    .ares-filters,
    .ares-grid,
    .ares-single-actions,
    .ares-single-back {
        display: none !important;
    }

    a { color: inherit !important; text-decoration: none !important; }
    a[href]:after { content: none !important; }
}
