@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Merriweather Sans';
  font-style: normal;
  font-weight: 400;
  src: url('../_fonts/merriweather-01.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Crimson Pro';
  font-style: normal;
  font-weight: 400;
  src: url('_fonts/crimson-pro-01.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

@font-face {
      font-family: 'Roboto';
      src: url('_fonts/roboto-01.woff2') format('woff2');
      font-weight: 400;
      font-style: normal;
    }

*{
    box-sizing: border-box;
}
input{
    background-color: rgb(253, 251, 251); color: #27278d;
    width: 98%; height: 98%;
    display: flex; justify-content: center;
    border: 1px solid #84C4CE; border-radius: 4px;
    text-align: center;
    font-size: 11px;
}

input:focus{
    outline: none;
    border: 1px solid #188dfb; border-radius: 4px;
    background-color: rgb(250, 250, 224);
}

textarea {
    background-color: black; 
    color: aquamarine;
    width: 100%;    
    height: auto;            /* 🔥 CAMBIO CRÍTICO */
    display: block; 
    font-size: 11px;
    flex: 1 1 auto;          /* 🔥 */
    resize: none;
    box-sizing: border-box;   
    border: none;
    outline: none;
    margin: 0;
    overflow-y: auto;
    scrollbar-width: none;
    min-height: 0;           /* 🔥 */
}


/* Chrome, Edge, Safari */
textarea::-webkit-scrollbar {
    display: none;
}

select {
    background-color: rgb(253, 251, 251);
    color: #03036a;
    width: 98%;
    height: 100%;
    margin-top: 1px; 
    margin-bottom: 1px;             
    display: block;          
    border: 1px solid #84C4CE;
    border-radius: 4px;
    text-align: center;
    font-size: 11px;
    box-sizing: border-box;
}

select::-webkit-scrollbar {
    display: none;
}

/* Opciones IMPARES (1, 3, 5...) */
select option:nth-child(odd) {
    color: #03036a;            
    background-color: #ABE6EF; /* Tu color azul claro actual */
}

/* Opciones PARES (2, 4, 6...) */
select option:nth-child(even) {
    color: #03036a;            
    background-color: #84C4CE; /* Color blanco intercalado */
}
/**********************************************/
/*Clases para las transiciones suaves.  * * *  */
/**********************************************/
/* Clase que aplicará a cualquier título o contenedor de mensaje que use transiciones */
.transicion-suave {
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
}

.transicion-suave.oculto {
    opacity: 0 !important;
}

/**********************************************/
/*Botones * * *  */
/**********************************************/
input[type="button"], 
input[type="submit"], 
button {
    width: 100%;
    height: 100%;
    box-sizing: border-box; /* Evita que el borde y padding rompan el tamaño */
    margin: 2px;            /* Margen externo solicitado */
    padding: 8px;          /* Espaciado interno para que respire el texto */
    background-color: #0056b3; /* Azul fuerte, profesional y serio */
    color: #ffffff;            /* Letra blanca */
    font-size: 10px;    
    border: 1px solid #ffffff; /* Borde de 1px blanco */
    border-radius: 5px;        /* Bordes suavemente redondeados */
    cursor: pointer; /* Efecto manito/cursor */
    transition: all 0.3s ease; /* Transición general suave para los estados */
}

/* Efecto Hover para que reaccione elegantemente cuando el usuario pasa el mouse */
input[type="button"]:hover, 
input[type="submit"]:hover, 
button:hover {
    background-color: #004085; /* Se oscurece un poco al pasar el cursor */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); /* Sutil sombra de profundidad */
}
/**********************************************/
/* Boton inactivo con alta especificidad */
/**********************************************/
input[type="button"].boton_inactivo, 
input[type="submit"].boton_inactivo, 
button.boton_inactivo {
    background-color: #aeb5bd !important; /* Gris suave */
    color: #ffffff !important;
    border: 1px solid #ffffff !important;
    cursor: default !important;
    pointer-events: none !important; /* Bloquea el clic */
    box-shadow: none !important;
}
/********************************************************/
html, body {
    background: #ABE6EF;
    height: 100%; margin: 0;
    font-size: 12px; color:#03036a;
    overflow: hidden;
    font-family: 'Merriweather Sans';    
}

body::-webkit-scrollbar {
    display: none;
}

.error{
    background: #f8fafa; color: red;
    display: flex; justify-content: center; align-items: center;
    width: 100%; height: 100%;
    border: 1px solid red; border-radius: 5px;
    font-size: 11px;
    text-align: center;
}

.ok {
    background: #cffadc; 
    color: rgb(15, 141, 48);
    display: flex; 
    justify-content: center; 
    align-items: center;
    width: 100%; 
    height: 100%;              /* ← Heredar altura del contenedor */
    border: 1px solid rgb(15, 141, 48);
    border-radius: 5px;
    font-size: 11px;
}

.form_historiaCweb{
    width: 100%; height: 100%;
}

.box {
    display: flex; flex-direction: column;
    width: 100%;  height: 100%;
    overflow: hidden;     
}

.datos_usuario {
    background: #ABE6EF;
    display: flex;
    width: 100%;
    height: 40px;
}

.paciente_profesional {
    background: #c9d1ce; 
    color: #03036a;
    width: 100%;
    display: flex;
    justify-content: space-between; /* Empuja los dos bloques a los extremos */
    height: 40px; 
    align-items: center;
    font-size: 14px;
}

.paciente {
    background: #c9d1ce; 
    color: #03036a;
    display: grid; 
    grid-template-columns: 240px 30px 100px 30px 120px 30px 260px 30px 60px 30px 140px 30px 120px 30px 200px 30px auto;
    flex: 1; 
    height: 100%;    
    align-items: center;
    font-size: 13px;
    overflow: hidden; /* Evita que el grid de pacientes empuje al profesional hacia afuera */
}

.datoP{
    display: flex;
    justify-content:left; align-items: center;
    width: 100%;
    height: 25px;
    font-weight: bold;
}

.img_dp{
    display: flex;
    justify-content: center; align-items: center;
    width: 35px;
    height: 35px;
}

.img_dp img{
    height: 25px; width: 25px;
}

.paciente_buscador_input{
    display: flex;
    width: 230px; height: 25px;
    margin-left: 10px;
}

.boton_crearPaciente{
    display: flex;
    width: 100px; height: 25px;
}


.usuario_buscador{
    background: #eeecaa;
    display: flex;
    width: 25%;
    height: auto;        /* 🔑 CAMBIO CLAVE */
    position: relative;
}

.profesional {
    background: #84C4CE; 
    color: #03036a;
    display: flex;             /* Cambiamos CSS Grid por Flexbox */
    align-items: center; 
    justify-content: flex-end; /* Alinea los botones a la derecha */
    gap: 8px;                  /* Espaciado constante entre botones */
    padding: 0 8px;            /* Pequeño margen interno de protección */
    width: auto;               /* Se ajusta orgánicamente según la vista */
    min-width: 350px;   
    flex-shrink: 0;     
    height: 100%;    
    box-sizing: border-box;
}

/* El bloque con el nombre y registro tomará todo el espacio sobrante a la izquierda */
.prof_nom_reg {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
    white-space: nowrap;     /* Evita que el texto salte a una segunda línea */
    overflow: hidden;        /* Oculta lo que no quepa */
    text-overflow: ellipsis;
}

.prof_nombre{
    padding-left: 4px;
    font-size: 11px;
    font-weight: bold;
    color: #912f58;

}

.prof_registro{
    padding-left: 4px;
    font-size: 11px;    
    color: #03036a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

}

.prof_boton {   
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;           /* Garantiza que no se encojan */
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.prof_boton img{
    max-width: 30px;
    max-height: 30px;
}

.prof_boton:hover {
    transform: scale(1.05);
    opacity: 0.85;
}

.box_botoneras{
    background: #ABE6EF;
    display: flex; align-items: center;
    flex: 0 0 31px;
    padding: 0px;   
}

.box_botoneras img{
    width: 100%;
    max-height: 31px;  
}

.botenera_1v{
    display: flex; align-items: center;
    margin-left: 10px; 
    gap: 10px;   
}

.resul_busqueda{
    background: #eeecaa;
    display: flex;
    flex: 0 0 auto;
    width: 25%;
    height: auto;        /* 🔑 CAMBIO CLAVE */
    position: relative;
}

#usuario_resultados{
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: none;
    background: #fff;
    scrollbar-width: none;
    margin-left: 10px;
    margin-top: 10px;
    border: 1px solid #03036a;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
}

#usuario_resultados option {
    padding: 6px 10px;       /* 🔑 separación vertical */
    font-size: 13px;
    line-height: 1.4;
    font-weight: bold;
}

#usuario_resultados option:nth-child(even) {
    background-color: #f2f6f9;
}

