/* The transparent export has generous margins; frame it without stretching. */
/* Primary controls in the legacy admin/seller layout. */
body:not(.portal-v2) .btn-primary,
body:not(.portal-v2) .bg-primary,
body:not(.portal-v2) .page-item.active .page-link,
body:not(.portal-v2) .sidebar-dark-indigo .nav-sidebar > .nav-item > .nav-link.active {
  background-color: #111111 !important;
  border-color: #111111 !important;
  color: #fff !important;
}
body:not(.portal-v2) .btn-primary:hover,
body:not(.portal-v2) .btn-primary:focus,
body:not(.portal-v2) .btn-primary:active {
  background-color: #3a3a3d !important;
  border-color: #3a3a3d !important;
  box-shadow: 0 0 0 .2rem rgba(17,17,17,.2) !important;
}
body:not(.portal-v2) .text-primary { color: #111111 !important; }
body:not(.portal-v2) .sidebar-dark-indigo .text-primary { color: #e3e3e5 !important; }
body:not(.portal-v2) .btn-outline-primary {
  color: #111111;
  border-color: #111111;
}
body:not(.portal-v2) .btn-outline-primary:hover {
  background: #111111;
  color: #fff;
}
.portal-brand-logo {
  display: inline-block;
  position: relative;
  width: 190px;
  max-width: 100%;
  height: 44px;
  overflow: hidden;
  vertical-align: middle;
  background: #fff;
  border-radius: 6px;
}
.portal-brand-logo img,
.portal-v2 .login-logo .portal-brand-logo img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 105%;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  float: none;
  transform: translate(-50%, -50%);
  filter: none;
}
.login-logo .portal-brand-logo { width: 280px; height: 64px; }
/* Reverse the transparent wordmark on dark sidebars, retaining the SPC cutout. */
.navbar-vertical[data-bs-theme="dark"] .portal-brand-logo,
.main-sidebar .portal-brand-logo {
  background: transparent;
  border-radius: 0;
}
.navbar-vertical[data-bs-theme="dark"] .portal-brand-logo img,
.main-sidebar .portal-brand-logo img {
  filter: grayscale(1) invert(1);
}
.sidebar-mini.sidebar-collapse .main-sidebar .portal-brand-logo { width: 40px; }
.sidebar-mini.sidebar-collapse .main-sidebar:hover .portal-brand-logo { width: 190px; }
.sidebar-mini.sidebar-collapse .main-sidebar:not(:hover) .portal-brand-logo img {
  content: url('../../front_end/img/branding/clinic-spc-app-icon.png');
  width: 44px;
  filter: none;
}

/* Keep primary labels legible while hovering, pressing, or submitting forms. */
body .btn-primary:is(:hover,:focus,:active,:disabled),body .btn-primary.active {
  background-color:#3a3a3d!important;border-color:#3a3a3d!important;color:#fff!important;
}
body .btn-primary:is(:hover,:focus,:active,:disabled) :is(span,i,svg) {color:inherit!important}
