* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style-type: none;
    box-sizing: border-box;
    font-family: 'Merriweather', sans-serif;
}

.n-menu {
    display: flex;
    gap: 0.25em;
}

.n-item-menu span {
    font-size: 30px !important;
}
.perfil-content {
    padding: 0;
    width: 100%;
    display: flex;
    align-items: center;
    background-color: var(--bg-color-3);
}

.perfil-info {
    display: flex;
    justify-content: right;
    align-items: center;
    gap: 5px;
}
.perfil-info p {
    margin-bottom: 0 !important;
}
.perfil {
    justify-content: right;
    align-items: center;
    background-color: var(--bg-color-3);
    height: 100%;
    padding: 2px 8px;
    border-radius: 10px;
    display: flex;
}

.personal-info {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.personalName {
    display: flex;
    align-items: center;
    font-weight: 600;
}
.foto-perfil {
    border-radius: 50%;
    border-style: solid;
    border-width: 2px;
    border-color: var(--bg-color-2);
    background-color:var(--bg-color-3);
    cursor: pointer;
}

.personalCargo {
    margin-bottom: 0;
}


#menu-toggle {
    display: none;
}

.sidebar {
    position: fixed;
    height: 100%;
    width: 290px;
    left: 0;
    bottom: 0;
    top: 0;
    z-index: 100;
    background: var(--bg-color-1);

}



.side-content {
    /*height: calc(100vh - 60px);*/
    height: 100vh;
    overflow: auto;

}

/* width */
.side-content::-webkit-scrollbar {
  width: 5px;
}

/* Track */
.side-content::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px var(--text-color-2);
  /* Color de fondo de la barra de navegacion lateral del navbar */
}


/* Handle */
.side-content::-webkit-scrollbar-thumb {
  background: var(--bg-color-1);
  /* Color de la barra de navegacion lateral del navbar */
  border-radius: 10px;
}

/* Handle on hover */
.side-content::-webkit-scrollbar-thumb:hover {
  background: var(--bg-color-3);
  /* Color de la barra de navegacion lateral del navbar al pasar el mouse */

}

.profile {
    text-align: center;
    /* padding: 4rem 0rem; */
}

.bg-img {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.profile-img {
    height: 190px;
    width: 190px;
    display: inline-block;
    /* margin: 0 auto .5rem auto; */
}

.profile h4 {
    height:60px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-color-1);
    font-weight: 600;
    margin-bottom: 0px !important;
}

.profile small {
    color: var(--text-color-1);
    font-size: 16px;
    font-weight:400;
}

.sidebar {
    overflow-y: auto;
}


.path-content {
    display: flex;
    gap: 0.5rem;
    height: 100%;
    margin: auto 0;
    align-items: center;
    font-size: 25px;
    font-weight: 600;
}

.path-content span {
    align-items: center;
}

.dinamicPath {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 0.5rem;
    text-decoration: none;
    color: #000;
}
.dinamicPath span:first-child {
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 25px;
    font-weight: 600;
}
#menu-toggle:checked ~ .perfil-content::before{
    display: flex;
    width: 100%;
}


#menu-toggle:checked ~ .sidebar {
    width: 60px;
}

#menu-toggle:checked ~ .main-content {
    margin-left: 60px !important;
    width: calc(100% - 60px);
}

#menu-toggle:checked ~ .main-content header {
    left: 60px;
}

#menu-toggle:checked ~ .sidebar .profile h4,
#menu-toggle:checked ~ .sidebar .profile small,
#menu-toggle:checked ~ .sidebar .side-menu a small, 
#menu-toggle:checked ~ .sidebar .side-menu a .icon-fi,
#menu-toggle:checked ~ .sidebar .side-menu .p-menu {
    display: none;
}

#menu-toggle:checked ~ .sidebar .side-menu a {
    padding-left: 0;
    justify-content: center;
}

#menu-toggle:checked ~ .sidebar .profile .profile-img {
    margin: 2.5px auto;
    height: 50px;
    width: 50px;
}

