.box_formulacion{
    background: #ABE6EF;
    width: 100%;
    height: 100%;
    overflow: hidden;
    scrollbar-width: none;
    padding-right: 10px;
}

.contenedor_standard{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-family: 'Merriweather Sans';
}

.caja_standard{
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    width: 400px;
    height: 800px;
    border: 2px solid #84C4CE;
    padding: 1rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow-y: auto;
    z-index: 999;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    background-color: rgb(248, 245, 220); /* Fondo semi-transparente */
    font-size: 11px;
}

.item_form{
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 100%;
    margin-bottom: 20px;
}

.item_input textarea {width: 80%;}
.item_input input {width: 80%;}
.item_input input[type="submit"]{width: 60%; margin-top:20px; padding: 10px 10px ; background: #77f6a3; border-radius: 4px;}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}


#buscar_medicamento {
    display: flex;
    width: 100%;
    height: 25px;    
    font-size: 11px;
}

#resultados {
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    max-height: 150px;
    overflow-y: auto;
    width: 250px;
    z-index: 999;
}

#resultados option {
    padding: 5px;
}

.medicacion_activa {
    width: 100%;
    height: 50%;
    background: #ABE6EF;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    font-family: 'Merriweather Sans';
    margin-right: 10px;
}

.medicar {
    display: flex;
    flex-direction: column;    
    flex: 0 0 95px;
    background: #ccce84;    
}

.TablaR{
    background: #84C4CE;
    display: flex; flex-direction: column;
    justify-content: center;
    align-items: center;    
    flex-direction: column;
    flex: 0 0 95px;   
}

.recetaSearch{
    display: flex;
    justify-content: center; align-items: center;
    width: 35%;
    height: 30px;
}

.box_dosisForfar{
    display: flex;
    width: 100%;
    height: 60px;
    background-color: #84C4CE;
}

.forfar_tableta{
    display: flex; flex-direction: column; 
    width: 100%;
    height: 60px;
    background-color: #84C4CE;
}

.recetaTableH{
    display: grid;
    grid-template-columns: /*Nombre*/25%/*Presentación*/20%/*Standar*/75px/*Dosis*/75px/*Unds*/0%/*cada*/30px/*frec*/80px/*UnsF*/0%/*Duración*/80px/*UnidsDur*/0%/*Cantidad*/30px/*Observaciones*/auto/*Agregar*/75px;
    align-items: center;
    height: 30px;
    width: 100%;
    font-size: 11px;
    box-sizing: border-box;
    
}

.recetaTable{
    display: grid;
    grid-template-columns: /*Nombre*/25%/*Presentación*/20%/*Standar*/75px/*Dosis*/25px/*Unds*/50px/*cada*/30px/*frec*/25px/*UnsF*/55px/*Duración*/25px/*UnidsDur*/55px/*Cantidad*/30px/*Observaciones*/auto/*Agregar*/75px;
    align-items: center;
    height: 30px;
    width: 100%;
    font-size: 9px;
    box-sizing: border-box;
}

.rHead_{
    border: 1px solid #ABE6EF;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 25px;
    font-size: 10px;
}

.rHead_ input,
.rHead_ select,
.rHead_ button,
.rHead_ textarea {
    width: 100%; 
    height: 24px;   
    box-sizing: border-box; /* para que respeten padding/border */
    font-size: 11px;     /* opcional, para que el texto sea uniforme */
    text-align: center;
}

.rHead_ button{
    background: #97d597;
    border: 1px solid #03036a;
    cursor: pointer;
    transition: background-color 0.4s ease, color 0.4s ease;    
    border-radius: 5px;  
}

.rHead_ button:active{
    background: #ffffd2; transform: scale(0.95);
}

.rHead_ button:focus{
    background: #ffffd2;
}

.medicamentos_clases {
    width: 100%;
    height: 35px;
    background: #659f61;
}

.img-p {
    color: #84C4CE;
    font-size: 11px;
}

