/* Help Layout */
.bg-soft-ash {
  background-color: #fbfbfb !important;
}
.help-sidebar {
  padding-right: 1rem;
}
.help-sidebar a.active {
  font-weight: 600;
  color: var(--bs-primary);
}
.help-title {
  margin-bottom: 1rem;
  font-weight: 600;
}
.help-nav ul {
  /*list-style: none;*/
  padding: 0;
  margin: 0;
}
.help-nav li {
  margin-bottom: 0.5rem;
}
.help-nav a {
  text-decoration: none;
  color: inherit;
  display: block;
  padding: 0.25rem 0;
}
.help-nav a.active, .help-nav a:hover {
  color: var(--bs-primary);
  font-weight: 500;
}
/* Content */
.help-content h1 {
  margin-bottom: 1.5rem;
}
/* XSmall UI screenshots (icons, dialogs, settings panels) */
.help-img-xxsm {
  max-width: 150px;
  width: 100%;
  height: auto;
}
/* XSmall UI screenshots (icons, dialogs, settings panels) */
.help-img-xsm {
  max-width: 220px;
  width: 100%;
  height: auto;
}
/* Small UI screenshots (icons, dialogs, settings panels) */
.help-img-sm {
  max-width: 320px;
  width: 100%;
  height: auto;
}
/* Medium screenshots (forms, single windows) */
.help-img-md {
  max-width: 450px;
  width: 100%;
  height: auto;
}
/* Large screenshots (full app screens) */
.help-img-mlg {
  max-width: 700px;
  width: 100%;
  height: auto;
}
/* Large screenshots (full app screens) */
.help-img-lg {
  max-width: 600px;
  width: 100%;
  height: auto;
}
/* Large screenshots (full app screens) */
.help-img-xlg {
  max-width: 900px;
  width: 100%;
  height: auto;
}
/* Shared styling */
.help-content img {
  /*margin: 1.5rem 0;*/
}
.help-section-toggle {
  background: none;
  border: none;
  padding: 0;
  font-weight: 500;
  margin-bottom: 0.5rem;
  cursor: pointer;
  text-align: left;
  display: block; /* ðŸ‘ˆ this is the key */
}
.help-section-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.help-section-toggle i {
  /*font-size: 0.8rem;*/
  /*opacity: 0.6;*/
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.85;
}
.help-section-toggle[aria-expanded="true"] i {
  transform: rotate(90deg);
  opacity: 1;
}
.help-caret {
  --fa-primary-color: #54a8c7;
  --fa-secondary-color: #000;
  --fa-secondary-opacity: 0.8;
}
.help-nav ul {
  /*list-style: none;*/
  padding-left: 0;
  margin-bottom: 1rem;
}
.help-content [id] {
  scroll-margin-top: 80%;
}
.help-sidebar .collapse {
  margin-bottom: 0.75rem;
}
html {
  scroll-behavior: smooth;
}
.help-search {
  width: 100%;
  padding: 0.4rem 0.5rem;
  /*margin-bottom: 0.75rem;*/
  font-size: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.help-search:focus {
  outline: none;
  border-color: #666;
}
.form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
  }
/* Mobile help sidebar (match main site offcanvas) */
@media (max-width: 991.98px) {
  .help-sidebar.offcanvas {
    background-color: #1c2228;
    color: #fff;
  }
  .help-sidebar.offcanvas a {
    color: #fff;
  }
  .help-sidebar.offcanvas .help-section-toggle {
    color: #fff;
  }
  .help-sidebar.offcanvas .help-search {
    background-color: #2a3036;
    color: #fff;
    border-color: #444;
  }
  .help-sidebar.offcanvas .help-search::placeholder {
    color: #bbb;
  }
}
/* ================================
   HELP SIDEBAR — DESKTOP ONLY
   ================================ */
@media (min-width: 992px) {
  .borderdiv {
    /*border-right: 1px solid #e0e0e0 !important;*/
    padding-bottom: 10px;
  }
  /* Layout */
  .help-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
  }
  #helpSidebar .offcanvas-body {
    padding: 0 !important;
    padding-right: 0.8rem !important;
  }
  .help-sidebar-inner {
    position: sticky !important;
    top: 135px;
    scroll-behavior: auto;
    overflow-y: auto; /* Adds a vertical scrollbar if content exceeds height */
    overflow-x: hidden; /* Hides the horizontal scrollbar */
  }
  /* Sidebar container */
  .help-sidebar {
    z-index: 150;
    position: sticky !important;
    top: 120px !important;
    height: calc(100vh - 160px) !important;
    color: inherit !important;
    background: transparent;
    font-weight: 400;
    /* Neutralize offcanvas behavior */
    transform: none !important;
    visibility: visible !important;
    box-shadow: none !important;
  }
	
  .help-section-toggle {
    display: block;
    /*width: 100%;*/
    background: none;
    border: 1px solid transparent;
    box-sizing: border-box; /*  prevents growth */
    padding: 0.2rem 0.4rem; /* tighter, closer to your original */
    margin-bottom: 0.4rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    font-size: 0.80rem !important;
	line-height: 1.4;
    border-radius: 0.375rem;
    transition:
      background-color 0.15s ease, 
	  border-color 0.15s ease;
  }
  /* Hover state */
  .help-section-toggle:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.15);
    border-color: rgba(var(--bs-primary-rgb), 0.35);
  }
  /* Expanded / selected state */
  .help-section-toggle[aria-expanded="true"] {
    background-color: rgba(var(--bs-primary-rgb), 0.25);
    border-color: var(--bs-primary);
  }
  /* Keyboard accessibility */
  .help-section-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.15rem rgba(var(--bs-primary-rgb), 0.35);
  }
  /* Optional caret animation */
  .help-section-toggle i {
    transition: transform 0.2s ease;
  }
  .help-section-toggle[aria-expanded="true"] i {
    transform: rotate(90deg);
  }
  /* Restore bullets */
  .help-sidebar ul {
    list-style: disc;
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
  }
  .help-sidebar li {
    margin-bottom: 0.3rem;
    font-size: 0.70rem !important;
  }
  .help-sidebar a {
    text-decoration: none;
    color: #222222;
    /*color: inherit;*/
  }
  .help-sidebar a:hover {
    color: var(--bs-primary);
  }
  .help-sidebar a.active {
    font-weight: 400;
    color: var(--bs-primary);
  }
  /* Search field */
  .help-search {
    width: 100%;
    padding: 0.45rem 0.55rem;
    /*margin-bottom: 1rem;*/
    font-size: 0.9rem;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  .help-search:focus {
    outline: none;
    border-color: #666;
  }
}

/* Section titles (buttons) */
  /*.help-section-toggle {*/
    /*display: block;*/
    /*width: 100%;
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 0.5rem;*/
    /*color: var(--bs-info-text-emphasis);*/
    /*font-weight: 500; /*title weight*/
    /*text-align: left;
    cursor: pointer;
  }*/