.selbach-pm-print-overlay,
.selbach-pm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 100000;
    display: none;
}
.selbach-pm-print-this-panel {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    box-shadow: none !important;
    border: 1px solid #888 !important;
    /*background: #fff !important;*/
    transform-origin: top left;
    z-index: 100001 !important;
}
.selbach-pm-print-this-panel > .selbach-pm-panel-content {
    background: #fff !important;
}
.selbach-pm-print-this-panel .selbach-pm-container {
    background: #fff !important;
}
html.selbach-pm-print-view {
    width: 210mm;
    height: 297mm;
}
body.selbach-pm-print-view {
    width: 100%;
    height: 100%;
}
/* Moved to print event listeners
@media print {
    html, body {
        width: 210mm;
        height: 297mm;
    }
    .selbach-pm-print-overlay {
        display: block;
    }
}
*/

/* ---- PanelManager components ---- */

.selbach-pm-container {
    position: relative;
    overflow: hidden;
}
.selbach-pm-container.highlighted {
    filter: brightness(0.9);
    box-shadow: inset 0 0 10px #999;
}
.selbach-pm-taskbar:not(.selbach-pm-container).highlighted {
    filter: brightness(0.9);
    box-shadow: inset 0 0 10px #999;
}
.selbach-pm-child-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: #186b8c;
}
.selbach-pm-child-container.has-content {
    outline: 1px solid #ddd;
    outline-offset: -1px;
}
.selbach-pm-child-container .selbach-pm-child-container {
    /*background: #7ec3d8;*/
}
.selbach-pm-child-container .selbach-pm-child-container .selbach-pm-child-container {
    /*background: #333;*/
}
.selbach-pm-child-container.filled {
    background: #fff;
}
.selbach-pm-master-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0px;
    left: 0px;
    border: 0px solid #ddd;
    background: #fff; /*#ececef;*/
    background-image: url(../img/selbach-logo-big.png);
    background-size: 28%;
    background-position: 50% 45%;
    background-repeat: no-repeat;
    transition: background-size 3s;
}
.selbach-pm-master-container.nologo-shrink {
    background-size: 0%;
}
.selbach-pm-master-container.nologo {
    background: none !important;
}
.selbach-pm-master-container-start-box {
    height: 100%; 
    width: 100%; 
    position: relative;
}
.selbach-pm-master-container-start-btn {
    position: absolute;
    top: 55%;
    right: calc(50% - 58px);
    width: 100px;
    height: 34px;
    min-height: unset;
    border-radius: 3px;
    padding: 7px 16px;
    border: 2px solid #175269;
    background: #fff;
    color: #175269;
    font-weight: bold;
}
.selbach-pm-master-container-start-btn:hover {
    color: #fff;
    background: #175269;
}
.selbach-pm-secondary-container {
    width: 100%;
    height: 100%;
}
.selbach-pm-connectors-container {
    background: #eee;
    color: #333;
    background-repeat: no-repeat;
    background-position: center;
}

.selbach-pm-panel {
    margin: 0;
    padding: 0;
    /*overflow: hidden; <- this will cut-off the resize bars*/
}
.selbach-pm-panel.highlighted {
    filter: brightness(0.9);
    box-shadow: inset 0 0 10px #333;
}
.selbach-pm-panel.hidden-via-minimize {
    /*display: none; <- this creates artifacts */
    visibility: hidden;
    /*contain: style size;*/    /* NOTE: this will occasionally drop animation dummy frames */
}
.selbach-pm-panel .smoothAnimations {
    transition: opacity .15s;
}
.selbach-pm-panel .transparent {
    opacity: 0 !important;
}
.selbach-pm-container-panel {
    /* a panel used as container */
}
/* -- Currently defined by jsPanel themes --
.selbach-pm-panel > .jsPanel-hdr {
    background: #7ec3d8;
    color: #fff;
}
.selbach-pm-container-panel > .jsPanel-hdr {
    background: #186b8c;
    color: #fff;
}
*/
.selbach-pm-panel .selbach-pm-anim-helper {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border: 1px solid rgba(150,150,150, 0.75);
    border-radius: inherit;
    background: rgba(150,150,150, 0.5);
    z-index: 2147483000;
    pointer-events: none;
    display: none;
    transition-duration: 0.35s;     /* default set in panel-manager */
    opacity: 0.0;
    transition-property: top, left, heigth, width, opacity;
    visibility: visible; /* overwrite parent 'hidden-via-minimize' */
}
.selbach-pm-panel .selbach-pm-anim-helper.active {
    display: flex;
    opacity: 1.0;
}

