/********** COMMON **********/
@font-face {
	font-family: SegoeUI;
    src: url("/static/fonts/segoeui.ttf");
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: "Segoe UI",SegoeUI,"Open Sans",sans-serif; !important;
    /*font-family: SegoeUI, -apple-system, BlinkMacSystemFont, "Segoe UI", "Open Sans", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";*/
    font-size: 0.89rem;
}

main {
    padding-top: 10px;
}

.preformatted {
    white-space: pre;
}

.card {
    margin-bottom: 10px;
}

.card-sub.card-header {
    padding: 0.5rem 1.0rem;
}

.card-sub.card-body {
    padding: 1.0rem;
}

.control-label {
    font-weight: 700;
}

.fieldset-title {
    font-size: 1.1rem;
}

.fieldset-example {
    padding-left: 17%;
    padding-bottom: 10px;
    font-style: italic;
    margin-top: -16px;
}

header nav.navbar {
    padding-top: 0;
    padding-bottom: 0;
}

.navbar-brand {
    padding-top:0px;
    padding-bottom:0px;
}

.nowrap {
    white-space: nowrap;
}

.hidden-height {
    display: block;
    height: 0px;
    overflow: hidden;
}

.hidden {
    display: none;
}

.spectrum_table tr.collapse:not(.show) {
    display: table-row;
    padding: 0;
    border: 0;
}

.spectrum_table tr.collapse:not(.show)>td {
    display: table-cell;
    padding: 0;
    border: 0;
}

.spectrum_table tr.collapse:not(.show)>td>div {
    display: block;
    height: 0px;
    overflow: hidden;
}

.spacer-small, .spacer-medium, .spacer-large {
    display: inline-block;
}

.spacer-small {
    width: .33rem;
}

.spacer-medium {
    width: 1rem;
}

.spacer-large {
    width: 2rem;
}

.chemlink {
    position: relative;
    top: -0.3rem;
    font-size: 1.1rem;
    text-decoration: underline;
    margin-right: 0.1rem;
    font-family: monospace;
}

/********** TABLE **********/

.table-simple td {
    padding: 0;
    border: none;
}

.table-sub-row {
    height: 100%;
}

.table-sub-row table {
    height: 100%;
    width: 100%;
}

.table-sub-row td {
    padding: 0;
    border: none;
    /*vertical-align: middle;*/
}

.table-sub-row tr:nth-child(even) {
    /*border-top: 1px dashed #ccc;*/
    /*font-style: italic;*/
    color: #700;
    /*font-weight: bold;*/
}

.sub-spectra > td {
    border-top-style: dashed;
    /*color: #700;*/
    background-color: #fbfbfb;
}

.spectrum-link {
    color: #520a98;
}

a.spectrum-link:hover {
    color: #43097a;
}

/********** HOME **********/

#home-title {
    margin-bottom: 20px;
}

#home-jumbotron {
    margin-top: 30px;
    margin-bottom: 40px;

    padding-top:20px !important;
    padding-bottom:20px !important;

    border-width:2px !important;
}

#home-databases .home-database-logo {
    max-width: calc(150px - 2.5rem);
    max-height: calc(100px - 2.5rem);
}

#home-databases .card-body {
    height: 100px;
}

#home-databases .card {
    margin-bottom: 10px;
    width: 150px;
    height: 160px;
}

#card-tweets .tweet-media img {
    max-height: 250px;
}

#card-tweets .tweet-infos {
    font-style: italic;
    font-size: smaller;
}

/********** PAGES **********/

.sshade-page-header {
    font-size: 1.05rem;
    font-weight: 500;
}

#sshade-search-card-query {
    z-index: 999;
    top: 50px;
    padding-bottom: 10px;
}

.vo-link {
    border: none;
    max-height: 24px;
    max-width: 24px;
    vertical-align: text-bottom;
}

/********** SIDEBAR **********/

/* SIDEBAR COLLAPSE */
.sidebar-collapse.collapsing {
    -webkit-transition: none;
    transition: none;
    display: none;
}

/* SIDEBAR LAYOUT */
.sshade-layout-with-sidebar {
    padding-left: 50px;
}
.sshade-layout-with-sidebar.show {
    padding-left: 25%;
}

/* SIDEBAR WRAPPER */
#sshade-sidebar-wrapper {
    position: fixed;
    width: 50px;
    top: 60px;
    bottom: 0px;
    left: 0px;
    padding-right:10px;
    padding-bottom: 50px;
    display: block;
}

