/*
 * Inline-Window
 */
.inlinewindow {
  background: none repeat scroll 0 0 rgba(0, 0, 0, 0.3);
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1003;
  display: table;
}

.inlinewindow-container {
  background-color: #fff;
  border: 1px solid #777;
  border-radius: 3px;
  box-shadow: 3px 4px 4px #777;
  margin: auto;
  padding: 10px;
  position: relative;
  display: table;
}

.inline-table {
  display: table-cell;
  vertical-align: middle;
  height: 100%;
}

.inlinewindow-title {
  font-size: 10pt;
  font-weight: bold;
  padding-bottom: .5rem;
  height: 20px;
}

.inlinewindow-maximize,
.inlinewindow-close {
  margin-left: 10px;
  cursor: pointer;
  float: right;
}

/*
 * Inline-Window automatisch aufziehen
 */
.inlinewindow.autostretch {
  display: block;
}

.inlinewindow.autostretch .inline-table {
  display: block;
}

.inlinewindow.autostretch .inlinewindow-container {
  top: 100px;
  width: calc(100% - 200px);
  height: calc(100% - 200px);
  min-width: 720px;
  min-height: 300px;
  display: block;
}

/*
 * muss hier über die Dom-ID gemacht werden, da Pure
 * die Klassen verwirft
 */
.inlinewindow.autostretch .inlinewindow-container [data-fcms-domid="content"] {
  height: calc(100% - 27px);
}

/*
 * Inline-Window maximiert (orientiert an page)
 */
.inlinewindow .inlinewindow-container.maximized {
    width: auto;
    height: 98%;
    top: 0;
}

/* Treeselects schmaler darstellen und scrollbar machen */
.inlinewindow.autostretch.treeselect .inlinewindow-container {
  max-width: 450px;
  min-width: 320px;
}

.inlinewindow.autostretch.treeselect .inlinewindow-container .tree-container {
  height: calc(100% - 42px);
}

.inlinewindow.autostretch.treeselect .inlinewindow-container .tree-container .jstree{
    overflow: auto;
    position: relative;
    height: calc(100% - 55px);
}

/* Treeselect mit Platz für Button */
.inlinewindow.treeselect.withButtons .inlinewindow-container .tree-container {
    height: calc(100% - 100px);
    margin-bottom: 24px;
}

.inlinewindow.treeselect.withButtons .inlinewindow-buttons .button-container {
    float: right;
}