/* =============================
   RM Modal (80% Viewport, centered)
   ============================= */

/* Abdunkelung (Overlay) */
.rm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: none;              /* per JS .open setzen */
  z-index: 99999;
  align-items: center;        /* zentrieren des Dialogs */
  justify-content: center;
}
.rm-modal-overlay.open { display: flex; }

/* Dialog-Schale (80% / 80%) */
.rm-modal-dialog {
  width: min(1200px, 80vw);
  height: 80vh;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;           /* Header bleibt fix, iFrame füllt Rest */
}

/* Kopfzeile */
.rm-modal-header {
  height: 44px;
  flex: 0 0 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background: #1f2937;
  color: #fff;
  font-weight: 600;
  user-select: none;
}

/* Close-Button */
.rm-close-btn {
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

/* IFrame füllt den Rest – eigene Scrollbars bei Bedarf */
.rm-modal-iframe {
  flex: 1 1 auto;
  width: 100%;
  height: calc(100% - 44px);  /* falls Browser Flex-Height zickt */
  border: 0;
  display: block;
  background: #fff;
}

/* Button-Position links vom "Aktualisieren"-Button */
.rm-panel-btn { margin-right: 8px; }
