@import url('https://fonts.googleapis.com/css2?family=Montserrat&display=swap');

/* Light Mode & Branding */

:root {
  --brand-primary:   #1e9dd8;
  --brand-secondary: #5c2360;
  --brand-tertiary:  #b01466;
  --brand-yellow: #fede00;
  --brand-dark:      #fff;
  --brand-light:     #000;
  --brand-card:      rgba(0, 0, 0, 0.8);
}

body {
  color: var(--brand-dark);
}

button#themeToggle {
    color: var(--brand-primary);
    border-radius: 10px;
    background-color: var(--brand-light);
    border: none
}

/* Dark Mode & Branding */

body.dark-mode {
    --brand-primary:   #1e9dd8;
  --brand-secondary: #83358d;
  --brand-tertiary:  #ed218a;
  --brand-dark:     #000;
  --brand-light:    #fff;
 --brand-card:     rgba(255, 255, 255, 0.5);



  background-color: var(--brand-light);
  color: var(--brand-dark);
}

.brand-primary   { 
  color: #1e9dd8;
  margin: 0px;
 }
.brand-secondary { color: #83358d; }
.brand-tertiary  { color: #ed218a; }

body, h1, h2, h3, h4, h5, h6, p, a, li, button, input, textarea, select {
  font-family: 'Montserrat', sans-serif !important;
  color : var(--brand-dark);
}

/* Background */

body {
  background-image: url(/bg1.png);
  background-size: cover;
  background-repeat: no-repeat; 
  background-attachment: fixed; 
  background-position: center;  
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1; /* push behind everything */
  
  background: linear-gradient(to right,
    rgba(0,0,0,0.9) 0%,
    rgba(0,0,0,0) 10%,
    rgba(0,0,0,0) 90%,
    rgba(0,0,0,0.7) 100%
  );
}

/* Header */

.navbar {
  background-color: var(--brand-light);
}

.menu-bar {
    font-weight: bold;
    font-size: 1.25rem;
}

.nav-link{
  color: var(--brand-dark) !important
}

.dropdown-item{
  color: var(--brand-dark) !important 
}

.nav-item.weblink .nav-link:hover,
.nav-item.weblink .nav-link:focus {
  background-color: var(--brand-primary);
  border-radius: 12px;
  color: white;
  text-decoration: none !important
}

.nav > li > a:focus,
.nav > li > a:hover {
    background-color: var(--brand-primary);
    border-radius: 12px;
    color: white;
    text-decoration: none !important;
}

.nav-item.dropdown .nav-link:hover,
.nav-item.dropdown .nav-link:focus {
  background-color: var(--brand-primary);
  border-radius: 12px;
  text-decoration: none !important
}

.dropdown-item[title="Sign out"]:hover,
.dropdown-item[title="Sign out"]:focus {
  background-color: var(--brand-primary) !important;
  color: #fff !important; 
  border-radius: 4px
}

.navbar-nav .divider-vertical {
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
  position: relative;
}

.navbar-nav .divider-vertical::after {
  content: "";
  display: block;
  width: 2px;
  height: 80%;
  background-color: var(--brand-dark);
}

/* Footer */

:root { --footer-h: 60px; }

html, body { height: 100%; }
body {
  margin: 0;
  padding-bottom: calc(var(--footer-h) + env(safe-area-inset-bottom, 0px));
}


footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--footer-h);
  z-index: 3; 
}

footer .footer-bottom {
  padding: 0;
  width: 100%;
  height: 100%;
  background-color: var(--brand-light);
  font-size: 14px;
  display: flex;
  align-items: center;
}
footer .footer-bottom p {
  margin: 0;
  color: var(--brand-dark);
  font-size: 1rem;
}

/* Container sizes */

@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 90% !important;
    }
}

.mb-section {
    margin-bottom: 2rem;
}

/* Button Styling */

.btn {
  border-radius: 8px;
  margin: 4px;
  font-weight: 600;
  transition: all 0.2s ease;
  font-size: 14px;
  padding: 6px 20px;
  width: fit-content;
  border-style: solid;
}

/* Brand Primary Button */
.btn.brand-primary {
  background-color: #1e9dd8;
  color: #fff;
  border-color: #1e9dd8;
}
.btn.brand-primary:hover,
.btn.brand-primary:focus {
  background-color: #0b7cad; /* darker shade */
  border-color: #0b7cad;
  color: #fff;
}

/* Brand Secondary Button */
.btn.brand-secondary {
  background-color: #83358d;
  color: #fff;
  border-color: #83358d;
}
.btn.brand-secondary:hover,
.btn.brand-secondary:focus {
  background-color: #5e2365;
  border-color: #5e2365;
  color: #fff;
}

/* Brand Tertiary Button */
.btn.brand-tertiary {
  background-color: #ed218a;
  color: #fff;
  border-color: #ed218a;
}
.btn.brand-tertiary:hover,
.btn.brand-tertiary:focus {
  background-color: #b91568;
  border-color: #b91568;
  color: #fff;
}

/* Sign-in Page */
.signinpage {
  display: flex;
  align-items: center;
  justify-content: center;
}

.signinpage .container {
  width: 70%;
  background-color: var(--brand-card);
  backdrop-filter: blur(10px);
  padding: 1rem 1.5rem 2rem;    /* shorthand padding */
  border-radius: 12px;
}

.signinpage #mainContent .row > div {
  flex: 0 0 100%;
  max-width: 100%;
}

