/*
 * Temporary compatibility rules while legacy Neon/Bootstrap 3 templates are
 * migrated to Bootstrap 5.  Keep this file small: new templates must use the
 * Bootstrap 5 classes directly.
 */
.pull-left { float: left !important; }
.pull-right { float: right !important; }
.center-block { display: block; margin-right: auto; margin-left: auto; }
.show { display: block; }
.hidden { display: none !important; }
.close {
  float: right;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: #000;
  text-shadow: 0 1px 0 #fff;
  opacity: .5;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  cursor: pointer in !important;
  outline: none !important;
  box-shadow: none !important;
}
.close:hover, .close:focus { color: #555 !important; text-decoration: none; cursor: pointer; opacity: 1 !important; }
/* Ensure legacy btn-default buttons render with a consistent grey color inside and border */
.btn-default {
  color: #5a5a5a !important;
  background-color: #d8d8d8 !important;
  border-color: #c8c8c8 !important;
  background-image: none !important;
}
.btn-default:hover,
.btn-default:focus,
.btn-default:active,
.btn-default.active {
  color: #4a4a4a !important;
  background-color: #c8c8c8 !important;
  border-color: #b8b8b8 !important;
  background-image: none !important;
}

/*
 * The legacy Neon templates were authored using Bootstrap 3's 14px base
 * typography and 750/970/1170px containers.  Bootstrap 5 defaults to 16px
 * rem sizing and different breakpoints, which makes these screens appear
 * oversized and changes their desktop grid.
 */
html { font-size: 14px; }
body { font-size: 14px; line-height: 1.42857143; }

.container,
.container-fluid {
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}
@media (min-width: 768px) {
  .container { width: 750px; max-width: 750px; }
}
@media (min-width: 992px) {
  .container { width: 970px; max-width: 970px; }
}
@media (min-width: 1200px) {
  .container { width: 1170px; max-width: 1170px; }
}

.form-group { margin-bottom: 15px; }
.control-label { margin-bottom: 5px; font-weight: 700; }
.form-control,
.form-select {
  min-height: 34px;
  height: 34px;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.42857143;
  border-radius: 4px;
}
textarea.form-control { height: auto; }
.form-control.cal-input {
  padding-left: 36px !important;
  background-position: 10px center;
  background-repeat: no-repeat;
}
.input-group-addon {
  display: flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.42857143;
  color: #555;
  text-align: center;
  white-space: nowrap;
  background-color: #eee;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.input-group-btn {
  position: relative;
  display: flex;
  width: auto;
  white-space: nowrap;
  vertical-align: middle;
}
.input-group-btn > .btn { position: relative; }
.btn {
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.42857143;
  border-radius: 4px;
}
.btn-lg, .btn-group-lg > .btn { padding: 10px 16px; font-size: 18px; line-height: 1.3333333; border-radius: 6px; }
.btn-sm, .btn-group-sm > .btn { padding: 5px 10px; font-size: 12px; line-height: 1.5; border-radius: 3px; }
.btn-xs, .btn-group-xs > .btn { padding: 1px 5px; font-size: 12px; line-height: 1.5; border-radius: 3px; }
.modal.in { display: block; }
.modal-backdrop.in { opacity: .5; }

/* Legacy modal headers place the close button before the title. Bootstrap 5
   makes the header a flex container, so floats no longer move it to the right. */
.modal-header { position: relative; padding-right: 48px; }
.modal-header > .close {
  position: absolute;
  top: 15px;
  right: 15px;
  float: none;
  margin: 0;
  padding: 0;
}

/* Bootstrap 3 pagination markup uses plain anchors inside list items, whereas
   Bootstrap 5 only styles anchors carrying .page-link. Restore the shared
   legacy appearance so every existing list paginator remains usable. */
.tablePagination {
  display: flex;
  width: 100%;
  clear: both;
  justify-content: flex-start;
  overflow-x: auto;
}
.pagination {
  display: inline-flex;
  flex-wrap: nowrap;
  padding-left: 0;
  margin: 17px 0;
  border-radius: 3px;
}
.pagination > li { display: block; }
.pagination > li > a,
.pagination > li > span {
  position: relative;
  display: block;
  min-width: 34px;
  padding: 6px 12px;
  margin-left: -1px;
  line-height: 1.42857143;
  color: #337ab7;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
  background-color: #fff;
  border: 1px solid #ddd;
}
.pagination > li:first-child > a,
.pagination > li:first-child > span {
  margin-left: 0;
  border-radius: 3px 0 0 3px;
}
.pagination > li:last-child > a,
.pagination > li:last-child > span { border-radius: 0 3px 3px 0; }
.pagination > li > a:hover,
.pagination > li > span:hover,
.pagination > li > a:focus,
.pagination > li > span:focus {
  z-index: 2;
  color: #23527c;
  background-color: #eee;
  border-color: #ddd;
}
.pagination > .active > a,
.pagination > .active > span,
.pagination > li > a.active,
.pagination > li > span.active,
.pagination > .active > a:hover,
.pagination > .active > span:hover,
.pagination > li > a.active:hover,
.pagination > li > span.active:hover {
  z-index: 3;
  color: #fff;
  cursor: default;
  background-color: #337ab7;
  border-color: #337ab7;
}
.pagination > .disabled > a,
.pagination > .disabled > span {
  color: #999;
  pointer-events: none;
  cursor: not-allowed;
  background-color: #fff;
  border-color: #ddd;
}

/* Keep long values in the LMS Additional Parameters dropdown compact. */
.filterBox .fs-option,
.filterBox .fs-optgroup-label,
.filterBox .fs-no-results,
.filterBox .fs-search input {
  font-size: 12px;
  line-height: 1.35;
}
.filterBox .fs-option { word-break: normal; overflow-wrap: anywhere; }

/* The Lead Details selector uses custom flex children rather than Bootstrap
   columns. Bootstrap 5's .row > * width reset otherwise makes each control
   span a complete row. */
.row.lead_filter > .lead_filter_col {
  flex: 0 1 320px;
  width: 320px;
  max-width: 100%;
  padding-right: 0;
  padding-left: 0;
}
.row.lead_filter > .lead_filter_col .input-group { width: 100%; }
.row.lead_filter > .lead_filter_col:last-child {
  flex: 0 0 auto;
  width: auto;
}
@media (max-width: 767.98px) {
  .row.lead_filter > .lead_filter_col,
  .row.lead_filter > .lead_filter_col:last-child {
    flex-basis: 100%;
    width: 100%;
  }
}

/*
 * Bootstrap 3 grid compatibility
 *
 * The application templates use the Bootstrap 3 breakpoints (sm: 768px,
 * md: 992px, lg: 1200px) and the removed col-xs-* helpers.  Bootstrap 5
 * uses different breakpoints, so without these rules older LMS/ACRM forms
 * can become full-width or change order at normal desktop resolutions.
 */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
  --bs-gutter-x: 30px;
  --bs-gutter-y: 0;
}
.col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6,
.col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 {
  position: relative;
  flex: 0 0 auto;
  min-height: 1px;
  padding-right: 15px;
  padding-left: 15px;
}
.col-xs-1 { width: 8.33333333%; }
.col-xs-2 { width: 16.66666667%; }
.col-xs-3 { width: 25%; }
.col-xs-4 { width: 33.33333333%; }
.col-xs-5 { width: 41.66666667%; }
.col-xs-6 { width: 50%; }
.col-xs-7 { width: 58.33333333%; }
.col-xs-8 { width: 66.66666667%; }
.col-xs-9 { width: 75%; }
.col-xs-10 { width: 83.33333333%; }
.col-xs-11 { width: 91.66666667%; }
.col-xs-12 { width: 100%; }

