/* Admin workspace occupies the viewport. Loaded after cpa-ui-v* so it wins. */

body.admin-workspace-open .scene {
  opacity: .12;
}

body.ui-v2.admin-workspace-open .app,
body.ui-v3.admin-workspace-open .app,
body.ui-v4.admin-workspace-open .app,
body.ui-v8.admin-workspace-open .app,
body.admin-workspace-open .app {
  inset: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  background: #f7fbff;
  grid-template-rows: minmax(0, 1fr) !important;
  grid-template-columns: minmax(0, 1fr) !important;
}

body.admin-workspace-open .topbar {
  display: none !important;
}

body.admin-workspace-open .console-stage,
body.admin-workspace-open .stage.console-stage,
body.admin-workspace-open .console-shell-panel,
body.admin-workspace-open .newapi-panel.console-shell-panel,
body.admin-workspace-open .console-shell-panel > .panel-body,
body.admin-workspace-open .console-shell,
body.admin-workspace-open .console-content {
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
}

body.admin-workspace-open .console-stage {
  padding: 0 !important;
}

body.admin-workspace-open .console-shell-panel {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.admin-workspace-open .console-shell-panel > .panel-head {
  display: none !important;
}

body.admin-workspace-open .newapi-panel.console-shell-panel .panel-body {
  padding: 0 !important;
  overflow: hidden !important;
}

body.admin-workspace-open .console-shell {
  gap: 0 !important;
  grid-template-rows: minmax(0, 1fr) !important;
}

body.admin-workspace-open .console-sidebar {
  border-radius: 0;
  border: none;
  border-right: 1px solid rgba(54, 83, 122, .16);
}

body.admin-workspace-open .console-page[data-console-page="admin"].active {
  display: flex !important;
  flex-direction: column;
  height: 100% !important;
  min-height: 0 !important;
  padding: 10px 12px 12px;
  overflow: hidden;
  gap: 8px;
}

body.admin-workspace-open .console-page[data-console-page="admin"].active > * {
  flex: 0 0 auto;
}

body.admin-workspace-open .console-page[data-console-page="admin"] [data-admin-panel="ops"] {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: transparent;
  border: none;
  box-shadow: none;
}

body.admin-workspace-open #yelanOpsRoot {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  height: auto !important;
}

body.admin-workspace-open .yelan-ops.is-embedded .section.workspace {
  min-height: 0;
}

body.admin-workspace-open .yelan-ops.is-embedded .split {
  min-height: 240px;
}

body.admin-workspace-open .console-page[data-console-page="admin"]:has([data-admin-panel="ops"]:not([hidden])) .admin-page-hero,
body.admin-workspace-open .console-page[data-console-page="admin"]:has([data-admin-panel="ops"]:not([hidden])) .admin-overview-strip {
  display: none !important;
}

@media (max-width: 760px) {
  body.admin-workspace-open .console-page[data-console-page="admin"].active {
    overflow: auto;
  }

  body.admin-workspace-open .console-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(54, 83, 122, .16);
  }

  body.admin-workspace-open .console-shell {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
  }
}
