html, body {
  position:relative;
  margin: 0;
  padding: 0;
  min-width: 280px;
  min-height: 280px;
  font-weight: normal; 
  font-size: 16px; 
  font-family: Roboto;  
  background: white;
  color: black;
  overflow: auto;
  overflow: overlay;
}

body::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

body::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 5px;
  border: 3px solid transparent;
  background-clip: padding-box;
}

#login {
  position:absolute; 
  top:0; 
  left:0; 
  width:100%; 
  height:100%; 
  min-width: 280px;
  min-height: 280px;
  background:white; 
  overflow:hidden; 
  z-index:10000
}

#mainmenu {
  position: fixed;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  z-index: 9;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: 0 0 32px 0 rgba(0,0,0,0.5);
}

#mainmenuHead {
  position:absolute;
  left:0;
  top:0;
  right:0;
  padding:2px 0.25em 0;
  height:56px;
}

#mainmenuBody {
  position:absolute;
  top:0;  /* 75px; */
  left:0;
  right:0;
  bottom:0;
  overflow:auto;
  overflow:auto;
}

#mainmenuBody::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

#mainmenuBody::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 5px;
  border: 3px solid transparent;
  background-clip: padding-box;
}

#header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: auto;
  z-index: 3;
  overflow: hidden;
  background: white;
  box-shadow: 0 0 8px 8px white;
}

#title {
  position: relative;
  margin: 16px 16px 0 16px;
  height: 32px;
  line-height: 36px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#titleText {
  min-height: 32px;
  line-height: 24px;
  font-size: 133.333%;
  font-weight: bold;
  margin: 0 4px;
}

#titleLeft {
  position: relative;
  float: left;
  overflow: hidden;
  white-space: nowrap;
}
 
#titleRight {
  position: relative;
  float: right;
  overflow: hidden;
  white-space: nowrap;
}

#toolbar {
  display: none;
  position: relative;
  margin: 16px 16px 0 16px;
  overflow: hidden;
}

#footer {
  position: fixed;
  display: none;
  left: 0;
  right: 0;
  bottom: 0;
  height: auto;
  z-index: 3;
  overflow: hidden;
  padding: 0 10px 10px 10px;
  text-align: center;
}

#page {
  position: relative;
  margin: 0;
  padding: 16px; 
  width: auto;
  height: auto;
  background: white;
  box-sizing: border-box;
  overflow: hidden;
  overflow-y: auto;
  overflow-y: overlay;
}

#page::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

#page::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 5px;
  border: 3px solid transparent;
  background-clip: padding-box;
}

#cover {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
  display: none;
  z-index: 2;
  touch-action: none;
  display: none;
}


/* ------------------------------------------------------------------------- */

.left {
  float: left;
}

.right {
  float: right;
}

.full {
  float: none;
  display: block !important;
}

.middle {
  vertical-align: middle !important;
}

.hidden {
  display: none !important;
}

hr {
  margin: 0.6875em 0;
  border-style: solid;
  border-color: #d4d4d4;
  border-width: 1px 0 0 0;
}


/* ------------------------------------------------------------------------- */

.groupBox {
  clear: both;
  display: block;
  position: relative;
  margin: 0 0 10px 0;
  padding: 4px;
  border-radius: 0.em;
  background: #ccc;
  overflow: hidden;
}


/* ------------------------------------------------------------------------- */

.button {
  display: inline-block;
  position: relative;
  margin: 4px;
  padding: 4px;
  height: 32px;
  box-sizing: border-box;
  min-height: 32px;
  line-height: 23px;
  min-width: 32px;
  width: auto;
  text-align: center; 
  text-decoration: none;
  background: black;
  border: 1px solid #888;
  border-radius: 5px;
  color: white;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  font-family: inherit;
  font-size: 14px;
}