.signinpage .login-heading-section {
    margin: 0 0 32px;
    padding-bottom: 0;
    border-bottom: none;
    line-height: inherit;
    font-size: 24px;
    font-weight: bold;
    color: var(--brand-primary);
}

.signinpage ul.nav.nav-tabs.nav-account {
  display: flex;
  justify-content: center;
  border-bottom: none;
  gap: 1rem;
  display:none
}

.signinpage ul.nav.nav-tabs.nav-account .nav-item {
  flex: 1 1 0;
  text-align: center;
}

.signinpage ul.nav.nav-tabs.nav-account .nav-link {
  width: 100%;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  color: var(--brand-text-light, #f5f5f5);
  background-color: color-mix(in srgb, var(--brand-primary) 60%, var(--brand-light));
  border: none; 
}

.signinpage ul.nav.nav-tabs.nav-account .nav-link:hover {
  background-color: color-mix(in srgb, var(--brand-primary) 80%, var(--brand-light));
  color: #fff; 
}

p.signin-subtext {
    margin-top: 32px;
    font-size: 1rem;
    margin-bottom: 0rem
}

a.mercury-link {
    color: var(--brand-tertiary);
    font-size: 1rem
}

.signinpage ul.nav.nav-tabs.nav-account .nav-link.active {
  color: #fff;
  background-color: var(--brand-primary);
  font-weight: 600;
  outline: none;
  box-shadow: 0 0 6px 2px rgba(30, 157, 216, 0.5);
}

.signinpage ul.nav.nav-tabs.nav-account .nav-link:focus-visible {
  outline: none;
  box-shadow: 0 0 6px 2px rgba(30, 157, 216, 0.5);
}

@media (max-width: 660px) {
  .signinpage ul.nav.nav-tabs.nav-account {
    flex-direction: column;
    gap: 1rem;             
  }

  .signinpage ul.nav.nav-tabs.nav-account .nav-item {
    flex: none;               
    width: 100%;              
  }
}

/* Alert Styling */

/* stack container */
.portal-alert-stack {
  margin-top: 1rem;
}

/* alert card */
.portal-alert {
  margin: .5rem auto;
  border-radius: 12px;
  background: var(--brand-card);
  color: var(--brand-dark);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  overflow: hidden;
}

/*
.dark-mode .portal-alert {
  background: rgba(0,0,0,0.6);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
  */

.portal-alert__inner {
  display: flex;
  flex-direction: row;
  gap: .25rem;
  padding: .75rem 1rem;
}

.portal-alert__title {
  font-weight: bolder;
  font-size: 1.4rem;
  color: var(--brand-primary);
  position: relative;
  padding-right: 1rem;
  width: 150px;
  word-wrap:break-word;
  white-space:normal;
  text-align:left
}

.portal-alert__title::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-right: 2px dashed var(--brand-primary);
  height: 100%;
}

.portal-alert__msg {
  font-size: .95rem;
  line-height: 1.4;
}

.portal-alert__cta {
  align-self: flex-start;
  margin-top: .25rem;
  font-weight: 600;
  color: var(--brand-primary);
  text-decoration: underline;
}

.portal-alert__cta:hover {
  text-decoration: none;
  color: var(--brand-secondary);
}

.portal-alert__close {
  background: transparent;
  border: none;
  color: var(--brand-dark);
  font-size: 3rem;
  line-height: 1;
  opacity: 0.8;
  cursor: pointer;
}
.portal-alert__close:hover {
  opacity: 1;
  color: #00bfff; /* Mercury blue glow */
}

.alert-announcement {
    width: 70px
}

.alert-avatar {
    width: 70px
}

/* Hero */ 

.hero {
    background-color: var(--brand-card);
    backdrop-filter: blur(10px);
    padding: 2rem 4rem;
    border-radius: 12px;
}

.hero img {
    max-height: 200px;
    width: auto;
}

/* Links Grid */

.card-option {
  background: var(--brand-card);
  backdrop-filter: blur(10px);
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: all 0.2s ease-in-out;
  color: var(--brand-dark);
  text-align: center;
  flex: 1 1 200px;
}

.card-option:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  text-decoration: none;
  color: var(--brand-primary)
}

.card-option .icon {
  font-size: 3rem;
  color: var(--brand-primary);
}

.card-option .label {
    font-weight: 100;
    display: block;
    font-size: 1.5rem
}

img.img-links {
    height: 100px;
    width: auto;
}

/* Component - Slide Out Panel */
  .mercury-slideout { 
    position: fixed; inset: 0; pointer-events: none; z-index: 1050; 
  }
  .mercury-slideout * { box-sizing: border-box; }

  /* Tile rail */
  .ms-rail {
    position: fixed; left: 0; top: 50%; transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 12px;
    padding: 8px; pointer-events: auto;
  }
  .ms-tile {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: var(--brand-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--brand-primary);
    display: grid;
    place-items: center;
    font-size: 2rem;
    text-align: center;
    line-height: 1.1;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    outline: none;
  }
  .ms-tile:hover, .ms-tile:focus-visible {
    transform: translateX(2px);
    box-shadow: 0 0 14px var(--brand-primary);
    border-color: var(--brand-primary);
  }
  .ms-tile[aria-selected="true"] {
    box-shadow: 0 0 24px var(--brand-primary), inset 0 0 0 1px var(--brand-primary);
  }

  /* Slideout panel */
