/* TODO should be moved to haiku.bootstrap */

.hiddenStructure { 
    display: none;
}

/* styling for overlays (popups) */

.pb-ajax, .pb-image, .overlay iframe {
    background-color: #fff;
    white-space: normal;
}

.pb-ajax {
    border: none;
    overflow: auto;
}

.pb-ajax > div {
    padding: 1em;
    width: 92%;
}

div.overlay {
    background-color: #fff;
    border-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    border-style: solid;
    border-width: 1px;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 5px;
    max-width: 760px;
    width: auto;
    height: auto;
    /* initially overlay is hidden */
    display: none;
    /* some padding to layout nested elements nicely  */
    margin: 1em;
}

div.overlay-iframe,
div.overlay-ajax {
    width: 60%;
    min-height: 100px;
    z-index: 99; /* overlays should be above everything */
}

div.overlay-iframe {
    height: 60%;
}

div.overlay h1 {
	font-size: 1.46154rem;
    padding: 15px 0;
    border-bottom: 1px solid #e5e5e5;
}

/* default close button positioned on upper-right corner */
div.overlaybg div.close,
div.overlay div.close {
    background-image: none;
    position: absolute;
    right: 30px;
    top: 15px;
}

div.overlaybg div.close::after,
div.overlay div.close::after {
    content: "\00D7"
}

.pb-ajax .ploneSkin table.mceLayout .mceButton {
  height: inherit;
  margin-top: 0;
  margin-right: 5px;
}

.pb-ajax .documentActions {
    display:none
}

div.overlay div.close span {
    display: block;
    height: 1px;
    margin: -1px 0 0 -1px;
    overflow: hidden;
    padding: 0;
    width: 1px;
}

div.overlay textarea {
    width: 100%;
}

/* Hide form elements that don't make sense within an overlay. */
div.overlay .link-parent { display: none; }
div.overlay #createGroup legend { display: none; }
div.overlay #createGroup fieldset { border: none; }

div.overlay label {
    margin-bottom: 0.25em;
}
div.overlay a:hover {
    color: #75ad0a;
}
div.overlay a:hover label{
    cursor: pointer;
}
div.overlay a.selected {
    color: #000000;
}
div.overlay .formTab {
    margin-right:1em;
    font-weight: bold;
}
div.overlay .formTab.lastFormTab {
    margin-right:0em;
}
div.overlay .formControls a {
    display: block;
    margin: 0.75em;
}
