/* This stylesheet ONLY runs when the user prints */

/* Hide every single element on the page that we DON'T want to print */
body > header,
body > main .container > .quote-generator-container > .text-content,
.quote-controls,
.receipt-header,
.receipt-actions,
body > footer,
.chat-icon,
.chat-window {
    display: none !important;
}

.quote-generator-container {
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 20px !important;
    box-shadow: none !important;
    border: none !important;
}

.quote-grid {
    display: block !important;
}

.quote-receipt {
    border: none !important;
    box-shadow: none !important;
    page-break-inside: avoid;
}

/* --- Start: Full Invoice Styling --- */
.print-invoice {
    font-family: 'Courier Prime', monospace;
    color: #333;
    position: relative;
    z-index: 1;
}

.print-invoice::before {
    content: 'Estimate Only';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 8rem;
    font-weight: bold;
    color: transparent;
    -webkit-text-stroke: 2px rgba(0, 0, 0, 0.08);
    text-stroke: 2px rgba(0, 0, 0, 0.18);
    text-align: center;
    z-index: -1;
    pointer-events: none;
    text-transform: uppercase;
    width: 100%;
}

/* --- Top Header Section --- */
.print-top-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #f39c12;
    padding-bottom: 1.5rem;
    font-family: 'Lato', sans-serif;
}
.print-logo {
    height: 60px;
    width: auto;
}
.company-info {
    text-align: right;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
}

/* --- Two-Column Section for Customer and Event Info --- */
.print-details-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
}
.customer-info-print {
    text-align: left;
    line-height: 1.6;
}
.customer-info-print strong {
    font-size: 1rem;
    color: #333;
    display: block;
    margin-bottom: 0.5rem;
}
.event-info-print {
    text-align: right;
    line-height: 1.6;
}
.event-info-print strong {
    font-size: 1rem;
    color: #333;
    display: block;
    margin-bottom: 0.5rem;
}
.print-date {
    margin-top: 1.5rem;
    line-height: 1.6;
    color: #555;
}
.expiration-date {
    font-style: italic;
}


/* --- Receipt Items --- */
.receipt-duration {
    text-align: center !important;
    font-size: 1rem !important;
    font-weight: bold !important;
    margin-bottom: 1.5rem !important;
    padding-bottom: 1rem !important;
    border-bottom: 1px dashed #ccc !important;
    font-family: 'Lato', sans-serif !important;
}

.receipt-item-list { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.receipt-item { display: flex !important; justify-content: space-between !important; padding: 8px 0 !important; border-bottom: 1px solid #eee !important; }
.receipt-footer { margin-top: 1.5rem !important; border-top: 2px solid #333 !important; padding-top: 1rem !important; }
.receipt-total-line { display: flex !important; justify-content: space-between !important; padding: 4px 0 !important; font-size: 1rem !important; }
.final-total, .final-total span { font-size: 1.2rem !important; font-weight: bold !important; color: #000 !important; }
.print-notes { margin-top: 2rem !important; text-align: center !important; font-size: 0.8rem !important; color: #666 !important; font-family: 'Lato', sans-serif !important; }

/* --- NEW: QR Code Section Styles --- */
.print-qr-section {
    display: flex !important;
    align-items: center !important;
    gap: 2rem !important;
    margin-top: 2rem !important;
    border-top: 1px dashed #ccc !important;
    padding-top: 1.5rem !important;
    font-family: 'Lato', sans-serif !important;
}
.qr-code-container {
    padding: 10px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    border-radius: 8px;
    flex-shrink: 0; /* Prevents container from shrinking */
}
.qr-code-container img { 
    display: block !important;
    width: 120px !important; 
    height: 120px !important; 
}
.qr-quote {
    text-align: left;
}
.qr-quote strong {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
}
.qr-quote .fancy-font {
    font-family: 'Dancing Script', cursive;
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
    margin-top: 0.5rem;
}
