:root {
  --primary-color: #1565c0;
  --primary-light-color: #5e92f3;
  --primary-dark-color: #003c8f;
  --secondary-dark-color: #002171;
}

body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-height: 100vh;
}

footer {
  align-items: center;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  flex: 0;
  justify-content: center;
  min-height: 50px;
  padding: 15px;
  height: 50px;
}

footer>p {
  margin: 0;
}

/* CUSTOM CSS for PTS Information */
.green-box,
.yellow-box,
.orange-box,
.red-box,
.black-box {
  display: inline-block;
  text-align: center;
  width: 30px;
  margin-right: 2px;
}

.green-box {
  background-color: green;
  color: white;
}

.yellow-box {
  background-color: yellow;
}

.orange-box {
  background-color: orange;
}

.red-box {
  background-color: red;
  color: white;
}

.black-box {
  background-color: black;
  color: white;
}

/* end */

/* CUSTOM CSS - width of active alarms chat bubble */
.oda-chat-wrapper .oda-chat-message-bubble.oda-chat-before-card {
  width: 252px;
  max-width: 252px;
}

/* end */

/* CUSTOM CSS - Fixed width for incident timeline (Active Alarms and Search Incidents) */
.active-alarm-details-card {
  width: 72px;
  display: inline-block;
}

/* end */

.navbar {
  background-color: var(--primary-color);
  border: 1px solid transparent;
  border-radius: 0;
  display: flex;
  flex-direction: row;
  min-height: 50px;
  margin-bottom: 0;
  padding: 0 15px;
  position: relative;
}

.navbar-brand {
  color: #fff;
}

.navbar-brand:hover {
  color: #ffebee;
}

.navbar-menu {
  flex: auto;
}

.navbar-search {
  display: flex;
  flex: auto;
  justify-content: flex-end;
}

.navbar-nav>li>a {
  color: #fff;
}

.navbar-nav>li>a:hover {
  background-color: var(--primary-light-color);
  color: #fff;
}

.navbar-nav>.active>a {
  background-color: var(--primary-dark-color);
  color: #fff;
}

.navbar-nav>.active>a:hover {
  background-color: var(--primary-light-color);
}

.container {
  flex: 1;
  padding: 15px 15px 5px;
}

.posts {
  max-height: calc(100vh - 235px);
  overflow-y: auto;
  padding-right: 12px;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-light-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark-color);
}

.btn-primary:active {
  background-color: var(--secondary-dark-color);
}

.btn-primary:focus {
  background-color: var(--secondary-dark-color);
}

/* CUSTOM CSS - maximizing the width of the chat widget when opened in mobile or in a lower screen width */
.oda-chat-wrapper {
  height: 100% !important;
}

@media (min-width: 200px) and (max-width: 500px) {
  .oda-chat-wrapper .oda-chat-widget {
    height: 100% !important;
    /*calc(100vh - calc(100vh - 100%));*/
    max-height: 100% !important;
    /*calc(100vh - calc(100vh - 100%));*/
    max-width: 100vw !important;
    right: -20px !important;
    width: 100vw !important;
    transition: all 0.25s ease-in-out;
    border-radius: 0px !important;
    bottom: -20px !important;
  }
}

/* end */

.overlay-container {
  background-color: #ffffff;
  margin-bottom: -1%;
}

/* CUSTOM CSS - Spinner preloader for Inline webview */

.sk-circle {
  margin-top: 70%;
  margin-left: 40%;
  width: 40px;
  height: 40px;
  position: relative;
}

.sk-circle .sk-child {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
}

.sk-circle .sk-child:before {
  content: "";
  display: block;
  margin: 0 auto;
  width: 15%;
  height: 15%;
  background-color: #be3434;
  border-radius: 100%;
  -webkit-animation: sk-circleBounceDelay 1.2s infinite ease-in-out both;
  animation: sk-circleBounceDelay 1.2s infinite ease-in-out both;
}

.sk-circle .sk-circle2 {
  -webkit-transform: rotate(30deg);
  -ms-transform: rotate(30deg);
  transform: rotate(30deg);
}

.sk-circle .sk-circle3 {
  -webkit-transform: rotate(60deg);
  -ms-transform: rotate(60deg);
  transform: rotate(60deg);
}

