/* 
    Document   : search
    Created on : Feb 10, 2011, 4:23:15 PM
    Author     : "Nick dos Remedios <Nick.dosRemedios@csiro.au>"
    Description:
        Purpose of the stylesheet follows.
*/

/* 
   TODO customize this sample style
   Syntax recommendation http://www.w3.org/TR/REC-CSS2/
*/

#main-content {
    margin-top: -10px;
}

form {
    margin-bottom: 0;
}

.searchInfo {
    margin: 15px 0;
    font-size: 14px;
}

#facetWell {
    /*margin-top: 10px;*/
}

#loginId {
    display: none;
    margin-right: 10px;
}

/* Next 2 styles are to get customise button to stay just above the facets column */
#searchInfoRow {
    position: relative;
}

#searchInfoRow .span3 {
    /*position:absolute;*/
    bottom:0;
    left:0;
}

#searchInfoRow > div {
    margin-top: 10px;
    margin-bottom: 10px;
}

#customiseFacetsButton {
    padding-top: 2px;
}

#customiseFacetsButton h4 {
    font-size: 16px;
}

#customiseFacetsButton .dropdown-menu {
    padding: 5px 10px 10px 15px;
}

#main-content #customiseFacetsButton .dropdown-menu {
    background-color: #fffef7;
}

#resultsReturned .dropdown-menu {
    padding: 10px 12px;
    background-color: #fffef7;
    width: 400px;
    white-space:normal;
    font-weight: normal;
    font-size: 12px;
}

#resultsReturned > span {
    vertical-align:middle;
}

#returnedText {
    display: inline-block;
    /*padding-top: 2px;*/
}

.rawTaxaList {
    margin-top: 5px;
}

.rawTaxaList input[type="checkbox"] {
    margin: 0px;
}

.rawTaxonSumbit {
    display: inline-block;
    float: right;
    margin-top: 5px;
}

.overrideHide {
    display: block !important;
}

#content ul.nav-tabs {
    list-style: none;
    margin-left: 0;
}

.nav-tabs > li > a {
    padding-top: 6px;
    padding-bottom: 6px;
}

#facetWell h3 {
    margin: 0;
    margin-bottom: 10px;
    line-height: normal;
}

#facetWell .sidebar h4 {
    font-size: 13px;
    padding: 0;
    margin: 2px 0;
}

#updateFacetOptions {
    font-weight: bold;
}

#listHeader {
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
    /*margin-left: 30px;*/
    /*padding-left: 0px;*/
    /*height: 40px;*/
}
#listHeader h1 {
    border: none;
    margin: 20px 0 5px 0;
    padding: 0;
    font-size: 26px;
}
/*#listHeader h1 {*/
    /*width: 40%;*/
    /*float: left;*/
    /*height: 32px;*/
/*}*/

/*#headingBar > #searchBox {*/
    /*margin: 0;*/
    /*padding:0;*/
    /*width: 60%;*/
    /*float: left;*/
    /*height: 36px;*/
    /*text-align: right;*/
/*}*/

/*#searchBox > #searchLabel { */
    /*display:inline-block;*/
    /*padding-top:0px; */
/*}*/

#advancedSearchLink {
    /*display: block;*/
    padding: 0;
/*    margin: 0;*/
    margin-bottom: 0;
    margin-right: 10px;
    font-size: 11px;
}
*+html #advancedSearchLink {
    display: block;
    padding: 0;
    margin-right: 80px;
    margin-bottom: -6px;
}

#advancedSearchLink a {
    font-size: 10px;
}
#advancedSearchLink > a {
    font-size: 11px; 
}
#solrSearchForm input {
    margin: 0;
}
#solrSearchForm > input#taxaQuery {
    display: inline-block;
    margin-top: 2px;
    font-size: 13px;
    min-height: 20px;
    height: 30px;
    /*width: 440px;*/
}
#solrSearchForm > input#solrSubmit {
    display: inline-block;
    font-size: 13px;
    margin: 3px 6px;
}

.nav-tabs li a {
    background-color: #f0f0e8;
    border: 1px solid #ddd;
    margin-right: 4px;
}

.tabbable .nav-tabs {
    margin-top: 0;
    margin-bottom: 0;
}

.tab-content {
    border-bottom: 1px solid #DDD;
    border-right: 1px solid #DDD;
    border-left: 1px solid #DDD;
    padding: 15px;
}

#listMapToggle {
    margin-top: 2px;
}

