/* CKEditor chrome on the host page (not inside the iframe). */

body.dnnEditState .dnnSortable,
body.dnnEditState .DNNEmptyPane,
body.dnnEditState .dnnDropEmptyPanes,
body.dnnEditState .dnnEmptyPane {
  min-height: 5rem;
}

.cke.cke_maximized,
div.cke_maximized {
  left: 80px !important;
  top: 0 !important;
  width: calc(100vw - 80px) !important;
  max-width: calc(100vw - 80px) !important;
  height: 100vh !important;
  max-height: 100vh !important;
  right: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.cke.cke_maximized .cke_inner {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  width: 100% !important;
}

.cke.cke_maximized .cke_top,
.cke.cke_maximized .cke_bottom { flex: 0 0 auto !important; }

.cke.cke_maximized .cke_contents {
  flex: 1 1 auto !important;
  overflow: hidden !important;
}

.cke_resizer { display: none !important; }

.cke_combo.at-cke-theme-combo { float: left; margin-left: 2px; }
.cke_combo__attheme .cke_combo_text {
  width: auto !important;
  min-width: 4.25rem !important;
  max-width: 7.25rem !important;
  padding-right: 4px !important;
}

.at-cke-theme-panel {
  position: fixed;
  z-index: 10050;
  min-width: 10rem;
  margin: 0;
  padding: 3px 0;
  background: #fff;
  border: 1px solid #b6b6b6;
  box-shadow: 0 0 6px rgba(0,0,0,.18);
}
.at-cke-theme-panel ul { list-style: none; margin: 0; padding: 0; }
.at-cke-theme-panel a {
  display: block;
  padding: 4px 18px 4px 12px;
  color: #000 !important;
  text-decoration: none !important;
  font: 12px/1.4 Arial, Helvetica, sans-serif;
  white-space: nowrap;
}
.at-cke-theme-panel a:hover { background: #dff1ff; }
.at-cke-theme-panel a.at-cke-theme-active { background: #cce0f0; }

/* ctl=Edit: editor must fill the pane and never grow a horizontal scroller */
body.at-is-ctl .dnnForm,
body.at-is-ctl .dnnTextPanel,
body.at-is-ctl .cke,
body.at-is-ctl .cke_inner,
body.at-is-ctl .cke_contents {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

body.at-is-ctl .cke,
body.at-is-ctl .cke_contents,
body.at-is-ctl iframe.cke_wysiwyg_frame {
  overflow-x: hidden !important;
}

body.at-is-ctl .cke_bottom {
  overflow: hidden !important;
}

body.at-is-ctl main,
body.at-is-ctl .home-main,
body.at-is-ctl .content-main,
body.at-is-ctl .default-main,
body.at-is-ctl [id$="ContentPane"],
body.at-is-ctl .DnnModule {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

html.at-is-ctl,
body.at-is-ctl {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

body.at-is-ctl .cke,
body.at-is-ctl .cke_inner,
body.at-is-ctl .cke_contents,
body.at-is-ctl iframe.cke_wysiwyg_frame {
  max-width: calc(100vw - 112px) !important;
  overflow-x: hidden !important;
}

/* Full-page module edit: wrap the toolbar, never max-content */
html.at-is-ctl,
html.at-is-ctl body,
body.at-is-ctl {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

body.at-is-ctl .cke_top,
body.at-is-ctl .cke_toolbox,
body.dnnEditState.at-is-ctl .cke_top,
body.dnnEditState.at-is-ctl .cke_toolbox {
  display: flex !important;
  flex-wrap: wrap !important;
  white-space: normal !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

body.at-is-ctl .cke_toolbar,
body.at-is-ctl .cke_toolgroup {
  float: left !important;
  flex-wrap: wrap !important;
  white-space: normal !important;
}

body.at-is-ctl .cke_contents {
  min-height: 280px !important;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
}
body.at-is-ctl iframe.cke_wysiwyg_frame {
  min-height: 280px !important;
  overflow-x: hidden !important;
}

body.at-is-ctl .default-main-inner,
body.at-is-ctl .content-main-inner,
body.at-is-ctl .home-main-inner,
body.at-is-ctl .dnnTextPanel,
body.at-is-ctl .dnnEditHtml,
body.at-is-ctl .ehCurrentContent {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

body.at-is-ctl .cke_inner,
body.at-is-ctl .cke_contents,
body.at-is-ctl iframe.cke_wysiwyg_frame {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

body.at-is-ctl .cke_contents {
  overflow: hidden !important;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
}
body.at-is-ctl .cke_contents::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}
body.at-is-ctl iframe.cke_wysiwyg_frame {
  overflow: hidden !important;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
}


/* 01.00.16 iframe scroll */
body.at-is-ctl .cke_contents {
  max-height: 720px !important;
  overflow: hidden !important;
}
body.at-is-ctl iframe.cke_wysiwyg_frame {
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body.at-is-ctl .ehCurrentContent {
  overflow: hidden !important;
}