.ms-panel {
    position: fixed;
    left: 0;
    top: 50%;
    height: 500px;
    width: 300px;
    background: var(--brand-card);
    backdrop-filter: blur(20px);
    color: var(--brand-dark);
    border-top: 2px solid var(--brand-primary);
    border-right: 2px solid var(--brand-primary);
    border-bottom: 2px solid var(--brand-primary);
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    transform: translate(-300px, -50%); /* shift left when closed AND center vertically */
    transition: transform .24s ease-in-out;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
}
 
.ms-panel.open {
    transform: translate(0, -50%); /* slide in, stay vertically centered */
   box-shadow: 0 0 28px var(--brand-primary);
}

  .ms-panel-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .ms-title { font-weight: 600; letter-spacing:.2px; }
.ms-close {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    color: var(--brand-tertiary);
    font-size: 3rem;
    border-radius: 10px;
    width: 3rem;
    padding: 0px;
    cursor: pointer;
}
  .ms-close:hover, .ms-close:focus-visible {
    border-color: #00bfff; box-shadow: 0 0 10px rgba(0,191,255,.35);
  }

  .ms-panel-body { padding: 16px; overflow: auto; flex: 1; }
  .ms-section { display: none; }
  .ms-section.active { display: block; }

  /* Click-off overlay */
  .ms-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.8);
    opacity: 0; pointer-events: none; transition: opacity .2s ease;
  }
  .ms-overlay.show { opacity: 0; pointer-events:none; }

  /* Mobile */
  @media (max-width: 520px) {
    .ms-panel { width: 88vw; transform: translateX(-88vw); }
    .ms-panel.open { transform: translateX(0); }
    .ms-rail { top: auto; bottom: 16px; transform: none; flex-direction: row; }
  }

  /* Dark Mode Toggle */ 
  .theme-switch {
  position: relative;
  display: inline-block;
  width: 100px;
  height: 32px;
}

/* Hide checkbox */
.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Slider background */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #222;
  border-radius: 34px;
  transition: background-color 0.4s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  color: #fff;
}

/* Icons */
.slider i {
  font-size: 16px;
  transition: opacity 0.4s;
}

/* Knob */
.slider:before {
  content: "";
  position: absolute;
  height: 24px;
  width: 24px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.4s;
}

/* Checked state */
input:checked + .slider {
  background-color: #00bfff; /* Mercury blue */
}

input:checked + .slider:before {
  transform: translateX(70px);
}

/* Icon states */
input:checked + .slider .sun-icon {
  opacity: 1;
}
input:checked + .slider .moon-icon {
  opacity: 1;
}
.slider .moon-icon {
  opacity: 1;
}

/* Breadcrumb */

.mercury-breadcrumb {
    --bs-breadcrumb-padding-x: 0;
    --bs-breadcrumb-padding-y: 0;
    --bs-breadcrumb-margin-bottom: 1rem;
    --bs-breadcrumb-bg: ;
    --bs-breadcrumb-border-radius: ;
    --bs-breadcrumb-divider-color: var(--bs-secondary-color);
    --bs-breadcrumb-item-padding-x: 0.5rem;
    --bs-breadcrumb-item-active-color: var(--bs-secondary-color);
    display: flex
;
    flex-wrap: wrap;
    padding: var(--bs-breadcrumb-padding-y) var(--bs-breadcrumb-padding-x);
    margin-bottom: 1rem;
    font-size: var(--bs-breadcrumb-font-size);
    list-style: none;
    background-color: var(--brand-card);
    border-radius: 12px;
}

li.mercury-breadcrumb-item a {
    color: var(--brand-dark) !important;
    font-weight: bold;
}

li.mercury-breadcrumb-item.active {
    color: var(--brand-primary) !important;
    font-weight: bold;
}

.mercury-breadcrumb-item+.mercury-breadcrumb-item::before {
    float: left;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
    color: var(--brand-dark);
    content: "/"
}

a:visited {
  color: white; 
}

.navbar {
  position: relative;
  z-index: 1100; /* higher than .ms-overlay */
}

.ms-overlay {
  z-index: 1000; /* keep this lower */
}

.kb-search {
    display: flex
;
    width: 100%;
    background-color: var(--brand-card) !important;
    color: var(--brand-dark) !important;
    /* height: 5rem; */
    border-radius: 12px;
    border: solid 2px var(--brand-card);
    text-align: center;
    font-size: 1rem;
    font-style: italic;   
}

.kb-search::placeholder {
  color: #a9a9a9 !important;
   font-style: italic;            
  font-size: 1rem;
}

.kb-icon {
  font-size: 3rem;
  color: var(--brand-primary);
}

.kb-wrapper {
    background-color: var(--brand-card);
    color: var(--brand-dark);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 32px;
    padding-bottom: 1.5rem;
    padding-top: 0px;
    backdrop-filter: blur(10px);
}

.kbcard-body {
    background-color: var(--brand-primary);
    padding: 1rem;
    text-align: center;
    border-radius: 12px;
}

.kbcard-body:hover {
    filter: brightness(90%);
}

.kb-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.kb-link:hover,
.kb-link:focus,
.kb-link:active {
  text-decoration: none;
  color: inherit; 
}

