:root {
  --bs-link-color: #1D174B;
}

@media (min-width: 768px) {

  form:not(#login-form):not(#password-reset-form),
  form:not('.dashboard form') {
    width: 40%;
    max-width: 40%;
  }
}

.container-fluid {
  min-height: calc(100vh - 101px);
}

.logo-site {
  padding: 0 25px;
  width: 100%;
}

.sidebar .nav-link {
  font-weight: 600;
  font-size: 16px;
}

@media (max-width: 767.98px) {
  .dashboard .col-6 {
    width: 100%;
    margin-top: 22px;
  }

  .dashboard .col-8.mx-auto {
    margin-right: 0 !important;
    margin-left: -15px !important;
  }

  .sidebar {
    top: 0;
  }

  .profile,
  .logout {
    display: none;
  }

  .logo-site {
    padding: 0 60px;
  }

  .sidebar .nav-link {
    font-size: 18px;
  }
}


@media (max-width: 932.98px) {

  .dashboard .col-8.mx-auto {
    margin-right: 0 !important;
    margin-left: 0px !important;
  }
}

@media (max-width: 375.98px) {
  .sidebar {
    top: 1rem;
  }

  .popup__container {
    height: 80vh;
  }

  iframe {
    width: 100%;
    height: 65vh !important;
  }

  .popup__body {
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
  }

}

@media (min-width: 768px) {
  .mobile-only {
    display: none;
  }
}

.greeting {
  background: #FFF;
  padding: 10px 0;
  text-align: center;
}

.sidebar .greeting .nav-link {
  font-size: 18px;
}

.sidebar .nav-link .feather {
  margin-right: 5px;
  width: 18px;
  height: 18px;
  margin-top: -3px;
}

.mobile-logout {
  background: #FFF;
  margin: 10px 0;
  padding: 5px 0;
}

button.navbar-toggler.d-md-none {
  background: #7670B2;
  border: none;
  border-radius: unset;
  margin-top: -9px;
  margin-bottom: -9px;
  padding: 21px;
}

button.navbar-toggler.d-md-none:focus {
  box-shadow: none;
}

button.navbar-toggler.d-md-none.collapsed span {
  --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

button.navbar-toggler.d-md-none span {
  --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M5 5 L25 25 M25 5 L5 25'/%3e%3c/svg%3e");
}

.topbar {
  background: #333132;
  height: 72px;
  color: #ACACAC;
}

.navbar-brand {
  background: #333132;
  color: #ACACAC;
  border: none;
  box-shadow: none;
  width: 60%;
  white-space: normal;
}

.profile {
  font-size: 18px;
  color: #FFF;
  font-weight: 600;
  margin-top: 5px;
}

.logout {
  color: #ACACAC;
  text-decoration: underline;
  font-size: 18px;
  margin-top: 5px;
}

.language-switcher {
  border: 1px solid #ACACAC;
  color: #ACACAC;
  margin-right: 15px;
  margin-top: 8px;
  margin-left: 10px;
}

.sidebar-sticky,
#sidebarMenu {
  background: #EFF5FC;
}

.sidebar .nav-link.active {
  color: #7670B2;
}

a {
  color: #1D174B;
}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #1D174B;
  --bs-btn-border-color: #1D174B;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #1D174B;
  --bs-btn-hover-border-color: #1D174B;
  --bs-btn-focus-shadow-rgb: 49, 132, 253;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #1D174B;
  --bs-btn-active-border-color: #1D174B;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #1D174B;
  --bs-btn-disabled-border-color: #1D174B;
}

.primary-cta {
  color: #1D174B;
  --bs-btn-color: #1D174B;
  --bs-btn-border-color: #1D174B;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #1D174B;
  --bs-btn-hover-border-color: #1D174B;
}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link {
  --bs-nav-link-color: #7670B2;
  --bs-nav-link-hover-color: #1D174B;
}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
  --bs-nav-tabs-link-active-color: #1D174B;
  --bs-nav-link-font-weight: bold;
}

.referrals .table thead tr:first-child th {
  color: #FFF;
}

.referrals .table thead tr:first-child th:nth-child(1) {
  background-color: #1D174B;
}

.referrals .table thead tr:first-child th:nth-child(2) {
  background-color: #41379B;
}

.referrals .table thead tr:first-child th:nth-child(3) {
  background-color: #7670B2;
}

.referrals .table thead tr:first-child th:nth-child(4) {
  background-color: #44c7f4;
}

.referrals .table {
  white-space: nowrap
}

