:root {
  /* ========================================
     COLOR SYSTEM - Theme Variables
     ======================================== */

  /* Primary color scale - Teal */
  --primary-50: #f0f9fa;
  --primary-100: #d6eff4;
  --primary-200: #bee5ed;
  --primary-300: #8ed3e0;
  --primary-400: #5bbfd0;
  --primary-500: #4295a9;
  --primary-600: #377f91;
  --primary-700: #326f7e;
  --primary-800: #2a5f6b;
  --primary-900: #1e4a54;

  /* Gray scale */
  --gray-50: #fafafa;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;

  /* Semantic colors */
  --success: #1dc9b7;
  --success-light: #d4f4f1;
  --success-dark: #0f7a70;
  --warning: #ffc107;
  --warning-light: #fff3cd;
  --warning-dark: #664d03;
  --danger: #dc3545;
  --danger-light: #f8d7da;
  --danger-dark: #842029;
  --info: #4295a9;
  --info-light: #d4f0f5;
  --info-dark: #285e6a;

  /* Brand colors */
  --mfa-blue: #3b4559;
  --mfa-teal: #4295a9;
  --mfa-salmon: #f49491;
  --mfa-apricot: #f2caad;
  --lw-blue: #1298cc;
  --lw-green: #c4d600;
  --lw-darkGreen: #84a504;
  --lw-grey: #968c83;
  --lw-darkBlue: #002855;
  --lw-lightGrey: #f7f4ef;

  /* ========================================
     UI ELEMENT VARIABLES
     ======================================== */

  /* Body */
  --body-bg: #fefefe;
  --body-color: var(--gray-900);

  /* Header */
  --header-bg: linear-gradient(135deg, #d7eaee 0%, #c9dee3 100%);
  --header-height: 60px;

  /* Navigation */
  --nav-w: 260px;
  --nav-bg: #e8e8e8;
  --nav-border: #dedede;
  --nav-header-text: #fff;
  --nav-header-bg: var(--primary-500);
  --nav-header-border: #eeeeee;
  --nav-link: var(--mfa-blue);
  --nav-link-hover: var(--primary-500);

  /* Cards & Panels */
  --card-bg: #fff;
  --card-border: var(--gray-300);
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);

  /* Forms */
  --input-bg: #fff;
  --input-border: var(--gray-400);
  --input-focus-border: var(--primary-500);
  --input-focus-shadow: rgba(66, 149, 169, 0.25);

  /* Tables */
  --table-border: var(--gray-300);
  --table-stripe-bg: var(--gray-50);
  --table-hover-bg: var(--gray-100);

  /* Links */
  --link-color: var(--primary-500);
  --link-hover-color: var(--primary-600);

  /* Text */
  --text-muted: var(--gray-600);
  --text-light: var(--gray-500);

  /* Ghost mode (impersonation) */
  --ghost-color: #805ad5;
  --ghost-color-hover: #6b46c1;

  /* Borders */
  --border-color: var(--gray-300);
  --border-light: var(--gray-200);

  /* ========================================
     BOOTSTRAP OVERRIDES
     ======================================== */
  --bs-primary: var(--primary-500);
  --bs-primary-rgb: 66, 149, 169;
  --bs-danger: var(--danger);
  --bs-danger-rgb: 220, 53, 69;
  --bs-success: var(--success);
  --bs-success-rgb: 29, 201, 183;
  --bs-warning: var(--warning);
  --bs-warning-rgb: 255, 193, 7;
  --bs-info: var(--info);
  --bs-info-rgb: 66, 149, 169;
  --bs-secondary: var(--gray-600);
  --bs-secondary-rgb: 108, 117, 125;
  --bs-light: var(--gray-100);
  --bs-dark: var(--gray-900);
}

/* Beta tag */
.sh-logo {
  position: relative;
}
.beta-tag {
  position: absolute;
  bottom: -4px;
  right: -18px;
  background: linear-gradient(135deg, #f49491 0%, #e57373 100%);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  padding: 2px 5px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  pointer-events: none;
}
@media (max-width: 768px) {
  .beta-tag {
    right: -20px;
    font-size: 8px;
    padding: 1px 4px;
  }
}

/* Nav expand/collapse controls - compact bar at top */
.nav-controls {
  display: flex;
  justify-content: center;
  gap: 2px;
  padding: 2px 6px;
  background: rgba(0,0,0,0.08);
}
.nav-control-btn {
  background: transparent;
  border: none;
  color: #666;
  padding: 2px 8px;
  cursor: pointer;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  line-height: 1;
  transition: all 0.15s ease;
  border-radius: 3px;
}
.nav-control-btn i {
  margin-right: 2px;
}
.nav-control-btn:hover {
  background: var(--nav-header-bg);
  color: #fff;
}

/* Ghost mode banner */
.ghost-banner {
  background: linear-gradient(135deg, #6b46c1 0%, #805ad5 100%);
  color: #fff;
  padding: 8px 20px;
  text-align: center;
  font-size: 14px;
  position: sticky;
  top: 0;
  z-index: 1001;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.ghost-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.ghost-banner i {
  font-size: 18px;
  animation: ghost-float 2s ease-in-out infinite;
}
@keyframes ghost-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.ghost-end-btn {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}
.ghost-end-btn:hover {
  background: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.6);
}
.ghost-trigger a {
  color: var(--ghost-color) !important;
}
.ghost-trigger a:hover {
  color: var(--ghost-color-hover) !important;
}

/* Table hover outline */
.table-hover > tbody > tr:hover {
  outline-color: var(--primary-500) !important;
}

/* Custom orange table row (used for licenses expiring within 30 days) */
.table-orange {
  --bs-table-bg: #fff3e0;
  --bs-table-border-color: #ffe0b2;
  background-color: var(--bs-table-bg) !important;
}
.table-orange:hover {
  --bs-table-bg: #ffe8cc;
}

/* ========================================
   LIST GROUP
   ======================================== */
.list-group {
  --bs-list-group-color: var(--gray-900);
  --bs-list-group-bg: #fff;
  --bs-list-group-border-color: rgba(0, 0, 0, 0.125);
  --bs-list-group-action-color: var(--gray-700);
  --bs-list-group-action-hover-color: var(--primary-500);
  --bs-list-group-action-hover-bg: var(--gray-100);
  --bs-list-group-action-active-color: var(--gray-900);
  --bs-list-group-action-active-bg: var(--gray-200);
  --bs-list-group-active-color: #fff;
  --bs-list-group-active-bg: var(--primary-500);
  --bs-list-group-active-border-color: var(--primary-500);
}

.list-group-item.active {
  background-color: var(--primary-500);
  border-color: var(--primary-500);
}

/* Employee list in audit conduct - use left border instead of full bg */
.employee-item.active {
  background-color: #f8f9fa;
  border-left: 4px solid var(--primary-500);
  color: inherit;
}

.list-group-item:hover,
.list-group-item:focus {
  color: var(--primary-500);
}

/* Primary-500 utility classes */
.text-primary-500 {
  color: var(--primary-500) !important;
}

.bg-primary-500 {
  background-color: var(--primary-500) !important;
}

.border-primary-500 {
  border-color: var(--primary-500) !important;
}

/* ========================================
   FORM ELEMENTS
   ======================================== */
.form-control:focus,
.form-select:focus {
  border-color: var(--input-focus-border);
  box-shadow: 0 0 0 0.25rem var(--input-focus-shadow);
}

.form-check-input:checked {
  background-color: var(--primary-500);
  border-color: var(--primary-500);
}

.form-check-input:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 0.25rem var(--input-focus-shadow);
}

/* ========================================
   LINKS
   ======================================== */
a {
  color: var(--link-color);
}

a:hover {
  color: var(--link-hover-color);
}

/* Selection highlight */
::selection {
  background-color: rgba(66, 149, 169, 0.3);
}

/* Scrollbar (webkit browsers) */
::-webkit-scrollbar-thumb:hover {
  background-color: var(--primary-500);
}

/* ========================================
   BUTTONS - PRIMARY
   ======================================== */
.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--primary-500);
  --bs-btn-border-color: var(--primary-500);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--primary-600);
  --bs-btn-hover-border-color: var(--primary-600);
  --bs-btn-focus-shadow-rgb: 66, 149, 169;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--primary-700);
  --bs-btn-active-border-color: var(--primary-700);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: var(--primary-500);
  --bs-btn-disabled-border-color: var(--primary-500);
}

.btn-outline-primary {
  --bs-btn-color: var(--primary-500);
  --bs-btn-border-color: var(--primary-500);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--primary-500);
  --bs-btn-hover-border-color: var(--primary-500);
  --bs-btn-focus-shadow-rgb: 66, 149, 169;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--primary-600);
  --bs-btn-active-border-color: var(--primary-600);
  --bs-btn-disabled-color: var(--primary-500);
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: var(--primary-500);
}

.btn-primary:focus-visible,
.btn-outline-primary:focus-visible {
  box-shadow: 0 0 0 0.25rem var(--input-focus-shadow);
}

/* ========================================
   BOOTSTRAP UTILITIES - PRIMARY
   ======================================== */
.badge.bg-primary {
  background-color: var(--primary-500) !important;
}

.text-primary {
  color: var(--primary-500) !important;
}

.border-primary {
  border-color: var(--primary-500) !important;
}

/* ========================================
   PROGRESS & PAGINATION
   ======================================== */
.progress-bar {
  background-color: var(--primary-500);
}

.page-link {
  color: var(--link-color);
}

.page-link:hover {
  color: var(--link-hover-color);
}

.page-item.active .page-link {
  background-color: var(--primary-500);
  border-color: var(--primary-500);
}

/* ========================================
   NAV PILLS/TABS
   ======================================== */
.nav-pills .nav-link.active {
  background-color: var(--primary-500);
}

.nav-link {
  color: var(--link-color);
}

.nav-link:hover {
  color: var(--link-hover-color);
}

/* ========================================
   BUTTONS & UTILITIES - DANGER
   ======================================== */
.bg-danger {
  background-color: var(--danger) !important;
}

