/* --- 1. RESETEO Y TIPOGRAFÍA GENERAL --- */
* {
    padding: 0;
    margin: 0;
    font-size: 10pt;
    box-sizing: border-box;
}

/* --- 2. LAYOUT PRINCIPAL (ESTRUCTURA) --- */

#menuTop {
    position: fixed;
    top: 0;
    left: 0; /* Aseguramos alineación */
    z-index: 1000;
    width: 100%;
    height: 8vh;
    background-color: #fff; /* Asegúrate de que tenga un fondo sólido */
}

#main {
    position: fixed;
    top: 12vh;   /* DESPLAZAMIENTO EXACTO: Igual a la altura del menú */
    left: 0;
    width: 100vw;
    /* ALTURA EXACTA: 100% menos menú (8vh) menos pie (40px) */
    height: calc(100vh - 12vh - 40px); 
    overflow: hidden; 
    background-color: rgba(110, 110, 110, 0.7) !important;
}



#menuIzq {
    position: fixed;
    top: 8vh;
    width: 12vw;
    height: 100vh;
    background-color: #808080;
    z-index: 1000;
    text-align: left;
}

#root {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
    padding-top: 10px; /* Reducimos padding superior si se ve muy separado */
}

#pie {
    position: fixed;
	left:0;
    bottom: 0;
    width: 100%;
    height: 40px;
    background-color: black;
    color: rgba(250, 250, 250, 0.6);
    z-index: 1000;

    /* --- CENTRADO VERTICAL Y HORIZONTAL --- */
    display: flex;            /* Convierte el pie en un contenedor flexible */
    align-items: center;      /* Centra el texto verticalmente */
    justify-content: center;   /* Centra el texto horizontalmente */
    
    /* Opcional: Evita que el texto toque los bordes en móviles */
    padding: 0 15px;
}

/* --- 3. COMPONENTES GLOBALES --- */
div.contenedor-titulo {
    padding: 5px;
    border-radius: 5px;
    background-color: rgba(60, 180, 60, 0.5) !important;
    margin-bottom: 10px;
    flex-shrink: 0;
}

div.titulo {
    font-size: 18pt;
    font-weight: bold;
    display: inline;
}

/* --- 4. FORMULARIOS GENERALES --- */
.form-control.input-dni { min-width: 14ch !important; }
.form-control.input-cp { min-width: 8ch !important; }
.form-control.input-nombre, .form-control.input-direccion, .form-control.input-poblacion { min-width: 60ch !important; }
.form-control.input-provincia { min-width: 30ch !important; }

/* --- 5. SISTEMA DE COLUMNAS FLEXIBLES (24 UNIDADES) --- */
.tabla { display: flex; width: 100%; flex-wrap: wrap; }
.col { box-sizing: border-box; padding: 10px; }
.col-1 { width: 4.16%; }  .col-12 { width: 50%; } .col-24 { width: 100%; }

@media (max-width: 1200px) { .col { width: 50%; } }
@media (max-width: 768px) { .col { width: 50%; } }

/* --- 6. MODALES, TOOLTIPS Y LOADERS --- */
.mi-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}
.mi-modal-contenido {
    background: #fff;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
#loader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background-color: rgba(180, 180, 180, 0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}
.loader {
    font-weight: bold;
    font-family: Calibri;
    font-size: 50px;
    animation: l1 1s linear infinite alternate;
}
@keyframes l1 { to { opacity: 0; } }

/* --- 7. UTILIDADES --- */
.badge-tareas { position: absolute; top: -5px; right: -10px; background: red; color: white; font-size: 12px; border-radius: 50%; display: none; }
.show-tareas { display: inline-block; }
.moneda { text-align: right !important; }
.desbordamiento { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 250px; cursor: pointer; }