.maintenance-inventory-provenance {
  min-width: 0;
  color: #122330;
}

.maintenance-inventory-provenance > header,
.maintenance-inventory-receipt-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.maintenance-inventory-provenance > header > span {
  flex: 0 0 auto;
  padding-top: 4px;
  color: #657985;
  font-size: 12px;
  font-weight: 700;
}

.maintenance-inventory-provenance-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.maintenance-inventory-provenance-tools > p {
  flex: 1 1 220px;
  min-width: 0;
  margin: 0;
  color: #344a58;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.maintenance-inventory-provenance-tools > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.maintenance-inventory-provenance-caption {
  margin: 10px 0 16px;
  color: #657985;
  font-size: 12px;
  line-height: 1.55;
}

.maintenance-inventory-provenance :is(button, a) {
  min-height: 40px;
}

.maintenance-inventory-provenance :is(button, a):focus-visible {
  outline: 2px solid #078b91;
  outline-offset: 3px;
}

.maintenance-inventory-provenance button:disabled {
  cursor: wait;
}

.maintenance-inventory-provenance [hidden] {
  display: none !important;
}

.maintenance-inventory-receipts {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.maintenance-inventory-receipt {
  min-width: 0;
  padding: 20px 0;
  border-top: 1px solid #d6e0e5;
}

.maintenance-inventory-receipt:last-child {
  border-bottom: 1px solid #d6e0e5;
}

.maintenance-inventory-receipt :is(p, dd, h5, a, small, span) {
  overflow-wrap: anywhere;
}

.maintenance-inventory-receipt-header > div {
  min-width: 0;
}

.maintenance-inventory-receipt-header h5 {
  margin: 4px 0;
  color: #122330;
  font-size: 16px;
  line-height: 1.4;
}

.maintenance-inventory-receipt-date,
.maintenance-inventory-receipt-order-status {
  margin: 0;
  color: #657985;
  font-size: 12px;
  line-height: 1.5;
}

.maintenance-inventory-receipt-date {
  color: #344a58;
  font-weight: 600;
}

.maintenance-inventory-receipt-actions {
  display: flex;
  flex: 0 1 240px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.maintenance-inventory-receipt-actions button {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.maintenance-inventory-receipt-status {
  padding: 5px 8px;
  border: 1px solid #c8d8dc;
  border-radius: 5px;
  background: #f4f7f9;
  color: #344a58;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.45;
}

.maintenance-inventory-receipt-status.is-accepted {
  border-color: #c4ded4;
  background: #f0f8f4;
  color: #28634e;
}

.maintenance-inventory-receipt-status:is(.is-pending, .is-partially_rejected) {
  border-color: #e5d4ae;
  background: #fcf7eb;
  color: #80530e;
}

.maintenance-inventory-receipt-status.is-rejected {
  border-color: #e9c6c2;
  background: #fdf3f2;
  color: #9b3933;
}

.maintenance-inventory-receipt-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 20px;
  margin: 20px 0;
}

.maintenance-inventory-receipt-facts > div {
  min-width: 0;
}

.maintenance-inventory-receipt-facts dt {
  color: #657985;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.5;
}

.maintenance-inventory-receipt-facts dd {
  margin: 4px 0 0;
  color: #122330;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.maintenance-inventory-receipt-check {
  padding: 12px 14px;
  border-left: 3px solid #078b91;
  background: #f4f7f9;
}

.maintenance-inventory-receipt :is(.maintenance-inventory-receipt-check, .maintenance-inventory-receipt-documents) p {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
}

.maintenance-inventory-receipt-check p + p {
  margin-top: 5px;
}

.maintenance-inventory-receipt-check-detail {
  color: #657985;
}

.maintenance-inventory-receipt-rejection {
  color: #9b3933;
}

.maintenance-inventory-receipt-note {
  white-space: pre-wrap;
}

.maintenance-inventory-receipt-pending,
.maintenance-inventory-receipt-returns {
  margin: 12px 0;
  color: #80530e;
  font-size: 12px;
  line-height: 1.6;
}

.maintenance-inventory-receipt-documents {
  margin-top: 16px;
}

.maintenance-inventory-receipt-documents h6 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: #344a58;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 750;
}

.maintenance-inventory-receipt-documents h6 span {
  color: #657985;
  font-weight: 600;
}

.maintenance-inventory-receipt-documents > p {
  color: #657985;
}

.maintenance-inventory-receipt-documents ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.maintenance-inventory-receipt-documents li {
  padding: 10px 0;
}

.maintenance-inventory-receipt-documents li + li {
  border-top: 1px solid #e5ecef;
}

.maintenance-inventory-document-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.maintenance-inventory-document-heading a {
  display: inline-flex;
  flex: 1 1 180px;
  min-width: 0;
  align-items: center;
  color: #056a73;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.maintenance-inventory-document-heading a:hover {
  color: #078b91;
}

.maintenance-inventory-document-control {
  align-self: center;
  color: #344a58;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 650;
}

.maintenance-inventory-document-control.is-later {
  color: #80530e;
}

.maintenance-inventory-receipt-documents :is(p, small) {
  color: #657985;
}

.maintenance-inventory-receipt-documents small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.6;
}

.maintenance-inventory-provenance-pagination {
  display: flex;
  justify-content: center;
  padding-top: 16px;
}

@media (max-width: 1440px) {
  .maintenance-inventory-receipt-facts {
    gap: 14px 16px;
  }
}

@media (max-width: 1024px) {
  .maintenance-inventory-receipt-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .maintenance-inventory-receipt-header {
    flex-wrap: wrap;
  }

  .maintenance-inventory-receipt-actions {
    flex: 1 1 auto;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .maintenance-inventory-provenance > header {
    flex-wrap: wrap;
    gap: 8px;
  }

  .maintenance-inventory-provenance-tools {
    align-items: flex-start;
  }

  .maintenance-inventory-provenance-tools > div {
    flex: 1 1 100%;
  }

  .maintenance-inventory-document-heading {
    display: grid;
    gap: 4px;
  }

  .maintenance-inventory-document-control {
    justify-self: start;
  }

  .maintenance-inventory-receipt {
    padding: 16px 0;
  }
}

@media (max-width: 390px) {
  .maintenance-inventory-receipt-facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .maintenance-inventory-provenance button {
    min-height: 44px;
  }

  .maintenance-inventory-provenance-tools > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .maintenance-inventory-provenance-pagination button {
    width: 100%;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .maintenance-inventory-provenance :is(button, a) {
    animation: none !important;
    transition: none !important;
  }
}
.maintenance-inventory-receipt-reassessments { margin-block:16px; padding-block:12px; border-block:1px solid #d6e4e8; color:#203e4b; overflow-wrap:anywhere; }
.maintenance-inventory-receipt-reassessments > p { margin-block:4px 8px; line-height:1.6; }
.maintenance-inventory-receipt-reassessments summary { display:flex; align-items:center; min-height:40px; cursor:pointer; color:#096c68; font-weight:600; }
.maintenance-inventory-receipt-reassessments summary:focus-visible { outline:3px solid #008d99; outline-offset:3px; border-radius:4px; }
.maintenance-inventory-receipt-reassessments ol { margin:8px 0 0; padding-left:20px; }
.maintenance-inventory-receipt-reassessments li { padding-block:8px 12px; border-top:1px solid #e3ebef; }
.maintenance-inventory-document-reassessment { display:block; margin-top:4px; color:#096c68; }
.maintenance-inventory-receipt-withdrawals summary { color:#795018; }
.maintenance-inventory-document-withdrawal { display:block; margin-top:4px; color:#795018; }
