/* Estilos para la barra de navegación */
.navbar {
    background-color: #66C2D0;
    height: 120px;
    margin: 10px;
    border-radius: 16px;
    padding: 0.1rem;
    position: static;
}

.navbar-brand {
    font-weight: 500;
    color: #006e7e;
    font-size: 24px;
    transition: 0.3s color;
}

.navbar-toggler {
    border: none;
    padding: 0.1rem;
    width: auto;
    font-size: 1.26rem;
    margin-right: 10px;
}

.nav-link {
    color: #006b7b;
    font-weight: 500;
    position: relative;
}

.navbar-toggler:focus,
.navbar-toggler:hover,
.btn-close:focus,
.btn-close:hover {
    background-color: transparent;
    color: inherit;
    box-shadow: none;
    outline: none;
}

.nav-link:hover,
.nav-link.active {
    color: #fafafa;
}

@media (min-width: 991px) {
    .nav-link::before {
        content: "";
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        height: 2px;
        background-color: #006e7e;
        visibility: hidden;
        transition: 0.3s ease-in-out;
    }

    .offcanvas-footer {
        display: none;
    }

    .nav-link:hover::before,
    .nav-link.active::before {
        width: 100%;
        visibility: visible;
    }
}

@media (max-width: 991px) {
    .offcanvas {
        text-align: center;
        height: auto;
        max-width: 220px;
    }

    .offcanvas-header {
        justify-content: center;
        background-color: #fafafa;
        padding: 1.25rem;
    }

    .offcanvas-body {
        color: #fafafa;
        background-color: #66C2D0;
        ;
        padding: 0.1rem;
    }

    .navbar-brand img {
        height: 80px;
    }

    .nav-link:hover,
    .nav-link.active {
        color: #c5f0f8;
    }

    .nav-link {
        margin-top: 10px;
        font-size: 16px;
        color: #006b7b;
    }

    .offcanvas-footer {
        background-color: #66C2D0;
        ;
        height: 90px;
    }
}



/* *****************************************  BODY ****************************************  */