/*
 * Bootstrap 5 activates sm/md/lg grid classes at 576/768/992px.  The legacy
 * pages expect Bootstrap 3's 768/992/1200px breakpoints, so reset those
 * classes until their matching legacy breakpoint rules below take effect.
 */
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6,
.col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
.col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6,
.col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  min-height: 1px;
  padding-right: 15px;
  padding-left: 15px;
}
.col-xs-offset-0 { margin-left: 0; }
.col-xs-offset-1 { margin-left: 8.33333333%; }
.col-xs-offset-2 { margin-left: 16.66666667%; }
.col-xs-offset-3 { margin-left: 25%; }
.col-xs-offset-4 { margin-left: 33.33333333%; }
.col-xs-offset-5 { margin-left: 41.66666667%; }
.col-xs-offset-6 { margin-left: 50%; }
.col-xs-offset-7 { margin-left: 58.33333333%; }
.col-xs-offset-8 { margin-left: 66.66666667%; }
.col-xs-offset-9 { margin-left: 75%; }
.col-xs-offset-10 { margin-left: 83.33333333%; }
.col-xs-offset-11 { margin-left: 91.66666667%; }
.col-xs-offset-12 { margin-left: 100%; }

/* Keep the original Bootstrap 3 desktop breakpoints even if the CDN is
   unavailable.  These explicit rules are intentionally placed after the
   Bootstrap 5 stylesheet: a legacy col-sm-3 must stay 25% from 768px up,
   rather than becoming a full-width block. */
