html, body {
  position: relative;
  width: 100%;
  height: 100%;
}

body {
  /*background-image: linear-gradient(rgba(90, 86, 150, 1), rgba(148, 86, 150, 1));*/
  /*display: flex;*/
  margin: 0;

  font-family: Roboto, sans-serif;
  font-display: swap;

  /*background-color: #464646;*/
  min-height: 100vh;

  /*background-image: var(--orderer-background-image-url);*/
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  background-size: cover;
  background-color: #6b6b7b;
}

:root {
  --mdc-theme-primary: #069;

  /* orderer colors */
  --orderer-background-color: #006699;
  --orderer-foreground-color: white;
  --orderer-background-image-url: url("/assets/orderer_background1.jpg");

  /* worker colors */
  --worker-background-color: #ff9800;
  --worker-foreground-color: black;

  /* logo url */
  --logo-url: url("/assets/worker-logo.png");

  --home-hexagon-pilot: url("/assets/hexagon-blue.svg") no-repeat;
  --home-hexagon-applicants: url("/assets/hexagon-orange.svg") no-repeat;
  --home-hexagon-ongoing: url("/assets/hexagon-turquoise.svg") no-repeat;

  --list-item-color: #ff9900;

  --order-status-cancelled-by-orderer: #c4c4c4;
  --order-status-cancelled-by-worker: #c4c4c4;
  --order-status-cancelled-by-admin: #c4c4c4;
  --order-status-not-approved: #ffcece;
  --order-status-completed: #c7e5c7;


  --home-hexa-pilot: #006699;
  --home-hexa-apps: #FF9900;
  --home-hexa-ongoing: #009999;

  --home-hexa-pilot-hover: #007bb5;
  --home-hexa-apps-hover: #ffaa2b;
  --home-hexa-ongoing-hover: #00a8a8;

  /* shared orderer colors */
  --shared-order-header-color: #ff9800;
  --shared-order-header-line-color: #006699;
  --shared-order-background-color: white;
  --shared-order-logo-url: url("/common/workpilots/images/login-logo.png");

  --global-box-shadow: 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12), 0 11px 15px -7px rgba(0, 0, 0, 0.2);


  --invalid-color: #b00020;
  --button_background_color: #006699;
  --button_text_color: white;
}

.mdc-button--oval{
  color: var(--button_text_color) !important;
  background-color: var(--button_background_color) !important;
}

.mdc-button--raised:not(:disabled), .mdc-button--unelevated:not(:disabled) {
  color: var(--button_text_color) ;
}

.mdc-button--raised:not(:disabled), .mdc-button--unelevated:not(:disabled) {
  background-color: var(--button_background_color);
}

.mdc-button--outlined:not(:disabled) {
  color: var(--button_background_color);
  border-color: var(--button_background_color);
}


/*body.orderer {*/
/*  background-image: var(--orderer-background-image-url);*/
/*}*/

/*body.worker {*/
/*  background-image: var(--worker-background-image-url);*/
/*}*/

/* main html tag related
************************/

.main--global {
  margin-top: 3rem !important;
  padding: 2rem 1rem;
  background: #fff;
  border-radius: 10px;
  -webkit-box-shadow: var(--global-box-shadow);
  -moz-box-shadow: var(--global-box-shadow);
  box-shadow: var(--global-box-shadow);
}


 /* Hexa stuff
 ************/

.home-hexa {
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5));
}

.home-hexa-pilot {
  fill: var(--home-hexa-pilot);
}

.home-hexa-pilot:hover {
  fill: var(--home-hexa-pilot-hover);
  filter: drop-shadow(0px 5px 5px rgba(0, 0, 0, 0.5));
}

.home-hexa-apps {
  fill: var(--home-hexa-apps);
}

.home-hexa-apps:hover {
  fill: var(--home-hexa-apps-hover);
  filter: drop-shadow(0px 5px 5px rgba(0, 0, 0, 0.5));
}

.home-hexa-ongoing {
  fill: var(--home-hexa-ongoing);
}