.btn-danger {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--danger);
  --bs-btn-border-color: var(--danger);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #bb2d3b;
  --bs-btn-hover-border-color: #b02a37;
  --bs-btn-focus-shadow-rgb: 220, 53, 69;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #b02a37;
  --bs-btn-active-border-color: #a52834;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: var(--danger);
  --bs-btn-disabled-border-color: var(--danger);
}

.btn-outline-danger {
  --bs-btn-color: var(--danger);
  --bs-btn-border-color: var(--danger);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--danger);
  --bs-btn-hover-border-color: var(--danger);
  --bs-btn-focus-shadow-rgb: 220, 53, 69;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #bb2d3b;
  --bs-btn-active-border-color: #b02a37;
  --bs-btn-disabled-color: var(--danger);
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: var(--danger);
}

.badge.bg-danger {
  background-color: var(--danger) !important;
}

.text-danger {
  color: var(--danger) !important;
}

.border-danger {
  border-color: var(--danger) !important;
}

/* ========================================
   ALERTS
   ======================================== */
.alert-success {
  --bs-alert-color: var(--success-dark);
  --bs-alert-bg: var(--success-light);
  --bs-alert-border-color: #c3e6cb;
  --bs-alert-link-color: var(--success-dark);
}

.alert-danger {
  --bs-alert-color: var(--danger-dark);
  --bs-alert-bg: var(--danger-light);
  --bs-alert-border-color: #f5c2c7;
  --bs-alert-link-color: var(--danger-dark);
}

.alert-warning {
  --bs-alert-color: var(--warning-dark);
  --bs-alert-bg: var(--warning-light);
  --bs-alert-border-color: #ffecb5;
  --bs-alert-link-color: var(--warning-dark);
}

.alert-info {
  --bs-alert-color: var(--info-dark);
  --bs-alert-bg: var(--info-light);
  --bs-alert-border-color: var(--primary-200);
  --bs-alert-link-color: var(--info-dark);
}

.alert-primary {
  --bs-alert-color: var(--primary-800);
  --bs-alert-bg: var(--primary-100);
  --bs-alert-border-color: var(--primary-200);
  --bs-alert-link-color: var(--primary-800);
}

.alert-secondary {
  --bs-alert-color: var(--gray-700);
  --bs-alert-bg: var(--gray-200);
  --bs-alert-border-color: var(--gray-300);
  --bs-alert-link-color: var(--gray-700);
}

.alert-light {
  --bs-alert-color: var(--gray-600);
  --bs-alert-bg: var(--gray-50);
  --bs-alert-border-color: var(--gray-200);
  --bs-alert-link-color: var(--gray-600);
}

.alert-dark {
  --bs-alert-color: var(--gray-900);
  --bs-alert-bg: var(--gray-400);
  --bs-alert-border-color: var(--gray-500);
  --bs-alert-link-color: var(--gray-900);
}

/* Alert icon colors */
.alert-success .fa-solid,
.alert-success .fa-duotone {
  color: var(--success);
}

.alert-danger .fa-solid,
.alert-danger .fa-duotone {
  color: var(--danger);
}

.alert-warning .fa-solid,
.alert-warning .fa-duotone {
  color: var(--warning);
}

/* Icons inside buttons should inherit button text color, not alert color */
.alert .btn .fa-solid,
.alert .btn .fa-duotone {
  color: inherit;
}

.alert-info .fa-solid,
.alert-info .fa-duotone {
  color: var(--info);
}

b, strong {
  font-weight: 700 !important;
}

.fw-bold {
  font-weight: 700 !important;
}

/* ========================================
   BODY & LAYOUT
   ======================================== */
body {
  background: var(--body-bg);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  padding-top: 60px;
  color: var(--body-color);
}

.content-area {
  position: relative; 
}

/*** Header Styles ***/
.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 60px;
  background: var(--header-bg);
  font-family: "Quicksand", sans-serif;
  -webkit-box-shadow: 0 2px 4px 0 rgba(43, 43, 43, 0.1);
  box-shadow: 0 2px 4px 0 rgba(43, 43, 43, 0.1);
  z-index: 1100;
  padding: 0 20px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

/*** Site Logo ***/
.sh-logo {
  display: flex;
  align-items: center;
}

.sh-logo a {
  font-family: "Montserrat Alternates", sans-serif;
  color: var(--mfa-blue);
  text-decoration: none;
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -2px;
}

.sh-logo a span {
  color: var(--mfa-teal);
  font-weight: 700;
}

.sh-logo .long {
  display: none;
}

@media (min-width: 600px) {
  .sh-logo .short { display: none; }
  .sh-logo .long { display: inline; }
}

/*** Header Navigation ***/
.sh-navigation ul {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sh-navigation ul li a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--mfa-blue);
  font-weight: 500;
}

.sh-navigation ul li a:hover {
  color: var(--mfa-teal);
}

.sh-navigation ul li i {
  margin-right: 6px;
  font-size: 18px;
}

.sh-navigation ul li span {
  display: none;
}

@media (min-width: 768px) {
  .sh-navigation ul li span {
    display: inline;
  }
  .nav-toggle-icon {
    display: none;
  }
  .sh-navigation {
    padding-right: 30px;
  }  
}

/*** Navigation Toggle ***/
.nav-toggle-wrap {
  margin: 0 auto;
  position: relative;
  width: 24px;
  height: 24px;
  display: inline-block;
}

.nav-toggle .fa-bars,
.nav-toggle .fa-times {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  transition: opacity 0.3s ease, transform 0.3s ease;
  line-height: 24px;
}

.nav-toggle {
  color: var(--mfa-blue);
}

.nav-toggle:hover {
  color: var(--mfa-teal);
}

.nav-toggle .fa-times {
  opacity: 0;
  transform: rotate(-90deg);
}

#nav-bar:checked + .nav-toggle .fa-bars {
  opacity: 0;
  transform: rotate(90deg);
}

#nav-bar:checked + .nav-toggle .fa-times {
  opacity: 1;
  transform: rotate(0deg);
}

#nav-bar:checked ~ .nav-toggle {
  display: inline-block;
}

#nav-bar {
  display: none;
}

/*** Main Navigation ***/
.nav-menu {
  background: linear-gradient(180deg, var(--nav-bg), #fff);
  box-shadow: 0 0 5px rgba(0, 0, 0, .2);
  border-right: 1px solid var(--nav-border);
  width: var(--nav-w);
  box-sizing: border-box;
  position: absolute;
  top: 0; 
  left: 0; 
  bottom: 0;
  transform: translateX(-100%);
  transition: transform .3s ease;
  z-index: 1000;
}


@media (max-width: 767px) {
  .header-bar:has(#nav-bar:checked) + .content-area .nav-menu {
    transform: translateX(0);
  }
  .header-bar:has(#nav-bar:checked) + .content-area::before {
    opacity: 1;
    pointer-events: auto;
  }
}

.content-area::before {
  content: "";
  position: absolute; 
  inset: 0;
  background: rgba(0,0,0,.25);
  opacity: 0; 
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 900;
}

.nav-group {
  margin-bottom: 0;
}

.nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--nav-header-text);
  background-color: var(--nav-header-bg);
  padding: 0.25rem 0.75rem;
  border: none;
  border-top: 1px solid var(--nav-header-border);
  border-bottom: 1px solid var(--nav-header-border);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.nav-header:hover {
  background-color: var(--primary-700);
}

.nav-header:focus {
  outline: none;
}

.nav-header:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -2px;
}

.nav-header-text {
  flex: 1;
  text-align: left;
}

.nav-header-chevron {
  font-size: 8px;
  opacity: 0.6;
  transition: transform 0.2s ease;
}

.nav-group.collapsed .nav-header-chevron {
  transform: rotate(-90deg);
}

/* Collapsible group items */
.nav-group-items {
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.2s ease;
  max-height: 1000px;
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.35);
  padding: 6px 14px 10px;
  margin-bottom: 6px;
}

.nav-group-items[hidden] {
  display: block !important;
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
  pointer-events: none;
}

.nav-menu ul {
  list-style: none;
  margin: 0;
}

.nav-menu .nav-group-items {
  list-style: none;
}

.nav-menu a,
.nav-menu a[target] {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none !important;
  color: var(--nav-link);
  width: 100%;
  cursor: pointer;
  gap: 0;
  padding: 0.3rem 0.2rem;
  border-left: 3px solid transparent;
}

.nav-menu .nav-group-items button {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 400;
  color: var(--nav-link);
  background-color: transparent;
  border: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
  gap: 0;
  padding: 0.3rem 0.2rem;
  border-left: 3px solid transparent;
}

.nav-menu .nav-group-items button:hover {
  color: var(--nav-link-hover);
  background-color: rgba(66, 149, 169, 0.08);
  border-left-color: var(--primary-500);
}

.nav-menu a i,
.nav-menu button i {
  display: inline-block;
  width: 1.25em;
  min-width: 1.25em;
  text-align: center;
  margin-right: 0.5em;
  font-size: 0.925em;
  flex-shrink: 0;
}

/* Label styling (non-clickable items) */
.nav-menu .nav-label {
  display: flex;
  align-items: center;
  padding: 2px 0;
  font-size: 14px;
  font-weight: 400;
  color: var(--nav-link);
  cursor: default;
  opacity: 0.7;
}

/* Badge styling */
.nav-menu .nav-badge {
  display: inline-block;
  min-width: 1.25em;
  padding: 0.25em 0.5em;
  margin-left: auto;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  background-color: #dc3545;
  color: #fff;
  border-radius: 0.5rem;
  flex-shrink: 0; 
}

/* Notification dot on parent when children have badges */
.sub-toggle.has-notifications {
  position: relative;
}

.sub-toggle.has-notifications::before {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background-color: #dc3545;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
  50% {
    opacity: 0.6;
    transform: translateY(-50%) scale(1.1);
  }
}

.sub-toggle {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 2px 0;
  background: none;
  border: 0;
  color: #333;
  cursor: pointer;
  font: inherit;
}

