/* Modal styles */
/* 2019 Internet Factory ApS */

.modal_bg {
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    position: fixed;
    display: none;
    z-index: 1000;
}

.modal_window {
    top:50%;
    left:50%;
    width:100%;
    position: absolute;
    background: #fff;
    padding: 24px;
    min-width: 200px;
    min-height: 32px;
    z-index: 1001;
    box-shadow: 0px 0px 200px 0px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    transform: translatez(0);
    display:none;
}


.modal_window.fixed {
    border-radius:0;
}
.modal_window.fixed .scrollable {
    padding-right: 24px;
    margin-right: -24px;
}

.modal_window .modal_closeX {

    position: absolute;
    right: -10px;
    top: -10px;
    display: block;
    width: 32px;
    height: 32px;
    cursor: pointer;
    background: #ca002c;
    border-radius: 5px;
    transition: all .3s ease-in-out;
    z-index: 1;
    font-size: 24px;
}

.modal_window .modal_closeX:hover {
    background: #5a6268;
}

.modal_window .modal_closeX:after {
    content: "\00d7";
    color: #fff;
    font-size: 24px;
    line-height: 32px;
    font-family: 'Open Sans';
    font-weight: 700;
    position: absolute;
    width: 100%;
    text-align: center;
}

.modal_window_open_animation {
    animation-duration: .25s;
    animation-fill-mode: both;
    animation-name: modalOpen;
}

.modal_window_open_animation_left {
    animation-duration: .25s;
    animation-fill-mode: both;
    animation-name: modalOpenLeft;
}

.modal_window_open_animation_right {
    animation-duration: .25s;
    animation-fill-mode: both;
    animation-name: modalOpenRight;
}

.modal_window_close_animation {
    animation-duration: .25s;
    animation-fill-mode: both;
    animation-name: modalClose;
}

.modal_window_close_animation_left {
    animation-duration: .25s;
    animation-fill-mode: both;
    animation-name: modalCloseLeft;
}

.modal_window_close_animation_right {
    animation-duration: .25s;
    animation-fill-mode: both;
    animation-name: modalCloseRight;
}

.modal_noscroll {
    position: fixed;
    width: 100%;
    overflow-y: hidden;
}

.modal_noscroll.modal_scrollbars {
    overflow-y: scroll;
}


.modal_buttons { text-align: center; margin: 0 -10px; }
.modal_button_wrapper { margin:20px 10px 0 10px; }
.modal_buttons button { display:inline-block; }
.modal_window img { max-width:100%; height:auto; }

