.order-set-table-wrap {
  max-height: 72vh;
}

.order-set-table thead {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 2;
}

.order-target-input {
  min-width: 4.5rem;
}

.order-set-table .input-group {
  min-width: 9rem;
}

[id^="ordersatz-artikel-"] {
  scroll-margin-top: 5rem;
}

.lfs-table {
  font-size: .82rem;
}

.lfs-table th {
  white-space: nowrap;
}

.lfs-table td {
  min-width: 7rem;
}

.lfs-table td:nth-child(5) {
  min-width: 18rem;
}

.purchase-order-table .purchase-quantity {
  width: 11rem;
}

@media (max-width: 1024px) {
  .order-set-table-wrap {
    max-height: none;
    overflow: visible;
  }

  .order-set-table .order-secondary {
    display: none;
  }

  .order-set-table {
    table-layout: fixed;
  }

  .order-set-table th:nth-child(3),
  .order-set-table td:nth-child(3) {
    width: 50%;
  }

  .order-set-table th:nth-child(4),
  .order-set-table td:nth-child(4) {
    width: 18%;
  }

  .order-set-table th:nth-child(9),
  .order-set-table td:nth-child(9) {
    width: 32%;
  }

  .order-set-table td {
    padding: .55rem .25rem;
  }

  .order-set-table .input-group {
    min-width: 0;
    flex-direction: column;
  }

  .order-set-table .order-target-input {
    min-width: 0;
    width: 100%;
    min-height: 44px;
  }

  .order-set-table .input-group-text {
    width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: .7rem;
    padding: .25rem;
  }
}

@media (max-width: 768px) {
  .purchase-order-table {
    table-layout: fixed;
  }

  .purchase-order-table .purchase-secondary {
    display: none;
  }

  .purchase-order-table th:first-child,
  .purchase-order-table td:first-child {
    width: 64%;
  }

  .purchase-order-table .purchase-quantity {
    width: 36%;
  }

  .lfs-table {
    font-size: .76rem;
  }

  .lfs-table td:nth-child(5) {
    min-width: 15rem;
  }
}
