HTML, BODY {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
}

HTML, BODY, DIV, INPUT {
  box-sizing: border-box;
}

SELECT {
  min-height: 2em;
  font-size: inherit;
}

INPUT {
  font: inherit;
}

H1,H2,H3,P {
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

IFRAME {
  border: none;
}

/*UL, OL {
  padding-left: 2em;
  margin-bottom: 0;
}

P:first-child,UL:first-child,OL:first-child {
  margin-top: 0;
}*/

.gw-unselectable {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

.gw-hidden {
  display: none !important;
}

.gw-button {
  padding: 0;
  font: inherit;
  padding: 0.125em 0.5em;
  min-height: 2em;
}

.gw-button.gw-noborder {
  border: solid 1px transparent;
  background: none;
  padding: 0;
}

.gw-button.gw-noborder:hover {
  border: solid 1px #C0C0C0;
}

.gw-button-image {
  margin-right: 0.5em;
}

.gw-button > DIV {
  vertical-align: middle;
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-flow: row;
}

.gw-button > DIV > SPAN {
  display: inline-block;
}

.gw-tab-header {
  margin-bottom: -1px;
  z-index: 1;
  line-height: 2em;
}

.gw-tab-header.gw-noborder {
  margin-bottom: 0;
}

.gw-tab {
  color: gray;
  padding: 0 0.5em;
  cursor: pointer;
  border-top: solid transparent 1px;
  border-right: solid transparent 1px;
  border-left: solid transparent 1px;
}

.gw-tab:hover {
  color: black;
}

.gw-tab-selected {
  padding: 0 0.5em;
  border-left: solid #C0C0C0 1px;
  border-top: solid #C0C0C0 1px;
  border-right: solid #C0C0C0 1px;
  border-top-left-radius: 0.5em;
  border-top-right-radius: 0.5em;
  background: white;
}

.gw-tab-header.gw-noborder > div {
  border: none;
}

.gw-tab-contents {
  border: solid #C0C0C0 1px;
  flex-grow: 1;
  display: flex;
  flex-flow: column;
}

.gw-tab-contents > DIV {
  flex-grow: 1;
}

.gw-tab-contents.gw-noborder {
  border: none;
}

.gw-checkbox,.gw-radiobutton {
  display: flex;
  flex-flow: row;
  min-height: 2em;
}

.gw-checkbox-label,.gw-radiobutton-label {
  display: flex;
  flex-flow: row;
  align-items: center;
}

.gw-checkbox.gw-disabled > .gw-checkbox-label {
  opacity: 0.5;
}

.gw-radiobutton.gw-disabled > .gw-checkbox-label {
  opacity: 0.5;
}

.gw-checkbox-toggle,.gw-radiobutton-toggle {
  margin: 0;
  margin-right: 0.5em;
}

.gw-textbox {
  display: inline-block;
  position: relative;
  min-height: 2em;
}

.gw-textbox.gw-noborder {
  border: none;
}

.gw-textbox INPUT {
  width: 100%;
  min-height: 2em;
  box-sizing: border-box;
  padding: 0 0.25em;
  vertical-align: middle;
}

.gw-textbox-clear {
  position: absolute;
  right: 0;
  display: inline-block;
  z-index: 2;
  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAQ0lEQVQYlWNmYGCwY2BgiGdgYDjIgArqGBgY/iMz6rBI1mETwKYBRRGKJBO6KlwArxV4HckMZTxgYGBoQlJwECp+AADQjhqXl5Xe2AAAAABJRU5ErkJggg==');
  background-position: center;
  background-repeat: no-repeat;
  height: 2rem;
  width: 2rem;
  /*margin-left: -2rem;*/
  /*pointer-events: none;*/
  vertical-align: middle;
  border: none;
  /*overflow: hidden;*/
}

.gw-combobox {
  display: inline-block;
  position: relative;
  min-height: 2em;
}

.gw-combobox SELECT {
  height: 100%;
  z-index: 1;
  opacity: 0;
  float: right;
}

.gw-combobox INPUT {
  width: 100%;
  min-height: 2em;
  box-sizing: border-box;
  padding: 0 2.25em 0 0.25em;
  vertical-align: middle;
}

.gw-combobox.gw-noborder INPUT {
  border: none;
}

.gw-combobox-arrow {
  display: inline-block;
  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAI0lEQVQYlWNgoAZoYGBg+I8DN+BT1MCABhrwSSIrwilJHgAAbCcP9dwIQGIAAAAASUVORK5CYII=');
  background-position: center;
  background-repeat: no-repeat;
  height: 2rem;
  width: 2rem;
  margin-left: -2rem;
  /*pointer-events: none;*/
  vertical-align: middle;
  border: none;
  overflow: hidden;
}

.gw-selectbox {
  display: inline-block;
  position: relative;
  min-height: 2em;
}

.gw-selectbox SELECT {
  width: 100%;
  height: 100%;
}

.gw-selectbox.gw-noborder SELECT {
  border: none;
}

.gw-window-container {
}

.gw-window {
  position: fixed;
  top: 0;
  left: 0;
  border: solid 1px white;
  box-shadow: 0 0 0.5em black;
  border-radius: 0.5em;
  background: white;
  z-index: 10;
  overflow: hidden;
}

.gw-popup {
  border: solid 1px #C0C0C0;
  border-radius: 0;
  box-shadow: none;
}

.gw-window-titlebar {
  display: flex;
  flex-flow: row;
  align-items: center;
  background: #2980B9;
  font-weight: bold;
  border-top-left-radius: 0.5em;
  border-top-right-radius: 0.5em;
  padding: 0.25em;
}

.gw-window-titlebar.gw-deactivated {
  background: white;
}

.gw-window-title {
  flex-grow: 1;
  color: white;
  padding: 0 1em;
  pointer-events: none;
}

.gw-window-titlebar.gw-deactivated > DIV.gw-window-title {
  color: gray;
}

.gw-window-button {
  position: relative;
  width: 1.5em;
  height: 1.5em;
  padding: 0;
  border: none;
}

.gw-window-button > IMG {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 0.8em;
  height: 0.8em;
  margin: auto;
}

.gw-window-close-button {
  border-top-left-radius: 0.3em;
}

.gw-window-max-button {
  border-top-right-radius: 0.3em;
}

/*@-moz-document url-prefix() {
  .gw-window-button {
    display: inline-flex;
  };
}*/

.gw-window-contents {
  display: flex;
  flex-flow: column;
  flex-grow: 1;
  padding: 0.5em;
}

.gw-popup > .gw-window-contents {
  padding: 0;
}


.gw-label {
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
}

.gw-label.gw-disabled {
  opacity: 0.5;
}

#gw-modal {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: black;
  opacity: 0.05;
}

#gw-lock {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAFUlEQVQYlWNkYGAwYMADmPBJDh8FADoIAECNjQSqAAAAAElFTkSuQmCC');
  opacity: 0;
}

