html{
    margin: 0;
    padding: 0;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

body{
    margin: 0;
    padding: 0;
    display: flex;
    overflow: hidden;
    height: 100vh;
}

.side-menu{
    margin: 0;
    padding: 0;
    background-color: #1E2C51;
    width: 320px;
    height: 100vh;
    border-bottom-right-radius: 25px;
    border-top-right-radius: 25px;
  
   box-sizing: border-box;
}

.logos{
    width: 265px;
    height: 70px;
    display: block;
    margin: 15px;
    text-align: center;

}
.side-menu .logo{
width: 150px;
height: 50px;
margin: auto;
padding-top: 15px;
 
}

.side-menu .haas{
    width: 45px;
    height: 45px;

    line-height: 70px;
  
}


.side-menu .admin{
    color: white;
    font-size: 1.4em;
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}

.side-menu hr{
    color: white;
    width: 90%;
margin-top: 0;
margin-bottom: 0;
    
}

.side-menu .logouser{
 
  margin-left: 200px;
  text-align: right;
  width: 20px;
  display: block;
 
}

.side-menu .logouser:hover{
    background-color: transparent;
}

.side-menu a{
    width: 100%;
    box-sizing: border-box;
    height: 50px;
    padding: 3px;
    display: block;
    color: white;
    text-decoration: none;
    line-height: 50px;
    background-image: url("../assets/document.png");
    background-repeat: no-repeat;
    background-size: 35px;
    background-position-y: center;
    background-position-x: 15px;
    padding-left:80px ;
    font-size: 1.2em;
    
}
.arrow{
    width: 15px;
   margin-left: 90px;

}
.side-menu a:nth-of-type(2){
     background-image: url("../assets/growth-chart.png");
}
.side-menu a:nth-of-type(3){
     background-image: url("../assets/user\ \(3\).png");
}
.side-menu a:hover{
    background-color: #79C3A8;
}

.side-menu a:last-of-type{
    background-image:url("../assets/user.png");
}

.side-menu a:nth-of-type(4):hover{
    background-color: transparent;
    cursor: pointer;
    text-align: right;
    width: 40px;

}



main{
    float: left;
    width: 100%;
    height: 100%;
    box-sizing: border-box;


}
thead {
  position: sticky;
  z-index: 2;
  top: 0;
}

.scroll{
    max-height: 80%;
    overflow-x:auto ;
}

.main{
    line-height: 100%;
    

    width: 90%;
    height: 85%;
    display: block;
    margin: auto;
    box-sizing: border-box;
    border-radius: 25px;
    box-shadow: 1px 1px 6px 4px rgba(148,148,148,0.45);
}

.title{
    margin: 30px 15px 5px 45px;
    padding: 0;
    font-size: 2em;
    color: #1E2C51;
}

.formSearch {
    display: flex;
    width: 100%;
    padding: 20px;
}

.searchContainer{
    width: 100%;
}


#sds{
    border-radius: 10px;
    border: 2px solid #1E2C51;
 
    height: 33px;
    background-image: url("/assets/search.png");
    background-repeat: no-repeat;
    background-size: 25px;
    background-position-y: center;
    background-position-x: 5px;
    box-sizing: border-box;
   
    font-size: 1em;

}

.addSDS{
    background-color: #1E2C51;
    color: white;
    width: 115px;
    font-size: 1.2em;
    text-align: center;
    line-height: 33px;
    height: 33px;
    text-decoration: none;
    border-radius: 10px;
    position: absolute;
    right: 11px;
}

table{
    width: 95%;
    height: 71%;
    margin: auto;    
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;

    
        white-space: nowrap;
        overflow-x: auto;
}


table, td, th{
     border: 1px solid #1E2C51;
  border-collapse: collapse;
}

table tr th{
    background-color: #1E2C51;
    color:white;
    border: #1E2C51;
    font-size: 1.2em;
 
    height: 25px;
    text-align: left;
}

.tablaSDS tr th:nth-of-type(1)
{
    width: 60px;
}