.button:hover {
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.button:disabled {
  opacity: 0.333;
  pointer-events: none;
  -webkit-tap-highlight-color: transparent;
}

.button.compact {
  margin: 0;
  padding: 0 0.125em;
  min-width: 1.6875em;
  min-height: 1.6875em;
  height: 1.6875em;
  line-height: 1.5em;
  font-size: inherit;
}

.button.toolbar {
  font-size: 16px;
  margin: 0;
  padding: 0 0.125em;
  min-width: 1.75em;
  min-height: 1.75em;
  height: 1.75em;
  line-height: 1.75em;
}

.button.big {
  margin: 0;
  display: table;
  padding: 0 0.25em;
  xmin-width: 3.375em;
  height: 3.375em;
  text-align: center;
  font-size: inherit;
}

.button.big > i { 
  display: table-cell;
  padding: 0 0.125em;
  vertical-align: middle;
  text-align: center;
  font-size: 150%;
}

.button.big > span {
  display: table-cell;
  padding: 0 0.25em;
  vertical-align: middle;
  text-align: left;
  white-space: wrap;
}

.button.regular {
  min-width: 88px;
}


/* ------------------------------------------------------------------------- */

.icon {
  display: inline-block;
  position: relative;
  padding: 0;
  margin: 0;
  border: none;
  outline: none;
  background: inherit;
  cursor: pointer;
  text-align: left;
}

icon.increased {
  font-size: 120%;
  line-height: 0.83333em;
}

icon.increased.fa-lg {
  font-size: 160%;
  line-height: 0.625em;
}

icon.increased.fa-fw {
  width: 1.042em;
}

.icon.decreased {
  font-size: 80%;
  line-height: 1.25em;
}

.icon.decreased.fa-lg {
  font-size: 106%;
  line-height: 0.9375em;
}

.icon.decreased.fa-fw {
  width: 1.5625em;
}

.button .icon {
  color: inherit;
}

i.fa-grp1 {
  position: relative;
  overflow: visible;
}

i.fa-grp2 {
  font-size: 50%;
  position: relative;
}

i.subicon {
  display: block;
  position: absolute;
  font-size: 50%;
  left: 1.125em;
  top: 0.9em;
  right: auto;
  bottom: auto;
  width: 1em;
  height: 1em;
  line-height: 1em;
  text-align: center;
  padding: 0.150em ;
  border-radius: 50%;
}

i.maskedicon  {
  -webkit-mask-image: radial-gradient(circle at calc(40% + 0.44em) calc(40% + 0.44em), transparent 0.40em, white calc(0.40em + 1px));
}

i.maskedsubicon  {
  display: block;
  position: absolute;
  font-size: 66%;
  left: 40%;
  top: 40%;
  right: auto;
  bottom: auto;
  width: 1em;
  height: 1em;
  line-height: 1em;
  margin: 0;
  padding: 0;
  margin-top: 0.166em;
  margin-left: 0.166em;
}

img.contained {
  display: block;
  position: absolute; 
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0; 
  margin: auto; 
  padding: 0;
  max-width: 96%; 
  max-height: 96%;
}

.framed img {
  box-shadow: 0 0 0 1px rgba(0,0,0,0.10);
}


/* ------------------------------------------------------------------------- */

.menuitem {
  display: block;
  position: relative;
  padding: 6px 0.25em;
  margin: 8px 0.5em;
  height: 1.5em;
  line-height: 1.5em;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  border-radius: 4px;  
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  background: #eee;
}

.menuitem:hover {
  background: #E0D4C8;
  text-decoration: none;
}

.menuitem.disabled {
  opacity: 0.25;
  pointer-events: none;
}

.menuitem .icon, .menuitem .thumbnail {
  margin: 4px 0;
}

.popupmenu {
  position: fixed;
  width: auto;
  height: auto;
  z-index: 9;
  box-shadow: 0 0 8px 2px #888;
  overflow: hidden;
  display: none;
  border-radius: 0.5em;
  overflow: auto;
  overflow: overlay;
}

.popupmenu::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.popupmenu::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 5px;
  border: 3px solid transparent;
  background-clip: padding-box;
}

.menuoption {
  cursor: pointer;
  background: #eee;
  color: black;
  border: 1px solid #e0e1e4;
  line-height: 125%;
}

.menuoption > img {
  margin: 0px;
}

.signaled {
  color: #004090;
}

.menuBadge {
  position: absolute;
  right: 0.5em;
  top: 0.5em;
  font-size: 80%;
  width: 1.5em;
  height: 1.5em;
  line-height: 1.5em;
  text-align: center;
  border-radius: 50%;
  background: black;
  color: white;
}

.itemBadge {
  display: block;
  position: relative;
  float: left;
  font-size: 80%;
  min-width: 0.75em;
  line-height: 1.33em;
  padding: 0 0.25em;
  margin: 0 0.5em 0 0;
  text-align: center;
  border-radius: 0.625em;
  background: black;
  color: white;
}