#listMapToggle {
    float: right;
}

#listMapToggle > label {

}
.subnavlist > ul {
    margin-left: 7px;
    clear: left;
    /*padding-left: 24px;*/
}

#content .sidebar .subnavlist > ul {
    list-style: none;
    /*list-style-image:url('images/checkbox-unchecked.png');*/
    margin-left: -4px;
    /*max-height: 6.4em;*/
    /*overflow: -moz-scrollbars-vertical;*/
    /*overflow-y: auto; *//*for vertical scroll bar*/
}

#content .sidebar .subnavlist > ul#refinedFacets {
    list-style: none;
    margin: 5px 0 5px 0px;
}

.nano { max-height: 6.5em; }
/*.nano .nano-content { padding: 10px; }*/
.nano .nano-pane   { background: #AAA; }
.nano .nano-slider { background: #333; }

/* Always show scrollbar on Mac browsers */
/*
::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 7px;
}
::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: rgba(0,0,0,.5);
    -webkit-box-shadow: 0 0 1px rgba(255,255,255,.5);
}
*/

ul#refinedFacets li {
    text-indent: -3px;
    margin-left: 7px;
}

.subnavlist > ul > li {
    text-indent: -2px;
    text-transform: none;
    line-height: 1.3em;
    margin-top: 4px;
    margin-bottom: 4px;
}

.sidebar > .subnavlist > ul li {
    margin-left: 14px;
}

.sidebar li {
    text-indent: -5px;
    margin-left: 8px;
    /*border: none;
    padding: 2px 3px;
    margin: 2px 10px;*/
}

/** following block is not used - mark for removal */
span.checkbox-unchecked, span.checkbox-checked {
    /*float: left;*/
    vertical-align: top;
    display: inline-block;
    height: 11px;
    margin-right: 5px;
    margin-top: 2px;
    width: 11px;
}

span.checkbox-unchecked {
    background: url('images/checkbox-unchecked.png') no-repeat left top;
}

span.checkbox-checked {
    background: url('images/checkbox-checked.png') no-repeat left top;
}
/* end unused block */

a span.fa-square-o, a span.fa-check-square-o {
    /*color: #ffffff;*/
    /*-webkit-text-stroke-width: 1px;*/
    /*-webkit-text-stroke-color: #5f5d60;*/
    font-size: 13px;
}

a:hover span.fa-square-o, a:hover span.fa-check-square-o {
    /*color: #C44D34;*/
}

span.activeFq, span.facet-item {
    /*float: left;*/
    vertical-align: top;
    display: inline-block;
    width: 90%;
    margin-left: -4px;
    text-indent: 0px;
    /*font-weight: bold;*/
}

div#currentFilter {
    /*border: 1px solid #bbb;*/
    /*background-color: #F0F0E8;*/
    /*-moz-border-radius: 5px;*/
    /*-webkit-border-radius: 5px;*/
    /*-khtml-border-radius: 5px;*/
    /*border-radius: 5px;*/
    margin-left: -2px;
    margin-right: 4px;
    margin-bottom: 10px;
    /*margin-top: 2px;*/
    padding-left: 5px;
}
#currentFilter h4 {
/*    color: #1775BA;*/
}
.removeLink {
    font-family: sans-serif;
    font-weight: bold;
    text-decoration: none;
    line-height: 18px;
    padding: 0 4px;
}
#refine-results h3 strong {
    font-weight: bold;
    font-size: 130%;
}
/*#content2 #resultsReturned {*/
    /*font-size: 110%;*/
    /*padding: 5px 5px 5px 4px;*/
    /*margin: 5px 0 10px -20px;*/
    /*height: 20px;*/
/*}*/

#resultsReturned {
    /*margin-left: -30px; */ /* Fix for absolutely positioned customise button to the left */
    font-size: 16px;
}

#resultsReturned .btn-small, #submitFacets .btn-small {
    font-size: 13px;
}
#results {
    border-bottom: none;
    width: 100%;
    padding: 0 10px 0 0;
}
#results .rowA {
    color: #555;
    margin-top: 4px;
    font-weight: bold;
}
#results .resultValue {
    color: #222;
    text-transform:capitalize;
    font-weight:500
}
#results .rowA .occurrenceNames {
    color: #222;
}
#results .rowB {
    font-size: 12px;
    color: #222;
    padding-bottom: 4px;
    border-bottom: 1px solid silver;
    margin-bottom: 0;
}
.rowB span {
    padding-right: 4px;
}
.resultsLabel {
    font-weight: normal;
    color: #555;
}
.resultsValue {
    font-weight: bold;
    margin-right: 12px;
}