.custom-search-results {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 1050;
    background-color: rgba(0, 0, 0, 1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    margin-top: 0rem;
    max-height: 400px;
    overflow-y: scroll !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    list-style: none;
    padding: 0;
    text-align: center;
    margin-left: unset;
    margin-right: unset;
}


.custom-search-result-item {
  padding: .75rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.custom-search-result-item:last-child {
  border-bottom: none;
}

.custom-search-result-item a {
  color: inherit;
  text-decoration: none;
}

.custom-search-result-item:hover {
  background: rgba(0,0,0,0.05);
}

.kb-search-title {
    font-size: 1.25rem;
    color: var(--brand-primary)
}

.kb-search-description {
    font-size: 1rem;
    color: var(--brand-dark) !important;
}

.kb-search-keywords {
    font-size: 0.75rem;
    color: var(--brand-dark) !important;
}

mark {
    background-color: var(--brand-tertiary);
    color: var(--brand-dark);
    border-radius: 12px;
}

.featured-article {
  border-left: 4px solid #fede00 !important;
}


.article-list {
  list-style: none; 
  padding: 0;
  margin-top: 0.5rem;
  display: grid;            
  gap: 0.5rem;
  width: 100%
}


.article-list li {
  background: var(--brand-card);
  border: 1px solid var(--brand-tertiary); 
  border-radius: 12px; 
  padding: 0.5rem;   
  box-shadow: 0 2px 4px rgba(0,0,0,0.05); 
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}


.article-list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  background-color: var(--brand-primary);
  border: 1px solid var(--brand-primary)
}


.article-list a {
  text-decoration: none;
  font-weight: 500;
  display: block;
}
  
.article-list a:hover {
  color: var(--brand-dark);
}

.kb-article-card {
  background-color: var(--brand-dark);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.25s ease-in-out;
}

.kb-article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Remove bullets and spacing */
ul.mt-2.ms-3 {
  list-style: none !important;
  padding-left: 0;
  margin: 0;
}

/* Style subcategory button text */
.subcat-link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

/* Keep white on hover but slightly brighter */
.subcat-link:hover {
  color: #f8f9fa;
  text-decoration: underline;
}

/* Optional: adjust icon alignment */
.subcat-link i {
  color: #f8f9fa;
  margin-right: 4px;
}

/* Title */
.kb-article-title a {
  text-decoration: none;
  color: var(--brand-light);
  font-size: 1rem;
  font-weight: 600;
}

.kb-article-title a:hover {
  text-decoration: underline;
}

/* Description */
.kb-article-description {
  color: #555;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  flex-grow: 1;
}

/* Meta info */
.kb-article-meta {
  font-size: 0.75rem;
  color: #999;
}

h5.kb-article-title {
    color: var(--brand-light);
}

.hero h1 {
    color: var(--brand-dark);
}

.hero p {
    margin: 0px !important;
}

.kbarticle-wrapper h1 {
    color: var(--brand-dark);
}

.kbarticle-wrapper p {
  font-style: italic
}

.kb-wrapper h1 {
    color: var(--brand-dark);
}



/* KB Article Styling */

.kbarticle-wrapper {
    background-color: var(--brand-card);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
}

.kbarticle-content {
    background-color: white;
    border-radius: 8px;
    text-align: justify;
    padding-top: 40px;
    padding-bottom: 40px;
    padding-left: 50px;
    padding-right: 50px;
    margin-top: 25px;
    font-size: 16px;
}

.kbarticle-content h1
{
    color: #83368D !important;
}
 
.kbarticle-content h2
{
    color: #1e9dd8 !important;
    font-size: 1.5rem !important;
}
 
::marker {
      color: #3694D7 !important;
}
 
.kbarticle-content *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) {
  font-size: 16px;
  color: #000;
}

.kbarticle-content h1 { font-size: 32px; }
.kbarticle-content h2 { font-size: 28px; }
.kbarticle-content h3 { font-size: 24px; }
.kbarticle-content h4 { font-size: 20px; }
.kbarticle-content h5 { font-size: 18px; }
.kbarticle-content h6 { font-size: 16px; }
 
::marker {
      color: #3694D7 !important;
}

span.articlenumber {
    font-size: smaller;
    font-weight: 100;
}

a.kb-article-link {
    text-decoration: none !important;
}

a.kb-article-link:hover {
    text-decoration: none !important;
}

h1.related-articles-title {
    color: var(--brand-primary);
    text-align: center
}

.offcanvas {
  background-color: var(--brand-card);
  backdrop-filter: blur(10px);
  color: #fff;
  width: 100% !important;
  height: 90% !important;
  border-radius: 12px;
}

/* Close button contrast */
.offcanvas .btn-close {
  filter: invert(1);
}

/* Offcanvas header spacing and border */
.offcanvas-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}


.accordion {
  background: transparent;
  border: none;
}

.accordion-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  margin-bottom: 6px;            /* tighten spacing */
  overflow: hidden;              /* removes visible gaps between panels */
}

.accordion-button {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 500;
  border: none;
  box-shadow: none;
  padding: 0.75rem 1rem;
}

.accordion-button:not(.collapsed) {
  background: var(--brand-primary);
  color: #fff;
}

.accordion-button::after {
  filter: invert(1);             /* keeps arrow visible on dark theme */
}

.accordion-body {
  background: transparent;
  color: #ddd;
  padding: 0.75rem 1rem;
}

.accordion-body ul {
  list-style: disc;
  margin-left: 1.25rem;
  padding-left: 0;
}