.bd-placeholder-img {
  font-size: 1.125rem;
  text-anchor: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.copyright {
  background: #F4F4F4;
  color: #5A5B5C;
}

@media (min-width: 768px) {
  .bd-placeholder-img-lg {
    font-size: 3.5rem;
  }

  .navbar-nav {
    margin-right: inherit;
  }
}

.b-example-divider {
  height: 3rem;
  background-color: rgba(0, 0, 0, .1);
  border: solid rgba(0, 0, 0, .15);
  border-width: 1px 0;
  box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
}

.b-example-vr {
  flex-shrink: 0;
  width: 1.5rem;
  height: 100vh;
}

.bi {
  vertical-align: -.125em;
  fill: currentColor;
}

.nav-scroller {
  position: relative;
  z-index: 2;
  height: 2.75rem;
  overflow-y: hidden;
}

.nav-scroller .nav {
  display: flex;
  flex-wrap: nowrap;
  padding-bottom: 1rem;
  margin-top: -1px;
  overflow-x: auto;
  text-align: center;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.input-group-append button {
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
}

.form-control[type=file] {
  text-transform: capitalize;
}

.form-signin,
.form-password-reset {
  max-width: 400px;
  padding: 15px;
  min-height: 87vh;
}

.form-signin .form-floating:focus-within {
  z-index: 2;
}

.form-signin input[type="email"] {
  margin-bottom: -1px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.form-signin input[type="password"],
.form-signin #password-reset {
  margin-bottom: 10px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  height: 58px;
}

#error_box {
  display: none;
}

.referrals table th {
  width: calc(100% / 9);
  /* Adjust the number based on the number of columns */
}

.custom-select {
  position: relative;
}

.select-wrapper {
  position: relative;
}

.select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2rem;
  /* Add space for the spinner */
}

.is-loading .spinner {
  display: block !important;
}

.spinner {
  position: absolute;
  top: 55%;
  right: 35px;
  transform: translateY(-50%);
}

.invalid-feedback+.spinner {
  right: 60px;
  top: 35%;
}

.is-valid+.invalid-feedback+.spinner {
  top: 50%;
}

.spinner-border {
  width: 1.2rem;
  height: 1.2rem;
}

.btn-text,
.loading-text {
  transition: opacity 0.3s ease-in-out;
}

/* Hide "Submit" text when loading */
.btn-primary.disabled .btn-text {
  opacity: 0;
}

/* Show "Loading..." text when loading */
.btn-primary.disabled .loading-text {
  opacity: 1;
}

.countryprovince,
#province_container {
  display: none;
}

.popup {
  background: #000A;
}

.popup__container {
  max-width: 80vw;
  background-color: #f8f9fa;
  border: 1px solid #dadada;
  padding: 30px;
}

.popup__close {
  top: 5px;
  right: 5px;
  cursor: pointer;
  padding: 0;
  position: absolute;
  zoom: 1.5;
}

.popup__body {
  padding: 10px 10px 0 10px;
  width: 70vw;
  height: 80vh;
}

iframe {
  width: 100%;
  height: 75vh;
}



@media (min-width: 431px) and (max-width: 1180px) {
  .d-md-none {
    display: inherit !important;
  }

  .col-md-9,
  .col-md-3 {
    flex: inherit;

  }

  main.col-md-9.ms-sm-auto.col-lg-10.px-md-4,
  footer.col-md-9.ms-sm-auto.col-lg-10.px-md-4.p-3.mt-5.copyright {
    width: 100%;
  }

  .d-md-block {
    display: inherit !important;
  }

  .d-md-block.col-md-3 {
    width: 100% !important;
    display: block !important;
  }

  .collapse:not(.show) {
    display: none !important;
  }

  .d-md-block.col-md-3.collapse:not(.show) {
    display: none !important;
  }

  .position-sticky.pt-3.sidebar-sticky {
    width: 30vw;
    margin: auto;
  }

  .mobile-only.greeting {
    display: none;
  }

  .mobile-only.mobile-logout {
    display: block;
  }

  .logout {
    display: none;
  }

  button.navbar-toggler.d-md-none {
    margin-bottom: -8px;
  }
}

div#p_dob_mm-error {
  width: max-content;
}

.spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.2em;
}


.range-selector {
  padding: 56px 10px;
}

.chart-header {
    padding: 0
}

.chart-header .btn-group{    
    width: 100%;
 
    height: 41px;
}

.chart-header .btn-group .btn{
  border: 0;
  color:  #7670B2;
}
.chart-header .btn-group .btn.btn-primary{
  color: #FFF;
}
.chart-header .btn-group .btn.btn-outline-primary{
  color: #7670B2;
}
.chart-header .btn-group .btn:hover{
  background-color: #7670B2;
  color: #FFF;
}
.chart-header .btn-group .btn:first-child{
  border-bottom-left-radius:0
}
.chart-header .btn-group .btn:last-child{
  border-bottom-right-radius:0
}