body {
  margin: 0;
  padding: 0;
  font-size: .8em;
  font-family: Arial, sans-serif;
  line-height: 1em;
  color: 444;
  /*
  background: #F0E9DD url(/images/body_bg.gif) repeat-y;
  background-position: 50% 0px; */
  background-color: transparent;
}
#container, #banner, #content {
  -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
  -moz-box-sizing: border-box;    /* Firefox, other Gecko */
  box-sizing: border-box;         /* Opera/IE 8+ */
}
#container {
  max-width: 960px;
  min-width: 320px;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  border-left: 1px solid #a4a4a5;
  border-right: 1px solid #a4a4a5;
}

@media screen and (max-width: 960px) {
  #container {
    border: 0;
  }
}
#container.dialog {
  width: 90%;
  border-left: 0;
  border-right: 0;
}

#banner {
  width: 100%;
  /*  height:150px; */
  padding: 0px 5px;
  color: #000;
  float: left;
}

#menu-control {
  width: 26px;
  height: 26px;
  margin: 0 10px;
  float:right;
  position:relative;
  top:50px;
  display: none;
}

#banner h1 {
  font-size: 150%;
}

#content {
  width: 100%;
  padding: 0 5px 0 5px;
  margin: 0;
  min-height: 450px;
  float: left;
  width:100%;
  /*  border-top: 1px solid #a4a4a5; */
  overflow: auto;
}

#content.dialog {
  padding: 0 5px 0 5px;
  margin: 0;
  min-height: 350px;
}
/*
#nav_container {
  width: 100%;
  float: left;

  height: 33px;
  margin-top: 10px;
  padding: 0;
  line-height: 1.4em;

}
*/

#nav {
  float:left;
}

#sidebar {
  float: left;
  width: 150px;
  margin: 0 5px 5px 5px;
  padding: 3px;
  line-height: 1.4em;
  border-right: 1px solid #dfd0b9;
}

#banner h4 {
  color: #000;
}

#navcontainer div {
  height: 100px;
}
#navcontainer h1 {
  margin-top:15px;
}

#sidebar div.fill {
  height: 200px;
}

#footer {
  clear:both;
  padding: 3px;
  margin: 15px 0 0 0;
  font-size: .85em;
  text-align: left;
  border-top: 1px solid #a4a4a5;
  color: #333;
  background: inherit;
}

#footer a:link, #footer a:visited {
  background: inherit;
  color: #333;
  border-bottom: none;
}

#footer a:hover {
  border-bottom: none;
  background-color: inherit;
  color: #663300;
}

#footer div {
  margin-bottom: .5em;
}
p.copyright {
  margin-bottom: .5em;
}

#content h1, #sidebar h1 {
  margin: 3px 3px 3px 0;
  font-size: 1.3em;
  font-weight: bold;
  /* text-transform: uppercase; */
  padding: 5px 5px 5px 0;
  /*
  border-bottom: 1px solid #a4a4a5;
  border-top: 1px solid #a4a4a5;
  */
  color: #666;
  background: inherit;
}

#content h1.padleft, #content h2.padleft
{ padding-left: 3px;
  margin-left: 5px;
}

#content div.main {
  margin: 0 15px 0 3px;
  padding: 3px;
  text-align: left;
  font-size: 1em;
  background: inherit;
}

h2 {
  font-size: 1.2em;
  padding: 0;
  margin:5px 0;
  color: #660000;
  background:inherit;

}

#content div h3 {
  margin: 0 3px 2px 0;
  padding: 3px;
  text-align: left;
  font-size: 1.1em;
  color:#666;
  background: inherit;
  border: 0;
}

h3 {
  margin: 0 3px 2px 3px;
  padding: 3px;
  text-align: left;
  font-size: 1.1em;
  color:#660000;
  background: inherit;
  border-top: 1px solid #dfd0b9;
  border-bottom: 1px solid #dfd0b9;

}

h4 {
  text-align: left;
  font-weight: bold;
  padding: 3px;
  margin: 0 0 0 0;
  font-size: 105%;
  color: #660000;

}

a {
  text-decoration: none;
  border-bottom: none;
  color: #444444;
  background: inherit;
}

#content a {
  text-decoration: none;
}

#content a:hover {
  color: #444444;
  /*  text-decoration: underline; */
  background: inherit;
}

a img {
  border: 0;
}

a.detailLink {
  font-size: 1.1em;
  font-weight: 700;
  color: blue;
}
a.detailLink:hover {
  text-decoration: underline;
  color: blue;
}