#searchControls {
/*    background-color: #E0E0E0;
    border-top: 2px solid silver;*/
    border-bottom: 1px solid silver;
    margin-bottom: 6px;
    padding: 2px 0 10px 0;
    min-height: 22px;
}

#results {
    clear: both;
}
#downloads a, #alerts a, #mapView .btn a, #customiseFacetsButton > .btn {
    font-size: 12px;
    font-weight: bold;
    color: inherit;
}

#downloads a.newDownload {
    font-size: 14px;
    font-weight: normal;
    padding-left: 6px;
    padding-right: 9px;
}
#downloads a:hover, #alerts a:hover, #mapView .btn a:hover {
    text-decoration: none;
}

#sortWidgets {
    text-align: right;
    padding-top: 4px;
    /*float: right;*/
    /*width: 75%;*/
}

#sortWidgets select, #mapLayerControls select {
    padding:0;
}
#searchNavBar {
    text-align: center;
    margin-top: 15px;
}
#navLinks {
    text-align: center;
    width: 80%;
    margin: auto;
    padding: 10px 5px;
}
/*#searchNavBar ul {*/
    /*display: inline-block;*/
/*}*/
/*#searchNavBar ul li {*/
    /*display: inline;*/
    /*list-style: none;*/
    /*font-size: 14px;*/
/*}*/
/*#searchNavBar ul li a, #searchNavBar ul li.currentPage, #searchNavBar ul li#prevPage {*/
    /* border: 1px solid #01716E; */
    /*display: inline-block;*/
    /*float: left;*/
    /*margin: 0px 5px 0px 0px;*/
    /*padding: 0px 5px;*/
    /*text-decoration: none;*/
/*}*/
/*li.currentPage {*/
    /*font-size: 110%;*/
    /*font-weight: bold;*/
    /*color: #DD3102;*/
/*}*/
/*#searchNavBar li a {*/
    /*color:#005A8E;*/
    /*text-decoration:none;*/
    /*font-size: 14px;*/
/*}*/
/*#searchNavBar li a:hover  {*/
    /*color:#6DB71D;*/
    /*text-decoration:none;*/
/*}*/
div.recordHeader {
    margin-left: 30px;
    margin-bottom: 20px;
    padding-left: 0 !important;
    border-bottom: 2px solid gray;
}
#listMapToggle{
    display: inline-block;
    float: right;
    padding-left: 10px;
    text-align: right;
}
#resultsOuter {
    position: relative;
    overflow: hidden;
    width: 730px;
}
#resultsOuter div.solrResults {
/*  position: absolute;
  left: 0;
  top: 0;*/
  width: 730px;
}

#resultsOuter div#mapwrapper {
/*    position: absolute;
    left: 730px;
    top: 0;*/
    width: 730px;
    /*display:none;*/
}
.sidebar .showHide {
    margin: -2px 0 0 0;
    line-height: 1.4em;
    padding: 0;
}
.showHide a:link, .showHide a:visited  {
    /*color: #005A8E;*/
    font-size: 11px;
    font-weight: normal; /* was bold */
    text-decoration: none;
}
.showHide i.icon-hand-right {
    opacity: 0.7;
    filter: alpha(opacity=70);
}

div#advancedSearch {
    margin-left: 30px;
    margin-bottom: 20px;
}
.sidebar #customiseFacets {
    display: block;
    float: left;
    text-align: left;
    padding: 2px 7px 1px 5px;
    margin: 7px 0px 8px -2px;
    border: 1px solid #BBBBBB;
    background-color: #F0F0E8;
    font-weight: bold;
}

.sidebar #customiseFacets a {
    font-size: 13px;
}

#facetOptions {
    position: absolute;
    left: -9999px;
    padding: 0px 8px 10px 8px;
    margin: 4px 10px;
    border: 1px solid #BBBBBB;
    background-color: #F0F0E8;
    z-index: 500;
    width: 700px;
}

#facetCheckboxes {
    margin-top: 4px;
    margin-bottom: 8px;
}

div.facetsColumn {
    float: left;
    width: 230px;
    padding: 4px 0;
}

#queryGuid {
    display:none;
}

