body {
	background-color: white;
}

/* hard-coding of sizes based on the logo size, and
   the desire to have a nice, big, fat search box.
*/
.header {
	margin: 2px;
	height: 85px;
}
.headerlogo {
	float: left;
}
.sidebar-search {
    background-color: #ffc;
    border: 1px solid #dda;
    border-radius: 4px;
    margin: -3px;
    padding: 8px 4px;
}
.sidebar-search form {
    margin: 0;
}
#search-results i {
    display: block;
    margin: 8px 0 0;
}
.search-result {
    margin: 6px 12px 0px;
}
.search-result strong {
    display: block;
}
.search-result div {
    font-size: 80%;
    padding-left: 12px;
}
.search-result a {
    color: #333;
    text-decoration: none;
}
.search-result strong a {
    color: #000;
}

.vizcontent {
}

#viz-header {
    background-color: #fff;
}

#viewer-collection {
    overflow: hidden;
    border: 1px solid #999;
    border-left: none;
    border-right: none;
    margin: 0px;
    position: fixed;
    left: 0;
    right: 0;
    top: 90px;  /* allow for taller (wrapping) main title? */
    bottom: 0px;  /* WAS 25px for minimal footer */
}
#viewer-collection,
#comments-panel .panel-edges,
#provenance-panel .panel-edges {
    background-color: #eee;
}
.vizcontent div.viewer-frame,
#comments-panel,
#provenance-panel {
    float: left;
    height: 100%;
    transition: 0.4s all ease; /* TODO: test using 4s */
}
.vizcontent div.viewer-frame {
	padding: 0px;
    background-color: #fff;
    overflow: auto;
}

/* set initial widths and margins for the sliding panels */
#comments-panel,
#provenance-panel {
    width: 50%;
}
#comments-panel {
    margin-left: -50%;
    margin-right: 0;
}
div.viewer-frame {
    width: 100%;  /* TODO: adapt to narrower window!? */
    margin-left: 0;
    margin-right: 0;
}
#provenance-panel {
    /* margin-right: -200%; */
    margin-left: 0;
    margin-right: -50%;
}

/* slide these using marker classes on #viewer-collection */
.active-comments #comments-panel {
    margin-left: 0;
    margin-right: 0;
}
.active-comments div.viewer-frame {
    width: 50%;  /* TODO: adapt to narrower window!? */
    margin-left: 0;
    margin-right: 0;
}
.active-comments #provenance-panel {
    margin-left: 0;
    margin-right: -100%;
}

.active-properties #comments-panel {
    margin-left: -50%;
    margin-right: 0;
}
.active-properties div.viewer-frame {
    width: 50%;
    margin-left: 0;
    margin-right: 0;
}
.active-properties #provenance-panel {
    margin-left: 0;
    margin-right: 0;
}

/* overrides for tablet-sized displays (matching Bootstrap media queries) */
@media (min-width: 768px) and (max-width: 979px) {
    /* actually, the rules above work well at tablet sizes as well */
}

/* overrides for phone-sized displays (matching Bootstrap media queries) */
@media (max-width: 767px) {
    /* set initial widths and margins for the sliding panels */
    #comments-panel,
    #provenance-panel {
        width: 90%;
    }
    #comments-panel {
        margin-left: -90%;
        margin-right: 0;
    }
    div.viewer-frame {
        width: 100%;
        margin-left: 0%;
        margin-right: 0;
    }
    #provenance-panel {
        margin-left: 0%;
        margin-right: -90%;
    }

    /* slide these using marker classes on #viewer-collection */
    .active-comments #comments-panel {
        margin-left: 0;
        margin-right: 0;
    }
    .active-comments div.viewer-frame {
        width: 100%;
        margin-left: 0;
        margin-right: -90%;
    }
    .active-comments #provenance-panel {
        margin-left: 90%;
        margin-right: -180%;
    }

    .active-properties #comments-panel {
        margin-left: -90%;
        margin-right: 0;
    }
    .active-properties div.viewer-frame {
        width: 100%;
        margin-left: -90%;
        margin-right: 0;
    }
    .active-properties #provenance-panel {
        margin-left: 0;
        margin-right: 0;
    }

    h1#main-title {
        font-size: 24px;
    }
}

