body {
  margin: 0;
}

.m-t-0 {
  margin-top: 0 !important;
}

.m-t-1 {
  margin-top: 20px !important;
}

.m-t-2 {
  margin-top: 40px !important;
}

.m-b-0 {
  margin-bottom: 0 !important;
}

.m-b-1 {
  margin-bottom: 20px !important;
}

.m-b-2 {
  margin-bottom: 40px !important;
}

.p-t-0 {
  padding-top: 0 !important;
}

.p-t-1 {
  padding-top: 20px !important;
}

.p-t-2 {
  padding-top: 40px !important;
}

.p-b-0 {
  padding-bottom: 0 !important;
}

.p-b-1 {
  padding-bottom: 20px !important;
}

.p-b-2 {
  padding-bottom: 40px !important;
}

.jumbotron {
  border-radius: 0 !important;
  -webkit-border-radius: 0 !important;
  -moz-border-radius: 0 !important;
}

.jumbotron > .jumbotron-photo img {
  border-radius: 0 !important;
  -webkit-border-radius: 0 !important;
  -moz-border-radius: 0 !important;
}

.page-host > .container {
  /*min-height: 50%;*/
}

.signin {
  min-width: 250px;
  padding: 14px 14px 0;
  overflow: hidden;
  background-color: rgba(255, 255, 255, .8);
}

.signin .btn.btn-link {
  color: #3bafda;
  padding: 0;
}

.signin .bottom {
  background-color: rgba(255, 255, 255, .8);
  border-top: 1px solid #ddd;
  clear: both;
  padding: 14px;
}

.signin .form-group {
  margin-bottom: 10px;
}

.splash {
  text-align: center;
  box-sizing: border-box;
}

.splash .loader {
  transform: translateY(-50%) translateX(-50%);
  top: 50%;
  position: absolute;
  display: inline-block;
}

.splash .message {
  font-size: 72px;
  line-height: 72px;
  text-shadow: rgba(0, 0, 0, 0.5) 0 0 15px;
  text-transform: uppercase;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.splash .fa-spinner {
  text-align: center;
  display: inline-block;
  font-size: 72px;
  margin-top: 50px;
}

.page-host {
  position: absolute;
  left: 0;
  right: 0;
  top: 50px;
  bottom: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.languageSelect {
  background-color: white;
  height: 34px;
  padding: 6px 24px 6px 12px;
  font-size: 16px;
  color: black;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  font-family: Helvetica Neue,Helvetica,Arial,sans-serif;
}

h1 > div, h2 > div, h3 > div {
  padding-left: 0 !important;
}

h3 input {
  font-weight: normal;
}

.clickable {
  cursor: pointer;
}

@media print {
  .page-host {
    position: absolute;
    left: 10px;
    right: 0;
    top: 50px;
    bottom: 0;
    overflow-y: inherit;
    overflow-x: inherit;
  }
}

section {
  margin: 0 20px;
}

.navbar-nav li.loader {
  margin: 12px 24px 0 6px;
}

.pictureDetail {
  max-width: 425px;
}

/* animate page transitions */
section.au-enter-active {
  -webkit-animation: fadeInRight 1s;
  animation: fadeInRight 1s;
}

div.au-stagger {
  /* 50ms will be applied between each successive enter operation */
  -webkit-animation-delay: 50ms;
  animation-delay: 50ms;
}

/* animation definitions */
@-webkit-keyframes fadeInRight {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(100%, 0, 0);
    transform: translate3d(100%, 0, 0)
  }
  100% {
    opacity: 1;
    -webkit-transform: none;
    transform: none
  }
}

@keyframes fadeInRight {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(100%, 0, 0);
    -ms-transform: translate3d(100%, 0, 0);
    transform: translate3d(100%, 0, 0)
  }
  100% {
    opacity: 1;
    -webkit-transform: none;
    -ms-transform: none;
    transform: none
  }
}

@-webkit-keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.text-large {
  font-size: large;
}

.text-x-large {
  font-size: x-large;
}

.pill-left {
  border-bottom-left-radius: 100px;
  border-top-left-radius: 100px;
}

.pill-right {
  border-bottom-right-radius: 100px;
  border-top-right-radius: 100px;
}

