/* CSS Document */
body{
	font-family: Arial,sans-serif;
	color: #333333;
	line-height: 1.166;	
	margin: 0px;
	padding: 0px;
}

a{
	color: #006699;
	text-decoration: none;
}

a:link{
	color: #006699;
	text-decoration: none;
}

a:visited{
	color: #006699;
	text-decoration: none;
}

a:hover{
	color: #006699;
	text-decoration: underline;
}

ul{
 list-style-type: square;
}

ul ul{
 list-style-type: disc;
}

ul ul ul{
 list-style-type: none;
}

label{
 font-family: Arial,sans-serif;
 font-size: 100%;
 font-weight: bold;
 color: #334d55;
}


/***********************************************/
/* Layout Divs - Estructura Base               */
/***********************************************/

#masthead{
	padding: 10px 0px 0px 0px;
	border-bottom: 1px solid #cccccc;
	width: 100%;
}

#navBar{
	float: left;
	width: 20%;
	margin: 0px;
	padding: 0px;
	background-color: #eeeeee;
	border-right: 1px solid #cccccc;
	border-bottom: 1px solid #cccccc;
}

#caja_right{
	float:right;
	width: 20%;
	border-left: 1px solid #cccccc;
	border-bottom: 1px solid #cccccc;
	padding-right: 10px;
	height: 60%;
}

#caja_contenedora{
	float: left;
  	width: 58%;
	height: 100%;
  	border-bottom: 1px solid #cccccc;
	border-left: 1px solid #cccccc;
	border-right: 1px solid #cccccc;	
}


/*********** #navBar link styles ***********/

#navBar ul a:link, #navBar ul a:visited {display: block;}
#navBar ul {list-style: none; margin: 0; padding: 0;}

/* hack to fix IE/Win's broken rendering of block-level anchors in lists */
#navBar li {border-bottom: 1px solid #EEE;}

/* fix for browsers that don't need the hack */
html>body #navBar li {border-bottom: none;}


/*********** #sectionLinks styles ***********/

#sectionLinks{
	margin: 0px;
	padding: 0px;
	font-size: 90%;
}

#sectionLinks h3{
	padding: 10px 0px 2px 10px;
}

#sectionLinks a {
	display: block;
	border-top: 1px solid #cccccc;
	padding: 2px 0px 2px 10px;
}

#sectionLinks a:hover{
	background-color: #dddddd;
}


/***********************************************/
/* Consolidacion de Estilos de Encabezado      */
/* Movidos de header.default.php               */
/***********************************************/

.trebuchet {
	font-family: 'Trebuchet MS', Arial, Helvetica, sans-serif;
}

.encabezado-contenedor {
	/* Centra el contenedor y limita su ancho como lo hacía la tabla */
	width: 80%; 
	margin: 0 auto; 
	display: flex; /* Usamos Flexbox para alinear elementos */
	justify-content: space-between; /* Espacia los elementos: Bienvenida, Logo, Cerrar Sesion */
	align-items: center; /* Centra verticalmente */
	padding: 10px 0;
}

.encabezado-logo-info {
	/* Contenedor para el logo y la version del software */
	text-align: left;
}

.linea-separadora {
	/* Clase que reemplaza la linea divisoria de la tabla */
	height: 3px;
	background-color: #000000;
	width: 90%;
	margin: 0 auto 5px auto; /* Centrar y añadir margen inferior */
}

/* Clase para el contenedor principal de la página, reemplaza la última fila de la tabla */
.cuerpo-pagina {
	width: 90%;
	height: 700px; /* Mantener la altura original */
	margin: 0 auto;
	padding-top: 10px;
	vertical-align: top;
	background-color: #F8FBFC;
}
/* Nuevos estilos para el Menú Lateral */
.titulo-menu {
    color: #0033CC;
    text-align: center;
    margin-bottom: 10px;
}

.menu-limpio {
    list-style-type: none; /* Quitamos las viñetas por defecto */
    padding: 0;
    margin: 0;
}