.img {
  float: left;
  padding: 3px;
  margin: 3px;
  border: 0px solid #dfd0b9;
}

div.ErrorMessage {
  color: #E45451;
  font-weight: bold;
  margin:5px 0 5px 0;
}

.intro {
  float:left;
  width:220px;
  margin: 3px 0 5px 0;
  padding: 5px;
  text-align:left;
}

.intro2 {
  float: left;
  width: 220px;
  margin: 3px 0 5px 0;
  padding: 5px;
}

.intro3 {
  float: right;
  width:220px;
  margin: 3px 0 5px 0;
  padding: 5px;
}

.update {
  font-size: 1em;
  background: inherit;
  color:#4F210D;
}

#navcontainer {
  width: 150px;
  margin-top: 20px;
  min-height:200px; /*ff*/
  height: auto !important; /*ie7 */
  height: 200px; /*ie6 */
}

#navcontainer ul
{
  margin-left: 0;
  padding-left: 0;
  list-style-type: none;
  font-family: Arial, Helvetica, sans-serif;
}

/* Change the menu item link colors here */
#navcontainer a {
  display: block;
  padding: 3px;
  width: 130px;
  background-color: #a4a4a5;
  color: #000;
  border-bottom: 1px solid #F0E9DD;
  border-left: 8px solid #444445;
}

#navcontainer a:link, #navlist a:visited {
  text-decoration: none;
}

#navcontainer a:hover {
  border-left: 8px solid #a4a4a5;
  background-color: #444445;
  color: #fff;
}

.more-menu {
  cursor: pointer;
}

.float-left {
  float:left;
}
.float-right {
  float:right;
}
.box {
  margin: 10px;
  background: inherit;
  color: #663300;
  border: 1px solid #B7D6B4;
  padding: 5px;
}

.search {
  background: #CFE4CD;
  color: #000;
  border-top: 1px solid #F0E9DD;
  border-bottom: 1px solid #F0E9DD;
  clear: both;
  text-align: center;
  padding: 5px 0 5px 0;
}

.postSubHead {
  margin: 0 0 3px 3px;
  font-weight:bold;
}

form {
  margin: 0;
}

form.float, div.float { float:left; }

input.search {
  width: 100px;
  border: none;
  background: url(/images/input.gif);
  padding: 4px;
}

input.login {
  width: 100px;
  border: none;
  background: url(/images/logininput.gif);
  padding: 4px;
}

input.tiny {
  width: 23px;
  height: 1em;
  padding:1px;
  margin-right:10px;
}
input.quarter {
  width: 24%;
}
input.third {
  width: 32%;
}
input.half {
  width:49%;
}
input.twothirds {
  width:65%;
}
input.full {
  width:95%;
}

input[type="text"].hiddenEdit {
  border:0;
}
.pager {
  float: left;
  margin-bottom: 15px;
}

div.pager_link {
  float:left;
  font-size: 1em;
  font-color:blue;
  margin-left: 25px;
}
div.pager_link a {
  font-size: 1em;
  color:blue;
  margin-top:5px;
}

ol, ul {
  margin-left: 30px;
}

li {
  margin-top: 10px;
}
.error {
  color: red;
  margin: 0 15px;
}

.ui-button {
  padding: 4px 5px !important;
  font-size: 12px;
  background-color: #e9e9ed;
  color: #000;
  border: 1px solid #777;
  border-radius: 4px;
  cursor: pointer;
}

/**********************************
Use: cmxform template
Author: Nick Rigby
***********************************/

form.cmxform {
  margin-bottom: 15px;
}
form.cmxform fieldset {
  margin: 3px; /* 0 5px 10px 5px; */
  padding: 5px;
  width:98%;
  text-align:left;
  border: 1px solid #7f7f7f;
}

form.cmxform fieldset.float {
  margin: 0 5px 10px 5px;
  padding: 5px;
  /*  width: 45%; */
  /*  height:100%; */
  float: left;
}
fieldset.twoup {
  width: 45% !important;
  float: left;
  margin-right: 1.5% !important;
}
form.readonly input[type="text"] {
  color: #111;
  border-width: 0;
  font-size: 13px;
  font-weight: 600;
  /* border: 2px solid #000 */
}
form.readonly input[type="text"].right {
  text-align: right;
}
form.readonly textarea {
  color: #111;
  height: auto;
  min-height: 90px;
  border-width: 0;
  font-size: 16px;
  font-weight: 600;
}

