
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: bolder;
  src: local('Source Sans Pro'),
       url('../fonts/SourceSansPro-Bold.ttf') format("truetype");
}

@font-face {
  font-family: 'Source Sans Pro';
  font-style: italic;
  font-weight: normal;
  src: local('Source Sans Pro'),
       url('../fonts/SourceSansPro-Italic.ttf') format("truetype");
}

@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 300;
  src: local('Source Sans Pro'),
       url('../fonts/SourceSansPro-Light.ttf') format("truetype");
}

@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: normal;
  src: local('Source Sans Pro'),
       url('../fonts/SourceSansPro-Regular.ttf') format("truetype");
}

@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: bold;
  src: local('Source Sans Pro'),
       url('../fonts/SourceSansPro-Semibold.ttf') format("truetype");
}

body {
  font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, header.card-header {
  font-weight: 300;
}

h2 {
  font-size: 30px;
}

header.card-header {
  font-size: 16px;
  padding: 10px 15px
}

.badge,
.label {
  font-size: 11px;
  padding: 0.35em 0.6em;
}

button,
a.btn, .input-group-text, th, td, p {
  font-size: 14px;
}

.fixed-width {
  font-family: monospace;
}

.inline-block {
  display: inline-block;
}

/* Spacing utilities */
.mt-0 {
  margin-top: 0;
}
.mt-1 {
  margin-top: .5rem;
}
.mt-3 {
  margin-top: 2.5rem;
}
.mr-1 {
  margin-right: .5rem;
}
.mb-1 {
  margin-bottom: .5rem;
}
.ml-1 {
  margin-left: .5rem;
}
.ml-1em {
  margin-left: 1em;
}

/* select2 */

.input-group .select2-container .select2-choice {
  border-top-right-radius: 0px;
  border-bottom-right-radius: 0px;
}

.form-group > #id_outcome + .select2-container {
  width: 100% !important;
}

#report-setup-select2 + .select2-container {
  width: 100% !important;
}

#ajax-form .select2-container {
  width: 100% !important;
}

.select2-selection--single {
  display: flex !important;
  min-height: 32px;
  height: 100% !important;
  padding: 0px !important;
}
.select2-selection__rendered{
  word-wrap: break-word !important;
  text-overflow: inherit !important;
  white-space: normal !important;
  line-height: normal !important;
  align-self: center;
  padding: 5px 0px;
  width: 100%; 
  justify-content: space-between;
}

/* Bootstrap tweaks */

@media(min-width: 1400px) {
  .container {
    width: 1340px;
    max-width: 100%
  }
}
@media(min-width: 1600px) {
  .full-width {
    width: 1540px !important;
    margin-left: -100px;
  }
}

.navbar-brand {
  padding: 10px 15px;
}

.form-control {
  box-shadow: none;
}
.search-lg {
  border-radius: 46px;
}
.btn-group-vertical-justified {
  width: 100%;
}
.dropdown-item-button {
  padding: 3px 20px;
  border: none;
  background: none;
  text-align: left;
}
.dropdown-item-button:hover, .dropdown-item-button:focus {
  color: #262626;
  background-color: #F5F5F5;
}

.panel-heading-button {
  clear: both;
}
.panel-heading-button .panel-title {
  line-height: 30px;
}

.panel-heading-checkbox {
  margin-top: 1px !important;
  float: right;
}

.btn-blank {
  padding-right: 0;
  padding-left: 0;
  border-color: none;
  background-color: transparent;
  color: inherit;
}

.btn-blank:hover {
  background-color: transparent;
  color: inherit;
}

nav .btn-blank {
  color: #666;
}

.table-action-buttons .btn-group-toggle .focus {
  outline: none;
  box-shadow: none;
}

.navbar-form-snug {
  border: none;
}

.navbar {
  padding: 0rem 1rem;
  border: 1px solid #e7e7e7;
}

.user-dropdown {
  padding: 5px !important;
}

.nav a {
  color: #666;
  font-size: 14px;
}

.nav-tabs .nav-link.active {
  background-color: #FFF;
}

.nav-tabs .nav-link {
  background-color: #EEE;
  border: 1px solid #0000001a;
}

.card-header .btn-outline-secondary {
  background-color: white;
  border-color: rgb(108, 117, 125, .2);
}

.qa-input .field-wrap {
  flex-grow: 1;
}

.card-header .btn-outline-secondary:hover {
  background-color: #6c757d;
}

/* Bootstrap Overrides */

.dl-condensed {
  margin-bottom: 8px;
}
@media(min-width: 768px) {
  .dl-header {
    width: 160px;
    text-align: right !important;
  }
}

a.ajax-modal-button {
  cursor: pointer;
}

/* Vue Form Generator Overrides */
.hint {
  font-style: italic;
  opacity: .6;
}

.report-review-radios .radio-list label {
  display: inline-block !important;
  font-weight: bold;
  margin-right: 5px;
}

.label-only span {
  margin-left: 0px !important;
}

/* DataTable tweaks */
.panel .dataTables_wrapper {
  margin-top: 10px;
}
.panel .dataTables_wrapper .dataTables_length,
.panel .dataTables_wrapper .dataTables_info {
  padding-left: 15px;
}
.panel .dataTables_wrapper .dataTables_filter,
.panel .dataTables_wrapper .dataTables_paginate {
  padding-right: 15px;
}

/* Font Awesome additions */

.fa-spin-fast {
  animation-duration: 1.5s;
}


/* Loading overlay & spinner */

#ajax-form-loading {
  text-align: center;
}
#ajax-form-loading > i.fa {
  font-size: 30px;
}

/* Alerts */
#alert-placeholder {
  top: 20px;
  z-index: 2000;
}

