.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: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2rem;
}
.receipt-checkboxes .sostena-toggle.disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.quantity-shipped-cell-description {
  min-width: 300px;
}
.quantity-shipped-cell-total {
  font-weight: 600;
}
.quantity-shipped-cell-pallet {
  font-weight: 600;
}
.pallet-shipped-qty-pending {
  border: 2px solid #f1ef07;
  background-color: #fffce0;
  font-weight: 600;
}
.pallet-shipped-qty-summary-field {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 38px;
  padding: 3px 8px;
  border: 1px solid #bdbdbd;
  border-radius: 3px;
  background-color: #fff;
  color: #222;
  cursor: help;
  line-height: 1.1;
}
.pallet-shipped-qty-summary-field.is-pending {
  border: 2px solid #f1ef07;
  background-color: #fffce0;
}
.pallet-shipped-qty-summary-total {
  font-size: 15px;
  font-weight: 700;
}
#quantity-shipped-table .pallet-shipped-qty-fixed-field {
  box-sizing: border-box;
  width: 5rem;
  min-width: 5rem;
  max-width: 5rem;
  flex: 0 0 5rem;
}
.pallet-shipped-qty-popout {
  display: flex;
  min-width: 230px;
  flex-direction: column;
  gap: 7px;
  padding: 5px 3px;
}
.pallet-shipped-qty-popout-title {
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 700;
}
.pallet-shipped-qty-pending-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pallet-shipped-qty-pending-label {
  font-size: 11px;
  color: #fff;
  white-space: nowrap;
}
.pallet-shipped-qty-pending-max {
  color: #ddd;
}
.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;
}
