/* Keep the customer estimate and its service totals compact when printed. */
@media print{
  .qp-public .qp-plan{margin:12px 0;break-inside:avoid}
  .qp-public .plan-costs>div{padding:8px 0}
  .qp-public .plan-total{padding:10px 0 6px}
  .qp-public .qp-grid{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);margin-top:12px;padding-top:10px}
  .qp-public .qp-grid>div{min-width:0}
  .qp-public .qp-grid p{overflow-wrap:anywhere}
  #quote-print .qp{font-size:12px;line-height:1.45}
  #quote-print .qp-cond th{width:18%}
  #quote-print .qp-cond th,#quote-print .qp-cond td{padding:5px 7px}
  #quote-print .qp-grid{margin-top:12px;padding-top:10px}
  #quote-print .qp-foot{margin-top:10px;padding-top:7px}
  #quote-print .qp-contact img{width:88px;height:88px;object-fit:contain}
  #quote-print .qp-lines tfoot{display:table-row-group}
  .qp-lines tr,.qp-grid,.qp-foot{break-inside:avoid}
  .qp-lines .qp-food-head{break-after:avoid;page-break-after:avoid}
  .qp-lines .qp-food-head > th{
    padding:6px 9px;border-top:2px solid #262B2E;background:#F3F2EF;color:#262B2E;
    text-align:left;font-size:12px;line-height:1.4
  }
  .qp-lines .qp-food-head small{margin-inline-start:6px;color:#4E545B;font-size:11px;font-weight:500}
  .qp-lines .qp-food-item > td,.qp-lines .qp-food-item > th,
  .qp-lines .qp-food-tax > td,.qp-lines .qp-food-tax > th,
  .qp-lines .qp-food-total > td,.qp-lines .qp-food-total > th{padding:5px 9px}
  .qp-lines .qp-food-item > :nth-child(2){color:#4E545B;word-break:keep-all;overflow-wrap:anywhere}
  .qp-lines .qp-food-tax > *{color:#4E545B;font-size:11px;font-weight:500}
  .qp-lines .qp-food-total > *{border-top:1px solid #737982;background:#F3F2EF;font-weight:700}
  .qp-lines .qp-food-item > :last-child,.qp-lines .qp-food-tax > :last-child,
  .qp-lines .qp-food-total > :last-child{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
  .qp-lines .qp-food-note > td{
    padding:5px 9px;text-align:left;white-space:normal;color:#4E545B;font-size:11px;
    font-weight:400;word-break:keep-all;overflow-wrap:anywhere
  }
  .qp .qp-food-note p{margin:0}
  .qp .qp-food-note p+p{margin-top:3px}
  #quote-print .qp-with-food .qp-head{padding-bottom:8px}
  #quote-print .qp-with-food .qp-title{margin-block:12px 8px}
  #quote-print .qp-with-food .qp-cond{margin-bottom:10px}
  #quote-print .qp-with-food .qp-lines tbody tr:not(.qp-food-head)>td,
  #quote-print .qp-with-food .qp-lines tbody tr:not(.qp-food-head)>th{padding-block:4px}
  #quote-print .qp-with-food .qp-grid{margin-top:8px;padding-top:8px;break-after:avoid}
  #quote-print .qp-with-food .qp-foot{margin-top:7px;padding-top:5px}
  /* The full checkout policy starts on its own page after the quote totals. */
  #quote-print .qp-cleanup{break-before:page;page-break-before:always;font-size:13px;line-height:1.65}
  .qp-cleanup .qp-title{font-size:22px;margin:24px 0 16px;word-break:keep-all}
  .qp-cleanup .qp-cleanup-intro{margin-bottom:24px;color:#555}
  .qp-cleanup-group{margin:0 0 22px;break-inside:avoid}
  .qp-cleanup-group h3{font-size:14px;margin-bottom:8px;break-after:avoid}
  .qp-cleanup-group ul{margin:0;padding-left:18px;list-style:disc}
  .qp-cleanup-group li{margin:0 0 6px;word-break:keep-all;overflow-wrap:break-word}
  .qp-cleanup .qp-cleanup-note{margin:24px 0 0;padding:14px 16px;background:#F3F4F7;border:1px solid #E2E4E9;border-radius:6px;font-size:12.5px;word-break:keep-all;break-inside:avoid;print-color-adjust:exact;-webkit-print-color-adjust:exact}
}