#menu-toggle:checked ~ .sidebar .profile {
    margin: 0;
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0;
}

#menu-toggle:checked ~ .sidebar .side-menu a span {
    font-size: 18px;
}


.main-content {
    margin-left: 290px;
    width: calc(100% - 290px);
}

header {
    position: fixed;
    display: flex;
    justify-content: space-between;
    right: 0;
    top: 0;
    left: 290px;
    z-index: 100;
    height: 80px;
    box-shadow: 0px 5px 5px -5px var(--bg-color-2);
    background: var(--bg-color-3);

}

.header-content, .header-menu {
    display: flex;
    align-items: center;
}

.header-content {
    justify-content: space-between;
    padding: 0rem 1rem;
}

.header-content label:first-child span {
    font-size: 1.3rem;
}

.header-content label {
    cursor: pointer;
}

.header-menu {
    justify-content: flex-end;
    padding-top: .5rem;
}

.header-menu label,
.header-menu .notify-icon {
    margin-right: 2rem;
    position: relative;
}

.header-menu label span,
.notify-icon span:first-child {
    font-size: 1.3rem;
}

.notify-icon span:last-child {
    position: absolute;
    background: var(--bg-color-1);
    height: 16px;
    width: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    right: -5px;
    top: -5px;
    color: #fff;
    font-size: .8rem;
    font-weight: 500;
}

.user {
    display: flex;
    align-items: center;
}

.user div, .client-img {
    height: 40px;
    width: 40px;
    margin-right: 1rem;
}

.user span:last-child {
    display: inline-block;
    margin-left: .3rem;
    font-size: .8rem;
}

main {
    margin-top: 100px;
}

.page-header {
    padding: 1.3rem 1rem;
    background: var(--bg-color-3);
    border-bottom: 1px solid var(--bg-color-2);
}

.page-header h1, .page-header small {
    color: #74767d;
}

.page-content {
    padding: 1.3rem 1rem;
    background:var(--bg-color-);
}


@media only screen and (max-width: 768px) {

    .sidebar {
        left: -290px;
        z-index: 90;
    }

    header {
        left: 0;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }
    .profile {
        display: flex;
        gap: 1rem;
    }



    .path-content {
        font-size: 20px;
    }

    .dinamicPath span:first-child {
        font-size: 18px;

    }

    #menu-toggle:checked ~ .sidebar .profile {
        margin: 15px 0;
        margin-top: 0;
        display: flex !important;
        flex-direction: column;
        gap: 0;
    }


    #menu-toggle:checked ~ .sidebar .profile h4, #menu-toggle:checked ~ .sidebar .profile small  {
        display: inline-block;
    }

    #menu-toggle:checked ~ .sidebar {
        left: 0;
    }

    #menu-toggle:checked ~ .sidebar {
        width: 243px;
    }

    #menu-toggle:checked ~ .sidebar .side-menu a {
        justify-content: left;
        padding-left: 18px;
    }

    #menu-toggle:checked ~ .sidebar .profile,
    #menu-toggle:checked ~ .sidebar .side-menu a small {
        display: block;
    }


    #menu-toggle:checked ~ .sidebar .profile .profile-img{
        height: 190px !important;
        width: 190px !important;
    }

    #menu-toggle:checked ~ .sidebar .side-menu a span {
        font-size: 1.7rem;
    }

    #menu-toggle:checked ~ .main-content header {
        left:243px ;
    }
    
    #menu-toggle:checked ~ .main-content {
        margin-left: 243px !important;
        width: calc(100% - 243px);
    }

    #menu-toggle:checked ~ .sidebar .profile {
        height: auto;
    }

    .profile h4 {
        height: 60px;
        width: 100%;
        padding: 20px !important;

    }

    

    #menu-toggle:checked ~ .main-content header .perfil-content .perfil .perfil-info .personal-info {
        display: none;
    }

    .body-content {
    padding: 0 1rem !important;
}

}

.n-item-menu {
    align-content: center;
}

.body-content {
    padding: 0 3rem;
}



