.production-download-audit-open {
  width: 100%;
  margin-top: 8px;
}

.production-download-audit-history {
  display: block;
  margin-top: 7px;
}

.order-track-download-audit {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line, #dde3ea);
}

.order-track-download-audit small {
  color: var(--muted, #667085);
}

body:has(.production-download-audit-modal) .modal-backdrop {
  z-index: 1000;
}

.production-download-audit-modal {
  width: min(920px, calc(100vw - 28px));
  max-height: min(88vh, 900px);
  overflow: auto;
}

.production-download-audit-trust {
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid #86d5ae;
  border-radius: 14px;
  background: #effcf5;
  color: #164a35;
}

.production-download-audit-trust strong,
.production-download-audit-trust p,
.production-download-audit-trust small {
  display: block;
}

.production-download-audit-trust p {
  margin: 5px 0 7px;
}

.production-download-audit-trust small {
  color: #375a4b;
  line-height: 1.55;
}

.production-download-audit-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.production-download-audit-summary span {
  padding: 12px;
  border: 1px solid var(--line, #dde3ea);
  border-radius: 12px;
  background: var(--surface, #fff);
}

.production-download-audit-summary small,
.production-download-audit-summary b {
  display: block;
}

.production-download-audit-summary b {
  margin-top: 3px;
  font-size: 1.12rem;
}

.production-download-audit-list {
  display: grid;
  gap: 12px;
}

.production-download-audit-batch {
  overflow: hidden;
  border: 1px solid var(--line, #dde3ea);
  border-left: 5px solid #d29b28;
  border-radius: 14px;
  background: var(--surface, #fff);
}

.production-download-audit-batch.is-complete {
  border-left-color: #25a168;
}

.production-download-audit-batch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #f8fafc;
}

.production-download-audit-batch-head span,
.production-download-audit-batch-head small {
  display: block;
}

.production-download-audit-batch-head small {
  margin-top: 3px;
  color: var(--muted, #667085);
}

.production-download-audit-batch-head strong {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff4d5;
  color: #77520c;
}

.production-download-audit-batch.is-complete .production-download-audit-batch-head strong {
  background: #ddf7e9;
  color: #17673f;
}

.production-download-audit-files > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border-top: 1px solid var(--line, #edf0f3);
}

.production-download-audit-files span,
.production-download-audit-files small {
  display: block;
  min-width: 0;
}

.production-download-audit-files b {
  overflow-wrap: anywhere;
}

.production-download-audit-files i {
  display: inline-grid;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  place-items: center;
  border-radius: 50%;
  background: #edf3f7;
  font-style: normal;
  font-size: .78rem;
}

.production-download-audit-files small {
  margin: 3px 0 0 30px;
  color: var(--muted, #667085);
}

.production-download-audit-files em {
  flex: 0 0 auto;
  color: #17673f;
  font-size: .72rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .04em;
}

.production-download-audit-files > .is-missing {
  background: #fff8f6;
}

.production-download-audit-files > .is-missing em {
  color: #a53c2c;
}

.production-download-audit-empty,
.production-download-audit-empty-state {
  padding: 18px;
  text-align: center;
  color: var(--muted, #667085);
}

.production-download-audit-empty-state {
  border: 1px dashed var(--line, #ccd5df);
  border-radius: 14px;
}

@media (max-width: 640px) {
  .production-download-audit-modal {
    width: calc(100vw - 14px);
    max-height: 94vh;
  }

  .production-download-audit-summary {
    grid-template-columns: 1fr;
  }

  .order-track-download-audit {
    align-items: stretch;
    flex-direction: column;
  }

  .production-download-audit-batch-head,
  .production-download-audit-files > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .production-download-audit-files em {
    margin-left: 30px;
  }
}
