/**
 * Live-window print safety. Real print uses a1-print-onepage.js iframe.
 * If native print of this window ever fires (common on iPhone): hide chrome/buttons
 * only. Do NOT rewrite estimate width/transform or force every background white —
 * that caused missing half-page, no colors, and multi-page gaps.
 */
@media print {
  @page {
    size: letter portrait;
    margin: 0.25in;
  }

  html,
  body {
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Hide chrome / action bar — nuclear (phone print was still showing 4 buttons) */
  html body #a1-your-estimate,
  html body #a1-your-estimate *,
  html body .a1-est-landing #a1-your-estimate,
  html body .a1-est-landing #a1-your-estimate *,
  html.a1-customer-link #a1-your-estimate,
  html.a1-customer-link #a1-your-estimate *,
  html.a1-signed-view #a1-your-estimate,
  html.a1-signed-view #a1-your-estimate *,
  html.a1-on-customer-est #a1-your-estimate,
  html.a1-on-customer-est #a1-your-estimate *,
  html body #a1-your-estimate > *,
  html body #a1-your-estimate > button,
  html body #a1-your-estimate button,
  html body #a1-your-estimate .a1-have-q-wrap,
  #a1-cust-bg,
  #a1-float-sign-accept,
  #a1-sign-accept-top,
  #a1-reset-view-chip,
  #a1-sig-tip,
  #a1-sign-success,
  #a1-back-to-estimate,
  .a1-site-header,
  .a1-site-spacer,
  .a1-mobile-nav,
  .a1-est-sidebar,
  .a1-photos-expand-box,
  .a1-have-q-wrap,
  .a1-why-choose,
  [data-a1-why-choose],
  .no-print,
  .print-hide,
  .print-hidden,
  [data-sonner-toaster],
  header:not(.header-banner):not(.a1-est-doc-header),
  nav,
  footer,
  button.a1-print-doc-btn,
  button.a1-download-pdf-btn,
  button.a1-sign-gate-btn,
  button.a1-view-photos-btn,
  button.a1-request-invoice-btn,
  button.a1-have-q-btn {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  #estimate-document {
    display: block !important;
    visibility: visible !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}
