/* Estilos para Buscador de registros del Archivo Diocesano de Palencia */

.fondo {text-align: center; font-weight: bold}
.container thead th { position: sticky; top: 0;}
thead {
	border: 2px solid #f9f9f9;
}
th {
	cursor: pointer;
	background:#ddd;
	border: 5px solid #f9f9f9;
	text-align: center;
}
h4 {
	color: blue;
	font-weight: bold;
}
button {
	cursor: pointer;
	font-size: medium;
	font-weight: bold;
	padding: 2px;
}
input::placeholder {
    background-color: #eeeeee;
    opacity: 1;
}
input[type='date'] {
    background-color: #eeeeee;
}
.botones {
	position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.boton-centro {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.boton-derecha {
    margin-left: auto;
}
.fondo-select {
    background-color: #eeeeee;
}
#volver_original {
	font-weight: bold;
	border: 2px solid blue;
	background: #f0f0f0;
}

#drag-contenedor {
    position: absolute;
    overflow: hidden;
    background: #321501;
}

#imagen {
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    max-width: none !important;
    max-height: none !important;
    width: auto;
    height: auto;
    margin: 0;
    cursor: move;
    user-select: none;
    -webkit-user-drag: none;
}

/*
#drag-contenedor{
	position: fixed;
	left: 0%;
	top: 5%;
	background: #321501; 
	overflow: hidden;
	max-width: 100%;	
	width: 100%;
	border: 3px solid red;
}

#imagen{
	cursor: move;
	user-select: none;
	left: 0;
	top: 0;
}
*/

#pantalla{
	position: absolute;
	left: 0%;
	top: 0%;
	width: 100%;
	height: 100%;
	background: #000;
	z-index: -1;
	visibility: hidden;
}

#ojo2{
	left: 85%; 
}

#tabla_cura td{
	background: #e0e0e0;
	border: 2px solid rgb(249,249,249);
}

.una_fila{
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-weight: bold;
  }
.una_fila:hover{
	overflow: visible;
  }
  
.cura{
	font-weight: normal;
	color: black;
	font-size: 10pt;
}
.table-nowrap th, .table-nowrap td{
	white-space: nowrap;
}
.menu-idx{
	position: fixed; 
	width: 100%; 
	background: #000000; 
	top: 0%; 
	height: 5%; 
	z-index: 9;
}

.anterior-idx{
	left: 2%; 
}

.posterior-idx{
	left: 6%; 
}

.aleja-idx{
	left: 28%; 
}

.acerca-idx{
	left: 32%; 
}

.lista-idx{
	left: 48%; 
}

.enviar-idx{
	left: 74.7%; 
}

.consulta-idx{
	left: 82%;
}

.cerrar-idx{
	left: 96%; 
}

.anterior,.posterior,.aleja,.acerca,.lista,.enviar,.consulta,.cerrar{
	position: absolute; 
	top: 16%; 
	cursor: pointer; 
	background: #606060; 
	padding-bottom: 5px;
	width: 3%;
}

.fixed {
	position: fixed;
	top: 0;
}

.row-matri {
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	margin-right: -15px;
	margin-left: -7px;
	height: 4.5%;
}
	
.col-matri {
	-ms-flex-preferred-size: 0;
	flex-basis: 0;
	-ms-flex-positive: 1;
	flex-grow: 1;
	max-width: 100%;
	height: 75%;
	}
	
.row-bauti {
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	margin-right: -15px;
	margin-left: -7px;
	height: 7%;
}
	
.col-bauti {
	-ms-flex-preferred-size: 0;
	flex-basis: 0;
	-ms-flex-positive: 1;
	flex-grow: 1;
	max-width: 100%;
	height: 75%;
	}
	
.matri {
	display: block;
	width: 100%;
/*	height: calc(0.7em + 0.75rem + 2px);	*/
	height: 95%;
	padding: 0.375rem 0.75rem;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: #495057;
	background-color: #fff;
	background-clip: padding-box;
	border: 1px solid #ced4da;
	border-radius: 0.25rem;
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
	}
	  
.original {
	position: absolute; 
	top: 5%; 
	max-width: 100%; 
	background-color: #61310a; 
	z-index: 1; 
	padding: 20px;
	width: 100%;
	align-content: center;
}
.masdatos {
	width: 100%;
	align-content: center;
}
.puntero {
	cursor: pointer;
}
.blanco {
	color: white;
	font-size: 1.3rem;
	font-weight: bold;
}
.rojo {
	color: red;
	font-weight: bold;
}
.azul {
	color: blue;
	font-weight: bold;
}
.borde {
	border: 4px solid red;
}
.derecha {
	text-align: right;
}
.centro {
	text-align: center;
}
.izquierda {
	text-align: left;
}
.padd3 {
	padding: 3px;
}

