#ui-2021-a {
  height: 100%;
  touch-action: none;
}

#ui-2021-a body {
  margin: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  overflow: hidden;                           /* prevent vertical scrollbar on Firefox */
}

#mainContainer {
  width: 100%;
  height: 100%;
}

[data-toolbarsplacement] {
  display: flex;
  flex-wrap: wrap;
}

[data-toolbarsplacement="top"] {
  flex-direction: column-reverse;
}

[data-toolbarsplacement="right"] {
  flex-direction: row;
}

[data-toolbarsplacement="bottom"] {
  flex-direction: column;
}

[data-toolbarsplacement="left"] {
  flex-direction: row-reverse;
}

#contentContainer  {
  flex: 1 0;
  position: relative;
}

#toolbarsContainer {
  flex: 0 1;
  display: flex;
  flex-wrap: wrap;
  z-index: 300000000;
  position: relative;
}

iframe {
  border: 0;
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

iframe[name="contentiframe"], iframe[name="addoniframe"] {
  z-index: 200000000;
}

iframe[name="contentiframe"].shown {
  z-index: 200000001;
}

iframe[data-type="unobtrusive"] {
  z-index: 200000002;
}

iframe[data-type="widget"] {
  z-index: 200000003;
}

iframe[data-type="exclusive"] {
  z-index: 200000004;
}

iframe[name="addoniframe"].shown {
  z-index: 200000005;
}

[data-toolbarsplacement="right"] #toolbarsContainer, [data-toolbarsplacement="left"] #toolbarsContainer {
  flex-direction: column;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
}

[data-toolbarsplacement="top"] .toolbar , [data-toolbarsplacement="bottom"] .toolbar  {
  flex: 1 1;
}

[data-toolbarsplacement="right"] .toolbar , [data-toolbarsplacement="left"] .toolbar  {
  flex: 0 1;
}

#toggleOptionsContainer {
  flex: 0 1;
  display: flex;
  align-items: stretch;
}

.toolbar button {
  display: block;
  cursor: pointer;
}

.toolbar button a {
  display: flex;
  height: 100%;
  width: 100%;
  align-items: center;
  justify-content: center;
}

#toggleOptionsToggle {
  position: relative;
  cursor: pointer;
}

[data-toolbarsplacement="top"] #toggleOptionsToggle, [data-toolbarsplacement="bottom"] #toggleOptionsToggle {
  height: 100%;
}

[data-toolbarsplacement="right"] #toggleOptionsToggle, [data-toolbarsplacement="left"] #toggleOptionsToggle {
  width: 100%;
}

#toggleOptionsToggle::before {
  content: "";
  border-color: transparent;
  border: solid transparent;
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
}

#toolbarsOptions {
  position: absolute;
  display: none;
}

[data-toolbarsplacement="top"] #toolbarsOptions {
  top: 100%;
  right: 0;
}

[data-toolbarsplacement="right"] #toolbarsOptions {
  right: 100%;
  bottom: 0;
}

[data-toolbarsplacement="bottom"] #toolbarsOptions {
  bottom: 100%;
  right: 0;
}

[data-toolbarsplacement="left"] #toolbarsOptions {
  left: 100%;
  bottom: 0;
}

.shown #toolbarsOptions {
  display: block !important;
}

#toolbarsOptions .input-block {
  display: flex;
  position: relative;
}

#toolbarsOptions input[type="checkbox"] {
  cursor: pointer;
  position: absolute;
  margin: 0;          /* is a default browser style "undo" */
}

#toolbarsOptions input[type="radio"] {
  cursor: pointer;
  position: absolute;
  margin: 0;          /* is a default browser style "undo" */
}

#toolbarsOptions .input-block label {
  cursor: pointer;
  width: 100%;
}

#toolbarsOptions select {
  margin: auto;
  position: relative;
  display: table;
  cursor: pointer;
}

.keep-1-lined {
  white-space: nowrap !important;
}

#buttonPlugins {
  position: relative;
  z-index: 2;
}

#selectablePlugins {
  position: absolute;
  left: -1px;
  width: 100%;
  display: none;
}

#buttonPlugins:hover #selectablePlugins {
  display: table;
}

[data-toolbarsplacement="top"] #selectablePlugins {
  top: 100%;
  padding-top: 5px;
}

[data-toolbarsplacement="right"] #selectablePlugins {
  right: calc(100% - 97px);
  left: auto;
  top: -3px;
  padding-right: 107px;
}

[data-toolbarsplacement="bottom"] #selectablePlugins {
  bottom: 100%;
  padding-bottom: 5px;
}

[data-toolbarsplacement="left"] #selectablePlugins {
  left: calc(100% - 97px);
  top: -3px;
  padding-left: 107px;
}

.selectable-plugin {
  display: flex;
  margin-top: 2px;
}

[data-toolbarsplacement="bottom"] .selectable-plugin {
  margin-top: 0;
  margin-bottom: 2px;
}

.selectable-plugin input {
  margin-top: 4px;
  margin-right: 0;
}

[data-toolbarsplacement="top"] #exclusivePlugins {
  height: 26px;
  margin: 5px 2.5px;
  align-self: center;
}

[data-toolbarsplacement="right"] #exclusivePlugins {
  width: 100%;
  margin: 2.5px 5px;
}

[data-toolbarsplacement="bottom"] #exclusivePlugins {
  height: 26px;
  margin: 5px 2.5px;
  align-self: center;
}

[data-toolbarsplacement="left"] #exclusivePlugins {
  width: 100%;
  margin: 2.5px 5px;
}