/* IQBAL BROS SOUTH EX - Print Stylesheet */

@media print {
    /* Hide navigation and unnecessary elements */
    .navbar,
    .btn,
    .pagination,
    .alert,
    .search-filters,
    .no-print {
        display: none !important;
    }
    
    /* Reset body styles for print */
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
        line-height: 1.4;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .main-content {
        padding-top: 0 !important;
        min-height: auto !important;
    }
    
    /* Container adjustments */
    .container,
    .container-fluid {
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Print header for order forms */
    .print-header {
        display: block !important;
        text-align: center;
        margin-bottom: 20pt;
        padding-bottom: 10pt;
        border-bottom: 2pt solid #000;
    }
    
    .print-logo {
        font-size: 18pt;
        font-weight: bold;
        margin-bottom: 5pt;
    }
    
    .print-address {
        font-size: 10pt;
        color: #666;
    }
    
    /* Order details formatting */
    .order-details {
        page-break-inside: avoid;
        margin-bottom: 15pt;
    }
    
    .order-section {
        margin-bottom: 12pt;
        padding: 8pt;
        border: 1pt solid #ccc;
        border-radius: 0;
    }
    
    .order-section h5 {
        font-size: 12pt;
        font-weight: bold;
        margin-bottom: 6pt;
        color: #000;
        border-bottom: 1pt solid #000;
        padding-bottom: 2pt;
    }
    
    /* Customer information - hide phone number */
    .customer-phone {
        display: none !important;
    }
    
    /* Measurements formatting */
    .measurements {
        font-family: 'Courier New', monospace;
        font-size: 10pt;
        background: #f9f9f9;
        padding: 6pt;
        border: 1pt solid #ddd;
        margin: 4pt 0;
    }
    
    /* Table formatting for print */
    table {
        width: 100% !important;
        border-collapse: collapse;
        margin-bottom: 15pt;
        font-size: 10pt;
    }
    
    th, td {
        border: 1pt solid #000 !important;
        padding: 4pt 6pt !important;
        text-align: left;
    }
    
    th {
        background: #f0f0f0 !important;
        font-weight: bold;
        color: #000 !important;
    }
    
    /* Hide sensitive information */
    .sensitive-info,
    .phone-number,
    .customer-phone {
        display: none !important;
    }
    
    /* Price and dates */
    .price-section {
        font-size: 11pt;
        font-weight: bold;
        margin: 10pt 0;
        padding: 6pt;
        border: 2pt solid #000;
        text-align: center;
    }
    
    .dates-section {
        display: flex;
        justify-content: space-between;
        margin: 10pt 0;
        font-size: 10pt;
    }
    
    /* Signature section */
    .signature-section {
        margin-top: 30pt;
        display: flex;
        justify-content: space-between;
        page-break-inside: avoid;
    }
    
    .signature-box {
        width: 200pt;
        border-bottom: 1pt solid #000;
        text-align: center;
        padding-top: 20pt;
        font-size: 10pt;
    }
    
    /* Page breaks */
    .page-break {
        page-break-before: always;
    }
    
    .no-page-break {
        page-break-inside: avoid;
    }
    
    /* Footer for print */
    .print-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        text-align: center;
        font-size: 8pt;
        color: #666;
        border-top: 1pt solid #ccc;
        padding-top: 5pt;
    }
    
    /* Order status styling */
    .status-print {
        font-weight: bold;
        font-size: 11pt;
        text-transform: uppercase;
        letter-spacing: 1pt;
    }
    
    /* Comments section */
    .comments-section {
        margin: 10pt 0;
        padding: 8pt;
        border: 1pt dashed #666;
        background: #f9f9f9;
    }
    
    .comments-section h6 {
        font-size: 10pt;
        font-weight: bold;
        margin-bottom: 4pt;
    }
    
    /* Ensure proper margins for A4 */
    @page {
        size: A4;
        margin: 1in;
    }
    
    /* Order ID prominence */
    .order-id-print {
        font-size: 14pt;
        font-weight: bold;
        text-align: center;
        margin: 10pt 0;
        padding: 6pt;
        border: 2pt solid #000;
        background: #f0f0f0;
    }
    
    /* Business contact info for print */
    .business-contact-print {
        font-size: 9pt;
        text-align: center;
        margin-top: 15pt;
        padding-top: 10pt;
        border-top: 1pt solid #ccc;
        color: #666;
    }
    
    /* Hide web-specific elements */
    .btn-group,
    .dropdown,
    .modal,
    .tooltip,
    .popover,
    .carousel,
    .collapse,
    .navbar-toggler {
        display: none !important;
    }
    
    /* Ensure text is black */
    * {
        color: black !important;
        background: transparent !important;
    }
    
    /* Exception for backgrounds that should show */
    .measurements,
    .order-section,
    .price-section,
    .order-id-print {
        background: #f9f9f9 !important;
    }
}