.selbach-header-btn .material-icons,
.selbach-header-btn .selbach-font-icons,
.selbach-header-btn .selbach-partner-icons {
    font-size: 15px;
    background: transparent;
    color: inherit;
}
.jsPanel-hdr.smallified .material-icons,
.jsPanel-hdr.smallified .selbach-font-icons,
.jsPanel-hdr.smallified .selbach-partner-icons {
    color: #000;
}
.selbach-pm-container-panel > .jsPanel-hdr.smallified .material-icons,
.selbach-pm-container-panel > .jsPanel-hdr.smallified .selbach-font-icons,
.selbach-pm-container-panel > .jsPanel-hdr.smallified .selbach-partner-icons {
    color: #fff;
}
.selbach-grid-selector {
    position: absolute;
    top: 26px;
    /*left: -19px;*/
    left: 0;
    width: 106px;
    border: 1px solid currentColor;
    background: #186b8c;
    color: #fff;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2147483546;
}
.jsPanel-controlbar.ctrl-overflow .selbach-grid-selector {
    left: 25px;
}
.selbach-grid-selector button {
    background: #7ec3d8;
    color: #fff;
    border: 0;
    border-radius: 3px;
    padding: 2px 6px;
    margin: 4px 0;
    min-width: calc(100% - 4px);
}
.selbach-grid-selector select {
    margin: 4px 0;
    min-width: calc(100% - 2px);
    max-width: 100%;
    height: 24px;
    border: 1px solid currentColor;
    font-size: 12px;
}
.selbach-grid-selector-table {
    border-collapse: collapse;
    margin-bottom: 6px;
}
.selbach-grid-selector-table tr {
    border-collapse: collapse;
}
.selbach-grid-selector-table td {
    width: 14px;
    height: 14px;
    background: #aaa;
    border: 2px solid #fff;
    border-collapse: collapse;
}
.selbach-grid-selector-table td:hover {
    background: #7ec3d8;
}
.selbach-grid-selector-info {
    font-size: 12px;
    width: 100%;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.selbach-pm-container.pm-auto-arrange-scroll {
    display: flex;
    justify-content: start;
    align-items: start;
    align-content: start;
}
.selbach-pm-container.pm-auto-arrange-scroll.arrange-sh1 {
    flex-wrap: wrap;
    overflow-y: auto;
}
.selbach-pm-container.pm-auto-arrange-scroll.arrange-sv1 {
    overflow-x: auto;
}
.selbach-pm-container.pm-auto-arrange-scroll > .selbach-pm-panel {
    position: relative;
    width: auto !important;
    height: auto !important;
    left: unset !important;
    top: unset !important;
    flex-grow: 1;
}
.selbach-pm-container.pm-auto-arrange-scroll.arrange-sv1 > .selbach-pm-panel {
    flex-shrink: 0;
    height: calc(100% - 1px) !important;
}
.selbach-pm-container.pm-auto-arrange-scroll.pm-auto-size-s > .selbach-pm-panel {
    flex-basis: 240px;
}
.selbach-pm-container.pm-auto-arrange-scroll.arrange-sh1.pm-auto-size-s > .selbach-pm-panel {
    height: 240px !important;
}
.selbach-pm-container.pm-auto-arrange-scroll.pm-auto-size-m > .selbach-pm-panel {
    flex-basis: 320px;
}
.selbach-pm-container.pm-auto-arrange-scroll.arrange-sh1.pm-auto-size-m > .selbach-pm-panel {
    height: 320px !important;
}
.selbach-pm-container.pm-auto-arrange-scroll.pm-auto-size-l > .selbach-pm-panel {
    flex-basis: 512px;
}
.selbach-pm-container.pm-auto-arrange-scroll.arrange-sh1.pm-auto-size-l > .selbach-pm-panel {
    height: 512px !important;
}
.selbach-pm-container.pm-auto-arrange-scroll.arrange-sh1.pm-auto-size-100 > .selbach-pm-panel {
    flex-basis: 100%;
    max-width: 100%;
    height: 320px !important;
}

.selbach-pm-panel iframe {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: 0;
}

.selbach-pm-panel-content {
    -webkit-overflow-scrolling: touch;
    transform-origin: top left;
    backface-visibility: hidden;
    /* contain: layout style paint size; */ /* NOTE: 'paint' and 'layout' seems to mess with animation dummy! */
    contain: style size;    /* TODO: test for artifacts */
}
.selbach-pm-panel-content > * {
    transform-origin: top left;
    backface-visibility: hidden;
}
.selbach-pm-panel-content.flex {
    display: flex;
}
.selbach-pm-panel-content.ie11-block {
    display: inline-block;
    overflow: hidden !important;
}
.selbach-pm-panel-content.scale-to-shrink-2x {
    display: flex;
    flex: 0 0 200%;
    width: 200%;
    transform-origin: top left;
    transform: scale3d(0.5, 0.5, 0.5) translateZ(0) perspective(0px);
    backface-visibility: hidden;
}
.selbach-pm-panel-content.scaleable-content-parent,
.selbach-pm-panel-content .scaleable-content-parent {
    display: block !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
}

.selbach-pm-panel > .selbach-pm-panel-options,
.selbach-pm-panel > .selbach-pm-panel-content .selbach-pm-panel-options {
    min-height: 35px;
    width: 100%;
    background: #333;
    color: #eee;
    padding: 4px 6px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    flex-shrink: 0;
}
.selbach-pm-container-panel > .selbach-pm-panel-options {
    background: #fff;
    color: #000;
}
.selbach-pm-panel.hide-options > .selbach-pm-panel-options,
.selbach-pm-panel.hide-options > .selbach-pm-panel-content .selbach-pm-panel-options {
    display: none;
}
/*.selbach-pm-panel > .selbach-pm-panel-options.selbach-iframe-options {
}*/
/*.selbach-pm-panel-content .selbach-pm-panel-options button {
}*/
.selbach-pm-panel.light-content > .selbach-pm-panel-content {
    background: #fff !important;
    color: #000 !important;
}

.selbach-pm-content-with-options {
    width: 100%; 
    height: 100%;
    display: flex; 
    flex-direction: column;
    overflow: hidden;
}
.selbach-pm-center-content {
    width: 100%; 
    height: 100%;
    display: flex; 
    justify-content: center; 
    align-items: center;
}
.selbach-pm-fullsize-block-content {
    width: 100%; 
    height: 100%;
    display: block;
}
.selbach-pm-text-editor-content {
    width: 100%; 
    height: 100%;
    display: flex; 
    flex-direction: column;
    overflow: hidden;
}
.selbach-pm-panel.smallified .selbach-pm-text-editor-content .ql-toolbar,
.selbach-pm-panel.w300 .selbach-pm-text-editor-content .ql-toolbar,
.selbach-pm-panel.h225 .selbach-pm-text-editor-content .ql-toolbar,
.selbach-pm-panel.w150 .selbach-pm-text-editor-content .ql-toolbar,
.selbach-pm-panel.w200 .selbach-pm-text-editor-content .ql-toolbar,
.selbach-pm-panel.h150 .selbach-pm-text-editor-content .ql-toolbar {
    display: none;
}
.selbach-pm-pivot-table-content {
    width: 100%; 
    height: 100%;
    display: flex; 
    flex-direction: column;
    overflow: auto;
}

.selbach-pm-smallified-menu {
    /*width: 50px;*/
    padding: 0 2px 2px 2px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    background: #eee;
}
.selbach-pm-panel:not(.selbach-pm-container-panel) > .jsPanel-hdr > .selbach-pm-smallified-menu {
    background: transparent;
}
.selbach-pm-container-panel > .jsPanel-hdr.smallified {
    background: #186b8c;
}
.selbach-pm-container-panel > .jsPanel-hdr > .selbach-pm-smallified-menu {
    background: #175269;
}
.selbach-pm-smallified-menu .jsPanel-btn {
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    min-height: 26px;
    height: 26px;
    min-width: 26px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.selbach-pm-smallified-menu .jsPanel-btn:hover {
    background: rgba(150,150,150, 0.12) !important;
    border-radius: 50%;
}
.selbach-pm-smallified-menu .jsPanel-btn .material-icons {
    font-size: 16px;
}
/* TODO: add .selbach-font-icons */

.selbach-pm-taskbar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start;
    align-content: flex-start;
    flex-wrap: wrap;
    background: #fff;
}
.selbach-pm-taskbar:not(.with-preview):not(.vertical) {
    flex-wrap: wrap;
    overflow-y: auto;
}
.selbach-pm-taskbar.with-preview {
    flex-wrap: nowrap;
}
/* hide scrollbars for all panels in taskbar with-preview */
.selbach-pm-taskbar.with-preview .selbach-pm-panel-content {
    overflow: hidden;
}
/* hide control buttons when in taskbar v3 - but only when not interactive */
.selbach-pm-taskbar.with-preview > .jsPanel:not(.taskbar-actions) > .jsPanel-hdr > .jsPanel-headerbar > .jsPanel-headerlogo,
.selbach-pm-taskbar.with-preview > .jsPanel:not(.taskbar-actions) > .jsPanel-hdr > .jsPanel-headerbar,
.selbach-pm-taskbar.with-preview > .jsPanel:not(.taskbar-actions) > .jsPanel-hdr {
    width: 100%;
    max-width: 100%;    /* strange workaround to maximize area */
    height: 100%;
}
.selbach-pm-taskbar.with-preview > .jsPanel:not(.taskbar-actions) .jsPanel-hdr {
    top: 0;
    left: 0;
    opacity: 0;
}
/* buttons and header in taskbar with-preview */
.selbach-pm-taskbar.with-preview .selbach-app-buttons h3 {
    margin: 10px 8px 5px 8px;
    font-size: 12px;
}
.selbach-pm-taskbar.with-preview .selbach-app-button {
    min-width: 5px;
    min-height: 5px;
    margin: 4px;
}
.selbach-pm-taskbar.with-preview .selbach-app-button .material-icons {
    font-size: 15px;
}
.selbach-pm-taskbar.with-preview .selbach-app-button .selbach-font-icons,
.selbach-pm-taskbar.with-preview .selbach-app-button .selbach-partner-icons {
    font-size: 11px;
}
/* special panel scaling (scale up x2 then css-shrink down 0.5) */
.selbach-pm-taskbar.with-preview > .jsPanel:not(.very-small):not(.scale-to-optimal) > .selbach-pm-panel-content.scale-when-small {
    display: flex;
    flex: 0 0 200%;
    width: 200% !important;
    transform-origin: top left;
    transform: scale3d(0.5, 0.5, 0.5) translateZ(0) perspective(0px) !important;
    backface-visibility: hidden;
}
/* --- currently inactive since resulting iframe has wrong size sometimes (almost always) O_O ---
.selbach-pm-taskbar.with-preview > .selbach-pm-container-panel .selbach-pm-panel-content.scale-when-small {
    display: flex;
    flex: 0 0 400%;
    width: 400%;
    transform-origin: top left;
    transform: scale3d(0.25, 0.25, 0.25) translateZ(0) perspective(0px);
    backface-visibility: hidden;
}
.selbach-pm-taskbar.with-preview > .selbach-pm-container-panel .selbach-pm-panel-content.scale-when-small .selbach-pm-small-size-overlay {
    display: none !important;
}
.selbach-pm-panel.w300 .selbach-pm-panel-content.scale-when-small,
.selbach-pm-panel.h225 .selbach-pm-panel-content.scale-when-small {
    display: flex;
    flex: 0 0 160%;
    width: 160%;
    transform-origin: top left;
    transform: scale3d(0.625, 0.625, 0.625) translateZ(0) perspective(0px);
    backface-visibility: hidden;
}
.selbach-pm-panel.w150 .selbach-pm-panel-content.scale-when-small,
.selbach-pm-panel.w200 .selbach-pm-panel-content.scale-when-small,
.selbach-pm-panel.h150 .selbach-pm-panel-content.scale-when-small {
    display: flex;
    flex: 0 0 200%;
    width: 200%;
    transform-origin: top left;
    transform: scale3d(0.5, 0.5, 0.5) translateZ(0) perspective(0px);
    backface-visibility: hidden;
}
*/

.selbach-pm-sidebar-container {
    width: 100%;
    height: 100%;
}

#selbach-pm-primary-select-box button {
    margin: 4px;
    padding: 4px 6px;
    background: rgba(50, 50, 50, 0.6);
    color: #fff;
    border: 0;
    border-radius: 3px;
}

