/* Financial Industry Standard Styling */

/* Professional Color Palette for Financial Applications */
:root {
  --bs-primary: #6a5db6;
  --bs-secondary: #64748b;
  --bs-success: #059669;
  --bs-info: #0891b2;
  --bs-warning: #d97706;
  --bs-danger: #dc2626;
  --bs-light: #f8fafc;
  --bs-dark: #1e293b;

  /* Financial Industry Colors */
  --financial-primary: #7a6fbe;
  --financial-secondary: #475569;
  --financial-success: #047857;
  --financial-warning: #b45309;
  --financial-danger: #b91c1c;
  --financial-info: #0c4a6e;
  --financial-light: #f1f5f9;
  --financial-dark: #0f172a;
  --financial-accent: #3b82f6;
  --financial-border: #e2e8f0;
  --financial-shadow: rgba(15, 23, 42, 0.08);
  --financial-gradient: linear-gradient(135deg, #7a6fbe 0%, #8177c2 100%);

  --manual-font-body: 1rem;
  --manual-font-lead: 1.25rem;
  --manual-font-page-title: 2.5rem;
  --manual-font-h2: 1.8rem;
  --manual-font-h3: 1.4rem;
  --manual-font-h4: 1.2rem;
  --manual-font-card-title: 1.1rem;
  --manual-font-small: 0.95rem;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 120px;
}

.section-nav {
  position: sticky;
  /* top: 2rem; */
  align-self: start;
}

@media (max-width: 1199.98px) {
  .section-nav {
    display: none;
  }
}

.section-nav ul,
.section-nav ol {
  list-style: none;
  padding: 0;
  margin: 0;
  text-decoration: none;
}

.section-nav-list {
  margin: 0px;
  padding: 0px;
}

.section-nav a {
  color: var(--financial-secondary);
  text-decoration: none;
  display: block;
  /* padding: 0.25rem 0; */
  transition: color 0.2s ease;
}

.section-nav ul > li {
  border-left: #d2d2d2 2px solid;
  margin: 0px !important;
  padding: 2px !important;
  padding-left: 10px !important;
  transition: all 0.5s ease-in;
}
.section-nav ol > li {
  border-left: none;
}

.section-nav li:hover > a {
  transform: scale(1.02);
  transition: all 0.2s ease;
}

.section-nav ol {
  margin: 0px !important;
}

.section-nav ul > li.active {
  border-left: #0f172a 2px solid;
}

.section-nav li.active > a {
  color: #333;
  font-weight: 700;
}

.section-nav li > a {
  margin-left: 10px;
}

.section-nav {
  position: sticky;
  box-shadow: rgba(0, 0, 0, 0.1);
}

.report-section-nav .card-body {
  padding: 1.35rem 1.5rem;
}

.report-section-nav ol {
  position: relative;
  display: grid;
  gap: 0.5rem;
  padding-left: 1rem;
}

.report-section-nav ol::before {
  content: "";
  position: absolute;
  top: 0.25rem;
  bottom: 0.25rem;
  left: 0;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, #8b7cf6, rgba(139, 124, 246, 0.18));
}

.report-section-nav ol > li {
  border-left: none;
  padding-left: 0.75rem;
}

.report-section-nav li > a {
  margin-left: 0;
  line-height: 1.35;
}

.report-section-nav li.active > a {
  color: #0f172a;
}

.report-timeline-node-button,
.report-timeline-node-marker {
  cursor: default !important;
  pointer-events: none;
}

.report-timeline-item.is-active .report-timeline-node-button,
.report-timeline-node-marker {
  background: #fff !important;
  border-color: #dcdff4 !important;
  color: #5b4fd7 !important;
  transform: none !important;
  box-shadow: none !important;
}

.report-timeline-item.is-active .report-timeline-media {
  max-height: 170px !important;
  transform: none !important;
  border-color: #e8eaf3 !important;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.04) !important;
}

.report-timeline-item.is-active .report-timeline-media img {
  min-height: 132px !important;
}

.report-timeline-media {
  position: relative;
}

.report-timeline-media.is-lightbox-ready,
.report-visual-frame.is-lightbox-ready {
  cursor: zoom-in;
}

.report-timeline-media.is-lightbox-ready::before,
.report-timeline-media.is-lightbox-ready::after,
.report-visual-frame.is-lightbox-ready::before,
.report-visual-frame.is-lightbox-ready::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 1px solid rgba(91, 79, 215, 0.24);
  background: radial-gradient(
    circle,
    rgba(91, 79, 215, 0.1) 30%,
    transparent 70%
  );
  box-shadow:
    0 0 12px rgba(91, 79, 215, 0.18),
    0 0 24px rgba(56, 189, 248, 0.12);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.45);
  pointer-events: none;
  z-index: 2;
}

.report-timeline-media.is-lightbox-ready:hover::before,
.report-timeline-media.is-lightbox-ready:focus-visible::before,
.report-visual-frame.is-lightbox-ready:hover::before,
.report-visual-frame.is-lightbox-ready:focus-visible::before {
  animation: reportImagePulse 1.8s ease-out infinite;
}

.report-timeline-media.is-lightbox-ready:hover::after,
.report-timeline-media.is-lightbox-ready:focus-visible::after,
.report-visual-frame.is-lightbox-ready:hover::after,
.report-visual-frame.is-lightbox-ready:focus-visible::after {
  animation: reportImagePulse 1.8s ease-out 0.45s infinite;
}

.report-timeline-media.is-lightbox-ready:hover,
.report-timeline-media.is-lightbox-ready:focus-visible,
.report-visual-frame.is-lightbox-ready:hover,
.report-visual-frame.is-lightbox-ready:focus-visible {
  transform: translateY(-3px) !important;
  border-color: #c9cdf8 !important;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.12) !important;
  outline: none;
}

@keyframes reportImagePulse {
  0% {
    opacity: 0.75;
    transform: translate(-50%, -50%) scale(0.35);
  }
  70% {
    opacity: 0.16;
    transform: translate(-50%, -50%) scale(1.08);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.32);
  }
}

.stickyTest {
  position: sticky;
  top: 85px;
  z-index: 999;
  user-select: none;
}

.sticky-top {
  z-index: 1;
}

.stickyTest .card-body {
  padding-left: 0.5rem !important;
}

.video-thumbnail {
  padding: 1rem 0 1rem 0;
  border-top: 2px solid var(--financial-border);
  border-bottom: 2px solid var(--financial-border);
  margin-bottom: 1rem;
}

.thumbnail {
  box-shadow:
    rgba(50, 50, 93, 0.25) 0px 2px 5px -1px,
    rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
  border-radius: 8px;
  border: solid 1px var(--financial-border);
}

.image-shadow {
  box-shadow:
    rgba(50, 50, 93, 0.25) 0px 2px 5px -1px,
    rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
  border-radius: 8px;
}

.on-this-page-eye:hover {
  color: var(--financial-accent);
  cursor: pointer;
  transition: all 0.3s ease;
}

.image-container {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 800px;
}

.image-container img {
  width: 100%;
  height: auto;
  display: block;
}

.point {
  width: 12px;
  height: 12px;
  background: rgb(122 111 190);
  border-radius: 50%;
  animation: blink 1s ease-in-out infinite none;
  cursor: pointer;
  position: absolute;
}
@keyframes blink {
  0% {
    box-shadow: 0 0 0 0 rgb(122 111 190);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(187, 222, 251, 0.3);
  }
}

.point::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #1e293b; /* dark slate gray */
  color: #f8fafc;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  white-space: normal;
  max-width: 240px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  pointer-events: none;
  z-index: 10;
}

.point::before {
  content: "";
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #1e293b transparent transparent transparent;

  opacity: 0;
  transition: opacity 0.25s ease;
}

.point:hover::after,
.point:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.uniqueNumber {
  top: 35%;
  left: 20%;
}
.state {
  top: 21%;
  left: 25%;
}
.addAsVendor {
  top: 48%;
  left: 57%;
}