form.cmxform legend {
  padding: 0 2px;
  font-weight: bold;
  _margin: 0 -7px; /* IE Win */
}

form.cmxform label {
  display: inline-block;
  line-height: 1.2;
  vertical-align: top;
  width:90%;
  /*  text-align: right;
    margin-right: 15px; */
}
form.cmxform fieldset ol {
  margin: 0;
  padding: 0;
}

form.cmxform fieldset li {
  list-style: none;
  padding: 5px;
  margin: 0;
}

form.cmxform fieldset fieldset {
  border: none;
  margin: 3px 0 0;
}

form.cmxform fieldset fieldset legend {
  padding: 0 0 5px;
  font-weight: normal;
}

form.cmxform fieldset fieldset label {
  display: block;
  width: auto;
}
/*
form.cmxform input.error {
  border: 2px indent red;
}
*/
form.cmxform input.small {
  width: 100px;
}

form.cmxform input.medium {
  width: 200px;
}

form.cmxform input.large {
  width: 350px;
}

form.cmxform textarea.small {
  width: 95%;
  height: 50px;
}

form.cmxform textarea.medium {
  width: 95%;
  height: 100px;
}

form.cmxform textarea.large {
  width: 95%;
  height: 200px;
}

form.cmxform span {
  padding-right: 20px;
}

form.cmxform span.required {
  padding:0;
  margin:0;
  font-weight: bold;
  font-style: normal;
  color: #f00;
}

form.cmxform br {
  line-height: 1px;
  clear: both;
}
/*
div.transgroup {
  margin-bottom:10px;
  width: 100%;
  float: left;
}
*/
form.cmxform label {
  font-weight: bold;
  width: 200px;
} /* Width of labels */
form.cmxform label.required {
  color:red;
}
label.checkbox {
  float: left;
  width: auto !important;
  margin-right: 15px;
}

div.display { margin: 0 0 2px 0; float:left;}
div.display label { display:inline-block; width:100%;}

div.displayheader {
  display:inline-table;
  font-size: 1.1em;
  font-weight: 700;
}
div.displaydata {
  display:inline-table;
  font-size: 1em;
  font-weight: 300;
}

div.fieldcontain { margin: 5px 0 5px 0; }
div.cell {margin: 0 !important; line-height: 1.1em;}
div.fieldcontain label { display:inline-block;}
div.fieldcontain label.above { display:block; width:99%;}
div.oneup { width:100%;display:inline-block; }
div.twoup { width:49%; display:inline-block;}
div.threeup { width:30%; display:inline-block;}
div.fourup { width:24%; display:inline-block;}
div.fiveup { width:19%; display:inline-block;}

quarter { width:25%; }
half { width:50%; }
third { width:33%; }
twothirds { width:66%; }
threequarters { width:75%; }
full { width:95%; }

select.quarter { width:25%; }
select.half { width:50%; }
select.third { width:33%; }
select.twothirds { width:66%; }
select.threequarters { width:75%; }
select.full { width:95%; }
/*
div.transgroup label.oneup { width:100%; float:left; }
div.transgroup label.twoup { width:50%; float:left; }
div.transgroup label.threeup { width:30%; float:left; }
div.transgroup label.fourup { width:25%; float:left; }
div.transgroup label.fiveup { width:20%; float:left; }
*/
@media screen and (max-width: 600px) {
  div.twoup { width:50%; float:left; }
  div.threeup { width:50%; float:left; }
  div.fourup { width:50%; float:left; }
  div.fiveup { width:30%; float:left; }
}

@media screen and (max-width: 500px) {
  div.twoup { width:100%; float:left; }
  div.threeup { width:100%; float:left; }
  div.fourup { width:50%; float:left; }
  div.fiveup { width:30%; float:left; }
  fieldset.twoup, fieldset.oneup {
    width: 99% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #a4a4a5 !important;
  }
  quarter { width:50%; }
  third { width:66%; }
  half { width:95%; }
  twothirds { width:95%; }
  threequarters { width:95%; }
  full { width:95%; }

  select.quarter { width:50%; }
  select.third { width:66%; }
  select.half { width:95%; }
  select.twothirds { width:95%; }
  select.threequarters { width:95%; }
  select.full { width:95%; }
}

form.cmxform fieldset fieldset label { margin-left: 20px; } /* Width plus 3 (html space) */

/*\*//*/ form.cmxform legend { display: inline-block; } /* IE Mac legend fix */