/*.refineTaxaSearch {*/
    /*position: absolute;*/
    /*top: -9999px;*/
    /*width: 500px;*/
    /*z-index: 501;*/
    /*background-color: #f0f0e8;*/
    /*border: 1px solid #BBBBBB;*/
    /*padding: 10px;*/
    /*margin-top: 0;*/
/*}*/

span.queryDisplay {
    /*font-weight: bold;*/
    display: inline-block;
}

span.queryDisplay a:hover {
    text-decoration: none;
}

.searchError .queryDisplay {
    font-weight: bold;
}

.dropDown {
    display: inline-block;
/*    float: left;*/
    text-align: left;
    padding: 2px 5px;
    /*margin: 4px 0px;*/
    background-color: #F0F0E8;
    border: 1px solid #BBBBBB;
}

.buttonDiv {
    display: inline-block;
    float: left;
    text-align: left;
    font-weight: bold;
    padding: 2px 5px;
    margin-top: -1px;
    margin-bottom: 3px;
    margin-right: 5px;
    background-color: #FFF;
    border: 1px solid #BBBBBB;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    -khtml-border-radius: 5px;
    border-radius: 5px;
}

.buttonDiv a {
    text-decoration: none
}

div.centered {
    float: none;
    margin: 10px auto;
    background-color: #DDD;
}

#customiseFacets a::after, .dropDown::after {
    width: 7px;
    height: 7px;
    display: inline-block;
    background: transparent url(../images/sprite-icons.png) no-repeat scroll -111px -68px;
    content: "&darr;";
    text-indent: -99999px;
    vertical-align: top;
    margin-top: 8px;
    margin-left: 5px;
}

.plain {
    font-weight: normal;
    color: #444444;
}

#mapLayerControls {
    border-bottom: none;
    /*margin-bottom: 6px;*/
    width: 100%;
}

#mapLayerControls label {
    display: inline-block;
}

#mapLayerControls .layerControls, #mapLayerControls #sizeslider {
    display: inline-block;
    float: none;
}

#mapLayerControls  .slider-val {
    padding-right: 10px;
    padding-left: 4px;
}

/* Collection charts */
.link {
    color: #01716E;
    cursor: pointer;
}
.under {
    text-decoration: underline;
}

/*
#imagesGrid {
    margin: 10px 2px;
}

#imagesGrid ul {
    list-style: none;
    margin-left: 0;
}

#imagesGrid ul li {
    display: inline-block;
    padding: 0 3px;
}*/
#imagesWrapper h3, #imagesWrapper p, #speciesWrapper h3, #loadingSpecies, #speciesGalleryControls {
    margin-left: 14px;
}
#imagesGrid, #speciesGallery {
    padding-bottom:10px;
}
/*#imagesGrid img, #speciesGallery img {*/
/*    float:left;*/
    /*display: inline-block;*/
    /*height:100px;*/
    /*margin:5px;*/
    /*padding:0px;*/
/*}*/
#ibox {
    position:absolute;
    overflow-y: hidden;
    background:#F0F0E8;
    border:1px solid #ccc;
    z-index:1001;
    display:none;
    padding:4px;
    text-align: center;
    -webkit-box-shadow: 0px 0px 6px 0px #bbb;
    -moz-box-shadow: 0px 0px 6px 0px #bbb;
    box-shadow: 0px 0px 6px 0px #bbb;
}
#ibox img {
    border:1px solid #444;
}
#ibox br {
    clear:both;
}
.resultListItem {
    text-transform: capitalize;
    white-space: nowrap;
}

table.avhRowB {
    width: 100%;
    border-bottom: 1px solid silver;
    margin: 2px 0 4px 0;
}
table.avhRowB td {
    padding: 2px 0;
}

table.avhRowB td:first-child {
    width: 50%;
}
table.avhRowB td {
    /*width: 40%;*/
}
table.avhRowB  td.viewRecord {
    text-align: right;
}
span.FieldName {
    font-weight: bold;
    float:left;
}
img.optionsIcon {
    vertical-align: middle;
    float: left;
    padding:0 0 2px 5px;
}

#multipleFacets  {
    text-align: center;
}

#multipleFacets #dynamic {
    text-align: center;
    margin: 0 auto;
}

.facetGroupName {
    /*margin-left: -10px;*/
    /*margin-right: -10px;*/
    /*margin-top: 5px;*/
    margin: 5px -10px 0 -10px;
    padding: 8px 10px 3px 10px;
    border-top: 1px solid silver;
    font-weight: bold;
    font-size: 14px;
}

