* {
  font-size: 14px;
}

@font-face {
  font-family: 'Anek Devanagari';
  src: url('../fonts/AnekDevanagari-Regular.ttf');
}

/* Bootstrap overrides */
@media (min-width: 768px) {
  .fixed-top {
    position: fixed;
  }
}

@media (max-width: 767px) {
  .fixed-top {
    position: relative;
  }
}

.fixed-top {
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
}

table.table th {
  border-top: unset;
}

table.table {
  table-layout: fixed;
}

table.table td, table.table th {
  vertical-align: middle;
}

@media (min-width: 992px) {
  .name-column {
    width: 40%;
  }
}

/* General css */

/* Always display scrollbar to stop jumping */
html {
  overflow-y: scroll;
}

body {
  color: #333;
}

main {
  margin-bottom: 2rem;
}



@media (min-width: 768px) {
  main {
    margin-top: 5rem;
  }
}
@media (min-width: 992px) {
  main {
    margin-top: 4rem;
  }
}
@media (max-width: 767px) {
  main {
    margin-top: 0;
  }
}

.menu-list {
  list-style: none;
}

@media (min-width: 768px) {
  div.sidebar-wrapper {
    border-right: 1px solid #dee2e6 !important;
  }
}

ul.sidebar-menu {
  padding-left: 0;
}
.logo-wrap {
  border: 4px solid transparent;
}
.logo-wrap  img {
  height: 3em;
}

.logo-wrap h1 {
  font-size: 1.8rem;
  text-transform: uppercase;
  line-height: 0.85;
}

.logo-wrap a {
  color: #555;
}

.logo-wrap a:hover {
  text-decoration: unset;
  color: #111;
}

@media (min-width: 769px) {
  div.teamlogo-wrapper {
    max-width: 30%;
  }
}

@media (max-width: 768px) {
  div.teamlogo-wrapper {
    max-width: 45%;
  }
}

img.teamlogo {
  max-height: 150px;
  max-width: 100%;
  display: inline-block;
  vertical-align: middle;
}

div.teamlogo-wrapper {
  max-height: 150px;
  display: inline-block;
  margin: 1.5%;
}

.page-title {
  margin-top: 0.5em;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
}

/* Nav */
header nav {
  box-shadow: 0 1px 3px #ddd;
}

.account-link {
  float: right;
}

/* Secondary Nav */
.sub-nav-list {
  list-style: none;
  padding-inline-start: unset;
  margin-bottom: 0;
}

.sub-nav-item {
  display: inline-block;
}

.sub-nav-link {
  padding: 0.5em 1em 0.5em 0;
  display: inline-block;
  border-bottom: 2px solid transparent;
}

.sub-nav-link:hover,
.sub-nav-link.active {
  text-decoration: none;
  border-bottom: 2px solid #0056b3;
}

/* Footer */
.footer {
  padding-top: 2rem;
  padding-bottom: 1rem;
  box-shadow: 0 -1px 3px #ddd;
}

.footer-link {
  display: inline-block;
  vertical-align: middle;
  float: right;
}

/* Data/Data */
.data-plot-content {
  width: inherit;
}

.data-metadata {
  position: relative;
  padding: 1em;
}

ul.data-metadata-fields {
  list-style: none;
}

.data-metadata-label {
  font-weight: 700;
}

/* Table Search CSS */
.results tr[visible='false'],
.no-result {
  display: none;
}

.results tr[visible='true'] {
  display: table-row;
}

.counter {
  padding: 8px;
  color: #ccc;
}

/* Forms */
div.pair-container, ul.quality-filter-list, li.qf-filter-container {
  list-style: none;
  padding: 0.5em 1em;
  padding-top: 1em;
  position: relative;
  border: 1px solid rgb(206, 212, 218);
  border-radius: 5px;
  margin-bottom: 0.5em;
}

div.object-pair-label {
  font-size: 16px;
}

div.object-pair-list {
  padding-left: 0;
  margin-bottom: 1em;
}

ul.object-pair-list {
  padding-left: 0;
  list-style: none;
}

ul.pair-attribute-list {
  padding-left: 1em;
  list-style: none;
}

a.object-pair-delete-button,
a.error-band-delete-button,
a.qf-filter-delete-button {
  position: absolute;
  top: 0px;
  right: 5px;
  color: #a00 !important;
}