/* data display classes */
dl {
  display: block;
  width:100%;
  margin: 5px 0;
}
dt, dd {
  float:left;
  margin: 5px 0;
}

dt {
  font-weight: 700;
  width: 20%;
}

dd {
  font-weight: 500;
  font-size: 1.1em;
  width: 80%;
}

dd br { line-height: 1.1em; }

dl.twoup dt {
  width: 20%;
}

dl.twoup dd {
  width: 30%;
}

dl.table-display
{
  float: left;
  width: 100%;
  margin: 1em 0;
  padding: 0;
  border-bottom: 1px solid #ddd;
}

.table-display dt
{
  clear: left;
  float: left;
  width: 20%;
  margin: 0;
  padding: 5px 0;
  border-top: 1px solid #ddd;
  font-weight: bold;
}

.table-display dd
{
  float: left;
  width: 80%;
  margin: 0;
  padding: 5px 0;
  border-top: 1px solid #ddd;
}

/* ui icons taken from Jquery Mobile */
/* Icons
-----------------------------------------------------------------------------------------------------------*/
.mobile-icon,
.mobile-icon-searchfield:after {
  /*  background-color: #666 */ /*{global-icon-color}*/;
  /*  background-color: rgba(0,0,0,.4) */ /*{global-icon-disc}*/;
  background-image: url(images/icons-18-black.png) /*{global-icon-set}*/;
  background-repeat: no-repeat;
  background-size:auto;
  width:26px;
  height:26px;
  /*
    -webkit-border-radius:         9px;
    border-radius:             9px;
  */
}
/* Alt icon color
-----------------------------------------------------------------------------------------------------------*/
.mobile-icon-alt mobile-icon,
.mobile-icon-alt .mobile-icon-searchfield:after {
  background-color:             #fff;
  background-color:             rgba(255,255,255,.3);
  background-image: url(images/icons-18-black.png);
  background-repeat: no-repeat;
}
/* No disc
-----------------------------------------------------------------------------------------------------------*/
.ui-icon-nodisc .ui-icon,
.ui-icon-nodisc .ui-icon-searchfield:after,
.ui-icon-nodisc .ui-icon-alt .ui-icon,
.ui-icon-nodisc .ui-icon-alt .ui-icon-searchfield:after {
  background-color: transparent;
}
/* Icon sprite
-----------------------------------------------------------------------------------------------------------*/
/* plus minus */
.ui-icon-plus {
  background-position:   -1px -1px;
}
.ui-icon-minus {
  background-position:   -37px -1px;
}
/* delete/close */
.ui-icon-delete {
  background-position:   -73px -1px;
}
/* arrows */
.ui-icon-arrow-r {
  background-position:   -108px -1px;
}
.ui-icon-arrow-l {
  background-position:   -144px -1px;
}
.ui-icon-arrow-u {
  background-position:   -180px -1px;
}
.ui-icon-arrow-d {
  background-position:   -216px -1px;
}
/* misc */
.ui-icon-check {
  background-position:   -252px -1px;
}
.ui-icon-gear {
  background-position:   -288px -1px;
}
.ui-icon-refresh {
  background-position:   -323px -1px;
}
.ui-icon-forward {
  background-position:   -360px -1px;
}
.ui-icon-back {
  background-position:   -396px -1px;
}
.ui-icon-grid {
  background-position:   -432px -1px;
}
.ui-icon-star {
  background-position:   -467px -1px;
}
.ui-icon-alert {
  background-position:   -503px -1px;
}
.ui-icon-info {
  background-position:   -539px -1px;
}
.ui-icon-home {
  background-position:   -575px -1px;
}
/* search */
.ui-icon-search,
.ui-icon-searchfield:after {
  background-position:   -611px -1px;
}
/* checkbox radio */
.ui-icon-checkbox-on {
  background-position:   -647px -1px;
}
.ui-icon-checkbox-off {
  background-position:   -683px -1px;
}
.ui-icon-radio-on {
  background-position:   -718px -1px;
}
.ui-icon-radio-off {
  background-position:   -754px -1px;
}
/* menu edit */
.ui-icon-bars {
  background-position:   -788px -1px;
}
.ui-icon-edit {
  background-position:   -824px -1px;
}

a.drilldown::after {
  content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAQElEQVR42qXKwQkAIAxDUUdxtO6/RBQkQZvSi8I/pL4BoGw/XPkh4XigPmsUgh0626AjRsgxHTkUThsG2T/sIlzdTsp52kSS1wAAAABJRU5ErkJggg==);
  margin: 0 3px 0 5px;
  color: blue;
}

