#header {
    height: 1.6em;
    background-color: #2D678E;
    color: white;
    padding: 4px;
    margin-bottom: 5px;
    border-bottom: 2px solid black;
}

#header h1 {
    font-family: sans-serif;
    font-weight: bold;
    font-size: 1.2em;
    display: block;
    float: left;
    margin: 0.05em;
}

#header a {
    color: white;
    text-decoration: none;
}

#content {
    margin: 10px;
}

#menu {
    display: block;
    float: right;
    margin: 0.1em;
}

#menu li {
    display: block;
    float: left;
    position: relative;
    padding: 0 0.4em 0 0.4em;
}

#menu li + li {
    border-left: 2px solid white;
}

#menu .dropdown a {
    display: block;
    white-space: nowrap;
}

#menu a, #menu .nolink {
    padding: 0.3em;
    border: 1px solid #2D678E; /* same color as background, to prevent repositioning when hover border appears */
}

#menu a:hover {
    border: 1px dotted white;
}

#menu .dropdown {
    overflow: hidden;
    display: block;
    position: absolute;
    top: 0px;
    left: 0px;
    padding-top: 1.8em;
    height: 0px;
    min-width: 120px;
}

#menu .dropdown:hover {
    overflow: visible;
}

#menu .dropdown div.menu {
    background-color: #2D678E;
    padding: 0.4em;
    -moz-border-radius-bottomright: 5px;
    -moz-border-radius-bottomleft: 5px;
    border-right: 2px solid black;
    border-bottom: 2px solid black;
}

#selected-records {
    width: 170px;
    height: 400px;
    overflow: auto;
}

#selected-records div {
    margin-bottom: 5px;
}

#selected-records a {
    display: inline !important;
    border: none !important;
}

#footer {
    margin-top: 60px;
    padding: 4px;
    border-top: solid thin lightgrey;
    font-size: smaller;
    font-family: sans-serif;
    clear: both;
}

.horizontal-block {
    border: thin grey solid;
    background-color: lightgrey;
    padding: 3px;
}

.resultlist {
    width: 80%;    
}

.record {
    float: left;
    border: thin lightgrey solid;
    -moz-border-radius: 5px;
    width: 150px;
    height: 150px;
    padding: 3px;
    margin: 5px;
    overflow: hidden;
    font-size: smaller;
}

.record img {
    -moz-border-radius-topleft: 3px;
}

.record_list {
    border-bottom: thin lightgrey solid;
    padding: 2px;
    white-space: nowrap;
    overflow: hidden;
}

.record_list img {
    border: hidden;
    vertical-align: baseline;
}

.facets {
    float: right;
    width: 20%;
}

.facet {
    border: thin lightgrey solid;
    margin: 5px;
    -moz-border-radius: 5px;
}

.facet-header {
    font-weight: bold;
    background-color: lightgrey;
    padding: 2px;
}

.facet-body {
    font-size: smaller;
    padding: 2px;
}

.facet-body a {
    text-decoration: none;
}


#sessionstatus {
    float: right;
    border: thin #BBBB00 solid;
    background-color: #CCCC00;
}

.alternate-row {
    background-color: #F7F7F7;    
}

div.fieldvalue-edit:first-child {
    border-top: thin solid grey;
}

div.fieldvalue-edit {
    border-bottom: thin solid grey;
    padding: 4px;
    margin: 0px;
    clear: both;
    overflow: auto;
}

div.fieldvalue-edit textarea {
    vertical-align: top;
    width: 300px;
    height: 60px;
}

div.fieldvalue-edit div.column {
    float: left;
    margin-right: 5px;
}
div.fieldvalue-edit div.column label {
    width: 70px;
    text-align: right;
    margin-right: 5px;
    display: block;
    float: left;
}

div.fieldvalue-edit div.column span.row {
    display: block;
    float: left;
    clear: left;
}

div.fieldvalue-edit optgroup {
    font-style: normal;
    font-weight: bold;
    margin-top: 5px;
    border-top: 1px solid black;
}

div.fieldvalue-edit span.fs-order input {
    width: 30px;
}

