/* =============================================================================
   App specific CSS file.
   ========================================================================== */

/* universal */

html {
  overflow-y: scroll;
}

body {
  padding-top: 60px;
  /*font-size: inherit;*/
}

section {
  overflow: auto;
}

textarea {
  resize: vertical;
}

.container-narrow{
  margin: 0 auto;
  max-width: 700px;
}

/* Forms */

.navbar-form input[type="text"],
.navbar-form input[type="password"] {
  width: 180px;
}

.breadcrumb > li + li:before {
    padding: 0;
    content: "/";
}


.form-register {
  width: 50%;
}

.form-register .form-control {
  position: relative;
  font-size: 16px;
  height: auto;
  padding: 10px;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}

.input-xs {
  height: 24px;
  padding: 3px 5px 2px;
  font-size: 10px;
  line-height: 1.5;
  border-radius: 3px;
}

.well-xs {
    padding: 2px;
    border-radius: 1px;
}

.dropdown-header {
    background: #eee;
    color: #333;
    font-weight: bold;
    text-align: center;
    padding: 5px 20px;
}

.dropdown-menu .dropdown-item-selected {
    text-align: right;
}
.dropdown-menu .dropdown-item-selected * {
    font-weight: bold;
}


/* footer */

footer {
  margin-top: 45px;
  padding-top: 5px;
  border-top: 1px solid #eaeaea;
  color: #999999;
}

footer a {
  color: #999999;
}

footer p {
  float: right;
  margin-right: 25px;
}

footer ul {
  list-style: none;
}

footer ul li {
  float: left;
  margin-left: 10px;
}

footer .company {
  float: left;
  margin-left: 25px;
}

footer .footer-nav {
  float: right;
  margin-right: 25px;
  list-style: none;
}

/* Overrides */

.no-thumbnail-caption .caption {
    display: none;
}

