/* Print styles for Orders */
@media print {

    /* Hide everything except the print layout */
    body * {
        visibility: hidden;
    }

    #order-print-layout,
    #order-print-layout * {
        visibility: visible;
    }

    #order-print-layout {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        display: block !important;
        background: white;
        padding: 0;
        margin: 0;
    }

    /* Page Setup */
    @page {
        size: A4;
        margin: 15mm;
    }

    /* Typography */
    #order-print-layout {
        font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        color: #000;
        font-size: 12pt;
        line-height: 1.4;
    }

    .print-logo img {
        max-width: 250px;
        height: auto;
    }

    .customer-info p,
    .order-id-info p {
        margin-bottom: 5px;
    }

    .order-no {
        font-size: 16pt;
        font-weight: 700;
        color: #000;
    }

    /* Table Styles */
    .print-table {
        border-collapse: collapse;
        margin-top: 20px;
        width: 100%;
    }

    .print-table th,
    .print-table td {
        border: 1px solid #000;
        padding: 8px 12px;
        text-align: left;
    }

    .print-table th {
        background-color: #000 !important;
        color: #fff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        font-weight: 700;
        text-transform: uppercase;
    }

    /* Totals Section */
    .print-totals {
        font-weight: 600;
    }

    .print-totals p {
        margin-bottom: 2px;
    }

    /* Driver Section */
    .print-driver {
        font-weight: 700;
        font-size: 14pt;
    }

    /* Footer */
    .print-footer {
        position: fixed;
        bottom: 15mm;
        width: 100%;
        border-top: 1px solid #eee;
        padding-top: 10px;
    }

    .text-muted {
        color: #666 !important;
    }

    .small {
        font-size: 10pt;
    }
}