.physical-customer {
  top: 48%;
  left: 32%;
}
.add-as-a-student-point {
  top: 48%;
  left: 82%;
}

.business-id-point {
  top: 35%;
  left: 45%;
}

.fiscal-number-point {
  top: 35%;
  left: 70%;
}

.tva-number-point {
  top: 35%;
  left: 94%;
}

.client-number-point {
  top: 49%;
  left: 24%;
}

.official-name-point {
  top: 59%;
  right: 5%;
}

.name-of-client-in-planet-point {
  top: 67%;
  right: 5%;
}

.img-box-shadow-manual {
  box-shadow:
    rgba(0, 0, 0, 0.05) 0px 0px 0px 1px,
    rgb(209, 213, 219) 0px 0px 0px 1px inset;
  border-radius: 8px;
  margin-bottom: 8px;
}

.list-group-numbered > .optional > section::before {
  content: "Opsionale";
  background: #e9ecef;
  color: #495057;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
}

@media (max-width: 768px) {
  .flex-col-small-media {
    flex-direction: column !important;
  }
  .content-section ul,
  .content-section ol {
    margin: 0 !important;
  }

  .content-sheet-effect {
    margin-bottom: 1rem;
    padding: 1rem !important;
  }
}

.text-muted {
  font-size: 16px;
  color: var(--financial-secondary) !important;
}

#langSelector option {
  font-family: Arial, sans-serif;
  cursor: pointer;
}

/* Main dropdown container */
.custom-dropdown {
  position: relative; /* Crucial for positioning the menu */
  display: inline-block;
  font-family: Arial, sans-serif;
}

/* The main trigger button you see */
.dropdown-trigger {
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.3);
  font-weight: 600;
  /* border: 1px solid #ccc; */
  border-radius: 6px;
  padding: 10px 20px 10px 16px; /* Extra padding on right for arrow */
  font-size: 14px;
  cursor: pointer;
  min-width: 90px;
  text-align: left;
  position: relative; /* For the arrow */
}

/* The little dropdown arrow */
.dropdown-trigger::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  margin-top: -2px;
  border-width: 4px;
  border-style: solid;
  border-color: #ffffff transparent transparent transparent;
  transition: transform 0.2s ease;
}

/* Flip the arrow when open */
.custom-dropdown.open .dropdown-trigger::after {
  transform: rotate(180deg);
  margin-top: -7px;
}

/* The menu container (hidden by default) */
.dropdown-menu {
  display: none; /* Hide by default */
  position: absolute;
  top: 100%; /* Position right below the trigger */
  left: 0;
  width: 100%;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-top: 4px;
  z-index: 100;
  overflow: hidden; /* Ensures options obey border-radius */
  --bs-dropdown-min-width: 90px;
}

/* Show the menu when the .open class is added */
.custom-dropdown.open .dropdown-menu {
  display: block;
}

/* The individual option buttons */
.dropdown-option {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background-color: white;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  transition: all 0.2s ease;
}

/*
 * !! HERE IS YOUR FIX !!
 * Your desired hover styles now work perfectly
 * because these are <button> elements, not <option> tags.
*/
.dropdown-option:hover {
  background-color: #e2e8f0;
  color: black;
  /* border-radius and padding are already set */
}

body {
  font-family:
    "Inter",
    "Segoe UI",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  line-height: 1.6;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  color: var(--financial-dark);
  font-size: var(--manual-font-body);
  font-weight: 400;
  letter-spacing: 0;
}

@media screen and (min-width: 769px) and (max-width: 1720px) {
  :root {
    --manual-font-body: 0.95rem;
    --manual-font-lead: 1.08rem;
    --manual-font-page-title: 2.15rem;
    --manual-font-h2: 1.55rem;
    --manual-font-h3: 1.25rem;
    --manual-font-h4: 1.1rem;
    --manual-font-card-title: 1rem;
    --manual-font-small: 0.9rem;
  }
}

@media (max-width: 768px) {
  :root {
    --manual-font-body: 0.95rem;
    --manual-font-lead: 1rem;
    --manual-font-page-title: 1.85rem;
    --manual-font-h2: 1.35rem;
    --manual-font-h3: 1.15rem;
    --manual-font-h4: 1.05rem;
    --manual-font-card-title: 1rem;
    --manual-font-small: 0.9rem;
  }
}

@media (max-width: 480px) {
  :root {
    --manual-font-body: 0.925rem;
    --manual-font-lead: 0.98rem;
    --manual-font-page-title: 1.65rem;
    --manual-font-h2: 1.25rem;
    --manual-font-h3: 1.1rem;
    --manual-font-h4: 1rem;
    --manual-font-card-title: 0.95rem;
    --manual-font-small: 0.875rem;
  }
}

/* Professional Financial Sidebar */
/* Professional Financial Sidebar */
.sidebar {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  color: #f8fafc;
  height: 100vh;
  overflow-y: auto;
  box-shadow: 4px 0 20px rgba(15, 23, 42, 0.15);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  width: 20%;
  min-width: 280px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.1) 0%,
    rgba(30, 64, 175, 0.1) 100%
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.35rem 1.45rem;
  flex-shrink: 0;
  position: relative;
  box-sizing: border-box;
}

.sidebar-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1 1 auto;
}

.content-sheet-effect {
  box-shadow:
    rgba(50, 50, 93, 0.25) 0px 2px 5px -1px,
    rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
  border-radius: 12px;
  padding: 2rem;
}

.sidebar-header h1 {
  font-size: var(--manual-font-h3);
  font-weight: 700;
  letter-spacing: 0;
  color: #f8fafc;
  margin: 0;
  line-height: 1.24;
  min-width: 0;
}

.sidebar-header i {
  color: #3b82f6;
  font-size: 1.6rem;
  /* margin-right: 0.75rem; */
}

.sidebar-header img {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  object-fit: contain;
  object-position: center;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transition: all 0.3s ease;
}

.sidebar-header img:hover {
  opacity: 1;
  transform: scale(1.05);
}

.sidebar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  min-width: 0;
  flex: 0 0 auto;
  box-sizing: border-box;
}

.sidebar .custom-dropdown {
  display: block;
}

.sidebar .dropdown-trigger {
  display: inline-flex;
  align-items: center;
  height: 36px;
  max-width: 128px;
  min-width: 96px;
  padding: 0 1.7rem 0 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.38);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 20px rgba(15, 23, 42, 0.16);
  color: #f8fafc;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar .dropdown-trigger:hover,
.sidebar .custom-dropdown.open .dropdown-trigger {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(147, 197, 253, 0.52);
}

.sidebar .dropdown-trigger::after {
  right: 0.65rem;
}

.sidebar .dropdown-menu {
  left: auto;
  right: 0;
  width: max-content;
  min-width: 140px;
  padding: 0.35rem;
  border: 1px solid rgba(203, 213, 225, 0.85);
  border-radius: 10px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.22);
  z-index: 1100;
}

.sidebar .dropdown-option {
  border-radius: 7px;
  color: #334155;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.sidebar-close {
  display: none !important;
}

.manual-theme-toggle {
  border: 1px solid rgba(148, 163, 184, 0.38);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 36px;
  height: 36px;
  min-height: 36px;
  flex: 0 0 36px;
  padding: 0;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.manual-theme-toggle:hover {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(147, 197, 253, 0.52);
}

.manual-theme-toggle i {
  font-size: 0.9rem;
}

.manual-theme-toggle span {
  display: none;
}

.logo-img {
  max-width: 28px;
}

@media (min-width: 1200px) and (max-width: 1599.98px) {
  .sidebar-header-main {
    flex-wrap: wrap;
  }

  .sidebar-brand {
    flex-basis: 100%;
  }

  .sidebar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .sidebar .dropdown-trigger {
    max-width: none;
  }
}

/* Responsive logo sizing */
@media (max-width: 768px) {
  .logo-img {
    height: 28px !important;
    max-width: 28px;
  }

  .input-group {
    flex-direction: row;
  }
}

@media (max-width: 480px) {
  .sidebar-header-main {
    flex-wrap: wrap;
  }

  .sidebar-brand {
    flex-basis: 100%;
    padding-right: 2.85rem;
  }

  .sidebar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .sidebar .dropdown-trigger {
    max-width: none;
  }

  .logo-img {
    height: 28px !important;
    max-width: 28px;
  }

  .sidebar #searchInput {
    padding: 0.75rem 2.85rem 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .input-group-text {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
}

/* Professional Search Box */
.sidebar .p-3,
.sidebar-search {
  padding: 1rem 1.45rem 1.15rem !important;
  flex-shrink: 0;
}

.input-group {
  display: flex;
  align-items: center;
  width: 100%;
}

.sidebar-search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.sidebar #searchInput {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  border-radius: 12px;
  padding: 0.875rem 3rem 0.875rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  flex: 1;
  min-width: 0;
  width: 100%;
}

.sidebar #searchInput::placeholder {
  color: rgba(248, 250, 252, 0.6);
  font-weight: 400;
}