.accordion-body strong {
  display: block;
  margin-top: 0.5rem;
  color: #fff;
}

 .accordion-body p {
    font-size: 1rem;
}

/* Optional: slightly smaller font for accordion buttons on mobile */
@media (max-width: 767.98px) {
  .accordion-button {
    font-size: 0.95rem;
  }
}

/* Support */
/* Create Case */

.case-wrapper {
    background-color: var(--brand-card);
    color: var(--brand-dark);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 12px;
    padding-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.case-wrapper .crmEntityFormView {
  margin: 1rem;
  border-radius: 12px;
  padding: 1rem;
  background-color: transparent;
  border-color: white
}

.case-wrapper .crmEntityFormView label {
  background-color: transparent;
  color: white;
}

.case-wrapper .crmEntityFormView .cell {
  padding: 4px 8px;
}

button.btn.btn-default.launchentitylookup {
  margin-top: unset;
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.case-wrapper .crmEntityFormView input:disabled {
  background-color: transparent !important;
  color: white !important;
}

.case-wrapper .crmEntityFormView input {
color: black;
}

button.btn.btn-default.clearlookupfield {
  margin-top: unset;
  color: var(--brand-primary);
  border-color: var(--brand-tertiary);
}

.table-info {
  color: white
}

button#UploadButton {
  color: white;
  background-color: var(--brand-primary)
}

input#InsertButton {
    color: white;
  background-color: var(--brand-primary)
}

/* Create Case Field Validation */

div.validation-summary {
  background-color: #ffcccc;
  border: 1px solid #cc0000;
  padding: 10px;
  border-radius: 6px;
}

div.validation-summary a {
  color: #000 !important;
  text-decoration: underline;
}

h2.validation-header {
  color: #000;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.field-validation-error {
  color: #cc0000;
  font-size: 0.9rem;
}

.btn-close {
  background: none;
  border: 0;
  -webkit-appearance: none;
  appearance: none;
  width: 1em;
  height: 1em;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M2.146 2.854a.5.5 0 0 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8 2.146 2.854z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1em auto;
  opacity: .5;
}
.btn-close:hover {
  opacity: .75;
}

/* Lookup Modal */ 
.modal-content {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  color: #fff !important;
  border: 1px solid var(--brand-primary);
  border-radius: 16px;
  box-shadow: 0 0 25px rgba(30, 157, 216, 0.7);
  padding: 1.5rem;
  transition: all 0.3s ease-in-out;
}

.modal-content .btn-primary,
button#Select {
  background: var(--brand-primary);
  border: none;
  color: #000;
  font-weight: bold;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(30, 157, 216, 0.6);
}

.modal-content .btn-secondary,
button#Cancel {
  background: transparent;
  border: 1px solid #666;
  color: #ccc;
  border-radius: 8px;
}

.modal-content .btn-danger,
button#RemoveValue {
  background: var(--brand-tertiary);
  border: none;
  color: #fff;
  border-radius: 8px;
}

.modal-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 1rem;
  border-radius: 12px;
  overflow: hidden;
}

.modal-content table thead {
  background: rgba(30, 157, 216, 0.15);
  color: var(--brand-primary);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-content table th,
.modal-content table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #eee !important;
  transition: background 0.3s ease;
}

.modal-content table tr:hover td {
  background: rgba(30, 157, 216, 0.2);
  box-shadow: inset 0 0 10px rgba(30, 157, 216, 0.3);
  color: #eee !important;
}

.modal-content table tr.selected td,
.modal-content table tr:has(input[type="checkbox"]:checked) td {
  background: rgba(30, 157, 216, 0.35) !important;
  color: #eee !important;
}

/* Link/URL columns */
.modal-content table td:nth-child(2),
.modal-content table td:nth-child(3) {
  color: var(--brand-primary) !important;
  font-weight: 500;
}

.modal-content table td:nth-child(2) a,
.modal-content table td:nth-child(3) a {
  color: var(--brand-primary) !important;
  text-decoration: none;
}

.modal-content table td:nth-child(2) a:hover,
.modal-content table td:nth-child(3) a:hover {
  text-decoration: underline;
  color: var(--brand-primary) !important;
}

.modal-content table tr.selected td:nth-child(2) a,
.modal-content table tr.selected td:nth-child(3) a,
.modal-content table tr:has(input[type="checkbox"]:checked) td:nth-child(2) a,
.modal-content table tr:has(input[type="checkbox"]:checked) td:nth-child(3) a {
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
}

.modal-content table td:first-child {
  width: 40px;
  text-align: center;
  color: #eee !important;
}

.modal-content button.btn.btn-default {
  color: var(--brand-dark);
  background-color: var(--brand-primary);
}

button.primary.btn.btn-primary {
  color: var(--brand-dark);
}


#message-status {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 500;
}

#message-status.text-success {
  background-color: #d4edda;
  color: #155724;
}

#message-status.text-error {
  background-color: #f8d7da;
  color: #721c24;
}

#message-status.text-muted {
  background-color: #e2e3e5;
  color: #383d41;
}

/* Data Table Styling */ 

  /* Table header (thead) */
table#CaseTable thead th {
    background-color: transparent;
    color: var(--brand-primary) !important;
    font-weight: 700;
    border: none;
}

/* Table body rows */
table#CaseTable tbody tr {
    background-color: transparent;
    color: white !important;
}

/* Table body cell text */
table#CaseTable tbody td {
color: white !important;
}

