a {
  background-color:transparent;
  text-decoration:none;
  color:#436976;
}

a:hover {
  border-bottom: 1px dotted #436976;
}

p {
  font-size: 110%;
}

em {
  font-style: italic;
}

legend {
  padding: 0.2em 0.5em;
  border:1px solid #74AE0B;
  color: green;
  font-size:90%;
}

/* Experimental style. In a table cell, space is still calculated with horizontal text in FF */
.vertical-text {
  writing-mode:tb-rl;
  -webkit-transform:rotate(90deg);
  -moz-transform:rotate(270deg);
  -o-transform: rotate(90deg);
  white-space:nowrap;
  display:block;
  bottom:0;
}

.transparent {
  zoom: 1;
  filter: alpha(opacity=50);
  opacity: 0.5;
}
.semi-transparent {
  zoom: 1;
  filter: alpha(opacity=80);
  opacity: 0.8;
}


.clear {
  clear: both;
}

div#announce p {
  background-color: #ffc0cb;
  padding: 0.5em;
  margin: 0.2em;
  text-align: center;
}

div#tabs {
  background-color: #E8F3D6;
  border-bottom: 1px solid #74AE0B;
}

/* menu tabs */
ul.tabs {
  font-size: 125%;
}
ul.tabs, ul.submenu {
  list-style: none outside none;
  margin: 0;
  padding: 0;
  z-index: 120;
}
ul.tabs li {
  float: left;
  position: relative;
  padding: 3px 6px;
  margin-left: 0.1em;
  margin-bottom: 0;
  background-color: white;
  background-image: none;
  border: 2px solid #CDE2A7;
  border-top: 0;
}
ul.tabs > li {
  border-radius: 0 0 0 5px;
}
ul.tabs li.parent {
  background: url("../img/arrow_down.4b83cce8f31e.gif") no-repeat right center white;
  /* workaround a ie8 known bug about z-index */
  z-index: 21002;
}
ul.tabs > li > a, ul.tabs > li > .unlinked {
  /* first-level li */
  padding: 2px 1em;
}
ul.tabs li.active {
  background-color: #CDE2A7;
  border: 2px solid #74AE0B;
}
ul.tabs li:hover {
  background-color: #CDE2A7;
}
ul.tabs li.active {
  padding-top: 8px;
  margin-top: -8px;
}
ul.tabs li.username {
  font-size: 100%;
  font-style: italic;
  border-right: 0;
}
ul.tabs li.logout {
  border-left: 0;
  border-radius: 0;
}

/* second-level menus */
ul.tabs li ul {
  display: none;
  width: 240px;
  margin: 3px 0 0 0;
  border: 2px solid #CDE2A7;
  position: absolute;
  left: -2px;
  /* api.css from geoadmin has z-index > 20000 */
  z-index: 21000;
}
ul.tabs li ul li {
  border: 0;
  width: 225px;
  font-size: 90%;
}

/* various list styles */

ul.noindent > li {
  background-image: none;
  padding-left: 0;
}

ul.children > li {
  background-image: url("../img/bullet-small.812c3ed4734a.gif");
  background-repeat:no-repeat;
}

.expandable {
  cursor: pointer;
}

.closed {
  background-image: url("../img/closed-list.0b460d57d5de.png");
  background-repeat:no-repeat;
  padding-left: 0.9em !important;
}
.closed + p, .closed + div, .closed + ul {
  display: none;
}

.open {
  background-image: url("../img/open-list.bfa62fd4c825.png");
  background-repeat:no-repeat;
  padding-left: 0.9em !important;
}
.open + p, .open + div, .open + ul {
  display: block !important;
}

ul#culture_menu .children, ul.pages-menu .children {
  display: none;
}

ul#manage_links > li {
  background-image: none;
}
ul#manage_links > li a:hover {
  font-weight: bold;
}

/* http://odyniec.net/articles/turning-lists-into-trees/ */
ul.tree, ul.tree ul {
  list-style-type: none;
  background: url("../img/line_vert.b45f1266e07b.png") repeat-y;
  margin: 0;
  padding: 0;
}
ul.tree ul {
  margin-left: 10px;
}

ul.tree li {
  margin: 0;
  padding: 0 12px;
  line-height: 20px;
  background: url("../img/line_node.8655f302341f.png") no-repeat;
}
ul.tree li:last-child {
  background: #fff url("../img/line_lastnode.66cfba91c45b.png") no-repeat;
}
ul.tree div.self, ul.tree div.self a, ul.tree div.self .discreet {
  font-weight: bold;
  font-style: italic;
  color: black !important;
}

ul.grp_list > li {
  padding-bottom: 5px;
  font-weight: bold;
  line-height: 1.2em;
}

