/* Layout */

#logo {
    position: absolute;
    top: 5px;
    left: 20px;
    width: 70px;
    height: 100px;
    background: url(logo-70x100.jpg) no-repeat top left;
}

#head {
    margin: 5px 20px 0 110px;
    background: url(head-background-blue.jpg);
    -moz-border-radius: 20px 0px 20px 0px;
    -webkit-border-radius: 20px 0px 20px 0px;
    border-radius: 20px 0px 20px 0px;
    -webkit-box-shadow: 2px 2px 2px #666;
    -moz-box-shadow: 2px 2px 2px #666;
    box-shadow: 2px 2px 2px #666;
}

#head-top {
    position: relative;
    min-height: 16px;
    height: auto !important;
    height: 16px;
    padding: 3px 12px;
}

#user-actions {
    color: white;
    position: absolute;
    top: 3px;
    right: 12px;
}

#head-middle {
    position: relative;
    min-height: 47px
    height: auto !important;
    height: 47px;
    padding: 2px 12px;
    border-top: 1px solid white;
    border-bottom: 1px solid white;
}

#app-title {
    line-height: 47px;
    font-size: 200%;
    font-weight: bold;
    font-family: Georgia, serif;
}

#app-title a {
    color: black;
}

#applications {
    position: absolute;
    bottom: 3px;
    right: 12px;
    max-width: 30%;
}

#head-bottom {
    min-height: 16px;
    height: auto !important;
    height: 16px;
    padding: 3px 12px;
    background: #0e2533;
    color: white;
    -moz-border-radius: 0 0 20px 0px;
    -webkit-border-radius: 0 0 20px 0px;
    border-radius: 0 0 20px 0px;
}

#flash {
    background: #c2f0bf;
    border: 1px solid #3ea538;
    text-align: center;
    margin: 1em 0;
    padding: 0.5em;
    -moz-border-radius: 12px;
    -webkit-border-radius: 12px;
}

#nav {
    height: auto !important;
    zoom: 1;
}

#foot {
    font-size: 8pt;
    text-align: right;
    clear:both;
    color: #888;
    margin: 20px;
}

#masthead a {
    color: black;
}

#breadcrumbs {
  color: white;
  float: left;
  padding-bottom: 2px;
}

#breadcrumbs a {
    color: #bfe0f6;
}

#subnav {
    background: #eeeeee;
    color: black;
    margin: 1em 1.5em;
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    border-radius: 6px;
    zoom: 1;
    padding: 0.5em;
}

#nav:after, #subnav:after, #foot-nav:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

#nav a {
    font-weight: normal;
    color: white;
    margin-right: auto;
}

#nav .active a, #nav a.active, #subnav .active a, #subnav a.active, #foot-nav .active a{
    text-decoration: underline;
}

#subnav .active li a{
  text-decoration: none;
} 

#subnav .active li a:hover {
  text-decoration: underline;
}

#subnav .active .active a {
  text-decoration: underline;
}

#applications .active {
    display: none;
}

#nav ul, #subnav ul, #applications ul, #foot-nav ul {
    list-style: none;
    padding: 0;
    margin: 0 -5px;
}

#nav li, #subnav li, #applications li, #foot-nav li {
    float: left;
    padding-right: 5px;
    padding-left: 5px;
}

#nav li {
    border-left: 1px solid white;
}

#subnav li, #applications li, #foot-nav li {
    border-left: 1px solid black;
}

#subnav li ul li {
  margin-left: 1em;
}

#nav li:first-child, #subnav li:first-child, #applications li:first-child, #foot-nav li:first-child {
    border-left: none;
}

#applications  li.active:first-child + li {
    border-left: none;
}

#subnav a, #subnav a.active, #applications a, #applications a.active {
    font-weight: normal;
    color: black;
}

#user-actions a {
    font-weight: normal;
    color: #bfe0f6;
}
#user-actions a.bug {
  color: #FF0;
}

#user-actions #user-logout a {
  text-shadow: #300 1px 1px 2px ;
}