#comments-hide,
#provenance-show,
#provenance-hide {
    text-decoration: none !important;
    font-family: Helvetica, Arial, serif;
    font-size: 0.9em;
    line-height: 1.4em;
    color: #555;
}

.zoom-widget a:hover {
    text-decoration: none;
}
.widget-prompt {
    font-size: 0.9em;
    color: #bbb;
    line-height: 1.5em;
    cursor: pointer;
}

#argus-controls .comments-indicator,
#argus-controls .properties-indicator {
    width: 25%;
}
#argus-controls .comments-indicator {
    text-align: left;
}
#argus-controls .properties-indicator {
    text-align: right;
}

#argus-controls span:hover .widget-prompt {
    color: #999;
}
#argus-controls span:hover .badge {
    background-color: #333;
}

#provenance-show {
    display: none;
    float: right;
    margin: -24px 22px -10px 0;
    padding: 2px 10px 8px;
    /* color: #555; */
    text-decoration: none;
    background-color: #eee;
    border: 1px solid #ccc;
    border-radius: 4px;
    border-radius-bottom: 0;
}

#comments-panel {
    overflow: auto;
}
#comments-panel .panel-content {
    /* isolating any style that might affect widths above */
    padding: 8px 12px;
}

#provenance-panel {
    /*
    overflow: visible;
    */
    overflow: auto;
}
#comments-panel .panel-edges {
    height: 100%;
    border-right: 1px solid #999;
}
#provenance-panel .panel-edges {
    height: 100%;
    border-left: 1px solid #999;
}
#provenance-panel .panel-content {
    /* isolating any style that might affect widths above */
    /* padding: 9px 0 0 12px; */
    padding: 8px 12px;
}
.panel-content {
}
.panel-controls {
    float: right;
    margin: -6px 0px 2px 2px;
    font-size: 20px;
}
.provenance-intro {
    font-size: 110%;
    color: #777;
}
.provenance-title {
    font-family: Helvetica, Arial, serif;
    font-size: 130%;
    color: #000;
}
#provenance-panel .provenance-title {
    margin-right: 65px; /* leave room for an PhyloPic image */
}
#provenance-panel .taxon-image {
    float: right;
    position: relative;
    margin-top: -23px;
    margin-right: 15px;
    width: 32px;
    height: 32px;
    background: url(/opentree/static/images/phylopic-vignette.png) center center no-repeat;
    padding: 2px;
}
#provenance-panel .ordered-sections {
    margin-top: 0.5em;
}
#provenance-panel .properties-section {
    border: 2px solid #bbb;
    border-radius: 5px;
    padding: 8px 6px 2px;
    margin: 1.3em 0;
    position: relative;
}
#provenance-panel .properties-section .section-title {
    font-size: 110%;
    font-weight: bold;
    color: #999;
    position: absolute;
    top: -0.8em;
    background-color: #eee;
    padding: 0 0.25em;
}
#provenance-panel .properties-section.selected {
    border: 2px solid #d33;
}
#provenance-panel .properties-section.selected .section-title {
    color: #d33;
}

.panel-content dl {
    margin: 6px 0 12px 8px;
}
.panel-content dl dt {
    color: #777;
}
.panel-content dl dd {
    margin-left: 12px;
    color: #000;
    margin-bottom: 4px;
}
a.full-ref-toggle {
    color: #999 !important;
    text-decoration: none;
}
a.full-ref-toggle:hover {
    color: #333 !important;
    text-decoration: underline;
}
.full-study-ref {
    background-color: #f3f3f3;
    padding: 3px 5px;
    font-size: 90%;
    margin-bottom: 4px;
}
.full-study-ref,
.compact-study-ref {
    /* font-weight: bold; */
}
.full-ref {
    background-color: #fff;
    border: 1px solid #eee;
    margin: 0px 12px 0px -6px;
    padding: 4px 6px;
}
.full-ref-curator {
    color: #777;
    display: none;
}

p#tree-description {
    color: #aaa;
    font-size: 135%;
    padding: 0.8em 0 26px 0;
    font-weight: bold;
    margin: 0;
}
h1#main-title {
    font-size: 32px;
    margin-bottom: 0;
    padding: 2px 0 5px;
    line-height: 1.2em;
}
h1#main-title .comments-indicator,
h1#main-title .properties-indicator {
    vertical-align: middle;
}