.panel-reporte-error {
    position: absolute; z-index: 9999;
    background: #fff; border: 1px solid #ccc; border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,.2); width: 260px; font-size: 14px;
}

.panel-reporte-header { background:#f5f5f5; padding:8px; font-weight:bold; border-bottom:1px solid #ddd; }

.panel-reporte-body { padding:8px; }

.panel-reporte-body input { width:100%; box-sizing:border-box; padding:4px; margin-top:4px; }

.panel-reporte-footer { padding:8px; text-align:right; border-top:1px solid #eee; }

.panel-reporte-footer button { margin-left:6px; }

/* ============================================
   VELO DE CARGA (loading overlay)
   ============================================ */

#velo-carga {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    /* Evita que el usuario interactúe con lo de debajo */
    cursor: wait;
}

#velo-carga.activo {
    display: flex;
}

/* Contenedor del spinner + texto opcional */
.velo-carga-contenido {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* Spinner animado con CSS puro (sin imágenes) */
.velo-carga-spinner {
    width: 56px;
    height: 56px;
    border: 6px solid rgba(255, 255, 255, 0.25);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: velo-carga-girar 0.8s linear infinite;
}

@keyframes velo-carga-girar {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.velo-carga-texto {
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}


/* =========================================
   VISOR DE ORIGINALES ADAPTABLE
   ========================================= */

#trabajo {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: 9;
    background: #321501;
}

/* Menú superior */

.menu-idx {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 54px;
    background: #000;
    z-index: 9;
}

.anterior-idx  { left: 2%; }
.posterior-idx { left: 6%; }
.aleja-idx     { left: 28%; }
.acerca-idx    { left: 32%; }
.lista-idx     { left: 48%; }
.cerrar-idx    { left: 96%; }

.anterior, .posterior, .aleja, .acerca,
.lista, .cerrar {
    position: absolute;
    top: 15%;
    cursor: pointer;
    background: #606060;
    width: auto;
    padding: 4px 7px;
}

#fichero_texto {
	position: absolute;
    left: 12%;
    top: 30%;
    color: white;
}

.pagina {
	position: absolute;
    left: 56%;
    top: 16%;
    color: white;
}

#enviar_nro_imagen {
    background: #606060;
}

/* Contenedor de la imagen */

#drag-contenedor {
    position: absolute;
    top: 54px;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    background: #321501;
}

/* Imagen */

#imagen {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: move;
    user-select: none;
    -webkit-user-drag: none;
}

/* Lista desplegable */

.mostrar_lista {
    position: absolute;
    max-width: 90%;
    left: auto;
    right: 10px;
    top: 100%;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid grey;
    display: none;
    z-index: 10;
}

/* =========================================
   MÓVILES Y PANTALLAS ESTRECHAS
   ========================================= */

@media (max-width: 700px) {

    .menu-idx {
        min-height: 90px;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 5px;
        padding: 5px;
    }

    .menu-idx button img {
        width: 18px;
    }

/*    #fichero_texto {
        order: 10;
        flex: 1 1 100%;
        font-size: 12px;
    }*/

    .pagina {
        font-size: 12px;
    }

    #pagina {
        width: 38px;
    }

    #drag-contenedor {
        top: 90px;
    }

    .mostrar_lista {
        max-width: 95%;
        right: 5px;
        padding: 10px;
    }
}

@media (max-width: 700px) {

    .menu-idx {
        height: 90px;
        display: flex;
        flex-wrap: wrap;
        align-content: center;
        justify-content: space-around;
        gap: 5px;
        padding: 5px;
        box-sizing: border-box;
    }

    .menu-idx button {
        position: static;
        width: auto;
        padding: 5px 8px;
        margin: 0;
    }

    .menu-idx button img {
        width: 18px;
    }

    #fichero_texto {
        position: static;
        order: 3;
        flex: 1 1 100%;
        text-align: center;
        font-size: 12px;
        white-space: nowrap;
    }

    .pagina {
        position: static;
        font-size: 12px;
        white-space: nowrap;
    }

    #pagina {
        width: 35px;
    }

    #drag-contenedor {
        top: 90px;
    }
}

