/* OmniVenta V63.28.03 R44 — clean Sale/Receiving receipts without horizontal scrollbar.
 * The legacy global wide-table rule includes .manage-table; receipt_wrapper also carries
 * that class, so Chrome print preview can render a horizontal scroll rail under receipts.
 * Keep table scrolling everywhere else and opt receipts out explicitly.
 */

/* Receipt pages are documents, not scrollable management tables. */
body.ov-module-sales #receipt_wrapper.manage-table,
body.ov-module-receivings #receipt_wrapper.manage-table {
  overflow-x: visible !important;
  overflow-y: visible !important;
  -webkit-overflow-scrolling: auto !important;
  scrollbar-width: none !important;
}

body.ov-module-sales #receipt_wrapper.manage-table::-webkit-scrollbar,
body.ov-module-receivings #receipt_wrapper.manage-table::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

@media print {
  body.ov-module-sales #receipt_wrapper,
  body.ov-module-receivings #receipt_wrapper,
  body.ov-module-sales #receipt_wrapper_inner,
  body.ov-module-receivings #receipt_wrapper_inner,
  body.ov-module-sales #receipt_wrapper .panel,
  body.ov-module-receivings #receipt_wrapper .panel,
  body.ov-module-sales #receipt_wrapper .panel-body,
  body.ov-module-receivings #receipt_wrapper .panel-body {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
  }

  /* Never print a browser scrollbar/rail belonging to a receipt container. */
  body.ov-module-sales #receipt_wrapper::-webkit-scrollbar,
  body.ov-module-receivings #receipt_wrapper::-webkit-scrollbar,
  body.ov-module-sales #receipt_wrapper_inner::-webkit-scrollbar,
  body.ov-module-receivings #receipt_wrapper_inner::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
  }

  body.ov-module-sales #receipt_wrapper,
  body.ov-module-receivings #receipt_wrapper {
    scrollbar-width: none !important;
    max-width: 100% !important;
  }

  /* The universal floating table rail must never participate in a printed receipt. */
  #omni-horizontal-table-rail {
    display: none !important;
  }
}