.sub-toggle i {
  display: inline-block;
  width: 1.25em;
  min-width: 1.25em;
  text-align: center;
  margin-right: 0.5em;
  flex-shrink: 0;
}

.sub-toggle::after {
  font-family: "Font Awesome 7 Pro";
  font-weight: 900;
  content: "\f0da";
  margin-left: auto;
  margin-right: 4px;
  font-size: 0.85em;
  line-height: 1;
  transition: transform .2s ease;
  transform: translateY(1px);
  flex-shrink: 0;
}

.sub-toggle[aria-expanded="true"]::after {
  transform: rotate(90deg) translateY(-1px);
}

.nav-submenu {
  margin: 4px 0 8px 12px;
  padding-left: 8px;
  border-left: 2px solid rgba(0,0,0,.2);
}

.nav-submenu[hidden] { 
  display: none; 
}

/* Active link styling - blends with site theme */
.nav-menu a.active {
  background: linear-gradient(90deg, rgba(66, 149, 169, 0.15) 0%, rgba(66, 149, 169, 0.05) 100%);
  color: var(--mfa-teal);
  font-weight: 600;
  border-left: 3px solid var(--mfa-teal);
  padding-left: calc(0.5em - 3px);
}

.nav-menu a.active i {
  color: var(--mfa-teal);
}

/* Active submenu link - slightly different shade */
.nav-submenu a.active {
  background: linear-gradient(90deg, rgba(66, 149, 169, 0.2) 0%, rgba(66, 149, 169, 0.08) 100%);
  border-left-color: var(--mfa-teal);
}

/* Hover state - keep existing */
.nav-menu a:hover:not(.active) {
  background-color: rgba(66, 149, 169, 0.08);
  color: var(--nav-link-hover);
  border-left-color: var(--primary-500);
}

.nav-menu a:hover:not(.active) i {
  color: var(--nav-link-hover);
}

/* Parent button when child is active */
.sub-toggle[aria-expanded="true"] {
  color: var(--mfa-teal);
  font-weight: 600;
}

.sub-toggle[aria-expanded="true"] i {
  color: var(--mfa-teal);
}

@media (min-width: 768px) {
  .content-area {
    display: grid;
    grid-template-columns: var(--nav-w) 1fr;
  }
  .nav-menu {
    position: sticky;
    top: var(--header-height);       
    height: calc(100vh - var(--header-height));
    transform: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--nav-bg) transparent;
  }

  .nav-menu::-webkit-scrollbar {
    width: 6px;
  }

  .nav-menu::-webkit-scrollbar-thumb {
    background-color: var(--nav-bg);
    border-radius: 8px;
  }

  .nav-menu::-webkit-scrollbar-thumb:hover {
    background-color: color-mix(in srgb, var(--nav-bg) 80%, #000);
  }

  .nav-menu::-webkit-scrollbar-track {
    background: transparent;
  }
}

/* Main Content */
.main-content { 
  padding: 14px 20px; 
}

/* Links */
.text-link {
  color: var(--mfa-teal);
  text-decoration: none;
  font-size: 0.9rem;
}

.text-link:hover {
  color: var(--mfa-salmon);
}

/* Buttons */
.btn-primary {
  background-color: var(--mfa-blue);
  border: none;
  font-weight: 600;
  box-shadow: none;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:focus:active {
  background-color: var(--mfa-teal);
  box-shadow: none;
  outline: none;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 14px;
}

.btn-outline-secondary {
  border-color: var(--gray-600);
  color: var(--gray-600);
}

.btn-outline-secondary:hover {
  background-color: var(--primary-500);
  border-color: var(--primary-500);
  color: white;
}

/* Loading Overlay */
#loadingOverlay {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}

.spinner {
  border: 15px solid var(--mfa-blue);
  border-top: 15px solid var(--primary-500);
  border-radius: 50%;
  width: 90px;
  height: 90px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Page Header */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  margin-bottom: 1rem;
  border-bottom: 2px solid #e5e5e5;
}

.page-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-title i {
  font-size: 28px;
  color: var(--mfa-teal);
}

.page-title h1 {
  font-size: 24px;
  font-weight: 400;
  color: var(--mfa-blue);
  margin: 0;
}

.page-actions {
  display: flex;
  gap: 0.5rem;
}

/* Breadcrumbs */
.page-breadcrumb {
  margin-bottom: 1.5rem;
}

.breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.breadcrumb-item a {
  color: var(--mfa-teal);
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: var(--mfa-blue);
}

.breadcrumb-item.active {
  color: var(--text-muted);
}

/* Section Titles */
.section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #212529;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e9ecef;
}

.section-title i {
  color: var(--mfa-teal);
}

/* Cards */
.card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  margin-bottom: 1.5rem;
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-header {
  background: linear-gradient(135deg, var(--mfa-teal) 0%, #3a8a9a 100%);
  color: white;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 16px;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
}

.card-header i {
  opacity: 0.95;
}

.card-header.bg-success,
.card-header-success {
  background: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 100%) !important;
  color: white !important;
  border-color: var(--success) !important;
}

.card-header.bg-danger,
.card-header-danger {
  background: linear-gradient(135deg, var(--danger) 0%, var(--danger-dark) 100%) !important;
  color: white !important;
  border-color: var(--danger) !important;
}

.card-header.bg-warning {
  background: linear-gradient(135deg, var(--warning) 0%, #e0a800 100%) !important;
  color: var(--gray-900) !important;
  border-color: var(--warning) !important;
}

.card-header.bg-info {
  background: linear-gradient(135deg, var(--info, #0dcaf0) 0%, #0aa2c0 100%) !important;
  color: white !important;
  border-color: var(--info, #0dcaf0) !important;
}

.card-header.bg-secondary {
  background: linear-gradient(135deg, var(--secondary, #6c757d) 0%, #565e64 100%) !important;
  color: white !important;
  border-color: var(--secondary, #6c757d) !important;
}

.card-header-primary {
  background: linear-gradient(135deg, var(--mfa-teal) 0%, #3a8a9a 100%) !important;
  color: white !important;
  border-bottom: none !important;
}

.card-body {
  padding: 20px;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--mfa-blue);
  margin-bottom: 12px;
}

.card-text {
  color: #495057;
  line-height: 1.6;
}

/* Clickable Cards */
.card-clickable {
  cursor: pointer;
  transition: all 0.2s ease;
}

.card-clickable:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Metric Boxes */
.metric-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f8f9fa;
  border-left: 4px solid var(--mfa-teal);
  border-radius: 4px;
  margin-bottom: 10px;
}

.metric-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.metric-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--mfa-blue);
}

/* Health Metric Row (for stacked metrics in cards) */
.health-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.health-metric-row .health-metric-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--mfa-blue);
}

.health-metric-row .health-metric-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--mfa-blue);
}

/* Progress Bars */
.progress {
  height: 6px;
  background-color: #e9ecef;
  border-radius: 3px;
}

.progress-bar {
  background-color: var(--mfa-teal);
  transition: width 0.6s ease;
}

.progress-bar.bg-danger {
  background-color: #dc3545 !important;
}

.progress-bar.bg-warning {
  background-color: var(--warning) !important;
}

.progress-bar.bg-success {
  background-color: var(--success) !important;
}

/* Display Numbers (for clickable cards) */
.display-3 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

/* Count Number Colors */
.count-success {
  color: var(--success) !important;
}

.count-danger {
  color: #dc3545 !important;
}

.count-primary {
  color: var(--mfa-teal) !important;
}

/* Badges */
.badge {
  font-weight: 500;
  padding: 0.35em 0.65em;
}

/* Divider lines */
.card-body hr {
  border-top: 1px solid #e9ecef;
  margin: 0.75rem 0;
}

/* Alerts */
.alert {
  border-radius: 6px;
  border: 1px solid transparent;
  margin-bottom: 1rem;
}

.alert-info {
  background-color: #cfe2ff;
  border-color: #b6d4fe;
  color: #084298;
}

.alert-warning {
  background-color: #fff8e1;
  border-color: #ffe082;
  color: #856404;
}

.alert i {
  font-size: 16px;
}

/* Lists */
.list-unstyled li a {
  color: var(--mfa-teal);
  text-decoration: none;
  font-weight: 500;
}

.list-unstyled li a:hover {
  color: var(--mfa-blue);
  text-decoration: underline;
}

/* Tables */
.table {
  margin-bottom: 0;
}

.table-hover tbody tr:hover {
  background-color: rgba(66, 149, 169, 0.05);
}

/* Modals */
.modal {
  z-index: 1200 !important;
}

.modal-backdrop {
  z-index: 1100 !important;
}

.modal-header {
  border-bottom: 1px solid #dee2e6;
}

.modal-header.bg-success,
.modal-header.bg-danger,
.modal-header-success,
.modal-header-danger,
.modal-header-primary {
  border-bottom: none;
}

.modal-header-success {
  background: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 100%);
  color: white;
}

.modal-header-danger {
  background: linear-gradient(135deg, var(--danger) 0%, var(--danger-dark) 100%);
  color: white;
}

.modal-header-primary {
  background: linear-gradient(135deg, var(--mfa-teal) 0%, #3a8a9a 100%);
  color: white;
}

.modal-header-success .modal-title,
.modal-header-danger .modal-title,
.modal-header-primary .modal-title {
  color: white !important;
}

.modal-body {
  padding: 1.5rem;
}

.modal-body table,
.modal-body .table {
  font-size: 0.875rem;
}

.modal-body .table thead th {
  border-top: none;
  background-color: #f8f9fa;
  color: var(--mfa-blue);
  font-weight: 600;
  padding: 0.75rem 0.5rem;
}

.modal-body .table tbody td {
  padding: 0.75rem 0.5rem;
  vertical-align: middle;
}

/* HPPD Modal Styles */
.modal-xl {
  max-width: 95%;
}

/* HPPD Table Specific Styling */
.hppd-table {
  font-size: 0.8125rem;
  margin-bottom: 0;
}

.hppd-table thead {
  background: var(--mfa-teal) !important;
}

.hppd-table thead tr {
  background: var(--mfa-teal) !important;
}

.hppd-table thead th {
  background: var(--mfa-teal) !important;
  color: white !important;
  font-weight: 600 !important;
  padding: 0.75rem 0.5rem !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  vertical-align: middle !important;
}

.hppd-table tbody td {
  padding: 0.625rem 0.5rem;
  vertical-align: middle;
  border: 1px solid #dee2e6;
}

.hppd-table tbody tr:hover {
  background-color: rgba(66, 149, 169, 0.05);
}

.hppd-table tbody tr.table-active {
  background-color: rgba(66, 149, 169, 0.08);
}

.hppd-table tbody td.fw-bold {
  background-color: #f8f9fa;
}

/* Button on HPPD card header */
.card-header .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
  font-size: 0.8125rem;
  padding: 0.25rem 0.75rem;
}

