body {
  font-size: 1.05em;
}

.text-success {
  color: #0E8A00 !important;
}

.btn-success, .badge-success {
  background-color: #0E8A00;
}

.btn-success:hover {
  background-color: #0A6600;
}

.btn-outline-success {
  border: 1px solid #0E8A00;
  color: #0E8A00;
}

.btn-outline-success:hover {
  background-color: #0E8A00;
}

.btn-info {
  background-color: #128091;
}

.btn-info:hover {
  background-color: #107484;
}

.mainheader {
  font-size: 2.2em;
}

.secondaryheader {
  font-size: 1.6em;
}

.dropdown-item a {
  font-weight: 600;
}

.dropdown-item:active, .dropdown-item.active {
  background-color: #f8f9fa;
  color: #16181b;
}

.skip-link {
  left: -999px;
  position: absolute;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: -999;
}

.skip-link:focus, .skip-link:active {
  left: auto;
  top: auto;
  width: 30%;
  height: auto;
  overflow: auto;
  margin: 10px 35%;
  padding: 5px;
  text-align: center;
  font-size: 1.2em;
  z-index: 999;
}

.sidebarul {
  width: 100%;
}
.sidebarul li {
  width: 100%;
  padding: 0;
}
.sidebarul li a {
  width: 100%;
}
.sidebarul li a .row {
  width: 100%;
}

*:focus {
  outline-offset: 2px;
}

#myaccounticon {
  font-size: 48px;
}

.nav-item {
  height: 47px;
}

.accountname {
  font-size: 1em;
}

.changelocation {
  font-size: 15px;
}

#signinheading {
  font-size: 1.5em;
  text-align: center;
  padding-bottom: 20px;
}

.mainfooter {
  height: 100px;
}
.mainfooter p {
  text-align: center;
  color: black;
}

@media screen and (max-width: 650px) {
  .mainfooter {
    height: auto;
    margin-left: 0;
    margin-right: 0 !important;
    padding: 16px 15px 20px !important;
  }
  .mainfooter .col-2, .mainfooter .col-10 {
    flex: 0 0 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    text-align: center;
  }
  .mainfooter .col-10 {
    order: 1;
  }
  .mainfooter .col-2 {
    margin-top: 10px;
    order: 2;
  }
  .mainfooter p {
    font-size: 0.85em;
    margin-bottom: 0;
    text-align: center !important;
  }
  #trustedsite {
    height: auto;
    width: 80px;
  }
}
.maincontainer, .bottomcontainer {
  width: 100%;
}

.maincontainer {
  min-height: 80%;
  margin: 5px 0;
  padding-left: 30px;
}

.ptportalcontainer {
  width: calc(100% - 60px);
  min-height: 80%;
  margin-left: 30px;
  margin-right: 30px;
}

#accounticon {
  margin-right: 0;
  padding-right: 0;
  position: relative;
  right: 70px;
}
#accounticon button {
  margin: 0 auto 3px;
}
#accounticon li {
  text-align: left;
  margin: 0px;
  padding: 5px;
}
#accounticon a {
  padding: 6px 10px;
  text-decoration: none;
  color: black;
}
#accounticon .dropdown-menu {
  margin-top: 0;
  position: absolute;
  left: -30px !important;
  top: 65px;
  padding: 0;
}

.countp {
  font-size: 0.9em;
}

.page-item {
  width: 140px;
  text-align: center;
}

.dropdown-toggle::after {
  transition: transform 0.15s linear;
}

.show.dropdown .dropdown-toggle::after {
  transform: translateY(3px);
}

.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler-icon:focus {
  outline: none;
  box-shadow: none;
}

main {
  min-height: 100vh;
  width: 100%;
  padding-bottom: 30px;
}

