/* =========================================
   ASSETS/CSS/PRINT.CSS (V1.2 HEADER)
   ========================================= */

@media print {
    @page { size: auto; }
    
    body { 
        background-color: white !important; 
        margin: 0 !important; 
        padding: 0 !important;
        -webkit-print-color-adjust: exact !important; 
        print-color-adjust: exact !important;
    }
    
    .no-print, nav, main, header, footer, .print\:hidden { display: none !important; }

    .print-layout { 
        display: flex !important; 
        flex-direction: column; 
        min-height: 98vh; 
        width: 100%;
        background: white;
        color: black;
    }

    /* GRID: Portrait Default */
    .quick-grid { 
        display: grid; 
        grid-template-columns: 1fr 220px; /* Slightly narrower map column */
        gap: 0.5rem; 
        align-items: start; 
        flex: 1;
    }

    /* PARTS LIST: Tighter and smaller for V1.2 look */
    .quick-parts-list { 
        list-style: none; 
        margin: 0; 
        padding: 0; 
        display: grid; 
        grid-template-columns: 1fr 1fr; 
        column-gap: 1rem; 
        row-gap: 0.05rem; /* Ultra tight */
        align-items: center; 
    }

    .quick-part-row { 
        display: flex; 
        justify-content: space-between; 
        align-items: center; 
        border-bottom: 1px dotted #e5e7eb; /* Dotted line like V1.2 */
        padding-bottom: 0.05rem;
        padding-top: 0.05rem;
        break-inside: avoid;
    }

    /* MAP COLUMN */
    .quick-map-host { 
        display: flex; 
        flex-direction: column;
        align-items: center; 
        padding-left: 0; /* No border in V1.2 map */
        height: 100%;
    }
    
    .vehicle-map { 
        width: 100%; 
        height: auto; 
        max-height: 8in; 
        object-fit: contain;
        fill-opacity: 1;
    }

    /* FOOTER */
    .quick-footer { 
        margin-top: auto; 
    }
}

/* LANDSCAPE OVERRIDES */
@media print and (orientation: landscape) {
    .quick-grid { 
        grid-template-columns: 1fr 180px; 
        gap: 2rem; 
    }

    .quick-parts-list { 
        grid-template-columns: repeat(3, 1fr) !important; 
        column-gap: 2rem; 
    }

    .vehicle-map { max-height: 5.75in !important; }
}