/* Optional: Hover effect (light grey) */
table#CaseTable tbody tr:hover {
  background-color: rgba(70, 130, 180, 0.2) !important; /* steelblue with transparency */
  color: #333 !important;
}

/* Optional: Remove zebra striping (if needed) */
table#CaseTable.table-striped tbody tr:nth-of-type(odd) {
    background-color: transparent;
}

.table-bordered>:not(caption)>*>* {
    border-width: 1px 0px !important;
}

  #CaseTable a {
    color: var(--brand-primary) !important;
    font-weight: 600;
    text-decoration: none;
  }

  #CaseTable a:hover,
  #CaseTable a:focus,
  #CaseTable a:visited,
  #CaseTable a:active {
    color: var(--brand-primary) !important;
    text-decoration: underline; 
  }

div.dt-button-collection {
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    margin-top: 3px;
    margin-bottom: 3px;
    padding: .75em 0;
    border: 1px solid rgba(0, 0, 0, 0.4);
    background-color: var(--brand-card);
    overflow: hidden;
    z-index: 2002;
    border-radius: 5px;
    box-shadow: 3px 4px 10px 1px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

  /* Dropdown toggle buttons - dark theme */
.btn-outline-primary,
.btn-outline-dark,
.btn-outline-secondary {
  color: #eee;
  border-color: rgba(255, 255, 255, 0.4);
  background-color: transparent;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-dark:hover,
.btn-outline-dark:focus,
.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.75);
}

/* Dropdown menu background and text */
.dropdown-menu {
  background-color: #222; /* Dark background */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.4rem;
  min-width: 12rem;
}

/* Dropdown menu items */
.dropdown-menu .dropdown-item {
  color: #ddd;
  padding: 0.4rem 1.2rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus,
.dropdown-menu .dropdown-item.active {
  background-color: #444;
  color: #fff;
}

/* Special styling for urgent priority */
.dropdown-menu .dropdown-item.fw-bold.text-danger {
  color: #ff5c5c;
}

.dropdown-menu .dropdown-item.fw-bold.text-danger:hover,
.dropdown-menu .dropdown-item.fw-bold.text-danger:focus {
  background-color: #b22222;
  color: #fff;
}

/* Reset button styling */
#resetFilters {
  color: #eee;
  border-color: rgba(255, 255, 255, 0.4);
  background-color: transparent;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#resetFilters:hover,
#resetFilters:focus {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.75);
}

.case-card-wrapper {
    background-color: var(--brand-card);
    color: var(--brand-dark);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 12px;
    backdrop-filter: blur(10px);
}

.case-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  cursor: pointer;
  overflow: hidden;
  min-height: 120px;
}

.case-count {
  margin-bottom: 2rem; 
  font-size: 2rem;
  font-weight: 600;
}

.case-card-header {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  text-align: center;
  padding: 0.5rem 0.75rem;
  font-weight: 500;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 1rem;
}

.case-card:hover {
  filter: brightness(0.9);
}

@media (max-width: 768px) {
  .d-flex.flex-wrap.justify-content-center.align-items-center.gap-3 {
    flex-direction: column !important;
    align-items: stretch !important;   
  }

  .case-card {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 576px) {
  .case-card {
    min-width: 100%;
    margin: 0.25rem 0;
  }
}

.active-kpi {
  background-color: var(--brand-tertiary);
  color: #fff;
  transform: scale(1.03);
  transition: 0.2s ease;
}

.case-count {
    font-size: 2.5rem;
    font-weight: 600;
}

/* Incident Details */

.incident-card-wrapper {
    background-color: var(--brand-card);
    color: var(--brand-dark);
    border-radius: 12px;
    padding: 3rem;
    margin-top: 12px;
    backdrop-filter: blur(10px);
}

.incident-card {
  text-align: center;
  background-color: transparent;
  border-radius: 12px;
  border-left: 4px solid;
  border-left-color: var(--brand-primary);
  transition: border-left-color 0.5s ease;
}

.incident-card:hover {
  border-left-color: var(--brand-tertiary);
}

.incident-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.incident-value {
    font-size: 1rem;
    margin: unset;
}

.alert-mercury {
  text-align: center;
  background-color: rgb(236, 137, 137);
  font-size: 1rem;
  color: var(--brand-dark)
}

.alert-mercury a {
  color: var(--brand-dark);
  font-size: 1rem;
  text-decoration: underline;
}
.alert-mercury a:hover {
  font-weight: bolder
}

.info-icon {
  cursor: help;
  font-weight: bold;
  font-size: 14px;
  margin-left: 6px;
  color: var(--brand-tertiary);
  vertical-align: middle;
}
.info-icon:hover {
  color: var(--brand-primary);
}

.fab {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--brand-tertiary);
  color: white;
  border: none;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 1000;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, opacity 0.3s ease;
}

.fab:hover {
  background-color: color-mix(in srgb, var(--brand-tertiary) 80%, black);
}

.fab-close {
  position: fixed;
  top: 20px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--brand-tertiary);
  color: white;
  border: none;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 1000;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, opacity 0.3s ease;
}

.fab-close:hover {
  background-color: color-mix(in srgb, var(--brand-tertiary) 80%, black);
}

.fa-circle-info {
  color: var(--brand-primary);
  margin-left: 8px;
}
.fa-circle-info:hover {
  color: var(--brand-tertiary);
}