div#tabs-top {
  margin-bottom: 0.5em;
}
div#tabs-bottom {
  margin-top: 1em;
  border-top: 1px solid #CDE2A7;
  text-align: center;
}
ul#tabs-foot {
  text-align: center;
  margin: 2px auto;
  width: 320px;
}
ul#tabs-foot li {
  width: 140px;
  text-align: center;
}

ul#yfilter {
  list-style: none outside none;
  height: 30px;
  margin-top: 0;
  background-color: #e8f3d6;
}

ul#yfilter li {
  float: left;
  background-color: white;
  margin: 5px 0 0 1.5em;
  padding: 2px;
  border-radius: 4px;
}

/* Home page styles */
div#homeselect {
  margin: 0 auto;
  text-align: center;
}
div.cultureblock {
  display: inline-block;
  vertical-align: top;
  width: 14%;
  margin: 2.5em 0.8em 1em 0.8em;
  font-size: 160%;
}

#homeselect a img {
  border:1px solid #999999;
  margin:0;
}
#homeselect a:hover {
  border-bottom: 0px;
}
#homeselect a:hover img {
  border-color: red;
}

/* Statuses */
.state-private  {
color:Red !important;
}
.state-visible {
color:#74AE0B !important;
}
.state-published {
color:#436976 !important;
}
.state-pending {
color:#FFA500 !important;
}
.state-expired {
color:#76797C !important;
}
.syndicated {
color:#008000 !important;
}

tr.selected, div.selected, li.selected > * {
  background-color: #dce2d0 !important;
}

div.variety, span.variety {
  background-image:url("../img/variety_icon.ebb0be50e9d7.gif");
  background-repeat:no-repeat;
  padding-left: 1.6em;
}
div.accession, span.accession {
  background-image:url("../img/accession_icon.24925c101747.gif");
  background-repeat:no-repeat;
  padding-left: 1.6em;
}

.referenceacc, .referenceacc > .discreet {
  font-weight: bold !important;
}

div.varietylist, span.varietylist, div.positivelist, span.positivelist,
div.accessionlist, span.accessionlist, div.specieslist, span.specieslist {
  background-image:url("../img/list_icon.4ac96257a2b0.gif");
  background-repeat:no-repeat;
  padding-left: 1.8em;
}
div.positivelist, span.positivelist {
  background-image:url("../img/poslist_icon.78cc233a4081.gif");
}
div.conservationlist, span.conservationlist {
  background-image:url("../img/collection_conservation.ee6337c5d57d.png");
  background-repeat:no-repeat;
  padding-left: 1.9em;
}

div.contenttype-tree {
  background-image:url("../img/greentree.ec34f650dda1.png");
  background-repeat:no-repeat;
  padding-left: 1.8em;
  height: 22px;
}
div.contenttype-link {
  background-image:url("../img/link_icon.caadad3fb2ec.gif");
  background-repeat:no-repeat;
  padding-left: 1.8em;
  height: 22px;
}

h1.orga, li.orga {
  background-image:url("../img/team_icon.fb25128f6a51.png");
  background-repeat:no-repeat;
  padding-left: 1.4em;
}
h1.work, li.work {
  background-image:url("../img/groupspace.cd56404f245a.gif");
  background-repeat:no-repeat;
  padding-left: 1.4em;
}

.current {
  border: 1px solid #74AE0B;
  background-color: #CDE2A7;
}
/*li.current>a {
  font-weight: bold;
}*/
li.current>ul {
  display: block !important;
}

img.logo {
  border: 1px solid #8CACBB;
}
img.selected_lang {
  border: 1px solid #555;
}

ul.messages {
  list-style:none outside none;
  padding-left: 0;
  margin: 1em 0;
}
ul.messages li, div.messages {
  background-color:#FFCE7B;
  background-image:url("../img/info_icon.d0df6c535856.gif");
  background-position:5px 50%;
  background-repeat:no-repeat;
  border:1px solid #FFA500;
  padding: 0.5em 1em 0.5em 3em;
  font-weight: bold;
}

ul.messages li.error {
  background-color: #FF8080;
}

/* Tabs */
.contentViews {
  background-color:transparent;
  border-color:#8CACBB;
  border-style:solid;
  border-width:0 0 1px;
  line-height:normal;
  list-style:none outside none;
  margin:0;
  padding-left:1em;
}
.contentViews li {
  display:inline;
  background-image: none;
  padding: 0.5em 0 0 0;
}
.contentViews li a {
  /*background-color:transparent;*/
  border:1px solid #8CACBB;
  color:#436976;
  height:auto;
  margin-right:0.5em;
  padding:0 1em;
  text-decoration:none;
  /*z-index:1;*/
}
.contentViews .selectedtab a {
  background-color:#DEE7EC;
  border-bottom:1px solid #DEE7EC;
  color:#436976;
}