#sidebarMenu {
  flex: 0 0 265px;
  min-height: 100vh;
  font-size: 0.8em;
  border-right: 1px lightgrey solid;
  text-align: left;
}
#sidebarMenu a {
  text-decoration: none;
  font-weight: 500;
  padding: 13px 0 15px;
  display: inline-block;
}
#sidebarMenu #storemanager, #sidebarMenu #moremenus, #sidebarMenu #filtermodels, #sidebarMenu #surescriptsmessages, #sidebarMenu #surescriptsmenus {
  text-decoration: none;
  font-weight: 500;
}
#sidebarMenu #moremenus:hover, #sidebarMenu #storemanager:hover, #sidebarMenu #filtermodels:hover, #sidebarMenu #surescriptsmessages:hover, #sidebarMenu #surescriptsmenus:hover {
  cursor: pointer;
}
#sidebarMenu a, #sidebarMenu #moremenus, #sidebarMenu #surescriptsmessages, #sidebarMenu #surescriptsmenus {
  color: white;
}
#sidebarMenu .nav-link:hover {
  background-color: white;
}
#sidebarMenu .spacer {
  height: 25px;
}

#loginbutton, #submitpasswordreset {
  margin: 10px auto;
  text-align: center;
}

#registrationcontainer {
  margin-top: 100px;
  min-height: 0.9vh;
}

#registrationfooter {
  text-align: center;
  font-size: 0.9em;
}

#loginform {
  width: 100%;
  max-width: 400px;
}
#loginform input {
  width: 100%;
}
#loginform small {
  font-size: 0.9em;
}

.phonewarning {
  font-size: 0.9em;
}

#oktalogin {
  color: darkblue;
  width: 100%;
  max-width: 400px;
  border: 2px solid darkblue;
}

#oktalogin:hover {
  color: white;
  background-color: darkblue;
}

#invalidlink {
  width: 100%;
  max-width: 650px;
}

.badge-notify {
  position: relative;
  left: 5px;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  text-align: center;
}

#notificationsbadge {
  position: absolute;
  right: -5px;
  font-size: 12px;
  vertical-align: top;
  border-radius: 50%;
}

#passwordchangecontainer {
  margin-right: 20%;
}

.alert ul {
  margin-left: 0;
  padding-left: 0;
}
.alert li {
  margin-left: 20px;
}

.accountrow {
  font-size: 0.9em;
}

.accountrow:hover {
  background-color: #eee;
}

/* Must stay ahead of the width breakpoints below: same specificity, so if this
   sits after them it wins and the logo never shrinks on narrow screens. */
.clientlogo {
  max-height: 80px;
  max-width: 300px;
}

@media (max-width: 1400px) {
  .mainheader {
    font-size: 1.5em;
  }
  .secondaryheader {
    font-size: 1.4em;
  }
}
@media (max-width: 1000px) {
  .mainheader {
    font-size: 1.3em;
  }
  .secondaryheader {
    font-size: 1.2em;
  }
}
@media (max-width: 768px) {
  .mainheader {
    font-size: 1.12em;
  }
  .secondaryheader {
    font-size: 1.05em;
  }
  .accountname, .changelocation, .signed-in-as {
    font-size: 0.8em;
  }
  .clientlogo {
    max-height: 70px;
    max-width: 250px;
  }
  #plplogo {
    max-width: 250px;
    max-height: 70px;
  }
  #foothillslogo {
    max-width: 80px;
    height: 30px;
  }
  #myaccounticon {
    font-size: 36px;
  }
  .dropdown-menu {
    top: 40px !important;
  }
}
@media (max-width: 500px) {
  .clientlogo {
    height: auto;
    max-height: 50px;
    max-width: calc(100vw - 190px);
  }
  #plplogo {
    max-height: 60px;
    max-width: 200px;
  }
}
@media (max-width: 400px) {
  .clientlogo {
    max-height: 45px;
    max-width: calc(100vw - 190px);
  }
  #plplogo {
    max-height: 50px;
    max-width: 170px;
  }
}
.nav-opener {
  width: 30px;
  height: 20px;
  border-top: 2px solid #000;
  position: absolute;
  right: 30px;
  /* Centred rather than offset from the top: the header height varies
     (130px default, 80px on the admin theme's short-screen header). */
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.4s ease;
  display: none;
}

.nav-active .nav-opener {
  border: none;
}

.nav-active .nav-opener:after,
.nav-active .nav-opener:before {
  transform: rotate(45deg);
  top: 10px;
}

.nav-active .nav-opener:before {
  transform: rotate(-45deg);
}