.tablaSDS tr th:nth-of-type(3)
{
    width: 100px;
    text-align: center;
   
}

.tablaSDS td a img{
    width: 25px;
    height: inherit;
    margin-left: 5px;
}

.tablaSDS tr td:nth-of-type(1){
    text-align: center;
}


.tablaSDS tbody{
    margin: 0;
    padding: 0;
}
.tablaSDS tbody tr:nth-child(2n+1),.tablaReportes tbody tr:nth-child(2n+1),.tablaUsuarios tbody tr:nth-child(2n+1){
    background-color: #E6E9ED;
}

.ViewTitle{
    margin: 30px;
    padding-top: 25px;
    color: #1E2C51;
    font-size: 1.6em;
}

.previewPdf{
    background-color: #D9D9D9;
    width: 95%;
    height: 80%;
    margin: auto;
}

.regresar{
    background-color: #1E2C51;
    color: white;
    margin: 0;
    padding: 0;
    display: block;
    width: 115px;
    text-align: center;
    font-size: 1.3em;
    float: right;
    margin-top: 10px;
   line-height: 33px;
    height: 33px;
    border-radius: 10px;
    margin-right:30px ;
    text-decoration: none;
}

.AggSDS {
    margin: auto;
    width: 50%;
    height: auto;
    box-shadow: 1px 1px 6px 4px rgba(148,148,148,0.45);
    border-radius: 25px;
    color: #1E2C51;
    box-sizing: border-box;

}


.AggSDS label{
    margin-left: 30px;
    font-size: 1.2em;
    color: #1E2C51;
}

.AggSDStitle{
    text-align: center;
    color: #1E2C51;
}

.AggSDS form{
    padding: 5px;
}
.AggSDS input{
    margin-left: 30px;
    margin-bottom: 25px;
    margin-top: 10px;
}

.AggSDS input[type=text]{
    width: 90%;
    height: 30px;
    box-sizing: border-box;
    border-radius: 10px;
    padding-left: 10px;
    font-size: 1.5;
}

.buttons{

    width: 80%;
    height: 25%;
    margin: auto;
     display: flex; 
    justify-content: space-between;
 
}

.buttons .btn-cancel{
    float: right;
    text-align: center;
    line-height: 33px;
    text-decoration: none;
    margin-bottom: 15px;
  
 
}
.buttons a, input[type=submit]{
 background-color: #1E2C51;
 width: 45%;
 height: 33px;
 margin: 0;
 font-size: 1em;
     margin-bottom: 15px;
 border-radius: 10px;
 color: white;
}

input[type=submit]:hover{
    cursor: pointer;
}

center{
    list-style: 100%;
}

.AggSDS h3{
    font-weight: normal;
    text-align: center;
    font-size: 1.5em;
}


/*****************************REPORTES*************************************/
.tablaReportes img, .tablaUsuarios img{
    width: 25px;
    height: inherit;
    margin-left: 5px;
}

.tablaReportes tr th:nth-of-type(1){
    width:20%;
}

.tablaReportes tr th:nth-of-type(4){
    width:10%;
    text-align: center;
}

/*****************************USUARIOS*************************************/

.tablaUsuarios{
    margin: 15px;
}

.tablaUsuarios tr th{
    text-align: center;
}

.tablaUsuarios tr th:nth-of-type(1){
    width:25%;
}
.tablaUsuarios tr th:nth-of-type(2){
    width:20%;
}


.tablaUsuarios tr td:nth-of-type(5){
    text-align: center;
}
.tablaReportes tr th:nth-of-type(3){
    width:10%;
    text-align: center;
}

.permisos{
    width: 50%;
    margin: auto;
    gap: 20px;
    font-size: 1.3em;
    text-align: center;
}

.permisos a:hover{
    cursor: pointer;
   
}

.permisos a{
     margin: 20px;
}

/**************************LOGIN**********************/

.login{
    background-color: #1E2C51;
    height: 100vh;
    overflow: hidden;
    position: relative;
    isolation: isolate;
}

