/**
 * PayPerRoute v5 — Print Stylesheet
 * Hides navigation and screen-only elements.
 * Formats invoices and job reports for clean paper output.
 */

@media print {
    /* Hide non-printable elements */
    nav,
    footer,
    .no-print,
    .nav-toggle,
    .flash,
    .btn-primary-action,
    button[type="submit"],
    #search-results,
    [hx-get],
    [hx-post] {
        display: none !important;
    }

    /* Reset page layout */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }

    main.container {
        max-width: 100%;
        padding: 0;
        margin: 0;
    }

    /* Invoice formatting */
    .invoice-header {
        border-bottom: 2px solid #000;
        padding-bottom: 1rem;
        margin-bottom: 1.5rem;
    }

    .invoice-table {
        width: 100%;
        border-collapse: collapse;
    }

    .invoice-table th,
    .invoice-table td {
        border: 1px solid #ccc;
        padding: 0.5rem;
        text-align: left;
    }

    .invoice-total {
        font-size: 14pt;
        font-weight: bold;
        text-align: right;
        padding-top: 1rem;
    }

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

    /* Ensure links show URL in print */
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }

    a[href^="#"]:after,
    a[href^="javascript"]:after,
    a[href^="sms:"]:after {
        content: "";
    }
}