.form-group {
  width: 100%;
}

.form-element label {
  font-weight: 600;
}

@media (min-width: 769px) {
  .form-element {
    width: 49%;
  }
}

@media (max-width: 768px) {
  .form-element {
    width: 100%;
  }
}

.form-element {
  display: inline-block;
  vertical-align: top;
  box-sizing: border-box;
  padding: 0.5em 1em;
  position: relative;
}

.form-element.full-width {
  width: 100%;
}

.time-field {
  display: inline-block;
}

.form-element .well-known-text-field {
  width: 100%;
}

fieldset {
  background-color: #f8f9fa;
  box-shadow: 0 1px 3px #ddd;
  margin: 1em 0;
  padding: 1em 0;
}

pre.example-text {
  background-color: #f8f9fa;
  border: 1px solid #f0f0f0;
  border-radius: 5px;
  padding: 1em;
  overflow: scroll;
  max-width: 761px;
}

span.help-text {
  width: 100%;
  padding: 0.5em;
  border: 2px solid #6c757d;
  border-radius: 8px;
  position: absolute;
  background-color: white;
  box-shadow: 1px 1px 1px;
  z-index: 1;
  left: 0;
  top: 100%;
}

/* Tooltip arrow */
span.help-text::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent #6c757d transparent;
}

.notification-list {
  list-style: none;
  margin-top: 0.5rem;
  padding-left: 0;
}

li.alert {
  margin-bottom: 0.5rem;
}

li.alert p {
  margin-bottom: 0;
}

a.help-button {
  color: white;
  font-weight: bolder;
  background-color: #6c757d;
  border-radius: 1rem;
  width: 1.5rem;
  display: inline-block;
  text-align: center;
}

.form-control {
  display: inline-block;
}

.form-control.half-width {
  margin-left: 1em;
  min-width: 250px;
  width: 46%;
}

.form-control.unset-width {
  width: unset;
}

.input-wrapper {
  width: calc(100% - 29px);
  display: inline-flex;
  font-size: 1.2rem;
}

.bigtext {
  font-size: 2rem;
}

.value-range-number {
  width: 5rem;
}

.value-range-observation {
  width: 40%;
}

/* Organization filters */
.table-filters {
  position: absolute;
  background-color: white;
  border: 1px solid #cdd1d5;
  padding: 0.5rem;
  min-width: 200px;
  padding-right: 2em;
}

.table-filters.collapsing {
  transition: height 0.1s ease;
}

.table-option-collapse {
  font-family: monospace;
  color: #a44;
  border: 1px solid #dee2e6;
  border-radius: 3px;
  margin-left: 1rem;
  padding: 0.1rem 0.3rem;
  position: absolute;
  right: 5px;
  top: 5px;
}

.table-option-collapse:hover {
  color: #c77;
}

a.select-filter-options:not([href]),
a.deselect-filter-options:not([href]) {
  margin: 0.2em 0;
  display: inline-block;
  color: #fff;
}

a.select-filter-options:not([href]):hover,
a.deselect-filter-options:not([href]):hover {
  color: #bbb;
}

#org-filter-collapse:hover {
  text-decoration: none;
  background-color: #ddd;
  transition: background-color 0.2s;
}

#org-filter-collapse::after {
  content: "\00d7";
  font-size: 1rem;
}

.table-filter-options {
  list-style: none;
  padding-left: 0;
}

.filterable-header {
  padding: 0;
}

#removal-header {
  width: 6em;
}

.btn-th {
  color: #333;
  background-color: #fff;
  font-weight: bold;
  padding: 0;
  width: 100%;
  text-align: left;
}

.scrollbox {
  max-height: 400px;
  overflow: scroll;
}

[role="button"] {
  cursor: pointer;
}

.empty-reports-list {
  list-style: none;
}

table.table.reports-table {
  table-layout: auto;
}

a:not([href]).collapser-button {
  color: #007bff;
}

a:not([href]).collapser-button:hover {
  color: #0056b3;
}

.collapser-button::after {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid #007bff;
  content: "";
  position: absolute;
  margin-top: 7px;
  margin-left: 7px;
}

.collapser-button.collapsed::after {
  transform: rotate(180deg);
}

.report-field-filters {
  display: inline-block;
  margin-bottom: 0.5em;
}

