/* Width of the scrollbar */
::-webkit-scrollbar {
  width: 5px;
}

/* Track (background) */
::-webkit-scrollbar-track {
  background: #f0f0f0;
}

/* Handle (the draggable part) */
::-webkit-scrollbar-thumb {
  background: var(--bs-primary);
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: var(--bs-primary);
}

.back-to-top {
  position: fixed;
  bottom: -200px;
  right: 20px;
  display: none; /* Hidden by default */
  z-index: 99;
  transition: bottom 0.3s ease-in-out;
}

.topbar {
  width: calc(100% - 87px);
}

@media (max-width: 575.98px) {
  .topbar {
    width: 100%;
  }
}

#sidebar-nav-ul .sidebar-item .sidebar-link:hover {
  background-color: #284b93;
}

#sidebar-nav-ul .sidebar-item .sidebar-link {
  background-color: #0d4697;
}

/* .body-wrapper {
  padding-top: calc(30px + 132px);
} */

.text-underline-hover:hover {
  text-decoration: underline;
}

.line-top-bottom {
  position: relative;
}

.line-top-bottom::before {
  position: absolute;
  content: "";
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background-color: var(--bs-primary);
  opacity: 0.5;
  bottom: calc(100% + 5px);
}
.line-top-bottom::after {
  position: absolute;
  content: "";
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background-color: var(--bs-primary);
  opacity: 0.5;
  top: calc(100% + 5px);
}

.sidebar-nav ul .sidebar-item.selected > .sidebar-link,
.sidebar-nav ul .sidebar-item.selected > .sidebar-link.active,
.sidebar-nav ul .sidebar-item > .sidebar-link.active {
  background-color: var(--bs-white);
  color: var(--bs-dark);
}

.brand-name-text {
  display: block;
  width: 100%;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 20px;
  line-height: 1.2;
  padding: 0 2px;
}

/* Custom Switch-like Tabs */
.nav-tabs {
  background-color: #f3f6f9;
  padding: 6px;
  /* border-radius: 30px; */
  border-bottom: none;
  display: inline-flex;
  flex-wrap: wrap;
  width: auto;
  max-width: 100%;
}

[data-bs-theme="dark"] {
  .nav-tabs {
    background-color: #1a1a1a;
  }
}

.nav-tabs .nav-item {
  margin-bottom: 0;
  border: none;
}

.nav-tabs .nav-link {
  border: none;
  /* border-radius: 30px; */
  /* color: #5e6e82; */
  font-weight: 500;
  padding: 10px 24px;
  transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover:not(.active) {
  border-color: transparent;
  /* color: var(--bs-primary); */
  background-color: rgba(var(--bs-primary-rgb), 0.1);
  isolation: isolate;
}

.nav-tabs .nav-link.active {
  /* background-color: #ffffff; */
  background-color: var(--bs-primary);
  /* color: var(--bs-primary); */
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Mobile responsive */
/* @media (max-width: 768px) {
  .nav-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    justify-content: flex-start;
  }
  
  .nav-tabs .nav-item {
    flex-shrink: 0;
  }
  
  .nav-tabs::-webkit-scrollbar {
    display: none;
  }
  .nav-tabs {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
} */

.sidebar-nav ul .sidebar-item .sidebar-link {
  gap: 0 !important;
}

/* New status badge & border (blue) */
.bg-new-status {
  background-color: #4e73df !important;
  color: #fff !important;
}

.border-new-status {
  border-color: #4e73df !important;
}
