.erp-view {
  --erp-ink: #193d39;
  --erp-muted: #63716a;
  margin: 24px 0;
  color: var(--erp-ink);
}
.erp-view .erp-section {
  padding: 30px;
}
.erp-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.erp-view h2 {
  margin: 0;
  font-size: 24px;
}
.erp-eyebrow {
  font-size: 12px;
  letter-spacing: 1.8px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--erp-muted);
}
.erp-sync {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--erp-muted);
  margin: 18px 0;
}
.erp-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4e8776;
}
.erp-dot.warning {
  background: #b68641;
}
.erp-feedback {
  font-size: 13px;
  line-height: 1.6;
}
.erp-feedback:empty {
  display: none;
}
.erp-company-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid #e5e9e4;
}
.erp-company-strip > span {
  font-size: 12px;
  color: var(--erp-muted);
}
.erp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 24px;
  border-bottom: 1px solid #e1e7e0;
  padding-bottom: 12px;
}
.erp-tabs button {
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 9px 12px;
  color: #536c61;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.erp-tabs button[aria-pressed='true'] {
  background: #e6eee6;
  color: #224f40;
}
.erp-tabs small {
  font-size: 12px;
  margin-left: 4px;
}
.erp-filters {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr auto;
  align-items: end;
  gap: 12px;
}
.erp-filters label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
}
.erp-filters input,
.erp-filters select {
  background: #fff;
  border: 1px solid #dbe3db;
  border-radius: 8px;
  min-width: 0;
  width: 100%;
  font: inherit;
  padding: 11px 10px;
  color: inherit;
}
.erp-muted {
  font-size: 12px;
  line-height: 1.7;
  color: var(--erp-muted);
}
.erp-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 22px 0;
}
.erp-stats article {
  display: grid;
  gap: 8px;
  border: 1px solid #e0e8dd;
  background: #f6f8f3;
  padding: 20px;
  border-radius: 12px;
}
.erp-stats span {
  font-size: 12px;
}
.erp-stats strong {
  font-size: 26px;
  letter-spacing: -0.8px;
}
.erp-stats small {
  font-size: 12px;
  color: var(--erp-muted);
}
.erp-note {
  background: #f4f6f1;
  border-left: 3px solid #b4c7b0;
  padding: 13px 17px;
  font-size: 12px;
  line-height: 1.7;
  border-radius: 0 7px 7px 0;
}
.erp-table-wrap {
  overflow: auto;
  width: 100%;
}
.erp-view table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  text-align: left;
}
.erp-view th {
  font-size: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--erp-muted);
  padding: 13px 12px;
  border-bottom: 1px solid #dee5db;
}
.erp-view td {
  padding: 18px 12px;
  border-bottom: 1px solid #e9ece6;
  font-size: 12px;
  vertical-align: top;
}
.erp-view td small {
  display: block;
  color: var(--erp-muted);
  margin-top: 6px;
  font-size: 12px;
}
.erp-view .erp-chip {
  display: inline-flex;
  padding: 5px 9px;
  background: #eaf1e8;
  color: #35533f;
  border-radius: 20px;
  font-size: 12px;
  white-space: nowrap;
}
.erp-view .erp-chip.warning {
  background: #faf0df;
  color: #886632;
}
.erp-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.erp-view .button.small {
  padding: 8px 10px;
  font-size: 12px;
}
.erp-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  font-size: 12px;
  color: var(--erp-muted);
}
.erp-pagination > div {
  display: flex;
  gap: 7px;
}
.erp-empty {
  text-align: center;
  padding: 42px 24px;
}
.erp-empty p {
  max-width: 580px;
  margin: 12px auto 18px;
  line-height: 1.8;
  font-size: 13px;
}
.erp-lock {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: #eef2e8;
  border-radius: 50%;
  font-size: 28px;
  margin: 0 auto 18px;
}
.erp-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}
.erp-facts dt {
  font-size: 12px;
  color: var(--erp-muted);
  margin-bottom: 7px;
}
.erp-facts dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}
.erp-view summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}
.erp-order-items {
  min-width: 210px;
  max-width: 320px;
  max-height: 350px;
  overflow: auto;
}
.erp-order-items p {
  padding: 8px;
  border-bottom: 1px solid #eee;
  display: grid;
  gap: 5px;
  font-size: 12px;
}
.erp-pulse {
  display: block;
  width: 14px;
  height: 14px;
  border: 2px solid #ccd9c9;
  border-top-color: #375b47;
  border-radius: 50%;
  margin: 0 auto 18px;
  animation: erp-spin 1s linear infinite;
}
@keyframes erp-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .erp-pulse {
    animation: none;
  }
}
@media (max-width: 800px) {
  .erp-filters {
    grid-template-columns: 1fr 1fr;
  }
  .erp-filters button {
    grid-column: 1/-1;
  }
  .erp-view .erp-section {
    padding: 20px;
  }
  .erp-top {
    align-items: flex-start;
    flex-direction: column;
  }
  .erp-view h2 {
    font-size: 21px;
  }
  .erp-stats,
  .erp-facts {
    grid-template-columns: 1fr;
  }
  .erp-tabs {
    gap: 3px;
  }
  .erp-tabs button {
    padding: 8px;
    font-size: 12px;
  }
  .erp-pagination {
    flex-wrap: wrap;
  }
}
.erp-view button:focus-visible,
.erp-view a:focus-visible,
.erp-view summary:focus-visible {
  outline: 2px solid #456a54;
  outline-offset: 3px;
}
.erp-registration-review {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.erp-registration-review h3 {
  margin: 0 0 16px;
  font-size: 16px;
}
.erp-registration-review .button {
  max-width: 100%;
  white-space: normal;
}