/* HD/"retina" sprite
-----------------------------------------------------------------------------------------------------------*/
@media only screen and (-webkit-min-device-pixel-ratio: 1.3),
only screen and (min--moz-device-pixel-ratio: 1.3),
only screen and (min-resolution: 200dpi) {

  .ui-icon-plus, .ui-icon-minus, .ui-icon-delete, .ui-icon-arrow-r,
  .ui-icon-arrow-l, .ui-icon-arrow-u, .ui-icon-arrow-d, .ui-icon-check,
  .ui-icon-gear, .ui-icon-refresh, .ui-icon-forward, .ui-icon-back,
  .ui-icon-grid, .ui-icon-star, .ui-icon-alert, .ui-icon-info, .ui-icon-home, .ui-icon-bars, .ui-icon-edit,
  .ui-icon-search, .ui-icon-searchfield:after,
  .ui-icon-checkbox-off, .ui-icon-checkbox-on, .ui-icon-radio-off, .ui-icon-radio-on {
    background-image: url(images/icons-36-black.png);
    -moz-background-size: 864px 18px;
    -o-background-size: 864px 18px;
    -webkit-background-size: 864px 18px;
    background-size: 864px 18px;
  }
  .ui-icon-alt .ui-icon {
    background-image: url(images/icons-36-black.png);
  }
  .ui-icon-plus {
    background-position:   0 50%;
  }
  .ui-icon-minus {
    background-position:   -36px 50%;
  }
  .ui-icon-delete {
    background-position:   -72px 50%;
  }
  .ui-icon-arrow-r {
    background-position:   -108px 50%;
  }
  .ui-icon-arrow-l {
    background-position:   -144px 50%;
  }
  .ui-icon-arrow-u {
    background-position:   -179px 50%;
  }
  .ui-icon-arrow-d {
    background-position:   -215px 50%;
  }
  .ui-icon-check {
    background-position:   -252px 50%;
  }
  .ui-icon-gear {
    background-position:   -287px 50%;
  }
  .ui-icon-refresh {
    background-position:   -323px 50%;
  }
  .ui-icon-forward {
    background-position:   -360px 50%;
  }
  .ui-icon-back {
    background-position:   -395px 50%;
  }
  .ui-icon-grid {
    background-position:   -431px 50%;
  }
  .ui-icon-star {
    background-position:   -467px 50%;
  }
  .ui-icon-alert {
    background-position:   -503px 50%;
  }
  .ui-icon-info {
    background-position:   -538px 50%;
  }
  .ui-icon-home {
    background-position:   -575px 50%;
  }
  .ui-icon-search,
  .ui-icon-searchfield:after {
    background-position:   -611px 50%;
  }
  .ui-icon-checkbox-on {
    background-position:   -647px 50%;
  }
  .ui-icon-checkbox-off {
    background-position:   -683px 50%;
  }
  .ui-icon-radio-on {
    background-position:   -718px 50%;
  }
  .ui-icon-radio-off {
    background-position:   -754px 50%;
  }
  .ui-icon-bars {
    background-position:   -788px 50%;

  }.ui-icon-edit {
    background-position:   -824px 50%;
  }
}

.collapsible-header {
  border-top: 1px solid #a4a4a4;
  font-size:1em;
  font-weight:700;
  margin: 10px 0;
  padding-top:5px;
  cursor: pointer;
}

.collapsible-open::before {
  content: "-";
  font-size:1em;
  margin-right:5px;
}

.collapsible-closed::before {
  content: "+";
  font-size:1em;
  margin-right:5px;
}

.collapsible-body {
  display: none;
}

.indent10 {
  margin-left: 10px;
}

div.border-box {border:1px solid #a4a4a5;border-radius: 5px; padding:15px;}
div.fieldContainer{display: inline-block;margin-bottom:20px;width:150px;}
div.fieldLabel {display: inline-block; font-weight:700; width:149px;}
div.fieldValue {display: inline-block; width:149px;}

div.section {
  display:block;
  border-radius: 5px;
  border: 1px solid #a4a4a4;
  padding: 10px;
}

@media only screen and (max-width: 40em) {
  thead th:not(:first-child) {
    display: none;
  }

  td, th {
    display: block;
    width: 90px;
  }

  td[data-th]:before  {
    content: attr(data-th);
  }
}
