/* V1575 — Formalização da constatação em drawer lateral (aprox. metade da tela).
   Mantém todos os campos e o envio existentes; em telas estreitas ocupa a largura toda. */
.ro1570-modal[hidden] { display: none !important; }
.ro1570-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  padding: 0;
  margin: 0;
  overflow: hidden;
  box-sizing: border-box;
}
.ro1570-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 28, 50, .48);
  backdrop-filter: blur(2px);
}
.ro1570-modal-panel {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: min(52vw, 720px);
  min-width: 430px;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  box-sizing: border-box;
  background: #fff;
  border: 0;
  border-left: 1px solid #d4e0ef;
  border-radius: 16px 0 0 16px;
  box-shadow: -14px 0 44px rgba(10, 28, 50, .20);
  padding: 0 22px 18px;
  animation: ro1575-drawer-in .22s ease-out both;
}
.ro1570-modal-panel::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }
.ro1570-modal-panel > header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  padding: 18px 22px 12px;
  margin: 0 -22px 14px;
  border-bottom: 1px solid #e6edf5;
}
.ro1570-modal-panel > header h2 { font-size: 20px; }
.ro1570-modal-evidence { margin-bottom: 14px; }
.ro1570-form-grid { gap: 12px 14px; }
.ro1570-modal-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: #fff;
  border-top: 1px solid #e6edf5;
  margin: 16px -1px 0;
  padding: 12px 1px 10px;
}
.ro1570-modal-panel .ro1570-footnote { padding-bottom: 2px; }
@keyframes ro1575-drawer-in {
  from { transform: translateX(28px); opacity: .6; }
  to { transform: translateX(0); opacity: 1; }
}
@media (max-width: 1100px) {
  .ro1570-modal-panel { width: min(58vw, 620px); min-width: 0; padding: 0 18px 18px; }
  .ro1570-modal-panel > header { top: 0; margin: 0 -18px 14px; padding: 16px 18px 11px; }
  .ro1570-form-grid { grid-template-columns: minmax(0, 1fr); }
  .ro1570-form-wide { grid-column: auto; }
}
@media (max-width: 700px) {
  .ro1570-modal-panel {
    width: 100vw;
    min-width: 0;
    border-radius: 0;
    padding: 0 14px 14px;
  }
  .ro1570-modal-panel > header { top: 0; margin: 0 -14px 12px; padding: 12px 14px 10px; }
  .ro1570-modal-panel > header h2 { font-size: 18px; }
  .ro1570-modal-evidence { padding: 9px 10px; }
  .ro1570-form-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ro1570-form-wide { grid-column: auto; }
  .ro1570-modal-actions { flex-wrap: wrap; bottom: 0; }
  .ro1570-modal-actions button { flex: 1 1 140px; }
}
@media (prefers-reduced-motion: reduce) {
  .ro1570-modal-panel { animation: none; }
}
