/* 📌 PRINT-SPECIFIC OVERRIDES */
@media print {
    /* ✅ Force Star Printer Paper Size */
    body {
        width: 88mm; /* Standard receipt width */
        font-size: 14px;
        margin: 0;
        padding: 0;
        background: white;
    }
    /* ✅ Hide Navbar */
    .site-footer {
        display: none !important;
    }
    .shop-header,
    .shop-header * {
        display: none !important;
    }
    .navbar {
        display: none !important;
    }
    .staff-chat-bubble {
        display: none !important; /* Hide chat bubble in print */
    }
    .back-bubble {
        display: none !important; /* Hide back bubble in print */
    }
    .messages {
        display: none !important; /* Hide messages in print */
    }

    /* ✅ Fix Header Font & Remove Shadows */
    h1, h2, h3, h4, h5, h6 {
        font-family: Arial, sans-serif !important; /* Override base font */
        font-size: 16px; /* Adjust for better readability */
        font-weight: bold;
        text-shadow: none !important; /* Remove print blur */
    }

    /* ✅ Fix Logo Alignment */
    .logo {
        text-align: center;
        margin-bottom: 5px;
    }
    
    .logo img {
        width: 120px;
        height: auto;
    }

    /* ✅ Ensure Barcode Prints Properly */
    .barcode {
        text-align: center;
        margin: 5px 0;
    }

    .barcode p {
        font-family: 'Libre Barcode 39', sans-serif;
        font-size: 28px; /* Reduce size if needed */
        margin: 0;
    }

    /* ✅ Fix Table Layout to Prevent Wrapping */
    /* Optimize Table Layout */
    /* Optimize Table Layout */
    #receipt-container table {
        width: 100%;
        border-collapse: collapse;
        table-layout: auto;
    }

    /* FORCE compact receipt sizing */
    #receipt-container table th,
    #receipt-container table td,
    #receipt-container table.table tbody td {
        font-size: 10px !important;
        padding: 3px !important;
        border-bottom: 1px solid black;
        line-height: 1.2;
    }

    /* First column wraps */
    #receipt-container table th:first-child,
    #receipt-container table td:first-child {
        white-space: normal;
        overflow-wrap: break-word;
        word-break: normal;
    }

    /* Numeric columns tight */
    #receipt-container table th:nth-child(n+2),
    #receipt-container table td:nth-child(n+2) {
        white-space: nowrap;
        text-align: right;
    }

    /* Totals Styling */
    .totals p {
        font-size: 12px;
        font-weight: bold;
        text-align: right;
        margin: 2px 0;
    }

    /* ✅ Hide Buttons & Unwanted Elements */
    .btn, .print-button, .screen-only {
        display: none !important;
    }
    /* Hide rental floating sidebar + toggle in receipts */
    #floatingSidebar,
    #toggleSidebarBtn,
    .toggle-sidebar-btn,
    #rentalWizardSidebar,
    #rentalSummaryContainerSidebar {
        display: none !important;
    }

    /* ✅ Remove Margins to Fit Receipt Printer */
    @page {
        size: 88mm auto;
        margin: 0;
    }
        /* Optimize Return Policy for Space */
    .return-policy {
        text-align: center;
        font-size: 10px;  /* Reduce font size */
        padding: 5px 0;  /* Reduce padding */
        margin-top: 5px;  /* Minimize top spacing */
        line-height: 1.1;  /* Reduce line spacing */
    }

    /* Reduce return policy header size */
    .return-policy h1 {
        font-size: 12px;
        font-weight: bold;
        margin-bottom: 2px;
    }

    /* Remove extra space between paragraphs */
    .return-policy p {
        margin: 1px 0; /* Minimize spacing */
    }
    .claim-qr {
        width: 85px;
        height: 85px;
        margin: 5px auto;
        display: block;
    }

}

/* ✅ Gift Card Print Section Isolation */