/* Conversation Panel */
#ConversationPanel {
  position: fixed;
  top: 70px;
  bottom: 60px;
  right: -700px;
  width: 700px;
  height: calc(100vh - var(--header-height, 0) - var(--footer-height, 0));
  background: transparent;
  backdrop-filter: blur(60px);
  box-shadow: -2px 0 6px rgba(0,0,0,0.3);
  transition: right 0.3s ease;
  z-index: 1000;
  overflow: hidden; /* stops parent scroll */
}

#ConversationPanel.open {
  right: 0;
}

/* Shift main content */
.wrapper-body.shifted {
  margin-right: 700px;
  transition: margin-right 0.3s ease;
}

/* Responsive: full-width on smaller screens */
@media (max-width: 1200px) {
  #ConversationPanel {
    width: 100vw;
    right: -100vw;
  }

  #ConversationPanel.open {
    right: 0;
  }

  .wrapper-body.shifted {
    margin-right: 0;
  }
}

.panel-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 2;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.75rem 1rem;
}

.panel-header h5 {
  font-size: 1.5rem;
}


.panel-body {
    position: absolute;
    top: 60px;
    bottom: 150px;
    left: 0;
    right: 0;
    overflow-y: auto;
    padding: 16px;
    background: transparent;
    padding: 1rem;
    display: flex
;
    flex-direction: column;
}



.panel-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: transparent;
  z-index: 2;
  padding-bottom: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 120px;     
  overflow: visible;
  transition: height 0.15s ease;
}

.panel-footer {
  background: rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.75rem 1rem;
  backdrop-filter: blur(8px);
}

.panel-footer form {
  width: 100%;
}

.panel-footer .input-group {
  display: flex;
  align-items: center; /* changed back from flex-end */
  gap: 8px;
}

.panel-footer #description {
  background: rgb(230, 229, 235);
  color: #000;
  resize: none;
  min-height: 90px;
  max-height: 300px;
  overflow-y: auto;
  border: 0;
  border-radius: 8px;
  font-size: 12px;
  transition: height 0.15s ease;
  box-shadow: none;
}

.panel-footer #description:focus {
  border-color: var(--brand-primary);
  box-shadow: none;
}

.input-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-footer .icon-button {
  background: none;
  border: none;
  color: var(--brand-primary);
  padding: 0 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.panel-footer .icon-button:hover {
  opacity: 1;
  color: var(--brand-tertiary);
}

.textarea-wrapper {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.char-counter {
  text-align: right;
  font-size: 11px;
  opacity: 0.7;
  margin-top: 3px;
  margin-right: 4px;
  color: white !important;
}

/* Attachment Handling */
.attachment-preview-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.attachment-preview-list li {
  background: rgba(230, 229, 235, 0.7);
  border-radius: 6px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  font-size: 0.85rem;
}

.attachment-preview-list li i {
  margin-right: 6px;
  color: var(--brand-primary);
}

.remove-attachment {
  border: none;
  background: none;
  color: #666;
  font-size: 0.9rem;
  margin-left: 6px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.remove-attachment:hover {
  color: #c00;
}

/* --- Case Guidance Accordion --- */
.case-wrapper .col-md-4 .accordion {
  background: transparent;
  border: none;
}

.case-wrapper .col-md-4 .accordion-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  margin-bottom: 6px;            /* tighten spacing */
  overflow: hidden;              /* removes visible gaps between panels */
}

.case-wrapper .col-md-4 .accordion-button {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 500;
  border: none;
  box-shadow: none;
  padding: 0.75rem 1rem;
}

.case-wrapper .col-md-4 .accordion-button:not(.collapsed) {
  background: var(--brand-primary);
  color: #fff;
}

.case-wrapper .col-md-4 .accordion-button::after {
  filter: invert(1);             /* keeps arrow visible on dark theme */
}

.case-wrapper .col-md-4 .accordion-body {
  background: transparent;
  color: #ddd;
  padding: 0.75rem 1rem;
}

.case-wrapper .col-md-4 .accordion-body ul {
  list-style: disc;
  margin-left: 1.25rem;
  padding-left: 0;
}

.case-wrapper .col-md-4 .accordion-body strong {
  display: block;
  margin-top: 0.5rem;
  color: #fff;
}

.case-wrapper .col-md-4 .accordion-body p {
    font-size: 1rem;
}


ul#kbResults li {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  margin-bottom: 6px;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

ul#kbResults li:hover {
  border-color: var(--brand-primary);
  background-color: rgba(255, 255, 255, 0.1);
}

#kbPlaceholder {
  transition: opacity 0.3s ease;
}


ul#kbResults li {
    color: white;
}