/* ********* Action Bar ************** */
.action_bar {
  background-color:#DEE7EC;
  border-left:1px solid #8CACBB;
  border-right:1px solid #8CACBB;
  color:#436976;
  height:1.6em;
  padding:0 0 0 1em;
  position:relative;
  text-align:right;
  z-index:2;
}
.action_bar ul, .action_bar li {
  display:inline;
  line-height:1.6em;
  list-style:none outside none;
}
.action_bar li {
  border-left:1px solid #8CACBB;
  background-image: none;
  float:right;
  padding: 0 0.5em;
  z-index:4;
}

.action_menu {
  position: relative;
}
a.action_menu_header  {
  background-image:url("../img/arrow_down.4b83cce8f31e.gif");
  background-position:95% 60%;
  background-repeat:no-repeat;
  padding-right: 1.6em !important;
  /*padding:0 1.6em 0 0.5em !important;*/
}
.action_menu_content {
  position:absolute;
  display:none;
  right:-1px;
  top:1.6em;
  height: auto;
  /*line-height:normal;*/
  z-index:5;
  background-color: #DEE7EC;
  border-color:#8CACBB;
  border-style: solid;
  border-width:1px;
  margin:-2px 0 0;
  padding:0;
}
.action_menu_content ul {
  display: block;
  text-align: left;
  padding: 0;
  margin: 0;
}
.action_menu_content li {
  border: 0;
  margin: 0;
  /*line-height:0.7em;*/
  /*float: none;*/
  display: inline;
}
.action_menu_content li a {
  display:block;
  margin:0.2em 0;
  padding:0 0.5em;
  white-space:nowrap;
}

/*.actionMenu.activated .actionMenuContent {
border-collapse:collapse;
border-spacing:0;
display:table !important;
}*/

/* ********** Pagination ********* */
.pagination_bar  {
  background-color:#CDE2A7;
  border:1px solid #74AE0B;
  clear:both;
  font-size:94%;
  margin:1em 0;
  padding:0 1em;
  text-align:center;
  vertical-align:top;
}
.pagination_prev  {
  float:left;
  margin-right:1em;
  text-align:left;
}
.pagination_next  {
  float:right;
  margin-left:1em;
  text-align:right;
}

/* Various display styles */

tr.multivalue div.value {
  border-bottom: 1px dotted #DDDDDD;
}

div.edit_buttons {
  float: right;
  text-align: right;
  margin-left: 4px;
}
div.add_button {
  text-align: right;
  margin-left: 4px;
}

div.select_all {
  text-align: right;
  font-size: 90%;
}

.date {
  color:#76797C;
  font-size: 0.9em;
}

.legend {
  color:#76797C;
  font-style: italic;
}

.green_border {
  border: 1px solid #74AE0B;
  padding: 3px;
}

/* Form styling */
form th {
  text-align: right;
  vertical-align: top;
  padding-top: 3px;
}

input {
  background:white; /*White *url*(../img/input_background.gif) repeat-x scroll 0 0;*/
  border:1px solid #74AE0B;
  color:black;
  font-family:Verdana,Helvetica,Arial,sans-serif;
}

input[disabled] {
  border: 1px solid #999;
  color: gray;
}

input[type=button], input[type=submit], button {
  padding: 4px 15px;
  border-radius: 4px;
  background-color: #eff5e3;
  cursor: pointer;
}
input[type=button]:hover, input[type=submit]:hover, button:hover {
  background-color: #eee;
}

input[type=button].cancel {
  background-color: #eee;
}

input[type=button].delete {
  margin-left: 1em;
  margin-right: 1em;
}
input[type=button].delete:enabled {
  color: red;
}

input.discreet_button, button.discreet_button {
  font-size: 75%;
  border: 1px solid #666;
  background-color: #DDD;
  cursor: pointer;
}

input[type=radio], input[type=checkbox] {
  border: none;
  vertical-align:middle;
  margin: 0 3px;
}

input[type=number] {
  width: 8em;
}

input[readonly] {
  background-color: #EEEEEE;
}

select {
  background-color: white;
  border:1px solid #74AE0B;
  color:black;
}

textarea {
  border:1px solid #74AE0B;
  font-family:Verdana,Helvetica,Arial,sans-serif;
  font-size:100%;
}

fieldset {
  line-height:1.5em;
  border:1px solid #74AE0B;
  margin:1em 0;
  padding:0 1em 1em;
}