@media (min-width: 768px) {
  .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6,
  .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 {
    position: relative;
    flex: 0 0 auto;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
  }
  .col-sm-1 { width: 8.33333333%; } .col-sm-2 { width: 16.66666667%; }
  .col-sm-3 { width: 25%; } .col-sm-4 { width: 33.33333333%; }
  .col-sm-5 { width: 41.66666667%; } .col-sm-6 { width: 50%; }
  .col-sm-7 { width: 58.33333333%; } .col-sm-8 { width: 66.66666667%; }
  .col-sm-9 { width: 75%; } .col-sm-10 { width: 83.33333333%; }
  .col-sm-11 { width: 91.66666667%; } .col-sm-12 { width: 100%; }
}
@media (min-width: 992px) {
  .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
  .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
    position: relative;
    flex: 0 0 auto;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
  }
  .col-md-1 { width: 8.33333333%; } .col-md-2 { width: 16.66666667%; }
  .col-md-3 { width: 25%; } .col-md-4 { width: 33.33333333%; }
  .col-md-5 { width: 41.66666667%; } .col-md-6 { width: 50%; }
  .col-md-7 { width: 58.33333333%; } .col-md-8 { width: 66.66666667%; }
  .col-md-9 { width: 75%; } .col-md-10 { width: 83.33333333%; }
  .col-md-11 { width: 91.66666667%; } .col-md-12 { width: 100%; }
}
@media (min-width: 1200px) {
  .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6,
  .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {
    position: relative;
    flex: 0 0 auto;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
  }
  .col-lg-1 { width: 8.33333333%; } .col-lg-2 { width: 16.66666667%; }
  .col-lg-3 { width: 25%; } .col-lg-4 { width: 33.33333333%; }
  .col-lg-5 { width: 41.66666667%; } .col-lg-6 { width: 50%; }
  .col-lg-7 { width: 58.33333333%; } .col-lg-8 { width: 66.66666667%; }
  .col-lg-9 { width: 75%; } .col-lg-10 { width: 83.33333333%; }
  .col-lg-11 { width: 91.66666667%; } .col-lg-12 { width: 100%; }
}
@media (min-width: 768px) {
  .col-sm-offset-0 { margin-left: 0; } .col-sm-offset-1 { margin-left: 8.33333333%; }
  .col-sm-offset-2 { margin-left: 16.66666667%; } .col-sm-offset-3 { margin-left: 25%; }
  .col-sm-offset-4 { margin-left: 33.33333333%; } .col-sm-offset-5 { margin-left: 41.66666667%; }
  .col-sm-offset-6 { margin-left: 50%; } .col-sm-offset-7 { margin-left: 58.33333333%; }
  .col-sm-offset-8 { margin-left: 66.66666667%; } .col-sm-offset-9 { margin-left: 75%; }
  .col-sm-offset-10 { margin-left: 83.33333333%; } .col-sm-offset-11 { margin-left: 91.66666667%; }
  .col-sm-offset-12 { margin-left: 100%; }
}
@media (min-width: 992px) {
  .col-md-offset-0 { margin-left: 0; } .col-md-offset-1 { margin-left: 8.33333333%; }
  .col-md-offset-2 { margin-left: 16.66666667%; } .col-md-offset-3 { margin-left: 25%; }
  .col-md-offset-4 { margin-left: 33.33333333%; } .col-md-offset-5 { margin-left: 41.66666667%; }
  .col-md-offset-6 { margin-left: 50%; } .col-md-offset-7 { margin-left: 58.33333333%; }
  .col-md-offset-8 { margin-left: 66.66666667%; } .col-md-offset-9 { margin-left: 75%; }
  .col-md-offset-10 { margin-left: 83.33333333%; } .col-md-offset-11 { margin-left: 91.66666667%; }
  .col-md-offset-12 { margin-left: 100%; }
}
@media (min-width: 1200px) {
  .col-lg-offset-0 { margin-left: 0; } .col-lg-offset-1 { margin-left: 8.33333333%; }
  .col-lg-offset-2 { margin-left: 16.66666667%; } .col-lg-offset-3 { margin-left: 25%; }
  .col-lg-offset-4 { margin-left: 33.33333333%; } .col-lg-offset-5 { margin-left: 41.66666667%; }
  .col-lg-offset-6 { margin-left: 50%; } .col-lg-offset-7 { margin-left: 58.33333333%; }
  .col-lg-offset-8 { margin-left: 66.66666667%; } .col-lg-offset-9 { margin-left: 75%; }
  .col-lg-offset-10 { margin-left: 83.33333333%; } .col-lg-offset-11 { margin-left: 91.66666667%; }
  .col-lg-offset-12 { margin-left: 100%; }
}

