/********** 1. General Styles **********/

/* calibration of page */
*  { padding: 0; margin: 0; }
h1, h2, p, ul, ol, dl { margin: 1ex 0; }
h1 { margin-top: 0; }
ul ul { margin-bottom: 0; }
li { margin-left: 1em; }

/* html elements */
html {
  height: 100%;
}

body {
  color: #ffffff;
  background-color: #f0aa1e;
  background: linear-gradient(#f0aa1e, #ffffff, #f0aa1e) none top left no-repeat;
  font-family: Arial, Helvetica, Verdana, sans-serif;
  font-size: 76%;
  height: 100%;
}

h1 { font-size: 150%; }
h2 { font-size: 130%; }
h3 { font-size: 110%; }

address {
  text-align: center;
  font-size: 90%;
  font-style: normal;
  letter-spacing: 2px;
  line-height: 1.5em;
}

pre { font-size: 120%; }

dt { font-weight: bold; margin-top: 1em }

dd { margin-left: 1em; }

/* links */
a { text-decoration: none; outline: none; }
a:link { color: #1781b3; }
a:visited { color: #056999; }
a:active { color: #a4d9f2; }

/* tables */
table {
  background: #ffffff;
  border-collapse: collapse;
  margin: 2px 0;
}
th {
  background: #000000;
  color: #ffffff;
  font-weight: bold;
  padding: 2px 2px;
  text-align: center;
  border-left:  1px solid #000000;
  border-right: 1px solid #000000;
}
td {
  padding: 2px 2px;
  border-bottom: 1px solid #000000;
  border-left:  1px solid #000000;
  border-right:  1px solid #000000;
}
tr.even td {
  background: #f0aa1e;
}

/********** 2. Layout Styles **********/

#wrapper {
  color: #000000;
  background-color: #ffffff;
  width: 980px;
  margin: auto;
  position: relative;
}

#popup-wrapper {
  color: #000000;
  background-color: #ffffff;
  height: 100%;
}

#header {
  position: relative;
  border-top: 10px solid #f0aa1e;
  color: #000000;
  background: #ffffff;
  height: 100px;
}
#header p {
  position: absolute;
  top: 25px;
  right: 100px;
  color: #f0aa1e;
  font-weight: bold;
  font-size: 280%;
}
#header p span {
  color: #000000;
  font-size: 80%;
}

#navi {
  overflow: hidden;
  color: #000000;
  background-color: #ffffff;
  padding: 0px 10px 0px 20px;
  margin: 0;
  border-bottom: 1px solid #8c8c8c;
}

* html #navi { height: 1%; }

#navi ul {
  margin: 0;
  z-index: 1;
}

#navi li {
  float: left;
  width: auto;
  list-style: none;
  padding: 0px 5px 0px 0px;
  margin: 0;
}

#navi li li { clear: both; }

#navi a {
  display: block;
  color: #000000;
  background-color: #f0aa1e;
  padding: 4px 8px 4px 8px;
  border-top: 1px solid #8c8c8c;
  border-left: 1px solid #8c8c8c;
  border-right: 1px solid #8c8c8c;
}

#navi li li:last-child a {
  border-bottom: 1px solid #8c8c8c;
}

#navi a:hover, #navi a:focus, #navi a:active, #navi a.selected {
  color: #000000;
  background-color: #ffffff;
  border-bottom: none;
} 

#navi li ul {
  position: absolute;
  left: -9999px;
  top: -9999px;
  display: inline;
  width: 0;
  height: 0;
  background-color: transparent;
  z-index: 1; /* XXX Is this necessary? */
}

#navi li:hover ul, #navi li.sfhover ul {
  left: auto;
  top: auto;
  display: block;
  height: auto;
  background-color: #ffffff;
}

#navi ul ul li a {
  background-color: #ffffff;
}

#navi ul ul li a:hover {
  background-color: #f0aa1e;
}

#navi li li a {
  width: 9.5em;
}

#navi #loginlink {
  float: right;
}

#person {
  margin-top: 5px;
  float: right;
}

#person b {
  font-size: 110%;
}

#text { padding: 20px 10px 0px 20px; }
#text a { border-bottom: 1px dotted #1781b3; }
#text a:visited { border-bottom: 1px dotted #056999; }
#text a:active { border-bottom: 1px dotted #a4d9f2; }
#text a:hover, #text a:focus { border-bottom: 1px solid #1880b2; }
#text a.no-underline { border-bottom: none }
#text td, .symbol { font-family: "Arial Unicode MS", Helvetica, Arial, Verdana, sans-serif; }

#text ol li { font-size: 85%; }