.card-header .btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: white;
  color: white;
}

/* Ensure close button is visible on colored headers */
.btn-close-white {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.btn-close-white:hover {
  opacity: 1;
}

/* Utilities */
.text-muted {
  color: var(--text-muted) !important;
}

.text-warning {
  color: #ff9800 !important;
}

.health-metric-value.text-warning {
  color: #f57c00 !important;
  font-weight: 700;
}

/* Responsive Grid Gaps */
.row.g-3 {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}

/* Chart Container */
#chartDirectCare {
  width: 100%;
}

/* ============================================
   VARIANCE & JOB LISTS
   ============================================ */

/* Variance List - Compact Version */
.variance-list-compact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.variance-item-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.75rem;
  background: #f8f9fa;
  border-left: 3px solid var(--mfa-teal);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.variance-item-compact:hover {
  background: #e9ecef;
  transform: translateX(4px);
}

.variance-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.variance-role-compact {
  font-weight: 600;
  color: var(--mfa-blue);
  font-size: 0.9375rem;
  line-height: 1.2;
}

.variance-numbers {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.variance-item-compact .badge {
  min-width: 45px;
  font-weight: 600;
  flex-shrink: 0;
}

/* Smooth expansion animation */
.variance-hidden,
.job-hidden {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Toggle buttons */
#toggleVariances,
#toggleJobs {
  border-color: var(--mfa-teal);
  color: var(--mfa-teal);
  font-weight: 500;
  transition: all 0.2s ease;
}

#toggleVariances:hover,
#toggleJobs:hover {
  background-color: var(--mfa-teal);
  border-color: var(--mfa-teal);
  color: white;
}

/* Job List - Compact Version */
.job-list-compact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.job-item-compact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  background: #f8f9fa;
  border-left: 3px solid var(--mfa-teal);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.job-item-compact:hover {
  background: #e9ecef;
  transform: translateX(4px);
}

.job-icon-compact {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mfa-teal);
  color: #fff;
  border-radius: 8px;
  flex-shrink: 0;
}

.job-icon-compact i {
  font-size: 1rem;
}

.job-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.job-title-compact {
  font-weight: 600;
  color: var(--mfa-blue);
  line-height: 1.3;
  font-size: 0.9375rem;
}

.job-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 767px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .page-title h1 {
    font-size: 1.25rem;
  }
  
  .display-3 {
    font-size: 2.5rem;
  }
  
  .card-header .btn.float-end {
    float: none !important;
    display: block;
    margin-top: 0.5rem;
  }
  
  .variance-item-compact,
  .job-item-compact {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .variance-info,
  .job-info {
    align-items: center;
  }
}

/* Data Source Info Icon */
.data-source-info {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  cursor: help;
  margin-left: 8px;
  transition: color 0.2s ease;
}

.data-source-info:hover {
  color: rgba(255, 255, 255, 1);
}

/* Tooltip styling */
.tooltip-inner {
  background-color: var(--mfa-blue);
  font-size: 0.8125rem;
  text-align: left;
  max-width: 300px;
}

.tooltip-arrow::before {
  border-top-color: var(--mfa-blue) !important;
}

/* Footer Styles */
.site-footer {
  background: linear-gradient(135deg, #3b4559 0%, #2a3142 100%);
  color: #fff;
  transition: margin-left 0.3s ease;
}

/* Active Users Section */
.active-users-section {
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.active-users-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  font-weight: 500;
}

.active-users-header i {
  color: #22c55e;
  font-size: 0.6rem;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.active-users-count {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  font-size: 0.7rem;
}

.active-users-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.active-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  transition: background 0.15s ease;
}

.active-user-pill:hover {
  background: rgba(255, 255, 255, 0.12);
}

.active-user-pill .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.active-user-pill.online .status-dot {
  background: #22c55e;
  box-shadow: 0 0 4px rgba(34, 197, 94, 0.5);
}

.active-user-pill.idle .status-dot {
  background: #6b7280;
}

.active-user-pill.idle {
  opacity: 0.6;
}

.active-user-pill.hidden-user {
  display: none;
}

.active-users-list.expanded .active-user-pill.hidden-user {
  display: inline-flex;
}

.active-users-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  padding: 0.3rem 0.65rem;
  border-radius: 20px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.15s ease;
}

.active-users-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
}

/* Footer Content */
.footer-content {
  padding: 2rem 0 1rem;
}

.footer-logo {
  max-width: 140px;
  height: auto;
}

.footer-heading {
  color: #fff;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

/* Footer Links - Tighter Spacing */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none !important;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-links a:hover {
  color: #fff;
  padding-left: 5px;
}

.footer-links i {
  width: 1.25rem;
  text-align: center;
  opacity: 0.7;
  font-size: 1rem;
  flex-shrink: 0;
}

.footer-links a:hover i {
  opacity: 1;
}

/* FIX: Override Bootstrap's underline rule for footer external links */
.site-footer a[target]:not(.btn) {
  text-decoration: none !important;
  font-weight: 400; /* Override the 500 weight if desired */
}

/* Recent Updates / News Feed */
.footer-news {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Footer news links */
.footer-news-link {
  color: #fff !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.footer-news-link:hover {
  color: var(--mfa-teal) !important;
}

.news-item {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.site-footer .news-item:hover {
  background-color: transparent !important;
}

.news-date {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
}

.news-title {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.news-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8125rem;
  line-height: 1.4;
}

/* News content styling */
.news-content {
  line-height: 1.7;
}

.news-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem 0;
}

.news-content h1,
.news-content h2,
.news-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.news-content p {
  margin-bottom: 1rem;
}

.news-content ul,
.news-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.news-content blockquote {
  border-left: 4px solid var(--mfa-teal);
  padding-left: 1rem;
  margin: 1rem 0;
  color: #666;
  font-style: italic;
}

.news-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.news-content table th,
.news-content table td {
  border: 1px solid #ddd;
  padding: 0.5rem;
  text-align: left;
}

.news-content table th {
  background: #f5f5f5;
}

/* Copyright Section */
.footer-content .border-top {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.footer-content .text-muted {
  color: rgba(255, 255, 255, 0.5) !important;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .footer-content {
    padding: 1.5rem 0 1rem;
  }
  
  .col-lg-3 {
    margin-bottom: 1.5rem;
  }
  
  .col-lg-3:last-child {
    margin-bottom: 0;
  }
}

/* Note badge box */
.note-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--gray-300);
  background: var(--gray-100);
  color: var(--gray-500);
  cursor: pointer;
  transition: all 0.15s ease;
}

.note-badge:hover {
  border-color: var(--primary-500);
  color: var(--primary-500);
  background: var(--primary-50);
}

.note-badge.has-notes {
  background: var(--primary-500);
  border-color: var(--primary-500);
  color: #fff;
}

.note-badge.has-notes:hover {
  background: var(--primary-600);
  border-color: var(--primary-600);
  color: #fff;
}

.card-header .btn-outline-primary {
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.card-header .btn-outline-primary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: white;
    color: white;
}

.card-header .btn-outline-secondary {
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.card-header .btn-outline-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: white;
    color: white;
}

.card-header .btn-outline-secondary.active {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: white;
    color: white;
}

/* Fix text-muted visibility on card headers with dark backgrounds */
.card-header .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.card-header.bg-primary .text-muted,
.card-header.bg-secondary .text-muted,
.card-header.bg-dark .text-muted,
.card-header.bg-success .text-muted,
.card-header.bg-danger .text-muted,
.card-header.bg-info .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Ticket Checklist Styles */
#checklistContainer .checklist-items {
    padding-left: 0.25rem;
}

#checklistContainer .form-check.checklist-item {
    padding-left: 1.75rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 0;
}

#checklistContainer .form-check.checklist-item:last-child {
    border-bottom: none;
}

#checklistContainer .form-check-input {
    margin-left: -1.5rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

#checklistContainer .form-check-label {
    word-break: break-word;
    flex-grow: 1;
    margin-bottom: 0;
}

.card-body .btn-link {
    color: var(--mfa-teal);
    text-decoration: none;
}

.card-body .btn-link:hover {
    color: var(--mfa-blue);
}

/* HTML Email Content in Tickets */
.html-email-container {
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    overflow: hidden;
    background: #fff;
}

.html-email-frame {
    width: 100%;
    min-height: 200px;
    max-height: 800px;
    border: none;
    display: block;
}

/* ============================================
   WORKFORCECONNECT FORUM STYLES
   ============================================ */

/* Forum Header */
.forum-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e5e5e5;
}

.forum-header-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.forum-header-title i {
  font-size: 1.75rem;
  color: var(--mfa-teal);
}

.forum-header-title h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--mfa-blue);
  margin: 0;
}

.forum-header-title h1 span {
  font-weight: 400;
  color: var(--text-muted);
}

/* Forum Breadcrumb */
.forum-breadcrumb {
  margin-bottom: 1rem;
}

.forum-breadcrumb .breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
}

/* Category Card */
.forum-category {
  margin-bottom: 1.5rem;
}