/* Legacy tabs, panels and inline forms retain their Bootstrap 3 markup. */
.nav-tabs { display: block; border-bottom: 1px solid #ddd; }
.nav-tabs::after { display: block; clear: both; content: ""; }
.nav-tabs > li { position: relative; display: block; float: left; margin-bottom: -1px; }
.nav-tabs > li > a {
  display: block;
  padding: 10px 15px;
  line-height: 1.42857143;
  color: inherit;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 4px 4px 0 0;
}
.nav-tabs > li > a:hover { border-color: #eee #eee #ddd; }
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
  color: #555;
  cursor: default;
  background-color: #fff;
  border: 1px solid #ddd;
  border-bottom-color: transparent;
}
.nav-pills > li { float: left; }
.nav-pills > li > a { display: block; padding: 10px 15px; border-radius: 4px; }
.nav-pills > li.active > a,
.nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus { color: #fff; background-color: #337ab7; }
.nav-justified { width: 100%; }
.nav-justified > li { float: none; }
.nav-justified > li > a { margin-bottom: 5px; text-align: center; }
@media (min-width: 768px) {
  .nav.nav-justified { display: table; table-layout: fixed; }
  .nav-justified > li { display: table-cell; width: 1%; }
  .nav-justified > li > a { margin-bottom: 0; }
}
.panel { margin-bottom: 20px; background-color: #fff; border: 1px solid transparent; border-radius: 4px; }
.panel-body { padding: 15px; }
.panel-body::after { display: block; clear: both; content: ""; }
.panel-heading { padding: 10px 15px; border-bottom: 1px solid transparent; border-top-left-radius: 3px; border-top-right-radius: 3px; }
.panel-footer { padding: 10px 15px; background-color: #f5f5f5; border-top: 1px solid #ddd; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; }
.panel-default { border-color: #ddd; }
.panel-default > .panel-heading { color: #333; background-color: #f5f5f5; border-color: #ddd; }
@media (min-width: 768px) {
  .form-inline .form-group { display: inline-block; margin-bottom: 0; vertical-align: middle; }
  .form-inline .form-control { display: inline-block; width: auto; vertical-align: middle; }
}

/* Bootstrap 3 button and badge palette retained for Neon templates. */
.btn-default { color: #333; background-color: #fff; border-color: #ccc; }
.btn-default:hover, .btn-default:focus { color: #333; background-color: #e6e6e6; border-color: #adadad; }
.btn-primary { --bs-btn-bg: #337ab7; --bs-btn-border-color: #2e6da4; --bs-btn-hover-bg: #286090; --bs-btn-hover-border-color: #204d74; --bs-btn-active-bg: #286090; --bs-btn-active-border-color: #204d74; }
.btn-success { --bs-btn-bg: #5cb85c; --bs-btn-border-color: #4cae4c; --bs-btn-hover-bg: #449d44; --bs-btn-hover-border-color: #398439; --bs-btn-active-bg: #449d44; --bs-btn-active-border-color: #398439; }
.btn-info { --bs-btn-bg: #5bc0de; --bs-btn-border-color: #46b8da; --bs-btn-hover-bg: #31b0d5; --bs-btn-hover-border-color: #269abc; --bs-btn-active-bg: #31b0d5; --bs-btn-active-border-color: #269abc; }
.btn-warning { --bs-btn-bg: #f0ad4e; --bs-btn-border-color: #eea236; --bs-btn-hover-bg: #ec971f; --bs-btn-hover-border-color: #d58512; --bs-btn-active-bg: #ec971f; --bs-btn-active-border-color: #d58512; }
.btn-danger { --bs-btn-bg: #d9534f; --bs-btn-border-color: #d43f3a; --bs-btn-hover-bg: #c9302c; --bs-btn-hover-border-color: #ac2925; --bs-btn-active-bg: #c9302c; --bs-btn-active-border-color: #ac2925; }
.badge-primary { background-color: #337ab7; }
.badge-success { background-color: #5cb85c; }
.badge-info { background-color: #5bc0de; }
.badge-warning { background-color: #f0ad4e; }
.badge-danger { background-color: #d9534f; }

/* Neon horizontal header was written for Bootstrap 3's floated nav items. */
@media (min-width: 768px) {
  .page-container.horizontal-menu header.navbar > .navbar-inner {
    display: flex;
    align-items: stretch;
    min-height: 55px;
  }
  .page-container.horizontal-menu header.navbar .navbar-nav {
    display: flex !important;
    width: auto;
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: stretch;
  }
  .page-container.horizontal-menu header.navbar .navbar-nav > li {
    display: block !important;
    flex: 0 0 auto;
  }

  /* Bootstrap 3's visible-xs helper kept the hamburger mobile-only. */
  .page-container.horizontal-menu header.navbar li.visible-xs,
  .page-container.horizontal-menu header.navbar .horizontal-mobile-menu {
    display: none !important;
  }

  /* Keep the legacy enquiry search and Go button as one compact control. */
  .page-container.horizontal-menu header.navbar .head-search {
    display: flex;
    width: 235px;
    max-width: 235px;
  }
  .page-container.horizontal-menu header.navbar .head-search .form-control {
    flex: 1 1 auto;
    min-width: 0;
  }
  .page-container.horizontal-menu header.navbar .head-search .input-group-btn {
    flex: 0 0 auto;
  }
  .page-container.horizontal-menu header.navbar ul.nav.navbar-right {
    display: flex !important;
    width: auto;
    flex-direction: row !important;
    align-items: stretch;
    margin: 0 0 0 auto !important;
  }
  .page-container.horizontal-menu header.navbar ul.nav.navbar-right > li {
    display: block !important;
    flex: 0 0 auto;
  }

  /* The user menu is nested in legacy Neon markup.  Keep its menu anchored
     below the icon instead of allowing Bootstrap 5/Popper to stretch it. */
  .page-container.horizontal-menu header.navbar .profile-info.dropdown {
    position: relative;
  }
  .page-container.horizontal-menu header.navbar .profile-info.dropdown > #user-Act::after {
    display: none;
  }
  .page-container.horizontal-menu header.navbar .profile-info.dropdown > .dropdown-menu {
    top: 100%;
    right: 0;
    left: auto;
    min-width: 240px;
    margin-top: 8px;
  }
}

/* Lead List desktop toolbar: retain useful control widths and keep the
   archive/current-data action at the far right without wrapping. */
@media (min-width: 1200px) {
  .lead-list-toolbar {
    flex-wrap: nowrap;
    align-items: center;
    column-gap: 18px;
  }
  .lead-list-toolbar > .form-group {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    padding-right: 0;
    padding-left: 0;
  }
  .lead-list-toolbar > .lead-toolbar-search,
  .lead-list-toolbar > .lead-toolbar-filter,
  .lead-list-toolbar > .lead-toolbar-date {
    flex: 1 1 220px;
    width: auto;
    min-width: 200px;
    max-width: 280px;
  }
  .lead-list-toolbar > .lead-toolbar-count {
    flex: 0 1 230px;
    width: 230px;
    min-width: 180px;
  }
  .lead-list-toolbar > .lead-toolbar-bot { width: auto; }
  .lead-list-toolbar > .lead-toolbar-archive {
    width: auto;
    margin-left: auto;
  }
  .lead-list-toolbar > .lead-toolbar-archive .go_text {
    float: none;
    margin-left: auto;
  }
}

/* Preserve the Bootstrap 3 pre-dashboard card proportions while using the
   Bootstrap 5 grid.  This selector is limited to the ACRM/Hyperlocal page. */
.first-dashboard .selectdashboard {
  display: block;
  width: 100%;
  max-width: 262px;
  margin: 0 auto;
}
.first-dashboard .selectdashboard .tile-stats {
  min-height: 160px;
  padding: 25px 20px;
}
@media (max-width: 767.98px) {
  .hidden-xs { display: none !important; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .hidden-sm { display: none !important; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hidden-md { display: none !important; }
}
@media (min-width: 1200px) {
  .hidden-lg { display: none !important; }
}
