/* Memorial Studio 0.6.1 — ajustes restritos à interface; sem efeitos na impressão A4. */
.ms61-document-floor,.ms61-document-general{margin-top:14px}
.ms61-floor-count{display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:320px;margin:12px 0}
.ms61-floor-count .input{width:90px;max-width:90px}
.ms61-floor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}
.ms61-floor-grid .field{min-width:0}
.ms61-floor-grid .field span{font-size:12px;overflow-wrap:anywhere}
.ms61-floor-grid .input,.ms61-floor-grid select{max-width:100%;min-width:0}
.ms61-running{display:inline-flex;align-items:center;gap:9px;color:#bbc7d9;font-size:12px}
.ms61-spinner{display:inline-block;vertical-align:middle;width:15px;height:15px;border-radius:50%;border:2px solid #515866;border-top-color:#d74b60;animation:ms61-spin .85s linear infinite;flex:none}
@keyframes ms61-spin{to{transform:rotate(360deg)}}
.ms61-complete{margin:12px 0;padding:13px 15px;border-left:3px solid #35b87d;border-radius:6px;background:rgba(52,165,111,.085);color:#83deb0;font-size:12px;line-height:1.55}
.ms61-complete strong{display:block;color:#91edbe;font-size:13px}
.ms61-partial{margin:12px 0;padding:13px 15px;border-left:3px solid #d6a24e;border-radius:6px;background:rgba(214,162,78,.07);color:#efd49e;font-size:12px}
.ms61-warn-general{font-size:12px;color:#ddc38f;padding:8px 0}
@media(max-width:740px){.ms61-floor-grid{grid-template-columns:1fr}.ms61-floor-count{align-items:start}}
@media(prefers-reduced-motion:reduce){.ms61-spinner{animation-duration:2.4s}}
@media print{.ms61-spinner,.ms61-complete,.ms61-partial{display:none!important}}


/* v0.7.3 — prévia A4 em largura integral no editor.
   Restrito à interface da etapa Memorial; NÃO altera o conteúdo A4 nem impressão. */
@media screen and (min-width: 1001px) {
  .main-content:has(#report-stage) { max-width: 1440px; }
  .editor-layout:has(#report-stage) {
    grid-template-columns: minmax(0,1fr);
    gap: 14px;
  }
  .editor-layout:has(#report-stage) #stage-body {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
  }
  /* Painel lateral vira uma faixa informativa compacta, SEM sobrepor a prévia. */
  .editor-layout:has(#report-stage) .side-note {
    grid-column: 1;
    grid-row: 1;
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    padding: 12px 18px;
  }
  .editor-layout:has(#report-stage) .side-note h3,
  .editor-layout:has(#report-stage) .side-note p {
    margin: 0;
  }
  .editor-layout:has(#report-stage) .side-note .rule { display: none; }
  .editor-layout:has(#report-stage) .side-note .button-row {
    margin: 0 0 0 auto;
  }
  .editor-layout:has(#report-stage) #ms-page-panel {
    width: 100%;
    min-width: 0;
  }
  .editor-layout:has(#report-stage) #ms-page-panel .ms-report-iframe {
    display: block;
    width: 100%;
    max-width: 100%;
  }
}
