@media (min-height: 680px) {
  .reference-content.erp-fixed-list-page,
  .reference-content .erp-fixed-list-path {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .reference-content.erp-fixed-list-page {
    overflow: clip !important;
    scrollbar-gutter: auto;
  }
  .erp-fixed-list-page > *,
  .erp-fixed-list-path > * {
    flex-shrink: 0;
  }
  .reference-content .erp-fixed-list-path,
  .reference-content .erp-list-viewport {
    flex: 0 1 auto;
    min-height: 0;
    min-width: 0;
  }
  .reference-content .erp-list-viewport {
    max-height: none !important;
    overflow: auto !important;
  }
  .erp-list-viewport > table > thead > tr > th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f5f8fc;
  }
}

@media (min-height: 680px) {
  html body #app .reference-content:has(.reference-ean-page) {
    display: flex !important;
    flex-direction: column;
    overflow: clip !important;
  }
  html body #app .reference-content .reference-ean-page {
    display: flex !important;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0 !important;
  }
  html body #app .reference-content .reference-ean-page > .erp-list-viewport { flex: 1 1 auto; background: #fff; }
  .reference-ean-page > :is(.ean-import-bar,.reference-list-pager) { flex: none; }
}

.erp-list-viewport td.reference-empty { height: 72px !important; }

@media (min-height: 680px) {
  .reference-content .reference-order-scroll.erp-list-viewport {
    padding-top: 0 !important;
  }
  .erp-list-viewport > .reference-order-table {
    margin-top: 0 !important;
    border-collapse: separate;
    border-spacing: 0;
  }
  .erp-list-viewport > .reference-order-table > thead {
    position: sticky;
    top: 0;
    z-index: 4;
    background: #f5f8fc !important;
  }
  .erp-list-viewport > .reference-order-table > thead > tr > th {
    position: relative;
    background: #f5f8fc !important;
  }
}

.reference-orders .missing-cost-filter,
.reference-orders .order-workbench-tools {
  margin: 0 0 6px !important;
  padding-block: 0 !important;
  gap: 6px;
}
.reference-orders .missing-cost-filter {
  margin-top: 8px !important;
}
.reference-orders .order-workbench-tools {
  margin-bottom: 4px !important;
}
.reference-shell .reference-orders > .order-summary {
  box-sizing: border-box;
  margin-top: 0 !important;
  min-height: 32px !important;
  padding-block: 3px !important;
}

.reference-ean-page .reference-ean-table > thead > tr { height: 40px; }
.reference-ean-page .reference-ean-table > tbody > tr > td:not(.reference-empty) { height: 56px; }
