body {
  background:#f8f8f8;
}

.navbar {
  min-height: 4rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
  background: #fff;
  margin-bottom: 2rem;
}

.navbar-light .navbar-nav .nav-link {
  color: #1d1c1d;
}

.form-control, .form-select {
  border: 1px solid #868686;
}

a {
  color: #1264a3;
}

.form-check-input:checked {
  background-color: #1d9bd1;
  border-color: #1d9bd1;
}

label {
  font-size: 0.9rem;
}

.form-label {
  font-weight: 700;
}

.dropdown-item:active {
  color: #1d1c1d;
  background-color: #eee;
}

.btn:hover,.btn:focus,.btn:hover {
  box-shadow:0 1px 4px rgba(0,0,0,.3);
  transition:all 75ms ease-in-out
}

.btn:focus {
  box-shadow:0 0 0 1px #1264a3,0 0 0 5px rgba(29,155,209,.3);
}

.btn:active {
  outline: 0;
  box-shadow: none;
}

.btn.btn-outline-grey {
    color: #1d1c1d;
    background-color: #f8f8f8;
    border-color: #868686;
}

.btn.btn-outline-grey:hover {
  color: #1d1c1d;
  background-color: #fff;
  border-color: #868686;
}

.btn.btn-outline-white {
  color: #1d1c1d;
  background-color: #fff;
  border-color: #868686;
}

.btn.btn-outline-white:hover {
color: #1d1c1d;
background-color: #eee;
border-color: #868686;
}

.btn.btn-blue {
  color: #fff;
  background-color: #1d9bd1;
  border-color: #1a85b3; 
}

.btn.btn-blue:hover {
  color: #fff;
  background-color: #187da8;
  border-color: #1a85b3;
}

.btn.btn-success {
  background-color: #007a5a;
}

.btn.btn-success:hover {
  background-color: #006b4f;
}

.btn.btn-danger {
  background-color: #de4e2b;
}

.btn-outline-danger {
  color: #de4e2b;
  border-color: #de4e2b;
}

.btn.btn-danger:hover, .btn.btn-outline-danger:hover {
  color: #fff;
  background-color: #cc4929;
}

.table {
  color: #1d1c1d;
}

.card {
  border-color: #ddd;
  border-radius: 5px;
}

.card.card-tabs {
  border-top: 0;
}

.nav-tabs .nav-link {
  font-weight: 600;
}

.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
  color:#1d1c1d;
  cursor: default;
}

a {
  text-decoration: none;
}

hr.bold-black {
  color: #1d1c1d;
  height: 1px;
  opacity: 1;
}

.hide {
  display: none;
}

.danger {
  color: #de4e2b;
}

.success {
  color: #007a5a;
}

.popover-header {
  background-color: #5e5f59;
  color: #fff;
}

.invalid-feedback.show {
  display: block;
}

ul.nav.side-nav .nav-link {
  color: #1d1c1d;
}

ul.nav.side-nav .nav-link:hover {
  color: #1264a3;
}

