html   { display: block; position: relative; width: 100%; height: 100%; margin:0; padding: 0; overflow: hidden; }  
body   { display: block; position: relative; width: 100%; height: 100%; margin:0; padding: 0; overflow: hidden; }  

#frameCover  { display: none;  position: absolute; width: 100%;  height: 100%;  z-index: 100; overflow: hidden; pointer-events: auto; background:black; opacity:0.5;}

#frameTop    { display: none;  position: absolute; display:none; left: 0; right: 0; height: 4em; z-index: 40; overflow: hidden;  padding:0.375em 0.5em; pointer-events: auto; }
#frameHead   { display: none;  position: absolute; display:none; left: 0; right: 0; height: 3.5em; z-index: 20; overflow: hidden;  padding:0.3333em; pointer-events: auto; }
#frameTools  { display: none;  position: absolute; display:none; left: 0; right: 0; height: auto;  z-index: 10; overflow: visible; pointer-events: auto; }
#frameBody   { display: block; position: absolute; display:none; left: 0; right: 0; top: 0; bottom: 0; z-index: 0; overflow: hidden;  pointer-events: auto; overflow-y: scroll; }
#frameLeft   { display: none;  position: absolute; display:none; left: -20em; width: 15em; top: 4em; bottom: 0; z-index: 30; overflow: auto;    pointer-events: auto; }
#frameRight  { display: none;  position: absolute; display:none; right: -20em; width: 15em; top: 4em; bottom: 0; z-index: 30; overflow: auto;    pointer-events: auto; }

#blockLogo   { display: block; position: relative; margin:0; overflow: hidden;  height:3em;  line-height:3em; float:left; }
#blockTop    { display: block; position: relative; margin:0; overflow: visible; height:3em;  line-height:3em; float:right; }
#blockHead   { display: block; position: relative; margin:0.50em; overflow: hidden;  height:2em;  line-height:2em; font-weight: bold; margin-left: 1em; }
#blockTools  { display: block; position: relative; margin:0.25em; overflow: visible; height:auto; line-height:2em; }
#blockMenu   { display: block; position: relative; margin:0.75em; overflow: auto; }
#blockAux    { display: block; position: relative; margin:0.75em; overflow: auto; }
#blockBody   { display: block; position: relative; padding:0.25em 0 0.25em 0.5em; overflow: visible; background: inherit; }

#frameBody::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}

#frameBody::-webkit-scrollbar-thumb {
  background: #666;
  border-radius: 8px;
  border: 5px solid transparent;
  background-clip: padding-box;
  cursor: pointer;
}

/* Option in use of the top bar (Manager), with a bar under it as in the header of wtm: the theme
   sets its color, the same as .activeOption in wtm */
.activeOption { border-bottom: 0.25em solid currentColor; }

/* The login box (lib/platform/login.js) is centered in #loginWrap, which takes the whole screen.
   Its height is a minimum: it grows with its content (a bigger logo), and if it does not fit the
   screen, #loginWrap scrolls */
#loginWrap {
  position: fixed;
  left:0; top:0; right:0; bottom:0;
  display: flex;
  overflow: auto;
}

#loginBox {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 20em; min-height:35em;   /* (box-sizing: border-box) the inside is 16em, as the logo */
  margin: auto; padding:2em 2em 1.5em;
  background: #444; 
  border: 1px solid #048; 
  border-radius: 1em;
  text-align: center;
}

/* Parts of the login box, centered by default; a theme can change them (theme-gtd aligns them to
   the left) */
#loginBox .loginContent   { margin: auto 0; }   /* centered vertically in the box */
#loginBox .loginLogo      { width: 16em; }
#loginBox .loginName      { text-align: center; font-weight: bold; margin-top: 0.5em; }
#loginBox .loginSeparator { border: none; border-top: 1px solid currentColor; opacity: 0.6; margin: 2em auto 1em; max-width: 14em; }   /* 1em in from each side of the logo, also in the full screen themes; below it, the flags add their 1em */
/* Flags: the others a little dimmed (whole when the mouse is over them); the one of the language
   in use whole, with a bar under it, apart, as the option in use in the header of wtm
   (.activeOption): 0.25em in the accent color of the theme, which the theme sets. The bar is the
   border of the span around the image (the others have it transparent, so they are as high) */
#loginBox .loginFlag      { display: inline-block; vertical-align: top; margin: 1em 0.25em; padding-bottom: calc(0.25em + 1px); border-bottom: 0.25em solid transparent; cursor: pointer; opacity: 0.6; transition: opacity 0.2s; }
#loginBox .loginFlag img  { display: block; width: 32px; height: 24px; border: 1px solid black; }   /* SVG, 4:3 (lib/platform/img/flags) */
#loginBox .loginFlag:hover    { opacity: 1; }
#loginBox .loginFlag.selected { opacity: 1; cursor: default; border-bottom-color: currentColor; }
#loginBox #loginFormContainer { width: 13em; margin: auto; padding: 0 0 0.5em; overflow: hidden; text-align: left; }
#loginBox #btnLogin       { margin: 0.5em auto 0.75em; }
#loginBox .loginRecover   { padding: 1em 0; font-size: 85%; opacity: 0.7; }
#loginBox .loginFooter    { padding: 0.75em 0; opacity: 0.5; font-size: 66%; }

#frameHead > i {
  display: inline-block;
  position: relative;
  margin: 0.25em;
  border: none;
  border-radius: 5px;
  padding: 0;
  width: 1.3333333em;
  height: 1.3333333em;
  line-height: 1.3333333em;
  font-size: 1.5em;
  text-align: center;
  box-shadow: none;
  user-select: none;
  cursor: pointer;
}


#frameLeft button {
  display: block;
  margin: 0.25em 0 0.5em;
  width: 100%;
  text-align: left;
}

#popupMenu {
  display: none;
  position: fixed;
  width: auto;
  height: auto;
  z-index: 0;
  overflow: hidden;
  pointer-events: auto;
}

.menuitem {
  display: block;
  padding:8px;
  margin:8px;
  color: inherit;
  cursor:pointer;
  text-decoration: none;
  border-radius: 4px;  
}

.menuitem:hover {
  background: #E0D4C8;
  text-decoration: none;
}

.menuitem.disabled {
  opacity: 0.25;
  pointer-events: none;
}

.menuoption {
  background: #E8E8E8;
  color: black;
  border: 1px solid #909090;
  line-height: 125%;
}

.menuoption>img {
  margin: 0px;
}

.signaled {
  color: #004090;
}



@media (min-width: 864px) {
  #frameLeft   { left: 0px; }
  #frameRight  { right: 0px; }
  #frameHead   { left: 15em; right: 15em; }
  #frameTools  { left: 15em; right: 15em; }
  #frameBody   { left: 15em; right: 15em; }
  #frameHead i { display: none !important; }
}






