/* Desktop invoice: keep the fixed action bar above long, scrollable product data. */
@media (min-width: 701px) {
  .invoice-dialog,
  .invoice-dialog > #modalBody,
  .invoice-dialog #invoiceForm {
    position: relative;
    isolation: isolate;
  }

  .invoice-dialog > #modalBody {
    scroll-padding-bottom: 76px;
  }

  /* Trap sticky table cells inside their own lower layer. */
  .invoice-dialog #invoiceForm > :not(.invoice-actions) {
    position: relative;
    z-index: 0;
  }

  .invoice-dialog #invoiceForm .invoice-actions {
    position: sticky !important;
    left: 0;
    right: 0;
    bottom: 0 !important;
    z-index: 1000 !important;
    flex: 0 0 auto;
    isolation: isolate;
    overflow: visible;
    background: #fff !important;
    background-color: #fff !important;
    opacity: 1 !important;
    border-top: 1px solid #cbdad4 !important;
    box-shadow: 0 -12px 28px rgba(16, 61, 49, 0.16) !important;
    backdrop-filter: none !important;
  }

  .invoice-dialog #invoiceForm .invoice-actions::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: #fff;
  }

  .invoice-dialog #invoiceForm .invoice-actions > * {
    position: relative;
    z-index: 1;
  }

  .invoice-dialog #invoiceForm .invoice-products .table-wrap {
    scroll-padding-bottom: 68px;
  }
}