/* Polígono blanco (triángulo + rectángulo) desde la derecha */
.login::before{
    content: "";
    position: absolute;
    inset: 0;
    background-color: #ffffff;
    /* Punta + rectángulo derecho completo */
    -webkit-clip-path: polygon(34% 50%, 60% 0%, 100% 0%, 100% 100%, 60% 100%);
            clip-path: polygon(34% 50%, 60% 0%, 100% 0%, 100% 100%, 60% 100%);
    z-index: 2;
    transition: -webkit-clip-path 300ms ease, clip-path 300ms ease;
}

.login .inicio{
    width: 40%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;

    position: relative;
    z-index: 1;
}

.login .incora{
    width: 60%;
    display: flex;
    align-items: center; 
    justify-content: center;
    height: 100vh; 
    /* float: right; */
    /* height: 100%; */
    /* position: relative; */
    position: relative;
    z-index: 3;
  
  
}

.logos-container{
    display: flex;
    justify-content: center;
    align-items: center;
}

.login .incora .loginincora img{
    width: 500px;
    height: 200px;
    max-width: 90%;
    height: auto;

}

.incora .loginhaas{
    /* position: absolute; */
    width: 100px;
    height: 100px;
    top: 315px;
    right: 70px;
}

.loginhaas img{
    width: 100px;
    height: 100px;
}


.login .log{
    color: white;
    width: 80%;
    max-width: 400px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 30px 28px 26px 28px;
    border-radius: 16px;
    /* Mejora de legibilidad manteniendo la paleta existente */
    background-color:#1E2C51;
    border: 1px solid #1E2C51;
    backdrop-filter: blur(2px);
}






.log h1{
    text-align: center;
    font-weight: normal;
    font-size: 1.8em;
    margin-bottom: 50px;
}

.log .label{
    margin-left:30px;
    font-size: 1.5em;

}

.log input{
    margin-left: 25px;
    border-radius: 10px;
    height: 33px;
    width: 75%;
    padding-left: 8px;
    margin-bottom: 55px;
    border: #1E2C51 1px solid;
}

.log input[type=submit]
{
    
    background-color: #79C3A8;
    height: 38px;
    width: 78%;
    font-size: 1.3em;
    border: 1px solid #79C3A8;;
}



.accordion .contentBx{
   position: relative;
   
}

.accordion .contentBx .lab{
    position: relative;

    cursor: pointer;
  
}

.accordion .contentBx .content{
    position: relative;
    height: 0;
    overflow: hidden;
    transition: 0.5s;
 
}

.accordion .contentBx.active .content{
height: 50px;
}
.accordion .contentBx.active .smenu{
overflow: scroll;
 overflow-x: hidden;
}
.smenu{

  max-height: 400px;
  overflow-y: auto;

}

.backArrow img{
    display: none;
}

.espacio{
    height: 300px;
    width: 20px;
}

table tr td a:last-of-type{
    margin-left: 10px;


}

