.erp-demo {
  --erp-pale: #ece8ff;
  --erp-violet: #bda9ff;
  display: grid;
  align-items: center;
  container-type: inline-size;
  padding: clamp(.9rem, 1.5vw, 1.7rem);
  color: #f8f6ff;
  background: radial-gradient(ellipse at 97% 0%, #63578975, transparent 55%), #24212e;
}
.erp-console { min-width: 0; width: 100%; }
.erp-top { display: flex; align-items: center; gap: .55rem; margin-bottom: .85rem; }
.erp-top strong { font-size: 1rem; font-weight: 610; letter-spacing: -.035em; }
.erp-mark { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: .4rem; color: #dacaff; background: #48405c; }
.erp-demo svg { display: block; flex: none; width: 1.1rem; height: 1.1rem; }
.erp-demo-label { margin-left: auto; color: #ddd6f2; font-size: .74rem; }
.erp-layout { display: grid; gap: .55rem; align-items: stretch; }
.erp-ticket {
  position: relative; display: grid; justify-items: start; align-content: center;
  padding: 1rem; color: #30283a; background: var(--erp-pale);
  border-radius: .55rem; border-top: 3px solid var(--erp-violet);
}
.erp-order-label { display: flex; align-items: center; gap: .33rem; font-size: .75rem; font-weight: 540; color: #574e67; }
.erp-order-label svg { width: .9rem; height: .9rem; }
.erp-item { margin-top: .62rem; font-size: 1.22rem; font-weight: 620; letter-spacing: -.055em; line-height: 1.1; }
.erp-line { margin-block: .2rem .6rem; color: #5b5369; font-size: .82rem; }
.erp-total { display: flex; align-items: baseline; gap: .28rem; width: 100%; padding-top: .47rem; border-top: 1px dashed #a99fb9; }
.erp-total strong { font-size: 1.3rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.08; letter-spacing: -.047em; }
.erp-total > span { font-size: .7rem; color: #5d536d; }
.erp-stamp { display: inline-flex; align-items: center; gap: .36rem; margin-top: .54rem; padding: .16rem .5rem; border: 1px solid #b4a8c8; border-radius: 2rem; color: #514160; font-size: .72rem; }
.erp-stamp::before { content: ''; width: .35rem; height: .35rem; border-radius: 50%; background: currentColor; }
[data-erp-confirmed] .erp-stamp { background: #d5e9d8; border-color: #9bbca3; color: #2b5437; }
.erp-ledger { display: grid; align-content: center; gap: .3rem; margin: 0; }
.erp-row { min-width: 0; padding: .53rem .7rem; border-radius: .42rem; color: #eee9f7; background: #191720b8; border: 1px solid #655a784f; }
.erp-row dt { display: flex; align-items: center; gap: .34rem; color: #c6bad9; font-size: .75rem; }
.erp-row dt svg { width: .85rem; height: .85rem; }
.erp-row dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: .04rem .35rem; margin: .17rem 0 0; color: #d4cbdf; font-size: .76rem; }
.erp-row b { color: #fffaff; font-size: .94rem; font-variant-numeric: tabular-nums; font-weight: 580; letter-spacing: -.025em; }
.erp-stock { align-self: center; width: 2.8rem; height: .38rem; margin-left: auto; border-radius: 1rem; background: #524b61; overflow: hidden; }
.erp-stock i { display: block; width: 100%; height: 100%; background: var(--erp-violet); transform-origin: left; }
[data-erp-confirmed] .erp-stock i { transform: scaleX(.75); }
.erp-action { display: grid; width: 100%; min-height: 2.45rem; margin-top: .55rem; border-radius: .42rem; background: var(--erp-violet); }
.erp-demo .erp-action { color: #24182f; font-size: .86rem; font-weight: 640; }
.erp-action > span { display: flex; align-items: center; justify-content: center; gap: .45rem; }
.erp-action svg { width: .95rem; height: .95rem; }
.erp-action:hover { background: #d0c0ff; }
.erp-demo[data-erp-confirmed] .erp-action { border: 1px solid #a99bbd; background: #373041; color: #f1eaff; }
@container (min-width: 23rem) {
  .erp-layout { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
  .erp-ticket { padding: clamp(.8rem, 3cqi, 1.65rem); }
  .erp-item { font-size: clamp(1.3rem, 3.85cqi, 2.35rem); }
  .erp-total strong { font-size: clamp(1.3rem, 3.8cqi, 2rem); }
}
@container (max-width: 22.999rem) {
  .erp-ticket { grid-template-columns: minmax(0, 1fr) auto; column-gap: .55rem; padding: .7rem; }
  .erp-stamp { grid-column: 2; grid-row: 1; margin: 0; align-self: start; }
  .erp-item,.erp-line { grid-column: 1/-1; }
  .erp-total { grid-column: 1/-1; }
  .erp-row { display: grid; grid-template-columns: minmax(4.8rem, .78fr) minmax(0, 1.22fr); align-items: center; gap: .22rem; padding: .55rem; }
  .erp-row dd { margin-top: 0; }
  .erp-stock { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .erp-stock i { transition: transform .45s ease; }
  [data-erp-confirmed] .erp-row { animation: erp-sync .65s ease-out backwards; }
  [data-erp-confirmed] .erp-row:nth-child(2) { animation-delay: .1s; }
  [data-erp-confirmed] .erp-row:nth-child(3) { animation-delay: .2s; }
  @keyframes erp-sync { from { background: #514662; } }
}