.forum-category-header {
  background: linear-gradient(135deg, var(--mfa-teal) 0%, #3a8a9a 100%);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 8px 8px 0 0;
  font-weight: 600;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.forum-category-header i {
  opacity: 0.9;
}

.forum-category-header .category-link {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.forum-category-header .category-link:hover {
  text-decoration: underline;
}

.forum-category-body {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-top: none;
  border-radius: 0 0 8px 8px;
}

/* When forum-category-body is first child (no header above), add top border and rounded corners */
.forum-category-body:first-child {
  border-top: 1px solid #e0e0e0;
  border-radius: 8px;
}

/* Forum Row */
.forum-row {
  display: grid;
  grid-template-columns: auto 1fr 70px 70px 160px;
  gap: 0.75rem;
  align-items: center;
  padding: 0.5rem 0.875rem;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.15s ease;
}

.forum-row:last-child {
  border-bottom: none;
}

.forum-row:hover {
  background-color: rgba(66, 149, 169, 0.04);
}

/* Subforums List (in parent forum view) */
.forum-subforums-list {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.forum-subforums-header {
  background: linear-gradient(135deg, var(--mfa-blue) 0%, #2c4a5a 100%);
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.forum-row-compact {
  padding: 0.625rem 1rem;
}

.forum-row-compact .forum-icon {
  width: 32px;
  height: 32px;
  font-size: 0.875rem;
}

.forum-row-compact .forum-name {
  font-size: 0.9375rem;
}

.forum-row-compact .forum-description {
  font-size: 0.75rem;
}

.forum-row-compact .forum-stats-number {
  font-size: 0.9375rem;
}

.forum-row-compact .forum-stats-label {
  font-size: 0.625rem;
}

.forum-row-compact .forum-last-post-title {
  font-size: 0.8125rem;
}

.forum-row-compact .forum-last-post-meta,
.forum-row-compact .forum-last-post-none {
  font-size: 0.6875rem;
}

/* Forum Icon */
.forum-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-100);
  color: var(--mfa-teal);
  border-radius: 6px;
  font-size: 1rem;
}

.forum-icon.has-unread {
  background: var(--mfa-teal);
  color: #fff;
}

.forum-icon.subforum-icon {
  width: 32px;
  height: 32px;
  font-size: 0.875rem;
}

/* Forum Info */
.forum-info {
  min-width: 0;
}

.forum-name {
  font-weight: 600;
  color: var(--mfa-blue);
  font-size: 0.875rem;
  margin-bottom: 0.125rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.forum-name a {
  color: inherit;
  text-decoration: none;
}

.forum-name a:hover {
  color: var(--mfa-teal);
}

.forum-description {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.forum-subforums {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.forum-subforums a {
  color: var(--mfa-teal);
  text-decoration: none;
}

.forum-subforums a:hover {
  text-decoration: underline;
}

/* Forum Stats */
.forum-stats {
  text-align: center;
  font-size: 0.75rem;
}

.forum-stats-number {
  font-weight: 600;
  color: var(--mfa-blue);
  font-size: 0.875rem;
}

.forum-stats-label {
  color: var(--text-muted);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Forum Last Post */
.forum-last-post {
  font-size: 0.75rem;
  min-width: 0;
}

.forum-last-post-title {
  color: var(--mfa-blue);
  font-weight: 500;
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.125rem;
}

.forum-last-post-title a {
  color: inherit;
  text-decoration: none;
}

.forum-last-post-title a:hover {
  color: var(--mfa-teal);
}

.forum-last-post-meta {
  color: var(--text-muted);
  font-size: 0.6875rem;
}

.forum-last-post-none {
  color: #adb5bd;
  font-style: italic;
  font-size: 0.6875rem;
}

/* Topic List */
.forum-topic-list {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}

.forum-topic-header {
  display: grid;
  grid-template-columns: auto 1fr 80px 80px 180px;
  gap: 1rem;
  align-items: center;
  padding: 0.625rem 1rem;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
  border-radius: 8px 8px 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Topic Row */
.topic-row {
  display: grid;
  grid-template-columns: auto 1fr 80px 80px 180px;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.15s ease;
}

.topic-row:last-child {
  border-bottom: none;
}

.topic-row:hover {
  background-color: rgba(66, 149, 169, 0.04);
}

.topic-row.topic-pinned {
  background-color: rgba(66, 149, 169, 0.06);
  border-left: 3px solid var(--mfa-teal);
}

.topic-row.topic-locked {
  border-left: 3px solid var(--warning);
}

.topic-row.topic-closed {
  opacity: 0.6;
  border-left: 3px solid var(--gray-600);
}

/* Topic Icon */
.topic-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  color: var(--text-muted);
  border-radius: 6px;
  font-size: 0.875rem;
}

.topic-icon.topic-unread {
  background: var(--mfa-teal);
  color: #fff;
}

.topic-icon.topic-hot {
  background: #dc3545;
  color: #fff;
}

/* Topic Info */
.topic-info {
  min-width: 0;
}

.topic-title {
  font-weight: 600;
  color: var(--mfa-blue);
  font-size: 0.9375rem;
  margin-bottom: 0.125rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.topic-title a {
  color: inherit;
  text-decoration: none;
}

.topic-title a:hover {
  color: var(--mfa-teal);
}

.topic-row.topic-unread .topic-title a {
  font-weight: 700;
}

.topic-badges {
  display: flex;
  gap: 0.25rem;
}

.topic-badge {
  font-size: 0.625rem;
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
  font-weight: 600;
  text-transform: uppercase;
}

.topic-badge-pinned {
  background: var(--primary-100);
  color: var(--mfa-teal);
}

.topic-badge-announcement {
  background: #cfe2ff;
  color: #084298;
}

.topic-badge-locked {
  background: #fff3cd;
  color: #664d03;
}

.topic-badge-closed {
  background: #e9ecef;
  color: var(--text-muted);
}

.topic-starter {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.topic-starter a {
  color: var(--mfa-teal);
  text-decoration: none;
}

/* Topic Stats */
.topic-stats {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--mfa-blue);
  font-weight: 500;
}

/* Topic Last Post */
.topic-last-post {
  font-size: 0.8125rem;
  min-width: 0;
}

.topic-last-post-author {
  font-weight: 500;
  color: var(--mfa-blue);
  margin-bottom: 0.125rem;
}

.topic-last-post-date {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* Post List */
.forum-post {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.forum-post:target {
  box-shadow: 0 0 0 2px var(--mfa-teal);
}

.forum-post.first-post {
  border-color: var(--mfa-teal);
  border-width: 2px;
}

/* Post Header */
.post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 1rem;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  font-size: 0.8125rem;
}

.post-date {
  color: var(--text-muted);
}

.post-number {
  color: #adb5bd;
}

/* Post Body */
.post-body {
  display: grid;
  grid-template-columns: 160px 1fr;
}

@media (max-width: 768px) {
  .post-body {
    grid-template-columns: 1fr;
  }
}

/* Post Author Sidebar */
.post-author {
  padding: 1rem;
  background: #fafafa;
  border-right: 1px solid #f0f0f0;
  text-align: center;
}

@media (max-width: 768px) {
  .post-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    border-right: none;
    border-bottom: 1px solid #f0f0f0;
    padding: 0.75rem 1rem;
  }
}

.post-author-avatar {
  width: 64px;
  height: 64px;
  background: var(--mfa-teal);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 auto 0.5rem;
  position: relative;
  overflow: hidden;
}

.post-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Author online status (inline in stats) */
.author-status {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.625rem;
}

.author-status i {
  font-size: 0.5rem;
  margin-right: 2px;
}

.author-status-online {
  color: var(--success);
}

.author-status-away {
  color: var(--warning);
}

.author-status-offline {
  color: #adb5bd;
}

@media (max-width: 768px) {
  .post-author-avatar {
    width: 48px;
    height: 48px;
    font-size: 1.125rem;
    margin: 0;
    flex-shrink: 0;
  }
}

.post-author-name {
  font-weight: 600;
  color: var(--mfa-blue);
  font-size: 0.875rem;
  margin-bottom: 0.125rem;
}

.post-author-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.post-author-location {
  font-size: 0.6875rem;
  color: #adb5bd;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

@media (max-width: 768px) {
  .post-author-location {
    justify-content: flex-start;
  }
}

.post-author-stats {
  font-size: 0.6875rem;
  color: #adb5bd;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #e9ecef;
}

.post-author-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 0.5rem;
  justify-content: center;
}

.post-author-icons .author-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  cursor: help;
}

.post-author-userbars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 0.5rem;
  align-items: center;
}

.post-author-userbars .author-userbar {
  max-width: 100%;
  height: auto;
  max-height: 24px;
  object-fit: contain;
  cursor: help;
}

/* Post Content */
.post-content-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.post-content {
  padding: 1rem;
  flex: 1;
  font-size: 0.9375rem;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.post-content p {
  margin-bottom: 0.75rem;
}

.post-content p:last-child {
  margin-bottom: 0;
}

.post-content h1 {
  font-size: 1.75rem;
  margin: 1rem 0 0.5rem;
}

.post-content h2 {
  font-size: 1.4rem;
  margin: 1rem 0 0.5rem;
}

.post-content h3 {
  font-size: 1.15rem;
  margin: 0.75rem 0 0.5rem;
}

.post-content h4 {
  font-size: 1rem;
  margin: 0.75rem 0 0.5rem;
}

.post-content h5,
.post-content h6 {
  font-size: 0.9375rem;
  margin: 0.5rem 0;
}

.post-content ul,
.post-content ol {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
}

.post-content li {
  margin-bottom: 0.25rem;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.post-content blockquote {
  margin: 0.75rem 0;
  padding: 0.75rem 1rem;
  background: #f8f9fa;
  border-left: 3px solid var(--mfa-teal);
  border-radius: 0 4px 4px 0;
}

.post-content blockquote p:last-child {
  margin-bottom: 0;
}

/* Quote Box */
.post-quote {
  margin: 0.75rem 0;
  padding: 0.75rem 1rem;
  background: #f8f9fa;
  border-left: 3px solid var(--mfa-teal);
  border-radius: 0 4px 4px 0;
  font-size: 0.875rem;
}

.post-quote-header {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.post-quote-content {
  color: #495057;
}

/* Post Edit Info */
.post-edited {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 0.5rem 1rem;
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
}

/* Post Footer */
.post-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
}

.post-action-btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.post-action-btn:hover {
  color: var(--mfa-teal);
  border-color: var(--mfa-teal);
  background: rgba(66, 149, 169, 0.05);
}

/* Reply Form */
.forum-reply-form {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1rem;
}

.forum-reply-form h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--mfa-blue);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e9ecef;
}

/* Topic Stats Bar */
.topic-stats-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 1rem;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
}

.topic-stat-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--text-muted);
}

.topic-stat-item i {
  color: var(--mfa-teal);
}

.topic-stat-item strong {
  color: var(--mfa-blue);
}

/* Pagination */
.forum-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}

.forum-pagination .pagination {
  margin: 0;
}

.forum-page-info {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Mark Read Button */
.btn-mark-read {
  font-size: 0.8125rem;
  padding: 0.375rem 0.75rem;
}

/* Topic Viewers */
.topic-viewers {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

.topic-viewers h5 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--mfa-blue);
  margin-bottom: 0.75rem;
}

.topic-viewers-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topic-viewer {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  background: #f8f9fa;
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Empty State */
.forum-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.forum-empty > i {
  font-size: 3rem;
  color: #dee2e6;
  margin-bottom: 1rem;
}

.forum-empty h4,
.forum-empty h5 {
  color: var(--mfa-blue);
  margin-bottom: 0.5rem;
}

.forum-empty-compact {
  padding: 2rem 1rem;
}

.forum-empty-compact > i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.forum-empty-compact h5 {
  font-size: 1rem;
  font-weight: 600;
}

.forum-empty-compact p {
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

/* Unread Indicator */
.unread-indicator {
  width: 8px;
  height: 8px;
  background: var(--mfa-teal);
  border-radius: 50%;
  display: inline-block;
}

/* Forum Admin Styles */

/* Fix delete button in btn-group */
.btn-group form.d-inline {
  display: flex;
}

.btn-group form.d-inline .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* Permission Selector */
.perm-selector {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  background: #fff;
}

.perm-selector-roles {
  max-height: 200px;
}

.perm-region {
  border-bottom: 1px solid #f0f0f0;
}

.perm-region:last-child {
  border-bottom: none;
}

.perm-region-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #f8f9fa;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--mfa-blue);
}

.perm-region-header:hover {
  background: #e9ecef;
}

.perm-region-header i {
  font-size: 0.625rem;
  transition: transform 0.2s;
}

.perm-region.collapsed .perm-region-header i {
  transform: rotate(-90deg);
}

.perm-region-count {
  color: var(--text-muted);
  font-weight: normal;
  font-size: 0.75rem;
}

.perm-region-items {
  padding: 0.25rem 0;
}

.perm-region.collapsed .perm-region-items {
  display: none;
}

.perm-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem 0.25rem 1.5rem;
  cursor: pointer;
  font-size: 0.8125rem;
}

.perm-item:hover {
  background: rgba(66, 149, 169, 0.05);
}

.perm-item input[type="checkbox"] {
  margin: 0;
}

.perm-item small {
  margin-left: auto;
}

.perm-selector-roles .perm-item {
  padding-left: 0.75rem;
}

.forum-admin-section {
  margin-bottom: 2rem;
}

.forum-admin-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--mfa-blue);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e9ecef;
}

.forum-permission-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.forum-permission-info {
  flex: 1;
}

.forum-permission-checks {
  display: flex;
  gap: 1rem;
}

.forum-permission-checks label {
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Permission Rules Table */
.forum-permission-rules-table {
  table-layout: fixed;
  width: 100%;
}

.forum-permission-rules-table th:first-child,
.forum-permission-rules-table td:first-child {
  width: 50%;
}

.forum-permission-rules-table td:first-child .badge {
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  text-align: left;
  line-height: 1.4;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .forum-row {
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
  }

  .forum-stats,
  .forum-last-post {
    display: none;
  }

  .topic-row,
  .forum-topic-header {
    grid-template-columns: auto 1fr 70px;
  }

  .forum-topic-header > *:nth-child(4),
  .forum-topic-header > *:nth-child(5),
  .topic-row > *:nth-child(4),
  .topic-row > *:nth-child(5) {
    display: none;
  }
}

@media (max-width: 576px) {
  .forum-row {
    padding: 0.75rem;
  }

  .forum-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .forum-name {
    font-size: 0.875rem;
  }

  .topic-row,
  .forum-topic-header {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .topic-icon,
  .forum-topic-header > *:nth-child(1),
  .forum-topic-header > *:nth-child(3) {
    display: none;
  }

  .topic-stats {
    text-align: left;
    font-size: 0.75rem;
  }
}

/* ========================================
   Bonus Hours Tables (Legacy Display)
   ======================================== */

.hours-legacy-display .hoursSummary {
  background-color: var(--bs-light);
  padding: 0.75rem;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
}

.hours-legacy-display .hoursSummary p {
  margin-bottom: 0;
}

.hours-legacy-display .hoursTable {
  width: 100%;
  font-size: 0.875rem;
  border-collapse: collapse;
}

.hours-legacy-display .hoursTable th,
.hours-legacy-display .hoursTable td {
  padding: 0.5rem;
  border: 1px solid var(--bs-border-color);
  text-align: center;
}

.hours-legacy-display .hoursTable th {
  background-color: var(--bs-light);
  font-weight: 600;
}

.hours-legacy-display .hoursTable tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.02);
}

/* ============================================
   COMPANY DASHBOARD STYLES
   ============================================ */

/* Dashboard Summary Cards */
.summary-card {
  border: none !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafa 100%) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  overflow: hidden;
  position: relative;
}