.ex{
    display: none;
}


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

    .AggSDS{
        width: 60%;
    }
    form .buttons{
        display: flex;
        width: 90%;
        
    }
}


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

    .AggSDS{
        width: 80%;
    }
    form .buttons{
        display: flex;
        width: 90%;
        
    }

    .modal-content{
        width: 80%;
    }

    #myModal input{
        width: 50%;
    }
}

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



    .login{
        background-color: #ffffff;
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        overflow: auto;
    }

    /* Ajuste del triángulo en móvil para mejor equilibrio visual */
    .login::before{
        /* Móvil: reducir a ancho 0 para transición suave y fondo blanco */
        -webkit-clip-path: polygon(100% 50%, 100% 0%, 100% 100%);
                clip-path: polygon(100% 50%, 100% 0%, 100% 100%);
    }

    .login .incora{
        width: 100%;
        height: auto;
        position: static;
        order: -1; /* Mostrar logos arriba */
        padding: 24px 16px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .login .inicio{
        width: 100%;
        height: auto;
        padding: 16px;
    }

    .loginincora{
        display: block;
        text-align: center;
        width: 100%;
        margin: 12px auto 6px auto;
    }
    .loginhaas{
        display: block;
    }
    .logos-container{
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
        padding-top: 8px;
    }


    /*SIDE MENU*/
    .side-menu{
        box-sizing: border-box;
        height: 100%;    
        border-top-right-radius: 5px;
        border-bottom-right-radius: 5px;
        width: 50px; 
    }

    .side-menu .ex{
        display: block;
        height: 50px;
        background-image: url("/assets/menu.png");
        background-size: 35px auto;
        background-repeat: no-repeat;
        background-position-x:center;
        background-position-y: 5px;
        right: 15px;
    }

    .logos{
        width: 220px;
    }

    .contentBx
    {
        display: none;
    }
        
    .arrow{
        margin-left: 15px;
    }

    .activeSideBar{

    }



    .backArrow{
        display: block;
    }
    .backArrow img{
       display: block;
        width: 40px;
        height: inherit;

    }
    .cerrarSesion{
        width: 40px;
    }
    .modal-content{
        width: 80%;
    }




    
}




/*MODAL*/
.modal {
  position: fixed; 
  z-index: 1; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgb(0,0,0); 
  background-color: rgba(0,0,0,0.4); 
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto; 
  padding: 20px;
  border-radius: 15px;
  border: 1px solid #888;
  width: 30%;
}

.closeM {
  display: none;
}
@media only screen and (max-width: 575px){
        .AggSDS{
        width: 90%;
    }
    form .buttons{
        display: flex;
        width: 90%;
        
    }


}


@media (max-width: 485px){

       #sds{
        width: 95%;
    }


    body{
        box-sizing: border-box;
    }
    .side-menu{
        box-sizing: border-box;
        width: 50px;
       display: block;
    
    }

    .main, .AggSDS{
        box-sizing: border-box;
        border: none;
        box-shadow: none;
        
    }

.formSearch{
    display: block;
    height: 70px;
    
}


.formSearch .addSDS{
margin-top: 40px;
}
.formSearch input{
    width: 270px;
    margin: 0;
}


table{
    margin-top: 35px;
}

.AggSDS input{
    margin: 15px;
}


form .buttons{
 

    gap: 10px;
}

.buttons a{
    margin: 0;
    margin-top: 15px;
}

.regresar{
    display: none;
}

.modal-content{
    width: 200px;
}


}

#error{
    text-align: center; 
    font-size: 1.3em;
    color: red;
}

embed{
    width:100%;
    height:100%;
}

#myModal{
    color: #1E2C51;
    font-size: 1.4em;
    text-align: center;
}

#myModal input{
    margin: 15px;
    border: 1px solid #1E2C51;
    height: 25px;
    border-radius: 5px;
    width: 65%;
    padding: 7px;
    box-sizing: border-box;
}

#myModal button{
    background-color: #1E2C51;
    color: white;
    width: 45%;
    font-size: .8em;
    height: 30px;
    border-radius: 5px;
}

#myModal button:hover{
    cursor: pointer;
}



.middle{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
}

.item{
  overflow: hidden;
}
.btn{
  display: block;
  padding: 16px 20px;
  color: white;
  position: relative;
}
.btn:before{
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  left: 20px;
  bottom: -7px;
  transform: rotate(45deg);
}
.btn i{
  margin-right: 10px;
}
.smenu{
  overflow: hidden;
  transition: max-height 0.3s;
  max-height: 0;
}
.smenu a{
  display: block;
 
  color: white;

  margin: 4px 0;
  position: relative;
}
.smenu a:before{
  content: "";
  position: absolute;
  width: 6px;
  height: 100%;
  left: 0;
  top: 0;
  transition: 0.3s;
  opacity: 0;
}
.smenu a:hover:before{
  opacity: 1;
}
.item:target .smenu{
  max-height: 10em;
}






     