label {
  font-weight:bold;
  vertical-align:middle;
}
label.required {
  background-image:url("../img/asterisk.5c37e92a4d20.png");
  background-repeat:no-repeat;
  padding-left: 1.4em;
}

div.field {
  margin-bottom: 1em;
}

div.form_buttons {
  clear: both;
  margin-top: 1em;
}

.formHelp, .helptext {
  color:#555;
  font-size: 0.9em;
}

.errorlist {
  color: red;
}
ul.errorlist {
  padding-left: 1em;
  margin: 2px;
}

.successmessage {
  color: green;
}

.discreet {
  color:#76797C;
  font-size:85%;
  font-weight:normal;
}

.disabled {
  color: #666666;
  background-color: #eee;
}

.hidden {
  display: none;
}

/* Search form */
div.descr_group_container {
  margin-bottom: 5px;
}
div.descr_group_head {
  font-size: 1.1em;
  background-color:#eee;
  padding: 2px;
}
span.widget_head {
  cursor: pointer;
}
span.widget_head img, div.descr_group_head img {
  vertical-align: middle;
}

div.no_value_input { float: right; }
div.no_value_input img { width: 18px; }

/* Form on presentation edit tab */
table.pres_form th {
  vertical-align: top;
  text-align: right;
  padding-top: 4px;
}
table.pres_form td.input {
  width: 75%;
}
table.pres_form textarea {
  width: 100%;
}
table.pres_form input#id_title {
  width: 100%;
}
table.pres_form input.year {
  width: 4em;
}
table.pres_form input.month, table.pres_form input.day {
  width: 2em;
}

div.obs_widget {
  float:right;
  padding-left: 0.5em;
}

div.pres_form {
  float:left;
  text-align: left;
  padding-right: 0.5em;
  width: 30%;
}
div.cb {
  float: left;
}
div.cb-label {
  margin-left: 2em;
  padding-top: 2px;
}
div.cb-label label {
  font-weight: normal;
}

div.documentActions {
  float:right;
  margin:0.4em 0 0 0.5em;
  padding:0;
  text-align:right;
}

div.rightImagesBlock {
  border:1px solid #74AE0B;
  margin:1em 0;
  padding:0 1em 1em;
  max-width: 270px;
  clear: both;
  float:right;
  text-align:center;
}
div.rightImagesBlock img {
  margin: 5px;
}

div.description {
  margin-bottom: 1em;
}

div.map-right-container {
  float:right;
  clear: right;
  position: relative;
}
div.map-right {
  width: 280px;
  height: 280px;
  border:1px solid #74AE0B;
  margin:1em 0;
  padding:0 1em 1em;
}
.olControlAttribution {
  bottom: 0.5em !important;
}

.visgroup_title {
  text-align: center;
  color: rgb(255, 159, 8);
}

/* Properties table */
table.prop_table th {
  text-align: left;
}
table.prop_table td, table.prop_table th {
  padding: 0.3em;
}

table.listing {
  border-collapse:collapse;
  border:1px solid #74AE0B;
  margin:1em 0;
}
table.listing th, table.values th {
  background:#CDE2A7;
  padding:0.25em 0.7em;
  border-right:1px solid #74AE0B;
}
table.listing th.left {
  border-bottom:1px solid #74AE0B;
  text-align: left;
}

table.listing td {
  padding:0.25em 0.7em;
  border-right:1px solid #CDE2A7;
}

span.blank_link {
  border-bottom: 1px dotted #436976;
}

table.descriptor th {
  text-align: left;
  vertical-align: top; 
}
table.descriptor td {
  padding:2px;
  vertical-align: top;
}

table.descriptor p {
  margin: 2px;
}
.descrname {
  font-weight: normal;
  font-style: italic;
}

.export_links {
  margin-top: 0.8em;
  font-style: italic;
}

span#perc_report {
  font-size: 150%;
  margin-left: 2em;
}

table.list_content_summary {
  text-align: right;
  margin: 0.7em;
  border-collapse: collapse;
}
table.list_content_summary th {
  background-color: #eee;
}
table.list_content_summary td, table.list_content_summary th {
  padding: 3px;
  border: 1px solid #CCC;
}
table.list_content_summary tr.last {
  border-top: 3px solid gray;
}

table.inside_borders {
  border-collapse: collapse;
}
table.inside_borders td, table.inside_borders th {
  border: 1px solid gray;
}
table.inside_borders tr:first-child th {
  border-top: 0;
}
table.inside_borders tr:last-child td {
  border-bottom: 0;
}
table.inside_borders tr td:first-child,
table.inside_borders tr th:first-child {
  border-left: 0;
}
table.inside_borders tr td:last-child,
table.inside_borders tr th:last-child {
  border-right: 0;
}
