@media print {
  /* Let the 80 mm receipt driver end the job at the content boundary. */
  @page { size: auto; margin: 2mm 3mm 0; }
  @page res-floor-qr { size: 72mm 70mm; margin: 2mm 3mm 0; }
  body.res-print-floor-qr { page: res-floor-qr; width: 66mm !important; }
  html, body { width: 74mm !important; min-width: 0 !important; height: auto !important; min-height: 0 !important; padding-bottom: 0 !important; margin: 0 !important; background: #fff !important; color: #000 !important; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  .guest-print-shop-header {
    display: block !important;
    text-align: center;
    border-bottom: 1px dashed #777;
    padding: 0 0 2mm;
    margin: 0 0 2mm;
    color: #000;
  }
  .guest-print-shop-header strong,
  .guest-print-shop-header span { display: block; }
  .guest-print-shop-header strong { font-size: 19px; font-weight: 800; }
  .guest-print-shop-header span { font-size: 11px; line-height: 1.35; }

  body.printing-guest-bill .cart-panel,
  body.res-print-floor-qr #floorOperationsDialog { width: 74mm !important; max-width: 74mm !important; }

  body.res-print-floor-qr > * { display: none !important; }
  body.res-print-floor-qr #floorOperationsDialog {
    display: block !important;
    position: static !important;
    height: auto !important; min-height: 0 !important; max-height: none !important; overflow: visible !important;
    inset: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  body.res-print-floor-qr #floorOperationsDialog::backdrop,
  body.res-print-floor-qr #floorOperationsDialog .dialog-head,
  body.res-print-floor-qr #floorOperationsSummary,
  body.res-print-floor-qr #floorOperationGroups,
  body.res-print-floor-qr #floorOperationsDialog .dialog-actions,
  body.res-print-floor-qr #floorOperationWorkspace > :not(.floor-qr-result) { display: none !important; }
  body.res-print-floor-qr #floorOperationWorkspace {
    display: block !important;
    overflow: visible !important;
    padding: 0 !important;
    border: 0 !important;
  }
  body.res-print-floor-qr .floor-operations-shell, body.res-print-floor-qr .floor-operations-main { display: block !important; height: auto !important; min-height: 0 !important; max-height: none !important; padding: 0 !important; margin: 0 !important; overflow: visible !important; background: #fff !important; }
  body.res-print-floor-qr #floorGuestChecks { display: none !important; }
  body.res-print-floor-qr #floorOperationsDialog, body.res-print-floor-qr #floorOperationWorkspace { width: 66mm !important; max-width: 66mm !important; height: auto !important; background: #fff !important; }
  body.res-print-floor-qr .floor-qr-result { display: block !important; text-align: center; color: #000; }
  body.res-print-floor-qr .floor-qr-result img { width: 48mm !important; height: 48mm !important; border: 0 !important; margin: 2mm auto 0 !important; }
  body.res-print-floor-qr .floor-qr-result a,
  body.res-print-floor-qr .floor-qr-result button,
  body.res-print-floor-qr .floor-qr-result p { display: none !important; }
}