#gw-lock-animation {
  position: absolute;
  width: 13.5em;
  height: 3em;
  margin: auto;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
}

.gw-lock-circle {
	background-color:#CCC;
	float: left;
	height: 3em;
	width: 3em;
	border-radius: 3em;
	margin-left: 0.75em;
	margin-right: 0.75em;
	animation-name: bounce_circle;
 	animation-duration: 1.5s;
 	animation-iteration-count: infinite;
 	animation-direction: linear;
	opacity: 0.3;
}

#gw-lock-1 {
  animation-delay: .3s;
 }
#gw-lock-2 {
 	animation-delay: .7s;
}
#gw-lock-3 {
 	animation-delay: .9s;
}
@-webkit-keyframes bounce_circle {
	0% { opacity: 0.3; }
	50% { opacity: 1; background-color: #888; }
	100% { opacity: 0.3; }
}


.gw-textarea {
  font: inherit;
  resize: none;
}

.gw-textarea.gw-noborder {
  border: none;
}

.gw-menubar {
  overflow: visible !important;
}

.gw-menu-title {
  display: inline-table;
  padding: 0.5em;
  padding-top: 0.25em;
  cursor: default;
  border-top: solid 1px transparent;
  border-left: solid 1px transparent;
  border-right: solid 1px transparent;
  /*margin-top: 0.25em;
  margin-bottom: 0.25em;*/
}

.gw-menu:hover > .gw-menu-title {
  border-top: solid 1px #C0C0C0;
  border-left: solid 1px #C0C0C0;
  border-right: solid 1px #C0C0C0;
  box-shadow: 0 0 0.25em #C0C0C0;
  background: white;
  z-index: 1002;
}

.gw-submenu {
  display: none;
  position: absolute;
  border: solid 1px #C0C0C0;
  background: white;
  box-shadow: 0 0.125em 0.25em #C0C0C0;
  margin-top: -0.25em;
  z-index: 1003;
}

.gw-menuitem > .gw-menu > .gw-submenu {
  margin-top: 0;
  top: 0;
  left: 100%;
}

.gw-menu:hover > .gw-submenu {
  display: table;
}

.gw-menu-tape {
  display: none;
  position: relative;
  background: white;
  z-index: 1004;
  height: 4px;
  margin-top: -4px;
  margin-left: 1px;
  margin-right: 1px;
  top: -2px;
}

.gw-menu:hover > .gw-menu-tape {
  display: block;
}

.gw-submenu > div:hover {
  background: #E0E0E0;
}

.gw-menuitem {
  display: flex;
  flex-flow: column;
}

.gw-menuitem > div {
  display: table-cell !important;
  vertical-align: middle;
}

.gw-menuitem-text {
  flex-grow: 1;
  padding: 0.125em 0.25em;
  white-space: nowrap;
}

.gw-menuitem-icon {
  padding: 0.125em 0.25em;
}

.gw-menuitem-icon > IMG {
  vertical-align: middle;
}

.gw-menuitem-shortcut {
  text-align: right;
  padding: 0.125em 1em;
}

.gw-separator {
  position: relative;
  padding: 0 !important;
  pointer-events: none;
}

.gw-separator-hline {
  position: absolute;
  display: flex;
  flex-flow: row;
  align-items: center;
  height: inherit;
  width: 100%;
}

.gw-separator-hline > div {
  height: 1px;
  width: 100%;
  background: #C0C0C0;
}

.gw-separator-vline {
  position: absolute;
  display: flex;
  flex-flow: column;
  align-items: center;
  height: 100%;
  width: inherit;
}

.gw-separator-vline > div {
  width: 1px;
  height: 100%;
  background: #C0C0C0;
}

.gw-submenu > div {
  display: flex !important;
  cursor: default;
  padding: 0.25em 1em;
  margin: 0;
}

.gw-submenu > .gw-menuitem {
  display: table-row !important;
  table-layout: fixed;
  cursor: default;
  padding: 0;
  margin: 0;
}

.gw-submenu > .gw-separator {
  display: table-row !important;
  cursor: default;
  margin: 0;
  width: auto;
  height: 1em;
}

.gw-menuitem > .gw-menu {
  display: table-cell !important;
  position: relative;
  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAJElEQVQYlWNgQIAGBgLgPyFF/wkp+o9NERMhe0m2AqckAy5JALuADHot/KmNAAAAAElFTkSuQmCC');
  background-position: center;
  background-repeat: no-repeat;
  width: 1em;
}

.gw-spinbox {
  min-height: 2em;
  padding: 0 0.25em;
}

.gw-spinbox.gw-noborder {
  border: none;
}

.gw-expander-header + DIV {
  margin-top: 0.5em;
}

.gw-expander-header > IMG {
  vertical-align: middle;
}

.gw-expander-header > DIV {
  display: inline-table;
  vertical-align: middle;
}

.gw-expander-border {
  border: solid 1px #C0C0C0;
  padding: 0.5em;
}

.gw-table {
  position: relative;
  min-height: 4em;
  border: solid 1px #C0C0C0;
  cursor: default;
}

.gw-table.gw-noborder {
  border: none;
}

/*.gw-table-header {
  height: 1.5em;
  background-color: yellow;
}*/

.gw-table-contents {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: auto;
}

.gw-table > DIV > TABLE {
  border-collapse: collapse;
}

.gw-table > DIV > TABLE > THEAD > TR > TH {
  text-align: left;
  background-color: #E0E0E0;
  padding: 0.25em 0.5em;
  vertical-align: top;
  border-bottom: solid 1px #C0C0C0;
  position: sticky;
  top: 0;
  z-index: 1;
}

.gw-table > DIV > TABLE > THEAD > TR > TH:last-child {
  border-right: none;
}

.gw-table > DIV > TABLE > TBODY > TR > TD {
  /*border-right: solid 1px #C0C0C0;*/
  padding: 0.1em 0.5em;
  vertical-align: top;
  border-bottom: solid 1px #F0F0F0;
}

.gw-table > DIV > TABLE > TBODY > TR:hover {
  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAFUlEQVQYlWNkYGDgYcADmPBJDh8FABV4ABwe4TuyAAAAAElFTkSuQmCC');
}

/*.gw-table > DIV > TABLE > TBODY > TR > TD:last-child {
  border-right: none;
}

.gw-table > DIV > TABLE > TBODY > TR:last-child > TD {
  border-bottom: solid 1px #C0C0C0;
}*/

/*.gw-table > DIV > TABLE > TBODY > TR:nth-child(even) {
  background-color: #F8F8F8;
}*/

.gw-table-more {
  position: absolute;
  padding-left: 4px;
}

IMG.gw-table-sort {
  position: absolute;
  right: 0.1em;
  top: 0.25em;
}

TH.gw-table-sortable {
  position: relative;
  cursor: pointer;
}

TH.gw-table-sortable > DIV {
  margin-right: 2em;
}

TH.gw-table-sortable:hover {
  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAFUlEQVQYlWNkYGDgYcADmPBJDh8FABV4ABwe4TuyAAAAAElFTkSuQmCC');
}

.gw-waiting {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('//gw-waiting.gif');
  background-position: center;
  background-repeat: no-repeat;
}

.gw-scrollview {
  position: relative;
}

.gw-scrollview > DIV {
  position: absolute !important;
  overflow: auto;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.gw-datebox {
  position: relative;
  display: inline-block;
  min-height: 2em;
}

.gw-datebox INPUT {
  width: 100%;
  min-height: 2em;
  box-sizing: border-box;
  padding: 0 2.25em 0 0.25em;
  vertical-align: middle;
}

.gw-datebox.gw-noborder INPUT {
  border: none;
}

TABLE.gw-calendar {
  width: 100%;
}

TABLE.gw-calendar > TBODY > TR > TH {
  padding: 0.25em 0.5em;
  background: #E0E0E0;
}

TABLE.gw-calendar > TBODY > TR > TD {
  padding: 0.25em 0.5em;
  text-align: center;
  cursor: pointer;
  border: solid 1px transparent;
}

TABLE.gw-calendar > TBODY > TR > TD:hover {
  outline: solid 1px #C0C0C0;
}

TABLE.gw-calendar > TBODY > TR > TD.gw-date-disabled {
  color: #C0C0C0;
}

TABLE.gw-calendar > TBODY > TR > TD.gw-date-today {
  font-weight: bold;
  border: solid 1px black;
}

TABLE.gw-calendar > TBODY > TR > TD.gw-date-current {
  background-color: #2980B9;
  color: white;
}

.gw-file-input {
  position: absolute;
  left: -2000px;
}

.gw-progressbar {
  position: relative;
  border: solid 1px #C0C0C0;
  min-height: 0.5em;
  border-radius: 0.25em;
}

.gw-progressbar.gw-noborder {
  border: solid 1px transparent;
}

.gw-progressbar-bar {
  position: absolute;
  height: 100%;
  background: #C0C0C0;
  border: solid 1px white;
  border-radius: 0.25em;
  z-index: -1;
}

.gw-progressbar-label {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gw-form {
  flex-grow: 1;
}

.gw-image {
  border: solid 1px #C0C0C0;
  box-sizing: border-box;
}

.gw-image.gw-noborder {
  border: none;
}

.gw-table-row-selected {
  background-color: #2980B9 !important;
  color: white !important;
}

.gw-table-row-selected > TD {
  color: white !important;
}

.gw-ac-suggestions {
  text-align: left;
  cursor: default; 
  border: 1px solid #C0C0C0; 
  border-top: 0; 
  background: white; 
  /*box-shadow: -1px 1px 3px rgba(0,0,0,.1);*/

  /* core styles should not be changed */
  position: absolute; 
  display: none; 
  z-index: 9999; 
  max-height: 12em;
  overflow: hidden; 
  overflow-y: auto; 
  box-sizing: border-box;
}

.gw-ac-suggestion { 
  position: relative; 
  padding: 0 0.5em;
  line-height: 1.5em;
  white-space: nowrap; 
  overflow: hidden; 
  text-overflow: ellipsis; 
}

.gw-ac-suggestion b { 
  font-weight: normal; 
  color: #2980B9; 
}

.gw-ac-suggestion.selected { 
  background: #E0E0E0; 
}

.gw-mandatory {
  position: absolute;
  box-shadow: 0 0 0.5em red;
  top: 0;
  left: 0;
  z-index: -1;
}