.summary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--mfa-teal) 0%, #5bbfd0 100%);
}

.summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.06) !important;
}

.summary-card .card-body {
  padding: 1.25rem 1rem !important;
}

.summary-card .text-muted.small.text-uppercase {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted) !important;
  margin-bottom: 0.5rem;
}

.summary-card .h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem !important;
}

.summary-card .small.text-muted {
  font-size: 0.75rem;
}

/* Dashboard Nav Tabs */
#dashboardTabs .nav-link {
  color: var(--bs-body-color);
}

#dashboardTabs .nav-link.active {
  font-weight: 600;
}

/* Sortable Table Headers */
.sortable {
  cursor: pointer;
  user-select: none;
}

.sortable:hover {
  background-color: rgba(66, 149, 169, 0.1);
}

.sortable::after {
  content: ' ⇅';
  opacity: 0.3;
  font-size: 0.8em;
}

.sortable.asc::after {
  content: ' ↑';
  opacity: 1;
}

.sortable.desc::after {
  content: ' ↓';
  opacity: 1;
}

/* Multi-select Dropdown Styling */
.multiselect-dropdown .dropdown-toggle {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.multiselect-dropdown .dropdown-toggle::after {
  margin-left: auto;
  flex-shrink: 0;
}

.multiselect-dropdown .dropdown-item {
  font-size: 0.875rem;
}

.multiselect-dropdown .dropdown-item:hover {
  background-color: rgba(66, 149, 169, 0.1);
}

.multiselect-dropdown .form-check-input:checked {
  background-color: #4295A9;
  border-color: #4295A9;
}

/* Full-width dropdown toggle alignment fix */
.dropdown-toggle.w-100 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
}
.dropdown-toggle.w-100::after {
  margin-left: auto;
  flex-shrink: 0;
}

/* Disabled Filter State */
.filter-disabled {
  opacity: 0.5;
  pointer-events: none;
}
.filter-disabled .dropdown-toggle {
  cursor: not-allowed;
  background-color: #e9ecef !important;
}

/* Extra Small Button */
.btn-xs {
  padding: 0.15rem 0.4rem;
  font-size: 0.75rem;
}

/* Facility Multi-select Hidden States */
.facility-option.d-none,
.facility-group.d-none {
  display: none !important;
}



/* ================================================
   HOME PAGE STYLES
   ================================================ */

/* Welcome Section */
.home-welcome {
  padding: 1rem 0;
}

.home-welcome h4 {
  color: var(--mfa-blue);
  font-weight: 600;
}

/* Home Sections */
.home-section {
  background: #fff;
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
}

.home-section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e9ecef;
}

.home-section-header i {
  color: var(--bs-primary);
  font-size: 1.1rem;
}

.home-section-header h5 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--mfa-blue);
  flex-grow: 1;
}

.home-section-header .btn-link {
  font-size: 0.8rem;
  text-decoration: none;
}

/* Home Cards (Right Sidebar) */
.home-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
  overflow: hidden;
}

.home-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.home-card-header i {
  font-size: 1rem;
}

.home-card-header h6 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  flex-grow: 1;
}

.home-card-header .btn-link {
  font-size: 0.75rem;
  text-decoration: none;
}

.home-card-body {
  padding: 1rem;
}

/* Quick Links Cards */
.quick-link-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  text-decoration: none;
  transition: all 0.2s ease;
}

.quick-link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.quick-link-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.quick-link-content h6 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--mfa-blue);
}

.quick-link-content small {
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.3;
  display: block;
}

/* Quick Link Color Variants */
.quick-link-primary .quick-link-icon {
  background: rgba(var(--bs-primary-rgb), 0.1);
  color: var(--bs-primary);
}
.quick-link-primary:hover { border-color: var(--bs-primary); }

.quick-link-success .quick-link-icon {
  background: rgba(29, 201, 183, 0.1);
  color: var(--success);
}
.quick-link-success:hover { border-color: var(--success); }

.quick-link-warning .quick-link-icon {
  background: rgba(255, 193, 7, 0.15);
  color: var(--warning-dark);
}
.quick-link-warning:hover { border-color: var(--warning); }