#comment-header {
    margin: 0;
    padding: 10px 0 0.5em;
}
#comment-header i {
    color: #999;
    padding: 0.75em 0 0.5em;
}
div#links-to-local-comments {
    margin: -6px 0 12px;
}
div#r0 {
    margin: 0 0 12px;
}

#node-provenance-panel {
    margin: 8px 0 0;
    background-color: #eee;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 9px 12px;
}
#node-provenance-panel h3 {
    margin: 0 0 0.5em;
}

/* center the big spinner inside the argus viewport */
#argusCanvasContainer #spinner {
    margin: 100px 0 0 200px;
}

#footer {
    font-size: 80%;
    border-top: 1px solid #ccc;
    overflow: hidden;
    padding: 0.5em 0 0.25em;
}
#footer  .pull-left{
    float: left;
}
#footer  .pull-right{
    float: right;
}
#screen-size-indicator {
    position: absolute;
    left: 0;
    top: 0;
    padding: 1px 6px;
    background: red;
    color: white;
}

div.flash {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    margin-bottom: 0;
    z-index: 11000;  /* above modal screens and popups */
}

div.flash #closeflash{color:inherit; float:right; margin-left:15px; cursor:pointer;}
.ie-lte7  div.flash #closeflash
{color:expression(this.parentNode.currentStyle['color']);float:none;position:absolute;right:4px;}

.criterion-score {
    float: right;
    color: #999;
}
.criterion-score-bar {
    height: 8px;
    margin-bottom: 4px;
}
.criterion-details {
    padding-top: 0px;
    padding-bottom: 5px;
    cursor: pointer;
}
.criterion-details ul {
    list-style-type: disc;
    margin-bottom: 5px;
}
.criterion-details ul li {
    line-height: 1em;
    padding: 0.25em 0;
}

.suggestion-list li {
    padding-bottom: 0.2em;
    color: #b94a48;
    list-style-position: inside;
}
.suggestion-list li.edit-prompt {
    list-style: none;
    list-style-position: outside;
}
.suggestion-list span.label {
    padding: 0.3em 0.7em 0.4em;
}
.suggestion-prompt {
    color: #b94a48;
}

.static-form-value {
    padding-top: 5px;
    margin-bottom: 5px;
    font-weight: bold;
}
.rendered-comment {
    background-color: #eee;
    border: none;
    border-radius: 4px;
    padding: 5px;
}
.interesting-value {
    color: #b94a48;
}
.boring-value {
    color: #999;
}
.wireframe {
    /*
    border: 1px dashed silver;
    background-color: #ffc;
     */
}
.featured-label {
    display: block !important;
}
.featured-label input[type="radio"] {
    vertical-align: baseline;
}
.featured-label input[type="radio"],
.featured-label input[type="checkbox"] {
    margin-top: 0px;
}
.featured-label-description {
    color: #999;
    font-style: italic;
}
.featured-label-description strong {
    color: #333;
}
.featured-label-child {
    padding: 6px 0 6px 20px;
}
.navbar-inner .pagination {
    margin: 0.5em 0 0;
}
.pagination-small ul > li > a.pagination-spacer {
    padding-left: 0;
    padding-right: 0;
    border-right-width: 0;
    background-color: #ddd;
}
.pagination-small ul > li > a.pagination-spacer:hover {
    background-color: #0088cc;
}

/* simplified table style with no headers */
table.bare-top-row tr:first-child td {
    border-top: none;
}

img.tool-icon {
    width: 100px;
    height: 100px;
    background-color: #f5f5f5;
    border-radius: 8px;
    /*
    border: 1px solid #ccc;
    */
}