.tags {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags li, .tags a, .tags .tag {
  float: left;
  height: 18px;
  line-height: 16px;
  position: relative;
  font-size: 11px;
}

.tags a, .tags .tag {
  margin: 2px;
  margin-left: 14px;
  padding: 0 6px 0 8px;
  background: #0089e0;
  color: #fff;
  text-decoration: none;
  -moz-border-radius-bottomright: 3px;
  -webkit-border-bottom-right-radius: 3px;
  border-bottom-right-radius: 3px;
  -moz-border-radius-topright: 3px;
  -webkit-border-top-right-radius: 3px;
  border-top-right-radius: 3px;
}

.tags a:before, .tags .tag:before {
  content: "";
  float: left;
  position: absolute;
  top: 0;
  left: -9px;
  width: 0;
  height: 0;
  border-color: transparent #0089e0 transparent transparent;
  border-style: solid;
  border-width: 9px 9px 9px 0;
}

.tags a:after, .tags .tag:after {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  float: left;
  width: 4px;
  height: 4px;
  -moz-border-radius: 2px;
  -webkit-border-radius: 2px;
  border-radius: 2px;
  background: #fff;
  -moz-box-shadow: -1px -1px 2px #004977;
  -webkit-box-shadow: -1px -1px 2px #004977;
  box-shadow: -1px -1px 2px #004977;
}

.tags a:hover {
  background: #555;
}

.tags a:hover:before {
  border-color: transparent #555 transparent transparent;
}

/*This is to solve aurelia dialog doesn't have background overlay by default. Reference: at the bottom of https://github.com/aurelia/dialog */
ai-dialog-overlay.active {
  background-color: rgba(80, 80, 80, 0.8);
}

form-control {
  display: block;
}

form-control .adaptive {
  height: auto !important;
  min-height: 34px !important;
}

ai-dialog .panel {
  margin-left: 20px;
  margin-right: 20px;
  margin-top: 20px;
}

.table > tfoot > tr > th {
  vertical-align: middle;
}

.dialog-small-size {
  min-width: 50vw;
}

.dialog-medium-size {
  width: 65vw;
}

.dialog-large-size {
  width: 80vw;
}

.navbar .navbar-account .select2 .select2-selection {
  background: #F26522;
  border-color: #FF7F3C;
}

.navbar .navbar-account .select2 .select2-selection__placeholder,
.navbar .navbar-account .select2 .select2-selection__rendered,
.navbar .navbar-account .select2 .select2-selection__clear {
  color: white;
}

.navbar .navbar-account .select2 .select2-selection__arrow b {
  border-color: white transparent transparent;
}

.navbar.navbar-secondary {
  border: none;
  border-bottom: 1px solid #ddd;
}

.jumbotron {
  padding: 30px 15px;
}

.error-group .error-target {
  display: none;
}

.error-group.has-error td.error-target {
  display: table-cell;
}

.error-group.has-error div.error-target {
  display: block;
}

.error-group.has-error span.error-target {
  display: inline;
}

/* DIALOG */

ai-dialog-container,
ai-dialog-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0
}

ai-dialog,
ai-dialog-container > div > div {
  min-width: 300px;
  margin: auto;
  display: block
}

ai-dialog-overlay {
  opacity: 0
}

ai-dialog-overlay.active {
  opacity: 1
}

ai-dialog-container {
  display: block;
  transition: opacity .2s linear;
  opacity: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch
}

ai-dialog-container.active {
  opacity: 1
}

ai-dialog-container > div {
  padding: 30px
}

ai-dialog-container > div > div {
  width: -moz-fit-content;
  width: -webkit-fit-content;
  width: fit-content;
  height: -moz-fit-content;
  height: -webkit-fit-content;
  height: fit-content
}

ai-dialog-container,
ai-dialog-container > div,
ai-dialog-container > div > div {
  outline: 0
}

ai-dialog {
  box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
  border: 1px solid !important;
  border-top-width: 3px !important;;
  border-color: #ddd !important;;
  border-radius: 3px !important;;
  width: -moz-fit-content;
  width: -webkit-fit-content;
  width: fit-content;
  height: -moz-fit-content;
  height: -webkit-fit-content;
  height: fit-content;
  border-image-source: initial;
  border-image-slice: initial;
  border-image-width: initial;
  border-image-outset: initial;
  border-image-repeat: initial;
  background: #fff
}

ai-dialog > ai-dialog-header {
  display: block;
  color: #333;
  background-color: #f5f5f5;
  border-color: #ddd;
  border-bottom: 0 !important;
  font-size: 14px;
  padding: 10px 15px !important;
  border-top-right-radius: 3px;
  border-top-left-radius: 3px;
}

ai-dialog > ai-dialog-header h1,
ai-dialog > ai-dialog-header h2,
ai-dialog > ai-dialog-header h3 {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 16px;
}

ai-dialog > ai-dialog-header > button {
  float: right;
  border: none;
  display: block;
  width: 32px;
  height: 32px;
  background: 0 0;
  font-size: 22px;
  line-height: 16px;
  margin: -14px -16px 0 0;
  padding: 0;
  cursor: pointer
}

ai-dialog > ai-dialog-body {
  display: block;
  padding: 16px
}

ai-dialog > ai-dialog-footer {
  display: block;
  border-top: 1px solid #ddd;
  text-align: right;
  padding: 10px 15px !important;
}

