﻿:root {
    --color-barra-lateral: white;
    --color-texto: rgb(0,0,0);
    --color-texto-menu: rgb(134,136,144);
    --color-boton: rgb(0,0,0);
    --color-boton-texto: rgb(255,255,255);
    --color-menu-hover: rgb(238,238,238);
    --color-menu-hover-texto: rgb(255,0,0);
    --color-linea: rgb(180,180,180);
    --color-scroll: rgb(192,192,192);
    --color-scroll-hover: rgb(134,134,134);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100vh;
    width: 100%;
    background-color: white;
}

.menu {
    position: fixed;
    width: 50px;
    height: 50px;
    font-size: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    background-color: var(--color-boton);
    color: var(--color-boton-texto);
    right: 15px;
    top: 15px;
    z-index: 100;
}

.barra-lateral {
    position: fixed;
    width: 250px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 20px 15px;
    background-color: var(--color-barra-lateral);
    transition: width 0.5s ease, left 0.5s ease;
    z-index: 50;
}


.mini-barra-lateral {
    width: 80px;
}

.barra-lateral span {
    font-size: 18px;
    white-space: nowrap;
    opacity: 1;
    text-align: left;
    transition: opacity 0.5s ease, width 0.4s ease;
}

    .barra-lateral span.oculto {
        opacity: 0;
        width: 0;
    }

.barra-lateral .nombre-pagina {
    width: 100%;
    height: 45px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.barra-lateral .nombre-pagina ion-icon {
    min-width: 50px;
    font-size: 40px;
    cursor: pointer;
    color: red;
}

.barra-lateral .boton {
    width: 100%;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    border: none;
    border-radius: 10px;
    background-color: var(--color-boton);
    color: var(--color-boton-texto);
}

.barra-lateral .boton ion-icon {
    min-width: 50px;
    font-size: 25px;
}

.barra-lateral .nombre-pagina span {
    margin-left: 5px;
    font-size: 25px;
}

.barra-lateral .navegacion {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

.barra-lateral .navegacion::-webkit-scrollbar {
    width: 5px;
}

.barra-lateral .navegacion::-webkit-scrollbar-thumb {
    background-color: var(--color-scroll);
    border-radius: 5px;
}

    .barra-lateral .navegacion::-webkit-scrollbar-thumb:hover {
        background-color: var(--color-scroll-hover);
        border-radius: 5px;
    }

.barra-lateral .navegacion ul {
    padding: 0px 0px;
}

.barra-lateral .navegacion li {
    padding: 0px 0px;
    margin-bottom: 5px;
    list-style: none;
    display: flex;
}

.barra-lateral .navegacion a {
    width: 100%;
    height: 45px;
    display: flex;
    align-items: center;
    text-decoration: none;
    border-radius: 10px;
    background-color: var(--color-barra-lateral);
    color: var(--color-texto);
}

    .barra-lateral .navegacion a:hover {
        background-color: var(--color-menu-hover);
        color: var(--color-menu-hover-texto);
    }

.barra-lateral .navegacion ion-icon {
    min-width: 50px;
    font-size: 20px;
}

.barra-lateral .linea {
    width: 100%;
    height: 1px;
    margin-top: 15px;
    margin-bottom: 10px;
    background-color: var(--color-linea);
}

.barra-lateral .usuario {
    width: 100%;
    display: flex;
}

.barra-lateral .usuario .img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    align-items: center;
}

.barra-lateral .usuario .info-usuario {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--color-texto);
    overflow: hidden;
}

.barra-lateral .usuario .nombre-email {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-left: 5px;
}

.barra-lateral .usuario .nombre {
    color: red;
    font-size: 12px;
    font-weight: 600;
}

.barra-lateral .usuario .email {
    color: red;
    font-size: 10px;
    font-weight: 600;
}

.barra-lateral .usuario .rut {
    color: red;
    font-size: 10px;
    font-weight: 600;
}

.barra-lateral .usuario .tipoUsuario {
    color: red;
    font-size: 10px;
    font-weight: 600;
}

.barra-lateral .usuario .estadoUsuario {
    color: red;
    font-size: 10px;
    font-weight: 600;
}

.barra-lateral .usuario ion-icon {
    font-size: 20px;
}

@media (max-height: 660px) {
    .barra-lateral .nombre-pagina {
        margin-bottom: 5px;
    }
}

@media (max-width: 600px) {
    .barra-lateral {
        position: absolute;
        left: -250px;
    }

    .max-barra-lateral {
        left: 0;
    }

    .menu {
        display: flex;
    }

    .menu ion-icon:nth-child(2) {
        display: none;
    }
}
table.dataTable.dataTable_width_auto {
    width: auto;
}