.report-field-filters .form-control {
  margin-left: 0;
}

ul.pair-constant-values {
  padding-left: 2em;
}

li.object-pair {
  position: relative;
  list-style: none;
  padding: 0.5em;
  border: 1px solid rgb(206, 212, 218);
  border-radius: 0.25rem;
  margin-top: 0.5em;
}

th.selection-column {
  width: 2em;
}

.nav-tabs .nav-item.active {
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-bottom: 1px solid #fff;
}

.nav-tabs .nav-item {
  background-color: #e9ecef;
}

.nav-tabs .nav-link:hover {
  background-color: #c9cccf;
  border-color: #a9acaf;
}

#download-form {
  display: inline-block;
}

/* report stuff */

#report-block h1,
#report-block h2,
#report-block h3,
#report-block h4 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

/* add pseudo elements so possible anchors clear sticky header */
@media (min-width: 768px){
  #report-block h1[id]:before,
  #report-block h2[id]:before,
  #report-block h3[id]:before,
  #report-block h4[id]:before{
      display: block;
      content: " ";
      margin-top: -5rem;
      height: 5rem;
      visibility: hidden;
  }
}

#metric-plot-wrapper {
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 1em;
  margin-bottom: 1em;
}

table.obsfx-table td {
  padding: 0.5rem;
}

#metrics-sort-list {
  list-style: none;
  padding-left: 0;
}

.metric-sort {
  margin: 0.75em;
  width: fit-content;
}

#metrics-sort-list .metric-sort:nth-child(2) {
  padding-left: 1em;
}

#metrics-sort-list .metric-sort:nth-child(3) {
  padding-left: 2em;
}

.metric-sort-value {
  padding: 0.5rem 1rem;
  background-color: #ddd;
  margin: 0 0.1rem;
}

.metric-sort .arrow-up {
  height: 50%;
  margin: 0 0.25em;
  display: inline-block;
  border-bottom: 0.5em solid black;
  border-left: 0.5em solid transparent;
  border-right: 0.5em solid transparent;
  border-top: unset;
}

.metric-sort .arrow-down {
  height: 50%;
  margin: 0 0.25em;
  display: inline-block;
  border-bottom: unset;
  border-left: 0.5em solid transparent;
  border-right: 0.5em solid transparent;
  border-top: 0.5em solid black;
}

#metric-sorting {
  margin-bottom: 1em;
}

#metric-plot-wrapper > div > div {
  padding-left: 2em;
}

.report-plot-section-heading {
  background-color: #acd;
  display: block;
  padding: 0.5em;
  position: relative;
  margin-bottom: 0.2em;
}

.report-plot-section-heading-text {
  padding-left: 1.5em;
  margin-bottom: 0;
}

.report-plot-section-heading::after {
  content: "";
  width: 1em;
  height: 1em;
  position: absolute;
  left: 1em;
  top: 30%;
  border-left: 0.5em solid transparent;
  border-right: 0.5em solid transparent;
  border-top: 0.5em solid black;
  border-bottom: unset;
}

.report-plot-section-heading.collapsed::after {
  border-left: 0.5em solid black;
  border-right: unset;
  border-bottom: 0.5em solid transparent;
  border-top: 0.5em solid transparent;
}

.ui-sortable-handle:hover {
  cursor: pointer;
}

.plot-attribute-wrapper .plot-attribute-wrapper {
  border-left: 1px solid #eee;
}

#report-block #observations-and-forecasts + p + table td:nth-of-type(2n) {
  border-right: 1px solid #dee2e6;
}

#report-block #observations-and-forecasts + p + table td:last-child {
  border-right: none;
}

.datetime-td {
  word-break: break-word;
}

.plot-attribute-wrapper .plot-attribute-wrapper.loading-plots::after {
  animation: 1.5s linear infinite spinner;
  animation-play-state: inherit;
  border: solid 5px #ddd;
  border-bottom-color: #8ab;
  border-radius: 50%;
  content: "";
  height: 40px;
  position: absolute;
  margin-bottom: 20px;
  top: 20px;
  left: 50%;
  transform: translate3d(-50%, -50%, 0);
  width: 40px;
  will-change: transform;
}

@keyframes spinner {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#form-errors .alert {
  list-style: none;
}

