/* Review actions stay large and easy to find, including on narrow screens. */
.print-order { display: none; }
.form-actions .print-button {
  grid-column: 1 / -1;
  grid-row: 3;
  min-height: 54px;
  background: #fffdf9;
  color: #692028;
  border: 2px solid #8a292f;
  box-shadow: none;
  justify-content: center;
  font-size: 17px;
  gap: 12px;
}
.form-actions .print-button:hover { background: #f2ded9; box-shadow: none; }
.form-actions .print-button span { font-size: 25px; line-height: 1; }
.form-actions .print-help {
  grid-column: 1 / -1;
  grid-row: 4;
  margin: 0;
  color: #51443c;
  font-size: 16px;
  line-height: 1.5;
}
@media (max-width: 650px) {
  /* A taller review action group should not obscure the order being reviewed. */
  .form-actions:has(#print-button:not([hidden])) { position: static; border-radius: 9px; }
}
@media print {
  @page { size: auto; margin: 14mm 12mm; }
  html, body { margin: 0; padding: 0; background: #fff; color: #000; }
  body { font: 16px/1.45 Arial, sans-serif; }
  body > :not(#print-order) { display: none !important; }
  #print-order { display: block; width: 100%; color: #000; }
  .print-header { display: flex; align-items: center; gap: 18px; padding-bottom: 14px; border-bottom: 2px solid #000; }
  .print-header img { width: 75px; height: auto; flex-shrink: 0; }
  .print-header h1 { font: bold 28px/1.2 Georgia, serif; letter-spacing: 0; margin: 0 0 6px; }
  .print-header p, .print-meta { margin: 3px 0; font-size: 16px; overflow-wrap: anywhere; }
  .print-status { border: 1px solid #555; padding: 12px; margin: 18px 0 12px; }
  #print-details dl { margin: 18px 0; }
  .print-row { display: block; padding: 8px 0; border-bottom: 1px solid #ccc; }
  .print-row dt { font-weight: 700; break-after: avoid; }
  .print-row dd { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; orphans: 3; widows: 3; }
  #print-estimate-note { margin: 12px 0; }
  #print-photo-wrap { margin: 20px 0; break-inside: avoid; }
  #print-photo-wrap figcaption { margin-bottom: 8px; }
  #print-photo { max-height: 75mm; max-width: 100%; width: auto; height: auto; object-fit: contain; }
  .print-footer { border-top: 1px solid #000; margin-top: 20px; padding-top: 12px; }
}