/* Keyframes */
@keyframes modalOpen {
  from {
    opacity: 0;
    transform: translate3d(0, 25%, 0);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes modalOpenLeft {
  from {
    opacity: 0;
    transform: translate3d(-25%, 0, 0);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes modalOpenRight {
  from {
    opacity: 0;
    transform: translate3d(25%, 0, 0);
  }

  to {
    opacity: 1;
    transform: none;
  }
}


@keyframes modalClose {
  from {
    opacity: 1;
    transform: none;
  }

  to {
    opacity: 0;
    transform: translate3d(0, 25%, 0);
  }
}

@keyframes modalCloseLeft {
  from {
    opacity: 1;
    transform: none;
  }

  to {
    opacity: 0;
    transform: translate3d(-25%, 0, 0);
  }
}

@keyframes modalCloseRight {
  from {
    opacity: 1;
    transform: none;
  }

  to {
    opacity: 0;
    transform: translate3d(25%, 0, 0);
  }
}

/* icon animations */
.modal_icon_wrapper {
    position:relative; min-width:150px; min-height:100px; overflow:hidden;
}
.modal_icon {
  width: 80px;
  height: 80px;
  border: 4px solid gray;
  -webkit-border-radius: 40px;
  border-radius: 40px;
  border-radius: 50%;
  margin: 20px auto;
  padding: 0;
  position: relative;
  box-sizing: content-box; }

.modal_icon.modal_error {
  border-color: #F27474; }
  .modal_icon.modal_error .modal_x-mark {
    position: relative;
    display: block; }
  .modal_icon.modal_error .modal_line {
    position: absolute;
    height: 5px;
    width: 47px;
    background-color: #F27474;
    display: block;
    top: 37px;
    border-radius: 2px; }
    .modal_icon.modal_error .modal_line.modal_left {
      -webkit-transform: rotate(45deg);
      transform: rotate(45deg);
      left: 17px; }
    .modal_icon.modal_error .modal_line.modal_right {
      -webkit-transform: rotate(-45deg);
      transform: rotate(-45deg);
      right: 16px; }
.modal_icon.modal_warning {
  border-color: #F8BB86; }
  .modal_icon.modal_warning .modal_body {
    position: absolute;
    width: 5px;
    height: 47px;
    left: 50%;
    top: 10px;
    -webkit-border-radius: 2px;
    border-radius: 2px;
    margin-left: -2px;
    background-color: #F8BB86; }
  .modal_icon.modal_warning .modal_dot {
    position: absolute;
    width: 7px;
    height: 7px;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    margin-left: -3px;
    left: 50%;
    bottom: 10px;
    background-color: #F8BB86; }
.modal_icon.modal_info {
  border-color: #C9DAE1; }
  .modal_icon.modal_info::before {
    content: "";
    position: absolute;
    width: 5px;
    height: 29px;
    left: 50%;
    bottom: 17px;
    border-radius: 2px;
    margin-left: -2px;
    background-color: #C9DAE1; }
  .modal_icon.modal_info::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-left: -3px;
    top: 19px;
    background-color: #C9DAE1;
    left: 50%; }
.modal_icon.modal_success {
  border-color: rgb(78 191 97); }
  .modal_icon.modal_success::before, .modal_icon.modal_success::after {
    content: '';
    -webkit-border-radius: 40px;
    border-radius: 40px;
    border-radius: 50%;
    position: absolute;
    width: 60px;
    height: 120px;
    background: white;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg); }
  .modal_icon.modal_success::before {
    -webkit-border-radius: 120px 0 0 120px;
    border-radius: 120px 0 0 120px;
    top: -7px;
    left: -33px;
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
    -webkit-transform-origin: 60px 60px;
    transform-origin: 60px 60px; }
  .modal_icon.modal_success::after {
    -webkit-border-radius: 0 120px 120px 0;
    border-radius: 0 120px 120px 0;
    top: -11px;
    left: 30px;
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
    -webkit-transform-origin: 0px 60px;
    transform-origin: 0px 60px; }
  .modal_icon.modal_success .modal_placeholder {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(19,170,57,.2);
    -webkit-border-radius: 40px;
    border-radius: 40px;
    border-radius: 50%;
    box-sizing: content-box;
    position: absolute;
    left: -4px;
    top: -4px;
    z-index: 2; }
  .modal_icon.modal_success .modal_fix {
    width: 5px;
    height: 90px;
    background-color: white;
    position: absolute;
    left: 28px;
    top: 8px;
    z-index: 1;
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg); }
  .modal_icon.modal_success .modal_line {
    height: 5px;
    background-color: rgb(78 191 97);
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 2; }
    .modal_icon.modal_success .modal_line.modal_tip {
      width: 25px;
      left: 14px;
      top: 46px;
      -webkit-transform: rotate(45deg);
      transform: rotate(45deg); }
    .modal_icon.modal_success .modal_line.modal_long {
      width: 47px;
      right: 8px;
      top: 38px;
      -webkit-transform: rotate(-45deg);
      transform: rotate(-45deg); }
.modal_icon.modal_custom {
  background-size: contain;
  border-radius: 0;
  border: none;
  background-position: center center;
  background-repeat: no-repeat; }


  @-webkit-keyframes animateSuccessTip {
    0% {
      width: 0;
      left: 1px;
      top: 19px; }
    54% {
      width: 0;
      left: 1px;
      top: 19px; }
    70% {
      width: 50px;
      left: -8px;
      top: 37px; }
    84% {
      width: 17px;
      left: 21px;
      top: 48px; }
    100% {
      width: 25px;
      left: 14px;
      top: 45px; } }

  @keyframes animateSuccessTip {
    0% {
      width: 0;
      left: 1px;
      top: 19px; }
    54% {
      width: 0;
      left: 1px;
      top: 19px; }
    70% {
      width: 50px;
      left: -8px;
      top: 37px; }
    84% {
      width: 17px;
      left: 21px;
      top: 48px; }
    100% {
      width: 25px;
      left: 14px;
      top: 45px; } }

  @-webkit-keyframes animateSuccessLong {
    0% {
      width: 0;
      right: 46px;
      top: 54px; }
    65% {
      width: 0;
      right: 46px;
      top: 54px; }
    84% {
      width: 55px;
      right: 0px;
      top: 35px; }
    100% {
      width: 47px;
      right: 8px;
      top: 38px; } }

  @keyframes animateSuccessLong {
    0% {
      width: 0;
      right: 46px;
      top: 54px; }
    65% {
      width: 0;
      right: 46px;
      top: 54px; }
    84% {
      width: 55px;
      right: 0px;
      top: 35px; }
    100% {
      width: 47px;
      right: 8px;
      top: 38px; } }

  @-webkit-keyframes rotatePlaceholder {
    0% {
      transform: rotate(-45deg);
      -webkit-transform: rotate(-45deg); }
    5% {
      transform: rotate(-45deg);
      -webkit-transform: rotate(-45deg); }
    12% {
      transform: rotate(-405deg);
      -webkit-transform: rotate(-405deg); }
    100% {
      transform: rotate(-405deg);
      -webkit-transform: rotate(-405deg); } }

  @keyframes rotatePlaceholder {
    0% {
      transform: rotate(-45deg);
      -webkit-transform: rotate(-45deg); }
    5% {
      transform: rotate(-45deg);
      -webkit-transform: rotate(-45deg); }
    12% {
      transform: rotate(-405deg);
      -webkit-transform: rotate(-405deg); }
    100% {
      transform: rotate(-405deg);
      -webkit-transform: rotate(-405deg); } }

  .animateSuccessTip {
    -webkit-animation: animateSuccessTip 0.75s;
    animation: animateSuccessTip 0.75s; }

  .animateSuccessLong {
    -webkit-animation: animateSuccessLong 0.75s;
    animation: animateSuccessLong 0.75s; }

  .modal_icon.modal_success.animate::after {
    -webkit-animation: rotatePlaceholder 4.25s ease-in;
    animation: rotatePlaceholder 4.25s ease-in; }

  @-webkit-keyframes animateErrorIcon {
    0% {
      transform: rotateX(100deg);
      -webkit-transform: rotateX(100deg);
      opacity: 0; }
    100% {
      transform: rotateX(0deg);
      -webkit-transform: rotateX(0deg);
      opacity: 1; } }

  @keyframes animateErrorIcon {
    0% {
      transform: rotateX(100deg);
      -webkit-transform: rotateX(100deg);
      opacity: 0; }
    100% {
      transform: rotateX(0deg);
      -webkit-transform: rotateX(0deg);
      opacity: 1; } }

  .animateErrorIcon {
    -webkit-animation: animateErrorIcon 0.5s;
    animation: animateErrorIcon 0.5s; }

  @-webkit-keyframes animateXMark {
    0% {
      transform: scale(0.4);
      -webkit-transform: scale(0.4);
      margin-top: 26px;
      opacity: 0; }
    50% {
      transform: scale(0.4);
      -webkit-transform: scale(0.4);
      margin-top: 26px;
      opacity: 0; }
    80% {
      transform: scale(1.15);
      -webkit-transform: scale(1.15);
      margin-top: -6px; }
    100% {
      transform: scale(1);
      -webkit-transform: scale(1);
      margin-top: 0;
      opacity: 1; } }

  @keyframes animateXMark {
    0% {
      transform: scale(0.4);
      -webkit-transform: scale(0.4);
      margin-top: 26px;
      opacity: 0; }
    50% {
      transform: scale(0.4);
      -webkit-transform: scale(0.4);
      margin-top: 26px;
      opacity: 0; }
    80% {
      transform: scale(1.15);
      -webkit-transform: scale(1.15);
      margin-top: -6px; }
    100% {
      transform: scale(1);
      -webkit-transform: scale(1);
      margin-top: 0;
      opacity: 1; } }

  .animateXMark {
    -webkit-animation: animateXMark 0.5s;
    animation: animateXMark 0.5s; }

  @-webkit-keyframes pulseWarning {
    0% {
      border-color: #F8D486; }
    100% {
      border-color: #F8BB86; } }

  @keyframes pulseWarning {
    0% {
      border-color: #F8D486; }
    100% {
      border-color: #F8BB86; } }

  .pulseWarning {
    -webkit-animation: pulseWarning 0.75s infinite alternate;
    animation: pulseWarning 0.75s infinite alternate; }

  @-webkit-keyframes pulseWarningIns {
    0% {
      background-color: #F8D486; }
    100% {
      background-color: #F8BB86; } }

  @keyframes pulseWarningIns {
    0% {
      background-color: #F8D486; }
    100% {
      background-color: #F8BB86; } }

  .pulseWarningIns {
    -webkit-animation: pulseWarningIns 0.75s infinite alternate;
    animation: pulseWarningIns 0.75s infinite alternate; }

  @-webkit-keyframes rotate-loading {
    0% {
      transform: rotate(0deg); }
    100% {
      transform: rotate(360deg); } }

  @keyframes rotate-loading {
    0% {
      transform: rotate(0deg); }
    100% {
      transform: rotate(360deg); } }

  /* Internet Explorer 9 has some special quirks that are fixed here */
  /* Icons are not animated. */

      /* Error icon */
      .modal_icon.modal_error .modal_line.modal_left {
        -ms-transform: rotate(45deg) \9; }

      .modal_icon.modal_error .modal_line.modal_right {
        -ms-transform: rotate(-45deg) \9; }

      /* Success icon */
      .modal_icon.modal_success {
        border-color: transparent\9; }

      .modal_icon.modal_success .modal_line.modal_tip {
        -ms-transform: rotate(45deg) \9; }

      .modal_icon.modal_success .modal_line.modal_long {
        -ms-transform: rotate(-45deg) \9; }

/* Toast styles */
.toast_window {
	position:absolute;
    width:100%;
	background: #d5012f;
	color:#fff;
	font-size:14px;
	font-weight:600;
	padding:16px 12px;
	text-align:center;
	z-index:99999;
	top:0;
    text-shadow: 0 1px 0 rgba(0,0,0,.5);
}
.toast_window.green { background:#6dc774; }
.toast_window a { color:#333; font-weight: 400; }

/* iPad + iPhone overrides to style statusbar */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) { body.toasted { background:#d5012f; } }
@media only screen and (max-device-width: 480px) { body.toasted { background:#d5012f; } }


/* Infobadge */

.infobadge_wrapper {
    position: absolute;
    left:24px;
    bottom:24px;
    transform:none;
    transition: all 1s cubic-bezier(0.480, 0.560, 0.070, 1.000);
}

@media only screen and (max-height: 480px) { .infobadge_wrapper { display:none !important; } }

.infobadge_wrapper.centered {
    left:50%;
    transform:translateX(-50%);
}

.infobadge {
    display:inline-block;
    position: relative;
    background:#cfcfcf; height:48px; border-radius:12px; padding:8px 0 8px 48px; box-shadow: inset 0 1px 0 rgba(0,0,0,.15);
}
.infobadge:before {
    content:'\f100f';
    font-family: 'FontAwesome';
    font-size:24px;
    font-weight: 400;
    text-align: center;
    position: absolute;
    left:5px;
    top:5px;
    width:38px;
    height:38px;
    line-height:38px;
    border-radius:10px;
    background:rgba(0,0,0,.15);
    color:#888;
    text-shadow: 0 1px 0 rgba(0,0,0,.25);
    transition: background .3s ease-in-out;
}
.infobadge.usericon:before { content: '\f007'; animation-name: fadeIn; animation-duration: 1s; color:#fff; background:#6dc774; box-shadow: inset 0 -2px 0 rgba(0,0,0,.15); }
.infobadge.printericon:before { content: '\f02f'; animation-name: bounce; animation-duration: 1s; color:#fff; background:#6dc774; box-shadow: inset 0 -2px 0 rgba(0,0,0,.15); }

.online .infobadge.onlineicon:before { content: '\f1e6'; animation-name: fadeIn; animation-duration: 1s; color:#fff; background:#6dc774; box-shadow: inset 0 -2px 0 rgba(0,0,0,.15); font-size:20px; }
.offline .infobadge.onlineicon:before { content: '\f1e6'; animation-name: fadeIn; animation-duration: 1s; color:#fff; background:#d5012f; box-shadow: inset 0 -2px 0 rgba(0,0,0,.15); font-size:20px; }
.infobadge.onlineicon.updated:before { content: '\f0ed'; }
.infobadge.onlineicon.succes:before { content: '\f00c'; }

.infobadge>div {
    width:0; height:38px;
    overflow: hidden;
    text-align: left;
    transition: all .5s cubic-bezier(0.5, 0, 0.3, 1);
}

.infobadge>div>div {
    font-size:11px; line-height: 16px; text-align: left; text-transform: uppercase; white-space: nowrap;
    padding-right:12px; display:inline-block; /* inline-block is need to make sure scrollWidth is correct - old browserbug */
}