@media (max-width: 1024px) and (min-width: 769px) {
    .body-content {
    padding: 0 1rem !important;
}
}



/*BARRA LATERAL*/

.side-menu ul {
    text-align: center;
    padding-left: 0 !important;
}



.side-menu a {
    display: flex;
    height: 75px;
    justify-content: left;
    padding-left: 25px;
    gap: 0.8rem;
    font-size: 22px;
    text-decoration: none !important;
    color: var(--text-color-1) !important;
}


.side-menu a.active {
    background: var(--text-color-1);
}

.side-menu a.active span, .side-menu a.active small {
    color: #000000;
    align-content: center;

}

.side-menu a span {
    display: flex;
    text-align: center;
    font-size: 30px !important;
    width:40px;
    justify-content: center;

}

.side-menu a.active span, .side-menu a span {
    margin: auto 2px;

}

.side-menu a small, .side-menu a.active small  {
    font-weight: 600;
}

.side-menu a span, .side-menu a small {
    align-content: center;

}

.side-menu a:hover{
    background: var(--bg-color-2);
    color: var(--text-color-2) !important;
}



.p-menu a {
    height: 55px;
    font-size: 17px;
    font-weight: normal;
    align-content: center;
    gap: 0;
}

.side-menu .icon-fi {
    margin-left: auto !important;
    padding-right: 8px;
      font-size: 20px !important;
  padding-left: 0;
}


.btn-logout-content {
    position: absolute;
    border-radius: 10px;
    right: 9px;
    top: 65px;
    background-color: var(--bg-color-3);
    padding: 5px 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
    display: none;
}



/* ESTILOS DE PLANTILLA */

.head-title h3,
.main-content h4 {
    font-weight: bold;
}

.head-title {
    border-radius: 5px;
    
}

/*MODAL*/

.r-modal{
    display: flex;
    position: fixed;
    z-index: 1000;
    /* left: 0; */
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: rgba(0,0,0,0.5);
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.r-modal-content {
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 15px;
    scrollbar-width: none; /* Firefox */
}

.r-modal-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

@media (min-width: 1150px) {
    .r-modal-permisos {
        width: 1000px;
    }
}

.r-modal-container {
    position: relative;
    margin: auto;
    
    /* padding: 20px; */
    /* max-height: 80vh; */
    left: unset;
    top: unset;
}

.r-modal-body{
    padding: 20px;
}

.close{
    position: absolute;
    font-size: 25px;
    padding: 5px;
    width: 35px;
    height: 35px;
    border-radius: 18px;
    right:5px;
    top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1200;
    pointer-events: auto;
    color: var(--text-color-1);
}

.close:hover {
    background-color: var(--bg-color-3);
    color: var(--text-color-2);
}


.r-modal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    background-color: var(--bg-color-1);
    color: var(--text-color-1);
}

.r-modal-header h3 {
    font-weight: bold;
    margin: auto 0;
}

.code-wrapper {
      border-left: 4px solid #0d6efd;
      border-radius: 5px;
      overflow: hidden;
    }

    .code-content {
      background-color: #f8f9fa;
      padding: 0;
    }

    .btn-demo {
      border-radius: 0 0 5px 5px;
    }

/* Estilos para elementos del menú */
.p-menu a[data-page] {
    transition: all 0.3s ease;
    border-radius: 5px;
    /* margin: 2px 0;
    display: block;
    padding: 8px 12px; */
}

.p-menu {
    background: var(--bg-color-3);
    right: -100px;
    z-index: 10;
}

.p-menu a[data-page]:hover {
    background-color: var(--bg-color-2);
    color: #0d6efd;
}

.p-menu a[data-page].active {
    background-color: var(--bg-color-2);
    color: white;
    font-weight: 600;
}

.p-menu a[data-page].active span i {
    color: white;
}

.p-menu a[data-page].active small {
    color: white;
}

/* Loading spinner animation */
.fa-spinner.fa-spin {
    animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 550px) {
                        .flex-responsive {
                            display:block !important;
                        }
                    }

.enpt {
    color: var(--text-color-3) !important;
}