#resultados_medicamentos {
    position: absolute; /* El select se posicionará sobre el contenido */
    top: 100%; /* Se coloca justo debajo del input */
    left: 0;
    width: 100%; /* Asegura que el select ocupe todo el ancho del input */
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid #ccc;
    background-color: #fff;
    z-index: 10;
}

/* Esto es lo que tenías antes, pero ahora lo redefinimos para que sea el contenedor del input */
.paciente_buscador_input {
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative; /* Esta propiedad es CRUCIAL */
}

.medicamentos_buscador_input {
    display: flex;
    width: 80%;
    height: 30px;
    display: flex;
    flex-direction: column; justify-content: center; align-items: center;    
}

.medicamentos_buscador_img {
    display: flex;
    flex-direction: column; justify-content: center; align-items: left;
    width: 30px;
    height: 30px;    
        
}

.forfarLibre_img{
    display: flex;
    align-items: center;
    justify-content: center;

    width: 25px;
    height: 25px;

    /*border-radius: 6px;
    background-color: #e9f6ff;
    border: 1px solid #9fd3f2;*/
    border-radius: 5px;

    cursor: pointer;
    user-select: none;

    font-size: 16px;
    line-height: 1;

    transition: 
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.1s ease;
}

.forfarLibre_img:hover{
    background-color: #cfefff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    border-radius: 5px;
}

.forfarLibre_img:active{
    transform: scale(0.95);
    background-color: #b7e3fa;  
}

.forfarLibre_img:focus{
    outline: none;
    box-shadow: 0 0 0 2px #4aa3df;  
}

.resultadosdebusqueda {
    display: flex; justify-content: center;
    width: 100%;    
    background-color: #ABE6EF;
    height: calc(50% - 165px);
    position: relative; /* estabilidad */
}

.resBusq_contenedor {
    display: none;
    border: 1px solid #ABE6EF;
    background-color: #ABE6EF;
    width: 70%;
    max-height: 100%;        /* 🔑 límite visual */
    overflow-y: auto;       /* 🔑 solo si hace falta */
    font-size: 11px;
    color: #03036a;
    box-sizing: border-box;
}


.resultado_item {
    padding: 5px;
    cursor: pointer; /* Cambia el cursor a manito */
    background-color: #fff; /* Color inicial */
    border-bottom: 1px solid #ddd;
    transition: background-color 0.4s ease; /* Transición suave para el cambio de color */
}

.resultado_item:hover {
    background-color: #bef5be; 
}

.resultado_item.no-hover:hover {
    background-color: inherit;
    color: inherit;
}

.resultado_item:active {
    background-color: #fdf3b5; 
    color: #d20303;
}

.resultado_item.activo {
    background-color: #bef5be;
}

.resultado_item:focus {
    outline: none;
    background-color: #bef5be;  
}



.obj_{/*padre*/
    background: #ABE6EF;
    width: 100%;
    height: 92%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.obj_prescripcion{/*hijo*/
    width: 100%;
    height: 22px;
    display: grid;
    grid-template-columns: 30% 20% auto 10% 7% 7%;
    font-size: 11px;
    box-sizing: border-box;
}

.obj_prescripcion:nth-child(even){
    background: #abeddd;
}

.obj_prescripcion:nth-child(odd){
    background: #e8edde;
}

#obj_prescripcionCbz{
    background: #84C4CE;
    width: 100%;
    height: 25px;
    display: grid;
    grid-template-columns: 30% 20% auto 10% 7% 7%;
    font-size: 12px;
}

.obj_prescripcion_item{
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    border-bottom: 1px solid #03036a;
    margin-bottom: 1px;
}

.obj_prescripcion_item.pres_nombre {
    justify-content: left;
    padding-left: 10px;
}

.obj_prescripcion_item.pres_presentacion {
    justify-content: left;
    padding-left: 10px;
}

.obj_prescripcion_item.pres_dosificacion {
    justify-content: left;
    padding-left: 10px;
}

.pres_dosificacion{
    overflow-y:hidden
}

.medicar_reportes{
    background-color: #ABE6EF;
    display: flex; 
    width: 100%;
    height: 30px;
}