.selbach-pm-drop-anchor {
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    border-radius: 50px;
    border: 1px solid rgba(150,150,150, 0.66);
    background: rgba(150,150,150, 0.33);
    z-index: 0;
}
.selbach-pm-drop-anchor.highlighted {
    background: rgba(23, 106, 139, 0.5);
}

.selbach-pm-small-size-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 100000;
}
.selbach-pm-small-size-overlay.container-overlay {
    background: #186b8c;
    color: #fff;
}
.selbach-pm-small-size-overlay.app-overlay {
    background: #fff;
    color: #000;
}
.selbach-pm-panel.small .selbach-pm-small-size-overlay {
    display: flex !important;
    justify-content: center;
    align-items: center;
    align-content: center;
    background: #fff;
    color: #000;
}
.selbach-pm-panel.small .selbach-pm-panel-content {
    overflow: hidden;
}
.selbach-pm-safedrag-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
#selbach-mouse-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(150,150,150, 0.75);
    border-radius: 7px;
    background: rgba(150,150,150, 0.5);
    transform: translate(-50%, -50%);
    z-index: 2147483647;
    pointer-events: none;
    display: none;
}
#selbach-drag-dummy {
    position: fixed;
    top: 0;
    left: 0;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(150,150,150, 0.75);
    background: rgba(150,150,150, 0.5);
    z-index: 2147483646;
    pointer-events: none;
    display: none;
}
#selbach-drag-dummy.highlight1 {
    border-color: rgba(150,0,0, 0.75);
}
#selbach-drag-dummy.highlight2 {
    border-color: rgba(0,150,0, 0.75);
}