#sshade-sidebar-wrapper.show {
    width: 25%;
}
#sshade-sidebar-wrapper:not(.show), #sshade-main-container:not(.show) {
    display: block;
}

/* SIDEBAR TABS */
#sshade-sidebar-wrapper:not(.show) .sidebar-collapse-tab {
    display: none;
}
#sshade-sidebar-wrapper:not(.show) .tab-content {
    display: none;
}

/* SIDEBAR TOGGLE BUTTONS */
#sshade-sidebar-wrapper #sshade-sidebar-toggle-show {
    display: none;
}
#sshade-sidebar-wrapper #sshade-sidebar-toggle-hide {
    display: inline;
}

#sshade-sidebar-wrapper:not(.show) #sshade-sidebar-toggle-show {
    display: inline;
}
#sshade-sidebar-wrapper:not(.show) #sshade-sidebar-toggle-hide {
    display: none;
}

/* SIDEBAR BODY */
#sshade-sidebar-body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    overflow-y: auto;
}

#sshade-sidebar-body .card-body {
    padding-left: 10px;
    padding-right: 0px;
    padding-top: 0px;
    padding-bottom: 0px;
}

#sshade-sidebar-body .without-card-header {
    padding-left: 0px;
}

#sshade-sidebar-body .card {
    margin-bottom: 0px;
}

/* NAVBAR */

.dropdown-item img{
    width:7rem;
    height:4rem;
    padding-right: 1rem;
}

.dropdown-item-comp{
    white-space: nowrap;
    width: 35rem;
    overflow: hidden;
    text-overflow:ellipsis;
    flex: 1;

}
.dropdown-item-comp-title{
    overflow: hidden;
    text-overflow:ellipsis;
    flex: 1;


}
.dropdown-item-comp:hover {
    background-color: unset;
    color: unset;
}
.dropdown-divider-comp{
    margin:0;
}
#comparator-link .dropdown-divider-comp{
    margin-top:0.5rem;
}

.comp-tooltip{
    font-style: italic;
    text-indent : 1em;
}

.dropdown-menu-comp{
    overflow-y: auto;
    max-height: 66vh;
    overflow-x: hidden;
}

.rmv:hover, .btn-reset-changes:hover, .btn-refresh:hover, .operation, .comp-add{
    cursor: pointer;
}
#spectrum-form-advanced .control-label{
    font-size: 0.8em;
}

#op-notransform label{
    margin:0px;
    padding:4px;
}
.editable{
    padding-right: 10px;
    padding-left: 10px;
    background-color: #029ACF33;
    cursor: text;
}
#spectrum-form-advanced input{
    width:25%
}

#spectrum-form-advanced a{
    margin: 10px 10px 13px;
}

.rmv{
    border:none;
    text-decoration: underline;
}

/********** BUTTONS **********/

.btn.disabled-with-tooltip {
    opacity: 0.5;
    cursor: default;
}

.btn.disabled,
.btn-primary.disabled,
.btn-outline-primary.disabled,
.btn-secondary.disabled,
.btn-outline-secondary.disabled {
    opacity: 0.5;
}

.btn-secondary.disabled,
.btn-outline-secondary.disabled {
    color: inherit;
}

.btn-sq-lg {
    width: 150px !important;
    height: 150px !important;
    padding-top: 30px;
}

.btn-sq {
    width: 100px !important;
    height: 100px !important;
    font-size: 10px;
}

.btn-sq-sm {
    width: 50px !important;
    height: 50px !important;
    font-size: 10px;
}

.btn-sq-xs {
    width: 25px !important;
    height: 25px !important;
    padding:2px;
}

#save-disabled{
    color: gray;
}

/********** PLOT **********/

.plot-title {
    color: rgb(68, 68, 68);
    text-align: center;
    font-size: 17px;
    font-weight: normal;
}

#plot-over {
    background-color: rgba(255, 255, 255, .5);
    position: absolute;
    top: 100px;
    width: 98%;
    height: 20px;
    text-align: center;
    display: none;
}
#plot-over.tall {
    height: 450px;
}
#plot-over>.icon {
    margin-top: 20px;
    font-size: 2rem;
    color: lightblue;
}
#plot-over.tall>.icon {
    margin-top: 160px;
}

.plot-form input[type=range], #spectrum-form input[type=range]{
    width: 120px;
    height: 10px;
    margin-top: 10px;
}

.plot-form label {
    margin-bottom: unset;
}

.plot-form {
    position: relative;
}

#draw_options {
    float: right;
    right: 20px;
    top: 12px;
    min-width: 256px;
}