li.nav-header {
  display: block;
  padding: 3px 15px;
  font-size: 85%;
  font-weight: bold;
  line-height: 20px;
  color: #999999;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

.page-link {
  color: #1264a3;
  font-size: 95%;
}

.page-item.active .page-link {
  z-index: 3;
  color: #fff;
  background-color: #1264a3;
  border-color: #1264a3;
}

.table th.fit, .table td.fit {
  white-space: nowrap;
  width: 1%;
}

/* outlined alerts */

.alert-outline, .alert-outline-coloured {
  position: relative;
  padding: .95rem;
  margin-bottom: 1rem;
  border: 0 solid transparent;
  border-top-color: transparent;
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-radius: .2rem;
}

.alert-outline, .alert-outline-coloured {
  padding:0;
  display:flex;
  color:#fff
 }

 .alert-outline.alert-dismissible .btn-close,
 .alert-outline-coloured.alert-dismissible .btn-close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  font-size: 0.8rem;
  padding: 1.3rem .95rem;

}

 .alert-outline .close, .alert-outline-coloured .close:focus,
 .alert-outline .close, .alert-outline-coloured .close:hover {
  color:#fff;
  opacity:1
 }

 .alert-outline,
 .alert-outline-coloured {
  color:#212529;
  background:#fff;
 }

 .alert-outline-coloured hr,
 .alert-outline hr {
  border-top-color:#ced4da
 }

 .alert-outline-coloured .close:focus,
 .alert-outline-coloured .close:hover,
 .alert-outline .close:focus,
 .alert-outline .close:hover {
  color:#343a40
 }

 .alert-outline-coloured .alert-message,
 .alert-outline .alert-message {
  border-top-right-radius:.2rem;
  border-bottom-right-radius:.2rem;
  border-top-left-radius:.2rem;
  border-bottom-left-radius:.2rem;
  border:1px solid #ced4da
 }

 .alert-outline-coloured .alert-message:not(:first-child),
 .alert-outline .alert-message:not(:first-child) {
  border-top-left-radius:0;
  border-bottom-left-radius:0;
  border-left:0
 }

 .alert-outline-coloured .alert-icon,
 .alert-outline .alert-icon {
  border-top-left-radius:.2rem;
  border-bottom-left-radius:.2rem;
  color:#fff
 }

 .alert-outline-coloured.alert-primary .alert-icon,
 .alert-outline.alert-primary .alert-icon {
  background-color:#669ae5
 }

 .alert-outline-coloured.alert-secondary .alert-icon,
 .alert-outline.alert-secondary .alert-icon {
  background-color:#6f42c1
 }

 .alert-outline-coloured.alert-success .alert-icon,
 .alert-outline.alert-success .alert-icon {
  background-color:#007a5a
 }

 .alert-outline-coloured.alert-info .alert-icon,
 .alert-outline.alert-info .alert-icon {
  background-color:#20c997
 }

 .alert-outline-coloured.alert-warning .alert-icon,
 .alert-outline.alert-warning .alert-icon {
  background-color:#e5a54b
 }

 .alert-outline-coloured.alert-danger .alert-icon,
 .alert-outline.alert-danger .alert-icon {
  background-color:#de4e2b
 }

 .alert-outline-coloured.alert-light .alert-icon,
 .alert-outline.alert-light .alert-icon {
  background-color:#e9ecef
 }

 .alert-outline-coloured.alert-dark .alert-icon,
 .alert-outline.alert-dark .alert-icon {
  background-color:#153d77
 }

 .alert-outline-coloured.alert-tertiary .alert-icon,
 .alert-outline.alert-tertiary .alert-icon {
  background-color:#669ae5
 }

 .alert-outline-coloured.alert-primary .alert-message {
  border-color:#669ae5
 }

 .alert-outline-coloured.alert-secondary .alert-message {
  border-color:#6f42c1
 }

 .alert-outline-coloured.alert-success .alert-message {
  border-color:#007a5a
 }

 .alert-outline-coloured.alert-info .alert-message {
  border-color:#20c997
 }

 .alert-outline-coloured.alert-warning .alert-message {
  border-color:#e5a54b;
 }

 .alert-outline-coloured.alert-danger .alert-message {
  border-color:#de4e2b
 }

 .alert-outline-coloured.alert-light .alert-message {
  border-color:#e9ecef
 }

 .alert-outline-coloured.alert-dark .alert-message {
  border-color:#153d77
 }

 .alert-outline-coloured.alert-tertiary .alert-message {
  border-color:#669ae5
 }

 .alert-icon {
  padding:.95rem;
  background:hsla(0,0%,100%,.1)
 }

 .alert-message {
  padding:.95rem;
  width:100%;
  font-size: 95%;
  box-sizing:border-box;
 }

/* toastr */

#toast-container > div {
  opacity: 1;
  -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=10);
  filter: alpha(opacity=100);
}

#toast-container > .toast-success,
.toast-success {
  background-color: #00A28A;
  color: #ffffff;
}

#toast-container > .toast-error,
.toast-error {
  background-color: #B76BA3;
  color: #ffffff;
}

#toast-container > .toast-info,
.toast-info {
  background-color: #222230;
  color: #ffffff;
}

#toast-container > .toast-warning,
.toast-warning {
  background-color: #EC935E;
  color: #363642;
}