.nav-opener:after,
.nav-opener:before {
  position: absolute;
  left: 0;
  right: 0;
  top: 6px;
  content: "";
  height: 2px;
  background: #000;
  transition: all 0.4s ease;
}

.nav-opener:after {
  top: 14px;
}

@media (max-width: 1199px) {
  #sidebarMenu {
    position: fixed;
    left: -300px;
    top: 0;
    z-index: 9999;
    width: 290px;
    bottom: 0;
    min-height: inherit;
    overflow: auto;
    flex: auto;
    transition: all 0.4s ease;
  }
  .nav-active #sidebarMenu {
    left: 0;
  }
  .nav-opener {
    display: block;
  }
}
@media screen and (max-width: 650px) {
  body > .container-fluid > .d-flex.container-fluid {
    padding-right: 0;
  }
  #main.container-fluid {
    padding-left: 0;
    padding-right: 0;
  }
  .maincontainer {
    padding-left: 15px;
    padding-right: 15px;
  }
}
@media screen and (max-height: 300px) {
  #navbardiv {
    height: 60px;
  }
  #clientlogo {
    height: 50px;
    max-width: 120px;
  }
  #plplogo {
    max-width: 120px;
  }
  #myaccounticon {
    font-size: 36px;
  }
}
#temppasswordinstructions {
  width: 700px;
  margin: auto;
}

.notauthorized {
  width: 800px;
}

#twofactorcontainer {
  width: 600px;
}

#qrcode {
  display: inline-block;
}

#email-link, #text-link {
  width: 100%;
}

#favoritesheading, #adminheading, #mailorderheadingpartner {
  background-color: var(--primary-contrast-color);
}

/* ===== Collapsible sidebar (icon rail that expands on hover/focus) ===== */
.sidebar-toggle {
  display: none;
  width: 100%;
  align-items: center;
  gap: 10px;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 500;
  text-align: left;
  padding: 12px 18px;
  cursor: pointer;
  opacity: 1;
}

.sidebar-toggle:hover {
  opacity: 0.8;
}

.sidebar-toggle svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}

/* Count/alert badge overlaid on an icon while the rail is collapsed */
.sidebar-rail-badge {
  display: none;
}

@media (min-width: 1200px) {
  .sidebar-toggle {
    display: flex;
  }
  #sidebarMenu {
    transition: flex-basis 0.18s ease;
  }
  /* Collapsed rail: the menu stays in normal flow at 60px so the nav stretches
     to the full column height (same mechanism as the expanded sidebar).
     Hover/focus lifts it into a full-height absolute overlay flyout. */
  #sidebarMenu.sidebar-collapsed {
    flex: 0 0 60px;
    position: relative;
    overflow: hidden;
  }
  #sidebarMenu.sidebar-collapsed .sidebar-sticky {
    width: 60px;
    transition: width 0.18s ease, box-shadow 0.18s ease;
  }
  /* Expanded flyout (toggled by JS on hover / keyboard focus) */
  #sidebarMenu.sidebar-collapsed.sidebar-flyout {
    overflow: visible;
  }
  #sidebarMenu.sidebar-collapsed.sidebar-flyout .sidebar-sticky {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 265px;
    min-height: 100vh;
    overflow: visible;
    background-color: inherit;
    box-shadow: 3px 0 12px rgba(0, 0, 0, 0.18);
    z-index: 1000;
  }
  /* Collapsed + at rest: icons only, centered */
  #sidebarMenu.sidebar-collapsed:not(.sidebar-flyout) .sidebar-toggle {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
  }
  #sidebarMenu.sidebar-collapsed:not(.sidebar-flyout) .sidebar-toggle-label,
  #sidebarMenu.sidebar-collapsed:not(.sidebar-flyout) .sidebar-child,
  #sidebarMenu.sidebar-collapsed:not(.sidebar-flyout) .sidebar-extra {
    display: none !important;
  }
  #sidebarMenu.sidebar-collapsed:not(.sidebar-flyout) .sidebarul .row {
    padding-left: 0 !important;
    margin-left: 0;
    margin-right: 0;
    justify-content: center;
  }
  #sidebarMenu.sidebar-collapsed:not(.sidebar-flyout) .sidebarul .row > span:nth-child(2),
  #sidebarMenu.sidebar-collapsed:not(.sidebar-flyout) .sidebarul .row > span:nth-child(3) {
    display: none;
  }
  #sidebarMenu.sidebar-collapsed:not(.sidebar-flyout) .sidebarul .row > :first-child {
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: center;
  }
  #sidebarMenu.sidebar-collapsed:not(.sidebar-flyout) .nav-item {
    position: relative;
  }
  #sidebarMenu.sidebar-collapsed:not(.sidebar-flyout) .sidebar-rail-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 5px;
    right: 8px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 0 0 1.5px #fff;
    z-index: 3;
  }
  #sidebarMenu.sidebar-collapsed:not(.sidebar-flyout) .sidebar-rail-dot {
    top: 7px;
    right: 11px;
    min-width: 11px;
    width: 11px;
    height: 11px;
    padding: 0;
    font-size: 0;
  }
}
/* ===== 2025 portal theme: light-grey chrome, light menu ===== */
/* Scoped to body.theme-2025, set for staff on admin paths and for any partner/
   client portal whose 2025-theme flag is on (docs/portal-theme-2025-rollout-plan.md).
   base-style.css / styles-partner.css consume these sidebar variables, so
   redefining them here recolors the whole left menu; the header/body get an
   explicit grey. Admin pages carry only .theme-2025 (admin palette below);
   flagged non-admin portals also carry .theme-2025-brand (overlay further down). */
