
* {
  margin: auto;
  font-family: Arial;
}


html {
  height: 100%;
  margin: 0;
  padding:0;
}

body {
  background-color: #B9B8B8;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

a {
  font-size: 12px;  
  color: #8AB956;
  font-weight: bold;
  text-decoration: none;
}

div#page {
  height: 100%;
  min-width: 980px;
  max-width: 1280px;
  text-align: center;
  margin: auto;
}

div#overlay {
  position: fixed; 
  width: 100%; 
  height: 100%; 
  background-color: #000; 
}

div#window {
  position: absolute; 
  top: 20px;
  left: 50%; 
  padding: 10px;
  background-color: #FFF; 
  -webkit-box-shadow:  1px 1px 10px 0px rgba(0, 0, 0, 0.2); 
  box-shadow:  1px 1px 10px 0px rgba(0, 0, 0, 0.2);  
}

div#window div.windowContent {
  text-align: left;
}

div#window div.windowContent h1 {
  background-color: #DDD;
  font-size: 18px;
  padding-left: 5px;
  height: 32px;
  line-height: 32px;
  color: #777;
  text-shadow: 1px 1px 1px #FFF;
  display: inline;
}

div#window div.windowContent .hdr {
  background-color: #DDD;
  font-size: 18px;
  font-weight: bold;
  padding-left: 5px;
  height: 32px;
  line-height: 32px;
  color: #777;
  text-shadow: 1px 1px 1px #FFF;
}

div#window div.windowContent .menubar {
  background-color: #ECECEC;
  padding: 5px;
  text-align: right;
  height: 32px;
  line-height: 32px;
}

div#loginBox {
  margin-top: 48px;
  width: 380px;
  background-color: #FFF;
  -webkit-box-shadow:  1px 1px 10px 0px rgba(0, 0, 0, 0.2);
  box-shadow:  1px 1px 10px 0px rgba(0, 0, 0, 0.2);  
  font-size: 12px;
}

div#loginBox div#logo {
  background-image: url(/images/logo.png);
  width: 109px;
  height: 24px;
  margin-left: 15px;
}

div.form.scrollable {
  overflow-y: auto;
}

input.text {
  border-radius: 5px;
  border: solid 1px #CCC;
  height: 20px;
/*  line-height: 20px;*/
  padding: 4px;
  font-weight: bold;
  font-size: 12px;
}

input.right {
  text-align: right;
}

input.search {
  background-image: url(/images/search_button.png);
  background-repeat: no-repeat;
  background-position: 3px 50%;
  padding-left: 20px;
}

input.text:focus {
  -webkit-box-shadow: 0px 0px 4px #8AB956;  
  -moz-box-shadow: 0px 0px 4px #8AB956;  
  box-shadow: 0px 0px 4px #8AB956; 
} 

textarea.text {
  border-radius: 5px;
  border: solid 1px #CCC;
  padding: 4px;
  font-size: 12px;
  font-weight: bold;
}

textarea.text:focus {
  -webkit-box-shadow: 0px 0px 4px #8AB956;  
  -moz-box-shadow: 0px 0px 4px #8AB956;  
  box-shadow: 0px 0px 4px #8AB956; 
} 

span.date {
  float: left;
  display: block;
  background-color: #FFF;
  border-radius: 5px;
  border: solid 1px #CCC;
  height: 20px;
  line-height: 18px;
  padding: 4px;
  padding-left: 6px;
  padding-right: 24px;
  width: auto;
  background-image: url(/images/date.gif);
  background-position: 94%;
  background-repeat: no-repeat;
  font-weight: bold;
  font-size: 12px;
  cursor: pointer;
}

input.login {
  background-image: url(/images/btn_login.png);
  width: 122px;
  height: 26px;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: #FFF;
  font-size: 12px;
}

span.selectbox {
  float: left;
  display: block;
  background-color: #FFF;
  border-radius: 5px;
  border: solid 1px #CCC;
  height: 20px;
  line-height: 20px;
  padding: 4px;
  width: auto;
}

span.selectbox select {
  border: 0px none;
  font-weight: bold;  
  font-size: 12px;
}

select.selectbox {
  background-color: #FFF;
  border-radius: 5px;
  border: solid 1px #CCC;
  padding: 5px;
  width: auto;
  font-weight: bold;   
}

span.checkbox {
  float: left;
  display: block;
  background-color: #FFF;
  border-radius: 5px;
  border: solid 1px #CCC;
  height: 20px;
  line-height: 18px;
  padding: 4px;
  width: auto;
}