body {
    height: auto;
    width: 100vw;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    cursor: url("../IMAGENES/favicon-32x32.png"), auto;
    background-image: url("../IMAGENES/Fondi.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

}

main {
    flex: 1;
}

/* ***************************************** FOOTER ****************************************  */
footer {
    background-color: #66C2D0;
    height: 125px;
    margin: 10px;
    border-radius: 16px;
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;

}

.footer-image {
    width: 80%;
    height: auto;
}

@media (max-width: 900px) {
    footer {
        padding: 0.5rem;
        height: auto;
    }

    .footer-image {
        height: 100%;
        width: 100%;
    }
}

/********************************************************* CONTENEDOR *************************************************************************/

/* CONTENEDOR */
.container {
    margin-top: 2rem;
    background-color: #fff;
    padding: 1.25rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    border: none;
    margin-bottom: 2rem;
    width: 95%;
    max-width: 100vw;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .container {
        max-width: 90%;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .container {
        max-width: 90%;
    }
}

/***************************************************************** BUSCAR **************************************************************************/
.container_buscar {
    margin-top: 45px;
    display: row;
    flex-direction: column;
    align-items: center;
    margin-bottom: 45px;
    text-align: center;
}

.container_buscar input {
    padding: 8px;
    border-radius: 8px;
    width: 300px;
    height: 35px;
    background-color: rgb(207, 205, 205);
    border-color: #098b94;
    outline: none;
    font-size: 16px;
    text-align: center;
    margin-right: 10px;
}

.container_buscar button {
    width: 5%;
    border: none;
    border-radius: 8px;
    background-color: #007c84;
    color: white;
    font-size: 16px;
    cursor: pointer;
    margin-left: 5px;
    height: 35px;
    justify-content: center;
    align-items: center;
}

.container_buscar button:hover {
    background-color: #005f62;
}


/* Media Query para pantallas medianas (770px a 1000px) */
@media (min-width: 771px) and (max-width: 1800px) {
    .container_buscar {
        flex-direction: row;
    }

    .container_buscar input {
        width: 250px;
        /* Reduce el ancho del input en pantallas medianas */
    }

    .container_buscar button {
        width: 75px;
    }
}

/* Media Query para pantallas pequeñas (menores de 770px) */
@media (min-width: 347px) and (max-width: 770px) {
    .container_buscar {
        flex-direction: row;
    }

    .container_buscar input {
        width: 60%;
        /* Ocupa el ancho completo en pantallas pequeñas */
        justify-content: center;
    }

    .container_buscar button {
        width: 25%;
        margin-top: 10px;

    }
}


/******************************************************************** BOTONES ***************************************************************************/
.container_botones {
    margin-top: 40px;
    display: flex;
    margin: 5px;
    gap: 15px;

}

.container_botones button {
    padding: 6px 10px;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    background-color: #007c84;
    border-radius: 8px;

}

.botones button:active {
  background-color: #1ab4be;
}

.container_botones button:hover {
    background-color: #005f62;
}

@media (min-width: 771px) and (max-width: 1800px) {
    .container_botones {
        grid-template-columns: 1fr 1fr 1fr;

    }

    .container_botones input {
        width: 20%;
    }
}

/* Pantallas medianas y pequeñas */
@media (min-width: 347px) and (max-width: 770px) {
    .container_botones {
        display: flex; /* Asegura que estén en una fila */
        
        gap: 8px; /* Ajusta la separación entre botones */
        margin: 10px 0; /* Margen superior e inferior más reducido */
    }

    .container_botones button {
        flex: 1; /* Asegura que los tres botones tengan el mismo ancho */
        padding: 5px 8px; /* Tamaño reducido del botón */
        height: 30px; /* Botón más pequeño */
        font-size: 12px; /* Fuente legible pero más pequeña */
        text-align: center; /* Centra el texto dentro del botón */
        border-radius: 6px; /* Bordes ligeramente redondeados */
    }
}





/******************************************************************** TABLA ***************************************************************************/

.containerTabla {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.containerTabla table {
    width: 100%;
    border-collapse: collapse;
    overflow-x: auto;
    table-layout: fixed;
    text-align: center;
}

.containerTabla input {
    text-align: center;
    width: 100%;
    padding: 1px;
    border: none;
    border-radius: 4px;
    outline: none;
}

.containerTabla th,
.containerTabla td {
    width: 100%;
    font-size: medium;
    text-align: center;
    border: 1.5px solid #098b94;
    padding: 1px;
    word-wrap: break-word;
    overflow: hidden;
}

.menu select {
    text-align: center;
    width: 100%;
    padding: 1px;
    border: none;
    background-color: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
    font-size: small;
    margin-bottom: 3px;
  }
  .containerTabla {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: 450px;  /* Altura máxima del contenedor */
    overflow-y: auto;   /* Activa el scroll vertical */
}

.containerTabla table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    text-align: center;
    border: 1.5px solid #098b94;  /* Agrega un borde alrededor de toda la tabla */
}

.containerTabla th,
.containerTabla td {
    font-size: medium;
    text-align: center;
    border: 1.5px solid #098b94;
    padding: 1px;
    word-wrap: break-word;
    overflow: hidden;
}

.containerTabla th {
    background-color: #fff; 
    position: sticky;       
    top: 0;                 
    z-index: 1;             
    border-bottom: 1.5px solid #098b94;
    border-top: 1.5px solid #098b94; 
}

.containerTabla input {
    text-align: center;
    width: 100%;
    padding: 1px;
    border: none;
    border-radius: 4px;
    outline: none;
}

/* Responsividad para pantallas */
@media (max-width: 549px) {
    .containerTabla table {
        display: block;
        overflow-x: auto;
    }
    table th,
    table td {
        font-size: small;
        white-space: nowrap;
    }
    .containerTabla input {
        width: 155px;
    }

    .menu select {
        width: 155px;
    }
}

@media (min-width: 550px) and (max-width: 3000px) {
    table th,
    table td {
        font-size: small;
        width: 1000px;
        white-space: nowrap;
    }

    .containerTabla table {
        display: block;
        overflow-x: auto;
    }

    .containerTabla input {
        width: 155px;
        font-size: small;
    }
    .menu select {
        width: 155px;
        font-size: small;
    }
}

/**********************************************************TITULO PRINCIPAL ********************************************************/
.title-center {
    text-align: center;
    font-size: 3em;
    font-weight: bold;
    margin: 1px 0;
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    background-color: #006e7e;

}
/* Pantallas medianas (601px a 991px) */
@media (max-width: 991px) {
    .title-center {
        font-size: 2.5em;
        padding: 8px;
    }
}

/* Pantallas pequeñas (hasta 600px) */
@media (max-width: 600px) {
    .title-center {
        font-size: 2em;
        padding: 6px;
    }
}



/********************************************************** SUBTITULOS ********************************************************/
.subtitulo {
    text-align: center;
    font-size: 3em;
    font-weight: bold;
    margin: 1px 0;
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    background-color: #4CB8C8;
    font-size: 30px;
 

}
/* Pantallas medianas (601px a 991px) */
@media (max-width: 991px) {
    .subtitulo {
        font-size: 2.5em;
        padding: 8px;
    }
}

/* Pantallas pequeñas (hasta 600px) */
@media (max-width: 600px) {
    .subtitulo {
        font-size: 2em;
        padding: 6px;
    }
}

/************************************************************ FORM-CHECK ******************************************************************/

.check {
    margin-top: 35px;
    margin-left: 15%;
}


/*************************************************************** LLEGADA FECHA Y HORA ******************************************************/
.Datos { 
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    
}

.Datos label {
    height: auto;
    margin-top: 2px;
    margin-right: 10px;
    text-align: right;
}

.Datos input {
    text-align: center;
    margin-right: 10px;
    margin-top: 2px;
    margin-bottom: 2px;
    border-color: #098b94;
    height: auto;
    width: 170px;
}

.grupo1 {
    display: flex;
    justify-content: flex-end;
    flex-direction: row;


}
.grupo2{
    text-align: left;
    display: flex;
    flex-direction: row;
   
}

.grupo2 label {
    margin-left: 10px;
}


/* Pantallas medianas (601px a 991px) */
@media (max-width: 991px) {
    .Datos {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .grupo1, .grupo2 {
        justify-content: center;
        flex-direction: column;
    }

    .Datos label, .Datos input {
        width: 90%;
        margin: 5px auto;
        text-align: center;
    }
    
    .grupo1 input, .grupo2 input {
        width: 90%;
        margin: 5px auto;
        height: 35px;
    }
}

/* Pantallas pequeñas (hasta 600px) */
@media (max-width: 600px) {
    .Datos {
        grid-template-columns: 1fr; /* Una columna en pantallas pequeñas */
        gap: 10px;
    }
    
    .Datos label, .Datos input {
        width: 95%;
        margin: 5px auto;
        text-align: center;
    }
    
    .Datos input {
        height: 40px; /* Ajuste para mejorar la usabilidad en pantallas pequeñas */
    }
    
    .grupo1 input, .grupo2 input {
        width: 95%;
        margin: 5px auto;
        height: 40px;
    }
}

/**************************************************** PIEZAS RECIBIDAS *************************************************************/

.piezas {

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 25px;
    gap: 10px;
}

.piezas input {
    flex-direction: row;
    padding: 8px;
    width: 170px;
    height: 35px;
    border-color: #098b94;
    text-align: center;
}


/* Pantallas medianas (601px a 991px) */
@media (max-width: 991px) {
    .Datos {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .grupo1, .grupo2 {
        justify-content: center;
        flex-direction: column;
    }

    .Datos label, .Datos input {
        width: 90%;
        margin: 5px auto;
        text-align: center;
    }
    
    .grupo1 input, .grupo2 input {
        width: 90%;
        margin: 5px auto;
        height: 35px;
    }

    /* Responsividad para .piezas */
    .piezas {
        flex-direction: column;
        gap: 15px;
        margin-top: 15px;
        margin-bottom: 20px;
    }

    .piezas input {
        width: 50%;
        height: 35px;
    }
}

/* Pantallas pequeñas (hasta 600px) */
@media (max-width: 600px) {
    .Datos {
        grid-template-columns: 1fr; /* Una columna en pantallas pequeñas */
        gap: 10px;
    }
    
    .Datos label, .Datos input {
        width: 95%;
        margin: 5px auto;
        text-align: center;
    }
    
    .Datos input {
        height: 40px; /* Ajuste para mejorar la usabilidad en pantallas pequeñas */
    }
    
    .grupo1 input, .grupo2 input {
        width: 95%;
        margin: 5px auto;
        height: 40px;
    }

    /* Responsividad para .piezas */
    .piezas {
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
        margin-bottom: 15px;
        padding: 10px;
    }

    .piezas input {
        width: 90%;
        height: 40px;
    }
}

/********************************************************* ESTILOS DE TODOS LOS CHEKCS ******************************************/
.form-check-input {
    margin-right: 10px;
    border-radius: 5px;
    border: 2px solid #098b94;
}

/************************************************ SALIDA A PRODUCCIÓN **********************************************************/

.salidaProd { 
    margin-top: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 25px;
}

.salidaProd label {
    height: auto;
    margin-top: 2px;
    margin-right: 10px;
    text-align: right;
 
}

.salidaProd input {
    text-align: center;
    margin-right: 10px;
    margin-top: 2px;
    margin-bottom: 2px;
    border-color: #098b94;
    height: auto;
    width: 170px;
}

.gru1 {
    display: flex;
    justify-content: flex-end;
    flex-direction: row;
}
.gru2{
    text-align: left;
    display: flex;
    flex-direction: row;
}

.gru2 label {
    margin-left: 10px;
}

/* Pantallas medianas (601px a 991px) */
@media (max-width: 991px) {
    .salidaProd {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .gru1, .gru2 {
        justify-content: center;
        flex-direction: column;
    }

    .salidaProd label, .salidaProd input {
        width: 90%;
        margin: 5px auto;
        text-align: center;
    }
    
    .gru1 input, .gru2 input {
        width: 90%;
        margin: 5px auto;
        height: 35px;
    }
}

/* Pantallas pequeñas (hasta 600px) */
@media (max-width: 600px) {
    .salidaProd {
        grid-template-columns: 1fr; /* Una columna en pantallas pequeñas */
        gap: 10px;
    }
    
    .salidaProd label, .salidaProd input {
        width: 95%;
        margin: 5px auto;
        text-align: center;
    }
    
    .salidaProd input {
        height: 40px; /* Ajuste para mejorar la usabilidad en pantallas pequeñas */
    }
    
    .gru1 input, .gru2 input {
        width: 95%;
        margin: 5px auto;
        height: 40px;
    }
}

/*********************************************************** RECEPCIÓN DE PRODUCCIÓN ********************************************************/

.RecepProd { 
    margin-top: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 25px;
}

.RecepProd label {
    height: auto;
    margin-top: 2px;
    margin-right: 10px;
    text-align: right;
   
}

.RecepProd input {
    text-align: center;
    margin-right: 10px;
    margin-top: 2px;
    margin-bottom: 2px;
    border-color: #098b94;
    height: auto;
    width: 170px;
}

.grup1 {
    display: flex;
    justify-content: flex-end;
    flex-direction: row;
}
.grup2{
    text-align: left;
    display: flex;
    flex-direction: row;
}

.grup2 label {
    margin-left: 10px;
}

/* Pantallas medianas (601px a 991px) */
@media (max-width: 991px) {
    .RecepProd {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .grup1, .grup2 {
        justify-content: center;
        flex-direction: column;
    }

    .RecepProd label, .RecepProd input {
        width: 90%;
        margin: 5px auto;
        text-align: center;
    }
    
    .grup1 input, .grup2 input {
        width: 90%;
        margin: 5px auto;
        height: 35px;
    }
}

/* Pantallas pequeñas (hasta 600px) */
@media (max-width: 600px) {
    .RecepProd {
        grid-template-columns: 1fr; /* Una columna en pantallas pequeñas */
        gap: 10px;
    }
    
    .RecepProd label, .RecepProd input {
        width: 95%;
        margin: 5px auto;
        text-align: center;
    }
    
    .RecepProd input {
        height: 40px; 
    }
    
    .grup1 input, .grup2 input {
        width: 95%;
        margin: 5px auto;
        height: 40px;
    }
}


/************************************************* TIEMPO DE PRODUCCIÓN ****************************************************/
.ProdTime { 
    margin-top: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 25px;
}

.ProdTime label {
    height: auto;
    margin-top: 2px;
    margin-right: 10px;
    text-align: right;
}

.ProdTime input {
    text-align: center;
    margin-right: 10px;
    margin-top: 2px;
    margin-bottom: 2px;
    border-color: #098b94;
    height: auto;
    width: 170px;
}

.gpo1 {
    display: flex;
    justify-content: flex-end;
    flex-direction: row;
}
.gpo2{
    text-align: left;
    display: flex;
    flex-direction: row;
}

.gpo2 label {
    margin-left: 10px;
}

/* Pantallas medianas (601px a 991px) */
@media (max-width: 991px) {
    .ProdTime {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .gpo1, .gpo2 {
        justify-content: center;
        flex-direction: column;
    }

    .ProdTime label, .ProdTime input {
        width: 90%;
        margin: 5px auto;
        text-align: center;
    }
    
    .gpo1 input, .gpo2 input {
        width: 90%;
        margin: 5px auto;
        height: 35px;
    }
}

/* Pantallas pequeñas (hasta 600px) */
@media (max-width: 600px) {
    .ProdTime {
        grid-template-columns: 1fr; 
        gap: 10px;
    }
    
    .ProdTime label, .ProdTime input {
        width: 95%;
        margin: 5px auto;
        text-align: center;
    }
    
    .ProdTime input {
        height: 40px; 
    }
    
    .gpo1 input, .gpo2 input {
        width: 95%;
        margin: 5px auto;
        height: 40px;
    }
}
/***************************************************** TOTAL DE PRODUCCIÓN ************************************************************/
.totalProd {

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 25px;
    gap: 10px;
}

.totalProd input {
    flex-direction: row;
    padding: 8px;
    width: 170px;
    height: 35px;
    border-color: #098b94;
    text-align: center;
}

/* Pantallas medianas (601px a 991px) */
@media (max-width: 991px) {
    /* Responsividad para .totalProd */
    .totalProd {
        flex-direction: column;
        gap: 15px;
        margin-top: 15px;
        margin-bottom: 20px;
        padding: 10px;
    }

    .totalProd input {
        width: 80%; 
        height: 35px;
    }
}

/* Pantallas pequeñas (hasta 600px) */
@media (max-width: 600px) {
    /* Responsividad para .totalProd */
    .totalProd {
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
        margin-bottom: 15px;
        padding: 10px;
    }

    .totalProd input {
        width: 90%; 
        height: 40px; 
    }
}

/******************************************** EMPAQUETADO ***********************************************/

.datosEmpaque {
    display: flex;
    flex-direction: column;
    align-items: center; 
    padding: 10px;
    justify-content: center; 
  }
  
  .datosEmpaque .empaque-label {
    text-align: center;
    width: 100%;
    margin-top: 6px;
    padding: 10px 0; 
  }
  
  #chkEmpaque {
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center; 
    padding: 10px;
    width: 100%;
    height: auto; 
  }
  
  .form-check {
    display: flex;
    align-items: center;
    justify-content: center; 
    margin: 5px 0;
    width: 100%; 
  }
  
  .datosEmpaque .form-check-input {
    border-radius: 5px;
    border: 2px solid #098b94;
  }

  .datosEmpaque .form-check-label{
    text-align: left;
    width: 100px;
  }
  
  .form-check input {
    display: inline-block;
    margin-right: 10px;  
  }

/********************************************************** BOTÓN GUARDAR*********************************************************/
.BtnGuardar {
    display: flex;
    justify-content: right;
    margin-top: 40px;
    margin-right: 50px;
}

.BtnGuardar button {
    padding: 10px 10px;
    border: none;
    border-radius: 5px;
    background-color: #006e7e;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.BtnGuardar button:hover {
    background-color: #4c99a4;
}

.BtnGuardar button:active {
    background-color: #1ab4be;
}

@media (max-width: 600px) {
    .BtnGuardar  {
        width: 100%;
        align-items: center;
        justify-content: center;
        font-size: 14px;
    }
}

/****************************************SELECCIÓN DE DATOS*************************************/
.selected {
    background-color: #a4caf0 !important; /* Color azul */
    color: white; /* Para cambiar el color del texto si lo deseas */
  }
  
  .selected input, 
  .selected select {
    background-color: #a4caf0 !important; /* Color azul */
    color: rgb(0, 0, 0); /* Para cambiar el color del texto si lo deseas */
  }

/****************************************SIN PIEZAS*************************************/
.without_parts {
    background-color: #ee0d20 !important; /* Color azul */
    color: white; /* Para cambiar el color del texto si lo deseas */
  }
  
  .without_parts input, 
  .without_parts select {
    background-color: #ee0d20 !important; /* Color azul */
    color: rgb(0, 0, 0); /* Para cambiar el color del texto si lo deseas */
  }