/* Keep Apps Open -- see keep_apps_open.js */

/* The panes' host, laid over the content area to the right of the left menu.
   Its box is set from JS (the menu's width differs per screen mode). */
#kao-host {
    position: fixed;
    z-index: 4;
    background: inherit;
    overflow: hidden;
}

#kao-host[hidden] {
    display: none !important;
}

/* Hidden panes keep their full size. display:none would give the frame a 0x0
   viewport, and Elastic would lay the app out for a phone behind our back. */
.kao-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    visibility: hidden;
    pointer-events: none;
}

.kao-frame.kao-on {
    visibility: visible;
    pointer-events: auto;
}

/* The page's own app while another one is on screen. visibility, not
   display, for the same reason: scroll positions and layout survive. */
html.kao-away #layout > :not(#layout-menu) {
    visibility: hidden !important;
}

/* An app inside a pane: the one left menu is the top page's. */
html.kao-pane #layout-menu {
    display: none !important;
}