span.selectbox input {
  border: none;
  font-weight: bold;  
  font-size: 12px;
}



div#header {
  background-image: url(/images/header_bg.png);
  width: 100%;
  height: 33px;
  line-height: 33px;
  vertical-align: middle;
}

div#header div#headerLogo {
  background-image: url(/images/logo.png);
  width: 109px;
  height: 24px;
  float: left;
  margin: 3px;
}

div#mainmenu {
  font-size: 12px;  
  font-weight: bold;
  color: #CCC;
  max-width: 1280px;
  height: 28px;
  margin: auto;
  margin-left: 10px;
  margin-right: 10px;
  padding: 10px;
  background-color: #FFF;
  -webkit-box-shadow:  1px 1px 10px 0px rgba(0, 0, 0, 0.2);
  box-shadow:  1px 1px 10px 0px rgba(0, 0, 0, 0.2);  
  text-align: left;
}

div#mainmenu ul {
  font-size: 12px;  
  list-style: none outside none;
  margin: 0px;
  padding: 0;
  line-height: 20px;
}

div#mainmenu ul ul {
  margin-left: 10px;
  padding: 0;
}

div#mainmenu a {
  font-size: 12px;  
  color: #8AB956;
  font-weight: bold;
  text-decoration: none;
}

div#container {
  max-width: 1280px;
  background-color: #FFF;
  -webkit-box-shadow:  1px 1px 10px 0px rgba(0, 0, 0, 0.2);
  box-shadow:  1px 1px 10px 0px rgba(0, 0, 0, 0.2);  
  text-align: left;
  margin-left: 10px;
  margin-right: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 10px;
}

div#settingsMenu {
  width: 180px; 
  float: left; 
  padding: 10px; 
  margin: 10px; 
  text-align: left;  
  background-color: #FFF; 
  -webkit-box-shadow:  1px 1px 10px 0px rgba(0, 0, 0, 0.2); 
  box-shadow:  1px 1px 10px 0px rgba(0, 0, 0, 0.2); 
  font-size: 12px;  
  color: #CCC;
  font-weight: bold;
  line-height: 24px;
}

div#settingsMenu a {
  font-size: 12px;  
  color: #8AB956;
  font-weight: bold;
  text-decoration: none;
}

div#container h1 {
  background-color: #DDD;
  font-size: 18px;
  padding-left: 5px;
  line-height: 32px;
  color: #777;
  text-shadow: 1px 1px 1px #FFF;
}

div#container  .hdr {
  background-color: #ECECEC;
  font-size: 18px;
  font-weight: bold;
  padding-left: 5px;
  height: 32px;
  line-height: 32px;
  color: #777;
  text-shadow: 1px 1px 1px #FFF;
}
div#container  .hdr a {
  font-size: 18px;
}

div#container .menubar {
  background-color: #ECECEC;
  padding: 5px;
  text-align: right;
  min-height: 32px;
}

div.infobox {
  border-right: 1px solid #FFFF33;
  border-left: 1px solid #FFFF33;
  background-color: #FFFFAA;
  padding: 5px;
  font-size: 12px;
}

div.content_filter {
  margin: 0;
  background-color: #FFF;
  padding: 5px;
  font-size: 12px;
}

div#container .totalsbar {
  background-color: #ECECEC;
  padding: 5px;
  border-top: 1px solid #DDD;
  border-bottom: 1px solid #DDD;
  text-align: right;
}

div#container .totalsbar span {
  display: block;
  float: right;
  padding: 1em;
  text-align: left;    
  border-left: 1px solid #DDD;
} 

div#container .totalsbar span p {
  text-align: center;
  font-size: 1.2em;
  color: #333;
  text-align: right;  
  margin-top: 10px;
}

div#container .totalsbar span label {
  color: #888;
  
  text-align: left;
  
}


div#container .tabbar {
  background-color: #ECECEC;
  padding: 5px;
  padding-bottom: 0px;
  text-align: right;
  height: 32px;
  vertical-align: bottom;
}

div.tabs {
  margin: 0;
  background-color: #FFF;
  padding: 0;
  font-size: 12px;
}

/* Buttons */

