@media print {
    /* Hide everything except the tracking section */
    body * {
        display: none !important;
    }
    #HLSARTTrackingSection,
    #HLSARTTrackingSection * {
        display: block !important;
    }

    /* Main container styling */
    #HLSARTTrackingSection {
        font-family: Arial, sans-serif;
        font-size: 12pt;
        max-width: 600px;
        margin: 0 auto;
        padding: 20px;
        background: #fff;
    }

    /* Hide unnecessary elements */
    .wysiwyg p,
    .MOV_Print,
    #HLSARTTrackingSection img[src*="rocket.gif"] {
        display: none !important;
    }

    /* Add logo */
    #HLSARTTrackingSection::before {
        content: url('../images/logo@2x.png');
        display: block !important;
        text-align: center;
        margin-bottom: 20px;
    }

    /* Title */
    h1 {
        text-align: center;
        font-size: 16pt;
        margin: 10px 0;
    }

    /* Subheading */
    h2.h4 {
        font-size: 14pt;
        margin: 20px 0 10px;
    }

    /* Table styling */
    .tracking-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 10pt;
        margin-bottom: 20px;
    }
    .tracking-table th,
    .tracking-table td {
        border: 1px solid #000;
        padding: 8px;
        text-align: left;
    }
    .tracking-table th {
        background-color: #cf2e2e;
        color: white;
        font-weight: bold;
    }
    .tracking-table tr:nth-child(even) {
        background-color: #f9f9f9;
    }
    .tracking-table .font-bold,
    .tracking-table .has-vivid-red-color {
        font-weight: bold;
        color: #000 !important; /* Override vivid-red for print */
    }

    /* Column widths for Result Summary */
    .tracking-table:first-of-type th:nth-child(1),
    .tracking-table:first-of-type td:nth-child(1) {
        width: 15%;
    }
    .tracking-table:first-of-type th:nth-child(2),
    .tracking-table:first-of-type td:nth-child(2) {
        width: 25%;
    }
    .tracking-table:first-of-type th:nth-child(3),
    .tracking-table:first-of-type td:nth-child(3) {
        width: 35%;
    }
    .tracking-table:first-of-type th:nth-child(4),
    .tracking-table:first-of-type td:nth-child(4) {
        width: 25%;
    }

    /* Column widths for Tracking History */
    .tracking-table:last-of-type th:nth-child(1),
    .tracking-table:last-of-type td:nth-child(1) {
        width: 20%;
    }
    .tracking-table:last-of-type th:nth-child(2),
    .tracking-table:last-of-type td:nth-child(2) {
        width: 20%;
    }
    .tracking-table:last-of-type th:nth-child(3),
    .tracking-table:last-of-type td:nth-child(3) {
        width: 30%;
    }
    .tracking-table:last-of-type th:nth-child(4),
    .tracking-table:last-of-type td:nth-child(4) {
        width: 15%;
    }
    .tracking-table:last-of-type th:nth-child(5),
    .tracking-table:last-of-type td:nth-child(5) {
        width: 15%;
    }

    /* Footer */
    #HLSARTTrackingSection::after {
        content: "© 2025 HLS Global Logistics. All Rights Reserved.";
        display: block !important;
        text-align: center;
        font-size: 8pt;
        margin-top: 20px;
    }
}