.warning-message {
  font-weight: bold;
  color: #a11;
}

ul.report-menu {
  list-style: none;
  padding: 0;
  border-bottom: 1px solid #dee2e6;
}

ul.report-menu li {
  display: inline-block;
  padding: 0.5em;
}

li.report-menu-item.report-menu-label {
  font-weight: bold;
}

li.report-menu-item.active {
  border-color: #dee2e6 #dee2e6 #fff #dee2e6;
  border-style: solid;
  border-width: 1px;
  background-color: #fff;
  margin-bottom: -1px;
}

li.report-menu-item.active a {
  color: #333;
}

input#custom-deadband {
  width: 5rem;
}

.report-metadata-popup {
  z-index: 1050;
  position: absolute;
  background-color: white;
  left: 0;
  border: 1px solid black;
  width: 100%;
  border-radius: 0.5em;
  padding: 0.5em;
}

div.report-details-expander {
  width: fit-content;
  text-align: center;
}

div.report-details-expander:hover {
  cursor: pointer;
}

a.report-details-closer {
  position: absolute;
  top: 0.5em;
  right: 1em;
  color: #a00 !important;
}

.report-metadata-popup ul.data-metadata-fields {
  padding-left: 0.5em;
}

.reports-table-row:nth-child(n+3) {
  width: fit-content;
}

div.report-header {
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #dee2e6;
}

.extra-params-wrapper pre {
  background-color: #eee;
  border: 1px solid #aaa;
  padding: 0.5em;
}

.error-band-container,
.cost-definition {
  border: 1px solid #dee2e6;
  padding: 0.5em;
  position: relative;
}

.primary-cost-container label {
  padding: 0 5px;
}

.primary-cost-container a[role=button] {
  margin: 0.25em 0;
}

.primary-cost-container a[role=button].help-button {
  margin-left: 0.25em;
}

.account-menu {
  width: 300px;
  left: calc(-300px + 100%);
}

a#ref-clear {
  color: #007bff;
}

.iebanner {
  padding: 1em;
  text-align: center;
}

input.datetime-field {
  font-family: monospace;
}

.datetime-container {
  border: 1px solid #ccc;
  width: fit-content;
  padding: 5px;
  display: inline;
}
.datetime-field.year {
  width: 3em;
}
.datetime-field {
  width: 1.5em;
  border: 0;
  text-align: right;
}
span.date-fields,
span.time-fields {
  display: inline-block;
}
span.date-field-wrapper:not(:last-child)::after {
  content: "-";
}
span.time-field-wrapper:first-child::after {
  content: ":";
}
/* Remove adjustment up/down arrows from number fields */
input.datetime-field::-webkit-outer-spin-button,
input.datetime-field::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"].datetime-field {
  -moz-appearance: textfield;
}
.datetime-component {
  margin-top: 0.5em;
}
.datetime-field-container {
  display: inline-block;
  min-width: 49%;
}

#quality-flag-container {
  padding: 1em;
}

table.report-form-quality-flag-table td,
table.report-form-quality-flag-table th{
  padding: 0;
}

table.report-form-quality-flag-table tr td:first-child,
table.report-form-quality-flag-table tr th:first-child {
  width: 2em;
}

table.report-form-quality-flag-table tr td:nth-child(3), 
table.report-form-quality-flag-table tr th:nth-child(3) {
  text-align: center;
}

h1, .h1 {
  font-size: 1.8rem;
}

h2, .h2 {
  font-size: 1.6rem;
}

h3, .h3 {
  font-size: 1.4rem;
}

h4, .h4 {
  font-size: 1.2rem;
}

h5, .h5 {
  font-size: 1rem;
}