#usuario_resultados option:nth-child(odd) {
    background-color: #84C4CE;
}

.contenido {
    flex: 1 1 auto;     /* 👈 ocupa TODO el resto */
    display: flex;
    overflow: hidden;   /* 👈 bloquea scroll externo */
}

.contenido_1v{
    background: #ABE6EF;
    position: relative;
    display: block; /* Quitamos el flex para que no empuje la imagen */   
    width: 40%; height: 100vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.contenido_2v{
    display: flex; flex-direction: column;
    width: 60%; height: 100%;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;   
}

.contenido_1v::-webkit-scrollbar,
.contenido_2v::-webkit-scrollbar {
    display: none;
}
.error_informe{
    background: #ABE6EF; color: red;
    display: flex; 
    width: 100%;
    padding-right: 10px;
    padding-bottom: 10px; 
    flex: 1 1 auto;
}
/****************************************************************************************************/
/*transicion para cargar modulos*/
/****************************************************************************************************/
.efecto-fade {
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.fade-visible {
    opacity: 1;
}

/* Contenedor de transición expandido al 100% y centrado absoluto */
.img_transicion {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: inherit; /* Hereda la altura mínima si el contenedor padre la tiene */
    background-color: inherit; /* Hereda automáticamente el color de fondo del formulario/contenedor */
    box-sizing: border-box;
    padding: 20px;
}

/* Ajuste de la imagen para que mida 100px y mantenga su proporción */
.img_transicion img {
    width: auto !important;
    height: auto !important;
    object-fit: contain; /* Garantiza que el GIF se escale perfectamente sin cortarse ni deformarse */
    margin-bottom: 12px;
}

/* Texto opcional debajo del GIF */
.img_transicion p {
    margin: 0;
    font-size: 14px;
    color: #666; /* O el color de texto de tu paleta */
}
/****************************************************************************************************/
/*Login*/
/****************************************************************************************************/
.login-box {
    position: absolute;
    top: 0px;                 
    /*transform: translateY(-50%); */
    left: 50px;                
    z-index: 10;              
    
    width: 100%;
    max-width: 250px;
    padding: 10px;
    background: #cfefff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2); 
}

.login-box2 {
    width: 100%;
    max-width: 250px;
    padding: 10px;
    background: #cfefff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2); 
}

.login-box h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
}

/* El contenedor que decide las dimensiones exactas de tus inputs y del botón */
.login-input-contenedor {
    width: 100%;
    height: 25px;       /* Ajusta este valor en píxeles para darles la altura exacta a tu gusto */
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Reemplazo del label original */
.login-texto-label {
    display: block;
    width: 100%;
    height: 16px;       /* Altura fija para el texto guía */
    color: #666;
    font-size: 11px;
    line-height: 16px;
}

.login-actions {
    margin-bottom: 12px;
    text-align: right;
}

.olvido-pass {
    font-size: 11px;
    color: #007bff;
    text-decoration: none;
}

/* El botón ahora hereda las dimensiones del contenedor padre (igual que tus inputs) */
.btn-enviar {
    width: 98%;
    height: 98%;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-enviar:hover {
    background: #218838;
}

.registro-link {
    margin-top: 8px;
    text-align: center;
    font-size: 11px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.registro-link a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    margin-left: 5px;
}

.img-container {
    width: 100%;
    height: 100%; /* Asegúrate de que el contenedor padre tenga una altura definida */
    display: flex;
    justify-content: center;
    align-content: center;
    overflow: hidden; /* Oculta cualquier desbordamiento */
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Mantiene la proporción y cubre todo el espacio */
    object-position: center; /* Centra la imagen si hay recorte */
}
/****************************************************************************************************/
/*Modulo Crear paciente*/
/****************************************************************************************************/
.paciente_crear{
    background: #ABE6EF ;
    display: flex; justify-content: center; align-items: center; 
    width: 100%; height: 100%;
}

.pacienteCrear_box{
    background: #cfefff;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    width: 400px; height: 80%;
    border-radius: 10px;    
}

.datos_paciente{
    color: #03036a;
    display: flex; justify-content: center;
    width: 200px; height: 30px;
    margin-bottom: 10px;
    font-size: 20px;
}

/*.pais_nombre select {
    color: #03036a;
    width: 160px;
    height: 100%;
    font-size: 11px; 
    box-sizing: border-box;
}*/

.bandera{
    color: #03036a;
    display: flex; justify-content: center;
    width: 40px; height: 30px;
    margin-bottom: 10px;
    font-size: 20px;
}


/****************************************************************************************************/
/*Modulo Paciente Creado*/
/****************************************************************************************************/
.creado{
    background: #ABE6EF ;
    display: flex; justify-content: center; align-items: center; 
    width: 100%; height: 100%;
}

.creado_box{
    background: #84C4CE;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    width: 70%; height: 80%;
    border-radius: 10px;   
    padding: 20px; 
}

.creado_mensaje{
    background: #cffadc; color: rgb(15, 141, 48);
    display: flex; justify-content: center; align-items: center;
    width: 100%; height: 30%;
    border: 1px solid rgb(15, 141, 48); border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
}

.creado_opciones{
    display: flex; flex-direction: row; justify-content: center;
    width: 100%; height: 70%;
    border-radius: 10px;
}

.creado_abrirH{     
    display: flex; flex-direction: column; justify-content: center;  
    width: 50%; height: 30px; margin-right: 5px;
    border-radius: 10px;
}

.creado_crearNuevo{
    display: flex; flex-direction: column; justify-content: center;
    width: 50%; height: 30px;  margin-left: 5px; 
    border-radius: 10px;
}
/****************************************************************************************************/
/*Modulo Crear Profesional*/
/****************************************************************************************************/
.profesional_empresa{
    display: flex; justify-content: center; align-items: center;
    width: 100%; height: 30px;
}

.btnprof_empresa_box{
    display: flex; justify-content: center; align-items: center;
    width: 50%; max-height: 30px;
}

/* 1. Aseguramos el comportamiento del bloque que contiene el formulario */
.profesional_crear {
    background: #ABE6EF;
    display: block; /* Lo dejamos en block para que caiga de forma natural debajo de los botones */
    width: 100%;
    height: auto;
    padding: 20px 0; /* Espacio para que respire arriba y abajo */
    box-sizing: border-box;    
}

/* 2. Forzamos el centrado perfecto del hijo usando el truco del 'margin auto' */
.profesionalCrear_box {
    background: #cfefff;
    display: flex; 
    flex-direction: column; 
    justify-content: flex-start; 
    align-items: center;
    
    width: 450px; 
    height: auto; 
    /* Evita que se salga de pantallas laptop pequeñas restando la barra de botones */
    max-height: calc(100vh - 120px); 
    
    /* EL TRUCO CLAVE: 0 arriba/abajo, y AUTO a los lados centra el div en display block */
    margin: 0 auto; 
    
    padding: 30px 20px; 
    border-radius: 10px;
    box-sizing: border-box; /* Crucial para no romper el ancho de 450px con el padding */
    
    /* Scroll interno sin barras */
    overflow-y: auto;
    scrollbar-width: none; 
    -ms-overflow-style: none;  
}

/* 3. Ocultar la barra en navegadores basados en Chromium */
.profesionalCrear_box::-webkit-scrollbar {
    display: none;
}

.datos_profesional{
    color: #03036a;
    display: flex; justify-content: center;
    width: 200px; height: 30px;
    margin-bottom: 10px;
    font-size: 20px;
}

.datos_profesional_pw{
    color: #03036a;
    display: flex; justify-content: center;
    width: 200px; height: 30px;
    margin-bottom: 2px;
    font-size: 20px;
}

/*.pais_nombre select {
    color: #03036a;
    width: 160px;
    height: 100%; /* Para que ocupe los 30px de alto del contenedor padre */
    /*font-size: 11px; /* O el tamaño exacto de tus inputs de texto */
    /*box-sizing: border-box;
}*/

.bandera{
    color: #03036a;
    display: flex; justify-content: center;
    width: 40px; height: 30px;
    margin-bottom: 10px;
    font-size: 20px;
}
/****************************************************************************************************/
/*Modulo Profesional Creado*/
/****************************************************************************************************/
.prof_creado{
    background: #ABE6EF;
    display: flex; flex-direction: column; justify-content: center; align-items: center; 
    width: 100%; height: 100vh;
    box-sizing: border-box;
}

.prof_creado_box{
    background: #ABE6EF;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    width: 70%; 
    border-radius: 10px;   
    padding: 20px; 
    box-sizing: border-box;
}

.prof_creado_box * {
    margin-top: 0; /* Elimina márgenes superiores heredados que empujan el box hacia abajo */
}

.prof_creado_mensaje{
    background: #e3f8e9; color: rgb(17, 129, 47);
    display: flex; justify-content: center; align-items: center; text-align: center;
    width: 100%; height: auto;
    border: 1px solid rgb(15, 141, 48); border-radius: 10px;
    font-size: 20px;
    margin-bottom: 20px;
}

.prof_creado_mensaje2{
    /*background: #e3f8e9; color: rgb(17, 129, 47);*/
    display: flex; justify-content: center; align-items: center;
    width: 100%; height: auto;
    /*border: 1px solid rgb(15, 141, 48); border-radius: 10px;*/
    font-size: 15px;
    margin-bottom: 20px;
}

.prof_creado_mensaje3{
    /*background: #e3f8e9; */
    color: #007bff;
    display: flex; justify-content: center; align-items: center;
    width: 100%; height: auto;
    /*border: 1px solid rgb(15, 141, 48); border-radius: 10px;*/
    font-size: 20px;
    margin-bottom: 50px;
}
/****************************************************************************************************/
/*Terminos del contrato*/
/****************************************************************************************************/  
.contrato-box {
    display: flex;
    flex-direction: column;
    background: #ABE6EF;
    height: 100%; /* Toma todo el alto disponible del padre */
    width: 100%;       
    padding: 220px 220px 220px 100px;
    font-family: sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    overflow: hidden; /* FIJO: Evita que el fondo azul genere desbordamiento */
    box-sizing: border-box; /* Crucial para que el padding no sume tamaño extra */
}

/* 3. NIETO: El único que tiene el scroll y respeta el alto de su padre */
.contrato-contenedor {
    background: #fff;
    flex: 1; /* Absorbe de forma inteligente todo el alto restante dentro de contrato-box */
    width: 100%;       
    padding: 40px; /* Ajustado para que el texto respire de manera elegante */
    font-family: sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    overflow-y: auto; /* SCROLL: Solo este contenedor tendrá barra si el texto es largo */
    box-sizing: border-box;
}

.contrato-titulo {
    text-align: center;
    font-size: 18px;
    margin-bottom: 20px;
    color: #111;
}

.contrato-clausula {
    font-size: 15px;
    margin-top: 20px;
    color: #000;
}

/* Alineación para el bloque del checkbox */
.contenedor-checkbox {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px; /* Separación limpia entre el cuadro y el texto */
    text-align: left;
}

.contenedor-checkbox input[type="checkbox"] {
    width: auto; /* Evita que el checkbox se estire al 100% */
    cursor: pointer;
    position:absolute;
    top: 50%; transform: translateY(-50%);
    /*right: 10px;*/
    left: 20px;
}

.contenedor-checkbox label {
    font-size: 11px;
    cursor: pointer;
    position:absolute;
    top: 50%; transform: translateY(-50%);
    /*right: 10px;*/
    left: 50px;
}

.contenedor-checkbox a {
    color: #007bff; /* O el color corporativo que uses para enlaces */
    text-decoration: underline;
   
}
/****************************************************************************************************/
/*Modulo Historia Clínica*/
/****************************************************************************************************/
.hc{
    background: #ABE6EF ;
    display: flex; justify-content: center;
    width: 100%; height: auto;
}

.hc_box{
    background: #ABE6EF;
    display: flex; flex-direction: column; 
    width: 100%; height: auto;
    border-radius: 10px;   
    padding-left: 10px;
    padding-right: 10px; 
}

.hc_tituloItem{
    background: #84C4CE;
    display: flex; justify-content: center; align-items: center;
    width: 100%; height: 15px;
}

.hc_dx{
    background: #aaeeb2;
    display: flex; justify-content: center; align-items: center;
    width: 100%; height: 15px;  
    border-radius: 5px;  
}

.hc_mc{
    background: #eeecaa;
    display: flex; flex-direction: column;
    width: 100%; height: 40px;
    margin-bottom: 5px; 
    border-radius: 50px;
}

.hc_mcContenido{
    background: #eeecaa;
    display: flex; flex-direction: column;
    width: 100%; height: 25px;
}

.hc_ea{
    background: #eeecaa;
    display: flex; flex-direction: column;
    width: 100%; 
    height: auto;              /* 👈 CLAVE */
    min-height: 75px;
    margin-bottom: 5px; 
    border-radius: 5px;
}

.hc_eaContenido{
    background: #eeecaa;
    display: flex; flex-direction: column;
    width: 100%; height: 60px;
    transition: height 0.25s ease;   /* 👈 animación */
}

.hc_eaContenido textarea {
    flex: 1 1 auto;
    height: auto;     /* 👈 CLAVE */
}

/* 👇 cuando algún hijo tenga foco */
.hc_eaContenido:focus-within {
    height: 240px;
}

.hc_antRs{
    background: #ABE6EF;
    display: flex; 
    width: 100%; height: 120px;
    margin-bottom: 5px;
}

.hc_ant{
    background: #828179;
    display: flex; flex-direction: column;
    width: 70%; height: 120px;    
    border-radius: 5px;
    margin-right: 1px;
}

.hc_antContenido{
    background: #eeecaa;
    display: flex;
    width: 100%; height: 105px;    
}

.hc_rxs{
    background: #828179;
    display: flex; flex-direction: column;
    width: 30%; height: 120px;    
    border-radius: 5px;
    margin-left: 1px;
}

.hc_rxsContenido{
    background: #eeecaa;
    display: flex;
    width: 100%; height: 105px;
}

.hc_sv{
    background: #eeecaa;    
    width: 100%; height: 45px;
    margin-bottom: 5px; 
    border-radius: 5px;
}

.hc_svContenido{
    background: #ABE6EF;
    display: grid;
    grid-template-columns: 1.5fr repeat(11, 1fr); 
    width: 100%; height: 30px;
}

.sv_item{
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    width: 100%; height: 30px; 
    font-size: 10px;
}

.sv_tituloItem{
    background: #ABE6EF;
    display: flex; justify-content: center; align-items: center;
    width: 100%; height: 10px;
}

.sv_contenidoItem{
    background: #ABE6EF;
    display: flex; justify-content: center; align-items: center;
    max-width: 40px; height: 20px;
}

.sv_contenidoItemTA{
    background: #ABE6EF;
    display: flex; justify-content: center; align-items: center;
    width: 80px; height: 20px;
}

.hc_ef{
    background: #eeecaa;
    display: flex; flex-direction: column;
    width: 100%; height: 200px;
    margin-bottom: 5px; 
    border-radius: 5px;
}

.hc_efContenido{
    background: #eeecaa;
    display: flex; flex-direction: column;
    width: 100%; height: 185px;
}

.hc_ana {
    background: #eeecaa;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 150px;
    margin-bottom: 5px;
    border-radius: 5px;
}

.hc_anaContenido {
    background: #eeecaa;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 135px;
    overflow: hidden;
    transition: height 0.3s ease;
}

.hc_anaContenido:focus-within {
    height: 300px;
}

.hc_anaContenido textarea {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;   /* 👈 MUY IMPORTANTE */
}

.hc_recom{
    background: #eeecaa;
    display: flex; flex-direction: column;
    width: 100%; height: 75px;
    margin-bottom: 5px; 
    border-radius: 5px;
}

.hc_recomContenido{
    background: #eeecaa;
    display: flex; flex-direction: column;
    width: 100%; height: 60px;
}

.hc_dx2{
    background: #eeecaa;
    display: flex; flex-direction: column;
    width: 100%; height: auto;
    margin-bottom: 5px; 
    border-radius: 5px;
    overflow: visible;
}

.hc_dx2Contenido{
    background: #eeecaa;
    display: flex; flex-direction: column;
    width: 100%; height: auto; max-height: none; overflow: visible;
}

.obj_dx2_box{
    background: #ABE6EF;
    display: grid;
    grid-template-columns: 45px auto 100px 120px; 
    width: 100%; height: 20px;
}

/***/
.obj_dx2 {
    position: relative;
}

.obj_dx2 select{
    height: 98%;
}

.dx_sugerencias {
    background: #fff;
    border: 1px solid #ccc;
    max-height: 220px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 1px;
    position: absolute;
    left: 0;
    right: 0;    
}

.dx_sugerencias.arriba {
    top: auto;
    bottom: 100%;
    margin-bottom: 1px;
}

.dx_item {
    padding: 2px 2px;
    cursor: pointer;
    font-size: 10px;
    height: 20px;
}

.dx_item:hover {
    background: #e9f2ff;
}

.dx_item.activo {
    background: #cfefff;
}

.msj_alert{
    background: #ABE6EF ;
    display: flex; justify-content: center; align-items: center; 
    width: 100%; 
    height: 20px;
    overflow: hidden;
    transition: height 0.2s ease;
}
/****************************************************************************************************/
/*Modulo Registros de Atenciones*/
/****************************************************************************************************/
.registroConsultas{
    background: #ABE6EF;
    display: flex; justify-content: center;
    width: 100%; height: 100%;
}

.registroConsultas_box{    
    background: #ABE6EF;
    display: flex; flex-direction: column;
    flex: 1;
    width: 100%; height: 100%;
    padding-left: 10px;
    padding-right: 10px;    
}

.rHc_head{
    background: #84C4CE; 
    display: grid;
    grid-template-columns: 100px 150px auto 140px 30px 30px 30px;    
    width: 100%;
    height: 25px;
    
}

.rHc_head > * {
    background: #84C4CE; 
    display: flex; justify-content: center; align-items: center;  
    border: 1px solid #ABE6EF;
    width: 100%;
    height: 25px;
}

.rHc_head img{
    display: flex;    
    padding: 3px;
}

.objs_box{
    background: #84C4CE; 
    display: flex; flex-direction: column;
    width: 100%; height: auto;
}

.obj_registro{
    background: #84C4CE; 
    display: grid;
    grid-template-columns: 100px 150px 1fr 140px 30px 30px 30px;    
    width: 100%;
    height: 25px;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
}

.obj_registro > * {
    background: #84C4CE; 
    display: flex; justify-content: center; align-items: center;  
    border: 1px solid #ABE6EF;
    min-width: 0;
    height: 25px;
    white-space: nowrap;
    overflow: hidden;
}

.obj_registro > :nth-child(3){
    justify-content: flex-start; /* opcional, se ve mejor */
    padding-left: 5px;
    padding-right: 5px;
    text-overflow: ellipsis;
}

.objs_box img{
    display: flex;    
    padding: 3px;
}


/****************************************************************************************************/
 .btn-rojo{
    background-color:#dc3545 !important;
 }

 .btn-rojo:hover{
    background-color:#bd2e3d !important;
 }

#btn_reg-empresa{
    background-color: #117a3a;
}

#btn-paciente_crear{background: #1a67eb; color: #FFFFFF; border: 1px solid #eeecaa;  cursor: pointer;
    transition: background-color 0.4s ease, color 0.4s ease; height: 25px;}
#btn-paciente_crear:active{background: #eeecc1; color: #f04f92; border: 1px solid #f04f92; transform: scale(0.95);}

#btn-pacienteCrear_submit{
    background: #1a67eb; color: #03036a; border: 1px solid #eeecaa;  cursor: pointer;       
    transition: background-color 0.4s ease, color 0.4s ease;
}
#btn-pacienteCrear_submit:active{
    background: #e8e6c0; color: #f04f92; border: 1px solid #f04f92; transform: scale(0.95);
}

