/* global color definitions */
:root {
  --blue-base: #4d90ff;
  --blue-darken-48: #005df7;
  --blue-darken-55: #1a70ff;
  --blue-darken-62: #3c85ff;
  --blue-lighten-75: #80b0ff;
  --blue-lighten-82: #a2c5ff;

  --silver-base: #f8f8f8;
  --silver-lighten-99: #fcfcfc;
  --silver-darken-80: #cdcdcd;
  --silver-darken-87: #dedede;
  --silver-darken-94: #efefef;

  --grey-darken-33: #535353;
}

/* <loading> */

.loader {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: white;
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0.3;
  transition: opacity 0.5s;
}

.loader:not(.hidden) {
  opacity: 75%;
}

.loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.outer.clear:not(.loading) > .loader {
  display: none;
}

/* </loading> */



/* <animation> */

.animate-pulsate {
  animation: pulsate 1s infinite linear;
  animation-timing-function: ease-in-out;
  display: inline-block;
}

@keyframes pulsate {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }

  50% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(0.9);
    opacity: 0.8;
  }
}

/* </animation> */


/* <buttons> */

.btn {
  min-width: 120px;
  height: 35px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: bold;
  font-stretch: normal;
  font-style: normal;
  line-height: normal;
  letter-spacing: normal;
  text-align: center;
  padding-left: 15px;
  padding-right: 15px;
}

.btn-primary {
  color: #fdfdfe;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.2);
  border: solid 1px var(--blue-darken-62);
  background-color: var(--blue-base);
}

.btn-primary:hover {
  border: solid 1px var(--blue-darken-55);
  background-color: var(--blue-darken-62);
}

.btn-primary:active {
  border: solid 1px var(--blue-darken-48);
  background-color: var(--blue-darken-55);
}

.btn-primary:disabled {
  box-shadow: none;
  border: solid 1px var(--blue-lighten-82);
  background-color: var(--blue-lighten-75);
  color: rgba(253, 253, 254, 0.8);
}

.btn-secondary {
  color: var(--grey-darken-33);
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.1);
  border: solid 1px var(--silver-darken-80);
  background-color: var(--silver-base);
}

.btn-secondary:hover {
  background-color: var(--silver-darken-94);
}

.btn-secondary:active {
  background-color: var(--silver-darken-87);
}

.btn-secondary:disabled {
  box-shadow: none;
  border: solid 1px var(--silver-darken-87);
  background-color: var(--silver-base);
  color: rgba(83, 83, 83, 0.5);
}

.btn + .btn {
  margin-left: 15px;
}

/* </buttons> */

/* <modal> */

.modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 501;
}

.diagram-dialog-shift {
  top: 150px;
}

.modal:before {
  content: '';
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  background: #666;
  opacity: .2;
  z-index: 1001;
}

.modal-dialog {
  position: fixed;
  left: 0;
  right: 0;

  width: 850px;

  margin: 10vh auto 6vh;
  padding: 0;
  z-index: 1001;

  /* ensures round corners are properly cut */
  overflow: hidden;
  border: solid 1px var(--silver-darken-87);
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);

  background-color: var(--silver-lighten-99);
  color: var(--grey-darken-33);
}

.modal-content,
.modal-content > form {
  display: flex;
  flex: auto;
  flex-direction: column;

  max-height: 84vh;
}

.modal-header {
  padding: 20px 60px 20px 20px;

  background-color: var(--silver-base);
  font-size: 16px;

  border-bottom: solid 1px var(--silver-darken-87);
}

.modal-title {
  margin: 0;

  font-size: 16px;
  font-weight: bold;
}

.modal-body {
  padding: 10px 30px 20px 20px;

  overflow-y: auto;

  font-size: 14px;
}

.modal-footer {
  padding: 15px 20px;

  border-top: solid 1px var(--silver-darken-87);

  text-align: right;
}

.modal-dialog .close {
  position: absolute;
  top: 20px;
  right: 20px;

  width: 22px;
  height: 22px;
  padding: 0;

  border: none;
  border-radius: 3px;
  background-color: transparent;
}

.modal-dialog .close:hover {
  background-color: var(--silver-darken-94);
}