#gradiant_canvas {
    margin-top: 5px;
    margin-bottom: 5px;
    display: block;
}

.gradiant_canvas_full {
    display: none;
}

#plot-legend .legend-wrapper {
    display: flex;
    flex-direction: row;
}

#plot-legend.plot-legend-experiment .legend-values, #plot-legend.plot-legend-spectrum .legend-values, #plot-legend.plot-legend-comparator .legend-values{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    max-height: 300px;
    overflow-y: auto;
}
.plot-legend-comparator .legend-wrapper .legend-values .legend-y-value{
    width:100%;
}
.plot-legend-comparator dd{
    text-align: left !important;
}

#plot-legend.plot-legend-bandlist .legend-values {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

#current-type{
    color:#029ACF;
    font-size: 90%;
}

#nu-value-info{
    color:#029ACF;
    font-size: 90%;
    background-color: rgba(0,0,0,0.03);
    font-style: italic;
    margin-top:5%;
    float:right;
}
.legend-y-value {
    width: 19%;
    display: flex;
    flex-direction: row;
}

.legend-y-value dt {
    flex: 1;
    overflow: hidden;
}

.legend-y-value dd {
    flex: 0;
}

#plot-legend .legend-position {
    flex: 0;
}

#plot-legend .legend-values {
    flex: 1;
}

#plot-legend .legend-values-common {
    width: 100%;
}

#plot-legend dt, #plot-legend dd {
    margin: unset;
}

#plot-legend dd {
    text-align: right;
    padding-right: 2px;
}

.legend-value span {
    padding: 2px 5px;
    min-width: 50px;
}

#plot-legend .legend-value {
    margin-right: 8px;
    padding: 2px;
}

/********** MODAL **********/

.modal-header-danger {
    background-color: #d9534f;
}

.modal-header-info {
    background-color: #5bc0de;
}

.modal-header-success {
    background-color: #5cb85c;
}

.modal-header-warning {
    background-color: #f0ad4e;
}

.modal-header-primary {
    background-color: #428bca;
}

.modal-header-danger .modal-title,
.modal-header-info .modal-title,
.modal-header-success .modal-title,
.modal-header-warning .modal-title,
.modal-header-primary .modal-title {
    color:#fff;
}

/********** FORM **********/
.message-block {
    font-style: italic;
    font-size: .85em;
    opacity: .8;
}
.form-control.disabled {
    background-color: #ddd;
    opacity: 1;
}

.form-control[type="checkbox"] {
    height: 1.2rem;
}

.form-control .hidden, .form-group .hidden {
    display: none;
}

.form-group .join-label {
    padding: 0.3rem 0.2rem 0 0.2rem;
}

.form-group .form-control {
    min-width: 100px;
}

.form-group div.input-unit {
    width: auto !important;
    min-width: 100px;
}

h4.card-title {
    margin-bottom: 0;
}

#form-search .card-title .collapsed i:before {
    content: '\f054';
}

#form-search .card-header .collapsed i:before {
    content: '\f138';
}

#cond-hidden{
    opacity: 0;
    transition: opacity 0.5s;
}

/********** LOG **********/
.time-label-right {
    font-size: 0.8em;
    float: right;
}

/********** DOI **********/
.doi-subjects dd {
    margin-left: 2em;
    margin-bottom: 0;
}

/********** FONT AWESOME OVERRIDE **********/

.fa,
.far,
.fas,
.fal,
.fab {
  font-size: 1.33333em;
  vertical-align: -.0667em;
}

.fa-lg {
  font-size: 1.33333em;
  line-height: 0.75em;
  vertical-align: -.0667em; }

.fa-xs {
  font-size: .75em; }

.fa-sm {
  font-size: .875em; }

.fa-1x {
  font-size: 1em; }

.fa-2x {
  font-size: 2em; }

.fa-3x {
  font-size: 3em; }

.fa-4x {
  font-size: 4em; }

.fa-5x {
  font-size: 5em;
}

.fa-6x {
  font-size: 6em; }

.fa-7x {
  font-size: 7em; }

.fa-8x {
  font-size: 8em; }

.fa-9x {
  font-size: 9em; }

.fa-10x {
  font-size: 10em; }

.fa-refresh:before {
    content: "\f021"; }

.fa-repeat:before {
    content:""}

/********** MISC. **********/
div.card-legal h4 {
    font-weight: bold;
    font-size: 1.00em;
    margin-bottom: 0.2em;
}

div.card-legal ul {
    padding-left: 1em;
}

div.card-legal li {
    list-style: none;
}