.body-no-scroll {
    overflow: hidden;
}

.body-no-scroll {
    overflow: hidden;
    height: 100vh;
    position: fixed;
    width: 100%;
}

#openSidebar{
    background: none;
    border: none;
    color: #FFF;
    font-size: 1rem;
    display: flex;
    gap: 3px;
    align-items: center;
    cursor: pointer;
    transition: .3s;
    padding: .5rem 1rem;
    border-radius: 8px;
}

#openSidebar:hover{
    background: #FFFFFF40;
    transition: .3s;
}

.sidebar {
    background: rgba(0, 0, 0, 0.55);
    position: fixed;
    inset: 0;
    z-index: 99;
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: .3s ease;
}

.sidebar.Hiato .sidebar-content{
    background: #776960;
}

.sidebar.open {
    opacity: 1;
    pointer-events: auto;
}

.button-bar {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: start;
    flex-wrap: wrap;
}

.button-bar span{
    height: 2px;
    border-radius: 10px;
    background: var(--header-menu-principal-item-foreground);
    margin: 2px 0;
    display: block;
    width: 100%;
}

.button-bar span:nth-child(2n+1) {
    width: 60%;
}

.sidebar-content {
    width: 100%;
    max-width: 34rem;
    background: var(--header-background);
    padding: 4.5rem 3rem;
    height: 100%;
    overflow-y: auto;
    transform: translateX(100%);
    transition: .35s ease;
}

.sidebar.open .sidebar-content {
    transform: translateX(0);
}
.sidebar-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    align-items: center;
}

#closeSidebar {
    background: none;
    border: none;
    color: #fff;
    padding: .7rem;
    border-radius: 50%;
    cursor: pointer;
    transition: .2s ease;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

#closeSidebar:hover {
    background: #ffffff1a;
}

#closeSidebar i {
    font-size: 1.6rem;
}

.sidebar-search {
    margin-bottom: 2rem;
    position: relative;
}

.sidebar-search label {
    color: #fff;
    font-size: 1rem;
    opacity: .85;
    display: block;
    margin-bottom: .4rem;
}

.sidebar-input {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 10px;
    padding: .6rem 1rem;
    gap: .8rem;
}

.sidebar-input i {
    color: var(--primary-color);
}

.sidebar-input input {
    border: none;
    font-size: .95rem;
    width: 100%;
    outline: none;
}

.sidebar-input{
    margin-bottom: 1rem;
    justify-content: space-between;
}

.sidebar-input .sidebar-input-digit{
    display: flex;
    gap: 5px;
    align-items: center;        
    width: 100%;
}

#closeSearch {
    background: none;
    border: none;
    transition: opacity .25s ease;
    cursor: pointer;
}

#closeSearch .fa-times {
    opacity: 0;
    pointer-events: none;
    display: none;
}

#closeSearch.open .fa-times {
    opacity: 1;
    pointer-events: auto;
    display: block;
}

#closeSearch .fa-chevron-down {
    opacity: 1;
    pointer-events: none;
    display: block;
}

#closeSearch.open .fa-chevron-down {
    opacity: 0;
    pointer-events: auto;
    display: none;
}






.sidebar-items ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
}

.sidebar-items ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: .4rem;
    transition: color .25s ease;
    font-weight: 400;
}

.sidebar-items ul li a .sidebar-item-label  {
    display: flex;
    gap: 5px;
    align-items: center;
}

.sidebar-items ul li a:hover {
    color: var(--secondary-color);
}

.sidebar-items ul li a.client {
    gap: .6rem;
    border: none;
    padding-bottom: 0;
    font-weight: 500;
    justify-content: start;
}

.sidebar-items .submenu i {
    transition: .3s ease;
}

.sidebar-items .submenu.open i {
    transform: rotate(-180deg);
}

.sidebar-items .button-dropdown {
    cursor: pointer;
}

.sidebar-items .dropdown {
    display: none;
    padding-left: 1rem;
}

.sidebar-items .button-dropdown.open .dropdown {
    display: flex;
}



.sidebar-items .dropdown li{
    margin-bottom: .5rem;
}

.sidebar-items .dropdown li a{
    font-size: .9rem;
    display: flex;
    justify-content: start;
    gap: .5rem;
}

.sidebar-items .dropdown li a i{
    font-size: .7rem;
}

.sidebar-items .button-dropdown .icon-dropdown {
    transition: transform 0.25s ease;
}

.sidebar-items .button-dropdown.open .icon-dropdown {
    transform: rotate(180deg);
}

/* Busca */
.sidebar-search-emp{
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    border-radius: 8px;
    z-index: 99;
    border-radius: 8px;
    background: #000;
    padding: .5rem;  
    background: #1e2024;
    display: none;
    opacity: 1;
}

.sidebar-search-emp.open {
    display: block;
    opacity: 1;
}

.sidebar-search-result {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 350px;
}

.sidebar-search-result .no-result{
    color: #fff;
    text-align: center;
}

.sidebar-search-item a{
    display: grid;
    grid-template-columns: 60px 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem; 
    cursor: pointer;
    transition: background .2s ease, transform .15s ease;
    margin-bottom: .5rem;
    text-decoration: none;
}

.sidebar-search-item a:hover {
    background: #24272c;
    transform: translateY(-2px);
}

.sidebar-search-thumb img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
}

.sidebar-search-info h3 {
    margin: 0;
    font-size: 0.9rem;
    color: #fff;
    font-weight: 600;
}

.sidebar-search-info p {
    margin: 0;
    font-size: 0.75rem;
    color: #b3b3b3;
}

.status-badge {
    background: #3b7b3f;        
    padding: 4px 8px;
    font-size: 0.75rem;
    color: #fff;
    border-radius: 6px;
    white-space: nowrap;
}

.sidebar-loading {
    text-align: center;
    padding: 20px;
    font-size: 14px;
    color: #666;
}

.spinner {
    width: 22px;
    height: 22px;
    border: 3px solid #ccc;
    border-top-color: #333;
    border-radius: 50%;
    margin: 0 auto 10px auto;
    animation: spin 0.6s linear infinite;
}

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

.sidebar-search-item,
.no-result {
    opacity: 0;
    transform: translateY(6px);
    animation: fadeSlideIn .25s ease forwards;
}

@keyframes fadeSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (max-width: 1020px) {
  .Header .Header_Menu {
    display: block;
  }
}

@media(max-width: 767px) {
    #openSidebar {
        padding: 0;
        font-size: 0;
    }

    #openSidebar .button-label{
        font-size: 0;
    }

    .button-bar{
        width: 28px;
        height: 28px;
    }

    #openSidebar i{
        font-size: 1.5rem;
    }

    .sidebar-content{
        padding: 3.5rem 1.5rem;
    }

    .sidebar-search-emp{
        top: 48px;
    }
}