.modal-dialog .close:focus {
  background-color: var(--silver-darken-87);
}

/* </modal> */

/* <treeView> */

.tree-view {
  width: 100%;
}

.tree-view-head {
  display: flex;
}

.tree-view-input {
  width: 100%;
}

.tree-view-head .tree-view-opener {
  position: static;
  width: auto;
  margin: 17px 0 3px 6px;
}

.tree-view-body {
  margin: 0;
  padding: 0;
}

.tree-view ul {
  list-style-type: none;
}

.tree-view-caret {
  color: black;
  display: inline-block;
  margin-right: 6px;
  cursor: pointer;
}

.tree-view-caret-down {
  transform: rotate(90deg);
}

.tree-view-item {
  cursor: default;
}

.tree-view-item-image, .tree-view-folder-image {
  margin: -5px 5px -3px;
}

.tree-view-image-position {
  margin: -5px 5px -3px;
}

.tree-view-not-node-item {
  margin-left: 16px;
}

.tree-view-item:hover {
  border: 1px solid #d3deed;
  background:	#dfe8ed;
}

.tree-view-expanded-node {
  display: inline-block;
}

.tree-view-foot {
  display: none;
}

.tree-view-foot .tree-view-button {
  position: static;
  width: auto;
  margin: 3px;
}

.authorization-modal-window {
  display: grid;
  margin: 10px;
  position: absolute;
  z-index: 201;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  align-items: center;
  align-content: center;
  width: 10%;
  margin-left: 42%;
}

.content_fullscreen {
  height: calc(100vh) !important;
  top: 0;
  position: relative;
  z-index: 1000;
  background-color: white;
}

.tabs .main {
  top: 0;
}

.bjs-container svg {
  cursor: auto;
}

.hidden {
  display: none !important;
}

[data-param-required]:hover:after {
  content: attr(data-param-required);
  position: absolute;
  z-index: 10000;
  color: black;
  width: 200px;
  font-size: 12px;
  top: -15px;
}

.highlight_el .djs-visual > :nth-child(1) {
  stroke-width: 5px !important;
}

.highlight_ct .djs-visual > :nth-child(1) {
  marker-start: none !important;
  marker-end: none !important;
  stroke-opacity: 0.1 !important;
  fill-opacity: 0.1 !important;
}

.highlight_ct .djs-visual > :nth-child(2) {
  fill-opacity: 0.1 !important;
  stroke-opacity: 0.1 !important;
}

.highlight_fl .djs-visual > :nth-child(1) {
  marker-start: none !important;
  marker-end: none !important;
  stroke-opacity: 0.3 !important;
  fill-opacity: 0.3 !important;
}

.tooltip-content {
  position: absolute;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
  padding: 5px 10px;
  border-radius: 5px;
  min-width: 150px;
  max-width: 410px;
  width: max-content;
  width: -moz-max-content;
  background-color: black;
  color: white;
  box-shadow: 3px 5px 10px rgba(0, 0, 0, .8);
  z-index: 10000;
  opacity: 0.8;
}

.tooltip-header {
  text-align: center;
  width: 100%;
  font-weight: bold;
  border-bottom: 1px grey solid;
  margin-bottom: 0.5em;
}

.tooltip-subheader {
  font-weight: bold;
  font-style: italic;
  margin-bottom: 0.3em;
}

.tooltip-container {
  max-height: 200px;
  min-width: 230px;
  overflow: auto;
  border-bottom: 1px grey solid;
  padding-bottom: 0.5em;
  margin-bottom: 0.5em;
}

.tooltip-line {
  width: 100%;
  display: flex;
  align-items: baseline;
}

.tooltip-key {
  display: inline-block;
  white-space: nowrap;
  text-align: center;
  width: 50%;
}

.tooltip-value {
  display: inline-block;
  overflow: hidden;
  word-wrap: break-word;
  text-align: center;
  width: 50%;
}

.iteration-step-container::-webkit-scrollbar {
  width: 2px;
  height: 4px;
}

.iteration-step-container::-webkit-scrollbar-thumb {
  border-radius: 20px;
  border: 1px solid #ccc;
}










