/* ******************************************************* BODY ******************************************************* */
.form-page body {
    margin: 0;
    width: 100%; 
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #ffffff;  
}
/*  ******************************************* CONTENEDOR GENERAL DE TODA LA PÁGINA ********************************** */
#container {
    top: 3%;
    left: 0%;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    z-index: 1;
}
/* ******************************************** Rectángulo ************************************************************* */
/* rectángulos y líneas */
.rounded-rectangle {
    border-radius: 10px;
    border: 1px solid #8e8e8d;
    position: absolute;
    opacity: 0.8; 
}
/* --------------------------------------- clases para los rectángulos ---------------------------------- */
.transparent-bg {
    background: transparent;
    background-image: none;
}
.gradient-bg {
    background: #b4b4b4;
    background-image: linear-gradient(145deg, #ffffff, #a0a0a0);
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.5);
}
/* ******************************************************* LEYENDAS ************************************* */
.leyenda_titulo {
    font-size: 34px;
    font-family: 'Arial Black';
    color: #5a5a5a; 
    position: absolute;
    z-index: 999;
}

.leyenda1 {
    font-size: 20px;
    font-family: 'Arial Black';
    color: #5a5a5a; 
    position: absolute;
    z-index: 999;
}



/* ********************************************** VENTANA FLOTANTE **************************************************** */
.ventana-flotante {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    display: none; /* Inicialmente oculta */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid black; /* Añadir contorno */
}

.ventana-flotante .contenido {
    display: flex;
    flex-direction: column; /* A単adido para organizar los elementos verticalmente */
    justify-content: center;
    align-items: center;
}

/* Estilos para el cuadro de texto dentro de la ventana flotante */
#ventanaFlotante .contenido input[type="text"] {
    margin-top: 10px;
    padding: 10px;
    width: 80%;
    box-sizing: border-box;
}

button {
    margin-top: 10px;
    padding: 5px 15px;
    cursor: pointer;
}

.destacar-fila {
    background-color: yellow; /* Color de fondo para destacar la fila */
    transition: background-color 0.3s ease;
}

/* ------------------------------------------------------------------------------------------------------------------ */
#total {
    position: absolute;
    top: 94%;
    left: 59%;
    font-family: 'Arial black'; 
    font-size: 22px; 
    font-weight: bold; 
    color: #000; 
}
/* ******************************************************** Botones ************************************************* */
#boton_rubro1 {
    position: absolute;
    
    top: 13.6%; 
    left: 11%;
    height: 3%;
    width: 6%;
    margin-bottom: 7px;
    padding: 10px 10px;
    background-color: #4CAF40;
    color: white;
    border: 0px solid red; 
    border-radius: 2px;
    cursor: pointer;
    z-index: 999;
}
#boton_rubro1:hover {
    background-color: #45a049
}

#boton_rubro {
    position: absolute;
    
    top: 13.6%; 
    left: 11%;
    height: 3%;
    width: 6%;
    margin-bottom: 7px;
    padding: 10px 10px;
    background-color: #4CAF50;
    color: white;
    border: 0px solid red; 
    border-radius: 2px;
    cursor: pointer;
    z-index: 999;
}
#boton_rubro:hover {
    background-color: #45a049
}
/* ------------------------------------------------------------------------- */
#boton_marca1 {
    position: absolute;
    
    top: 56.4%; 
    left: 11%;
    height: 3%;
    width: 6%;
    margin-bottom: 7px;
    padding: 10px 10px;
    background-color: #4CAF50;
    color: white;
    border: 0px solid red; 
    border-radius: 2px;
    cursor: pointer;
    z-index: 999;
}
#boton_marca1:hover {
    background-color: #45a049
} 

#boton_marca {
    position: absolute;
    
    top: 56.4%; 
    left: 11%;
    height: 3%;
    width: 6%;
    margin-bottom: 7px;
    padding: 10px 10px;
    background-color: #4CAF50;
    color: white;
    border: 0px solid red; 
    border-radius: 2px;
    cursor: pointer;
    z-index: 999;
}
#boton_marca:hover {
    background-color: #45a049
} 
/* ------------------------------------------------------------------------- */
/* ************************************ PAGINACIÓN ******************************************* */
.paginacion {
    margin-top: 20px;
    text-align: center;
    position: absolute; 
    top: 90%;  
    left: 27%;  /
    transform: translateX(-50%); 
}

.pagina {
    padding: 5px 10px;
    text-decoration: none;
    background-color: #007bff;
    color: white;
    margin: 0 5px;
    border-radius: 5px;
}

.pagina.disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* ************************************* BÚSQUEDA CLIENTE ************************************ */
/* Contenedor principal del selector de cliente */
.cliente-selector {
    position: absolute;
    top: 12%;   
    left: 55%;  
    width: 42.5%;
    height: 8%;
    background-color: #f0f0f0;
}

.cliente-selector label {
    position: absolute;
    top: 9%;    
    left: 1%;   
}

/* Input del cliente */
#cliente {
    width: 90%;  
    padding: 11px;
    margin-top: 15px;  
    position: absolute;
    top: 14%;  
    left: 1%; 
}

/* Cliente seleccionado (listado de sugerencias) */
.cliente-seleccionado {
    position: absolute;
    top: 100%; /* Posiciona las sugerencias debajo del campo */
    left: 1%;
    width: 94%;
    max-height: 200px; /* Limitar la altura para evitar que crezca demasiado */
    overflow-y: auto; /* Permite hacer scroll cuando las sugerencias son muchas */
    background-color: #fff; /* Fondo blanco para las sugerencias */
    border: 1px solid #ddd; /* Borde sutil */
    border-radius: 4px; /* Bordes redondeados */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Sombra ligera para dar profundidad */
    z-index: 9999; /* Asegura que las sugerencias estén encima de otros elementos */
    padding: 5px 0;
}

.cliente-seleccionado div {
    padding: 8px 12px; /* Espaciado alrededor de las sugerencias */
    cursor: pointer; /* Cambia el cursor para que el usuario sepa que es clickeable */
    transition: background-color 0.3s ease; /* Suaviza el cambio de color de fondo */
}

.cliente-seleccionado div:hover {
    background-color: #f5f5f5; /* Color de fondo al pasar el ratón */
}

.suggestion {
    padding: 8px;
    cursor: pointer;
}

.suggestion.selected {
    background-color: #007bff; /* Fondo azul */
    color: white; /* Texto blanco */
}

/* ****************************** Ventana modal de Confirmación ******************** */
.modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    width: 50%; /* Controla el ancho de la modal */
    max-width: 500px; /* Ancho máximo de la modal */
    height: auto; /* Controla el alto de la modal */
    max-height: 80%; /* Alto máximo de la modal */
    overflow-y: auto; /* Habilita el scroll vertical si el contenido excede el alto máximo */
}
