::-webkit-scrollbar {
  width: 8px;
}
/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1; 
}
 
/* Handle */
::-webkit-scrollbar-thumb {
  background: #888; 
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

:root {
  --header-height: 3rem;
  --nav-width: 68px;
  --first-color: #363636;
  --first-color-light: #b5b5b5;
  --white-color: #F7F6FB;
  --z-fixed: 100
}

*,
::before,
::after {
  box-sizing: border-box
}

.header {
  width: 100%;
  height: var(--header-height);
  position: fixed;
  top: 59px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  background-color: var(--white-color);
  z-index: var(--z-fixed);
  transition: .5s
}

.header_toggle {
  color: var(--first-color);
  font-size: 1.5rem;
  cursor: pointer
}

.header_img {
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden
}

.header_img img {
  width: 40px
}

.l-navbar {
  opacity: 0.9;
  position: fixed;
  top: 59px;
  left: -30%;
  width: var(--nav-width);
  height: 100vh;
  background-color: var(--first-color);
  padding: .5rem 1rem 0 0;
  transition: .5s;
  z-index: var(--z-fixed)
}

.nav {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden
}

.nav_logo,
.nav_link {
  display: grid;
  grid-template-columns: max-content max-content;
  align-items: center;
  column-gap: 1rem;
  padding: .05rem 0 .05rem 1.5rem
}

.nav_logo {
  margin-bottom: 2rem
}

.nav_logo-icon {
  font-size: 1.25rem;
  color: var(--white-color)
}

.nav_logo-name {
  color: var(--white-color);
  font-weight: 700
}

.nav_link {
  position: relative;
  color: var(--first-color-light);
  margin-bottom: 0.70rem;
  transition: .3s
}

.nav_link:hover {
  color: var(--white-color)
}

.nav_icon {
  font-size: 1.25rem
}

.show-nav {
  left: 0;
  width: 320px;
}

.body-pd {
  /*padding-left: calc(var(--nav-width) + 1rem)*/
  padding-left: 340px;
}

.active {
  color: var(--white-color)
}

.active::before {
  content: '';
  position: absolute;
  left: 0;
  width: 2px;
  height: 32px;
  background-color: var(--white-color)
}

.height-100 {
  height: 100vh
}

@media screen and (min-width: 768px) {
  .header {
    height: calc(var(--header-height) + 1rem);
    padding: 0 2rem 0 calc(var(--nav-width) + 2rem)
  }

  .header_img {
    width: 40px;
    height: 40px
  }

  .header_img img {
    width: 45px
  }

  .l-navbar {
    left: 0;
    padding: 1rem 1rem 0 0
  }

  .show-nav {
    width: 320px;
  }

  .body-pd {
    padding-left: 340px;
  }
}
/* ============================
   Search Filters: legibilidad + toggles grandes
   (safe, sin cambiar HTML/JS)
   ============================ */

/* 1) Mejor legibilidad general del panel */
#nav-bar,
#nav-bar *{
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#nav-bar{
  color: rgba(255,255,255,.92);
}

#nav-bar .category-tree a,
#nav-bar .category-tree span,
#nav-bar .category-tree label{
  color: rgba(255,255,255,.92) !important;
  font-size: 15px !important;       /* antes se ve “chiquito” */
  font-weight: 500 !important;      /* más presencia */
  line-height: 1.25 !important;
}

/* separa un poco cada item para que no se “amontone” */
#nav-bar .category-tree li{
  padding: 7px 6px !important;
}

/* 2) Botón + / - (expand/collapse) MÁS grande y “clickeable”
   Nota: como no tenemos el HTML exacto del icono,
   cubrimos los casos típicos: <ins>, <i>, <span>, <button> cerca del tree. */

#nav-bar .category-tree ins,
#nav-bar .category-tree i,
#nav-bar .category-tree .toggle,
#nav-bar .category-tree .expander,
#nav-bar .category-tree button{
  cursor: pointer;
}