/* ---- PanelManager menu, container loader, etc. --- */

#selbach-pm-ctrl-main-menu {
    margin-bottom: 0 !important;
}
#selbach-pm-main-menu {
    position: absolute;
    top: 18%;
    left: calc(50% - 159px);
    padding: 16px 16px 16px 16px;
    background: #fff;
    z-index: 2147483647;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
@media only screen and (max-width: 300px) {
    #selbach-pm-main-menu {
        left: 0;
    }
}
#selbach-pm-main-menu > div {
    width: 100%;
}
#selbach-pm-main-menu button {
    width: 100%;
    margin: 2px 0;
}
#selbach-pm-main-menu label {
    font-size: 15px;
}
#selbach-pm-main-menu .group {
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: space-between;
    padding: 2px 0;
}
#selbach-pm-main-menu #selbach-pm-main-menu-close-btn-box {
    position: absolute; 
    top: 4px; 
    right: 6px; 
    width: 25px;
}
#selbach-pm-main-menu #selbach-pm-main-menu-close-btn {
    background: transparent;
    border: 0;
    color: #000;
    padding: 4px;
}

#selbach-container-loader-menu {
    width: 100%;
    height: 100%;
    /*background: #fff;
    color: #000;*/
    padding: 16px;
}
#selbach-container-loader {
    display: flex;
    flex-direction: column;
}
.selbach-pm-ctrl-trashbin div {
    border: 0;
    background: transparent;
}

/* -- Option bar styles -- */

.selbach-iframe-options label,
.selbach-maps-options label {
    margin-right: 8px;
    font-size: 14px;
    color: currentColor;
}
.selbach-iframe-options input,
.selbach-maps-options input {
    flex-grow: 1;
    margin-right: 8px;
    border: 0px;
    background: transparent;
    color: currentColor;
    border-bottom: 1px solid;
    text-overflow: ellipsis;
}
.selbach-iframe-options button,
.selbach-maps-options button {
    background: transparent;
    color: currentColor;
    margin-left: 8px;
    cursor: pointer;
    border: 1px solid;
    border-radius: 3px;
}