.warehouse-placement-shell,
.warehouse-placement-shell * {
  box-sizing: border-box;
}

.warehouse-placement-shell {
  display: grid;
  gap: 16px;
  color: #172033;
}

.placement-head,
.placement-panel,
.placement-restore,
.placement-resolution-destination,
.placement-preview,
.placement-history {
  border: 1px solid #dce2eb;
  border-radius: 12px;
  background: #fff;
  padding: 16px;
}

.placement-head h2,
.placement-panel h3,
.placement-preview h3,
.placement-history h3,
.placement-resolution-destination h3 {
  margin: 0 0 8px;
}

.placement-head p,
.placement-panel p,
.placement-preview p,
.placement-history p {
  margin: 6px 0;
}

.warehouse-placement-shell input,
.warehouse-placement-shell select,
.warehouse-placement-shell button {
  min-height: 40px;
  border: 1px solid #c9d2df;
  border-radius: 8px;
  font: inherit;
}

.warehouse-placement-shell input,
.warehouse-placement-shell select {
  width: min(100%, 520px);
  padding: 8px 10px;
  background: #fff;
}

.warehouse-placement-shell button {
  padding: 8px 13px;
  background: #edf3fb;
  color: #172033;
  cursor: pointer;
}

.warehouse-placement-shell button:hover:not(:disabled) {
  border-color: #426da9;
  background: #dce9f8;
}

.warehouse-placement-shell button:disabled,
.warehouse-placement-shell input:disabled,
.warehouse-placement-shell select:disabled {
  cursor: not-allowed;
  opacity: .58;
}

.placement-restore,
.placement-actions,
.placement-pagination,
.placement-resolution-destination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.placement-resolution-destination h3 {
  flex-basis: 100%;
}

.placement-product {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
  border: 1px solid #e2e7ef;
  border-radius: 10px;
  padding: 10px;
}

.placement-product-media {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #f1f3f6;
}

.placement-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placement-photo-placeholder {
  color: #697386;
  font-size: 12px;
  text-align: center;
}

.placement-product-details {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.placement-product-details span {
  overflow-wrap: anywhere;
}

.placement-product label {
  display: grid;
  gap: 4px;
}

.placement-product label input {
  width: 100px;
}

.placement-pagination {
  justify-content: flex-end;
  margin-top: 12px;
}

.placement-pagination span {
  margin-right: auto;
}

.placement-error,
.placement-warning {
  color: #9c2d2d;
}

.placement-error {
  border: 1px solid #efb5b5;
  border-radius: 8px;
  background: #fff2f2;
  padding: 10px 12px;
}

.placement-notice {
  border: 1px solid #acd7bd;
  border-radius: 8px;
  background: #eefaf2;
  color: #24653d;
  padding: 10px 12px;
}

.placement-ambiguity {
  margin: 10px 0;
  border-left: 4px solid #d5a62d;
  background: #fff8e6;
  padding: 10px 12px;
}

.placement-ambiguity button {
  display: block;
  width: 100%;
  margin-top: 6px;
  text-align: left;
}

.placement-attestation {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0;
}

.placement-attestation input {
  width: auto;
  min-height: 0;
  margin-top: 3px;
}

@media (max-width: 640px) {
  .placement-head,
  .placement-panel,
  .placement-restore,
  .placement-resolution-destination,
  .placement-preview,
  .placement-history {
    padding: 12px;
  }

  .placement-product {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .placement-product-media {
    width: 56px;
    height: 56px;
  }

  .placement-product > button,
  .placement-product > label {
    grid-column: 1 / -1;
    width: 100%;
  }

  .placement-product label input,
  .placement-actions button,
  .placement-restore input,
  .placement-restore button,
  .placement-resolution-destination input,
  .placement-resolution-destination select {
    width: 100%;
  }

  .placement-pagination {
    justify-content: space-between;
  }

  .placement-pagination span {
    flex-basis: 100%;
  }
}