.sidebar #searchInput:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  color: #f8fafc;
  outline: none;
}

.sidebar-search-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  z-index: 2;
  color: rgba(226, 232, 240, 0.68);
  font-size: 1rem;
  pointer-events: none;
  transform: translateY(-50%);
  transition: color 0.2s ease;
}

.sidebar #searchInput:focus + .sidebar-search-icon {
  color: #93c5fd;
}

.input-group-text {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-left: none;
  color: rgba(248, 250, 252, 0.6);
  padding: 0.875rem 1.25rem;
  font-size: 1rem;
  border-radius: 0 12px 12px 0;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.input-group-text:hover {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(248, 250, 252, 0.8);
}

/* Professional Navigation Menu */
.nav-menu {
  flex: 1;
  overflow-y: auto;
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.nav-menu::-webkit-scrollbar {
  display: none; /* Hides the scrollbar entirely */
  width: 0; /* Ensures no space is taken by the scrollbar */
  height: 0; /* For horizontal scrollbars */
}

.nav-menu .nav-link {
  color: rgba(248, 250, 252, 0.8);
  border-radius: 10px;
  transition: all 0.2s ease;
  margin-bottom: 0.5rem;
  padding: 1rem 1.25rem;
  font-weight: 500;
  font-size: var(--manual-font-small);
  letter-spacing: 0;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-right: 0px;
}

.nav-menu .nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.1) 0%,
    rgba(30, 64, 175, 0.1) 100%
  );
  transition: width 0.3s ease;
  z-index: 0;
}

.nav-menu .nav-link:hover {
  background: rgba(59, 130, 246, 0.08);
  color: #f8fafc;
  border-color: rgba(59, 130, 246, 0.2);
}

.nav-menu .nav-link:hover::before {
  width: 100%;
}

.nav-menu .nav-link.active {
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.3);
  font-weight: 600;
}

.nav-menu .nav-link.active::before {
  display: none;
}

/* Smooth page transitions */
.page-main {
  transition: opacity 0.25s ease;
}

.page-main.page-fade {
  opacity: 0;
}

.nav-menu .nav-link i {
  width: 24px;
  text-align: center;
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.nav-menu .nav-link span {
  position: relative;
  z-index: 1;
  flex: 1;
}

.fa-chevron-down {
  font-size: 0.8rem !important;
}

/* Professional Content Area */
.content {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  min-height: 100vh;
  position: relative;
  /* overflow-x: hidden; */
  /* Ensure content sits to the right of the fixed sidebar. */
  margin-left: max(280px, 20%);
}
.content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #e2e8f0 50%,
    transparent 100%
  );
}

/* Professional Cards */
.card {
  border: 1px solid var(--financial-border);
  border-radius: 16px;
  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.1),
    0 1px 2px rgba(15, 23, 42, 0.06);
  transition: all 0.2s ease;
  background: #ffffff;
  overflow: hidden;
}

.card:hover {
  box-shadow:
    0 10px 25px rgba(15, 23, 42, 0.1),
    0 4px 6px rgba(15, 23, 42, 0.05);
  transform: translateY(-2px);
}

.card-header {
  /* background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--financial-border); */
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  letter-spacing: 0;
}

.card-body {
  padding: 1.5rem;
  text-align: justify;
}

.card-text {
  text-align: justify;
}

/* Professional Link Cards */
.link-card {
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid var(--financial-border);
  position: relative;
  overflow: hidden;
}

.link-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--financial-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.link-card:hover {
  border-color: #3b82f6;
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
}

.link-card:hover::before {
  transform: scaleX(1);
}

.link-card .card-body {
  position: relative;
  z-index: 1;
}

/* Professional Section Transitions */
.content-section {
  display: none;
  animation: fadeInUp 0.4s ease-out;
}

.content-section.active {
  display: block;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Professional Typography */
.display-4 {
  font-weight: 700;
  font-size: var(--manual-font-page-title);
  letter-spacing: 0;
  color: var(--financial-dark);
  line-height: 1.2;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-weight: 600;
  letter-spacing: 0;
  color: var(--financial-dark);
}

.content-section .h1 {
  font-size: var(--manual-font-page-title);
}

.content-section .h2 {
  font-size: var(--manual-font-h2);
}

.content-section .h3 {
  font-size: var(--manual-font-h3);
}

.content-section .h4 {
  font-size: var(--manual-font-h4);
}

.content-section .h5,
.content-section .card-title {
  font-size: var(--manual-font-card-title);
}

.lead {
  font-weight: 400;
  color: var(--financial-secondary);
  line-height: 1.6;
  text-align: justify;
  font-size: var(--manual-font-lead);
}

.display-4 > div {
  font-size: var(--manual-font-lead);
  font-weight: 300;
  margin-bottom: 1.5rem !important;
  line-height: 1.4;
}

/* Professional Buttons */
.btn {
  border-radius: 10px;
  font-weight: 500;
  letter-spacing: 0;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--financial-gradient);
  border-color: #3b82f6;
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-outline-secondary {
  border-color: var(--financial-border);
  color: var(--financial-secondary);
  background: #ffffff;
}

.btn-outline-secondary:hover {
  background: var(--financial-light);
  border-color: var(--financial-secondary);
  color: var(--financial-dark);
}

/* Professional Alerts */
.alert {
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 500;
  letter-spacing: 0;
}

.alert-info {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-color: #93c5fd;
  color: #1e40af;
}

.alert-success {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border-color: #6ee7b7;
  color: #047857;
}

.alert-warning {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-color: #fbbf24;
  color: #b45309;
}

.alert-danger {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border-color: #f87171;
  color: #b91c1c;
}

.alert-error {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%) !important;
  border-color: #f87171 !important;
  color: #991b1b !important;
}

/* Top Notice (Manual) */
.manual-notice-container {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  width: min(720px, calc(100% - 2rem));
  pointer-events: none;
}

.manual-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--financial-border);
  border-left-width: 4px;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
  color: var(--financial-dark);
  font-weight: 500;
  opacity: 0;
  transform: translateY(-10px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  pointer-events: auto;
}

.manual-notice.show {
  opacity: 1;
  transform: translateY(0);
}

.manual-notice-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.12);
  color: #1e40af;
  flex-shrink: 0;
}

.manual-notice-content {
  flex: 1;
  line-height: 1.45;
  color: var(--financial-dark) !important;
}

.manual-notice-close {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.manual-notice-close:hover {
  color: #1f2937;
}

.manual-notice.info {
  border-left-color: #3b82f6;
}

.manual-notice.warning {
  border-left-color: #f59e0b;
}

.manual-notice.error {
  border-left-color: #ef4444;
}

/* Professional List Groups */
.list-group-item {
  border: 1px solid var(--financial-border);
  border-radius: 8px !important;
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
  background: #ffffff;
}

/* Sidebar submenu styles */
.sidebar .has-submenu .submenu {
  transition:
    max-height 0.25s ease,
    opacity 0.2s ease;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  border-color: rgba(59, 130, 246, 0.2);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  border: solid 0.5px rgba(91, 151, 246, 0.2);
  border-top: none;
  border-radius: 12px;
}

.sidebar.show {
  transform: translateX(0);
}

.sidebar .has-submenu .submenu.show {
  max-height: 2000px;
  opacity: 1;
  background: rgba(59, 130, 246, 0.08);
  color: #f8fafc;
  transform: translateX(4px);
  border-color: rgba(59, 130, 246, 0.2);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  border: solid 0.5px rgba(91, 151, 246, 0.2);
  border-top: none;
  border-radius: 0px 0px 12px 12px;
}

.sidebar .submenu-group > .nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
  padding-left: 0.75rem;
}

