.purchase-receiving-workorder {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3700;
}

.purchase-receiving-workorder.open {
  display: block;
}

.purchase-receiving-workorder__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 24, 20, 0.46);
  backdrop-filter: blur(10px);
}

.purchase-receiving-workorder__panel {
  position: absolute;
  inset: 24px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #d8e5df;
  border-radius: 8px;
  background: #f8fbfa;
  box-shadow: 0 30px 90px rgba(13, 32, 27, 0.24);
}

.purchase-receiving-workorder__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid #dce8e2;
  background: #fff;
}

.purchase-receiving-workorder__head span {
  color: #5b7069;
  font-size: 12px;
  font-weight: 900;
}

.purchase-receiving-workorder__head h2 {
  margin: 4px 0;
  color: #0f2b24;
  font-size: 24px;
  letter-spacing: 0;
}

.purchase-receiving-workorder__head p {
  margin: 0;
  color: #60746d;
}

.purchase-receiving-workorder__close {
  align-self: start;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #d4e2dd;
  border-radius: 6px;
  background: #fff;
  color: #18342d;
  font-weight: 900;
  cursor: pointer;
}

.purchase-receiving-workorder__body {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px;
  min-width: 0;
  overflow: auto;
  padding: 18px 22px;
}

.purchase-receiving-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.purchase-receiving-summary span,
.purchase-receiving-grid label {
  display: grid;
  gap: 7px;
  border: 1px solid #dce8e2;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.purchase-receiving-summary b,
.purchase-receiving-grid span {
  color: #5b7069;
  font-size: 12px;
  font-weight: 900;
}

.purchase-receiving-summary em {
  color: #12352c;
  font-style: normal;
  font-weight: 900;
}

.purchase-receiving-workorder__notice {
  border: 1px solid #b8d7cb;
  border-radius: 8px;
  background: #edf7f2;
  color: #14382e;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55;
  padding: 12px 14px;
}

.purchase-receiving-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.purchase-receiving-grid .span-2 {
  grid-column: 1 / -1;
}

.purchase-receiving-grid input,
.purchase-receiving-grid select,
.purchase-receiving-grid textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cfded8;
  border-radius: 6px;
  padding: 0 10px;
  font: inherit;
}

.purchase-receiving-grid textarea {
  min-height: 92px;
  padding-top: 10px;
  line-height: 1.5;
}

.purchase-receiving-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.purchase-receiving-checklist label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid #dce8e2;
  border-radius: 8px;
  background: #fff;
  color: #18342d;
  font-size: 14px;
  font-weight: 900;
  padding: 10px 12px;
}

.purchase-receiving-checklist input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.purchase-receiving-actions {
  position: sticky;
  bottom: -18px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 0 0;
  background: linear-gradient(180deg, rgba(248, 251, 250, 0.2), #f8fbfa 34%);
}

.purchase-receiving-actions span {
  margin-right: auto;
  color: #5b7069;
  font-size: 13px;
  font-weight: 800;
}

.purchase-receiving-workorder-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .purchase-receiving-workorder__panel {
    inset: 0;
    border-radius: 0;
  }

  .purchase-receiving-summary,
  .purchase-receiving-grid,
  .purchase-receiving-checklist {
    grid-template-columns: 1fr;
  }

  .purchase-receiving-actions {
    align-items: stretch;
    flex-direction: column;
  }
}