@media(min-width: 768px) {
  #alert-placeholder.affix {
    right: 20px;
    max-width: 80%;
  }
}

/* Dropzone */
.dropzone { border: 2px dashed #0087F7; margin-bottom: 20px; border-radius: 5px; background: white; }
.dropzone .dz-message { font-size: 20px; font-weight: 400; }
.dropzone .dz-message .note { font-size: 0.8em; font-weight: 200; display: block; margin-top: 1.4rem; }

/* Django Tables 2 */
th.orderable.asc:after {
  content: "▲"
}
th.orderable.desc:after {
  content: "▼"
}

.margin-bottom {
  margin-bottom: 10px;
}

.margin-left {
  margin-left: 10px;
}

.toggle,
.toggle-handle {
  border-radius: 20px;
}

.toggle.btn {
    min-width: 54px;
    min-height: 24px;
}

.toggle-off.btn {
  background-color: #aaa;
}

.warning-text {
  color: red;
}

/* Support new lines in bootstrap vue toaster components */
.b-toaster-slot {
  white-space: break-spaces;
}

.b-table td {
  word-break: break-word;
}

.modal-dialog .modal-body {
  word-break: break-word;
}

.form-group.error .form-control {
  border: 1px solid #dc3545;
}

.form-group .errors.help-block {
  color: #dc3545;
  font-size: small;
}

input.highlight-invalid-fields:invalid {
  border-color: red;
}

.dropdown-item.active, .dropdown-item:active {
    color: #666;
    text-decoration: none;
    background-color: #ddd;
}

.main-logo {
  max-width: 250px;
  max-height: 80px;
}

.iti__flag {background-image: url("../images/flags.png");}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .iti__flag {background-image: url("../images/flags@2x.png");}
}

.vptable-cell {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  position: absolute;
  left: 0.75rem;
  right: 0;
}

@media(max-width: 1050px) {
  .side-navbar {
    display: none;
  }
}

.validate-success {
  color: #28a745;
}

.validate-unfilled {
  color: #ffc107;
}

.validate-fail {
  color: #dc3545;
}

.low-ocr-confidence .validate-check-button {
  color: #ffc107 !important;
}

.validate-check-button {
  background: none;
  border: none;
  padding: 0px;
  font-size: 22px;
  position: absolute;
  top: -10px;
  right: -15px;
  height: 28px;
  width: 28px;
  border-radius: 100%;
  border: #00000000 solid 3px;
}

.validate-check-button:hover {
  top: -12px;
  right: -15px;
  font-size: 24px;
}

.validate-success:hover {
  color: #13752a;
}

.validate-unfilled:hover {
  color: #aa8104;
}

.validate-fail:hover {
  color: #8d202b;
}

.magnifying-glass {
  position: absolute;
  top: -3px;
  right: 5px;
  font-size: 8px;
  border: none;
  background: none;
  color: #229bff;
}

.magnifying-glass:hover {
  top: -4px;
  right: 5px;
  color: #1975c0;
  font-size: 9px;
}

.magnifying-glass:active {
  top: -3px;
  right: 5px;
  font-size: 8px;
  color: #145891;
}

.shepherd-button {
  font-size: 13pt;
  font-weight: bold;
  color: white;
  padding: 5px 24px;
}

.side-navbar {
  width: 60px; /* Set the width of the sidebar */
  position: fixed; /* Fixed Sidebar (stay in place on scroll) */
  z-index: 1; /* Stay on top */
  top: 25%;
  left: 0px;
  background-color: rgba(0,0,0,.05);
  padding: 10px;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  border: solid 1px #DDD;
}

.side-navbar span {
  margin-left: -4px;
  margin-bottom: 10px;
  font-size: 12px;
}

.side-navbar a {
  display: block;
  margin-bottom: 15px;
}

.side-navbar a:hover {
  text-decoration: none;
}

.side-navbar a .user-icon {
  width: 40px;
  height: 40px;
  text-align: center;
  margin-top: 10px;
}

.side-navbar a .user-icon.active img,
.side-navbar a .user-icon.active .user-acronym {
  outline: solid 3px #89bf3f !important;
  border: none;
}

.sidenav-links:nth-child(1) .user-icon .user-acronym {background: #FF9AA2}
.sidenav-links:nth-child(2) .user-icon .user-acronym {background: #FFB7B2}
.sidenav-links:nth-child(3) .user-icon .user-acronym {background: #FFDAC1}
.sidenav-links:nth-child(4) .user-icon .user-acronym {background: #E2F0CB}
.sidenav-links:nth-child(5) .user-icon .user-acronym {background: #B5EAD7}
.sidenav-links:nth-child(6) .user-icon .user-acronym {background: #C7CEEA}

.side-navbar a .user-icon img {
  border-radius: 50%;
  width: 100%;
  height: 100%;
  background: none !important;
  border: solid 1px #CCC;
}

.side-navbar a .user-icon .user-acronym {
  height: 40px;
  width: 40px;
  font-size: 13pt;
  font-weight: bolder;
  color: #444;
  border-radius: 50%;
  padding-top: 5px;
  border: solid 1px #CCC;
}

.d-flex {
  display: flex !important;
}


.inner-table {
  border: none;
  margin-left: -12px;
  margin-right: -12px;
  margin-top: -3px;
  margin-bottom: -3px;
  border-radius: 0px;
}

.inner-table .card-header {
  background-color: rgb(0 0 0 / 10%);
  border-radius: 0px;
}

.inner-table .table {
  width: 96%;
  margin-left: 2%;
  margin-top: -2px;
}

.form-control:disabled {
  background-color: #e9ecef !important;
}