abbr nobr {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pagination .disabled .ellipsis { font-size: .8em; line-height: 1.9; }

/* ZINC ELEMENT STYLES */
.zinc-tile.thumbnail .caption {
    padding: 0;
    text-align: center;
}

.thumbnail > .caption > img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

.zinc-tile h1 { margin: 0; }

.zinc-tile.annotation {
    display: block;
}

.zinc-tile .name {
    color: black;
}

.zinc-catalog.thumbnail {
    border: none;
}

.zinc-catalog-label .image-wrapper {
    height: 100px;
    text-align: center;
    max-width: 150px;
    display: block;
    vertical-align: middle;
    line-height: 100px;
}

.zinc-catalog-label .image-wrapper img {
    max-width: 100%;
    max-height: 100px;
}

.zinc-catalog.thumbnail .caption .zinc-catalog-label .text {
    height: 3em;
    display: inline-block;
    text-overflow: ellipsis;
    overflow-y: hidden;
}

.btn-no-border { border: none; }
.btn-group.btn-no-border .btn { border: none; }
.btn-group-no-wrap { white-space: nowrap; }

.dl-wrap > dt { white-space: normal; text-align: left; }
.dl-delimited > dd > * { margin: 2px 0; }
.dl-delimited > * { border-top: 1px solid #ddd; }

.dl-delimited > dt:first-child { border-top: none; }
.dl-delimited > dt:first-child + dd { border-top: none; }

.dl-inline > dd {
    display: inline;
}


.list-inline-delimited > li:after { content: ", "; }
.list-inline-delimited > li:last-child::after { content: ""; }

.panel-default { border: none; }
.panel-default > .panel-heading { margin: 0; }

.panel-scrollable { margin-bottom: 10px; }
.panel-scrollable > :first-child + * {
    max-height: 350px;
    overflow-y: auto;
}

.panel > .alert { border-radius: 0; }

.table {
    max-width: none;
    table-layout: fixed;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.table .th-btn {
    padding: 0;
    text-align: right;
    vertical-align: middle;
}

.table .th-btn .btn-block {
    padding: 0;
    margin: 0;
    display: flex;
    height: 100%;
    width: 100%;
    line-height: 3em;
    border:none;
    border-radius: 0;
}

.table-numeric td, .table-numeric th, td.numeric, th.numeric {
    text-align: center;
    vertical-align: top;
}
.table .units { display: block; }

.input-group-filter :last-child { border-right: none; border-radius: 0; }
.input-group-filter :first-child { border-radius: 0; }
.input-group-filter > * { border-top: none; }

.collapse-inputgroups .input-group {
    padding-top: 0;
    padding-bottom: 0;
}

.collapse-inputgroups .input-group * {
    border-radius: 0;
}

.collapse-inputgroups .input-group > * {
    border-top: 0;
}

.collapse-inputgroups .input-group > :first-child {
    border: 1px solid #cccccc;
}

@media (max-width: 650px) {
    .zinc-tile.thumbnail .caption {
        font-size: larger;
    }
}

@media (min-width: 1600px) and (max-width: 1800px) {
    .zinc-tile.thumbnail .caption {
        font-size: small;
    }
}

.vertical-text {
    position: absolute;
    right: -30%;
}

.vertical-text-down {
     -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    -o-transform: rotate(90deg);
    transform: rotate(90deg);
    color: #000;
    font-size: 22px;
    height: 200px;
    width: 200px;
    float: left;
    vertical-align:top;
}

.vertical-text-up {

}

.table > tbody > tr > th.vertical-header {
    vertical-align: middle;
    position: relative;
    width: 1.2em;
}

.table > tbody > tr > th.vertical-header > :first-child {
    -webkit-transform: rotate(-90deg);
    -moz-transform: rotate(-90deg);
    -ms-transform: rotate(-90deg);
    -o-transform: rotate(-90deg);
    transform: rotate(-90deg);
    text-align: center;
    display: inline-block;
}

.tranche-table > tbody tr > th {
    text-align: center;
    vertical-align: middle;
}

.tranche-table > tbody > tr.tranche-row > td, .table > tbody > tr.tranche-row > th {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    vertical-align: middle;
    text-align: center;
}

.tranche-table > tbody > tr > td.tranche-download-cell, .table > tbody > tr > td.tranche-download-tally {
    margin: 0;
    padding: 0;
    width: 10em;
}

.table > tbody > tr:last-child > td.tranche-download-tally.total-tally:last-child {
    padding: 5px;
    overflow-wrap: normal;
    text-wrap: avoid;
    border-top-width: 1px;
    border-left-width: 1px;
}

.table > tbody > tr > td.tranche-download-tally:last-child, .table > thead > tr > th:last-child {
    border-left-width: 2px;
}

.table > tbody > tr:last-child > td.tranche-download-tally, .table > thead > tr:last-child > th {
    border-top-width: 2px;
}

.tranche-table > tbody > tr > td.tranche-download-cell input[type="checkbox"] {
    display: none;
}

.tranche-table > tbody > tr > td.tranche-download-cell input[type="checkbox"] + label {
    display: block;
    margin: 0;
    height: 3em;
    line-height: 3em;
    text-align: center;
    vertical-align: middle;
    color: #dbdbdb;
    cursor: pointer;
}

.tranche-table > tbody > tr > td.tranche-download-cell input[type="checkbox"] + label::selection {
    background: transparent;
    color: inherit;
}

.tranche-table > tbody > tr > td.tranche-download-cell input[type="checkbox"]:checked + label {
    color: #333333;
}

.tranche-table > tbody > tr > td.tranche-download-tally {
    vertical-align: middle;
    text-align: center;
}

.btn-stretch {
    display: block;
    width: 100%;
}


.load-after > :first-child {
    visibility: visible;
}

.load-after > * {
    visibility: hidden;
}

.load-after.done > :first-child {
    display: none;
}

.load-after.done > * {
    visibility: inherit;
}

.dropdown-menu > li > label {
    display: block;
    padding: 3px 20px;
    clear: both;
    font-weight: 400;
    line-height: 1.42857143;
    color: #333;
    white-space: nowrap;
    cursor: pointer;
}

.dropdown-menu > li > label:hover {
    color: #262626;
    text-decoration: none;
    background-color: #f5f5f5;
}

.ticked-input-label input[type="radio"], .ticked-input-label input[type="checkbox"] {
    display: none;
}

.ticked-input-label input[type="radio"] + label::before, .ticked-input-label input[type="checkbox"] + label::before {
    content: " ";
}

.ticked-input-label input[type="radio"]:checked + label, .ticked-input-label input[type="checkbox"]:checked + label {
    font-weight: bold;
}

.ticked-input-label input[type="radio"]:checked + label::after, .ticked-input-label input[type="checkbox"]:checked + label::after {
    content: "\2713";
}

.btn-group-input-label input {
    display: none;
}

.pagination.btn-toolbar {
    text-align: center;
    margin: 5px 0;
}

.pagination.btn-toolbar > .btn-group {
    display: inline-block;
    float: none;
}

.pagination .btn-crumbs .btn {
    padding: 6px;
}

.pagination .btn-pagination.page-first .btn-page-num {
    border-bottom-left-radius: 6px;
    border-top-left-radius: 6px;
}

.pagination .btn-pagination > .btn-link:disabled:first-child + .btn-group .btn {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.pagination .btn-pagination > .btn-group:has(+ .btn-link:disabled:last-child) .btn {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}


.pagination .btn-crumbs .btn::before {
    padding-right: 3px;
    content: "/";
    text-decoration: none !important;
    margin-left: -6px;
    display:inline-block;
}

.pagination .btn-crumbs .btn:first-child::before {
    padding-left: 0;
    content: none;
}

.pagination .btn-crumbs .btn:hover {
    background: transparent;
    text-decoration: underline;
}

.pagination .btn-crumbs :not(:last-child).btn {
    border-right: none;
}

.pagination .btn-crumbs :not(:first-child).btn {
    border-left: none;
}

.pagination > li.annotation span.empty {
    background: transparent;
    border: none;
    color: inherit;
    padding: 0;
    margin: 0;
    margin-left: 10px;
}

.pagination > li.annotation {
    margin-left: 10px;
}

.pagination > li.force-last > a, .pagination > li.force-last > span {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.pagination > li.annotation span, .pagination > li.annotation a {
    margin-left: 10px;
    margin-right: 10px;
    border-radius: 4px;
}

.btn-group.btn-group-input-label > input:first-child + label.btn:not(:first-child):not(:last-child):not(.dropdown-toggle) {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    -webkit-border-top-left-radius: 4px;
    -webkit-border-bottom-left-radius: 4px;
}

.btn-group > .bootstrap-select:not([class*="col-"]):not([class*="form-control"]):not(.input-group-btn) {
    width: inherit;
}

.btn-group .btn-input {
    background: #ffffff;
    text-align: left;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    cursor: text;
}

.btn-group .btn-select {
    background: #ffffff;
    text-align: left;
}

.btn-group > .bootstrap-select {
    width: inherit;
    padding: 0;
}

.btn-group > .bootstrap-select > button {
    border-width: 0;
}

.btn-group > :first-child.bs-select-hidden + .bootstrap-select > button {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.btn-group .btn-input:focus, .btn-group .btn-select:focus {
    outline: 0 none;
    background: #ffffff;
}

.pagination.btn-toolbar .btn-group .btn-input.search {
    transition-delay: .5s;
    transition-timing-function: ease-in-out;
    transition: box-shadow, .2s;
    width: 12em;
}

.pagination.btn-toolbar .btn-group .btn-input.search:focus {
    box-shadow: 0 0 5px #5BC0DE;
    transition-delay: .5s;
    transition-timing-function: ease-in-out;
    transition: box-shadow, .2s;
}

.pagination.btn-toolbar:hover .btn-group .btn-input.search {
    box-shadow: 0 0 10px #5BC0DE;
    transition-delay: .5s;
    transition-timing-function: ease-in-out;
    transition: box-shadow, .2s;
}

@media (max-width: 1199px) {
    .pagination.btn-toolbar .btn-group .btn-input.search {
        width: 15em;
    }
}

.btn-group-input-label input:disabled + label {
    background: #fff;
    border-color: #ccc;
}

.btn-group-input-label input:disabled + label:active {
    box-shadow: none;
    cursor: default;
}

.btn-group-input-label input:checked + label {
    color: #333333;
    background: #e6e6e6;
    border-color: #adadad;
}

.btn-group-input-label.btn-active-primary  input:checked + label {
    color: #ffffff;
    background: #286090;
    border-color: #204d74;
}

.btn-group > .bs-select-hidden:first-child + .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.btn-group > .bs-select-hidden:first-child + .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) > button{
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.btn-group > .selectpicker.btn-select.btn-default {
    width: inherit;
    padding: 0;
}

.btn-group > .btn-group.btn-select.btn-default > .btn {
    border:none;
    border-radius: 5px;
}

.download-modal {
    background: #ffffff;
    margin: 0 auto;
}

.tranche-list {
    word-wrap: normal;
    text-wrap: normal;
    overflow-wrap: break-word;
    width: 100%;
}

.modal-dialog > .modal-content .modal-footer > .row {
    margin-right: 0;
}

.apply-relation-query-form input.relation-key:disabled {
    color: #ffffff;
}


.jsme {
    margin: 0 auto;
}

.jsme-small {
    display: block;
    width: 400px;
    height: 300px;
}

.img-sm {
    max-width: 150px;
    max-height: 150px;
}

.img-md {
    max-width: 300px;
    max-height: 300px;
}

.img-ml {
    max-width: 500px;
    max-height: 500px;
}

.zinc-similar-substances-list .thumbnail {
    margin-bottom: 10px;
}

.zinc-similar-substances-list .thumbnail img {
    max-height: 300px;
}


/* http://stackoverflow.com/questions/18192082/bootstrap-3-navbar-collapse */
@media (max-width: 991px) {
    .navbar-header {
        float: none;
    }
    .navbar-toggle {
        display: block;
    }
    .navbar-collapse {
        border-top: 1px solid transparent;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
    }
    .navbar-collapse.collapse {
        display: none!important;
    }
    .navbar-nav {
        float: none!important;
        margin: 7.5px -15px;
    }
    .navbar-nav>li {
        float: none;
    }
    .navbar-nav>li>a {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .navbar-text {
        float: none;
        margin: 15px 0;
    }
    /* since 3.1.0 */
    .navbar-collapse.collapse.in {
        display: block!important;
    }
    .collapsing {
        overflow: hidden!important;
    }
}
/*
@media (min-width: 1600px) {
    .zinc-substance.thumbnail:hover {
        position: absolute;
        left: -15%;
        top: -50px;
        max-width: 200px;
        z-index: 100;
        transition: width 1s ease-in-out 1s, left 1s ease-in-out 1s, top 1s ease-in-out 1s;
    }

    .zinc-substance.thumbnail:hover .caption {
        font-size: larger;
    }
}
*/

.visible-on-target-group {
    position: absolute;
    top: 100%;
    white-space: nowrap;
    z-index: 100;
}

.visible-on-target-group > .visible-on-target {
    position: absolute;
}

.visible-on-target {
    display: none;
}

.visible-on-target:target {
    display: block;
}

.btn-group .btn-group-addon {
    cursor: default;
    box-shadow: none;
    opacity: 0.65;
}

.btn-group .btn-group-addon:hover {
    background: inherit;
    background-color: #FFF;
    border-color: #CCC;
}

.popover-content-source {
    display: none;
}

.popover > .popover-content > .popover-content-source {
    display: block;
}

.popover{
    max-width: 100%; /* Max Width of the popover (depending on the container!) */
}

.btn-radio > span, .btn-radio > input[type="radio"], .btn-radio > label {

}

.btn-radio > input[type="radio"]:checked + span, .btn-radio > input[type="radio"]:checked + label {
    display: inherit;
}

nav.navigation .typeahead.dropdown-menu {
    right: 0;
    text-overflow: ellipsis;
    overflow: hidden;
    left: inherit !important;
}

nav.navigation .typeahead.dropdown-menu > li > a {
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 35em;
}

.apply-related-query-form .selected-relation, .apply-related-query-form .current-relation {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 20em;
    white-space: nowrap;
}

/* http://bootsnipp.com/snippets/featured/no-more-tables-respsonsive-table */
@media only screen and (max-width: 800px) {

    /* Force table to not be like tables anymore */
	.table-sm-collapse,
	.table-sm-collapse thead,
	.table-sm-collapse tbody,
	.table-sm-collapse th,
	.table-sm-collapse td,
	.table-sm-collapse tr {
		display: block;
	}

	/* Hide table headers (but not display: none;, for accessibility) */
	.table-sm-collapse > thead > tr {
		position: absolute;
		top: -9999px;
		left: -9999px;
	}

	.table-sm-collapse tr { border: 1px solid #ccc; }

	.table-sm-collapse td {
		/* Behave  like a "row" */
		border: none;
		border-bottom: 1px solid #eee;
		white-space: normal;
		text-align:left;
        clear: left;
	}

	.table-sm-collapse td:before {
		/* Now like a table header */
		display: block;
        float: left;
		/* Top/left values mimic padding */
		top: 6px;
		left: 6px;
		width: 40%;
		padding-right: 10px;
		white-space: nowrap;
		text-align:left;
		font-weight: bold;
	}

	/*
	Label the data
	*/
	.table-sm-collapse td:before { content: attr(title); }
}

.jumbotron.less-jumbo {
    padding: 24px;
}

.jumbotron.less-jumbo h1 {
    margin-top: 0;
}

.jumbotron.less-jumbo p {
    font-size: medium;
}


.hover-link-container {
    position: relative;
}

.hover-link-container > .hover-link {
    position: absolute;
    transition-delay: 1s;
    transition-timing-function: ease-in-out;
    transition: opacity .5s;
    opacity: 0;
}

.hover-link-container > .hover-link-slow {
    transition-delay: 2s;
    transition: opacity 1s;
}

.hover-link-container:hover > .hover-link {
    opacity: 1;
}

.hover-link-container > .hover-link-se {
    right: 5px;
    bottom: 5px;
}

.hover-link-container > .hover-link {
    color: #080808;
    text-shadow: 0 0 10px #fff;
}

.very-hard-to-see {
    font-size: xx-small;
    opacity: .5;
}

.line {
    display: block;
}

.btn.toggle:not(.collapsed) > .closed, .btn.toggle.collapsed > .open {
    display: block;
}

.btn.toggle:not(.collapsed) > .open, .btn.toggle.collapsed > .closed {
    display: none;
}

.btn.toggle {
    margin-right: 10px;
}

#purchasability-report #report-selection .active-substance {
    background: #f5f5f5;
}

#purchasability-report #report-selection .has-active-substance {
    border-color: #0f0f0f;
}

#purchasability-report #report-selection .substance-image {
    max-width: 200px;
    max-height: 200px;
}

#purchasability-report #report-selection .substance-image-stub {
    width: 200px;
    height: 200px;
}

body.spy {
    position: relative;
}

body.spy .affix-parent {
    position: relative;
}

#purchasability-report #report-selection #selection-summary {
    height: 100%;
}

#purchasability-report #report-selection #selection-summary.affix {
    padding-right: 56px;
}

#purchasability-report #report-selection #selection-summary {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 100%;
    padding-top: 56px;
    margin-top: -56px;
    margin-bottom: 56px;
}

.scrollbox {
    overflow-y: auto;
    overflow-x: hidden;
}

.scrollbox.scrollbox-200 {
    max-height: 200px;
}

.scrollbox.scrollbox-350 {
    max-height: 350px;
}

.jsmol-image-full {
    height: 300px;
    width: 100%;
}

.jsmol-image {
    margin: 0 auto;
}

/* Added by Chinzorig D.
It spins glyphicon
*/
.glyphicon.spinning {
    animation: spin 1s infinite linear;
    -webkit-animation: spin2 1s infinite linear;
}

@keyframes spin {
    from { transform: scale(1) rotate(0deg);}
    to { transform: scale(1) rotate(360deg);}
}

@-webkit-keyframes spin2 {
    from { -webkit-transform: rotate(0deg);}
    to { -webkit-transform: rotate(360deg);}
}

.glyphicon-left {
    margin-right: 7px;
}
/* End */