:root {
  --primary-color: #007eff;
  --secondary-color: #8697a9;
  --success-color: #40ac35;
  --danger-color: #d65c5c;
  --warning-color: #f0854e;
  --info-color: #d89700;
  --light-color: #dae0e5;
  --dark-color: #343a40;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  color: #ffffff;
  border-color: #007bff;
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: #0a58ca;
  --bs-btn-active-bg: var(--primary-color);
}
.btn-secondary {
  background-color: var(--secondary-color);
  border-color: #5e7184;
  --bs-btn-hover-bg: #5e7184;
  --bs-btn-active-bg: var(--secondary-color);
}
.btn-success {
  color: #ffffff;
  background-color: var(--success-color);
  border-color: var(--success-color);
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: #39992f;
  --bs-btn-hover-border-color: #39992f;
  --bs-btn-active-color: #ffffff;
  --bs-btn-active-bg: var(--success-color);
  --bs-btn-active-border-color: var(--success-color);
  --bs-btn-disabled-bg: var(--success-color);
}
.btn-danger {
  background-color: var(--danger-color);
  --bs-btn-hover-bg: #d72e2e;
  --bs-btn-active-bg: var(--danger-color);
}
.btn-warning {
  background-color: var(--warning-color);
  color: #ffffff;
  border-color: #df5813;
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: #df5813;
  --bs-btn-active-color: #ffffff;
  --bs-btn-active-bg: var(--warning-color);
  --bs-btn-disabled-color: #ffffff;
  --bs-btn-disabled-bg: var(--warning-color);
  --bs-btn-disabled-border-color: var(--warning-color);
}
.btn-info {
  background-color: var(--info-color);
  border-color: var(--info-color);
  color: #ffffff;
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: #bf8500;
  --bs-btn-hover-border-color: #bf8500;
  --bs-btn-active-color: #ffffff;
  --bs-btn-active-bg: var(--info-color);
  --bs-btn-active-border-color: var(--info-color);
  --bs-btn-disabled-color: #ffffff;
  --bs-btn-disabled-bg: var(--info-color);
  --bs-btn-disabled-border-color: var(--info-color);
}
.btn-info.active {
  background-color: var(--info-color) !important;
  border-color: var(--info-color) !important;
  color: white !important;
}
.btn-light {
  background-color: var(--light-color);
  border-color: #adbac5;
  --bs-btn-hover-bg: #adbac5;
  --bs-btn-active-bg: var(--light-color);
  --bs-btn-disabled-bg: #e9eff0;
}
.btn-dark {
  background-color: var(--dark-color);
  --bs-btn-hover-bg: #121416;
  --bs-btn-active-bg: var(--dark-color);
}
.btn-link {
  color: var(--success-color);
  box-shadow: none !important;
  --bs-btn-hover-color: #39992f;
  --bs-btn-active-color: #39992f;
}
.btn-link:focus-visible {
  box-shadow: none;
  border-color: #39992f;
}
.btn {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease-in-out;
}
.input-group-btn .btn {
  color: var(--success-color);
  background-color: #ffffff;
  border-color: #ced4da;
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
}
.input-group-btn .btn:active {
  color: #ffffff;
  background-color: var(--success-color) !important;
  border-color: #ced4da;
}

/* Badges */
.bg-primary {
  background-color: var(--primary-color) !important;
}
.bg-secondary {
  background-color: var(--secondary-color) !important;
}
.bg-success {
  background-color: var(--success-color) !important;
}
.bg-danger {
  background-color: var(--danger-color) !important;
}
.bg-warning {
  background-color: var(--warning-color) !important;
}
.bg-info {
  background-color: var(--info-color) !important;
}
.bg-light {
  background-color: var(--light-color) !important;
  color: #000000;
}
.bg-dark {
  background-color: var(--dark-color) !important;
}

/* Alerts/Banners */
.alert-primary {
  --bs-alert-color: var(--primary-color);
  --bs-alert-bg: #cde6ff;
}
.alert-secondary {
  --bs-alert-color: var(--secondary-color);
  --bs-alert-bg: #e0e4e9;
}
.alert-success {
  --bs-alert-color: var(--success-color);
  --bs-alert-bg: #d7f2d5;
}
.alert-danger {
  --bs-alert-color: var(--danger-color);
  --bs-alert-bg: #f5d6d6;
}
.alert-warning {
  --bs-alert-color: var(--warning-color);
  --bs-alert-bg: #fce7dc;
  --bs-alert-border-color: #fad6c4;
}
.alert-info {
  --bs-alert-color: var(--info-color);
  --bs-alert-bg: #ffe4a6;
  --bs-alert-border-color: #ffd573;
}
.alert-light {
  --bs-alert-bg: #e9edf0;
}
.alert-dark {
  --bs-alert-color: var(--dark-color);
  --bs-alert-bg: #88939e;
}
.applicant-data-locked-controls .row {
  margin-left: 0;
  margin-right: 0;
}

/* Toasts */
.toast-primary {
  --bs-toast-header-bg: #cde6ff;
}
.toast-primary i {
  color: var(--primary-color);
}
.toast-secondary {
  --bs-toast-header-bg: #e0e4e9;
}
.toast-secondary i {
  color: #697d93;
}
.toast-success {
  --bs-toast-header-bg: #d7f2d5;
}
.toast-success i {
  color: var(--success-color);
}
.toast-danger {
  --bs-toast-header-bg: #f5d6d6;
}
.toast-danger i {
  color: var(--danger-color);
}
.toast-warning {
  --bs-toast-header-bg: #fce7dc;
}
.toast-warning i {
  color: var(--warning-color);
}
.toast-info {
  --bs-toast-header-bg: #ffe4a6;
}
.toast-info i {
  color: var(--info-color);
}
.toast-light {
  --bs-toast-header-bg: #e9edf0;
}
.toast-light i {
  color: var(--dark-color);
}
.toast-dark {
  --bs-toast-header-bg: #88939e;
  --bs-toast-header-color: #ffffff;
}
.toast-dark i {
  color: var(--dark-color);
}
.toast-header .btn-close {
  box-shadow: none;
  --bs-btn-font-size: 0.875rem;
}