#btn-profesionalCrear_submit{
    color: #ffffd2; border: 1px solid #eeecaa;  cursor: pointer;       
    transition: background-color 0.4s ease, color 0.4s ease;
}
#btn-profesionalCrear_submit:active{
    background: #e8e6c0; color: #f04f92; border: 1px solid #f04f92; transform: scale(0.95);
}

#btn-paciente_nuevaHC{
    background: #0d8d27; color: #FFFFFF; border: 1px solid #ecebc1;  cursor: pointer;
    transition: background-color 0.4s ease, color 0.4s ease;
    width: 100%; height: 25px; border-radius: 10px;  
}
#btn-paciente_nuevaHC:active{background: #074f15; color: #ecebc1; border: 1px solid #ecebc1; transform: scale(0.95);}

#btn-cargarHcDesde_DB{
    background: #ffffd2; color: #03036a; border: 1px solid #03036a;  cursor: pointer;
    transition: background-color 0.4s ease, color 0.4s ease;
    width: 100%; height: 25px; border-radius: 10px;    
}
#btn-cargarHcDesde_DB:active{background: #a1a087; color: #03036a; border: 1px solid #ecebc1; transform: scale(0.95);}

#btn-guardarRegistroHC{
    background: #0d8d27; color: #FFFFFF; border: 1px solid #03036a;  cursor: pointer;
    transition: background-color 0.4s ease, color 0.4s ease;
    width: 100%; height: 25px; border-radius: 10px;  
}
#btn-guardarRegistroHC:active{background: #074f15; color: #ecebc1; border: 1px solid #03036a; transform: scale(0.95);}


#btn-abrirHc{
    background: #1a67eb; color: #FFFFFF; border: 1px solid #ecebc1;  cursor: pointer;
    transition: background-color 0.4s ease, color 0.4s ease;
    width: 100%; height: 100%; border-radius: 10px;
}
#btn-abrirHc:active{background: #e8e6c0; color: #f04f92; border: 1px solid #f04f92; transform: scale(0.95);}

#btn-crearNuevo{
    background: #0d8d27; color: #FFFFFF; border: 1px solid #eeecaa;  cursor: pointer;
    transition: background-color 0.4s ease, color 0.4s ease;
    width: 100%; height: 100%; border-radius: 10px;
}
#btn-crearNuevo:active{background: #e8e6c0; color: #f04f92; border: 1px solid #f04f92; transform: scale(0.95);}

.btn_principal {
    background: #e0e0e0;
    border: 1px solid #bbb;
    cursor: pointer;
}

.btn_principal.activo {
    background: #4CAF50;
    color: #fff;
    border-color: #4CAF50;
}

.contenido_1v img {
    height: 100%; width: 100%; object-fit: cover;
}

.contenido_2v img {
    height: 100%; width: 100%; object-fit: cover;
}