#user-actions #user-logout a:hover {
  color: #D00;
}
#user-actions #user-logout:hover {
  background: #DD0;
}
#content {
    position: relative;
    margin: 2em 20px;
    padding-bottom: 5em;
}

/* Search form */

form.search {
    padding: 0.6em;
    background: #D6E7F1;
    border-bottom: none;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

form.search fieldset {
    padding-top: 1em;
    margin-bottom: 1em;
}

form.search.collapsed fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

form.search legend {
    font-weight: bold;
}

form.search.collapsed legend {
    display: none;
}

form.search .actions {
    text-align: right;
    margin-bottom: 1em;
}

form.search .buttons {
    clear: left;
    padding: 0;
}

form.search input.submit {
    margin-left: 0;
}

form.search div.field .label {
    width: 30%;
}

form.search div.field .value {
    margin-left: 31%;
}

/* Form search improvements */

form.search.advanced {
  padding: 0.6em;
  /*background: #EEE;*/
  border: 1px solid #9FC0D6;
  border-radius: 0px;
  margin-bottom: 0em;
  padding: 0em;
  padding-bottom: 0.6em;
}

form.search.advanced .actions {
  background: #D6E7F1;
  padding: 0.5em;

}

form.search.advanced .actions {
  background: #a7c1ce;
  background: -moz-linear-gradient(top, #a7c1ce 13%, #d6e7f1 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(13%,#a7c1ce), color-stop(100%,#d6e7f1));
  background: -webkit-linear-gradient(top, #a7c1ce 13%,#d6e7f1 100%);
  background: -o-linear-gradient(top, #a7c1ce 13%,#d6e7f1 100%);
  background: -ms-linear-gradient(top, #a7c1ce 13%,#d6e7f1 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a7c1ce', endColorstr='#d6e7f1',GradientType=0 );
  background: linear-gradient(top, #a7c1ce 13%,#d6e7f1 100%);
}

form.search.advanced .actions .expand-button {
  background-image:url('collapse.png');
  background-repeat: no-repeat;
  padding-left: 16px; 
  background-position: 2px;
}

form.search.collapsed.advanced .actions .expand-button {
  background-image:url('expand.png');
  background-repeat: no-repeat;
  padding-left: 16px; 
  background-position: 2px;
}

form.search.advanced .actions .search-button {
  background-image:url('arrow.png');
  background-repeat: no-repeat;
  padding-left: 16px;
  background-size: 12px 12px;
  background-position: 2px;
}

/* JQuery datepicker */

#ui-datepicker-div {
    z-index: 1010;
    display: none; /* this div is always showing */
}

/*
input.date {
    background: #fff url('/styles/icons/gif/calendar_view_month.gif') left no-repeat;
    padding-left: 20px;  
}
*/

div.field img.ui-datepicker-trigger {
  position: relative;
  top: 3px;
}

/* Pseudo-links */

span.link {
    cursor: pointer;
}

/* AJAX */

div.loading, div.ui-dialog-content.loading {
    background: url(loading.gif) bottom center no-repeat;
    padding-bottom: 24px;
    min-width: 24px;
}

/* Action links */

.actions {
    font-weight: normal;
}

h1 .actions {
    float: right;
}

#nav-after input, #nav-after select {
    border: 1px none;
    font-size: 10px;
}

#nav-after {
  float: right;
}

/* Progress bar */
.progress-bar {
  position: relative;
  border: 1px solid #9FC0D6;
  height: 1.2em;
  overflow: hidden;
  background: #FFF;
}
.progress-bar-fill {
  height: 1.2em;
  background-color: #D6E7F1;
  z-index: 1;
}
.progress-bar-text {
  position: absolute;
  z-index: 2;
  font-size: 0.9em;
  width: 100%;
  text-align: center;
}
.progress-bar.full {
  border: 1px solid #7A7;
}
.progress-bar.full .progress-bar-fill {
  background-color: #DFD;
}

.no-description, .grayed {
  font-style: italic;
  color: #999;
}


table tr.alt {
    background-color: #e8f5fc;
}