.sidebar .submenu-group .submenu {
  background: rgba(59, 130, 246, 0.06);
  border-color: rgba(59, 130, 246, 0.16);
  transform: translateX(2px);
}

.sidebar .submenu-group .submenu.show {
  background: rgba(59, 130, 246, 0.1);
}

/* Submenu leaf items (no group) – subtle bullet + alignment */
.sidebar .submenu > .nav-item:not(.submenu-group) > .nav-link {
  position: relative;
  padding-left: 1.25rem;
}

.sidebar .submenu > .nav-item:not(.submenu-group) > .nav-link::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: rgba(226, 232, 240, 0.6);
}

.submenu-toggle {
  z-index: -1;
}

.submenu-toggle i {
  transition: transform 0.2s ease;
  z-index: -1;
  display: none;
}

.has-submenu:hover .submenu-toggle i {
  display: inline-block;
}

.submenu-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.list-group-item:hover {
  background: var(--financial-light);
  border-color: #3b82f6;
  transform: translateX(4px);
}

.list-group-item:last-child {
  margin-bottom: 0;
}

/* Professional Breadcrumb */
.breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
  font-weight: 500;
  color: var(--financial-secondary);
}

.breadcrumb-item.active {
  color: var(--financial-dark);
  font-weight: 600;
}

/* Professional Content Header */
.content-header {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--financial-border);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  opacity: 0.95;
}

/* Professional Icons */
.fa-3x {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.text-primary {
  color: var(--financial-primary) !important;
}

.text-success {
  color: var(--financial-success) !important;
}

.text-warning {
  color: var(--financial-warning) !important;
}

.text-danger {
  color: var(--financial-danger) !important;
}

.text-info {
  color: var(--financial-info) !important;
}

/* Professional Scrollbar */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  transition: background 0.2s ease;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Professional Focus States */
.form-control:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  outline: none;
}

/* Professional Loading States */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(59, 130, 246, 0.2);
  border-radius: 50%;
  border-top-color: #3b82f6;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Professional Responsive Design */
@media (max-width: 1199.98px) {
  .sidebar {
    transform: translateX(-100%);
    width: min(360px, 88vw);
    min-width: 0;
    position: fixed;
    z-index: 1000;
    height: 100vh;
    top: 0;
    left: 0;
    transition: transform 0.3s ease-in-out;
  }

  .sidebar-header {
    padding: 1.15rem 1.2rem;
  }

  .sidebar-header-main {
    padding-right: 2.85rem;
  }

  .sidebar-close {
    display: inline-flex !important;
    position: absolute;
    top: 1.1rem;
    right: 1.15rem;
    width: 36px;
    height: 36px;
    border-color: rgba(148, 163, 184, 0.38);
    color: #f8fafc;
  }

  .sidebar-close:hover {
    border-color: rgba(147, 197, 253, 0.52);
    background: rgba(59, 130, 246, 0.18) !important;
  }

  .sidebar-search {
    padding: 1rem 1.2rem 1.1rem !important;
  }

  .sidebar.open,
  .sidebar.show {
    transform: translateX(0);
  }

  .content {
    margin-left: 0;
    z-index: 999;
  }

  #mobileMenuToggle,
  .mobile-menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  .content-body {
    padding: 1.5rem !important;
  }

  .content-body > .row {
    --bs-gutter-x: 0;
    --bs-gutter-y: 1.25rem;
  }

  .content-body > .row > .col-lg-8,
  .content-body > .row > .col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }

  .content-body > .row > .col-lg-4 .sticky-top {
    position: static;
    top: auto !important;
  }

  .content-sheet-effect {
    padding: 1.5rem;
  }

  .lead,
  .card-body,
  .content-section p {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: 100%;
  }

  .sidebar-header-main {
    gap: 0.75rem;
  }

  .sidebar-header h1 {
    font-size: 1rem;
  }

  .sidebar .dropdown-trigger {
    max-width: 116px;
    min-width: 90px;
  }

  .sidebar.open,
  .sidebar.show {
    transform: translateX(0);
  }

  .content {
    margin-left: 0;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .content-body {
    padding: 1.5rem;
  }

  .display-4 {
    font-size: var(--manual-font-page-title);
  }
}

@media (max-width: 480px) {
  .content-body {
    padding: 1rem;
  }

  .display-4 {
    font-size: var(--manual-font-page-title);
  }

  .card-body {
    padding: 1rem;
  }
}

/* Professional Search Highlighting */
.search-highlight {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  padding: 0.125rem 0.25rem;
  border-radius: 4px;
  font-weight: 600;
  color: #b45309;
}

/* Professional Status Indicators */
.status-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.status-active {
  background: var(--financial-success);
  box-shadow: 0 0 0 2px rgba(4, 120, 87, 0.2);
}

.status-inactive {
  background: var(--financial-secondary);
  box-shadow: 0 0 0 2px rgba(71, 85, 105, 0.2);
}

.status-pending {
  background: var(--financial-warning);
  box-shadow: 0 0 0 2px rgba(180, 83, 9, 0.2);
}