.well .progress {
    /* darker style to stand out against well bg */
    background-color: #dddddd;
    background-image: -moz-linear-gradient(top, #dbdbdb, #dfdfdf);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#dbdbdb), to(#dfdfdf));
    background-image: -webkit-linear-gradient(top, #dbdbdb, #dfdfdf);
    background-image: -o-linear-gradient(top, #dbdbdb, #dfdfdf);
    background-image: linear-gradient(to bottom, #dbdbdb, #dfdfdf);
    background-repeat: repeat-x;
}

/*
tr .row-controls-ghosted,
tr .row-controls-ghosted.btn[disabled]
{
    opacity: 0.3;
}
tr:hover .row-controls-ghosted {
    opacity: 1.0;
}
tr:hover .row-controls-ghosted.btn[disabled] {
    opacity: 0.65;
}
*/
.btn.disabled, .btn[disabled] {
    opacity: 0.5;
}
.mapping-needs-attention {
    background-color: #ddf5ff;
    border-color: #bbddee;
}
.mapping-details p {
    margin: 0.75em 0 0.75em;
}
.mapping-batch-operations {
    margin: 0.75em 0 0;
    overflow: hidden;
}
#OTU-Mapping .btn-mini [class="icon-ok"] {
    opacity: 0;
}
#OTU-Mapping .btn-mini:hover [class="icon-ok"] {
    opacity: 0.5;
}
.clear-search {
    opacity: 0.5;
    margin-top: 2px;
    margin-left: -24px;
    cursor: pointer;
}
.clear-search:hover {
    opacity: 1.0;
}
.help-box,
.help-toggle,
.empty-list-prompt {
    padding: 0.5em 1em;
    background-color: #ffeedd;
    font-style: italic;
    border-radius: 4px;
}
.help-box {
    margin-bottom: 1em;
}
.help-box .btn {
    font-style: normal;
}
.help-toggle {
    float: right;
    /* font-weight: bold; */
    /* font-style: normal; */
    color: #333;
    border: 1px solid #db8;
    padding: 4px 8px 4px 10px;
    border-radius: 4px;
    margin: 0px;
    margin-bottom: 1em;
}
.help-toggle:hover {
    background-color: #eca;
}
.help-box .help-toggle {
    /* inner "Hide" toggle */
    margin: -5px -12px 4px 8px;
}

/* modal event blocker */
#modal-screen-message {
    padding: 12px;
    text-align: center;
    font-size: 1.6em;
    color: #888;
}

/* DOI lookup window */
.before-matches {
    margin-top: -6px;
}
.current-ref-values {
    background-color: #eee;
    margin: 0px -4px 2px;
    padding: 6px 8px;
    border-radius: 8px;
    margin-bottom: 2px;
}
.current-ref-values strong {
    color: #555;
}
.found-matches {
    border: 1px solid #ddd;
    margin: 0px -4px;
    padding-left: 6px;
    padding-right: 6px;
    max-height: 365px;
    overflow-y: auto;
}
.found-matches .match {
    border-bottom: 1px solid #ddd;
    padding-top: 0.5em;
    padding-bottom: 1em;
}
.found-matches .match:last-child {
    border-bottom: none;
}
.found-matches .doi {
    font-weight: bold;
    margin: 0.5em 0;
}

/* Wrap long lines in pre-formatted commit messages (History tab).
 * Adapted from http://css-tricks.com/snippets/css/make-pre-text-wrap/
 */
#History pre {
/*
    border: 0px solid transparent;
    background-color: transparent;
    padding: 0px;
*/
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    webkit-box-sizing: border-box;
    display: block;
    white-space: pre-wrap;
    white-space: -moz-pre-wrap;
    white-space: -pre-wrap;
    white-space: -o-pre-wrap;
    word-wrap: break-word;
    word-break: break-word;
    width: 100%;
    margin-left: -5px;
    overflow-x: auto;
}

#tree-viewer {
    width: 90%;
    margin: auto -45%;
}
#tree-viewer .modal-body {
    height: 75%;
    margin-left: 8px;
}
#tree-viewer .modal-body svg {
    /* try to make this offsetParent to all its contents */
    position: relative;
}
body.printing-tree-view * {
    display: none;
}
body.printing-tree-view svg,
body.printing-tree-view svg * {
    display: block;
    background-color: #fff !important;
    position: absolute;
    z-index: 1000000 !important;
    top: 50px;
    left: 0;
    /* border: 1px red solid; */
}
body.printing-tree-view #tree-title,
body.printing-tree-view #tree-title * {
    display: block;
    position: absolute;
    z-index: 1000000 !important;
    top: 0px;
    left: 0;
    background-color: #fff !important;
    margin: 0;
    border: 4px solid #fff;
    width: 100%;
}


