/* Keeps POS action modals above Bootstrap backdrops. */
#recent_transactions_modal.in,
#recent_transactions_modal.show,
#mobile_product_suggestion_modal.in,
#mobile_product_suggestion_modal.show {
  z-index: 200000 !important;
  pointer-events: auto !important;
}

#recent_transactions_modal.in .modal-dialog,
#recent_transactions_modal.show .modal-dialog,
#recent_transactions_modal.in .modal-content,
#recent_transactions_modal.show .modal-content,
#recent_transactions_modal.in .modal-body,
#recent_transactions_modal.show .modal-body,
#recent_transactions_modal.in a,
#recent_transactions_modal.show a,
#recent_transactions_modal.in button,
#recent_transactions_modal.show button,
#mobile_product_suggestion_modal.in .modal-dialog,
#mobile_product_suggestion_modal.show .modal-dialog,
#mobile_product_suggestion_modal.in .modal-content,
#mobile_product_suggestion_modal.show .modal-content,
#mobile_product_suggestion_modal.in .modal-body,
#mobile_product_suggestion_modal.show .modal-body,
#mobile_product_suggestion_modal.in .modal-footer,
#mobile_product_suggestion_modal.show .modal-footer,
#mobile_product_suggestion_modal.in a,
#mobile_product_suggestion_modal.show a,
#mobile_product_suggestion_modal.in button,
#mobile_product_suggestion_modal.show button,
#mobile_product_suggestion_modal.in label,
#mobile_product_suggestion_modal.show label,
#mobile_product_suggestion_modal.in .product_box,
#mobile_product_suggestion_modal.show .product_box,
#mobile_product_suggestion_modal.in .product_category,
#mobile_product_suggestion_modal.show .product_category,
#mobile_product_suggestion_modal.in .product_brand,
#mobile_product_suggestion_modal.show .product_brand,
#mobile_product_suggestion_modal.in .main-category,
#mobile_product_suggestion_modal.show .main-category {
  position: relative !important;
  z-index: 200010 !important;
  pointer-events: auto !important;
}

body:has(#recent_transactions_modal.in).modal-open > .modal-backdrop,
body:has(#recent_transactions_modal.show).modal-open > .modal-backdrop {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.recent-transactions-open > .modal-backdrop,
body.recent-transactions-open .modal-backdrop,
body.mobile-product-suggestion-open > .modal-backdrop,
body.mobile-product-suggestion-open .modal-backdrop,
body:has(#mobile_product_suggestion_modal.in).modal-open > .modal-backdrop,
body:has(#mobile_product_suggestion_modal.show).modal-open > .modal-backdrop {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