ai-dialog > ai-dialog-footer button {
  color: #333;
  background-color: #fff;
  padding: 6px 12px;
  font-size: 14px;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  -ms-touch-action: manipulation;
  touch-action: manipulation;
  cursor: pointer;
  background-image: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin: 5px 0 5px 5px
}

ai-dialog > ai-dialog-footer button:disabled {
  cursor: default;
  opacity: .45
}

ai-dialog > ai-dialog-footer button:hover:enabled {
  color: #333;
  background-color: #e6e6e6;
  border-color: #adadad
}

.ai-dialog-open {
  overflow: hidden
}

.table-list-header-toggle {
  margin-top: 5px;
}

.table-list-header-toggle .select-menu {
  position: relative;
}

.table-list-header-toggle .select-menu-button {
  padding: 5px 5px 5px 10px;
}

.table-list-header-toggle .select-menu-button-active {
  padding: 5px 5px 5px 10px;
  font-weight: bold;
  background-color: #e2e2e2;
  border-radius: 4px;
}

.table-list-header-toggle .btn-link {
  color: #767676;
}

.table-list-header .btn-link {
  position: relative;
  display: inline-block;
  padding-top: 13px;
  padding-bottom: 13px;
  font-weight: normal;
}

.select-menu-button::after {
  display: inline-block;
  margin-left: 4px;
  width: 0;
  height: 0;
  vertical-align: -2px;
  content: "";
  border: 4px solid;
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-left-color: transparent;
}

.reveal-trigger {
  position: relative;
  cursor: pointer;
  color: white;
  text-shadow: #090A0B 0 -1px;
  display: inline-block;
}

.reveal-content {
  text-align: center;
  line-height: 150%;
  color: black;
  text-shadow: white 0 1px;
  background: #f5f5f5;
  background-clip: padding-box;
  box-shadow: 0 0px 2px rgba(0, 0, 0, 0.5);
  border: 5px solid #111;
  border: 5px solid rgb(245, 245, 245);
  border-radius: 3px;
  position: absolute;
  width: 250px;
  left: 50%;
  margin-left: -125px;
  padding: 5px 5px;
  margin-top: 8px;
  -moz-transition: opacity 0.5s linear;
  -ms-transition: opacity 0.5s linear;
  -o-transition: opacity 0.5s linear;
  z-index: 1;
}

.filter-corner-offset {
  left: 0;
}

.filter-far-left-area {
  margin-left: -35%;
}

.filter-left-area {
  margin-left: -20%;
}

.filter-middle-area {
  margin-left: -5%;
}

.filter-right-area {
  margin-left: 10%;
}

.filter-cell-no-border {
  border: none !important;
}

.filter-cell-button {
  padding-top: 0px !important;
}

.filter-input-top-label {
  text-align: left;
  font-size: 12px;
  font-style: italic;
}

.panel-heading-danger {
  background-color: rgba(255, 112, 112, 0.36) !important;
}

.panel-heading-success {
  background-color: rgba(135, 245, 77, 0.36) !important;
}

.label-number-count {
  margin-top: -1px !important;
  padding: .4em .6em .4em !important;
  border-radius: 10px; !important;
}

.label-low-severity {
  background-color: #f97b00;
}

.label-primary {
  background-color: #f26522;
}

.line-item-danger {
  background-color: rgba(251, 149, 131, 0.19);
  margin: 4px;
  padding: 5px;
  border-radius: 5px;
}

.line-item-completed {
  background-color: rgba(152, 152, 152, 0.19);
  margin: 4px;
  padding: 5px;
  border-radius: 5px;
}

.label-outline-completed {
  margin-top: 2px;
  color: #4caf50;
  border-style: solid;
  border-color: #4caf50;
  border-width: 1px;
}

.label-icon {
  margin-right: 3px;
}

.text-completed {
  color: #797979;
}

.cell-no-top-border {
  border-top: 0 !important;
}

.label-row-align {
  margin-top: 2px  !important;
}

.cell-text-sm {
  font-size: 13px;
}

.stack-sm {
  font-size: 8.5pt;
}

.widget-clean {
  box-shadow: none;
  margin-bottom: 0;
}

/*This is to ensure placeholders in form fields always fill properly - workaround issue with select2 rendering */
input[placeholder] {
  width: 100% !important;
}

/*The following are helper classes for overriding default layout */

.mg-rt-5 {
  margin-right: 5px !important;
}

.mg-lt-4 {
  margin-left: 4px !important;
}

.mg-bt-5 {
  margin-bottom: 5px !important;
}

.mg-tp-iv-1 {
  margin-top: -1px !important;
}

.pd-0 {
  padding: 0 !important;
}

.pd-rt-5 {
  padding-right: 5px !important;
}

.pd-lt-4 {
  padding-left: 4px !important;
}

.pd-lt-16 {
  padding-left: 16px !important;
}

.pd-lt-0 {
  padding-left: 0 !important;
}

.pd-rt-0 {
  padding-right: 0 !important;
}