.quick-link-info .quick-link-icon {
  background: rgba(13, 202, 240, 0.1);
  color: #0aa2c0;
}
.quick-link-info:hover { border-color: #0dcaf0; }

.quick-link-secondary .quick-link-icon {
  background: rgba(108, 117, 125, 0.1);
  color: var(--text-muted);
}
.quick-link-secondary:hover { border-color: var(--text-muted); }

/* Horizontal News Cards (image left, content right) */
.news-card-horizontal {
  display: flex;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  text-decoration: none;
  transition: all 0.2s ease;
  height: 100%;
  overflow: hidden;
}

.news-card-horizontal:hover {
  border-color: var(--bs-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  transform: translateY(-2px);
}

.news-card-img {
  width: 140px;
  min-height: 120px;
  flex-shrink: 0;
  background: #f1f3f4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card-placeholder {
  color: #ccc;
  font-size: 2rem;
}

.news-card-body {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.news-card-body h6 {
  margin: 0 0 0.35rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--mfa-blue);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

.news-card-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 0.15rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--primary-100, #e3f2fd);
  color: var(--bs-primary);
  border-radius: 3px;
  margin-bottom: 0.4rem;
}

.news-card-body p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
  line-height: 1.4;
}

.news-card-meta {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: #999;
}

.news-card-meta span {
  display: flex;
  align-items: center;
}

/* Help Topics List */
.help-topics-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.help-topic-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.help-topic-item:hover {
  background: var(--primary-50);
  text-decoration: none;
}

.help-topic-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 6px;
  color: var(--bs-primary);
  flex-shrink: 0;
}

.help-topic-content {
  flex-grow: 1;
  min-width: 0;
}

.help-topic-content h6 {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mfa-blue);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.help-topic-content p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.help-topic-content small {
  font-size: 0.7rem;
}

.help-topic-arrow {
  color: #adb5bd;
  font-size: 0.75rem;
}

.help-topic-item:hover .help-topic-arrow {
  color: var(--bs-primary);
}

/* Interview List */
.interview-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.interview-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.interview-item:last-child {
  border-bottom: none;
}

.interview-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
  flex-shrink: 0;
}

.interview-date .interview-day {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--mfa-blue);
}

.interview-date .interview-time {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.interview-info {
  flex-grow: 1;
  min-width: 0;
}

.interview-info strong {
  display: block;
  font-size: 0.85rem;
  color: var(--mfa-blue);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Ticket Stats */
.ticket-stats {
  display: flex;
  gap: 0.5rem;
}

.ticket-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 0.5rem;
  background: #f8f9fa;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.ticket-stat:hover {
  background: var(--primary-50);
  text-decoration: none;
}

.ticket-stat-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bs-primary);
  line-height: 1;
}

.ticket-stat-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 0.25rem;
}

/* Recent Tickets */
.recent-tickets {
  border-top: 1px solid #e9ecef;
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}

.recent-ticket-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
}

.recent-ticket-item:last-child {
  border-bottom: none;
}

.recent-ticket-item:hover {
  text-decoration: none;
}

.recent-ticket-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex-grow: 1;
}

.recent-ticket-id {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--bs-primary);
}

.recent-ticket-subject {
  font-size: 0.8rem;
  color: var(--mfa-blue);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-ticket-item .badge {
  font-size: 0.65rem;
  font-weight: 500;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

/* Empty States */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.empty-state i {
  font-size: 2.5rem;
  color: #dee2e6;
  margin-bottom: 0.75rem;
}

.empty-state p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.empty-state-sm {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  text-align: center;
}

.empty-state-sm i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .quick-link-card {
    padding: 0.75rem;
  }
  
  .quick-link-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
  
  .quick-link-content h6 {
    font-size: 0.8rem;
  }
  
  .news-card {
    padding: 0.75rem;
  }
  
  .interview-date {
    min-width: 60px;
  }
}

@media (max-width: 575.98px) {
  .home-section,
  .home-card {
    border-radius: 6px;
  }
  
  .ticket-stats {
    flex-wrap: wrap;
  }
  
  .ticket-stat {
    min-width: calc(50% - 0.25rem);
  }
}

/* Welcome Banner Enhanced */
.home-welcome-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.home-welcome-text {
  flex-grow: 1;
}

.home-welcome-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.welcome-divider {
  margin: 0 0.5rem;
  opacity: 0.4;
}

.facility-badge {
  font-weight: 500;
  color: var(--bs-primary);
}

/* Additional Quick Link Color Variants */
.quick-link-purple .quick-link-icon {
  background: rgba(111, 66, 193, 0.1);
  color: #6f42c1;
}
.quick-link-purple:hover { border-color: #6f42c1; }

.quick-link-danger .quick-link-icon {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}
.quick-link-danger:hover { border-color: #dc3545; }

.quick-link-teal .quick-link-icon {
  background: rgba(66, 149, 169, 0.1);
  color: var(--bs-primary);
}
.quick-link-teal:hover { border-color: var(--bs-primary); }

@media (max-width: 575.98px) {
  .home-welcome-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .home-welcome-actions {
    width: 100%;
  }
  
  .home-welcome-actions .btn {
    flex: 1;
  }
}

/* Compact Quick Links (vertical list) */
.quick-links-compact {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.quick-link-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s ease;
  color: var(--mfa-blue);
}

a[target].quick-link-row,
a.quick-link-row,
a.quick-link-row:hover {
  text-decoration: none !important;
}

.quick-link-row i {
  font-size: 1rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.quick-link-row span {
  font-size: 0.85rem;
  font-weight: 500;
}

/* Quick Link Row Color Variants */
.quick-link-row.quick-link-primary { background: rgba(var(--bs-primary-rgb), 0.08); }
.quick-link-row.quick-link-primary i { color: var(--bs-primary); }
.quick-link-row.quick-link-primary:hover { background: rgba(var(--bs-primary-rgb), 0.15); }

.quick-link-row.quick-link-success { background: rgba(29, 201, 183, 0.08); }
.quick-link-row.quick-link-success i { color: var(--success); }
.quick-link-row.quick-link-success:hover { background: rgba(29, 201, 183, 0.15); }

.quick-link-row.quick-link-info { background: rgba(13, 202, 240, 0.08); }
.quick-link-row.quick-link-info i { color: #0aa2c0; }
.quick-link-row.quick-link-info:hover { background: rgba(13, 202, 240, 0.15); }

.quick-link-row.quick-link-warning { background: rgba(255, 193, 7, 0.12); }
.quick-link-row.quick-link-warning i { color: #cc9a00; }
.quick-link-row.quick-link-warning:hover { background: rgba(255, 193, 7, 0.2); }

.quick-link-row.quick-link-purple { background: rgba(111, 66, 193, 0.08); }
.quick-link-row.quick-link-purple i { color: #6f42c1; }
.quick-link-row.quick-link-purple:hover { background: rgba(111, 66, 193, 0.15); }

.quick-link-row.quick-link-danger { background: rgba(220, 53, 69, 0.08); }
.quick-link-row.quick-link-danger i { color: #dc3545; }
.quick-link-row.quick-link-danger:hover { background: rgba(220, 53, 69, 0.15); }

.quick-link-row.quick-link-secondary { background: rgba(108, 117, 125, 0.08); }
.quick-link-row.quick-link-secondary i { color: var(--text-muted); }
.quick-link-row.quick-link-secondary:hover { background: rgba(108, 117, 125, 0.15); }

.quick-link-row.quick-link-teal { background: rgba(66, 149, 169, 0.08); }
.quick-link-row.quick-link-teal i { color: var(--bs-primary); }
.quick-link-row.quick-link-teal:hover { background: rgba(66, 149, 169, 0.15); }

/* Help Cards (grid layout) */
.help-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s ease;
  height: 100%;
}

.help-card:hover {
  background: var(--primary-50);
  text-decoration: none;
}

.help-card-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 6px;
  color: var(--bs-primary);
  flex-shrink: 0;
  font-size: 0.9rem;
}

.help-card-content {
  flex-grow: 1;
  min-width: 0;
}

.help-card-content h6 {
  margin: 0 0 0.15rem 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--mfa-blue);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

.help-card-content small {
  font-size: 0.7rem;
}

/* Help Center Category Cards (larger cards for category listing) */
.help-center-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
  gap: 1.25rem;
  justify-content: center;
}

.help-center-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.help-center-card:hover {
  border-color: var(--bs-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  transform: translateY(-2px);
}

.help-center-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-50, #e8f4f8);
  border-radius: 10px;
  color: var(--bs-primary);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.help-center-card-title {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--mfa-blue);
  line-height: 1.3;
}

.help-center-card:hover .help-center-card-title {
  color: var(--bs-primary);
}

.help-center-card-description {
  margin: 0 0 1rem 0;
  font-size: 0.85rem;
  color: #6c757d;
  line-height: 1.5;
  flex-grow: 1;
}

.help-center-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #adb5bd;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f3f5;
}

.help-center-card-meta i {
  font-size: 0.7rem;
}

/* Article list within help center cards */
.help-center-card-articles {
  margin: 0.75rem 0;
  padding: 0;
  list-style: none;
  flex-grow: 1;
}

.help-center-card-articles li {
  padding: 0.35rem 0;
  font-size: 0.8rem;
  color: #495057;
  border-bottom: 1px solid #f8f9fa;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.help-center-card-articles li:last-child {
  border-bottom: none;
}

.help-center-card-articles li i {
  color: #adb5bd;
  font-size: 0.65rem;
  flex-shrink: 0;
}

.help-center-card-articles li span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.help-center-card-more {
  font-size: 0.75rem;
  color: var(--bs-primary);
  margin-top: 0.25rem;
}

/* Help Center Header styling */
.help-center-header {
  text-align: center;
  padding: 2rem 1rem 1.5rem;
  margin-bottom: 1rem;
}

.help-center-header h1 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--mfa-blue);
  margin-bottom: 0.5rem;
}

.help-center-header p {
  font-size: 1rem;
  color: #6c757d;
  margin: 0 0 1.5rem 0;
}

/* Help Center Search */
.help-center-search {
  max-width: 500px;
  margin: 0 auto;
}

.help-center-search .input-group {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

.help-center-search .form-control {
  border: 1px solid #e9ecef;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
}

.help-center-search .form-control:focus {
  border-color: var(--bs-primary);
  box-shadow: none;
}

.help-center-search .btn {
  padding: 0.75rem 1.25rem;
}


/* ========================================
   NOTIFICATION SYSTEM
   ======================================== */

/* Bell icon container */
.notification-bell-container {
  position: relative;
}

.notification-bell-trigger {
  position: relative;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--danger);
  color: white;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 5px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  line-height: 1.2;
}

/* Make bell wiggle when there are notifications */
.notification-bell-container:has(.notification-badge) .fa-bell {
  animation: bellWiggle 2s ease-in-out infinite;
}

@keyframes bellWiggle {
  0%, 100% { transform: rotate(0); }
  10% { transform: rotate(15deg); }
  20% { transform: rotate(-15deg); }
  30% { transform: rotate(10deg); }
  40% { transform: rotate(-10deg); }
  50%, 100% { transform: rotate(0); }
}

/* Notification dropdown */
.notification-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  width: 360px;
  max-width: 90vw;
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  z-index: 1050;
  overflow: hidden;
}

.notification-dropdown.show {
  display: block;
}

.notification-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}

