
:root {
  --link-color: #004a6f;
  --link-hover-color: #00334d;
  --link-active-color: #00334d;
  --link-light-color: #eef3fc;
  --link-light-hover-color: #e3ecfa;
  --link-light-active-color: #d8e4f8;
  --gray-color: #b5b5b5;
  --gray-light-color: #d6d6d6;
  --gray-lighter-color: #ededed;
  --gray-lightest-color: #f5f5f5;
  --dark-color: #363636;
}

.red-cross {
  color: red;
}

.panel.is-link .panel-heading {
  background-color: var(--link-color);
}

.button.is-link {
  background-color: var(--link-color);
}

.button.is-link:hover {
  background-color: var(--link-hover-color);
}

.button.is-link.is-light {
  color: var(--link-color);
}

.button.is-link.is-light.is-hovered, .button.is-link.is-light:hover {
  color: var(--link-hover-color);
}

.button.is-link[disabled], fieldset[disabled] .button.is-link {
  background-color: var(--link-color);
}

.button.is-link.is-outlined {
  border-color: var(--link-color);
  color: var(--link-color);
}

.button.is-link.is-outlined.is-focused, .button.is-link.is-outlined.is-hovered, .button.is-link.is-outlined:focus, .button.is-link.is-outlined:hover {
  border-color: var(--link-hover-color);
  background-color: var(--link-hover-color);
}

.button.is-link.is-light {
  background-color: #eff1fa;
}

.has-text-link {
  color: var(--link-color) !important;
}

.notification.is-link.is-light {
  color: var(--link-color);
}

.tabs li.is-active a {
  border-bottom-color: var(--link-color);
  color: var(--link-color);
}

.navbar-link.is-active, .navbar-link:focus, .navbar-link:focus-within, .navbar-link:hover, a.navbar-item.is-active, a.navbar-item:focus, a.navbar-item:focus-within, a.navbar-item:hover {
  color: var(--link-color)
}

.input:active, .input:focus, .is-active.input, .is-active.textarea, .is-focused.input, .is-focused.textarea, .select select.is-active, .select select.is-focused, .select select:active, .select select:focus, .textarea:active, .textarea:focus {
  border-color: var(--link-active-color);
}

.select:not(.is-multiple):not(.is-loading)::after {
  border-color: var(--link-color);
}

.has-background-link {
  background-color: var(--link-color) !important;
}

option:hover {
  background-color: var(--link-color) !important;
  color: red
}

[type="checkbox"], [type="radio"] {
  accent-color: var(--link-color);
}

html {
  overflow-y: auto;
}

html, body {
  touch-action: manipulation;
}

.topbar {
  border-radius: 6px 6px 0 0;
  color: var(--link-color);
  background-color: var(--light-bluish-gray-color);
}

.topbar-options {
  display: flex;
  flex-direction: row;
  width: 100%;
  padding: 0 .5rem 0 .5rem;
}

.topbar-option {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%;
}

.topbar-option:hover {
  background-color: var(--middle-bluish-gray-color);
  cursor: pointer;
}

.topbar-option.is-active {
  background-color: var(--bluish-gray-color);
}

.navbar-brand, .navbar-brand .navbar-item {
  flex-shrink: 1;
  min-width: 0;
}

.navbar-brand {
  padding-bottom: 1px;
}

.navbar-start {
  padding-top: 1px;
}

.custom-title {
  color: var(--grey-text-color);
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1.25;
}


.custom-subtitle {
  color: var(--grey-text-color);
  font-weight: bold;
  font-size: 1rem;
  line-height: 1.25;
}

.custom-add-btn {
  width: 100%;
  color: var(--grey-text-color)!important;
  font-weight: bold !important;
  line-height: 1.5rem !important;
  text-align: center;
  background-color: var(--bluish-gray-color);
  border-radius: 5px;
  display:inline-block!important;
  box-shadow: none;
  border: none;
}

.single-line {
  width: 30% !important;
  float: right;
  margin-right: 10px;
}

.custom-margin {
  margin-bottom: 0.5rem !important;
}

.dialog-height {
  max-height: calc(90vh - 120px)!important;
  overflow-y: scroll;
}

.hide-empty:empty {
  display: none;
}

#study-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: normal;
  font-weight: 500;
}

.navbar-shadow {
  -webkit-box-shadow: 0 5px 9px -4px rgba(0, 0, 0, 0.51);
  box-shadow: 0 5px 9px -4px rgba(0, 0, 0, 0.51);
}

#language-dropdown {
  border-radius: 6px;
  border-top: none;
  top: calc(100% - 4px);
  max-height: 500px;
  overflow-y: auto;
}

.has-border-shadow {
  box-shadow: 0 8px 8px rgba(10, 10, 10, .1), 0 0 0 1px rgba(10, 10, 10, .1);
}

