/* Admin iframe embed — content only inside tab frames */

html.is-admin-embed-frame,
body.page-admin-embed {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

body.page-admin-embed {
  height: auto !important;
  overflow-y: auto !important;
  background: var(--admin-bg-body, #f8fafc);
}

body.page-admin-embed #header,
body.page-admin-embed .admin-topbar,
body.page-admin-embed .admin-bottom,
body.page-admin-embed .admin-sidebar-backdrop {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

body.page-admin-embed .admin-app {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

body.page-admin-embed .admin-main {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

body.page-admin-embed .admin-tab-stage {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

body.page-admin-embed .admin-tab-stage > .admin-tab-pane:not(.is-active) {
  display: none !important;
}

body.page-admin-embed .admin-tab-stage > .admin-tab-pane.is-active,
body.page-admin-embed .admin-content {
  display: block !important;
  width: 100% !important;
  flex: none !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

body.page-admin-embed .admin-content {
  padding: 0.75rem 0.85rem 1rem !important;
}