.facetsGroup {
    margin-left: 2px;
    margin-bottom: 10px;
}

.facetsGroup  h4 {
    margin-top: 0;
}

#facetWell .caret {
    margin-top: 8px;
    margin-left: -2px;
    margin-right: 2px;
}

#facetWell .right-caret {
    margin-top: 6px;
    margin-left: 0px;
    margin-right: 0px;
}

.right-caret, .facetGroupName .right-caret {
    border-bottom: 4px solid transparent;
    border-top: 4px solid transparent;
    border-left: 4px solid #000000;
    display: inline-block;
    height: 0;
    /*opacity: 0.3;*/
    vertical-align: top;
    width: 0;
}

.facetGroupName > .showHideFacetGroup, .facetGroupName > .showHideFacetGroup:hover {
    text-decoration: none;
}

.fadeout {
    position: relative;
    bottom: 1em;
    height: 1em;
    background: -webkit-linear-gradient(
        rgba(236, 237, 226, 0) 0%,
        rgba(236, 237, 226, 1) 100%
    );
    background-image: -moz-linear-gradient(
        rgba(236, 237, 226, 0) 0%,
        rgba(236, 237, 226, 1) 100%
    );
    background-image: -o-linear-gradient(
        rgba(236, 237, 226, 0) 0%,
        rgba(236, 237, 226, 1) 100%
    );
    background-image: linear-gradient(
        rgba(236, 237, 226, 0) 0%,
        rgba(236, 237, 226, 1) 100%
    );
    background-image: -ms-linear-gradient(
        rgba(236, 237, 226, 0) 0%,
        rgba(236, 237, 226, 1) 100%
    );
}

table#fullFacets thead th {
    border-bottom: 1px solid #D9D9D9;
}

ul#refinedFacets b {
    font-weight: normal;
}

.hidden {
    display: none;
}

tr#loadMore td {
    text-align: center;
}

div#submitFacets {
    padding-top: 10px;
}

tr#loadingRow td {
    width: 490px;
}

div#content div#envLegend {
    padding-top: 5px;
    line-height: 2em;
}

span.red {
    color:red;
}

.row-fluid .dropdown-menu {
    z-index: 2000;
}

.activeFilters {
    margin-top: 5px;
    font-size: 14px;
    line-height: 2.0em;
}

.activeFilters .btn {
    font-size: 13px;
}

.closeX {
    font-size: 15px;
    font-weight: bold;
    display: inline-block;
    padding: 0 2px;
}

.excludeFq {
    font-weight: bold;
}

.multiRecordHeader {
    font-weight: bold;
    min-width: 260px;
}

.recordSummary {
    min-width: 260px;
}

.recordLink, .multiRecordFooter {
    width: 50%;
    margin-top: 5px;
}

.multiRecordFooter {
    float: right;
    text-align: right;
}

.leaflet-popup-content .btn-mini {
    font-size: 12px;
    font-weight: bold;
}

.leaflet-bottom.leaflet-left .leaflet-control-coordinates {
    margin-bottom: 5px;
    margin-left: 70px; /* to avoid Google logo */
}

#leafletMap .leaflet-control > div.uiElement.label {
    font-size: 12px;
    font-weight: normal;
    margin: 0;
}

/* Gallery styling */
.imgCon {
    display: inline-block;
    /* margin-right: 8px; */
    text-align: center;
    line-height: 1.3em;
    background-color: #DDD;
    color: #DDD;
    font-size: 12px;
    /*text-shadow: 2px 2px 6px rgba(255, 255, 255, 1);*/
    /* padding: 5px; */
    /* margin-bottom: 8px; */
    margin: 2px 4px 2px 0;
    position: relative;
}
.imgCon img {
    height: 170px;
    min-width: 150px;
}
.imgCon .meta {
    opacity: 0.8;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    overflow: hidden;
    text-align: left;
    padding: 4px 5px 2px 5px;
}
.imgCon .brief {
    color: black;
    background-color: white;
}
.imgCon .detail {
    color: white;
    background-color: black;
    opacity: 0.7;
}

#imageDialog.modal{
    width: 90%; /* desired relative width */
    min-height:80%;
    left: 5%; /* (100%-width)/2 */
    margin: auto auto auto auto; /* place center */}

#imageDialog .modal-body{overflow-y: hidden;position:static;top:50px;bottom:50px;right:0px;left:0px; max-height:90%;}

#imageDialog .modal-footer {position: absolute;bottom: 0;right: 0;left: 0;}