.home-hexa-ongoing:hover {
  fill: var(--home-hexa-ongoing-hover);
  filter: drop-shadow(0px 5px 5px rgba(0, 0, 0, 0.5));
}


 /* MDC stuff
 ************/

.snack-success {
  background-color: #86d651;
  border-radius: 2px;
  color: black;
}

.snack-info {
  background-color: #FFB952;
  border-radius: 2px;
  color: black;
}

.snack-error {
  background-color: #bf3737;
  border-radius: 2px;
  color: white;
}

.mdc-checkbox__native-control:enabled:checked ~ .mdc-checkbox__background, .mdc-checkbox__native-control:enabled:indeterminate ~ .mdc-checkbox__background {
  border-color: var(--mdc-theme-primary, #069);
  background-color: var(--mdc-theme-primary, #069);
}

.mdc-dialog .mdc-dialog__surface {
  border-radius: 7px;
}

.mdc-select__menu .mdc-list .mdc-list-item--selected {
  white-space: nowrap;
}

:not(.mdc-list--non-interactive) > :not(.mdc-list-item--disabled).mdc-list-item {
  white-space: nowrap;
}

.mdc-text-field--focused:not(.mdc-text-field--disabled) .mdc-floating-label {
  color: var(--mdc-theme-primary, #069);
}

.mdc-select:not(.mdc-select--disabled).mdc-select--focused .mdc-floating-label {
  color: var(--mdc-theme-primary, #069);
}

.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label {
  color: #b00020;
  color: var(--mdc-theme-error, #b00020);
}

.mdc-switch.mdc-switch--checked .mdc-switch__thumb {
  background-color: var(--mdc-theme-primary, #069);
  border-color: var(--mdc-theme-primary, #069);
}

.mdc-switch.mdc-switch--checked .mdc-switch__track {
  background-color: var(--mdc-theme-primary, #069);
  border-color: var(--mdc-theme-primary, #069);
}

/* Chat
**************/

.overflow-fade {
  max-height: 400px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(rgba(0, 0, 0, 1) 95%, transparent);
}

 /* Scrollbar
 **************/

::-webkit-scrollbar {
  width: 8px;
  overflow-x: auto;
}

::-webkit-scrollbar:horizontal {
  height: 7px;
}

::-webkit-scrollbar-thumb {
  -webkit-border-radius: 2px;
  border-radius: 2px;
  background: #898989;
}

::-webkit-scrollbar-thumb:window-inactive {
  background: rgba(95, 95, 95, 0.4);
}

::-webkit-scrollbar-button, ::-webkit-scrollbar-corner, ::-webkit-scrollbar-track, ::-webkit-scrollbar-track-piece, ::-webkit-resizer {
  display: none;
}

.notification-list:hover::-webkit-scrollbar {
  width: 12px;
}

.notification-list::-webkit-scrollbar {
  width: 6px;
  overflow-x: auto;
}

 /* Tooltip
 ************/

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltip-text {
  visibility: hidden;
  width: 120px;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
}

.tooltip .tooltip-top {
  position: absolute;
  z-index: 1;
  bottom: 100%;
  left: 50%;
  margin-left: -60px;
}

.tooltip .tooltip-right {
  position: absolute;
  z-index: 1;
  top: -5px;
  left: 105%;
}

.tooltip .tooltip-left {
  position: absolute;
  z-index: 1;
  top: -5px;
  right: 105%;
}

.tooltip .tooltip-bottom {
  position: absolute;
  z-index: 1;
  top: 100%;
  left: 50%;
  margin-left: -60px;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
}

.tooltip-link {
  position: relative;
  font-size: 12px;
  top: -60px;
  opacity: 0;
  animation: transition_in 0.5s;
  animation-delay: 0.5s;
  animation-fill-mode: forwards;
}

.tooltip-link .tooltip-text2 {
  background-color: #f2f5d0;;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px 8px;
  box-shadow: 1px 1px 3px 1px rgba(0, 0, 0, 0.3);
  line-height: 15px;
}

.tooltip-link .tooltip-top2 {
  position: absolute;
  z-index: 1;
  right: 0;
}

.md-tooltip {
  height: 16px;
  left: 45px;
  position: absolute;
  bottom: -35px;
  padding: 8px;
  transform: scale(0);
  transition: transform 0.2s ease-in-out;
  transform-origin: center;
  background: #616161e6;
  color: white;
  border-radius: 3px;
  font-size: 12px;
  font-family: Roboto, sans-serif;
  font-weight: 400;
}

/*.md-tooltip--right:before {*/
/*  left: auto;*/
/*  right: -10px;*/
/*  bottom: auto;*/
/*  top: 50%;*/
/*  transform: translate(100%, -50%) scale(0);*/
/*  transform-origin: center;*/
/*}*/

.md-tooltip--center:before {
  left: auto;
  right: -10px;
  bottom: auto;
  top: 50%;
  transform: translate(100%, -50%) scale(0);
  transform-origin: center;
}

[data-tooltip] {
  position: relative;
  display: block;
}

[data-tooltip]:before,
[data-tooltip]:after {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: .2s ease-out;
  transform: translate(-50%, 5px)
}

[data-tooltip]:before {
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-bottom: 5px;
  padding: 7px;
  width: 100%;
  min-width: 70px;
  max-width: 250px;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  background-color: #000;
  background-color: hsla(0, 0%, 20%, 0.9);
  color: #fff;
  content: attr(data-tooltip);
  text-align: center;
  font-size: 12px;
  line-height: 1.2;
  transition: .2s ease-out
}

[data-tooltip]:after {
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 0;
  border-top: 5px solid #000;
  border-top: 5px solid hsla(0, 0%, 20%, 0.9);
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
  content: " ";
  font-size: 0;
  line-height: 0;
}

[data-tooltip]:hover:before,
[data-tooltip]:hover:after {
  z-index: 2;
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0)
}
[data-tooltip=false]:hover:before,
[data-tooltip=false]:hover:after {
  visibility: hidden;
  opacity: 0;
}

/* Tutorial
************/

.shepherd-home {
  /* margin-top: 45px !important; */
  padding: 10px !important;
 /* animation: MoveUpDown ease-in-out; */
  animation-duration: 2s;
  animation-iteration-count: 3;
}

.shepherd-header {
  background: transparent !important;
  padding: 0 !important;
  padding-left: 0.75em !important;
}

.shepherd-additional {
  transition: opacity 1.3s,visibility 1.3s !important;
  box-shadow: 1px 19px 17px 1px rgb(0 0 0 / 20%) !important;
  font-size: 1.1rem !important;
  line-height: 1.3em;
  padding: 0.75em;
  /*font-style: italic !important;*/
  border: #444E59 5px solid;
  color: #444E59 !important;
  z-index: 2147483648 !important;
}

.shepherd-title {
  color: #444E59 !important;
}

.shepherd-text {
  color: #444E59 !important;
  white-space: pre-line;
}

.shepherd-button {
  color: #444E59 !important;
  background-color: transparent !important;
  height: 36px;
  /*box-shadow: 0px 3px 1px -2px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%), 0px 1px 5px 0px rgb(0 0 0 / 12%); */
  transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
  font-family: Roboto, sans-serif;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  font-size: .875rem;
  line-height: 2.25rem;
  font-weight: 500;
  letter-spacing: .0892857143em;
  text-decoration: none;
  text-transform: uppercase;
  padding: 0 8px 0 8px;
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 64px;
  border: none;
  outline: none;
  vertical-align: middle;
  border-radius: 4px;
  padding: 0 !important;
}

.shepherd-footer {
  align-items: center;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  display: flex;
  justify-content: space-between;
  padding: 0 .75rem .75rem;

/*  .shepherd-button:last-child {
    margin-right: 0;
  }

  .shepherd-progress {
    font-size: .8rem;
  }*/
}

.shepherd-progress-bar {
  position: absolute !important;
  left: 6% !important;
  bottom: unset !important;
  font-size: 14px;
  border-radius: 3px;
  height: 12px;
  width: 100%;
  max-width: 180px;
  padding: 3px;
  background: #f5f5e6 !important;
}

.shepherd-progress-bar span {
  display: block;
  background: #444E59 !important;
  width: 50%;
  height: 100%;
  border-radius: 9px;
}

.shepherd-cancel-icon {
  background: transparent;
  border: none;
  color: #444E59 !important;
  font-size: 1em !important;
  cursor: pointer;
  font-weight: 400;
  margin: 0;
  padding: 0;
  transition: color .5s ease;
/*  margin-top: -21px !important;*/
}

/* Utility classes
 *******************/

.hidden {
  display: none;
}

.hidden-visually {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  border: 0;
}

/* Spinner
***********/

.lds-spinner {
  /*
  color: white;
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
  */

  left: 50%;
  top: 50%;
  position: fixed;
}
.lds-spinner div {
  transform-origin: 40px 40px;
  animation: lds-spinner 1.2s linear infinite;
}
.lds-spinner div:after {
  content: " ";
  display: block;
  position: absolute;
  top: 3px;
  left: 37px;
  width: 6px;
  height: 18px;
  border-radius: 20%;
  background: #fff;
}
.lds-spinner div:nth-child(1) {
  transform: rotate(0deg);
  animation-delay: -1.1s;
}
.lds-spinner div:nth-child(2) {
  transform: rotate(30deg);
  animation-delay: -1s;
}
.lds-spinner div:nth-child(3) {
  transform: rotate(60deg);
  animation-delay: -0.9s;
}
.lds-spinner div:nth-child(4) {
  transform: rotate(90deg);
  animation-delay: -0.8s;
}
.lds-spinner div:nth-child(5) {
  transform: rotate(120deg);
  animation-delay: -0.7s;
}
.lds-spinner div:nth-child(6) {
  transform: rotate(150deg);
  animation-delay: -0.6s;
}
.lds-spinner div:nth-child(7) {
  transform: rotate(180deg);
  animation-delay: -0.5s;
}
.lds-spinner div:nth-child(8) {
  transform: rotate(210deg);
  animation-delay: -0.4s;
}
.lds-spinner div:nth-child(9) {
  transform: rotate(240deg);
  animation-delay: -0.3s;
}
.lds-spinner div:nth-child(10) {
  transform: rotate(270deg);
  animation-delay: -0.2s;
}
.lds-spinner div:nth-child(11) {
  transform: rotate(300deg);
  animation-delay: -0.1s;
}
.lds-spinner div:nth-child(12) {
  transform: rotate(330deg);
  animation-delay: 0s;
}
@keyframes lds-spinner {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

 /* Anims
 ************/

.fade-in {
  animation: transition_in 0.5s;
}

.fade-out {
  animation: transition_out 0.5s;
}

.blur {
  filter: blur(2px);
}

.anim-width {
  animation: anim_width 0.3s;
  animation-timing-function: ease-in;
}

.move-in {
  animation: transform_in 1s;
}

.move-out {
  animation: transform_out 1s;
}

.flip {
 transform: rotateY(180deg);
 /* animation: flip-anim;*/
}

@keyframes MoveUpDown {
  0%, 100% {
    top: 0;
  }
  50% {
    top: 10px;
  }
}

@keyframes flip-anim {
  0%{
    transform: rotateY(0deg);
  }
  50%{
    transform: rotateY(90deg);
  }
  100%{
    transform: rotateY(180deg);
    display: none;
  }
}

.roll-out {
  animation: roll 2s ease-in-out forwards;
  overflow: hidden;
  max-height: 0;
}

.roll-in {
  animation: rollin 2s ease forwards;
  transform-style: preserve-3d;
  -webkit-transform-origin: 50% 0;
  -moz-transform-origin: 50% 0;
  transform-origin: 50% 0;
}

.delay1 {
  opacity: 0;
  animation-delay: 0.5s;
}

.delay2 {
  opacity: 0;
  animation-delay: 1s;
}

.delay3 {
  opacity: 0;
  animation-delay: 1.15s;
}

.slideUp {
  animation: bottomUp 2s linear;
  opacity: 1;
  overflow: hidden;
}

.slideInLeft {
  animation: slideInFromleft 5s linear;
  opacity: 1;
  overflow: hidden;
}

.slideInRight {
  animation: slideInFromRight 5s linear;
  opacity: 1;
  overflow: hidden;
}

.fade-in-long {
  animation: transition_in 2.5s;
}

.animated {
  animation-duration: 9s;
  animation-fill-mode: forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.bounceInLeft {
  -webkit-animation-name: bounceInLeft;
  animation-name: bounceInLeft;
}

.bounceInRight {
  -webkit-animation-name: bounceInRight;
  animation-name: bounceInRight;
}

@keyframes bounceInLeft {
  0% {
    opacity: 0;
    transform: translateX(-2000px);
  }
  6% {
    opacity: 1;
    transform: translateX(30px);
  }
  8% {
    transform: translateX(-10px);
  }
  10% {
    transform: translateX(0);
  }
  40% {
    opacity: 1;
    transform: translateX(0);
  }

  from,to {
    opacity: 1
  }
}

@keyframes bounceInRight {
  0% {
    opacity: 0;
    transform: translateX(+2000px);
  }
  6% {
    opacity: 1;
    transform: translateX(-30px);
  }
  8% {
    transform: translateX(+10px);
  }
  10% {
    transform: translateX(0);
  }
  40% {
    opacity: 1;
    transform: translateX(0);
  }

  from,to {
    opacity: 1
  }
}

@keyframes fade-in-kf {
  from {
    background: rgba(255, 255, 255, 0);
  }
  to {
    background: rgba(255, 255, 255, 0.55);
  }
}

@keyframes rollin {
  from {
    opacity: 0;
    transform: rotateX(-60deg);
  }
  to {
    opacity: 1;
    transform: rotateX(0deg);
  }
}

@keyframes roll {
  from { max-height: 0; }
  to { max-height: 1500px; }
}

@keyframes show_up {
  99% {
    visibility: hidden;
  }
  100% {
    visibility: visible;
  }
}

@keyframes transition_in {
  from {
    opacity: 0;
    transform: rotateX(-10deg);
  }
  to {
    opacity: 1;
    transform: rotateX(0);
  }
}

@keyframes transition_out {
  from {
    opacity: 0;
    transform: rotateX(0);
  }
  to {
    opacity: 1;
    transform: rotateX(-10deg);
  }
}

@keyframes anim_width {
  from {
    width: 60px;
  }
  to {
    width: 260px;
  }
}

@keyframes transform_in {
  from {
    opacity: 0;
    transform: translateX(+20px);
  }
  to {
    opacity: 1;
    transform: translateX(0px);
  }
}

@keyframes transform_out {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0px);
  }
}

@keyframes bottomUp {
  0% { opacity: 0; }
  5% { opacity: 0; -webkit-transform: translateY(+50px); }
  10% { opacity: 1; -webkit-transform: translateY(0px); }
}

@keyframes slideInFromleft {
  0% { opacity: 0; }
  5% { opacity: 0; -webkit-transform: translateX(+50px); }
  10% { opacity: 1; -webkit-transform: translateX(0px); }
}

@keyframes slideInFromRight {
  0% { opacity: 0; }
  5% { opacity: 0; -webkit-transform: translateX(-50px); }
  10% { opacity: 1; -webkit-transform: translateX(0px); }
}

.invalid-label {
  width: 100%;
  color: indianred !important;
}

.invalid-label:after {
  content: 'Required field!';
  font-size: 0.8em;
  color: indianred;
  float: right;
}

/* Mobile Mode
************************************/

@media screen and (max-width: 768px) {
  .main--global {
    border-radius:  0;
  }
}