ul#kbResults li a {
  text-decoration: none !important
}
/* === Base Message Styling === */
.message {
  background: rgb(230, 229, 235);
  max-width: 90%;
  padding: 10px 14px;
  margin: 0.5rem 0;
  border-radius: 10px;
  color: #000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .2),
              inset 0 1px 1px rgba(255, 255, 255, .3),
              0 2px 5px rgba(0, 0, 0, .2);
  transition: transform .3s ease;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* === Directional Message Alignment === */
.message[data-direction="1"] {
  align-self: flex-end;
  text-align: right;
}

.message[data-direction="2"] {
  align-self: flex-start;
  background-color: mediumpurple;
  margin-right: 20px;
  text-align: left;
}

/* === Text + Small Elements === */
.message small {
  font-size: 14px;
  color: black;
}

.message p {
  font-size: 12px;
  color: black;
  margin-bottom: unset;
}

.message[data-direction="2"] small,
.message[data-direction="2"] p {
  color: white;
}

.message-timestamp {
  font-size: 0.8rem;
  font-weight: 400;
  font-style: italic;
  opacity: 0.8;
  margin-left: 2px;
  color: inherit;
}

/* === Attachment Styling === */
.attachment-file,
.attachment-image {
  background: rgba(255,255,255,0.8);
  border-radius: 4px;
  margin-left: 4px;
  margin-right: 4px;
  padding: 4px 8px;
}

.message[data-direction="1"] .attachment-file,
.message[data-direction="1"] .attachment-image {
  background-color: #eef6ff;
  color: #004085;
}

.message[data-direction="2"] .attachment-file,
.message[data-direction="2"] .attachment-image {
  background-color: #f8f9fa;
  color: #383d41;
}

/* === Grouped Message Styling (takes priority) === */
.message-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: none;
}

.message-group[data-direction="1"] {
  align-items: flex-end;
}

.message-group[data-direction="2"] {
  align-items: flex-start;
}

.message-header {
  font-weight: 600;
  margin-bottom: 4px;
}

.message-group .message {
  border-radius: 10px;
  padding: 10px 14px;
  max-width: 70%;
}

.message-group .message + .message {
  margin-top: 4px;
}

.message-group[data-direction="1"] .message {
  background-color: #eef6ff;
  color: #0a2b5c;
}

.message-group[data-direction="2"] .message {
  background-color: #6f42c1;
  color: white;
}

.toast-message {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #198754;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 9999;
  animation: fadeInOut 5s forwards;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translate(-50%, 20px); }
  10%, 90% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 20px); }
}


/* Panel Scrollbar */
/* WebKit scrollbar styling */
.panel-body::-webkit-scrollbar {
  width: 10px;
}

.panel-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.panel-body::-webkit-scrollbar-thumb {
  background-color: var(--brand-primary, #888);
  border-radius: 4px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.panel-body::-webkit-scrollbar-thumb:hover {
  background-color: var(--brand-primary, #555);
}

/* Firefox support */
.panel-body {
  scrollbar-width: thin;
  scrollbar-color: var(--brand-primary, #888) rgba(0, 0, 0, 0.2);
  overflow-y: auto; /* required for scrollbars to exist */
}

/* Footer Scroll */
/* Panel Scrollbar */
/* WebKit scrollbar styling */
.panel-footer::-webkit-scrollbar {
  width: 10px;
}

.panel-footer::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.panel-footer::-webkit-scrollbar-thumb {
  background-color: var(--brand-primary, #888);
  border-radius: 4px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.panel-footer::-webkit-scrollbar-thumb:hover {
  background-color: var(--brand-primary, #555);
}

/* Firefox support */
.panel-footer {
  scrollbar-width: thin;
  scrollbar-color: var(--brand-primary, #888) rgba(0, 0, 0, 0.2);
  overflow-y: auto; /* required for scrollbars to exist */
}

.tile {
  flex: 1 1 200px; /* grow/shrink evenly, base width */
  min-width: 180px; /* prevents too-small tiles on narrow screens */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition: background 0.2s, box-shadow 0.2s;
  color: #fff;
  overflow: hidden;
}

.tile:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  text-decoration: none !important;
  color: white
}

.tile-header {
  background: rgba(255, 255, 255, 0.1);
  width: 100%;
  text-align: center;
  padding: 0.5rem 0.75rem;
  font-weight: 500;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 1rem;
}


.knowledge-highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.tile-body {
  padding: 0.75rem 1rem;
  text-align: center;
  min-height: 60px;
}

.tile-summary {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.tile-footer {
  padding: 0.75rem 0 1rem;
  text-align: center;
}

.btn.brand-primary {
  background: var(--brand-primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.btn.brand-primary:hover {
  background: var(--brand-primary-hover, #0078d4);
}


/* temp alerts */ 

.alerts-wrapper {
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 1.5rem;
}

/* shared styling */
.alert-title .title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: white;
  background: rgba(255, 255, 255, 0.1);rgba(255, 255, 255, 0.1);
}

.icon-wrap i {
  font-size: 1.5rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

.portal-alerts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.alert-item {
  display: flex;
  align-items: flex-start;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  padding: 1rem;
  min-height: 160px;
  width: 100%;
  max-width: 500px;
  transition: background 0.2s;
}

.alert-item:hover {
  background: rgba(255,255,255,0.1);
}

.alert-image {
  flex: 0 0 100px;
  margin-right: 1rem;
}

.alert-image img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
}

.alert-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.alert-title {
  font-weight: 600;
  color: #fff;
}

.alert-msg {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  margin-top: 0.25rem;
}

.cta-btn {
  align-self: flex-end;
  margin-top: 1rem;
  background-color: #b91568;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.2s;
}

.cta-btn:hover {
  background-color: #ff62a3;
}

/* Empty State */
.portal-alerts-empty {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
}

.portal-alerts-empty {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
}

/* Keep at Bottom */
.modal-backdrop {
  z-index: 1040 !important;
  background-color: transparent !important;
  opacity: 0 !important;
  pointer-events: none !important; 
}
.modal {
  position: fixed !important;
  z-index: 2000 !important;
}
.ms-overlay,
.mercury-slideout {
  z-index: 500 !important;
}