@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root{

  --ixtami-blue: rgb(26, 67, 113);
  --ixtami-gold: rgb(242, 183, 5);
  --ixtami-gray: rgb(84, 110, 122);
  --bg-kiosk: #f9f9f9;


 --main:#0a6b28;
 --secun:#f1e70b;
 --tercer:#aa0010;
 --gris:#acacac;
 --borderGris:#acacac;
 --celeste:#a8f0f8;
 --verde:#27ae60;
 --azul:#03afe7;
 --naranja:#ff9600;
 --gris:#afafaf;
 --rojo:#df4545;
}
*,
*::before,
*::after{
box-sizing:border-box;
}

html,body{margin: 0px;}

body{
    font-family: "Roboto";
    font-weight: 300;
    background:#fafafa ;
}
a{text-decoration:none;color:inherit;}

.txtleft{text-align:left;}
.txtright{text-align:right;}
.txtcenter{text-align:center;}
.titulo {
        font-size: clamp(18px, 8vw, 30px);
        line-height: 1.2;
    }
.subtitulo {
        font-size: clamp(16px, 6vw, 30px);
        line-height: 1;
    }
.mayus {text-transform: uppercase;}
.bold{font-weight:500 !important;}
.bolder{font-weight:700 !important;}

.errorMsg{color: #df0000;}
.borde{border:1px #df0000 solid !important;}
.fondoGris{background: #f0f0f0;}
.redondo{border-radius:6px;}
.italica{font-style: italic;}


.ngo{color: #000;}
.azul{color: var(--azul);}
.verde{color: var(--verde);}
.rojo{color: var(--rojo);}

/* BOTONES */
.btn{
    display:inline-block;
    cursor:pointer;
    border:none;
    text-align:center;
    box-sizing:border-box;
    border-radius:6px;
    font:300 14px/28px "Roboto","Arial","Sans";
    transition:all .2s ease-in-out;
    user-select:none;
}
.btnEnviar{border:1px var(--main) solid;background:var(--main);color:#ffffff;padding:10px 20px;text-align: center;}
.btnVerde{border:1px var(--verde) solid;background:var(--verde);color:#ffffff;padding:10px 20px;text-align: center;}
.btnAzul{border:1px var(--azul) solid;background:var(--azul);color:#ffffff;padding:10px 20px;text-align: center;}
.btnAgregar{border:1px var(--azul) solid;background:var(--azul);color:#ffffff;padding:10px 20px;text-align: center;}
.btnGris{border:1px var(--gris) solid;background:var(--gris);color:#ffffff;padding:10px 20px;text-align: center;}
.btnEntregado{border:1px var(--main) solid;background:var(--main);color:#ffffff;padding:10px 20px;text-align: center;}
.btnDevoluciones{border:1px var(--naranja) solid;background:var(--naranja);color:#ffffff;padding:10px 20px;text-align: center;}

.btnRojo{border:1px var(--rojo) solid;background:var(--rojo);color:#ffffff;padding:10px 20px;text-align: center;}
.btnCancelar{border:1px var(--gris) solid;background:var(--gris);color:#ffffff;padding:10px 20px;text-align: center;}
.btn100{width:100%;}

.tabla_principal{width:calc(100% - 60px);margin-left:auto; text-align: center;}
.contenidos{width:98%;max-width:1000px;display:inline-block;}



.oculto{display: none;}

.logotipoPanel{
    width:100px; margin: 10px auto;
}

/* =====================  
    LOGIN 
==================== */
.miniBox {
    width: 90%; /* En móvil ocupa casi todo el ancho */
    max-width: 500px;
    display: block; /* Mejor que inline-block para centrar fácil */
    padding: 30px 15px;
    margin: 40px auto; /* Centrado automático más seguro */
    text-align: center;
    background: #ffffff;
    border-radius:20px;
    border: 1px var(--borderGris) solid;
    box-sizing: border-box;
}

.miniBox .form_input {
    border-radius:20px;
    margin: 20px auto;
    width: 80%; /* Un poco más ancho en móvil */
}

/* El input a 40px es gigante para móvil, lo ajustamos */
.miniBox .form_input input {
    font-size: 24px; 
    width: 100%;
    box-sizing: border-box;
}







/* Contenedor principal */
.tituloTop {
    display:grid;
    justify-content: space-between; /* Izquierda, Centro y Derecha automáticamente */
    align-items: center;            /* Alineación vertical perfecta para los 3 elementos */
    grid-template-columns: 1fr 1fr 1fr;
    
    /* Posicionamiento flotante superior */
    position: fixed;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 9999;
    
    /* Estilos estéticos (Redondeado y Sombra ligera) */
    background: #ffffff;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Sombra muy sutil y limpia */
    box-sizing: border-box;
    gap: 15px;                      /* Espacio de seguridad por si la pantalla se hace chica */
}

/* 1. Elemento Izquierda: Nombre y Sucursal */
#tituloPaso {
    font-size: 15px;
    margin: 0;
    color: #444;
    font-weight: 600;
    font-family: sans-serif;
    flex: 1;                        /* Ayuda a equilibrar el espacio en el diseño */
}

/* 2. Elemento Centro: Subtítulo de la pantalla */
#subtituloTop {
    font-size: 16px;
    font-weight: bold;
    color: #111;
    text-align: center;
    font-family: sans-serif;
    flex: 1;                        /* Fuerza a que se mantenga matemáticamente al centro */
}

/* 3. Elemento Derecha: Botón de cerrar */
/* 3. Elemento Derecha: Botón de cerrar */
#cerrarTodo {
    font-size: 26px;
    line-height: 1;
    background: #556B2F;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    justify-self: end; 
    transition: background 0.2s ease, transform 0.1s ease;
}
#cerrarTodo:hover {
    background: #6b873c;
    transform: scale(1.05);
}









/* =====================  
    FORMULARIOS 
==================== */
.renglon{width:100%;display:inline-block;}
.form_input{width:100%;display:inline-block;padding:6px 8px;
    box-sizing:border-box;
    border:1px var(--borderGris) solid;
    background: #ffffff;
}
.form_input input,
.form_input textarea,
.form_input select{
    width:100%;
    display:block;
        /* clamp(mínimo, preferido, máximo) */
        font-size: clamp(14px, 2vw, 18px); 
        font-weight: 400;
        line-height: 1.5; /* Relación de aspecto más flexible que 24px fijos */
    font-family: "Roboto", sans-serif;
    border:none;
    background:transparent;
    outline:none;
    padding:5px;
}
.select-style-per{
    font:700 18px/24px "Roboto",sans-serif;
    background:transparent;
    border: none;
    outline:none;
    padding:10px 20px;
}
.form_input .input_fecha{width:44%;}
.form_input .input_ico{width:calc(100% - 30px);}
.form_input .input_40{width:40%;}
.form_input .input_50{width:50%;}
.form_input .input_100{width:100%;}
.form_area{width:100%;box-sizing:border-box;height:90px;resize: none;}
.form_area_gde{width:100%;height:200px;}







/*==============================
    MINI ALERTA
======================*/
#miniAlertaBox{
    position:fixed;
    top:-200px;
    left:0;
    width:100%;
    display:flex;
    justify-content:center;
    z-index:9999;
    transition:.4s;
}

#miniAlertaBox.activo{
    top:100px;
}

.miniAlertaContenido{
    background:white;
    padding:20px 30px;
    border-radius:10px;
    box-shadow:0 10px 30px rgba(0,0,0,.25);
    text-align:center;
    min-width:320px;
}

/* tipos */

.miniAlerta_ok{border-top:10px solid #28a745;}
.miniAlerta_error{border-top:10px solid #dc3545;}
.miniAlerta_warn{border-top:10px solid #ffc107;}
#miniAlertaMensaje{
    margin-bottom:15px;
    font-size:22px;
}
#miniAlertaBtn{
    background:var(--main);
    color:white;
    border:none;
    padding:8px 20px;
    border-radius:6px;
    cursor:pointer;
}

/*==============================
    MINI CONFIRM
======================*/
#miniConfirmBox{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.4);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:9999;
}

.miniConfirmBtns{
    display:flex;
    gap:10px;
    justify-content:center;
    margin-top:15px;
}

.miniConfirmBtns button{
    padding:8px 18px;
    border:none;
    border-radius:6px;
    cursor:pointer;
}




/*==============================
    MINI CHOICE
======================*/
#miniChoiceBox{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.4);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:9999;
}

.miniChoiceBtns{
    display:flex;
    gap:10px;
    justify-content:center;
    margin-top:15px;
}

.miniChoiceBtns button{
    padding:8px 18px;
    border:none;
    border-radius:6px;
    cursor:pointer;
}






/* Contenedor principal que abarca el 100% */
.header-envios {
    display: flex;
    justify-content: space-between; /* Avienta el botón a la izquierda y el formulario a la derecha */
    align-items: center;
    width: 100%;
    padding: 15px 25px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    box-sizing: border-box;
    gap: 20px;
}

/* Formulario alineado en un solo renglón */
.header-envios .form-inline {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-grow: 1;
    justify-content: flex-end; /* Alinea el contenido del formulario hacia la derecha */
}

/* Título limpio y sin márgenes que estorben */
.header-envios h2 {
    font-size: 1.1rem;
    color: #333;
    margin: 0;
    font-weight: 600;
    white-space: nowrap; /* Evita que el título se rompa en dos renglones */
}

.header-envios .azul {
    color: var(--main, #007bff); /* Usa tu variable de color principal */
    font-weight: 700;
}

/* Contenedor para el Select y el Botón Mostrar juntos */
.header-envios .acciones-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Select Estilizado Estilo Premium */
.select-style-per {
    padding: 10px 15px;
    font-size: 0.95rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9f9f9;
    color: #444;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.select-style-per:focus {
    border-color: var(--main, #007bff);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Estilos Base de los Botones */
.header-envios .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

/* Botón Regresar (Izquierda) */
.btnRegresar {
    background-color: #f1f3f5;
    color: #495057;
}

.btnRegresar:hover {
    background-color: #e9ecef;
    color: #212529;
}

/* Botón Mostrar (Derecha junto al Select) */
.btnEnviar {
    background-color: var(--main, #007bff);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.2);
}

.btnEnviar:hover {
    background-color: var(--main-dark, #0056b3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btnEnviar:active {
    transform: translateY(0);
}






.btnInstalarApp {
    background-color: var(--tercer); /* El verde de Tanyva */
    color: white;
    border: none;
    padding: clamp(12px, 3vw, 10px)20px;
    font-size: clamp(16px, 4vw, 22px);
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    width: 60%;
    margin: 10px auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}






@media screen and (max-width:768px){/* cell potrait */

.tabla_principal{width:100%;margin:0}
.contenidos{width:98%;}

.miniBox{
    width:92%;padding:20px 20px;margin:10% 4%; ;
}


}/* media 768 */