.template-editor {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
}

.template-editor .variable-menu {
  flex: 0 0 auto;
  overflow: auto;
  max-width: 25%;
}

.template-editor .variable-menu > ul.nav {
  flex-direction: column;
}

.mce-tinymce.mce-container {
  width: 100% !important;
  height: 50vh !important;
  box-sizing: border-box;
}

.mce-tinymce.mce-container > .mce-container-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mce-tinymce.mce-container > .mce-container-body > .mce-edit-area {
  flex: 1 1 auto;
}

.mce-tinymce.mce-container > .mce-container-body > .mce-edit-area > iframe {
  height: 100% !important;
}

.template-editor .text-editor {
  flex: 1 1 auto;
}

.template-editor .variable-menu > ul.nav li.dropdown > a::before,
.template-editor .variable-menu > ul.nav li.dropdown > ul.nav > li.dropdown > a::before {
  content: "\f0da"; /* fa-caret-right */
  font: normal normal normal 16px/1 FontAwesome;
  display: inline-block;
  width: 2ex;
  cursor: pointer;
}

.template-editor .variable-menu > ul.nav li.dropdown.active > a::before,
.template-editor .variable-menu > ul.nav li.dropdown.active > ul.nav > li.dropdown.active > a::before {
  content: "\f0d7"; /* fa-caret-down */
}

.template-editor .variable-menu > ul.nav li.dropdown > ul.nav,
.template-editor .variable-menu > ul.nav li.dropdown > ul.nav li.dropdown > ul.nav {
  margin-left: 3ex;
}

.nav > li > .nav {
  display: none !important;
}

.nav > li.active > .nav {
  display: block !important;
}

.grey-border {
  border-color: #555555;
}

.pt10 {
  padding-top: 10px;
}

.red {
  color: red;
}

.green {
  color: green;
}

.gray {
  color: gray;
}

.mh-250 {
  min-height: 250px;
}

.bordered-col-left {
  border-left: 2px solid #8e949a;
  padding-left: 3rem;
}

