/* Print-specific styles for Work Orders */

/* Hide print-only content on screen */
.print-only {
    display: none;
}

@media print {
    /* Hide navigation and UI elements */
    .kt-header,
    .kt-sidebar,
    .kt-footer,
    nav,
    .no-print,
    button,
    .kt-btn,
    a[href^="/"],
    .breadcrumb {
        display: none !important;
    }

    /* Reset page styles */
    body {
        background: white !important;
        color: black !important;
        margin: 0;
        padding: 20px;
    }

    /* Show only print content */
    .print-only {
        display: block !important;
    }

    /* Work Order Print Layout */
    .work-order-print {
        max-width: 100%;
        margin: 0 auto;
    }

    .work-order-print-header {
        border-bottom: 2px solid #22c55e;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .work-order-print-title {
        font-size: 24px;
        font-weight: bold;
        margin-bottom: 10px;
    }

    .work-order-print-info {
        display: flex;
        justify-content: space-between;
        margin-top: 10px;
        font-size: 12px;
    }

    .work-order-print-section {
        margin-bottom: 20px;
        page-break-inside: avoid;
    }

    .work-order-print-section-title {
        font-size: 14px;
        font-weight: bold;
        color: #22c55e;
        margin-bottom: 8px;
        border-bottom: 1px solid #e5e7eb;
        padding-bottom: 4px;
    }

    .work-order-print-qr {
        position: fixed;
        bottom: 20px;
        right: 20px;
        text-align: center;
    }

    .work-order-print-qr-label {
        font-size: 10px;
        color: #666;
        margin-bottom: 5px;
    }

    /* Remove backgrounds and shadows */
    .kt-card,
    .glass,
    .glass-70,
    .glass-90 {
        background: white !important;
        box-shadow: none !important;
        border: none !important;
    }

    /* Ensure readable text */
    * {
        color-adjust: exact;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

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

    /* Images */
    img {
        max-width: 100%;
        page-break-inside: avoid;
    }

    /* Tables */
    table {
        width: 100%;
        border-collapse: collapse;
    }

    table th,
    table td {
        border: 1px solid #ddd;
        padding: 8px;
        text-align: left;
    }

    table th {
        background-color: #f3f4f6 !important;
        font-weight: bold;
    }
}
