.sidebar {
   display: flex;
   flex-direction: column;
   max-width: 300px;
   min-width: 300px;
   background: var(--white);
   border-radius: 8px;
   padding: 15px 10px;
   height: calc(100% - 40px);
   margin-right: 5px;
   /* border: 1px red solid; */
}

.sidebar .logo-filters {
   height: 30px;
   display: flex;
   align-items: center;
   margin-bottom: 10px;
}

.sidebar .logo-filters i {
   font-size: 1rem;
   color: var(--primary-blue);
}

.sidebar .logo-filters span {
   font-size: 0.8rem;
   margin-left: 6px;
   font-weight: 500;
}

.sidebar .nav-links {
   height: 100%;
   padding: 25px 0;
   overflow: auto;
   border-top: 1px var(--tertiary-gray) solid;
}

.sidebar .nav-links::-webkit-scrollbar {
   display: none;
}

.sidebar .nav-links li {
   position: relative;
   list-style: none;
   transition: all 0.4s ease;
}

.sidebar .nav-links li:hover {
   cursor: pointer;
}

.sidebar .nav-links li .icon-link {
   display: flex;
   align-items: center;
   justify-content: space-between;
   padding: 15px 0 0 5px;
   /* border: 1px red solid; */
}

.arrow {
   color: var(--primary-blue);
}

.sidebar .nav-links li.showMenu i.arrow {
   transform: rotate(-180deg);
}

.sidebar .nav-links li a {
   display: flex;
   align-items: center;
   text-decoration: none;
}

.sidebar .nav-links li a .link_name {
   color: var(--primary-gray);
   transition: all 0.4s ease;
   font-weight: 500;
   font-size: 15px;
}

.sidebar .nav-links li .sub-menu {
   display: none;
   align-items: center;
   align-content: center;
   justify-content: center;
   font-size: 14px;
   max-height: 250px;
   overflow-y: auto;
   margin-bottom: 15px;
}

.sidebar .nav-links li.showMenu .sub-menu {
   display: block;
   padding: 5px;
}

.checkbox-menu {
   display: flex;
   flex-direction: row;
   justify-content: left;
   padding: 7px 15px;
   cursor: pointer;
   border-radius: 3px;
   background-color: var(--light-gray);
   margin-bottom: 5px;
}

.checkbox-menu label {
   cursor: pointer;
}

.refine-search {
   width: 100% !important;
   margin-bottom: 10px !important;
   padding: 9px !important;
   border-radius: 4px !important;
}

.sidebar .nav-links li .sub-menu input {
   color: var(--black);
   transition: all 0.3s ease;
   width: auto;
   margin-right: 5px;
}

.sidebar .nav-links li .sub-menu .link_name {
   display: none;
}

.sidebar .nav-links li .sub-menu.blank {
   pointer-events: auto;
   padding: 3px 20px 6px 16px;
   opacity: 0;
   pointer-events: none;
}

.sidebar .nav-links li:hover .sub-menu.blank {
   top: 50%;
   transform: translateY(-50%);
}

.home-section {
   position: relative;
   height: 100vh;
   left: 260px;
   width: calc(100% - 260px);
   transition: all 0.5s ease;
}

.home-content {
   display: flex;
   align-items: center;
   flex-wrap: wrap;
}
.home-section .home-content .bx-menu,
.home-section .home-content .text {
   color: #11101d;
   font-size: 35px;
}
.home-section .home-content .bx-menu {
   cursor: pointer;
   margin-right: 10px;
}
.home-section .home-content .text {
   font-size: 26px;
   font-weight: 600;
}

.menu-mobile {
   display: none;
}

.menu-mobile i {
   color: #000;
   font-size: 1.5rem;
}

@media screen and (max-width: 400px) {
   .sidebar {
      width: 240px;
   }

   .home-section {
      left: 240px;
      width: calc(100% - 240px);
   }
}

.home-section {
   position: relative;
   background: #ffffff;
   min-height: 100vh;
   top: 0;
   left: 78px;
   right: 0;
   width: calc(100% - 78px);
   transition: all 0.5s ease;
   z-index: 2;
}

.sidebar.open ~ .home-section {
   left: 260px;
   width: calc(100% - 260px);
}

.home-section .text {
   display: flex;
   margin-left: 20px;
}

.home-header {
   display: flex;
   flex-direction: row;
   justify-content: space-between;
   align-items: center;
   width: calc(100% - 78px);
   height: 80px;
   background-color: var(--white);
   box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.4);
   position: fixed;
   top: 0;
   transition: width 2s;
   z-index: 10;
}

.home-header img {
   height: 50px;
}

.menu-mobile {
   display: none;
}

.menu-mobile i {
   color: #fff;
   font-size: 1.5rem;
}

.logo-pt {
   width: 135px;
}

.logo-pt img {
   width: 135px;
}

.header-notification {
   display: flex;
   justify-content: space-between;
   align-items: center;
   width: 100px;
   font-size: 20px;
   position: relative;
   height: 25px;
   right: 30px;
}

.home-header .notification .num {
   position: absolute;
   top: -6px;
   right: -6px;
   width: 20px;
   height: 20px;
   border-radius: 50%;
   border: 2px solid #f8f9fa;
   background: #ff0000;
   color: #f8f9fa;
   font-weight: 700;
   font-size: 12px;
   display: flex;
   justify-content: center;
   align-items: center;
}

.home-header .profile img {
   width: 40px;
   height: 40px;
   object-fit: cover;
   border-radius: 50%;
}

.header-notification i {
   color: #fff;
   font-size: 25px;
}

.tooltip {
   padding: 5px !important;
}

/* estado base – desktop continua com seu CSS atual para .aside-bar / .sidebar */

/* MOBILE: overlay de filtros */
@media (max-width: 768px) {
   body.filters-open {
      overflow: hidden; /* trava o scroll do fundo */
   }

   .aside-bar {
      position: fixed;
      inset: 0;
      z-index: 9999;
      background: rgba(0, 0, 0, 0.45);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.25s ease;
   }

   body.filters-open .aside-bar {
      opacity: 1;
      pointer-events: auto;
   }

   .aside-bar .sidebar {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: #fff;
      display: flex;
      flex-direction: column;
      max-height: 100vh;
      transform: translateY(16px);
      opacity: 0;
      transition: transform 0.25s ease, opacity 0.25s ease;
      overflow-y: auto;
      padding-bottom: 16px;
   }

   body.filters-open .aside-bar .sidebar {
      transform: translateY(0);
      opacity: 1;
   }

   .sidebar-mobile-header {
      position: sticky;
      top: 0;
      z-index: 1;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 16px;
      border-bottom: 1px solid #eee;
      background: #fff;
   }

   .sidebar-mobile-header .sidebar-title {
      font-size: 1rem;
      font-weight: 600;
   }

   .sidebar-mobile-header .filter-close {
      background: none;
      border: none;
      font-size: 1.6rem;
      line-height: 1;
      cursor: pointer;
   }

   /* se na sua versão atual você escondia a sidebar no mobile com display:none, REMOVA isso */
}

@media (max-width: 576px) {
   /*.sidebar {
      display: none;
   }*/

   .home-header {
      width: 100%;
   }

   .logo-pt {
      display: none;
   }

   .home-section .text img {
      max-width: 140px;
   }

   .menu-mobile {
      display: flex;
      /* border: 1px red solid; */
      align-items: center;
   }
}
