a {
  color: #009b90;
}

.content-wrapper {
  margin-left: 240px;
}

.main-header {
  background-color: #fff;
  color: #1f2d3d;
  margin-left: 240px;
  border-bottom: 1px solid #dee2e6;
}

.main-header .navbar {
  margin-left: 0 !important;
  min-height: 61px;
}

.main-header .sidebar-toggle:before {
  display: none;
}

.main-header .sidebar-toggle {
  padding: 20px;
}

.main-header .sidebar-toggle:hover {
  color: #009b90;
}

.main-sidebar * {
  scrollbar-color: #525252ba #282a42 !important;
}

.navbar-nav>li>a {
  padding-top: 20px;
  padding-bottom: 20px;
}

/* Base styles for the sidebar (visible on large screens) */
.main-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  z-index: 810;
  transition: transform 0.3s ease-in-out;
  transform: translateX(0); /* Sidebar is visible on large screens */
  padding-top : 0;
  background-color: #282a42;
  width: 240px;
  box-shadow: 0 14px 28px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22)!important;
}

.sidebar {
  padding: 0;
  height: 100%;
  overflow-y: auto;
}

.sidebar-menu {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.sidebar-menu>li:first-of-type {
  margin: 0;
}

.sidebar-menu li {
  margin: 6px 0 0;
}

/* Sidebar links */
.sidebar-menu a {
  display: block;
  color: #D1E7E5;
  font-size: 15px;
  letter-spacing: .3px;
  text-decoration: none;
  padding: 10px 5px 10px 15px !important;
}

.sidebar-menu .menu-open>a {
  background-color: #f4f5fa0d;
  color: #e9fbf9de;
  border-radius: 0 50rem 50rem 0;
}

.sidebar-menu a:hover {
  background-color: #f4f5fa0d;
  color: #e9fbf9de;
  border-radius: 0 50rem 50rem 0;
}

.menu-link.active {
  font-weight: bold;
  color: white !important;
  background: linear-gradient(270deg, #02aab0, #00cdac);
  border-radius: 0 50rem 50rem 0;
  box-shadow: 0 .1875rem .375rem #2e263d2e;
  /* margin-left: 0; */
}

.treeview-menu>li>a {
  padding-left: 3.5rem !important;
}

.treeview-menu>li>a:before {
  content: "";
  height: 10px;
  width: 10px;
  border-radius: 50rem;
  position: absolute;
  left: 1.75rem;
  color: #fff !important;
  border-color: #fff !important;
  border: 1.5px solid #6d6777;
  top: 15px;
}

.brand-link {
  display: block;
  font-size: 1.25rem;
  line-height: 1.5;
  padding: .8125rem .5rem;
  transition: width .3s ease-in-out;
  white-space: nowrap;
  border-bottom: 1px solid #4b545c;
}

.brand-link .brand-image {
  line-height: .8;
  max-height: 45px;
  width: auto;
}

.brand-link span {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, .8);
  text-transform: uppercase;
}

/* Sidebar header */
.sidebar-header {
  background-color: #1a2226;
  padding: 15px;
  color: white;
  text-align: center;
  font-size: 1.2em;
}

/* Sidebar open state for small screens */
.main-sidebar.sidebar-open {
  transform: translateX(0); /* Slide sidebar into view on small screens */
}

/* Responsive media queries */

/* For tablets and smaller screens (992px and below) */
@media (max-width: 992px) {
  /* Hide the sidebar initially */
  .main-sidebar {
    transform: translateX(-100%); /* Sidebar hidden on small screens */
    position: fixed;
    z-index: 1000;
  }

  .main-sidebar.sidebar-open {
    transform: translateX(0); /* Show sidebar on toggle */
  }

  .content-wrapper {
    margin-left: 240px;
  }

  .main-sidebar.sidebar-open + .content-wrapper {
    margin-left: 0;
  }

  /* Sidebar overlay for mobile */
  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 900;
  }

  .sidebar-overlay.active {
    display: block;
  }
}

/* For mobile phones (768px and below) */
@media (max-width: 768px) {
  /* Same behavior for smaller mobile devices */
  .main-sidebar {
    width: 250px;
    transform: translateX(-100%); /* Initially hidden */
  }

  .main-sidebar.sidebar-open {
    transform: translateX(0); /* Slide in when opened */
  }

  .content-wrapper {
    margin-left: 0;
  }

  .main-sidebar.sidebar-open + .content-wrapper {
    margin-left: 0;
  }
}


/* Custom low-light scrollbar for WebKit-based browsers (e.g., Chrome, Safari) */

/* Scrollbar width */
.main-sidebar::-webkit-scrollbar {
  width: 8px; /* Narrow scrollbar */
}

/* Track (background of the scrollbar) */
.main-sidebar::-webkit-scrollbar-track {
  background: #2c2c2c; /* Dark but soft background (e.g., dark gray) */
  border-radius: 10px;
}

/* Scrollbar thumb (the draggable part) */
.main-sidebar::-webkit-scrollbar-thumb {
  background-color: #4a4a4a; /* Subtle thumb color (softer gray) */
  border-radius: 10px;
  border: 2px solid #2c2c2c; /* Space around the thumb to blend with the track */
}

/* Hover state for the scrollbar thumb */
.main-sidebar::-webkit-scrollbar-thumb:hover {
  background-color: #616161; /* Slightly lighter gray when hovered */
}

/* Optional: Horizontal scrollbar */
.main-sidebar::-webkit-scrollbar-thumb:horizontal {
  background-color: #4a4a4a;
}

/* For Firefox users */
.main-sidebar * {
  scrollbar-width: thin; /* Narrow scrollbar */
  scrollbar-color: #4a4a4a #2c2c2c; /* Thumb and track colors for Firefox */
}

/* Filter card  */
.content {
    min-height: 0;
}

.card-filter {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 0 solid rgba(0, 0, 0, .125);
    border-radius: .25rem;
    /* box-shadow: 0 0 1px rgba(0, 0, 0, .125), 0 1px 3px rgba(0, 0, 0, .2); */
    margin-bottom: 1rem;
}

.card-filter .card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, .125);
    padding: .75rem 1.25rem;
    position: relative;
    border-top-left-radius: .25rem;
    border-top-right-radius: .25rem;
}

.card-filter .card-title {
    float: left;
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0;
}

.card-filter .card-body {
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    min-height: 1px;
    padding: 1.25rem;
}

.card.collapsed-card .card-body, .card.collapsed-card .card-footer {
    display: none;
}

.card-tools {
    float: right;
    margin-right: -.625rem;
}

.btn {
    box-shadow: 0 .125rem .25rem #2e263d29;
    border-radius: 7px;
    font-weight: 600;
    padding: 8px 16px;
    font-size: 15px;
}