.sk-circle .sk-circle4 {
  -webkit-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  transform: rotate(90deg);
}

.sk-circle .sk-circle5 {
  -webkit-transform: rotate(120deg);
  -ms-transform: rotate(120deg);
  transform: rotate(120deg);
}

.sk-circle .sk-circle6 {
  -webkit-transform: rotate(150deg);
  -ms-transform: rotate(150deg);
  transform: rotate(150deg);
}

.sk-circle .sk-circle7 {
  -webkit-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  transform: rotate(180deg);
}

.sk-circle .sk-circle8 {
  -webkit-transform: rotate(210deg);
  -ms-transform: rotate(210deg);
  transform: rotate(210deg);
}

.sk-circle .sk-circle9 {
  -webkit-transform: rotate(240deg);
  -ms-transform: rotate(240deg);
  transform: rotate(240deg);
}

.sk-circle .sk-circle10 {
  -webkit-transform: rotate(270deg);
  -ms-transform: rotate(270deg);
  transform: rotate(270deg);
}

.sk-circle .sk-circle11 {
  -webkit-transform: rotate(300deg);
  -ms-transform: rotate(300deg);
  transform: rotate(300deg);
}

.sk-circle .sk-circle12 {
  -webkit-transform: rotate(330deg);
  -ms-transform: rotate(330deg);
  transform: rotate(330deg);
}

.sk-circle .sk-circle2:before {
  -webkit-animation-delay: -1.1s;
  animation-delay: -1.1s;
}

.sk-circle .sk-circle3:before {
  -webkit-animation-delay: -1s;
  animation-delay: -1s;
}

.sk-circle .sk-circle4:before {
  -webkit-animation-delay: -0.9s;
  animation-delay: -0.9s;
}

.sk-circle .sk-circle5:before {
  -webkit-animation-delay: -0.8s;
  animation-delay: -0.8s;
}

.sk-circle .sk-circle6:before {
  -webkit-animation-delay: -0.7s;
  animation-delay: -0.7s;
}

.sk-circle .sk-circle7:before {
  -webkit-animation-delay: -0.6s;
  animation-delay: -0.6s;
}

.sk-circle .sk-circle8:before {
  -webkit-animation-delay: -0.5s;
  animation-delay: -0.5s;
}

.sk-circle .sk-circle9:before {
  -webkit-animation-delay: -0.4s;
  animation-delay: -0.4s;
}

.sk-circle .sk-circle10:before {
  -webkit-animation-delay: -0.3s;
  animation-delay: -0.3s;
}

.sk-circle .sk-circle11:before {
  -webkit-animation-delay: -0.2s;
  animation-delay: -0.2s;
}

.sk-circle .sk-circle12:before {
  -webkit-animation-delay: -0.1s;
  animation-delay: -0.1s;
}

@-webkit-keyframes sk-circleBounceDelay {

  0%,
  80%,
  100% {
    -webkit-transform: scale(0);
    transform: scale(0);
  }

  40% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}

@keyframes sk-circleBounceDelay {

  0%,
  80%,
  100% {
    -webkit-transform: scale(0);
    transform: scale(0);
  }

  40% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}

/* end */

/* CUSTOM CSS for Modal Popup */
.cb-popup {
  position: fixed;
  left: 0;
  top: 5%;
  bottom: 20%;
  right: 0;
  width: 60%;
  height: 90%;
  z-index: 2;
  margin: 0 auto;
  background: #fff;
  border-radius: 14px;
  display: none;
}

.cb-popup-bg {
  display: none;
  position: fixed;
  background: rgba(0, 0, 0, 0.4);
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 20000;
}

.cb-popup-body {
  padding: 2%;
  height: 100%;
}

.cb-popup-header {
  padding-left: 5px;
  background: #920000;
  font-weight: 700;
  border-radius: 14px 14px 0 0;
  color: #ffffff;
  font-family: "Calibri", "Gill Sans", "Gill Sans MT";
  height: 6%;
  text-align: left;
  display: flex;
  align-items: center;
}

/* end */


.oda-chat-wrapper .oda-chat-card .oda-chat-card-description {
  margin-bottom: 0 !important;
  color: var(--color-text-light);
}

/* CUSTOM CSS - smaller font size for the incident timeline */
.small-msg {
  font-size: 14px !important;
}