.h2.link {
  color: #007bff;
}
@media(min-width: 769px){
  nav.navbar {
    align-items: stretch;
    padding: 0;
  }
  #navbarCollapse.collapse {
    height: 100%;
  }
  ul.site-menu {
    flex: 1;
    display: flex;
    height: 100%;
  }
  ul.site-menu .nav-item {
    font-weight: 500;
    margin: 0 0;
    padding: 0;
    display: flex;
    align-items: stretch;
  }
  ul.site-menu .nav-item a.nav-link {
    display: flex;
    align-items: center;
    font-weight: 700;
    color: #68696a;
    padding: 1em;
    transition: background-color .2s, color .2s, text-shadow .2s;
    border-bottom: 1px solid transparent;
  }
  ul.site-menu .nav-item a.nav-link.active {
    border-bottom: 2px solid #552288;
  }
  ul.site-menu .nav-item a.nav-link:hover {
    background-color: #e8e9ea;
    color: #fff;
    text-shadow:
        1px 1px 0 #b8b9ba,
      -1px -1px 0 #b8b9ba,
       1px -1px 0 #b8b9ba,
       -1px 1px 0 #b8b9ba,
        1px 1px 0 #b8b9ba;
  }
  .navbar-nav .nav-item {
    margin: 0 1em;
  }
}

.ctrl-buttons a.btn {
    margin: 2px 0;
}

/* override bootstrap classes causing misalignment with other inputs */
.btn {
  margin-bottom: 3px;
}

.underline {

  width: 344px;
  height: 0px;
  left: 548.5px;
  top: 260.5px;
  border: 1px solid #1F1956;
}

.center-container {
  width: 351px;
  margin: auto;
}

.loginContainer {
  display: flex;
  flex-direction: column;
  
}

.loginFields {
  width: 351px;
  height: 40px;
  left: 545px;
  top: 326px;
  border-width: 0px;
  background: #D9D9D9;
  border-radius: 5px;
  font-family: 'Anek Devanagari';
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
}

.login-submit-button {
  width: 351px;
  height: 40px;
  left: 545px;
  top: 506px;
  margin-top: 30px;
  border-width: 0px;
  background: #1F1956;
  border-radius: 5px;
  color: white;
  font-family: 'Anek Devanagari';
  font-style: normal;
  font-weight: 500;
  font-size: 20px;
  line-height: 34px;
  cursor: pointer;
}

.forgot-password {
  font-family: 'Anek Devanagari';
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 24px;
  /* identical to box height */
  border-width: 0px;
  background: none;
  cursor: pointer;
  color: #1E1E1E;
}

.date-selection-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.month-selection-field {
  width: 168px;
  height: 40px;
  background: #D9D9D9;
  border-radius: 5px;
  border-width: 0px;
  font-family: 'Anek Devanagari';
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
}

.day-selection-field {
  width: 85px;
  height: 40px;
  background: #D9D9D9;
  border-radius: 5px;
  border-width: 0px;
  font-family: 'Anek Devanagari';
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
}

.year-selection-field {
  width: 85px;
  height: 40px;
  background: #D9D9D9;
  border-radius: 5px;
  border-width: 0px;
  font-family: 'Anek Devanagari';
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
}

.phonenumber-input-container {
  width: 100%;
  height: 40px;
  display: flex;
  justify-content: space-between;
}

.country-code-input {
  width: 168px;
  height: 40px;
  background: #D9D9D9;
  border-radius: 5px;
  border-width: 0px;
  font-family: 'Anek Devanagari';
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
}

.phone-input {
  width: 176px;
  height: 40px;
  background: #D9D9D9;
  border-radius: 5px;
  border-width: 0px;
  font-family: 'Anek Devanagari';
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
}

.email-input {
  width: 100%;
  height: 40px;
  background: #D9D9D9;
  border-radius: 5px;
  border-width: 0px;
  font-family: 'Anek Devanagari';
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
}

.email-select-container{
  width: 100%;
  display: flex;
  cursor: pointer;
  align-items: center;
}

.email-icon{
  width: 17px;
  height: 13px;
}

.email-label{
  padding-top: 4px;
  margin-left: 4px;
  font-family: 'Anek Devanagari';
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 24px;
  vertical-align: middle;
}

.signup-notification {
  margin-top: 54px;
  width: 344px;
  height: 44px;
  font-family: 'Anek Devanagari';
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  line-height: 105.05%;
  /* or 13px */

  text-align: center;
  color: #000000;
}

.signup-input-label {
  font-family: 'Anek Devanagari';
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 24px;
}

.error-msg {
  font-family: 'Anek Devanagari';
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 24px;
  color: red;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f1f1f1;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {background-color: #ddd;}

/* Show the dropdown menu (use JS to add this class to the .dropdown-content container when the user clicks on the dropdown button) */
.show {display:block;}

#vg-tooltip-element {
  font-size: 7px !important;
  width: 300px !important;
}