/* Professional Data Tables */
.table {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

.table thead th {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 2px solid var(--financial-border);
  font-weight: 600;
  color: var(--financial-dark);
  letter-spacing: 0;
}

.table tbody tr {
  transition: all 0.2s ease;
}

.table tbody tr:hover {
  background: var(--financial-light);
}

/* Professional Progress Bars */
.progress {
  height: 8px;
  border-radius: 4px;
  background: var(--financial-light);
  overflow: hidden;
}

.progress-bar {
  background: var(--financial-gradient);
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Professional Badges */
.badge {
  font-weight: 500;
  letter-spacing: 0;
  border-radius: 6px;
  padding: 0.375rem 0.75rem;
}

.badge.bg-primary {
  background: var(--financial-gradient) !important;
}

.badge.bg-success {
  background: linear-gradient(135deg, #047857 0%, #059669 100%) !important;
}

.badge.bg-warning {
  background: linear-gradient(135deg, #b45309 0%, #d97706 100%) !important;
}

.badge.bg-danger {
  background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%) !important;
}

.bg-credit-note {
  background: linear-gradient(135deg, #0c6e19 0%, #013a0a 100%) !important;
}
.bg-customer-ledger {
  background: linear-gradient(135deg, #b8ca31 0%, #e7f365 100%) !important;
}

.bg-delivery-note {
  background: linear-gradient(135deg, #a6550e 0%, #ec9563 100%) !important;
}

/* Professional Utility Classes */
.text-gradient {
  background: var(--financial-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-soft {
  box-shadow: 0 2px 15px rgba(15, 23, 42, 0.08);
}

.border-soft {
  border: 1px solid var(--financial-border);
}

.bg-gradient-primary {
  background: var(--financial-gradient);
}

.bg-gradient-success {
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
}

.bg-gradient-warning {
  background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
}

.bg-gradient-danger {
  background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
}

/* Professional Animation Classes */
.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

.slide-up {
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Professional Focus Management */
.focus-trap {
  outline: none;
}

.focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Professional Print Styles */
@media print {
  .sidebar {
    display: none;
  }

  .content {
    margin-left: 0;
  }

  .btn {
    display: none;
  }

  .card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #e2e8f0;
  }
}

/* Professional Section Styling */
.content-section h1 {
  color: var(--financial-dark);
  font-size: var(--manual-font-page-title);
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: 0;
  position: relative;
}

.content-section h1::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--financial-gradient);
  border-radius: 2px;
}

.content-section h2 {
  color: var(--financial-dark);
  font-size: var(--manual-font-h2);
  margin: 1.5rem 0 1rem;
  font-weight: 600;
  letter-spacing: 0;
}

.content-section h3 {
  color: var(--financial-dark);
  font-size: var(--manual-font-h3);
  margin: 1.25rem 0 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
}

.content-section h4 {
  color: var(--financial-dark);
  font-size: var(--manual-font-h4);
  margin: 1rem 0 0.5rem;
  font-weight: 600;
  letter-spacing: 0;
}

.content-section p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: var(--financial-secondary);
  font-weight: 400;
}

.content-section ul,
.content-section ol {
  margin: 1rem 0 1rem 1.5rem;
  color: var(--financial-secondary);
}

.content-section li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* Cards and Special Elements */
.intro-card {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  padding: 30px;
  border-radius: 15px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(52, 152, 219, 0.3);
}

.intro-card h2 {
  color: white;
  margin-bottom: 15px;
}

.quick-links {
  margin-top: 40px;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.link-card .card-text {
  text-align: center;
}

/* LAPTOP MEDIA SCREENS */

@media screen and (min-width: 769px) and (max-width: 1720px) {
  .link-card .card-body {
    padding: 0rem !important;
  }
}

/* Ensure five quick-link cards fit on one row on large screens while
   keeping Bootstrap responsive stacking on smaller sizes. */
@media (min-width: 1200px) {
  .quick-links-row > .col-lg-3 {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

.submenu .nav-link {
  padding: 0.5rem;
}

.link-card {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.link-card:hover {
  border-color: #3498db;
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(52, 152, 219, 0.2);
}

.link-card i {
  font-size: 2.5rem;
  color: #3498db;
  margin-bottom: 15px;
}

.link-card h4 {
  color: #2c3e50;
  margin-bottom: 10px;
}

.link-card p {
  color: #666;
  font-size: 0.9rem;
}

/* Principle Grid */
.principle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.principle-card {
  background: #f8f9fa;
  border-left: 4px solid #3498db;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.principle-card h3 {
  color: #2c3e50;
  margin-bottom: 10px;
}

/* Info Box */
.info-box {
  background: #e3f2fd;
  border: 1px solid #2196f3;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.info-box i {
  color: #2196f3;
  font-size: 1.2rem;
  margin-top: 2px;
}

/* Transaction Types */
.transaction-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.type-item {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.type-item h4 {
  color: #2c3e50;
  margin-bottom: 10px;
}

/* Report List */
.report-list {
  display: grid;
  gap: 15px;
  margin: 20px 0;
}

.report-item {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  border-left: 4px solid #27ae60;
}

.report-item h3 {
  color: #2c3e50;
  margin-bottom: 8px;
}

/* Troubleshooting List */
.troubleshooting-list {
  display: grid;
  gap: 15px;
  margin: 20px 0;
}

.issue-item {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  padding: 20px;
}

iframe {
  border-radius: 8px;
}

.issue-item h3 {
  color: #856404;
  margin-bottom: 8px;
}

/* Glossary List */
.glossary-list {
  display: grid;
  gap: 15px;
  margin: 20px 0;
}

.list-unstyled {
  margin: 0 !important;
}

.glossary-item {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.glossary-item h3 {
  color: #2c3e50;
  margin-bottom: 8px;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    width: 100%;
  }

  .sidebar.open,
  .sidebar.show {
    transform: translateX(0);
  }

  .content {
    margin-left: 0;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .content-body {
    padding: 20px;
  }

  .content-section h1 {
    font-size: var(--manual-font-page-title);
  }

  .link-grid {
    grid-template-columns: 1fr;
  }

  .principle-grid {
    grid-template-columns: 1fr;
  }

  .transaction-types {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .content-body {
    padding: 15px;
  }

  .content-section h1 {
    font-size: var(--manual-font-page-title);
  }

  .intro-card {
    padding: 20px;
  }

  .link-card {
    padding: 20px;
  }
}

/* Scrollbar Styling */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.fa-up-right-and-down-left-from-center {
  cursor: pointer;
}

.fa-up-right-and-down-left-from-center:hover {
  color: #3498db;
  transform: scale(1.1);
  transition: all 0.1s ease;
}

/* Image lightbox overlay */
.image-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}
.image-lightbox-overlay.show {
  opacity: 1;
  visibility: visible;
}
.image-lightbox-content {
  max-width: 95%;
  max-height: 95%;
  position: relative;
}
.image-lightbox-content img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}
.image-lightbox-close {
  position: absolute;
  top: -10px;
  right: -10px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.image-lightbox-caption {
  color: #fff;
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

.read-more:hover {
  color: #3498db;
  cursor: pointer;
  transition: all 0.3s ease;
}

.more-info ul,
.more-info ol {
  margin: 0px;
}

/* Language Picker */
.language-switcher {
  min-width: 120px;
}

.language-switcher select {
  background-image: url("data:image/svg+xml,...");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  padding-right: 2rem;
}

/* Flag icons option */
.language-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ======== breadcrumb ==========*/

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: #6b7280;
  padding: 0.5rem 0;
}

.breadcrumb-section {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.breadcrumb-link {
  color: #3b82f6;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  transition: background-color 0.2s;
  cursor: pointer;
}

.breadcrumb-link:hover {
  background-color: #f3f4f6;
  color: #1d4ed8;
}

.breadcrumb-current {
  color: #374151;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
}

.breadcrumb-separator {
  color: #9ca3af;
}

/* Dropdown styles */
.breadcrumb-dropdown {
  position: relative;
  display: inline-block;
}

.breadcrumb-dropdown .dropdown-trigger {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  min-width: 120px;
  z-index: 1000;
  display: none;
  margin-top: 0.25rem;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 0.5rem 1rem;
  color: #374151;
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.dropdown-item:hover {
  background-color: #f3f4f6;
}

/* SEARCH BAR */
.sidebar-search-item {
  padding: 0.75rem;
  border-bottom: 1px solid #1f2937;
  cursor: pointer;
}
.sidebar-search-item:hover {
  background: rgba(255, 255, 255, 0.05);
}
.sidebar-search-title {
  font-weight: bold;
}
.sidebar-search-snippet {
  opacity: 0.7;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}
.lang-tag {
  opacity: 0.6;
  font-size: 0.75rem;
  margin-left: 0.5rem;
}

.sidebar-search-heading {
  padding: 6px 0;
  font-weight: bold;
  color: #ddd;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 8px;
}

.sidebar-search-loading {
  display: grid;
  gap: 0.55rem;
  padding: 0.35rem 0 0.65rem;
}

.sidebar-search-skeleton {
  animation: sidebarSearchShimmer 1.1s ease-in-out infinite;
  background: linear-gradient(
    90deg,
    rgba(148, 163, 184, 0.15) 0%,
    rgba(226, 232, 240, 0.26) 45%,
    rgba(148, 163, 184, 0.15) 100%
  );
  background-size: 220% 100%;
  border-radius: 999px;
  height: 0.72rem;
}

.sidebar-search-skeleton.short {
  width: 62%;
}

@keyframes sidebarSearchShimmer {
  to {
    background-position: -220% 0;
  }
}

.sidebar-search-item {
  padding: 6px;
  cursor: pointer;
  border-radius: 4px;
  margin-bottom: 4px;
}

.sidebar-search-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-search-title {
  font-size: 0.9rem;
  color: #fff;
}

.sidebar-search-meta {
  color: #93a4bd;
  font-size: 0.74rem;
  font-weight: 700;
  margin-top: 0.2rem;
}

.sidebar-search-best {
  display: inline-flex;
  align-items: center;
  margin-right: 0.4rem;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  background: rgba(139, 124, 246, 0.2);
  color: #c4b5fd;
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
}

.lang-tag {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 1px 4px;
  border-radius: 3px;
  margin-left: 6px;
}

.sidebar-search-snippet {
  font-size: 0.8rem;
  color: #bbb;
}

.sidebar-search-snippet mark {
  border-radius: 3px;
  background: rgba(250, 204, 21, 0.24);
  color: #fef3c7;
  padding: 0 0.12rem;
}

.sidebar-search-all {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.7rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 8px;
  color: #bfdbfe;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.sidebar-search-all:hover {
  background: rgba(96, 165, 250, 0.12);
  color: #ffffff;
}

.manual-search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 16px;
}

.home-search {
  position: relative;
  isolation: isolate;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.home-search:focus-within {
  border-color: rgba(53, 37, 205, 0.58) !important;
  background: #ffffff !important;
  box-shadow:
    0 0 0 4px rgba(79, 70, 229, 0.12),
    0 18px 44px rgba(24, 22, 78, 0.14) !important;
}

.home-search-icon {
  transition: color 0.18s ease, transform 0.18s ease;
}

.home-search:focus-within .home-search-icon {
  color: #3525cd !important;
  transform: scale(1.04);
}

.home-search input[type="search"] {
  height: 48px;
  padding: 0 0.25rem;
}

.home-search input[type="search"]::-webkit-search-cancel-button {
  cursor: pointer;
}

.home-search .home-primary-btn {
  min-width: 96px;
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.22);
}

.home-search.is-loading .home-primary-btn {
  pointer-events: none;
  opacity: 0.78;
}

.home-search.is-loading .home-primary-btn::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: manualSearchSpin 0.7s linear infinite;
}

@keyframes manualSearchSpin {
  to {
    transform: rotate(360deg);
  }
}

.manual-search-loading {
  border: 1px solid rgba(101, 95, 145, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  padding: 18px;
}

.manual-search-skeleton {
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #eef0f6 0%, #ffffff 45%, #eef0f6 100%);
  background-size: 220% 100%;
  animation: manualSearchShimmer 1.1s ease-in-out infinite;
}

.manual-search-skeleton + .manual-search-skeleton {
  margin-top: 10px;
}

.manual-search-skeleton.short {
  width: 58%;
}

@keyframes manualSearchShimmer {
  to {
    background-position: -220% 0;
  }
}

.manual-search-card,
.manual-search-empty {
  display: block;
  border: 1px solid rgba(101, 95, 145, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: #191c1e;
  padding: 18px;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.manual-search-card:hover {
  border-color: rgba(53, 37, 205, 0.5);
  box-shadow: 0 14px 28px rgba(24, 22, 78, 0.1);
  color: #191c1e;
  transform: translateY(-2px);
}

.manual-search-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: #5f6372;
  font-size: 0.78rem;
  font-weight: 800;
}

.manual-search-card-top strong {
  border-radius: 999px;
  background: #e2dfff;
  color: #3525cd;
  padding: 0.18rem 0.5rem;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.manual-search-card h3 {
  margin: 0 0 8px;
  color: #101216;
  font-size: 1.08rem;
  font-weight: 800;
}

.manual-search-card p,
.manual-search-empty {
  margin: 0;
  color: #414657;
  line-height: 1.55;
}

.manual-search-card mark {
  border-radius: 3px;
  background: #fef3c7;
  color: #92400e;
  padding: 0 0.12rem;
}

/* Step Lightbox Styles - Row Layout */
.step-lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  display: none;
  z-index: 10000;
  overflow: hidden; /* Changed from auto to hidden */
}

.step-lightbox-overlay.show {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.step-lightbox-content {
  background: white;
  border-radius: 12px;
  /* width: 1400px; */
  max-width: 95%;
  height: 90vh; /* Fixed height */
  /* max-height: 90vh; */
  overflow: hidden; /* Prevent overall scrolling */
  position: relative;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: row;
}

.step-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.step-lightbox-close:hover {
  background: rgba(0, 0, 0, 1);
  transform: scale(1.1);
}

.step-lightbox-body {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
}

.step-lightbox-image-container {
  flex: 0 0 70%;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border-right: 1px solid #e9ecef;
  overflow: hidden; /* Ensure image doesn't overflow */
}

.step-lightbox-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.step-lightbox-text {
  flex: 0 0 30%;
  padding: 2.5rem 2rem;
  overflow-y: auto; /* Make text scrollable */
  height: 100%; /* Take full height */
  box-sizing: border-box; /* Include padding in height */
  background: white;
}

.step-lightbox-text h4 {
  color: #2c5aa0;
  margin-bottom: 1.5rem;
  border-bottom: 3px solid #e9ecef;
  padding-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: 700;
}

.step-lightbox-text h5 {
  color: #495057;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.step-lightbox-text p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #444;
}

.step-lightbox-text ul,
.step-lightbox-text ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.step-lightbox-text li {
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.step-lightbox-text b {
  color: #2c5aa0;
  font-weight: 600;
}

.step-lightbox-text blockquote {
  border-left: 4px solid #2c5aa0;
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #666;
}

/* Custom scrollbar for text area */
.step-lightbox-text::-webkit-scrollbar {
  width: 8px;
}

.step-lightbox-text::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.step-lightbox-text::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.step-lightbox-text::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Ensure proper content display */
.step-lightbox-text * {
  max-width: 100%;
}

.step-lightbox-text img {
  max-width: 100%;
  height: auto;
}

/* Responsive design */
@media (max-width: 1200px) {
  .step-lightbox-content {
    width: 95%;
  }

  .step-lightbox-image-container {
    flex: 0 0 60%;
  }

  .step-lightbox-text {
    flex: 0 0 40%;
  }
}

@media (max-width: 992px) {
  .step-lightbox-overlay {
    padding: 1rem;
  }

  .step-lightbox-content {
    flex-direction: column;
    height: 95vh;
  }

  .step-lightbox-image-container {
    flex: 0 0 40%;
    border-right: none;
    border-bottom: 1px solid #e9ecef;
    padding: 1.5rem;
  }

  .step-lightbox-text {
    flex: 0 0 60%;
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .step-lightbox-body {
    flex-direction: column;
  }
  .step-lightbox-overlay {
    padding: 0.5rem;
  }

  .step-lightbox-content {
    max-width: 100%;
    width: 100%;
    border-radius: 8px;
  }

  .step-lightbox-image-container {
    padding: 1rem;
    flex: 0 0 35%;
  }

  .step-lightbox-text {
    flex: 0 0 65%;
    padding: 1.5rem 1rem;
  }

  .step-lightbox-close {
    top: 0.5rem;
    right: 0.5rem;
    width: 40px;
    height: 40px;
  }
}

#template-dynamic-sections {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Global manual theme */
body.manual-theme-dark {
  --financial-secondary: #c6d3e6;
  --financial-dark: #f8fafc;
  --financial-light: #111827;
  --financial-border: #26364f;
  --financial-shadow: rgba(0, 0, 0, 0.32);
  --financial-gradient: linear-gradient(135deg, #8b7cf6 0%, #38bdf8 100%);
  background: #0b1220;
  color: #dbeafe;
  color-scheme: dark;
}

body.manual-theme-dark .content,
body.manual-theme-dark .page-main,
body.manual-theme-dark .content-section {
  background: #0b1220 !important;
  color: #dbeafe;
}

body.manual-theme-dark .content::before {
  background: linear-gradient(
    90deg,
    transparent 0%,
    #26364f 50%,
    transparent 100%
  );
}

body.manual-theme-dark .content-header,
body.manual-theme-dark .content-header.bg-white,
body.manual-theme-dark .bg-white {
  background: #111827 !important;
  border-color: #26364f !important;
}

body.manual-theme-dark .content-sheet-effect,
body.manual-theme-dark .card,
body.manual-theme-dark .card-test,
body.manual-theme-dark .section-nav .card,
body.manual-theme-dark .list-group-item,
body.manual-theme-dark .dropdown-menu,
body.manual-theme-dark .step-lightbox-content {
  background: #111827;
  border-color: #26364f;
  color: #dbeafe;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.26);
}

body.manual-theme-dark .card-header,
body.manual-theme-dark .card-footer,
body.manual-theme-dark .step-lightbox-header,
body.manual-theme-dark .step-lightbox-text {
  background: #172033;
  border-color: #26364f;
}

body.manual-theme-dark .display-4,
body.manual-theme-dark .h1,
body.manual-theme-dark .h2,
body.manual-theme-dark .h3,
body.manual-theme-dark .h4,
body.manual-theme-dark .h5,
body.manual-theme-dark .h6,
body.manual-theme-dark .content-section h1,
body.manual-theme-dark .content-section h2,
body.manual-theme-dark .content-section h3,
body.manual-theme-dark .content-section h4,
body.manual-theme-dark .card-title,
body.manual-theme-dark .breadcrumb-item.active,
body.manual-theme-dark .section-nav h5 {
  color: #f8fafc !important;
}

body.manual-theme-dark .lead,
body.manual-theme-dark .content-section p,
body.manual-theme-dark .content-section ul,
body.manual-theme-dark .content-section ol,
body.manual-theme-dark .content-section li,
body.manual-theme-dark .breadcrumb,
body.manual-theme-dark .breadcrumb-item,
body.manual-theme-dark .card-text,
body.manual-theme-dark .section-nav a,
body.manual-theme-dark .section-nav li > a,
body.manual-theme-dark .list-group-item,
body.manual-theme-dark .dropdown-option {
  color: #c6d3e6;
}

body.manual-theme-dark .section-nav li.active > a,
body.manual-theme-dark .section-nav ol > li.active > a {
  color: #ffffff;
}

body.manual-theme-dark .section-nav ul > li {
  border-left-color: #31425f;
}

body.manual-theme-dark .section-nav ul > li.active {
  border-left-color: #8b7cf6;
}

body.manual-theme-dark .report-section-nav ol::before {
  background: linear-gradient(180deg, #8b7cf6, rgba(139, 124, 246, 0.2));
}

body.manual-theme-dark .report-section-nav li.active > a {
  color: #f8fafc;
}

body.manual-theme-dark
  .report-timeline-item.is-active
  .report-timeline-node-button,
body.manual-theme-dark .report-timeline-node-marker {
  background: #172033 !important;
  border-color: #334155 !important;
  color: #c4b5fd !important;
}

body.manual-theme-dark .report-timeline-item.is-active .report-timeline-media {
  border-color: #26364f !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22) !important;
}

body.manual-theme-dark .form-control,
body.manual-theme-dark textarea,
body.manual-theme-dark select {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}

body.manual-theme-dark .form-control::placeholder {
  color: #94a3b8;
}

body.manual-theme-dark .btn-outline-secondary {
  background: #111827;
  border-color: #334155;
  color: #dbeafe;
}

body.manual-theme-dark .btn-outline-secondary:hover,
body.manual-theme-dark .dropdown-option:hover,
body.manual-theme-dark .list-group-item:hover {
  background: #1e293b;
  border-color: #475569;
  color: #ffffff;
}

body.manual-theme-dark .manual-notice {
  background: linear-gradient(135deg, #111827 0%, #172033 100%);
  border-color: #334155;
  color: #e2e8f0;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.38);
}

body.manual-theme-dark .manual-notice-content {
  color: #e2e8f0 !important;
}

body.manual-theme-dark .step-lightbox-text p {
  color: #dbeafe;
}

body.manual-theme-dark .manual-notice-icon {
  background: rgba(139, 124, 246, 0.16);
  color: #c4b5fd;
}

body.manual-theme-dark .manual-notice-close {
  color: #94a3b8;
}

body.manual-theme-dark .manual-notice-close:hover {
  color: #ffffff;
}

body.manual-theme-dark .manual-notice.info {
  border-left-color: #60a5fa;
}

body.manual-theme-dark .manual-notice.warning {
  border-left-color: #fbbf24;
}

body.manual-theme-dark .manual-notice.error {
  border-left-color: #f87171;
}

body.manual-theme-dark .table {
  color: #dbeafe;
}

body.manual-theme-dark .table thead th {
  background: #172033;
  border-color: #334155;
  color: #f8fafc;
}

body.manual-theme-dark .table tbody td,
body.manual-theme-dark .table tbody th {
  border-color: #26364f;
}

body.manual-theme-dark .table tbody tr:hover {
  background: #172033;
}

body.manual-theme-dark .alert-info,
body.manual-theme-dark .alert-primary {
  background: #102a56;
  border-color: #2563eb;
  color: #dbeafe;
}

body.manual-theme-dark .alert-warning {
  background: #422006;
  border-color: #d97706;
  color: #fde68a;
}

body.manual-theme-dark .alert-success {
  background: #052e24;
  border-color: #047857;
  color: #a7f3d0;
}

body.manual-theme-dark .alert-danger,
body.manual-theme-dark .alert-error {
  background: #450a0a !important;
  border-color: #b91c1c !important;
  color: #fecaca !important;
}

body.manual-theme-dark .report-page-context,
body.manual-theme-dark .report-section-body,
body.manual-theme-dark .report-section-body p,
body.manual-theme-dark .report-section-body li,
body.manual-theme-dark .report-column-detail-description,
body.manual-theme-dark .report-column-guide-group-title small,
body.manual-theme-dark .report-action-preview-btn,
body.manual-theme-dark .report-interactive-chip,
body.manual-theme-dark .report-interactive-card,
body.manual-theme-dark .report-interactive-result {
  color: #c6d3e6;
}

body.manual-theme-dark .report-page-title,
body.manual-theme-dark .report-section-title,
body.manual-theme-dark .report-timeline-title,
body.manual-theme-dark .report-column-guide-group-title > span,
body.manual-theme-dark .report-column-detail-title,
body.manual-theme-dark .report-filter-item strong {
  color: #f8fafc !important;
}

body.manual-theme-dark .report-card,
body.manual-theme-dark .report-timeline-card,
body.manual-theme-dark .report-column-guide-group-card,
body.manual-theme-dark .report-column-detail-card,
body.manual-theme-dark .report-visual-frame,
body.manual-theme-dark .report-timeline-media,
body.manual-theme-dark .report-action-preview-btn,
body.manual-theme-dark .report-interactive-chip,
body.manual-theme-dark .report-interactive-card {
  background: #111827;
  border-color: #26364f;
  color: #dbeafe;
}

body.manual-theme-dark .report-interactive-card-title {
  color: #f8fafc;
}

body.manual-theme-dark .report-interactive-demo-row,
body.manual-theme-dark .report-interactive-result {
  background: #0f172a;
  border-color: #334155;
}

body.manual-theme-dark .report-interactive-demo-label {
  background: #172033;
  border-color: #334155;
  color: #c6d3e6;
}

body.manual-theme-dark .report-interactive-demo-link {
  background: #111827;
  color: #93c5fd;
}

body.manual-theme-dark .report-interactive-result::before {
  border-color: #334155;
}

body.manual-theme-dark .report-column-preview {
  background: #0f172a;
  border-color: #334155;
}

body.manual-theme-dark .report-column-preview-cell {
  background: #172033;
  border-color: #334155;
  color: #f8fafc;
}

.report-column-preview-cell {
  text-wrap: auto !important;
}

body.manual-theme-dark .report-interactive-chip-target {
  background: #172033;
  border-color: #334155;
  color: #c6d3e6;
}

body.manual-theme-dark .report-interactive-chip-arrow {
  color: #8b7cf6;
}

.report-interactive-preview {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.report-interactive-chip {
  flex-direction: column;
  align-items: stretch;
}

.report-interactive-chip-label {
  width: 100%;
}

.report-interactive-chip-arrow {
  align-self: flex-start;
  transform: rotate(90deg);
}

body.manual-theme-dark .report-column-guide-group-toggle {
  background: #172033;
  border-color: #26364f;
}

body.manual-theme-dark .manual-search-card,
body.manual-theme-dark .manual-search-empty,
body.manual-theme-dark .manual-search-loading {
  background: #111827;
  border-color: #26364f;
  color: #dbeafe;
}

body.manual-theme-dark .manual-search-card h3 {
  color: #f8fafc;
}

body.manual-theme-dark .manual-search-card p,
body.manual-theme-dark .manual-search-empty,
body.manual-theme-dark .manual-search-card-top {
  color: #c6d3e6;
}

body.manual-theme-dark .manual-search-card-top strong {
  background: #1e293b;
  color: #c4b5fd;
}

body.manual-theme-dark .home-search:focus-within {
  background: #111827 !important;
  border-color: #7067e6 !important;
  box-shadow:
    0 0 0 4px rgba(139, 124, 246, 0.15),
    0 18px 44px rgba(0, 0, 0, 0.28) !important;
}

body.manual-theme-dark .manual-search-skeleton {
  background: linear-gradient(90deg, #172033 0%, #25324a 45%, #172033 100%);
  background-size: 220% 100%;
}

body.manual-theme-dark .report-inline-icon,
body.manual-theme-dark .report-section-icon,
body.manual-theme-dark .report-column-summary-badge,
body.manual-theme-dark .report-column-detail-group {
  background: #1e293b;
  border-color: #334155;
  color: #c4b5fd;
}

body.manual-theme-dark .report-column-summary-badge.is-active {
  background: #164e63;
  border-color: #0891b2;
  color: #ecfeff;
}

body.manual-theme-dark .report-column-guide-group-card.is-open {
  border-color: #7067e6;
  box-shadow: 0 16px 34px rgba(79, 70, 229, 0.2);
}

/* Shared compact CTA used by Start Here pages */
.start-here-page .start-hero {
  overflow: visible;
  z-index: 10;
}

.start-here-page .start-container {
  position: relative;
  z-index: 1;
}

.start-here-page .start-search {
  position: relative;
  z-index: 80;
}

.start-search-results {
  background: var(--sh-surface, #ffffff);
  border: 1px solid var(--sh-border, #c7c4d8);
  border-radius: 10px;
  box-sizing: border-box;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
  left: 0;
  margin: 0;
  max-height: min(56vh, 520px);
  max-width: none;
  overflow: auto;
  position: absolute;
  right: 0;
  text-align: left;
  top: calc(100% + 10px);
  width: 100%;
  z-index: 90;
}

.start-search-results[hidden] {
  display: none;
}

.start-search-results-head {
  align-items: center;
  background: rgba(248, 250, 252, 0.84);
  border-bottom: 1px solid var(--sh-border-soft, rgba(199, 196, 216, 0.62));
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.75rem 0.95rem;
}

.start-search-results-head span {
  color: var(--sh-text, #191c1e);
  font-size: 0.85rem;
  font-weight: 800;
}

.start-search-results-head a {
  color: var(--sh-primary-container, #4f46e5);
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}

.start-search-results-head a:hover {
  text-decoration: underline;
}

.start-search-result-list {
  display: grid;
}

.start-search-result,
.start-search-empty {
  color: var(--sh-text, #191c1e);
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem 0.95rem;
  text-decoration: none;
}

.start-search-empty span {
  color: var(--sh-text, #191c1e);
  font-size: 0.95rem;
  font-weight: 800;
}

.start-search-empty strong {
  color: var(--sh-primary-container, #4f46e5);
  font-size: 0.86rem;
  line-height: 1.35;
}

.start-search-empty small {
  color: var(--sh-muted, #464555);
  font-size: 0.8rem;
  line-height: 1.4;
}

.start-search-result + .start-search-result {
  border-top: 1px solid var(--sh-border-soft, rgba(199, 196, 216, 0.62));
}

.start-search-result:hover,
.start-search-empty:hover {
  background: rgba(79, 70, 229, 0.06);
  color: var(--sh-text, #191c1e);
}

.start-search-result-meta {
  align-items: center;
  color: var(--sh-muted, #464555);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.73rem;
  font-weight: 700;
  gap: 0.45rem;
  line-height: 1.25;
}

.start-search-result-meta strong {
  background: var(--sh-primary-soft, #e2dfff);
  border-radius: 999px;
  color: var(--sh-primary, #3525cd);
  font-size: 0.68rem;
  padding: 0.12rem 0.45rem;
}

.start-search-result-title {
  color: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.35;
}

.start-search-result-snippet,
.start-search-empty {
  color: var(--sh-muted, #464555);
  font-size: 0.82rem;
  line-height: 1.45;
}

.start-search-result-snippet mark {
  background: rgba(250, 204, 21, 0.3);
  border-radius: 4px;
  color: inherit;
  padding: 0 0.12rem;
}

.start-search-loading {
  display: grid;
  gap: 0.55rem;
  padding: 0.95rem;
}

.start-search-loading span {
  animation: searchPulse 1.2s ease-in-out infinite;
  background: rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  display: block;
  height: 0.8rem;
}

.start-search-loading span:nth-child(2) {
  width: 82%;
}

.start-search-loading span:nth-child(3) {
  width: 58%;
}

@keyframes searchPulse {
  0%,
  100% {
    opacity: 0.55;
  }

  50% {
    opacity: 1;
  }
}

body.manual-theme-dark .start-search-results {
  background: rgba(17, 24, 39, 0.96);
  border-color: #26364f;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

body.manual-theme-dark .start-search-results-head {
  background: rgba(15, 23, 42, 0.88);
  border-color: #26364f;
}

body.manual-theme-dark .start-search-results-head span,
body.manual-theme-dark .start-search-result,
body.manual-theme-dark .start-search-empty,
body.manual-theme-dark .start-search-result:hover,
body.manual-theme-dark .start-search-empty:hover {
  color: #f8fafc;
}

body.manual-theme-dark .start-search-result + .start-search-result {
  border-color: #26364f;
}

body.manual-theme-dark .start-search-result-meta,
body.manual-theme-dark .start-search-result-snippet,
body.manual-theme-dark .start-search-empty {
  color: #c6d3e6;
}

.start-next-cta {
  background: rgba(236, 238, 240, 0.72);
  border: 1px solid rgba(199, 196, 216, 0.72);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  margin-top: 2.5rem;
  padding: 1.35rem;
}

.start-next-heading {
  align-items: center;
  display: flex;
  gap: 0.65rem;
  margin-bottom: 0.95rem;
}

.start-next-heading i {
  align-items: center;
  background: #e2dfff;
  border-radius: 999px;
  color: #3525cd;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.start-next-heading h2 {
  color: #191c1e;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
}

.start-next-heading p {
  color: #565e74;
  font-size: 0.92rem;
  margin: 0.15rem 0 0;
}

.start-next-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.start-next-card {
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid rgba(199, 196, 216, 0.82);
  border-radius: 10px;
  color: #191c1e;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 108px;
  padding: 1rem;
  text-decoration: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.start-next-card:hover {
  border-color: rgba(53, 37, 205, 0.56);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  color: #191c1e;
  transform: translateY(-2px);
}

.start-next-icon {
  align-items: center;
  background: #e2dfff;
  border-radius: 8px;
  color: #3525cd;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.start-next-copy h3 {
  color: inherit;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 0.35rem;
}

.start-next-copy p {
  color: #464555;
  font-size: 0.92rem;
  line-height: 1.45;
  margin: 0;
}

.start-next-arrow {
  color: #3525cd;
  font-size: 0.95rem;
  margin-top: 0.3rem;
}

.start-next-card.is-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #3525cd 100%);
  border-color: transparent;
  color: #ffffff;
}

.start-next-card.is-primary .start-next-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.start-next-card.is-primary .start-next-copy p,
.start-next-card.is-primary .start-next-arrow {
  color: rgba(255, 255, 255, 0.88);
}

body.manual-theme-dark .start-next-cta {
  background: rgba(16, 24, 39, 0.78);
  border-color: #34435c;
}

body.manual-theme-dark .start-next-heading h2,
body.manual-theme-dark .start-next-card {
  color: #f8fafc;
}

body.manual-theme-dark .start-next-heading p,
body.manual-theme-dark .start-next-copy p {
  color: #c6d3e6;
}

body.manual-theme-dark .start-next-card {
  background: #101827;
  border-color: #34435c;
}

body.manual-theme-dark .start-next-card.is-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #3525cd 100%);
}
