.quote-print-only { display: none; }

@media print {
    @page { size: A4 portrait; margin: 12mm; }

    .quote-screen, .print-hide, .sp-topbar, .sp-footer,
    .quote-centre .btn, .quote-centre .scroll-to-top { display: none !important; }

    html, body.quote-centre, .quote-centre > .body,
    .quote-centre .main, .quote-centre .section, .quote-centre .container,
    .quote-centre .card, .quote-centre .card-body {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: white !important;
        box-shadow: none !important;
        color: black !important;
        font-family: Arial, sans-serif;
        font-size: 10pt;
        line-height: 1.4;
    }

    .quote-print-only { display: block !important; }
    .quote-print-brand {
        font-size: 18pt;
        font-weight: bold;
        margin-bottom: 6mm;
    }
    .quote-print-summary h3 { font-size: 14pt; margin: 0 0 4mm; }
    .quote-specification {
        display: grid;
        grid-template-columns: 130px minmax(0, 1fr);
        gap: 4px 12px;
        margin: 16px 0;
    }
    .quote-specification dt { font-weight: bold; }
    .quote-specification dd { margin: 0; overflow-wrap: anywhere; }
    .quote-item-summary { width: 100%; table-layout: fixed; margin-bottom: 20px; }
    .quote-item-summary th, .quote-item-summary td {
        padding: 6px;
        border-bottom: 1px solid #ccc;
        text-align: left;
        overflow-wrap: anywhere;
    }
    .quote-item-summary th:last-child { width: 25%; }
    .quote-item-summary tr, .quote-print-totals, .quote-print-summary .alert { break-inside: avoid; }
    .quote-print-summary .alert { font-size: 9pt; padding: 3mm; margin-top: 5mm; }
    .quote-centre .table-responsive { overflow: visible !important; }
    .print-sheet-results { width: 100%; table-layout: fixed; font-size: 8pt !important; }
    .print-sheet-results th, .print-sheet-results td { white-space: normal; overflow-wrap: anywhere; padding: 3px; }
    .print-sheet-results tr { break-inside: avoid; }
}
