.quantity-shipped-field {
  width: 5rem;
  position: initial;
  margin-top: initial;
}
.quantity-shipped-cell {
  text-align: left;
  padding: 0 5px;
  width: 250px;
}
.quantity-shipped-cell-input {
  justify-content: flex-start;
  align-items: center;
}
.quantity-shipped-cell-input .input-field {
  margin-top: 5px;
}
.quantity-shipped-cell-input .input-field input {
  margin: 0px;
  height: 2em;
}
.quantity-shipped-header {
  word-break: break-word;
}
.quantity-shipped-header:first-child {
  width: 250px;
  white-space: nowrap;
}
.checkboxes-row {
  padding-top: 40px;
}
.checkboxes-row label {
  margin: 0px !important;
}
.checkboxes-row .labeled-field {
  margin: 0px;
}
.receipt-checkboxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1.5rem;
}
.quantity-shipped-cell-description {
  min-width: 300px;
}
.add-substitution-row td {
  border-top: 1px solid #e0e0e0;
  padding-top: 16px;
  padding-bottom: 16px;
  background-color: #fafafa;
}
.add-substitution-label {
  font-weight: 600;
  color: #1976d2;
  margin-bottom: 6px;
}
.add-substitution-label.is-disabled {
  color: #9e9e9e;
  cursor: not-allowed;
}
.add-substitution-hint {
  font-weight: 400;
  font-size: 12px;
  color: #9e9e9e;
  margin-left: 8px;
}
.substitution-row td {
  background-color: #f5f9ff;
  padding-top: 14px;
  padding-bottom: 14px;
}
.substitution-row + .substitution-row td {
  border-top: 1px solid #e3eaf5;
}
.remove-substitution-btn {
  background: transparent;
  border: none;
  color: #d32f2f;
  cursor: pointer;
  padding: 4px 8px;
  font-size: 14px;
}
.remove-substitution-btn:hover {
  color: #b71c1c;
}
#quantity-shipped-table-wrapper {
  overflow-x: auto;
}
#quantity-shipped-table {
  width: 100%;
  table-layout: auto;
}
#quantity-shipped-table:has(th:nth-child(4)) .quantity-shipped-header:first-child {
  width: auto;
}
#quantity-shipped-table:has(th:nth-child(4)) .quantity-shipped-header:not(:first-child) {
  width: 120px;
}
