/* Forces vertical scrollbar on.  Prevents horizontal shifting when navigating between pages. */
html {
  overflow-y: scroll;
}

/* Match Bootstrap 4 anchor underline behavior — only show on focus, not by default. */
a {
  text-decoration: none;
}

a:focus {
  text-decoration: underline;
}

.nav-link:focus,
.nav-link:focus-visible {
  text-decoration: none;
}

/* Match Bootstrap 4.6 accordion header appearance — collapsed headers use the light background. */
.accordion-button.collapsed {
  background-color: var(--bs-light-bg-subtle);
}

/* Prevents shifting of page when bootstrap modal popups are shown. */
.modal-open[style] {
  padding-right: 0 !important;
}

/* -------------------------------------------------------------------------------------------------------------------------
   Screen-Only Styles
   ------------------------------------------------------------------------------------------------------------------------- */

@media screen {
}

/* -------------------------------------------------------------------------------------------------------------------------
   Print-Only Styles
   ------------------------------------------------------------------------------------------------------------------------- */

@media print {
  .col-print {
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* -------------------------------------------------------------------------------------------------------------------------
   Navbar Tweaks

   .navbar-brand      - Nudges logo up to account unwanted vertical padding in default navbar.
   .navbar-tight      - Tightens padding on breadcrumb navbar
   .navbar-xl-tight-x - Keeps horizontal padding on navbar consistent when crossing breakpoints on container-xl.
   .navbar-expand     - Overrides BS5's default treatment of padding on navbar-expand, which differs from
                        navbar-expand{-sm|-md|-lg|-xl}, so that padding is consistent.
   ------------------------------------------------------------------------------------------------------------------------- */

.navbar-brand {
  margin-top: -.5rem;
  margin-bottom: -.25rem;
  padding-top: 0rem;
  padding-bottom: 0rem;
}

@media (min-width: 1200px)
{
  .navbar-xl-tight-x {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 1199.98px) {
  .navbar-xl-tight-x {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

.navbar-tight {
  padding: .125rem 0;
}

.navbar-expand > .container, .navbar-expand > .container-fluid, .navbar-expand > .container-lg, .navbar-expand > .container-md, .navbar-expand > .container-sm, .navbar-expand > .container-xl {
  padding-right: inherit;
  padding-left: inherit;
}

/* -------------------------------------------------------------------------------------------------------------------------
   Sizing
   ------------------------------------------------------------------------------------------------------------------------- */

@media (min-width: 992px)
{
  .max-vh-lg-33 {
    max-height: 33vh;
  }

  .max-vh-lg-50 {
    max-height: 50vh;
  }
}

.w-6ch {
  width: 9ch;
}

.w-12ch {
  width: 15ch;
}

.w-0 {
  width: 0px;
}

.mb-025 {
  margin-bottom: 0.0625rem;
}

.mb-05 {
  margin-bottom: 0.125rem;
}

.mt-025 {
  margin-top: 0.0625rem;
}

.mt-05 {
  margin-top: 0.125rem;
}

.blockquote {
  font-size: 1rem;
  border-left: 0.25rem solid var(--bs-tertiary-color) !important;
  padding-left: 0.75rem;
}

/* -------------------------------------------------------------------------------------------------------------------------
   Badges
   ------------------------------------------------------------------------------------------------------------------------- */

.badge-abacus {
  background-color: #3cb768;
  color: #ffffff;
}

.badge-gsk {
  background-color: #f36633;
  color: #ffffff;
}

.badge-sanofi {
  background-color: #525ca3;
  color: #ffffff;
}

.badge-merck {
  background-color: #00877c;
  color: #ffffff;
}

.badge-pfizer {
  background-color: #d00071;
  color: #ffffff;
}

.badge-seqirus {
  background-color: #fc1921;
  color: #ffffff;
}

.badge-astrazeneca {
  background-color: #830051;
  color: #ffffff;
}

.badge-moderna {
  background-color: #00afef;
  color: #ffffff;
}

.badge-novavax {
  background-color: #0d4b84;
  color: #ffffff;
}

.badge-dynavax {
  background-color: #93d500;
  color: #000000;
}

.badge-bavarian-nordic {
  background-color: #b83b26;
  color: #ffffff;
}

.badge-valneva {
  background-color: #264675;
  color: #ffffff;
}

.badge-vbi {
  background-color: #f8b414;
  color: #000000;
}

.badge-anda {
  background-color: #409b46;
  color: #ffffff;
}

.badge-mckesson {
  background-color: #005a8c;
  color: #ffffff;
}

.badge-wellverse {
  background-color: rgb(114,52,248);
  color: #ffffff;
}

.badge-medico-mart {
  background-color: #e6dbc9;
  color: #000000;
}

.badge-medline {
  background-color: #0052cc;
  color: #ffffff;
}

.badge-provista {
  background-color: #0f3c60;
  color: #ffffff;
}

.badge-schein {
  background-color: #0067b1;
  color: #ffffff;
}

.badge-vaxserve {
  background-color: #906caf;
  color: #ffffff;
}

.badge-definitive {
  background-color: #541299;
  color: #ffffff;
}

.archived-link .badge {
  border: solid 1px #fff;
}

/* -------------------------------------------------------------------------------------------------------------------------
   Table Background Colors
   ------------------------------------------------------------------------------------------------------------------------- */

.table-abacus tr, .table-abacus td {
  background-color: #d8eaf8 !important;
  border-color: #c5e0f4 !important;
}

/* -------------------------------------------------------------------------------------------------------------------------
   Pointers
   ------------------------------------------------------------------------------------------------------------------------- */

.c-pointer {
  cursor: pointer;
}

/* -------------------------------------------------------------------------------------------------------------------------
   Modal Popups
   ------------------------------------------------------------------------------------------------------------------------- */

.modal-header {
  padding: 0.5rem 1rem;
  background-color: var(--bs-light-bg-subtle);
}

.modal-footer {
  padding: 0.5rem 0.5rem;
}

.modal-body > :last-child {
  margin-bottom: 0 !important;
}

.modal-error {
  padding: 1rem;
  border-top: solid 1px #e9ecef;
}

  .modal-error > :last-child {
    margin-bottom: 0 !important;
  }

/* -------------------------------------------------------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------------------------------------------------------- */

footer {
  margin-bottom: 1em;
}

/* -------------------------------------------------------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------------------------------------------------------- */

button .btn-spinner, a .btn-spinner {
  margin-right: 0.5rem;
}

/* -------------------------------------------------------------------------------------------------------------------------
   Text Utilities
   ------------------------------------------------------------------------------------------------------------------------- */

.text-pre-wrap {
  white-space: pre-wrap;
}

/* Markdown rendering helper: ensure markdown block's last child doesn't add extra spacing
   and keep headings/hrs/pre reasonable inside list-group items */
.markdown-content > :last-child {
  margin-bottom: 0;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.markdown-content hr {
  margin: 0.5rem 0;
}

.markdown-content pre {
  white-space: pre-wrap;
}

/* -------------------------------------------------------------------------------------------------------------------------
   Terms of Service
   ------------------------------------------------------------------------------------------------------------------------- */

.terms {
  padding-top: 0;
  padding-right: 10px;
}

  .terms header {
    margin-top: 0;
    text-align: center;
  }

    .terms header h1 {
      font-size: 15px;
      font-weight: bold;
      text-decoration: underline;
      margin-top: 0;
      margin-bottom: 0.25em;
    }

    .terms header h2 {
      font-size: 15px;
      margin-top: 0.25em;
      margin-bottom: 1em;
    }

  .terms h1 {
    font-size: 15px;
    font-weight: bold;
    text-decoration: underline;
    margin-top: 1em;
    margin-bottom: 1em;
  }

  .terms dfn {
    font-weight: bold;
    font-style: normal;
  }

/* -------------------------------------------------------------------------------------------------------------------------
   Background Colors
   ------------------------------------------------------------------------------------------------------------------------- */

.bg-merck {
  background-image: url("/img/home.jpg");
  background-size: cover;
}

.bg-prevnar {
  background: rgb(196,2,108);
  background: radial-gradient(circle, rgba(196,2,108,1) 0%, rgba(183,4,106,1) 35%, rgba(135,11,95,1) 100%);
}

.bg-vaxserve {
  background: rgb(119, 75, 166);
  background: radial-gradient(circle, rgb(119, 75, 166,1) 50%, rgba(255,255,255,1) 75%, rgba(98,181,229,1) 100%);
}

.bg-medico-mart {
  background: rgb(230, 220, 201);
  background: radial-gradient(circle, rgb(230,220,201,1) 50%, rgba(198,53,39,1) 75%, rgb(230,220,201,1) 100%);
}

.bg-guardian {
  background: #5b3767;
}

/* -------------------------------------------------------------------------------------------------------------------------
   Button Colors
   ------------------------------------------------------------------------------------------------------------------------- */

.btn-guardian {
  background: #5b3767;
  border-color: #5b3767;
  color: #fff;
}

.btn-guardian:hover,
.btn-guardian:focus,
.btn-guardian:active {
  background-color: #472a51;
  border-color: #472a51;
  color: #fff;
}

.btn-guardian:disabled,
.btn-guardian.disabled {
  background-color: #5b3767;
  border-color: #5b3767;
  color: #fff;
  opacity: 0.65;
}

.font-line-through {
  text-decoration: line-through;
}

.font-double-line-through {
  text-decoration-style: double;
  text-decoration-line: line-through;
}

/* -------------------------------------------------------------------------------------------------------------------------
   Sizing
   ------------------------------------------------------------------------------------------------------------------------- */

.logo-vaxserve {
  width: 164px;
  max-width: 50%;
  padding-left: 1rem;
  padding-bottom: 1rem;
}

.logo-medico-mart {
  width: 225px;
  max-width: 50%;
  padding-left: 1rem;
  padding-bottom: 1rem;
}

#notes-tab.active.bg-warning-subtle { border-bottom-color: var(--bs-warning-bg-subtle); }

/* -------------------------------------------------------------------------------------------------------------------------
   Rainbow animated border
   ------------------------------------------------------------------------------------------------------------------------- */

@property --border-angle {
  syntax: '<angle>';
  inherits: true;
  initial-value: 0deg;
}

@keyframes rotate-border {
  to { --border-angle: 360deg; }
}

.rainbow-border {
  outline: none;
  box-shadow: none;
  border-color: transparent !important;
  background-image: linear-gradient(var(--bs-body-bg, #fff), var(--bs-body-bg, #fff)),
    conic-gradient(from var(--border-angle),
      #f00 0%, #ff0 16.66%, #0f0 33.33%, #0ff 50%, #00f 66.66%, #f0f 83.33%, #f00 100%);
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, 0 0;
  background-size: 100% 100%, 100% 100%;
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border: inherit solid transparent !important;
  animation: rotate-border 2s linear infinite;
}

select.rainbow-border {
  background-image: var(--bs-form-select-bg-img), linear-gradient(var(--bs-body-bg, #fff), var(--bs-body-bg, #fff)),
    conic-gradient(from var(--border-angle),
      #f00 0%, #ff0 16.66%, #0f0 33.33%, #0ff 50%, #00f 66.66%, #f0f 83.33%, #f00 100%);
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: right .75rem center, 0 0, 0 0;
  background-size: 16px 12px, 100% 100%, 100% 100%;
  background-origin: padding-box, padding-box, border-box;
  background-clip: padding-box, padding-box, border-box;
}

/* Most browsers don't honor border/background declarations placed directly on <tr> elements (even in the
   border-collapse: collapse model used by Bootstrap tables), so the animated rainbow border cannot be painted by
   the <tr> itself. Instead, the row is made a positioning context (`position: relative`) and a single
   absolutely-positioned, pointer-events-disabled pseudo-element is stretched (`inset: 0`) to cover the entire row,
   sitting above the cells (`z-index`) but not intercepting clicks. The pseudo-element's own background is the
   rotating conic-gradient filling its whole box, but a `mask` punches a transparent hole out of the middle: the
   mask is built from two overlapping white shapes - one covering the full box, one inset only vertically (full
   width, so it reaches the left/right edges) - combined with `mask-composite: exclude` (and the `-webkit-`
   equivalent) so the overlapping interior cancels out to invisible. Because the inner shape spans the full width,
   there is no leftover sliver at the left/right edges, so only the top and bottom rings remain visible. */
tr.rainbow-border-row {
  position: relative;
}

  tr.rainbow-border-row::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image: conic-gradient(from var(--border-angle), #f00 0%, #ff0 16.66%, #0f0 33.33%, #0ff 50%, #00f 66.66%, #f0f 83.33%, #f00 100%);
    -webkit-mask-image: linear-gradient(#fff 0 0), linear-gradient(#fff 0 0);
    -webkit-mask-size: 100% 100%, 100% calc(100% - 4px);
    -webkit-mask-position: 0 0, 0 2px;
    -webkit-mask-repeat: no-repeat, no-repeat;
    -webkit-mask-composite: xor;
    mask-image: linear-gradient(#fff 0 0), linear-gradient(#fff 0 0);
    mask-size: 100% 100%, 100% calc(100% - 4px);
    mask-position: 0 0, 0 2px;
    mask-repeat: no-repeat, no-repeat;
    mask-composite: exclude;
    animation: rotate-border 2s linear infinite;
  }

/* -------------------------------------------------------------------------------------------------------------------------
   Impersonation Pulse
   ------------------------------------------------------------------------------------------------------------------------- */

.impersonation-pulse {
  animation: bgPulse 2s infinite ease-in-out;
}

@keyframes bgPulse {
  0% {
    color: rgb(var(--bs-light-rgb));
  }

  50% {
    color: rgb(var(--bs-danger-rgb));
  }

  100% {
    color: rgb(var(--bs-light-rgb));
  }
}