#comments {
    float: right;
    width: 300px;
    -moz-border-radius: 5px;
    border: 1px solid black;
    padding: 5px;
    margin: 5px;
    background-color: #f9f9f9;
}

#comments p {
    margin: 0.2em 0 0.2em 0;
}

#comments p:first-line {
    font-size: larger;
    font-weight: bold;
}

#comments .byline {
    font-size: small;
    font-style: italic;
}

.icon {
    display: -moz-inline-box; /* Firefox 2 */
    display: inline-block;
    vertical-align: bottom;
    background-image: url('/static/images/icons.png');
    width: 20px;
    height: 20px;
    text-decoration: none;
}

.icon * {
    visibility: hidden;
}

.help-icon {
    background-position: -40px 0px;
}

.or-icon {
    background-position: 0px 0px;
}

.remove-icon {
    background-position: -20px 0px;
}

#stats { background-color: #ddd; font-size: 65%; padding: 5px;
        z-index: 1000; position: absolute; right: 5px; top: 50px;
        -moz-opacity: .7; opacity: .7;}

form.vertical label {
    display: block;
    float: left;
    width: 120px;
    text-align: right;
    clear: left;
    margin: 3px 3px;
}

form.vertical input, form.vertical select, form.vertical textarea, form.vertical label.inline {
    display: block;
    float: left;
    margin: 3px;
}

form.vertical label.inline {
    clear: none;
    width: auto;
}

form.vertical div.row {
    clear: left;
    margin: 3px 3px 3px 124px;
}

form.vertical ul.errorlist li {
    display: block;
    float: left;
    color: red;
    list-style: none;
    margin: 3px;
}

.tagcloud a {
    text-decoration: none;
}

.browsecolumn {
    float: left;
    margin: 10px;
    width: 45%;
}

.browsecolumn div {
    text-indent: -20px;
    padding-left: 20px;
}

#related-images-bar {
    height: 18px;
    left: 0px;
    bottom: 0px;
    position: fixed;
    background-color: #F0F0F0;
    border-top: thin solid black;
}

#related-images-bar-toggle {
    width: 100%;
    height: 18px;
    font-size: 12px;
    border-bottom: thin solid grey;
}

.sidebar {
    float: right;
    width: 200px;
}

.sidebar-item {
    border: 1px solid grey;
    margin: 5px;
    padding: 2px;
    -moz-border-radius: 5px;
}

.sidebar-item h2 {
    margin: 5px;
}



div.metadata {
    font-size: smaller;
}

div.metadata div.label {
    position: absolute;
    width: 150px;
    font-weight: bold;
    text-align: right;
}

div.metadata div.label:after {
    content: ":";
}

div.metadata div.value {
    padding-left: 155px;
}

div.metadata-subitem div.label {
    display: none;
}


.tag {
    background-color: #2D678E;
    color: white;
    font-size: 0.7em;
    font-family: sans-serif;
    -moz-border-radius: 3px;
    padding: 2px 4px 2px 5px;
    white-space: nowrap;
    line-height: 1.8em;
}

.tag2 {
    font-size: 0.9em;
}

.tag3 {
    font-size: 1.1em;
}

.tag4 {
    font-size: 1.3em;
}

.removetag {
    color: white;
    text-decoration: none;
    border-left: thin solid white;
    padding: 2px 0px 2px 4px;
    margin-left: 2px;
}

.altrow {
    background-color: #F7F7F7;
}

table {
    border-collapse: collapse;
}

table.list {
    margin: 10px 0 10px 0;
}

table.list th {
    background-color: #F0F0F0;
    text-align: left;
    -moz-border-radius-topleft: 5px;
    -moz-border-radius-topright: 5px;
    font-family: sans-serif;
    font-size: 0.8em;
}

td, th {
    padding: 4px;
}

img.thumbnail {
    border: thin solid black;
}


.orderinput input {
    width: 3em;
}

#messages {
    background-color: #FFDD3F;
    margin: 2px 10% 2px 10%;
    padding: 3px;
    -moz-border-radius: 5px;
}

#messages li {
    list-style: none;
    text-align: center;
    font-weight: bolder;
    font-family: sans-serif;
    font-size: 0.8em;
}

#messages ul {
    padding: 0;
    margin: 0;
}