.itemBadge.square {
  border-radius: 0.25em;
}


/* ------------------------------------------------------------------------- */

.pageitem0 {
  display: block;
  position: relative;
  margin: auto;
  margin-top: 5%;
  margin-top: calc(max(50vh - 48px - 16px - 20em, 0px));
  width: 280px;
  height: auto;
  overflow: hidden; 
}

.pageitem1, .pageitem2, .pageitem3, .pageitem4, .pageitem8 {
  display: block;
  position: relative;
  float: left;
  width: 100%;  /* change this to set number of columns */
  margin: 0;
  padding: 0;
  overflow: hidden; 
}

.pageitembox {
  display: block;
  position: relative;
  overflow: hidden;
  padding: 0.25em;
  border-bottom: 1px solid #ccc;
}

.dkformfield .pageitembox:last-child {
  border-bottom: none;
}

.pageitembox :hover{
  cursor: pointer;
}

.pageitembox i {
  position: relative;
}

.ellipsisbox {
  display: block;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.noborder {
  border: none;
}

.noscrollbar {
  overflow: hidden;
  overflow-y: auto;
  overflow-y: overlay;
}

.noscrollbar::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.scroller {
  overflow: auto; 
  overflow-x: hidden;
  overflow-y: overlay;
}

.scroller::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.scroller::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 5px;
  border: 3px solid transparent;
  background-clip: padding-box;
}

.disabled {
  pointer-events: none;
  -webkit-tap-highlight-color: transparent;
}

.disabled > i {
  opacity: 0.33;
}

label.disabled {
  opacity: 0.33;
}

/* ------------------------------------------------------------------------- */

.table {
  margin: 0; 
  width: 100%; 
  display: table; 
  table-layout: fixed; 
  border-collapse: collapse; 
  box-sizing: border-box;
}

.table-cell {
  display: table-cell;
  position: relative;
  vertical-align: middle;
  overflow: hidden;
  padding: 0;
  border: 4px solid transparent;
}

.table-cell .button {
  margin: 0;
}


/* ------------------------------------------------------------------------- */

@media only screen and (min-width: 280px) {
  .pageitem2 {width: 100%}
  .pageitem3 {width: 100%}
  .pageitem4 {width: 100%}
  .pageitem8 {width: 50%}
}

@media only screen and (min-width: 560px) {
  .pageitem2 {width: 50%}
  .pageitem3 {width: 50%}
  .pageitem4 {width: 50%}
  .pageitem8 {width: 25%}
}

@media only screen and (min-width: 960px) {
  .pageitem2 {width: 50%}
  .pageitem3 {width: 33.33%}
  .pageitem4 {width: 33.33%}
  .pageitem8 {width: 16.66%}

  #btnMainMenu.menuLeft {display: none;} 
  #mainmenu.menuLeft    {display: block; left:0 !important; width:16em; height:100%; box-shadow:none;}
  #header.menuLeft      {left: 16em}
  #footer.menuLeft      {left: 16em}
  #page.menuLeft        {margin-left: 16em}

  #btnMainMenu.menuTop  {display: none;} 
  #mainmenu.menuTop     {display: block; left:0 !important; width:100%; height:5em; box-shadow:none;}
  #mainmenu.menuTop i.submenuIndicator {display:none;} 
  #header.menuTop       {top: 5em}
  #page.menuTop         {margin-top: 9em}
  #mainmenu.menuTop #mainmenuHead {width: 16em; right: auto;}
  #mainmenu.menuTop #mainmenuBody {top: 0; left:0; right:0; padding:12px 0; white-space: nowrap; overflow:hidden; overflow-x:auto; overflow-x:overlay;}
  #mainmenu.menuTop #mainmenuBody .menuitem {display: inline-block; }
}
  
@media only screen and (min-width: 1280px) {
  .pageitem2 {width: 50%}
  .pageitem3 {width: 33.33%}
  .pageitem4 {width: 25%}
  .pageitem8 {width: 12.50%}
}

@media only screen and (max-width: 560px) {
  #title .button > span {
    display: none;
  }
  .button.compact > span {
    display: none;
  }
  .table-cell:has(.button.compact) {
    max-width: 2em;
  }
  .button.regular {
    min-width: 32px;
  }
}