.my-2 {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.pac-container.pac-logo {
  z-index: 99999;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mb-1 {
  margin-bottom: 1rem;
}

.flex-just {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.back-grey {
  background-color: #f5f5f5;
}

.form-body {
  border: 1px solid #dadce0;
  border-radius: 8px;
  background-color: #ffffff;
  padding: 2rem;
  margin: 1rem auto;
  width: 80%;
}

.form-body p, .form-body label {
  text-align: left;
  font-size: 18px;
  letter-spacing: 0px;
  color: #6d7079;
}

.form-body .form-text {
  font-weight: 600;
  color: #6d7079;
  line-height: 28px;
}

.form-body .form-answer {
  margin-left: 0.2rem;
  font-weight: 400;
  line-height: 36px;
}

.form-body .fa-check-circle {
  width: 1.25em;
  height: 1.25em;
  color: #3AAE2A;
  vertical-align: 0.05rem;
}

.website-image-list {
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
}
.website-image-listitem {
    width: 220px;
    height: 210px;
    border: 1px solid gray;
    border-radius: 5px;
    margin: 5px;
    padding: 5px;
    cursor: pointer;

    display: flex;
    flex-direction: column;
    justify-content: space-around;
}
.website-image-listitem .image-box {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}
.website-image-listitem img {
    max-width: 90%;
    max-height: 100%;
    margin-left: auto;
    margin-right: auto;
    background: repeating-conic-gradient(#888 0% 25%, #eee 0% 50%) 50% / 20px 20px;
}

.image-modify-box {
    display: flex;
    margin-top: 40px;
    margin-left: 40px;
    align-items: center;
}
.image-modify-arrow {
    font-size: xxx-large;
    margin-left: 30px;
    margin-right: 30px;
}
.image-detail-box {
    display: flex;
    width: 300px;
    flex-direction: column;
    align-items: center;
}
.image-detail-box img {
    max-height: 300px;
    max-width: 300px;
    background: repeating-conic-gradient(#888 0% 25%, #eee 0% 50%) 50% / 20px 20px;
}
.image-detail-box .closeable-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}
.image-detail-box .closeable-wrapper .close-icon {
    width: 15px;
    height: 15px;
    margin-left: 3px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    background: white;
    cursor: pointer;
}
.image-resize-edit {
    display: inline;
    width: 70px;
}

.bigger {
  font-size: larger;
}

.file-attachment {
    width: 550px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgb(245,245,245);
    margin-bottom: 5px;
    padding-left: 5px;
}

.permission-category-label {
  font-size: 14px;
  font-weight: bold;
}

.permission-category {
  border: 1px solid black;
  border: 1px solid rgba(0, 0, 0, 0.3);
  padding: 5px;
  margin: 5px;
  border-radius: 3px;
}

.chatdashboard,
.financialdashboard {
    overflow: auto;
}
.chatdashboard .row,
.financialdashboard .row {
    margin-bottom: 20px;
}
.chatdashboard .btn-info {
  background-color: #40ac35;
  border-color: #40ac35;
  color: white;
}

.chatdashboard .table tr,
.chatstats .table tr,
.financialdashboard .table tr {
  display: flex;
}

.chatdashboard .table th,
.chatdashboard .table td,
.chatstats .table th,
.chatstats .table td,
.financialdashboard .table th,
.financialdashboard .table td {
  flex: 1 1 0;
}

.chatstats {
  overflow-y: auto;
  height: 100%;
}

.chatstats-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

.chatstats-cards .grid-container {
  display: grid;
  gap: 1rem;
}

/* Assign each card to a specific grid area */
.total-chats-today { grid-area: total-chats-today; }
.total-chats-week { grid-area: total-chats-week; }
.total-chats-month { grid-area: total-chats-month; }
.avg-chats-day { grid-area: avg-chats-day; }
.avg-chats-week { grid-area: avg-chats-week; }
.avg-chats-month { grid-area: avg-chats-month; }
.avg-time-chats { grid-area: avg-time-chats; }
.avg-time-staff-messages { grid-area: avg-time-staff-messages; }

@media (min-width: 1200px) {
  .chatstats-cards .grid-container.total-stats {
    grid-template-columns: repeat(4, 1fr);
    grid-template-areas:
      "total-chats-today total-chats-week total-chats-month avg-time-chats"
      "avg-chats-day avg-chats-week avg-chats-month avg-time-staff-messages";
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .chatstats-cards .grid-container.total-stats {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      "total-chats-today avg-chats-day"
      "total-chats-week avg-chats-week"
      "total-chats-month avg-chats-month"
      "avg-time-chats avg-time-client-messages";
  }
}

@media (max-width: 767px) {
  .chatstats-cards .grid-container.total-stats {
    grid-template-columns: 1fr;
    grid-template-areas:
      "total-chats-today"
      "total-chats-week"
      "total-chats-month"
      "avg-chats-day"
      "avg-chats-week"
      "avg-chats-month"
      "avg-time-chats"
      "avg-time-staff-messages";
  }
}

.stats-card,
.payment-stats-card {
    height: 180px;
    border: 1px solid lightgray;
    border-radius: 5px;
    padding: 20px;
}
.stats-card .title,
.payment-stats-card .title {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    align-items: center;
    color: #40ac35;
}
.payment-stats-card .title a:hover {
  color: #39992f;
}
.stats-card .sign,
.payment-stats-card .dollar-sign {
    width: 40px;
    height: 40px;
    padding: 10px;
}
.stats-card .value,
.payment-stats-card .amount {
    font-size: 26px;
    font-weight: bold;
}

.stats-card.stats-table,
.payment-stats-card.recent-payments {
    height: auto;
}

.stats-card.stats-table .title {
  color: #40ac35;
}

.chatdashboard .last-updated,
.chatstats .last-updated,
.financialdashboard .last-updated {
    font-size: small;
    font-style: italic;
}

.chatdashboard-tables,
.financialdashboard-tables {
  display: flex;
  flex-direction: row;
}

/* Wrap tables when they exceed the parent container*/
.chatdashboard-tables {
  flex-wrap: wrap;
}

/* Show maximum two tables side by side*/
.chatdashboard-tables .table {
  flex: 50%;
}

.chatdashboard-tables > *,
.financialdashboard-tables > * {
  flex-basis: 0;
  flex-grow: 1;
  padding-right: 15px;
  padding-left: 15px;
}

.font-weight-bold {
  font-weight: 700;
}

.export-selection .form-horizontal .checkbox {
    padding-top: 2px;
    min-height: 0px;
}
.export-selection .form-horizontal .checkbox-inline {
    padding-top: 0px;
}

.table-form-condensed .form-group {
    margin-top: 0px;
}
.no-success-validation .has-success .control-label {
    color: black;
}
.no-success-validation .has-success .form-control {
    border-color: #ccc;
}

.inactive {
  background-color: #ccc;
}

.row.mb-3 > .control-label {
  text-align: right;
}

.sendemailview-clear-btn {
  margin-top: 2.5rem !important;
}

.htmltextdelegate {
  line-height: 20px;
  white-space: normal;
  overflow-y: auto !important;
}

.imagedelegate-container {
  text-align: center;
}

.imagedelegate-container img {
  max-height: 100%;
  max-width: 100%;
}

.agreement-file-link {
  border: 1px solid #cccccc;
  padding: 5px;
  background-color: #eeeeee;
  border-left: none;
}

.agreement-file-link i {
  cursor: pointer;
  font-size: 16px;
}

.flex-container,
.clientfilesbyaffiliateview,
.clientfilesbysalesrepview,
.clientfilesbystateview,
.clientfilesbycityview {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.clientfilesbyaffiliateview .overview,
.clientfilesbysalesrepview .overview,
.clientfilesbystateview .overview,
.clientfilesbycityview .overview {
  height: 100%;
  display: flex;
}

.clientfilesbyaffiliateview .affiliate-picker,
.clientfilesbysalesrepview .sales-rep-picker,
.clientfilesbystateview .state-picker,
.clientfilesbycityview .city-picker {
  flex: 1 auto;
}

.clientfilesbyaffiliateview .affiliate-picker .header .col-md-4,
.clientfilesbyaffiliateview .affiliate-picker .header .col-md-3,
.fundingbyaffiliateview .affiliate-picker .header .col-md-4,
.fundingbyaffiliateview .affiliate-picker .header .col-md-3 {
  width: 0%;
}

.clientfilesbyaffiliateview .affiliate-picker .header .col-md-2,
.fundingbyaffiliateview .affiliate-picker .header .col-md-2,
.clientfilesbysalesrepview .sales-rep-picker .header .col-md-2 {
  width: 100%;
}

.clientfilesbyaffiliateview .affiliate-picker .header .col-md-2 button,
.fundingbyaffiliateview .affiliate-picker .header .col-md-2 button,
.clientfilesbysalesrepview .sales-rep-picker .header .col-md-2 button {
  float: right;
}

.fundingbyaffiliateview .funding-top {
  height: 30%;
}

.clientfilesbyaffiliateview .affiliate-picker .table-overview,
.clientfilesbysalesrepview .sales-rep-picker .table-overview,
.clientfilesbystateview .state-picker .Wt-tableview,
.clientfilesbycityview .city-picker .Wt-tableview {
  height: 100%;
}

.clientfilesbyaffiliateview .affiliate-picker .footer .col-md-3,
.fundingbyaffiliateview .affiliate-picker .footer .col-md-3,
.clientfilesbysalesrepview .sales-rep-picker .footer .col-md-3 {
  width: 100%;
}

.clientfilesbyaffiliateview .client-files-overview,
.clientfilesbysalesrepview .client-files-overview,
.clientfilesbystateview .client-files-overview,
.clientfilesbycityview .client-files-overview {
  flex: 1 auto;
}

.clientfilesbyaffiliateview .client-files-overview .table-overview,
.clientfilesbysalesrepview .client-files-overview .table-overview,
.clientfilesbystateview .client-files-overview .table-overview,
.clientfilesbycityview .client-files-overview .table-overview {
  height: 100%;
}

.clientfilesbyaffiliateview .client-files-overview .table-tabwidget,
.clientfilesbysalesrepview .client-files-overview .table-tabwidget,
.clientfilesbystateview .client-files-overview .table-tabwidget,
.clientfilesbycityview .client-files-overview .table-tabwidget {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.clientfilesbyaffiliateview .client-files-overview .table-tabwidget .Wt-stack,
.clientfilesbysalesrepview .client-files-overview .table-tabwidget .Wt-stack,
.clientfilesbystateview .client-files-overview .table-tabwidget .Wt-stack,
.clientfilesbycityview .client-files-overview .table-tabwidget .Wt-stack {
  flex: 1 auto;
  overflow: auto !important;
}

.settingsmanager {
  height: 100%;
  overflow-y: auto;
}

.applicant-activity {
  margin-top: 3rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.applicant-activity .header p {
  font-size: 22px;
}

.apps-queue-negotiator-combo .input-group {
  display: flex;
  align-items: center;
}

.bankoffer-actions-container,
.paymentplan-action-container {
  display: flex;
  gap: 5px;
  justify-content: center;
}

.border-background {
  background: #eee;
  border: 1px black solid;
  border-radius: .5rem;
}

.no-padding {
  padding: 0;
}

.chatsettingsmanager .control-label,
.newsletterportalsettingsmanager .control-label {
  margin-bottom:0px;
  font-size:14px;
  padding-top:7px;
}

.margin-top-minus-1-5 {
  margin-top: -1.5rem;
}

.analyzecreditreportdialog-has-error {
  color: #a94442;
}

.documenttree .Wt-item {
  cursor: pointer;
}

.applicant-controller-row {
  display: grid;
  grid-template-columns: auto;
  gap: 1rem;
  margin-right: -12px;
  margin-left: -12px;
}

@media (min-width: 1200px) {
  .applicant-controller-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.applicant-controller-widget {
  border: 1px solid #000000;
}

.applicant-controller-widget .btn-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.applicant-controller-widget .btn-container > .btn {
  flex: 1;
}

.label {
  margin-left: 0.5rem;
}

legend {
  border-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  margin-right: 0;
}

fieldset {
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

.container-adaptive-y {
  height: 100%;
  overflow-y: scroll;
}

.pageload-stats {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  max-height: 400px; /* height of single card * 2 + some margin for safety */
}

.pageload-stats .stats-card {
  min-width: 21vw;
  max-width: 21vw;
  margin-top: 1rem;
  margin-right: 1rem;
}

/* Fix for <sup> not working correctly with a flex display using justify-content*/
.pageload-stats .stats-card .title {
  display: block;
}

.pageload-stats .stats-card .title div {
  float:right;
}

.combo-info-container .form-control {
  display: inline-block;
  width: 60%;
}

.pageloadstats .info-icon {
  color: #40ac35;
  padding-left: 0.5rem;
  cursor: pointer;
}

.version-comparison-container .form-control {
  display: inline-block;
  width: 50%;
}

.chat-history-messages {
  border: 1px solid lightgray;
  border-radius: 5px;
  max-height: 50vh;
}

.login-create-account-section {
  display: none;
}

/***** Navbar *****/
.navbar {
  height: 60px;
  left: 0;
  top: 0;
  right: 0;
  position: fixed;
  z-index: 890;
  background: #fff;
  padding-top: 0;
  padding-bottom: 0;
  box-shadow:0 0 0 1px #fff, 0 2px 17px 2px rgb(8, 35, 171, 0.1) ;
}
.navbar.active {
  background-color: #40ac35;
}

/* Navbar brand */
.header-brand {
  color: inherit;
  margin-right: 1rem;
  font-size: 1.25rem;
  white-space: nowrap;
  font-weight: 600;
  padding: 0;
  transition: .3s opacity;
  line-height: 2.9rem;
}
.main-navbar .header-brand {
  color: inherit;
  margin-right: 0;
  font-size: 1.25rem;
  white-space: nowrap;
  font-weight: 600;
  padding: 0;
  transition: .3s opacity;
  line-height: 2.9rem;
  min-width: 200px;
  text-align: center;
}
.main-navbar .header-brand .header-brand-img {
  margin-right: 0;
}
.header-brand:hover {
  color: inherit;
  text-decoration: none;
}
.header-brand-img {
  height: 2.5rem;
  line-height: 2rem;
  vertical-align: bottom;
  margin-right: .5rem;
  width: auto;
  position: relative;
  top: -3px;
}

/* Navbar hamburger menu */
.navbar .nav-link {
  color: #2f3245;
  padding-left: 15px !important;
  padding-right: 15px !important;
}
.navbar .nav-link:hover {
  color: #40ac35;
}
.navbar .nav-link:active {
  background-color: #fff;
}
.navbar .nav-link.nav-link-lg div {
  margin-top: 3px;
}
.navbar .nav-link.nav-link-lg i {
  font-size: 17px;
  margin-top: 6px;
}

/***** Navbar logged in item *****/
.dropdown-menu {
  border: none;
  -webkit-box-shadow: 0 0 25px rgba(0, 0, 0, .15);
  box-shadow: 0 0 25px rgba(0, 0, 0, .15);
}
.logged-in-view .dropdown-menu {
  width: 200px;
}
.dropdown .dropdown-toggle:focus {
  box-shadow: none;
}
.dropdown .dropdown-toggle .account-info {
  color: #55595c;
}
.dropdown .dropdown-toggle.show .account-info {
  color: black;
}
.dropdown-menu a {
  font-size: 14px;
}
.dropdown-menu a:hover {
  background-color: #40ac35;
  color: #fff;
}
.dropdown-item {
  padding: 10px 20px;
  line-height: 1.5;
  color: #40ac35;
}

/***** Side (collapsible) menu ****/
.app-sidebar {
  background-color: #313a46;
}
.app-sidebar .side-menu a {
  color: #bccee4;
}
.side-menu .nav-item .menu-icon {
  font-size: 1.1rem;
  width: 1.5rem;
  margin-right: 1rem;
  color: #bccee4;
}
.affiliate-menu .side-menu .nav-item.active .menu-icon,
.affiliate-menu .side-menu .nav-item:hover .menu-icon,
.affiliate-menu .side-menu .nav-item:focus .menu-icon,
.side-menu .nav-item.active .menu-icon,
.side-menu .nav-item:hover .menu-icon,
.side-menu .nav-item:focus .menu-icon {
  color: #40ac35;
}
.side-menu .nav-item {
  width: 100%;
}
.side-menu .nav-item .menu-icon.fa-solid.fa-angle-right {
  margin-right: 0.5rem;
}

/* General layout styling */
html body {
  background-color: #f4f7fe;
  margin: 0px;
  height: 100%;
  width: 100%;
}

.main-wrapper {
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.app-content {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  height: calc(100vh - 110px); /* 60px for navbar, 50px for footer */
  margin-top: 60px;
  padding: 20px;
}

.app-content .section {
  height: 100% !important;
}

.app-content .section .Wt-stack.card {
  height: 100%;
  max-width: 100%;
  overflow: auto !important;
  --bs-card-bg: inherit;
}

.app-content .section .Wt-stack.card > div:not(:has(.dashboard)) {
  background-color: #ffffff;
}

section > .card {
  margin-bottom: 3rem;
}
.card {
  border: none;
}
.padded-card {
  padding: 1rem !important;
}

/* Footer */
.main-footer {
  background: #fff;
  padding: .8rem;
}

/* Normally the dashboard blocks should fit on the screen, but if they would
 * try to go under, this makes it so it doesn't look horrific and when more
 * blocks are added this will probably become needed anyway.
 */
.dashboard {
  overflow-y: auto;
  height: 100%;
}

.dashboard-block {
  margin-bottom: 1vh;
}

/* Tab styling */
.nav-tabs {
  border-color: #adb5bd;
}
.nav-tabs .nav-item a {
  color: black;
}
.nav-tabs .nav-item .nav-link.active {
  border-top: 3px solid #40ac35;
  border-left-color: #adb5bd;
  border-right-color: #adb5bd;
  border-bottom-color: #f3f3f3;
  background-color: #f3f3f3;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.nav-tabs .nav-item .nav-link:not(.active):hover {
  color: #40ac35;
  border-color: #fff;
}
.nav-tabs .nav-item .close {
  margin-top: -0.1rem !important;
}

/***** Filter panel *****/
.filter-panel .card-header, .Wt-panel.card .card-header {
  border: 1px solid #ddd !important;
}
.filter-panel.panel-danger .card-header {
  background-color: #f2dede;
  border-color: #ebccd1 !important;
}
.filter-panel.Wt-collapsed .card-header {
  border-bottom-left-radius: .3rem;
  border-bottom-right-radius: .3rem;
}
.filter-panel .card-body, .Wt-panel.card .card-body {
  border: 1px solid #ddd;
}
.filter-panel.panel-danger .card-body {
  border-color: #ebccd1 !important;
}
.filter-panel .mt-12 {
  margin-top: 1.5rem;
}
.filter-panel .form-group .input-group select {
  width: 7rem;
  flex-grow: 0;
}

/* Anchor Styling */
a {
  color: #40ac35;
}
a:hover {
  color: #39992f;
}

/* Card Header */
.card .content-header, .card .card-footer, .card .card-body {
  background-color: transparent;
}
.card .content-header {
  border-bottom-color: transparent;
  line-height: 30px;
  -ms-flex-item-align: center;
  -ms-grid-row-align: center;
  align-self: center;
  width: 100%;
}
.content-header {
  padding: 15px 30px;
}
.card .content-header:before{
  content:'';
  width:3px;
  height:30px;
  background:#40ac35;
  position:absolute;
  display:block;
  left:0;
}
.card .content-header h4 {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0;
  margin:0;
  line-height: 30px;
}
.card .content-header h4 a.unstyled {
  font-size: 14px;
}

/* Labels */
.control-label {
  font-weight: bold;
}

/* Calendar */
.calendar-weekday {
  border: 1px solid gray;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.calendar-header {
  border-bottom: 1px solid gray;
  background-color: #c3c3c3;
  flex: 0 0 auto;
}

.calendar-body {
  flex: 1 1 auto;
  position: relative;
  min-height: 50px;
}

/* The week view has events positioned relatively based on the time. We need a large enough body to show the events correctly */
.calendar-weekview .calendar-body {
  min-height: 500px;
}

.calendar-event {
  line-height: 20px;
  font-weight: bold;
  text-align: center;
  color: white;
  width: 100%;
  min-height: 23px;
  border-radius: 5px;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  cursor: pointer;
  border: 1px solid;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-weekevent {
  position: absolute;
}

.calendar-consultation {
  background-color: #6bb0e4;
}

.calendar-todo {
  background-color: #1c6399;
}

.calendar-unavailable {
  background-color: #999999;
}

.calendar-available {
  background-color: #b6e5b6;
}

.calendar-negotiations {
  background-color: #4b3a68;
}

.calendar-webinar {
  background-color: #629dbb;
}

@keyframes calendar-pulse {
  0% {
    box-shadow: 0px 0px 0px 0px rgba(99, 76, 136, 0);
  }

  25% {
    box-shadow: 0px 0px 2.5px 1px rgba(99, 76, 136, 0.25);
  }

  50% {
    box-shadow: 0px 0px 5px 2px rgba(99, 76, 136, 0.5);
  }

  85% {
    box-shadow: 0px 0px 5px 5px rgba(99, 76, 136, 0);
  }

  100% {
    box-shadow: 0px 0px 0px 0px rgba(99, 76, 136, 0);
  }
}

.pulse-animation {
  animation: calendar-pulse 2s infinite;
  animation-timing-function: ease-in-out;
}

/* Image Picker */
.image-picker-wrapper-icon {
  max-height: 50.0px;
  margin-left: 20px;
}

/* Client File Row Colors */
.R-Color-1 {
  background-color: #c9ecc9 !important; /* light green */
}

.R-Color-2 {
  background-color: #ffebcc !important; /* very light brown */
}

.R-Color-4 {
  background-color: #ecc3b6 !important; /* pink */
}

.R-Color-5 {
  background-color: #c9ece9 !important; /* light blue */
}

.R-Color-6 {
  background-color: #c0b6ec !important; /* light purple */
}

.R-Color-7 {
  background-color: #ff6666 !important; /* red */
}

.R-Color-8 {
  background-color: #ffffff !important; /* white */
}

.R-Color-9 {
  background-color: #ecb65f !important; /* dark orange */
}

.R-Color-11 {
  background-color: #b3ceb3 !important; /* dark green */
}

.R-Color-12 {
  background-color: #84b084 !important; /* pastel green */
}

.R-Color-orange {
  background-color: #faac58 !important; /* */
}

/* Note Row Colors */

.note-color-webinar {
  background-color: #c9ecc9 !important; /* light green */
}

.note-color-future-entry-primary {
  background-color: #ffebcc !important; /* very light brown */
}

.note-color-future-entry-secondary {
  background-color: #E3D1B5 !important; /* Darker version of note-color-future-entry-primary */
}

.note-color-future-entry-no-applicant  {
  background-color: #D0C0A6 !important; /* Darker version of note-color-future-entry-secondary */
}

.note-color-future-entry-sales {
  background-color: #bea885 !important; /* Darker version of note-color-future-entry-no-applicant */
}

.note-color-email {
  background-color: #e6b6ec !important; /* light magenta */
}

.note-color-credit-issue {
  background-color: #ecc3b6 !important; /* pink */
}

.note-color-phone-call {
  background-color: #c9ece9 !important; /* light blue */
}

.note-color-phone-text {
  background-color: #BBDCD9 !important; /* Darker version of note-color-phone-call */
}

.note-color-chat {
  background-color: #c0b6ec !important; /* light purple */
}

.note-color-consult {
  background-color: #f5a9a9 !important; /* red */
}

.note-color-loan-issue {
  background-color: #ecb65f !important; /* dark orange */
}

.note-color-loan {
  background-color: #f7fe2e !important; /* yellow */
}

.note-color-loan-removed-prospect
{
  background-color: #faffad !important; /* lighter yellow */
}

.note-color-affiliate {
  background-color: #b3ceb3 !important; /* dark green */
}

.note-color-credit-gained-update {
  background-color: #DEEC7B !important; /* yellow/green */
}

.note-color-agreement {
  background-color: #8EACB2 !important; /* Dark grayish cyan */
}

.note-color-credit-report {
  background-color: #6f6b7f !important; /* Dark grayish blue */
}

.note-color-file-review {
  background-color: #ac5e74 !important; /* Dark moderate pink */
}

.note-color-client-registration {
  background-color: #0ba772 !important; /* Dark cyan - lime green */
}

.note-color-other {
  background-color: #72a5b5 !important; /* Slightly desaturated cyan */
}

.note-color-contact {
  background-color: #b076ec !important; /* Soft violet */
}

.note-color-push-to-kaydem {
  background-color: #d4d4d4 !important; /* Light gray */
}

.note-color-funding-application {
  background-color: #9d7189 !important;
}

.red-stripes {
    background: repeating-linear-gradient(
        -45deg,
        rgba(0,0,0,0),
        rgba(0,0,0,0) 10px,
        rgba(255, 0, 0, 0.3) 10px,
        rgba(255, 0, 0, 0.3) 20px
    );
}

/* End Note Row Colors */

/* Client File Menu */
.client-file-menu-container {
  overflow-y: auto;
}
.client-file-menu {
  display: inline;
}
.applicant-menu {
  padding-left: 20px;
}

.client-file-view .form-tabview .Wt-stack {
  overflow: hidden !important;
}

.client-file-view .client-file-contents {
  flex: 1 1 auto;
  overflow: hidden;
}

.client-file-view .content-header:before{
  content: '';
  width: 3px;
  height: 30px;
  background: #40ac35;
  position: relative;
  float: inline-start;
  margin-left: -30px;
}

.client-file-view .collapse-btn-container {
  position: relative;
  min-height: 30px;
}

.client-file-view .collapse-btn-container .btn {
  position: absolute;
  bottom: 0;
  right: 0;
}

.client-file-view .header-container .toast {
  height: 100% !important;
}

.client-file-header {
  margin-left: 0;
  margin-right: 0;
}

/* Negotiations Checklist */
.negotiations-checklist {
  padding-top: 20px;
}

/* Invoice */
.invoice-container .form-group {
  margin-bottom: 1rem;
}

/* Dialogs */
.modal-dialog > .modal-content {
  max-width: 90vw;
  max-height: 95vh;
}

.modal-dialog > .modal-content .modal-body {
  overflow-y: auto;
  max-height: 80vh;
}

.table-overview {
  height: 100%;
}

.table-overview .tcontainer .Wt-spacer {
  overflow: initial;
}

.table-tabwidget,
.form-tabview {
  padding: 12px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.table-tabwidget .Wt-stack {
  flex: 1 auto;
  overflow: auto !important;
}

.flex-container .table-container {
  flex: 1 1 auto;
}

.dedicated-app .client-file-view .Wt-stack,
.dedicated-app .lead-detail {
  overflow-y: auto !important;
}

.profile-editor {
  overflow-y: auto;
}

.btn.btn-mfa-success {
  color: #fff;
  background-color: #5cb85c;
  border-color: #4cae4c;
  --bs-btn-color: #fff;
  --bs-btn-bg: #5cb85c;
  --bs-btn-border-color: #4cae4c;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #4cae4c;
  --bs-btn-hover-border-color: #449d44;
  --bs-btn-focus-shadow-rgb: 92, 184, 92;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #449d44;
  --bs-btn-active-border-color: #398439;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #5cb85c;
  --bs-btn-disabled-border-color: #5cb85c;
}

.btn.btn-mfa-danger {
  color: #fff;
  background-color: #fa292e;
  border-color: #fa292e;
  --bs-btn-color: #fff;
  --bs-btn-bg: #dc3545;
  --bs-btn-border-color: #dc3545;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #bb2d3b;
  --bs-btn-hover-border-color: #b02a37;
  --bs-btn-focus-shadow-rgb: 225, 83, 97;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #b02a37;
  --bs-btn-active-border-color: #a52834;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #dc3545;
  --bs-btn-disabled-border-color: #dc3545;
}

.refund-picker {
  overflow-y: auto;
}

.iframe-container {
  overflow: hidden;
  padding-top: 56.25%;
  position: relative;
}

.iframe-container iframe {
  border: 0;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.credit-report-summary-dialog > .modal-dialog {
  height: 100%;
  max-height: 100%;
  min-height: 0;
}

.credit-report-summary-dialog > .modal-dialog > .modal-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  height: 100%;
  max-width: none;
  max-height: none;
  min-height: 0;
}

.credit-report-summary-dialog-joint > .modal-dialog {
  max-width: none;
}

.credit-report-summary-dialog-contents {
  max-height: none !important;
  min-height: 0;
}

.credit-report-summary-tabs {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  width: 100%;
}

.credit-report-summary-tabs > .nav {
  flex: 0 0 auto;
}

.credit-report-summary-tabs > .tab-content {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  overflow: hidden;
}

.credit-report-summary-tabs > .tab-content > .tab-pane {
  height: 100%;
  min-height: 0;
}

.credit-report-summary-dialog-summary {
  height: 100%;
  max-height: none;
  min-height: 0;
  overflow: auto;
  width: 100%;
}

.credit-report-summary-dialog-summary .prequal-summary-table-block,
.credit-report-summary-dialog-summary .prequal-summary-report,
.credit-report-summary-dialog-summary .prequal-summary-table,
.credit-report-summary-dialog-summary .prequal-summary-precheck-table,
.credit-report-summary-dialog-summary .prequal-summary-result-table,
.credit-report-summary-dialog-summary .credit-utilization-chart {
  width: 100%;
}

.credit-report-summary-dialog-summary .prequal-summary-table td:last-child,
.credit-report-summary-dialog-summary .prequal-summary-result-table td:last-child {
  width: 100%;
}

.credit-report-summary-dialog-summary .prequal-summary-table td:not(:last-child),
.credit-report-summary-dialog-summary .prequal-summary-result-table td:not(:last-child) {
  white-space: nowrap;
}

.credit-report-summary-dialog-summary .prequal-summary-table .Wt-slider-h {
  min-width: 340px;
  width: 100% !important;
}

.credit-report-summary-dialog-summary .prequal-summary-table .Wt-slider-h .Wt-w {
  max-width: 340px;
  min-width: 340px;
  width: 340px !important;
}

.credit-report-summary-dialog-summary .prequal-summary-report {
  height: 100%;
  min-height: 360px;
}

.credit-report-summary-dialog-summary .prequal-summary-report > div {
  height: 100%;
}

.credit-report-summary-dialog-summary .prequal-summary-report-column > div {
  height: 100%;
}

.credit-report-summary-dialog-summary .iframe-container {
  height: 100%;
  min-height: 360px;
  padding-top: 0;
}

.credit-report-summary-dialog-summary .prequal-summary-report-joint,
.credit-report-summary-dialog-summary .prequal-summary-table-layout-joint {
  align-items: flex-start;
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  min-width: 1120px;
  width: 100%;
}

.credit-report-summary-dialog-summary .prequal-summary-report-joint > .prequal-summary-report-column,
.credit-report-summary-dialog-summary .prequal-summary-table-layout-joint > .prequal-summary-table-column {
  flex: 1 0 0;
  min-width: 0;
  width: auto;
}

.credit-report-summary-dialog-summary .prequal-summary-table-layout-joint .prequal-summary-table {
  width: 100%;
}

.cbc-reports-block {
  margin-top: 20px;
}

@media (min-width: 1000px) {
  .cbc-row-md-eq-height {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
  }
}

.cbc-reports-block .col-md-6 {
  position: relative;
}

.cbc-report div {
  height: 100%;
}

.side-menu > .nav-item.menu-item-valid > .nav-link::before {
  font: var(--fa-font-solid);
  margin-right: 1rem;
  display: inline-block;
  content: '\f00c';
  color: var(--success-color);
  font-size: x-large;
}

.side-menu > .nav-item.menu-item-invalid > .nav-link::before {
  font: var(--fa-font-solid);
  margin-right: 1rem;
  display: inline-block;
  content: '\f00d';
  color: var(--danger-color);
  font-size: x-large;
}

/* Loading indicator */
@-webkit-keyframes animateShowLoading {
  0% {
    opacity: 0;
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
  }

  100% {
    opacity: 1;
    -webkit-transform: translateX(0px);
    transform: translateX(0px);
  }
}

@keyframes animateShowLoading {
  0% {
    opacity: 0;
    -webkit-transform: translateX(100%);
    -ms-transform: translateX(100%);
    transform: translateX(100%);
  }

  100% {
    opacity: 1;
    -webkit-transform: translateX(0px);
    -ms-transform: translateX(0px);
    transform: translateX(0px);
  }
}

@-webkit-keyframes animateHideLoading {
  0% {
    opacity: 1;
    -webkit-transform: translateY(0px);
    transform: translateY(0px);
  }

  100% {
    opacity: 0;
    -webkit-transform: translateY(100%);
    transform: translateY(100%);
  }
}

@keyframes animateHideLoading {
  0% {
    opacity: 1;
    -webkit-transform: translateX(0px);
    transform: translateX(0px);
  }

  100% {
    opacity: 0;
    -webkit-transform: translateX(100%);
    -ms-transform: translateX(100%);
    transform: translateX(100%);
  }
}

.animate-show-loading {
  -webkit-animation-name: animateShowLoading;
  -webkit-animation-duration: 250ms;
  animation-name: animateShowLoading;
  animation-duration: 250ms;
}

.animate-hide-loading {
  -webkit-animation-name: animateHideLoading;
  -webkit-animation-duration: 500ms;
  -webkit-animation-fill-mode: forwards;
  animation-name: animateHideLoading;
  animation-duration: 500ms;
  animation-fill-mode: forwards;
}

.loading-icon {
  color: #ffffff;
  position: fixed;
  top: 0;
  width: 100%;
  text-align: right;
  z-index: 1000;
}

.loading-icon-container {
  border-radius: 4px;
  padding: 7px 5px 5px 5px;
  display: inline-block;
  background-color: var(--info-color);
}

.pageloadstats-table {
  display: table;
  table-layout: fixed;
}

.affiliate-autocomplete-popup {
  border-radius: 0.375rem;
}

.affiliate-autocomplete-popup > li {
  padding-left: 10px;
  padding-right: 10px;
}

.affiliate-autocomplete-popup > li:hover, .affiliate-autocomplete-popup > .active {
  color: white;
  background-color: #40ac35;
}

.affiliate-autocomplete-popup > li > a {
  color: inherit;
}

.send-bank-offer-toast > .toast {
  width: 75%;
}

/***** Lead colours *****/
.lead-color-0 {
  background-color: #ffaf4d !important;
}
.lead-color-1 {
  background-color: #3aae2a !important;
}
.lead-color-2 {
  background-color: #ff8c00 !important;
}
.lead-color-3 {
  background-color: #aaa3c1 !important;
}
.lead-color-4 {
  background-color: #1f1754 !important;
  color: white !important;
}
.lead-color-5 {
  background-color: #90971d !important;
}
.lead-color-6 {
  background-color: #ffffff !important;
}
.lead-color-7 {
  background-color: #e6e600 !important;
}
.lead-color-8 {
  background-color: #c678a2 !important;
}
.lead-color-9 {
  background-color: #9fc9e8 !important;
}
.lead-color-10 {
  background-color: #e8afa1 !important;
}
.lead-color-11 {
  background-color: #ff6666 !important;
}
.lead-color-12 {
  background-color: #17a2b8 !important;
  color: white !important;
}

.joint-pq-highlight {
  background-color: #b692c3 !important;
}

.credit-utilization-chart-warning {
  .row {
    margin: 0;
  }
}