.tag-box-shadow {
  box-shadow: 0 0 3px darkgray;
}

.navbar-item .dropdown-menu {
  top: calc(100% - 4px);
}

.openedc-title {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 20px;
}

.section {
  padding: 1.75rem 1.25rem;
}

a.panel-block {
  padding-top: 14px;
  padding-bottom: 14px;
}

.topbar {
  border-radius: 6px 6px 0 0;
  color: var(--link-color);
  background-color: var(--link-light-color);
}

.topbar-options {
  display: flex;
  flex-direction: row;
  width: 100%;
  padding: 0 .5rem 0 .5rem;
}

.custom-title-margin {
  margin-bottom: 0.5rem !important;
}

.sidebar {
  border-radius: 6px 0 0 6px;
  color: var(--link-color);
  background-color: var(--link-light-color);
}

.sidebar-options {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: .5rem 0 .5rem 0;
  overflow-x: hidden;
  max-width: 3rem;
  transition: max-width .5s 1.25s;
}

.sidebar:hover .sidebar-options {
  max-width: 10rem;
}

.sidebar-option {
  display: flex;
  align-items: center;
  height: 3rem;
}

.sidebar-option:hover {
  background-color: var(--link-light-hover-color);
  cursor: pointer;
}

.sidebar-option.is-active {
  background-color: var(--bluish-gray-color);
}

.sidebar-option:nth-last-child(2) {
  margin-top: auto;
}

.sidebar-option i {
  text-align: center;
  min-width: 3rem;
  pointer-events: none;
}

.sidebar-option i:before {
  vertical-align: middle;
}

.sidebar-option span {
  margin-right: 1.25rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity .5s 1.25s;
}

.sidebar:hover .sidebar-option span {
  opacity: 1;
}

.box.has-sidebar {
  display: flex;
  padding: 0;
  height: 280px;
}

.box.has-sidebar .box-content {
  flex-grow: 1;
  padding: 1rem 1.25rem;
  overflow-y: auto;
}

#translation-textarea, #translation-textarea-formatted {
  min-height: 5rem;
  max-width: 200px;
  overflow-y: auto;
}

.has-no-padding-bottom {
  padding-bottom: 0 !important;
}

.has-no-border-bottom {
  border-bottom: none !important;
}

.has-no-border-left {
  border-left: none !important;
}

hr {
  margin-top: 0;
  margin-bottom: 20px;
}

.panel-heading {
  font-weight: bold;
}

a.panel-block:hover {
  background-color: transparent;
}

.panel-block.is-active {
  background-color: var(--gray-lightest-color) !important;
  border-left: 2px var(--link-color) solid;
}

.panel-block.has-text-centered p {
  margin: 0 auto;
}

.panel-icon, .panel-block-content, .panel-block-title, .panel-block-subtitle {
  pointer-events: none;
}

.panel-block-subtitle {
  font-size: 12px;
  color: gray;
}

.modal-content.is-large {
  max-width: 800px;
}

.modal-content.is-medium {
  max-width: 600px;
}

.modal-content.is-small {
  max-width: 400px;
}

.modal-content .is-close-button {
  position: fixed;
  transform: translateX(-150%) translateY(-50%);
  border: 2px solid white;
  background-color: black;
  z-index: 5;
}

.modal-content {
  max-height: calc(100vh - 120px);
  width: 60%!important;
}

.modal-background {
  background-color: rgba(0, 0, 0, 0.5);
}

.input {
  min-width: 50px;
}

.tree-panel-blocks {
  overflow-y: auto;
}

.tree-panel-blocks .panel-block {
  border-radius: 0;
}

.has-light-border-top {
  border-top: 1px solid var(--gray-lighter-color);
}

.item-field {
  margin-bottom: 20px;
}

.item-field label {
  white-space: pre-line;
}

.item-field .icon.is-history-button i {
  pointer-events: none;
}

.field.is-fullwidth, .control.is-fullwidth {
  display: flex;
  width: 100%;
}

.field label.radio:not(:last-child), .field label.checkbox:not(:last-child) {
  margin-bottom: 5px;
}

.input[disabled], .select select[disabled], .textarea[disabled], .input[readonly] {
  color: var(--grey-text-color);
  background-color: #f5f5f5;
}

.message {
  margin-bottom: 20px;
}

#mobile-back-button {
  padding-bottom: 6px;
}

.width-is-three-quarters {
  width: 75%;
  margin: 0 auto;
}

#form-validate-button:not(.is-validated) .icon {
  display: none;
}

#barcode-video-stream canvas {
  display: none;
}

.field.is-grouped .control:not(:last-child) {
  margin-right: 0.5rem;
}

.autocomplete-list {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 10;
  border-radius: 6px;
  max-height: 200px;
  overflow-x: auto;
  box-shadow: 0 0 10px 5px var(--gray-light-color);
  background-color: white;
}