/* summernote */
.note-editor .dropdown-toggle::after {
  all: unset;
}

.note-editor .note-dropdown-menu, .note-editor .note-modal-footer {
  box-sizing: content-box;
}

.note-group-image-url, .sn-checkbox-use-protocol {
  display: none;
}

.note-editable { 
  font-family: arial,verdana,sans-serif;
  font-size: 14px;
}

.note-current-fontsize {
  font-size: 0.8rem;
}

.note-dropdown-item {
  font-size: 0.9rem;
}

.note-editable h1, .formogramHeader {
  font-weight: normal;
  font-size: 160%;
  margin: 0 0 10px 0;
  clear: left;
}

@-webkit-keyframes highlightfade {
  from {
      background: #f7c46c;
  }

  to {
      background: transparent;
  }
}

@-moz-keyframes highlightfade {
  from {
      background: #f7c46c;
  }

  to {
      background: transparent;
  }
}

.highlightFade {
  -webkit-animation: highlightfade 2s;
  -moz-animation: highlightfade 2s;
  animation: highlightfade 2s;
}

/* drawer modals */

.modal-dialog-scrollable .modal-header,
.modal-dialog-scrollable .modal-footer {
  z-index: 2;
}

.modal-drawer .modal-dialog {
  margin-top: 0;
  margin-bottom: 0;
  position: fixed;
  top: 0;
  bottom: 0;
  min-width: 500px;
}

@media (max-width: 575.98px) {
  .modal-drawer .modal-dialog {
    margin: 0;
    width: 100%;
    min-width: inherit;
  }
}

.modal-drawer .modal-header,
.modal-drawer .modal-content,
.modal-drawer .modal-footer {
  border-radius: 0;
  
  padding: 0.5rem 1rem;
}

.modal-drawer .modal-content {
  height: 100%;
}

.modal-drawer .modal-body {
  overflow: auto;
}

.modal-drawer-right {
  right: 0;
  box-shadow: -1px 0 3px 0 rgba(20, 20, 31, 0.15);
}

.modal.fade .modal-drawer-right {
  transform: translate3d(100%, 0, 0);
}

.modal-drawer-right .modal-content {
  border-width: 0 0 0 1px;
}

.modal-drawer-left {
  left: 0;
  box-shadow: 1px 0 3px 0 rgba(20, 20, 31, 0.15);
}

.modal.fade .modal-drawer-left {
  transform: translate3d(-100%, 0, 0);
}

.modal-drawer-left .modal-content {
  border-width: 0 1px 0 0;
}

.modal.show .modal-drawer-right,
.modal.show .modal-drawer-left {
  transform: translate(0);
}

.modal-drawer .modal-footer {
  justify-content: flex-start;
}

.modal-dialog-scrollable .modal-body-scrolled,
.modal-drawer .modal-body-scrolled {
  box-shadow: none;
}

.forms-list .nav-item {
  border-radius: 3px;
}

.forms-list .nav-item:hover {
  background-color: rgb(245, 245, 245);
}

.forms-list .nav-item a {
  padding: .3rem .9rem;

}

/* custom narrow screen tweaks */
@media (max-width: 768px) {
  .forms-list-container {
    display: block !important;
    justify-content: initial;
  }
  .nav.forms-list {
    display:block;
    margin: 10px 0 5px 0;
  }
  .nav.forms-list li.nav-item {
    border-top: 1px solid #eee;
  }
  .forms-list .nav-item a {
    padding: .5rem 1rem; 
  }

  .custom-nav {
    display: block;
  }
  .custom-nav .nav-link {
    padding: .5rem;
  }
  .custom-nav .nav-link.active {
    border: 0;
    background-color: transparent;
  }

  form.mainForm li.li_formfield {
    width: 90% !important;
  }
  .fileField, .textline, .select, .textarea {
    width: 100%;
  }
  .instructions {
    display: none;
  }
  .leftAlign .titleLabel, .rightAlign .titleLabel,
  .leftAlign li div:not(.selectControls), .rightAlign li div:not(.selectControls) {
    width: 100%;
  }

  div.dataTables_wrapper div.dataTables_filter label {
    white-space: normal;
  }
}