/* Excel → ERP em miniatura, atrás do fluxo da seção gravar → repetir. */
.replay-stage { position: relative; }
.scene { position: relative; display: grid; grid-template-columns: 44fr 56fr; gap: 12px; margin: -40px -4% -28px 8%; z-index: 0;
  transform: perspective(1400px) rotateY(-10deg) rotateX(6deg) scale(.96); transform-origin: right top; opacity: .55; filter: saturate(.85);
  transition: opacity .7s var(--ease), transform 1s var(--ease), filter .7s; font: 500 12px/1.3 "Barlow", sans-serif; }
.replay[data-mode="play"] .scene, .replay.is-done .scene { opacity: 1; filter: none; transform: perspective(1400px) rotateY(-4deg) rotateX(3deg); }
.mw { border-radius: 12px; overflow: hidden; background: rgba(10, 16, 30, .96); box-shadow: inset 0 0 0 1px var(--line-strong), 0 30px 60px -30px rgba(0,0,0,.9); }
.mw-bar { height: 24px; display: flex; align-items: center; gap: 5px; padding: 0 10px; background: rgba(160,196,255,.05); border-bottom: 1px solid var(--line); }
.mw-bar i { width: 7px; height: 7px; border-radius: 50%; background: #2a3550; }
.mw-bar span { margin-left: 6px; color: var(--faint); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xl .mw-bar { box-shadow: inset 0 -2px 0 rgba(46, 170, 100, .7); }
.xl-grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.xl-grid th, .xl-grid td { padding: 6px 7px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.xl-grid th { font-weight: 600; color: var(--faint); background: rgba(160,196,255,.04); font-size: 10px; }
.xl-grid th:first-child, .xl-grid td:first-child { width: 22px; text-align: center; color: var(--faint); background: rgba(160,196,255,.03); }
.xl-grid th:nth-child(2) { width: 44%; }
.xl-grid tr[data-xr] td { transition: background-color .3s, color .3s; }
.xl-grid tr.is-read td { background: rgba(46, 170, 100, .16); color: var(--text); box-shadow: inset 0 1px 0 rgba(46,170,100,.6), inset 0 -1px 0 rgba(46,170,100,.6); }
.xl-grid tr.is-done td:not(:first-child) { color: #8fdcb5; }
.erp-form { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 8px; align-items: end; padding: 10px; }
.erp-form label { display: grid; gap: 4px; min-width: 0; }
.erp-form em { font-style: normal; font-size: 9.5px; color: var(--faint); }
.erp-form span { display: block; height: 24px; padding: 5px 7px; border-radius: 6px; background: rgba(5, 9, 19, .9); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text); white-space: nowrap; overflow: hidden; }
.erp-form span.is-active { box-shadow: inset 0 0 0 1.5px var(--signal), 0 0 12px rgba(43,102,240,.35); }
.erp-form span.is-active::after { content: ""; display: inline-block; width: 1px; height: 11px; margin-left: 1px; vertical-align: -1px; background: var(--signal); animation: blink 1s steps(2) infinite; }
.erp-save { height: 24px; padding: 0 10px; display: grid; place-items: center; border-radius: 6px; background: var(--blue); color: #fff; font: 600 10.5px "Sora", sans-serif; transition: transform .15s, box-shadow .3s; }
.erp-save.is-press { transform: scale(.92); box-shadow: 0 0 0 4px rgba(43,102,240,.3); }
.erp-list { list-style: none; margin: 0; padding: 0 10px 10px; display: grid; gap: 4px; min-height: 118px; align-content: start; }
.erp-list li { display: grid; grid-template-columns: 14px 1.4fr 1fr .7fr; gap: 8px; align-items: center; padding: 5px 7px; border-radius: 6px; background: rgba(95,224,168,.07); color: var(--muted); animation: erp-in .5s var(--ease); white-space: nowrap; }
.erp-list li b { width: 12px; height: 12px; border-radius: 4px; background: rgba(95,224,168,.25); display: grid; place-items: center; }
.erp-list li b::after { content: ""; width: 5px; height: 3px; border-left: 1.5px solid var(--ok); border-bottom: 1.5px solid var(--ok); transform: rotate(-45deg) translate(1px, -1px); }
.erp-list li span { overflow: hidden; text-overflow: ellipsis; }
.erp-list li span:first-of-type { color: var(--text); }
@keyframes erp-in { from { opacity: 0; transform: translateY(-6px); } }
.scene-note { position: absolute; right: 2px; bottom: -20px; margin: 0; font-size: 10.5px; color: var(--faint); }
.replay-stage .flow { position: relative; z-index: 1; width: 74%; }
.replay-stage .flow-steps li { padding-block: 8px; }
.replay-stage .flow-head { padding-block: 10px 8px; }

@media (max-width: 1000px) {
  .scene { margin: 0 0 12px; transform: none !important; opacity: 1; filter: none; font-size: 9.5px; gap: 8px; }
  .scene-note { position: static; grid-column: 1 / -1; text-align: right; margin-top: -2px; }
  .erp-form { grid-template-columns: 1fr 1fr; padding: 8px; gap: 6px; }
  .erp-form label:first-child { grid-column: 1 / -1; }
  .erp-save { grid-column: 1 / -1; }
  .erp-list { min-height: 0; }
  .erp-list li { grid-template-columns: 12px 1fr auto; }
  .erp-list li span:last-child { display: none; }
  .xl-grid th:nth-child(4), .xl-grid td:nth-child(4) { display: none; }
  .xl-grid th, .xl-grid td { padding: 5px; }
  .replay-stage .flow { width: 100%; }
  .replay-stage .flow-steps li { padding-block: 5px; }
  .replay-stage .flow-steps code { display: none; }
  .replay-stage .flow-steps { grid-template-columns: 1fr 1fr; gap: 2px 6px; }
  .replay-stage .flow-steps li { grid-template-columns: 24px 1fr; gap: 8px; padding: 5px 6px; font-size: .86rem; }
  .replay-stage .flow-steps .n { width: 22px; height: 22px; font-size: .68rem; }
}