#tree-properties .bootstrap-tagsinput {
    margin-bottom: 0px;
}
#tree-legend {
    background-color: #f5f5f5;
    border-radius: 6px;
    padding: 8px;
}
#tree-legend table {
    width: 100%;
}
#tree-legend table td {
    height: 38px;
    padding: 4px;
}
#server-details {
    display: none;
    clear: both;
    margin: 4px 0;
    background-color: #f5f5f5;
    padding: 6px 8px;
    border-radius: 8px;
}
#server-details .shard-name,
#server-details .setting-name {
    color: #888;
}
/* Warning banners appear when using DEVELOPMENT, STAGING servers */
.ribbon-banner, .ribbon-banner-details {
    position: absolute;
    -webkit-transform: rotate(-45deg);
    -moz-transform:    rotate(-45deg);
    -ms-transform:     rotate(-45deg);
    transform:         rotate(-45deg);
    z-index: 500;
    cursor: pointer;
}
.ribbon-banner {
    display: block;
    top: 40px;
    left: -90px;
    width: 300px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    opacity: 0.7;
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    background-color: #c00;
    border: 1px solid white;
}
.ribbon-banner-details {
    display: none;
    top: 58px;
    left: -100px;
    text-align: center;
    font-size: 14px;
    line-height: 1.25em;
    color: #600;
    background-color: white;
    width: 400px;
    padding: 2px 0 4px;
    border-bottom: 1px solid #ddd;
    margin: 0px auto;
}

.needs-attention {
    background-color: #fdd;
    padding: 4px;
    margin: -4px;
    border-radius: 4px;
}
div.structure-only {
    padding: 0;
    margin: 0;
}
ul.mapping-options {
    list-style: none;
    margin: 0 0 8px 0;
    position: relative; /* choices should float above right sidebar */
}
ul.mapping-options li {
    padding: 2px 0;
}
ul.mapping-options li .key-note {
    color: #777;
    float: right;
    width: 50%;
}
ul.mapping-options li a:hover {
    opacity: 1.0 !important;
    -webkit-box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.5);
    -moz-box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.5);
    box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.5);
}

tr.table-shims td {
    height: 0;
    padding-top: 0;
    padding-bottom: 0;
}
tr.after-shims th {
    border-top: 0;
}
.collection-actions {
    position: relative;
    top: -8px;
}
.collection-move-panel {
    position: absolute;
    margin-left: 2px;
    z-index: 1;
    border-radius: 5px;
    background-color: #fff;
    -webkit-box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.5);
    -moz-box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.5);
    box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.5);
}
.collection-move-panel button {
    opacity: 1.0;
}

.form-horizontal.metadata-readonly .control-group {
  margin-bottom: 12px;
}
#core-metadata-pane {
  border-radius: 5px;
  border: 1px #ddd solid;
  overflow: hidden;
  margin-bottom: 14px;
  padding: 12px 18px;
  box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.5);
}

.profile-header .control-group > .control-label,
.profile-header .control-group > .controls {
    margin-top: -8px;
}

/* Prepend search icon in the input field */
.navbar-search .left-inner-addon {
    position: relative;
    display: inline-block;
}
.navbar-search .left-inner-addon .search-query {
    padding-left: 24px;
}
.navbar-search .left-inner-addon .search-query:focus,
.navbar-search .left-inner-addon .search-query.focused {
    padding-left: 25px;
}
.navbar-search .left-inner-addon i {
    position: absolute;
    top: 7px;
    left: 8px;
    pointer-events: none;
}
.alert pre.error-details {
    /* manage very large server responses in footer */
    overflow: scroll;
    max-height: 400px;
}

/* styles for conflict and other analyses */
.conflict-report-node-list {
	  display: none;
		margin-left: 4em;
}

#study-metadata-popup {
    width: 80%;
    margin: auto -40%;
}

#new-taxa-popup {
    width: 80%;
    margin: auto -40%;
}
#new-taxa-popup .modal-body {
    max-height: 520px;
}
#new-taxa-popup .form-horizontal .control-group {
    margin-bottom: 10px;
}

#new-taxa-popup .form-horizontal .control-label {
    width: 148px;
}
#new-taxa-popup .form-horizontal .controls {
    margin-left: 140px;
}

.required-field {
 /* border-color: red !important; */
}
.required-field-marker {
    color: red !important;
}

a.node-direct-link {
    float: right;
    padding: 1px 4px !important;
    margin-top: -4px;
    margin-right: -16px;
    border-radius: 4px;
}
.tree-status-marker {
    font-weight: bold;
    margin: 4px 0 0 2px;
}