.expanded {
  height: 300px;
}

.control.has-autocomplete-top .autocomplete-list {
  bottom: 120%;
}

.control.has-autocomplete-bottom .autocomplete-list {
  top: 120%;
}

.autocomplete-option {
  padding: 0.75rem;
  cursor: pointer;
}

.autocomplete-option:not(:last-child) {
  border-bottom: 1px solid var(--gray-light-color);
}

.autocomplete-option:hover {
  background-color: var(--gray-lightest-color);
}

.autocomplete-container {
  position: relative;
  width: 150%;
}

.widget {
  border-radius: 6px;
  box-shadow: 0 0.5em 1em -0.125em rgb(10 10 10 / 10%), 0 0 0 1px rgb(10 10 10 / 2%);
  transition: transform .75s;
  transform-style: preserve-3d;
}

.widget.is-medium {
  grid-column-end: span 2;
}

.widget.is-large {
  grid-column-end: span 2;
  grid-row-end: span 2;
}

.widget-content, .widget-options {
  height: 100%;
  width: 100%;
  position: absolute;
  transform: rotateY(0deg);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.widget-options {
  transform: rotateY(180deg);
}

.widget:not(.is-placeholder) .icon {
  position: absolute;
  top: 0;
  right: 0;
  padding: 1.25rem 1.5rem 2.5rem 2.5rem;
  opacity: 0;
  transition: opacity .5s;
}

.widget.is-flipped .icon {
  display: none;
}

.widget:not(.is-placeholder) .icon:hover {
  opacity: 1;
}

.widget.is-placeholder {
  border: 2px dashed lightgray;
  color: lightgray;
  transition: color .5s;
}

.widget.is-placeholder:hover {
  color: gray;
}

.grid-even-columns {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 5px;
}

.has-text-align-center {
  text-align: center;
}

[contenteditable] {
  -webkit-user-select: text;
  user-select: text;
}

.mobile-span {
  display: none;
}

div.has-hover {
  color: var(--link-color);
}

div.has-hover:hover {
  transform: scale(1.2);
}

div.has-hover:active {
  box-shadow: 0 1px var(--link-active-color);
  transform: translateY(1px);
}

.div-underline {
  border-bottom: 1px solid var(--link-color);
}

.notification-close:hover {
  background-color: var(--link-light-hover-color);
}

/* Define what each icon button should look like */

.event-disabled {
  color: lightgray;
  pointer-events: none;
}

.is-fullwidth {
  width: 100%;
}

.has-focus-none:focus {
  box-shadow: none !important;
}

@media only screen and (max-width: 1024px) {
  #app-mode-button .dropdown-menu {
    top: auto;
    left: 0;
    bottom: 100%;
    padding-bottom: 4px;
  }
}

@media only screen and (max-width: 768px) {
  #language-dropdown {
    box-shadow: none;
  }

  .modal-content.is-fullheight-mobile {
    max-height: none;
  }

  .width-is-three-quarters {
    width: 80%;
  }

  .box.has-sidebar {
    height: auto;
  }

  .sidebar:hover .sidebar-options {
    max-width: 3rem;
  }

  .sidebar:hover .sidebar-option span {
    opacity: 0;
  }

  .widget.is-medium, .widget.is-large {
    grid-column-end: unset;
  }

  .mobile-span {
    display: block;
    word-break: break-all;
  }

  .is-mobile-hidden {
    display: none;;
  }
}

@media only screen and (max-width: 640px) {
  .width-is-three-quarters {
    width: 100%;
  }
}

@keyframes glowing {
  0% {
    background-color: #FF3366;
    box-shadow: 0 0 5px #FF3366;
  }
  50% {
    background-color: #ff0342;
    box-shadow: 0 0 20px #ff0342;
  }
  100% {
    background-color: #FF3366;
    box-shadow: 0 0 5px #FF3366;
  }
}

.audit-deletion {
  background-color: #ffe6e6
}

.audit-deletion td{
  text-decoration: line-through;
}

.default-text-decoration {
  text-decoration: none!important;
}

.audit-insertion {
  background-color: #e6ffe6;
}

.navigation-grid-container {
  display: grid;
  grid-template-columns: 20% 80%;
  grid-template-rows: 100%;
  grid-gap: .2rem;
  max-height: inherit;
  margin-top: .5rem;
}

.data-navigation-column {
  position: sticky;
  top: calc(1rem + 57px);
  z-index: 1;
  align-self: start;
}

.data-navigation-column .menu-item {
  background: #fff;
  padding: 0.75rem;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}

.data-navigation-column .menu-item:hover {
  background: var(--light-bluish-gray-color);
}

.data-navigation-column .menu-selected {
  background: var(--bluish-gray-color);
  padding: 0.75rem;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  border-right: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}