body.theme-2025 {
  --sidebar-background-color: #f8f9fb;
  --sidebar-link-color: #0B386F; /* darker "selected" blue */
  --sidebar-active-background-color: var(--brand-accent-color, var(--primary-color)); /* solid primary blue */
  --sidebar-active-link-color: #FFFFFF;
  --primary-hover: #E1E8F2;
  --on-primary-hover: #0B386F;
  background-color: #f8f9fb;
}

body.theme-2025 #navbardiv {
  background-color: #f8f9fb !important;
  border-bottom: none !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

/* Flat, seamless look: drop the sidebar edges and the per-item dividers */
body.theme-2025 #sidebarMenu {
  border: none !important;
}

body.theme-2025 #sidebarMenu .border-bottom {
  border-bottom: none !important;
}

/* Shorter header on laptop-height screens (big monitors keep the roomy one) */
@media (max-height: 1000px) {
  body.theme-2025 #navbardiv {
    height: 80px;
  }
  body.theme-2025 .clientlogo {
    max-height: 56px;
  }
  body.theme-2025 #myaccounticon {
    font-size: 38px;
  }
}
/* ===== Brand-aware overlay for themed partner/client portals ===== */
/* Sits on top of .theme-2025; admin pages never get this class. Keeps the grey
   chrome but swaps the PharmaLink-navy palette for neutral text so partner
   colors are not overridden (docs/portal-theme-2025-rollout-plan.md, decision 5).
   The active menu item fills with the brand accent -- the primary, or the
   secondary / a dark neutral when the primary is too light to read against the
   light grey menu -- and its text color is set from JS via bestOnColor() in
   layout.html. */
body.theme-2025-brand {
  --sidebar-link-color: #1F2933;
  --on-primary-hover: #1F2933;
  /* active bg stays var(--brand-accent-color) from .theme-2025 */
}

body.theme-2025-brand #sidebarMenu {
  background-color: var(--sidebar-background-color) !important;
}

body.theme-2025-brand #sidebarMenu a {
  color: var(--sidebar-link-color);
}

/* ...but the ACTIVE item is filled with the brand accent, so its label has to
   flip to the readable on-accent color (white or black, picked by bestOnColor()
   in layout.html). The rule above is more specific than styles-partner.scss's
   "#sidebarMenu .active a", so it has to be restated here. */
body.theme-2025-brand #sidebarMenu .active,
body.theme-2025-brand #sidebarMenu .activesm,
body.theme-2025-brand #sidebarMenu .active a,
body.theme-2025-brand #sidebarMenu .activesm a,
body.theme-2025-brand #sidebarMenu .storemanagermenu.active a {
  color: var(--sidebar-active-link-color) !important;
}

/*# sourceMappingURL=layout-2025.css.map */