.menu-herramientas {
    text-align: center;
    font-size: 0.9em;
    color: #666;
    padding-bottom: 10px;
} 
/* Estilos modernos para Formularios */
.formulario-contenedor-facturas {
    width: 90%;
    margin: 20px auto;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.fila-formulario {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.fila-formulario label {
    width: 30%;
    font-weight: bold;
    color: #333;
}

.fila-formulario input, 
.fila-formulario select, 
.fila-formulario textarea {
    width: 65%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.acciones-formulario {
    text-align: center;
    margin-top: 20px;
}
.mensaje-error {
    color: #d9534f; /* Un rojo elegante, no estridente */
    font-size: 0.85em;
    font-weight: bold;
    margin-top: 5px;
    display: block;
}
/* ==========================================================================
   Estilo profesional para la visualización de la Factura (Ajustado a 14x12 cm)
   ========================================================================== */

.factura-profesional {
    width: 12cm;      /* Ancho exacto solicitado */
    height: 12cm;     /* Alto exacto solicitado */
    margin: 4cm auto 20px auto;
    padding: 10px;    /* Reducido para aprovechar el espacio limitado */
    background-color: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);*/
    font-family: Arial, sans-serif;
    overflow: hidden; /* Evita que el contenido se desborde si es muy grande */
}

.factura-profesional table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 5px;
    font-size: 0.85em; /* Fuente ligeramente más pequeña para que quepa en 12cm */
}

.factura-profesional td {
    padding: 5px 7px;
    border: 2px solid #e2e8f0;
    color: #2d3748;
}

/* Ajuste específico para los inputs dentro de la factura */
.factura-profesional input[type="text"],
.factura-profesional input[type="password"] {
    padding: 3px 5px;
    border: 1px solid #cbd5e0;
    font-size: 0.9em;
    width: 90%;
}
.resultado-estudiante {
    border-bottom: 2px solid #0033CC;
    padding-bottom: 10px;
    margin-bottom: 20px;
}
/* ==========================================================================
   REGLAS FÍSICAS EXCLUSIVAS PARA IMPRESIÓN Y GUARDADO EN PDF de la factura
   ========================================================================== */
@media print {
    /* 1. Ocultamos solo lo que sobra (botones, menús, etc.) */
    .no-print, .no-print *, .panel-botones, .btn {
        display: none !important;
    }

    /* 2. Reseteamos fondos y sombras para impresión limpia */
    body {
        background-color: #ffffff !important;
    }

    /* 3. Mantenemos tu clase .factura-profesional sin alterar su posición ni márgenes */
    .factura-profesional {
        box-shadow: none !important; /* Quitamos la sombra que no sirve al imprimir */
        border: 1px solid #dcdcdc !important; /* Mantenemos tu borde original */
        width: 12cm !important;
        /* No tocamos margin ni top para que se vea igual que en pantalla */
        float: none !important;
        display: block !important;
    }

    /* 4. Aseguramos que la tabla no se corte y sea legible */
    .factura-profesional table {
        width: 100% !important;
        border-collapse: collapse !important;
    }

    .factura-profesional td {
        border: 1px solid #e2e8f0 !important;
        color: #2d3748 !important;
    }

    /* 5. Forzamos texto negro para mejor lectura en papel */
    * {
        color: #000 !important;
        background-color: #ffffff !important;
    }
}

/* ==========================================================================
   ESTILOS ESPECÍFICOS PARA EL FORMULARIO DE ALUMNOS (form_alumno.php)
   ========================================================================== */

.formulario-contenedor {
    background-color: #ffffff;
    max-width: 800px;
    margin: 30px auto;
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-top: 6px solid #0033CC;
    box-sizing: border-box;
}

.formulario-titulo {
    color: #0033CC;
    text-align: center;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.8em;
    font-weight: 600;
}

/* Distribución en cuadrícula inteligente de dos columnas */
.grid-formulario {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.campo-grupo {
    display: flex;
    flex-direction: column;
}

.campo-grupo.completo {
    grid-column: span 2;
}

.formulario-contenedor label {
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    font-size: 0.95em;
    display: block;
}

.formulario-contenedor label .requerido {
    color: #d9534f;
    font-weight: bold;
    margin-left: 3px;
}

/* Campos de entrada estilizados de forma segura */
.formulario-contenedor input[type="text"], 
.formulario-contenedor select, 
.formulario-contenedor textarea {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    color: #444;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.formulario-contenedor input[type="text"]:focus, 
.formulario-contenedor select:focus, 
.formulario-contenedor textarea:focus {
    border-color: #0033CC;
    box-shadow: 0 0 5px rgba(0, 51, 204, 0.2);
    outline: none;
}

.formulario-contenedor textarea {
    resize: vertical;
}

.indicacion-ejemplo {
    font-size: 0.85em;
    color: #777;
    margin-top: 4px;
}

.error-alerta {
    color: #d9534f;
    font-size: 0.88em;
    margin-top: 4px;
    font-weight: 500;
}

/* Panel inferior para el comportamiento de botones */
.panel-botones {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn {
    padding: 12px 30px;
    font-size: 1em;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    display: inline-block;
}

.btn-primario {
    background-color: #0033CC;
    color: white;
}

.btn-primario:hover {
    background-color: #002299;
}

.btn-secundario {
    background-color: #666;
    color: white;
}

.btn-secundario:hover {
    background-color: #444;
}

.btn:active {
    transform: scale(0.98);
}

 Responsividad para Dispositivos Móviles (Media Query) 
@media (max-width: 700px) {
    .grid-formulario {
        grid-template-columns: 1fr;
    }
    .campo-grupo.completo {
        grid-column: span 1;
    }
}

/* ==========================================================================
   ESTILOS COMPLEMENTARIOS PARA EL BUSCADOR (form_consulta_alumnos.php)
   ========================================================================== */

.buscador-compacto {
    max-width: 500px; /* Tamaño optimizado y estético para un solo campo de texto */
    margin: 60px auto;
}

.indicacion-busqueda {
    font-size: 0.9em;
    color: #555;
    line-height: 1.6;
    margin-top: 15px;
    padding: 12px 15px;
    background-color: #fcfcfc;
    border-left: 3px solid #0033CC;
    border-radius: 4px;
}

/* ==========================================================================
   ESTILOS AVANZADOS PARA LA FICHA INSTITUCIONAL (consulta_alumnos.php)
   ========================================================================== */

/* Menú de utilidades superior derecho */
.panel-utilidades-superior {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.btn-utilidad {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #cccccc;
    padding: 7px 14px;
    border-radius: 4px;
    font-size: 0.88em;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.btn-utilidad:hover {
    background-color: #0033CC;
    color: #ffffff;
    border-color: #0033CC;
}

/* Encabezado del reporte */
.ficha-alumno-encabezado {
    text-align: center;
    margin-bottom: 30px;
}

.ficha-titulo {
    color: #0033CC;
    margin: 0 0 6px 0;
    font-size: 1.8em;
    font-weight: 600;
}

.ficha-subtitulo {
    color: #666;
    margin: 0;
    font-size: 1em;
}

/* Grilla moderna para visualización de legajo completo */
.ficha-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 25px;
    background-color: #fdfdfd;
    padding: 25px;
    border-radius: 6px;
    border: 1px solid #eef1f6;
}

.ficha-seccion {
    border-bottom: 2px solid #0033CC;
    margin-top: 15px;
    margin-bottom: 5px;
    padding-bottom: 4px;
}

.ficha-seccion h3 {
    color: #0033CC;
    margin: 0;
    font-size: 1.05em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ficha-campo {
    display: flex;
    flex-direction: column;
    padding: 6px 0;
    border-bottom: 1px dashed #e9e9e9;
}

.ficha-campo.completo {
    grid-column: span 2;
}

.campo-etiqueta {
    font-size: 0.85em;
    color: #777777;
    font-weight: 600;
    margin-bottom: 3px;
}

.campo-valor {
    font-size: 1.05em;
    color: #111111;
    font-weight: 500;
}

.campo-valor.destacado {
    color: #0033CC;
    font-weight: bold;
    font-size: 1.2em;
}

.tag-estado {
    background-color: #e3f2fd;
    color: #0d47a1;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.88em;
    display: inline-block;
    font-weight: bold;
}

/* Bloque destacado para observaciones */
.ficha-observaciones {
    background-color: #fffde7;
    border: 1px solid #fff59d;
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
}

.observaciones-texto {
    margin: 5px 0 0 0;
    color: #4e342e;
    font-size: 0.98em;
    line-height: 1.5;
}

/* Tabla de listado colectivo */
.tabla-reporte-estilizada {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    border-radius: 4px;
    overflow: hidden;
}

.tabla-reporte-estilizada th {
    background-color: #0033CC;
    color: #ffffff;
    padding: 12px 15px;
    font-weight: 600;
    text-align: left;
    font-size: 0.95em;
}

.tabla-reporte-estilizada td {
    padding: 12px 15px;
    border-bottom: 1px solid #eeeeee;
    font-size: 0.95em;
}

.tabla-reporte-estilizada tr:hover {
    background-color: #f7f9ff;
}

.enlace-codigo-seleccion {
    color: #0033CC;
    font-weight: bold;
    text-decoration: underline;
    font-size: 1.05em;
}

.enlace-codigo-seleccion:hover {
    color: #0011aa;
}

/* ==========================================================================
   ESTILOS ADICIONALES PARA ACTUALIZACIÓN EXITOSA (modificar_alumno.php)
   ========================================================================== */

.alerta-exito {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 25px;
    font-size: 1em;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 2px 5px rgba(21, 87, 36, 0.05);
}
/* ==========================================================================
   MÓDULO DE ALUMNOS: CONSULTA, FICHA Y EDICIÓN
   ========================================================================== */
.formulario-contenedor {
    max-width: 950px;
    margin: 0 auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* --- Alertas --- */
.error-alerta {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 4px;
    margin: 15px 0;
    border: 1px solid #f5c6cb;
    text-align: center;
}
.alerta-exito {
    background-color: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 4px;
    margin: 15px 0;
    border: 1px solid #c3e6cb;
    text-align: center;
    font-weight: bold;
}

/* --- Cabecera de Fichas --- */
.ficha-encabezado {
    text-align: center;
    border-bottom: 3px double #0033CC;
    padding-bottom: 15px;
    margin-bottom: 25px;
}
.ficha-titulo {
    margin: 0;
    color: #0033CC;
    font-size: 1.8em;
}
.ficha-subtitulo {
    margin: 5px 0 0 0;
    color: #666;
    font-size: 1em;
    font-weight: 500;
}

/* --- Bloques y Cuadrículas --- */
.ficha-seccion {
    margin-bottom: 25px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    background: #fafafa;
}
.ficha-seccion-titulo {
    background: #0033CC;
    color: white;
    padding: 8px 15px;
    font-weight: bold;
    font-size: 1.1em;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}
.ficha-cuadrilla {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 15px;
}
.ficha-item {
    display: flex;
    flex-direction: column;
    border-bottom: 1px dashed #e0e0e0;
    padding-bottom: 5px;
}
.ficha-item-lbl {
    font-size: 0.85em;
    color: #666666;
    text-transform: uppercase;
    font-weight: 600;
}
.ficha-item-val {
    font-size: 1.05em;
    color: #111111;
    font-weight: 500;
    margin-top: 2px;
}
.observaciones-bloque {
    padding: 15px;
    background: #fffdf0;
    border-top: 1px solid #cccccc;
    font-style: italic;
    min-height: 60px;
}

/* --- Tablas de Búsqueda --- */
.tabla-reporte {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.tabla-reporte th {
    background-color: #0033CC;
    color: white;
    padding: 12px;
    text-align: left;
}
.tabla-reporte td {
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
}
.tabla-reporte tr:hover {
    background-color: #f9f9f9;
}
.enlace-codigo-seleccion {
    color: #0033CC;
    font-weight: bold;
    text-decoration: none;
    padding: 5px 10px;
    border: 1px solid #0033CC;
    border-radius: 4px;
    background-color: #f0f4ff;
    display: inline-block;
}
.enlace-codigo-seleccion:hover {
    background-color: #0033CC;
    color: white;
}

/* --- Botonera --- */
.panel-botones-ficha {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}
.btn-base-ficha {
    padding: 10px 22px;
    font-size: 1em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s;
}
.btn-base-ficha:hover {
    transform: translateY(-2px);
}
.btn-imprimir { background-color: #198754; color: white; }
.btn-volver { background-color: #d35400; color: #ffff00; }
.btn-inicio { background-color: #6c757d; color: white; }
.btn-editar { background-color: #0d6efd; color: white; }
.btn-baja { background-color: #dc3545; color: white; padding: 4px 10px; font-size: 0.9em; margin-left: 10px;}

/* --- Modal Flotante para Fecha de Baja --- */
.modal-baja-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none; justify-content: center; align-items: center; z-index: 9999;
}
.modal-baja-contenido {
    background-color: #fff; padding: 25px; border-radius: 8px;
    max-width: 520px; width: 90%; text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.modal-baja-botones {
    display: flex; justify-content: center; gap: 15px; margin-top: 25px;
}

/* --- Reglas de Impresión A4 --- 
@media print {
    body { background-color: #fff; padding: 0; margin: 0; }
    .formulario-contenedor { box-shadow: none !important; margin: 0 !important; padding: 0 !important; border: none; max-width: 100%; }
    .no-print, .panel-botones-ficha, .modal-baja-overlay, .btn-baja, form:not(.ficha-encabezado) { display: none !important; }
    .ficha-seccion { break-inside: avoid; margin-bottom: 15px; border-color: #aaa; }
    .ficha-cuadrilla { gap: 10px; padding: 10px; }
    .ficha-item-lbl { font-size: 0.75em; }
    .ficha-item-val { font-size: 0.95em; }
}
*/
/* ==========================================================================
   ESTILOS UNIFICADOS PARA CONSULTA Y EDICIÓN DE ALUMNOS
   ========================================================================== */

/* Contenedor principal para ambos formularios */
.formulario-contenedor {
    max-width: 950px;
    margin: 30px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid #e1e1e1;
}

/* Títulos y Encabezados */
.ficha-titulo {
    color: #0033CC;
    text-align: center;
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #0033CC;
}

/* Cuadrícula de inputs (Formulario de edición y Fichas) */
.grid-formulario {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.campo-grupo {
    display: flex;
    flex-direction: column;
}

.campo-grupo.completo {
    grid-column: span 2;
}

/* Etiquetas y Inputs */
.campo-grupo label {
    font-size: 0.85em;
    color: #555;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 6px;
}

.campo-grupo input, 
.campo-grupo select, 
.campo-grupo textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    width: 100%;
    box-sizing: border-box; /* Importante para que el padding no rompa el diseño */
}

/* Botonera */
.panel-botones {
    text-align: center;
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn {
    padding: 12px 25px;
    font-size: 1em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin: 0 10px;
    transition: background 0.3s ease;
}

.btn-primario { background-color: #0033CC; color: white; }
.btn-primario:hover { background-color: #002299; }

.btn-secundario { background-color: #6c757d; color: white; }
.btn-secundario:hover { background-color: #5a6268; }

/* Alertas */
.alerta-exito {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}
/*A partir de aquí para abajo van los estilos del dashboar_contable.php*/
