@media print{
 @page{size:A4 portrait;margin:13mm 14mm;
  @top-right{content:"ماشین حساب پتاهاب";font-family:Vazirmatn,Tahoma,sans-serif;font-size:8pt;color:#172a45;direction:rtl;text-align:right;vertical-align:middle}
 }
 html{scroll-behavior:auto}body{background:#fff;color:#172a45;font-size:10pt;line-height:1.75}
 header,.hero,.architecture,.input-panel,.catalog,footer,.report-actions,#share-status{display:none!important}
 .wrap{max-width:none;padding:0}.workspace{display:block}.workspace>div{min-width:0}
 .summary{border:0;border-bottom:1px solid #cbd6e5;border-radius:0;padding:0 0 4mm;margin:0 0 5mm;break-inside:avoid}
 .summary>.eyebrow{font-size:8pt}.summary h2{font-size:14pt;margin:1mm 0 3mm}
 .metrics{grid-template-columns:repeat(3,1fr);gap:2mm 6mm}.metric{padding:1mm 0 2mm}.metric span,.metric small{font-size:8pt}.metric strong{font-size:15pt}
 .timeline{margin:3mm 0 1mm}.timeline>b{font-size:9pt}.timeline-labels{font-size:8pt}.timeline-bar{height:2mm}
 .summary details{display:none!important}.result{border:0;border-radius:0;padding:0;margin:0;break-inside:auto;overflow:visible}
 .report-head{padding:4mm 5mm;background:#17345f;break-inside:avoid;break-after:avoid}.report-head h2{font-size:15pt;margin:1mm 0}.print-meta{font-size:8pt}
 .report-body{padding:4mm 0 0}.product{grid-template-columns:1fr 38mm;gap:5mm;break-inside:avoid;break-after:avoid}.product img{height:38mm;width:100%;object-fit:contain}.product .model-name{font-size:14pt;margin:2mm 0}.product .caption{font-size:8pt;margin:1mm 0}.badge{font-size:7.5pt;padding:1mm 2mm}
 .specs{grid-template-columns:1fr 1fr;gap:0 6mm;margin:3mm 0;break-inside:avoid}.specs div{padding:1.5mm 0;font-size:9pt;break-inside:avoid}.specs b{white-space:nowrap}
 .notice{font-size:8pt;padding:2mm 3mm;margin:3mm 0;break-inside:avoid}.report-body h3{font-size:11pt;break-after:avoid;margin:4mm 0 2mm}.reason{font-size:9pt;line-height:1.85}.reason p{break-inside:avoid;margin:2mm 0;orphans:3;widows:3}
 .report-body details{display:none!important}.disclaimer{font-size:8pt;line-height:1.8;margin:4mm 0 0;padding-top:3mm;break-inside:avoid}h2,h3{orphans:3;widows:3}p{orphans:3;widows:3}
}
@media print{.report-body>h3{break-before:page;margin-top:0}.reason{font-size:10pt;line-height:1.95}.reason p{margin:3mm 0}.report-body>.disclaimer{font-size:9pt}}

.print-estimate-qr{display:none}
@media print{
 .print-estimate-qr{display:block;float:left;width:43mm;margin:0 5mm 3mm 0;padding:2mm;border:1px solid #d8e1eb;border-radius:2mm;text-align:center;text-decoration:none;color:#172a45;break-inside:avoid}
 .print-estimate-qr svg{display:block;width:39mm;height:39mm;margin:0 auto;shape-rendering:crispEdges;background:white}
 .print-estimate-qr b,.print-estimate-qr span{display:block;font-size:8pt;line-height:1.6}
 .reason::after{content:"";display:block;clear:both}
}