/* Si el “+” está en un <ins> (muy común en treeviews viejos) */
#nav-bar .category-tree ins{
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 26px !important;           /* área de toque */
  height: 26px !important;
  margin-right: 8px !important;
  border-radius: 8px !important;
  background: rgba(255,255,255,.10) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  transform: none !important;
}

/* Si el símbolo es texto dentro del ins (ej: + o -) */
#nav-bar .category-tree ins::before,
#nav-bar .category-tree ins::after{
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

/* Hover para que se sienta interactivo */
#nav-bar .category-tree ins:hover{
  background: rgba(255,255,255,.16) !important;
}

/* 3) Checkbox un poco más grande (también ayuda mucho en mobile) */
#nav-bar input[type="checkbox"]{
  width: 18px !important;
  height: 18px !important;
  transform: translateY(2px);
  margin-right: 8px !important;
}
/* ==========================
   CATEGORY TREE: Visual Upgrade
   ========================== */

/* Mejor legibilidad general dentro del sidebar */
#nav-bar{
  font-size: 15px;
  line-height: 1.25;
}

#nav-bar .nav{
  padding-bottom: 18px;
}

/* Texto de categorías más visible */
#nav-bar a,
#nav-bar label,
#nav-bar .nav_link,
#nav-bar .nav_logo-name{
  color: rgba(255,255,255,.92);
}

/* Si el texto se veía “lavado”, subimos contraste */
#nav-bar .category-tree,
#nav-bar .search-left{
  color: rgba(255,255,255,.92);
}

/* Items: más espacio y mejor “click area” */
#nav-bar .category-tree li,
#nav-bar .category-tree .tree-item,
#nav-bar .category-tree .category-item{
  padding: 6px 0;
}

/* Links/labels: que ocupen bloque completo y sean fáciles de tocar */
#nav-bar .category-tree a,
#nav-bar .category-tree label{
  display: inline-block;
  padding: 6px 6px;
  border-radius: 8px;
}

/* Hover/active sutil */
#nav-bar .category-tree a:hover,
#nav-bar .category-tree label:hover{
  background: rgba(255,255,255,.08);
}

/* ====== BOTÓN + / - (expand/collapse) ======
   *Aumenta tamaño y area clickable aunque el icon sea pequeño
*/
#nav-bar .category-tree .toggle,
#nav-bar .category-tree .expander,
#nav-bar .category-tree .tree-toggle,
#nav-bar .category-tree .jqtree-toggler,
#nav-bar .category-tree .jstree-icon.jstree-ocl{
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 28px !important;
  height: 28px !important;
  margin-right: 6px !important;
  border-radius: 8px;
  background: rgba(255,255,255,.10);
  color: #fff !important;
  font-size: 16px !important;
  line-height: 1 !important;
}

/* En hover: que se note el botón */
#nav-bar .category-tree .toggle:hover,
#nav-bar .category-tree .expander:hover,
#nav-bar .category-tree .tree-toggle:hover,
#nav-bar .category-tree .jqtree-toggler:hover,
#nav-bar .category-tree .jstree-icon.jstree-ocl:hover{
  background: rgba(255,255,255,.18);
}

/* Indentación: más limpia */
#nav-bar .category-tree ul{
  padding-left: 16px !important;
  margin-left: 6px !important;
  border-left: 1px dashed rgba(255,255,255,.12);
}

/* Mobile: agrandamos un poco más todo (tap targets) */
@media (max-width: 991.98px){
  #nav-bar{
    font-size: 16px;
  }

  #nav-bar .category-tree .toggle,
  #nav-bar .category-tree .expander,
  #nav-bar .category-tree .tree-toggle,
  #nav-bar .category-tree .jqtree-toggler,
  #nav-bar .category-tree .jstree-icon.jstree-ocl{
    width: 34px !important;
    height: 34px !important;
    font-size: 18px !important;
  }

  #nav-bar .category-tree a,
  #nav-bar .category-tree label{
    padding: 8px 8px;
  }
}