/* end */

/* CUSTOM CSS - smaller margin for global action buttons */
.oda-chat-wrapper .oda-chat-card-actions:not(.oda-chat-col) .oda-chat-action-postback, .oda-chat-wrapper .oda-chat-form-actions:not(.oda-chat-col) .oda-chat-action-postback, .oda-chat-wrapper .oda-chat-message-actions:not(.oda-chat-col) .oda-chat-action-postback, .oda-chat-wrapper .oda-chat-message-global-actions:not(.oda-chat-col) .oda-chat-action-postback {
  margin-right: 5px!important;
}

/* end */

p {
  margin: 0 !important;
}

/* CUSTOM CSS - Download report button */
.new_class_download_report_button button {
  background-color: white;
  font-size: 13px !important;
  color: var(--color-actions-text);
  border-color: var(--color-actions-border);
}

.new_class_download_report_button button:hover {
  color: var(--color-actions-text-hover);
  background-color: var(--color-actions-background-hover);
}
/* end */

.oda-chat-wrapper .oda-chat-footer-button.oda-chat-button-send {
  background: none !important;
}


.oda-chat-action-postback.oda-chat-flex {
  font-size: 13px;
}

@keyframes slide-in {
  0% {
    opacity: 0;
    -webkit-transform: translate(0, 60px);
    transform: translate(0, 60px);
  }

  100% {
    opacity: 1;
    -webkit-transform: translate(0, 0);
    transform: translate(0, 0);
  }
}

@keyframes slide-out {
  0% {
    opacity: 1;
    -webkit-transform: translate(0, 0);
    transform: translate(0, 0);
  }

  100% {
    opacity: 0;
    -webkit-transform: translate(0, 50px);
    transform: translate(0, 50px);
  }
}

/* CUSTOM CSS - Spinner Preloader for Modal webview */
.spinner {
  color: #be3434;
  /* Change color to red */
  margin-top: 25% !important;
  font-size: 8px;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  position: relative;
  text-indent: -9999em;
  animation: mulShdSpin 1.3s infinite linear;
  transform: translateZ(0);
  margin: 0 auto;
  /* Center horizontally */
  display: flex;
  justify-content: center;
  align-items: center;
  /* Center vertically */
}


@keyframes mulShdSpin {

  0%,
  100% {
    box-shadow: 0 -3em 0 0.2em,
      2em -2em 0 0em, 3em 0 0 -1em,
      2em 2em 0 -1em, 0 3em 0 -1em,
      -2em 2em 0 -1em, -3em 0 0 -1em,
      -2em -2em 0 0;
  }

  12.5% {
    box-shadow: 0 -3em 0 0, 2em -2em 0 0.2em,
      3em 0 0 0, 2em 2em 0 -1em, 0 3em 0 -1em,
      -2em 2em 0 -1em, -3em 0 0 -1em,
      -2em -2em 0 -1em;
  }

  25% {
    box-shadow: 0 -3em 0 -0.5em,
      2em -2em 0 0, 3em 0 0 0.2em,
      2em 2em 0 0, 0 3em 0 -1em,
      -2em 2em 0 -1em, -3em 0 0 -1em,
      -2em -2em 0 -1em;
  }

  37.5% {
    box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em,
      3em 0em 0 0, 2em 2em 0 0.2em, 0 3em 0 0em,
      -2em 2em 0 -1em, -3em 0em 0 -1em, -2em -2em 0 -1em;
  }

  50% {
    box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em,
      3em 0 0 -1em, 2em 2em 0 0em, 0 3em 0 0.2em,
      -2em 2em 0 0, -3em 0em 0 -1em, -2em -2em 0 -1em;
  }

  62.5% {
    box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em,
      3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 0,
      -2em 2em 0 0.2em, -3em 0 0 0, -2em -2em 0 -1em;
  }

  75% {
    box-shadow: 0em -3em 0 -1em, 2em -2em 0 -1em,
      3em 0em 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em,
      -2em 2em 0 0, -3em 0em 0 0.2em, -2em -2em 0 0;
  }

  87.5% {
    box-shadow: 0em -3em 0 0, 2em -2em 0 -1em,
      3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em,
      -2em 2em 0 0, -3em 0em 0 0, -2em -2em 0 0.2em;
  }
}

/* end */