.quote-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; border-top: 1px solid #e8ded6; padding-top: 1.25rem; margin-top: 1.25rem; }
.quote-actions button { border: 1px solid #b74f25; border-radius: 24px; padding: 0.75rem 0.5rem; font: inherit; font-size: 0.95rem; font-weight: 600; cursor: pointer; }
.quote-actions button:disabled { cursor: default; opacity: 0.55; }
.quote-action-secondary { background: white; color: #b74f25; }
.quote-action-secondary:hover { background: #fbece1; }
.quote-actions .quote-action-send { grid-column: 1 / -1; background: #b74f25; color: white; }
.quote-actions #printQuoteHelp { grid-column: 1 / -1; font-size: 0.8rem; color: #58616a; margin: 0; }
.quote-actions #printQuoteHelp:empty { display: none; }
.quote-modal-open { overflow: hidden; }
.quote-request-modal { width: min(720px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); margin: auto; border: 0; padding: 2rem; background: white; color: var(--text-color); box-shadow: 0 20px 80px #02293855; }
.quote-request-modal:not([open]) { display: none; }
.quote-request-modal::backdrop { background: #022938b8; }
.quote-request-modal h2 { padding-right: 2rem; }
.quote-request-modal .contact-form-wrapper { margin-top: 1rem; padding: 0; background: white; border: 0; animation: none; }
.quote-request-modal .contact-fields { grid-template-columns: 1fr 1fr; }
.quote-request-modal .contact-field { margin-bottom: 1rem; }
.quote-request-modal .contact-fields .contact-field { margin-bottom: 0; }
.quote-modal-close { position: absolute; top: 0.7rem; right: 0.8rem; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fcf1e9; color: #01334d; font: inherit; font-size: 1.6rem; cursor: pointer; }
@media (max-width: 600px) { .quote-request-modal { padding: 1.5rem; } .quote-request-modal .contact-fields { grid-template-columns: 1fr; } }
#quotePrintReport { display: none; }
@page { size: A4; margin: 14mm 14mm 16mm; }
@media print {
    body.quote-document { margin: 0 !important; padding: 0 !important; background: white !important; }
    body.quote-document > :not(#quotePrintReport) { display: none !important; }
    .quote-request-modal, .quote-request-modal::backdrop { display: none !important; }
    body.quote-document #quotePrintReport { display: block !important; font: 9pt/1.5 Arial, Helvetica, sans-serif; color: #2c3b44; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
    #quotePrintReport * { box-sizing: border-box; }
    #quotePrintReport p { margin: 0; }
    #quotePrintReport h1, #quotePrintReport h2, #quotePrintReport h3 { color: #01334d; margin: 0; line-height: 1.25; }
    #quotePrintReport h1 { font-size: 27pt; letter-spacing: -0.7pt; }
    #quotePrintReport h2 { font-size: 12pt; margin-bottom: 3mm; break-after: avoid; }
    .document-masthead { display: flex; justify-content: space-between; align-items: center; gap: 8mm; border-top: 2mm solid #b74f25; border-bottom: 0.3mm solid #e8ded6; padding: 7mm 0 6mm; }
    .document-logo { display: block; width: 44mm; height: auto; }
    .document-masthead p { color: #58616a; font-size: 8pt; margin-top: 2mm !important; }
    .document-business { text-align: right; font-size: 8pt; line-height: 1.65; }
    .document-business strong, .document-business span { display: block; }
    .document-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 5mm; padding: 7mm 0 5mm; }
    .document-eyebrow { color: #b74f25; font-size: 7pt; font-weight: 700; letter-spacing: 1.2pt; margin-bottom: 2mm !important; }
    .document-date { text-align: right; font-size: 8pt; white-space: nowrap; }
    .document-date span { display: block; color: #596b60; font-size: 7pt; margin-top: 1mm; }
    .document-intro { background: #fcf1e9; border-left: 1mm solid #b74f25; padding: 4mm 5mm; margin-bottom: 6mm; break-inside: avoid; }
    .document-intro > p { color: #01334d; font-size: 11pt; font-weight: 700; margin-bottom: 1.5mm !important; }
    .document-intro > div { font-size: 8.5pt; }
    .document-recipient { padding-bottom: 5mm; break-inside: avoid; }
    .document-recipient p, .document-notes p { white-space: normal; overflow-wrap: anywhere; }
    .document-service-group { margin-bottom: 6mm; }
    .document-items { width: 100%; border-collapse: collapse; table-layout: fixed; }
    .document-service-col { width: 56%; }
    .document-qty-col { width: 7%; }
    .document-price-col { width: 18.5%; }
    .document-items thead { display: table-header-group; }
    .document-items th { font-size: 7pt; letter-spacing: 0.2pt; background: #01334d; color: white; padding: 2.5mm; text-align: left; }
    .document-items td { vertical-align: top; padding: 3.5mm 2.5mm; border-bottom: 0.25mm solid #e8ded6; overflow-wrap: anywhere; }
    .document-items tr { break-inside: avoid; }
    .document-service-name { color: #01334d; display: block; font-size: 9.5pt; margin-bottom: 1mm; }
    #quotePrintReport .document-detail { font-size: 7.5pt; color: #58616a; margin-top: 1mm; }
    #quotePrintReport .document-credit { font-size: 8pt; color: #b74f25; font-weight: 700; margin-top: 2mm; }
    .document-items .document-quantity { text-align: center; }
    .document-items .document-money { text-align: right; font-variant-numeric: tabular-nums; }
    .document-money small { display: block; font-size: 7pt; font-weight: normal; color: #596b60; margin-top: 0.5mm; }
    .document-line-total { font-weight: 700; color: #01334d; }
    .document-pending-label { font-size: 8pt; color: #815117; }
    .document-warning { padding: 3mm 4mm; border-left: 1mm solid #d19738; background: #fff8eb; margin-bottom: 5mm; font-size: 8pt; break-inside: avoid; }
    .document-summary { margin: 7mm 0; break-inside: avoid; }
    .document-summary > p { color: #58616a; font-size: 8pt; margin-bottom: 3mm !important; }
    .document-totals { display: flex; flex-wrap: wrap; gap: 3mm; }
    .document-total-block { flex: 1 1 50mm; background: #fcf1e9; border-top: 0.7mm solid #b74f25; padding: 3.5mm; }
    .document-total-block h3 { font-size: 9pt; margin-bottom: 3mm !important; }
    .document-total-block dl { margin: 0; }
    .document-total-block dl > div { display: flex; justify-content: space-between; gap: 2mm; font-size: 7.5pt; margin-top: 1.5mm; }
    .document-total-block dd { margin: 0; text-align: right; white-space: nowrap; }
    .document-total-block .document-grand-total { border-top: 0.25mm solid #d4bdae; padding-top: 2.5mm; margin-top: 2.5mm; font-weight: bold; color: #01334d; }
    .document-grand-total dd { font-size: 13pt; line-height: 1; }
    .document-grand-total small { display: block; font-size: 7pt; font-weight: normal; margin-top: 1.5mm; }
    .document-notes { padding: 4mm 0; break-inside: avoid; }
    .document-next { border-top: 0.3mm solid #e8ded6; padding: 5mm 0 4mm; break-inside: avoid; }
    .document-next h2 { margin-bottom: 2mm !important; }
    .document-next p { font-size: 8.5pt; }
    .document-terms { font-size: 7pt; color: #58616a; break-inside: avoid; }
    .document-terms p { margin-top: 1.5mm !important; }
    .document-footer { display: flex; justify-content: space-between; border-top: 0.25mm solid #e8ded6; padding-top: 3mm; margin-top: 5mm; font-size: 7.5pt; color: #58616a; break-inside: avoid; }
    .document-footer strong { color: #b74f25; }
}