#footer {
  padding: 10px 20px 10px 20px;
  border-top: 1px solid #8c8c8c;
  margin-top: 20px;
  background: #ffffff;
}

#legend { height: 160px; }
#legend div { float: left;  }


/********** 3. Form Styles **********/

fieldset {
  margin-top: 1ex;
  padding: 5px;
}

legend {
  color: #f0aa1e;
  font-weight: bold;
  padding: 0 2px;
}

label:after, .label:after {
  content: ": " /* <- non-breaking space */
}

label.behind:after, .label.behind:after {
  content: "";
}

form div > label, form div > .label {
  display: block;
  width: 14em;
  float: left;
  text-align: right;
  padding: 4px 2px 2px 0;
}

form div > .text {
  vertical-align: bottom;
  position: relative;
  top: 1px;
  line-height: 180%;
}

form table div > label {
  width: 6em;
}

form div {
  text-align: left;
  margin: 2px 0;
  clear: left;
}

input[type=text], input[type=file], input[type=password], textarea {
  padding: 2px;
}

input[type=button], input[type=submit] {
  padding: 4px 8px;
}

option {
  padding: 1px 0 0 0;
}

input[type=button], input[type=file], input[type=password], input[type=submit],
input[type=text], textarea, select {
  border: 1px solid #000000;
}

select {
  min-width: 10em;
}

input[type=button], input[type=file], input[type=password], input[type=submit],
input[type=text], select, textarea {
  font-family: Arial, Verdana, Helvetica, sans-serif;
  font-size: 100%;
  width: 28ex;
}

input[type=password].password-set {
  background: url(../img/password-set.png) no-repeat center left;
}

input[type=submit], input[type=button] {
  width: auto;
}

div>input[type=checkbox] {
  margin: 3px 0 0 0;
}

/********** 4. Tapestry Style Tweaks **********/
html>body div.t-error ul>li {
  margin-left: 2em;
}
html .datePicker td.red {
  color: #000000;
}
html .datePicker {
  border: 1px solid #000000;
  background: #ffffff;
}
html .datePicker td {
  border-top: 1px solid #000000;
  color: inherit;
}
html .datePicker .header {
  background: inherit;
  border-bottom: inherit;
}
html .datePicker td .topLabel {
  color: #000000;
}

/********** 5. Notification component **********/
div.notification {
  padding: 0px;
  margin: 4px 0px;
}
div.notification div {
  padding: 2px;
  display: block;
  margin: 0px;
  font-weight: bold;
}
div.notification ul {
  margin: 2px 0px;
}
div.notification li {
  margin-left: 2em;
}

/* Colors */
div.notice { border: 1px solid #48781c; }
div.notice div { background-color: #48781c; color: #ffffff; }
div.notice ul { background-color: #ffffff; color: #48781c; }
div.notification ul li.notice { color: #48781c; }
div.warn { border: 1px solid #f0aa1e; }
div.warn div { background-color: #f0aa1e; color: #ffffff; }
div.warn ul { background-color: #ffffff; color: #f0aa1e; }
div.notification ul li.warn { color: #f0aa1e; }
div.error { border: 1px solid #e62d87; }
div.error div { background-color: #e62d87; color: #ffffff; }
div.error ul { background-color: #ffffff; color: #e62d87; }
div.notification ul li.error { color: #e62d87; }

/********** 6. Other Styles **********/

.clearing { clear: both }
.hidden { display: none }
.pointer:hover { cursor: pointer }
.csv + .csv:before { content: ", " }
.ssv + .ssv:before { content: "; " }
.nowrap { white-space: nowrap }
img.icon { vertical-align: -25% }
img.icon:hover { cursor: pointer }
img.icon.disabled { cursor: inherit }
img.pad { padding: 4px 2px 2px 0 }

img.icon.hover { position: absolute; visibility: hidden; margin-left: -16px }
span:hover > a > img.icon.hover { visibility: visible }

#error {
  background-color: #f088bb;
  color: #e62d87;
  width: 620px;
  padding: 20px;
  border: 1px solid #e62d87;
  font-weight: bold;
}

#message {
  background-color: #afc841;
  color: #48781c;
  width: 920px;
  padding: 10px;
  border: 1px solid #48781c;
  font-weight: bold;
}

/********** 7. Modifications for printing **********/
@media print {
  body {
    background-color: #ffffff;
  }
  #header, #navi, #footer { display: none }
  #wrapper {
    width: auto;
    margin: auto;
  }
  th {
    background: #c0c0c0;
    color: #000000;
    font-size: 110%;
    border: 1px solid #000000;
  }
  #text a {
    color: #000000;
    border: none;
  }
  .noprint {
    display: none;
  }
}