.btn_default {
  font-family: Arial;
  color: #444;
  font-size: 12px;
  font-weight: bold;
  height: 28px;
  padding: 5px;
  margin-right: 4px;
  text-decoration: none;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  text-shadow: 1px 1px 1px #FFF;
  border: solid #87b334 1px;
  background-color: #DEEBC6;
  background: -webkit-gradient(linear, 0 0, 0 100%, from(#DEEBC6), to(#CEE79D));
  background: -moz-linear-gradient(top, #DEEBC6, #CEE79D);
  filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#DEEBC6', endColorstr='#CEE79D');
  cursor: pointer;
  width: auto;
  overflow:visible;
}

.btn_default:hover {
  background-color: #CEE79D;
  background: -webkit-gradient(linear, 0 0, 0 100%, from(#CEE79D), to(#DEEBC6));
  background: -moz-linear-gradient(top, #CEE79D, #DEEBC6)
  filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#CEE79D', endColorstr='#DEEBC6');
}

.btn_red {
  padding-left: 2px;
  padding-right: 2px;
  text-shadow: 1px 1px 1px #FFF;
  color: #000;
  border: solid #D66767 1px;
  background-color: #E79D9D;
  background: -webkit-gradient(linear, 0 0, 0 100%, from(#EAC5C5), to(#E79D9D));
  background: -moz-linear-gradient(top, #EAC5C5, #E79D9D);
  filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#EAC5C5', endColorstr='#E79D9D');
  
}

.btn_red:hover {
  background-color: #CC0000;
  background: -webkit-gradient(linear, 0 0, 0 100%, from(#E79D9D), to(#EAC5C5));
  background: -moz-linear-gradient(top, #E79D9D, #EAC5C5);
  filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#E79D9D', endColorstr='#EAC5C5');
}

.btn_function {
  color: #666;
  border: solid #CCC 1px;
  background-color: #EEEEEE;
  background: -webkit-gradient(linear, 0 0, 0 100%, from(#EEEEEE), to(#DDDDDD));
  background: -moz-linear-gradient(top, #EEEEEE, #DDDDDD);
  filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#EEEEEE', endColorstr='#DDDDDD');
  margin-bottom: 4px;
}

.btn_function:hover {
  border: solid #CCC 1px;
  background-color: #DDDDDD;
  background: -webkit-gradient(linear, 0 0, 0 100%, from(#DDDDDD), to(#EEEEEE));
  background: -moz-linear-gradient(top, #DDDDDD, #EEEEEE);
  filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#DDDDDD', endColorstr='#EEEEEE');
}

.btn_function:active {
  background: #EEE;
}

.btn_disabled {
  opacity: 0.3;

  font-family: Arial;
  color: #AAA;
  font-size: 12px;
  font-weight: bold;
  height: 28px;
  padding: 5px;
  text-decoration: none;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  text-shadow: 1px 1px 1px #FFF;
  border: solid #CCC 1px;
  background-color: #EEE;
  width: auto;
  overflow:visible;  
  margin-right: 4px; 
 
}


.btn_gray {
  border: solid #CCC 1px;
  background-color: #EEEEEE;
  background: -webkit-gradient(linear, 0 0, 0 100%, from(#EEEEEE), to(#DDDDDD));
  background: -moz-linear-gradient(top, #EEEEEE, #DDDDDD);
  filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#EEEEEE', endColorstr='#DDDDDD');
  
}

.btn_gray:hover {
  border: solid #CCC 1px;
  background-color: #DDDDDD;
  background: -webkit-gradient(linear, 0 0, 0 100%, from(#DDDDDD), to(#EEEEEE));
  background: -moz-linear-gradient(top, #DDDDDD, #EEEEEE);
  filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#DDDDDD', endColorstr='#EEEEEE');

}

.btn_tab {
  font-family: Arial;
  font-size: 12px;
  font-weight: bold;
  height: 28px;
  padding: 5px;
  margin-right: 0px;
  text-decoration: none;
  border-radius: 5px 5px 0px 0px;
  -webkit-border-radius:  5px 5px 0px 0px;
  -moz-border-radius:  5px 5px 0px 0px;
  text-shadow: 1px 1px 1px #FFF;
  color: #AAA;
  border: solid #DDD 1px;
  border-bottom: 0px none;
  background-color: #EEEEEE;
  cursor: pointer;
  width: auto;
  overflow:visible;
  display: inline;
  vertical-align: bottom;
  outline: 0;
}

.btn_tab.pushed {
  color: #666;
  background-color: #FFF;
  border: solid #CCC 1px;
  border-bottom: 0px none;
  height: 32px;
  padding-left: 10px;
  padding-right: 10px;
}

table.form {
  font-size: 12px;  
  border-left: 1px solid #DDD;
  border-right: 1px solid #DDD;
  border-bottom: 1px solid #DDD;
}

table.form th {
  padding-left: 4px;
  background-color: #ECECEC;
  height: 28px;
  line-height: 28px;
  vertical-align: middle;
  color: #444;
  text-shadow: 1px 1px 1px #FFF;
  text-align: left;
  border-top: 1px solid #DDD;
  border-bottom: 1px solid #DDD;
}

table.form td {
  padding-left: 4px;
  padding-right: 4px;
}

table.form tr.error td {
  background-color: #FFC4C4;
}


div.form_error {
  background-color: #FD6969;
  border-left: #DDD;
  border-right: #DDD;
  padding: 5px;
  color: #FFF;
  font-weight: bold;
}

/* Order grid */
table.ordergrid, table.ordergrid tbody {
  border-collapse: collapse; 
  width: 100%;
}

table.ordergrid th {
  padding-left: 4px;
  background-color: #ECECEC;
  height: 28px;
  line-height: 28px;
  vertical-align: middle;
  color: #444;
  text-shadow: 1px 1px 1px #FFF;
  text-align: left;
  border-top: 1px solid #DDD;
  border-bottom: 1px solid #DDD;
}
 
table.ordergrid td {
  padding: 4px;
}

/* popup menu */
div.ec_menu {
  background-color: #eee;
  border-radius: 5px;
  border: 1px solid #ccc;
  position: absolute;
  padding: 5px;

  -webkit-box-shadow:  1px 1px 10px 0px rgba(0, 0, 0, 0.2); 
  box-shadow:  1px 1px 10px 0px rgba(0, 0, 0, 0.2);  
}

div.ec_menu ul {
  padding:0;
  margin:0;
  list-style-type:none;  
}

div.ec_menu ul li {
  background-image: url(/images/tab_right.png);
  background-repeat: no-repeat;
  background-position: 0 3px;
  margin-top: 4px;
  margin-bottom: 4px;
}

div.ec_menu ul li a{
  margin-left: 16px;
  margin-right: 5px;
  padding: 2px;
  color: #777;
  text-shadow: 1px 1px 1px #FFF;
}

div.ec_menu ul li a:hover {
  background-color: #555;
  color: #FFF;
  text-shadow: 1px 1px 1px #000;
}

  div#ec-search-layer {
    position: absolute; 
    z-index: 30000;
    background-color: #eee;
    border-radius: 5px;
    border: 1px solid #CCC;
    position: absolute;
    padding: 5px;
    -webkit-box-shadow:  1px 1px 10px 0px rgba(0, 0, 0, 0.2); 
    box-shadow:  1px 1px 10px 0px rgba(0, 0, 0, 0.2);  
  }

  div#divSearchLoader {
    margin: 10px;
    height: 48px;
    line-height: 32px;
    font-weight: bold;
    text-align: center;
  }
  
  div#divSearchResults {
    text-shadow: 1px 1px 1px #FFF;
    color: #666;
    border: solid #CCC 1px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;    
  }
  
  div#divSearchResults ul {
    overflow: auto;
    list-style-type: none;  
    padding: 0;
    margin: 0;
    background-color: #fff;

  }
  
  div#divSearchResults li{
    height: 24px;
    line-height: 24px;
    padding: 4px;
    border-bottom: 1px solid #DEDEDE;
    cursor: pointer;
  }
  
  div#divSearchResults li.first {
  }
  
  div#divSearchResults li.last {
    border-bottom: 0 none;
  }
  
  div#divSearchResults li.selected {
    color: #fff;
    text-shadow: none;
    background-color: #99CCFF;
  }

  div#divSearchResults li:hover{
 
  }
  
  div#divSearchResults li span {
    display: block;
    font-size: 12px;
    float: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  div#divSearchHeader {
    margin-top: 10px;
    border-radius: 5px 5px 0px 0px;
    -webkit-border-radius: 5px 5px 0px 0px;
    -moz-border-radius: 5px 5px 0px 0px;
    text-shadow: 1px 1px 1px #FFF;
    color: #666;
    background-color: #F3F3F3;
    background: -webkit-gradient(linear, 0 0, 0 100%, from(#F3F3F3), to(#E2E2E2));
    background: -moz-linear-gradient(top, #F3F3F3, #E2E2E2);
    background: -ms-linear-gradient(top, #F3F3F3, #E2E2E2); 
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#F3F3F3', endColorstr='#E2E2E2');
    border: solid #CCC 1px;
    border-bottom: 0px none;
  }
 
  div#divSearchHeader  span {
    display: block;
    float: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 4px;
    line-height: 20px;
    font-size: 12px;
    font-weight: bold;
  }