.notification-dropdown-header strong {
  font-size: 0.9rem;
  color: var(--gray-800);
}

.notification-dropdown-header .mark-all-read {
  font-size: 0.75rem;
  color: var(--primary-600);
  text-decoration: none;
}

.notification-dropdown-header .mark-all-read:hover {
  text-decoration: underline;
}

.notification-dropdown-body {
  max-height: 350px;
  overflow-y: auto;
}

.notification-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--gray-500);
}

.notification-empty i {
  font-size: 2.5rem;
  margin-bottom: 10px;
  display: block;
}

.notification-empty p {
  margin: 0;
  font-size: 0.85rem;
}

/* Individual notification item */
.notification-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--gray-100);
  transition: background-color 0.15s ease;
}

.notification-item:hover {
  background-color: var(--gray-50);
}

.notification-item.unread {
  background-color: var(--primary-50);
}

.notification-item.unread:hover {
  background-color: var(--primary-100);
}

.notification-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.85rem;
}

.notification-dropdown .notification-icon i {
  margin: 0; /* Override .sh-navigation ul li i margin */
}

.notification-icon.bg-primary { background: var(--primary-500); }
.notification-icon.bg-success { background: var(--success); }
.notification-icon.bg-warning { background: var(--warning); color: var(--gray-800); }
.notification-icon.bg-danger { background: var(--danger); }
.notification-icon.bg-secondary { background: var(--gray-500); }

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notification-message {
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-bottom: 4px;
  line-height: 1.3;
}

.notification-time {
  font-size: 0.7rem;
  color: var(--gray-500);
}

.notification-dropdown-footer {
  padding: 10px 16px;
  text-align: center;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
}

.notification-dropdown-footer a {
  font-size: 0.8rem;
  color: var(--primary-600);
  text-decoration: none;
  font-weight: 500;
}

.notification-dropdown-footer a:hover {
  text-decoration: underline;
}

/* Responsive - make dropdown full width on mobile */
@media (max-width: 480px) {
  .notification-dropdown {
    position: fixed;
    top: 60px;
    left: 10px;
    right: 10px;
    width: auto;
  }
}

/* ========================================
   HELP CENTER ARTICLE STYLES
   For TinyMCE-generated guide/help content
   ======================================== */

/* Article Header - main title area */
.post-content .hc-header {
  border-bottom: 3px solid var(--mfa-teal);
  margin-bottom: 1.5rem;
}

.post-content .hc-header h1,
.post-content .hc-header h2 {
  color: var(--mfa-blue);
  margin: 0 0 0.5rem 0;
  font-weight: 600;
}

.post-content .hc-header p {
  color: var(--gray-600);
  margin: 0;
  font-size: 1rem;
}

/* Intro/Summary Box - highlighted intro section */
.post-content .hc-intro {
  background: var(--gray-50);
  border-left: 4px solid var(--mfa-teal);
  border-radius: 0 6px 6px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.post-content .hc-intro p {
  margin: 0;
  color: var(--gray-700);
  line-height: 1.7;
}

.post-content .hc-intro p + p {
  margin-top: 0.75rem;
}

/* Section Headers within articles */
.post-content .hc-section-title {
  color: var(--mfa-blue);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gray-200);
}

/* Side-by-Side Card Container */
.post-content .hc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

/* Individual Info Card */
.post-content .hc-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.post-content .hc-card-header {
  padding: 0.875rem 1.25rem;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  background: var(--mfa-blue);
}

/* Card header color variants */
.post-content .hc-card-header.hc-teal {
  background: var(--mfa-teal);
}

.post-content .hc-card-header.hc-salmon {
  background: var(--mfa-salmon);
  color: var(--gray-800);
}

.post-content .hc-card-header.hc-light {
  background: var(--gray-100);
  color: var(--mfa-blue);
}

.post-content .hc-card-body {
  padding: 1.25rem;
}

.post-content .hc-card-body p {
  margin: 0 0 0.75rem 0;
  color: var(--gray-700);
}

.post-content .hc-card-body p:last-child {
  margin-bottom: 0;
}

.post-content .hc-card-body ul,
.post-content .hc-card-body ol {
  margin: 0;
  padding-left: 1.25rem;
}

.post-content .hc-card-body li {
  margin-bottom: 0.5rem;
  color: var(--gray-700);
}

.post-content .hc-card-body li:last-child {
  margin-bottom: 0;
}

/* Comparison Table */
.post-content .hc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.post-content .hc-table th {
  background: var(--mfa-blue);
  color: #fff;
  font-weight: 600;
  padding: 0.875rem 1rem;
  text-align: left;
  border: none;
}

.post-content .hc-table th.hc-teal {
  background: var(--mfa-teal);
}

.post-content .hc-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: top;
}

.post-content .hc-table tr:nth-child(even) td {
  background: var(--gray-50);
}

.post-content .hc-table tr:last-child td {
  border-bottom: none;
}

.post-content .hc-table tr:hover td {
  background: var(--primary-50);
}

/* First column styling for feature names */
.post-content .hc-table td:first-child {
  font-weight: 500;
  color: var(--mfa-blue);
}

/* Status Tags/Badges */
.post-content .hc-tag {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
}

.post-content .hc-tag-yes {
  background: var(--success-light);
  color: var(--success-dark);
}

.post-content .hc-tag-no {
  background: var(--danger-light);
  color: var(--danger-dark);
}

.post-content .hc-tag-neutral {
  background: var(--gray-200);
  color: var(--gray-700);
}

.post-content .hc-tag-info {
  background: var(--info-light);
  color: var(--info-dark);
}

.post-content .hc-tag-warning {
  background: var(--warning-light);
  color: var(--warning-dark);
}

/* Highlight/Callout Box */
.post-content .hc-callout {
  padding: 1rem 1.25rem;
  border-radius: 6px;
  margin: 1.5rem 0;
}

.post-content .hc-callout p {
  margin: 0;
}

.post-content .hc-callout-info {
  background: var(--info-light);
  border-left: 4px solid var(--mfa-teal);
}

.post-content .hc-callout-warning {
  background: var(--warning-light);
  border-left: 4px solid var(--warning);
}

.post-content .hc-callout-success {
  background: var(--success-light);
  border-left: 4px solid var(--success);
}

.post-content .hc-callout-danger {
  background: var(--danger-light);
  border-left: 4px solid var(--danger);
}

/* Key Point List - for important takeaways */
.post-content .hc-key-points {
  background: var(--gray-50);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.post-content .hc-key-points-title {
  font-weight: 600;
  color: var(--mfa-blue);
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.post-content .hc-key-points ul {
  margin: 0;
  padding-left: 1.25rem;
}

.post-content .hc-key-points li {
  margin-bottom: 0.5rem;
  color: var(--gray-700);
}

.post-content .hc-key-points li:last-child {
  margin-bottom: 0;
}

/* Responsive adjustments for Help Center */
@media (max-width: 768px) {
  .post-content .hc-cards {
    grid-template-columns: 1fr;
  }

  .post-content .hc-table {
    font-size: 0.875rem;
  }

  .post-content .hc-table th,
  .post-content .hc-table td {
    padding: 0.625rem 0.75rem;
  }
}

/* ========================================
   CMS DATA TABLES
   Scrollable tables with sticky columns
   ======================================== */

/* Card wrapper clips overflowing content */
.cms-card {
  overflow: hidden;
}

/* Scrollable table container - prevent content from expanding parent */
.cms-table-container {
  display: block;
  width: 0;
  min-width: 100%;
  min-height: 200px;
  max-height: 400px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  resize: vertical;
}

.cms-table {
  border-collapse: separate;
  border-spacing: 0;
}

.cms-table th,
.cms-table td {
  white-space: nowrap;
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid var(--gray-300);
  border-right: 1px solid var(--gray-300);
}

.cms-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--gray-100);
}

/* Sticky columns (Division, Region, Facility) */
.cms-table .sticky-col {
  position: sticky;
  background: #fff;
  z-index: 1;
}

.cms-table thead .sticky-col {
  z-index: 3;
  background: var(--gray-100);
}

.cms-table .sticky-col-1 { left: 0; min-width: 100px; }
.cms-table .sticky-col-2 { left: 100px; min-width: 100px; }
.cms-table .sticky-col-3 { left: 200px; min-width: 150px; border-right: 2px solid var(--gray-500); }

.cms-table thead .sticky-col-3,
.cms-table tbody .sticky-col-3 { border-right: 2px solid var(--gray-500); }

/* Alternate row colors for sticky columns */
.cms-table tbody tr:nth-child(odd) .sticky-col { background: #fff; }
.cms-table tbody tr:nth-child(even) .sticky-col { background: var(--gray-100); }
.cms-table tbody tr:hover .sticky-col { background: var(--gray-200); }

/* ========================================
   COST CENTER MANAGEMENT
   ======================================== */
.cc-table th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--gray-600); }
.cc-table td { vertical-align: middle; }
.cc-row-different { background-color: var(--warning-light) !important; }
.cc-row-different:hover { background-color: #ffeeba !important; }
.cc-current-name { font-weight: 500; }
.cc-mass-update { border-left: 4px solid var(--primary-500) !important; }
