body {
	font-family: 'Georgia', sans-serif;
	text-decoration: none;
	background-color: #005275;
	margin-top: 60px;
}

.logo {
	width: 80%;
	margin: auto;
	margin-top: 30px;
	margin-bottom: 30px;
	text-align: center;
}


.cabezal img {
	width:100%;
	margin: auto;
}

.container {
	width: 100%;
	margin: auto;
}


footer {
	text-decoration: none;
	font-size: 12px;
	text-align: center;
	margin-top: 80px;
}

ul {
	margin-bottom: 30px;
}

li {
	text-align: center;
	line-height: 1.5;
	color: white;
}

a {
	text-decoration: none;
	color: white;
}

a:hover {
	color:#009fe3;
}

.tabla-listado {
    width: 100%;
    border-collapse: collapse;
}

.tabla-listado th,
.tabla-listado td {
    border: 1px solid #ddd;
    padding: 8px;
}

.tabla-listado th {
    background-color: #f5f5f5;
    position: relative;
}

.th-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.filter-btn {
    border: none;
    background: #e0e0e0;
    border-radius: 4px;
    padding: 2px 6px;
    cursor: pointer;
    font-size: 0.8rem;
}

.filter-btn:hover {
    background: #d0d0d0;
}

/* Panel flotante debajo del encabezado */
.filter-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
    background: #ffffff;
    border: 1px solid #ccc;
    padding: 8px;
    min-width: 200px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.filter-panel label {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    padding: 4px;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

.filter-actions button {
    font-size: 0.8rem;
    padding: 4px 8px;
    cursor: pointer;
}

.btn-limpiar {
    background: #f5f5f5;
    border: 1px solid #ccc;
}

.btn-limpiar:hover {
    background: #eee;
}

/* ---- ENCABEZADOS FIJOS EN LA TABLA ---- */
/* Contenedor que se scrollea verticalmente */
.tabla-uf-wrapper {
    max-height: 70vh;     /* altura visible de la tabla */
    overflow-y: auto;     /* scroll vertical dentro del div */
    position: relative;   /* para que sticky tome este contenedor como referencia */
}

/* Encabezados fijos */
.tabla-uf thead th {
    position: sticky;
    top: 0;
    background: #f8f9fa;
    z-index: 5;           /* por encima de las celdas */
    /* opcional, solo estética */
    box-shadow: 0 2px 2px rgba(0,0,0,0.06);
}

/* Totales pegados abajo (fila con class="fila-totales") */
.tabla-uf .fila-totales td {
    position: sticky;
    bottom: 0;
    background: #f1f1f1;
    z-index: 4;
    font-weight: bold;
}


.tabla-uf thead th {
    background: linear-gradient(#ffffff, #e9ecef);
}

.mapa-edificio {
            display: grid;
            grid-template-columns: 100px repeat(var(--cols), 1fr);
            gap: 4px;
            margin-top: 20px;
        }

        .mapa-header {
            font-weight: bold;
            text-align: center;
        }

        .mapa-fila-label {
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 12px;
            text-align: center;
        }

        .celda-uf {
            border: 1px solid #ccc;
            height: 50px;
            position: relative;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            text-align: center;
        }

        .celda-uf.vacia {
            background: #f8f9fa;
        }

        .celda-uf.ocupada {
            background: #e0f7fa;
            cursor: pointer;
        }

        .celda-uf.ocupada:hover {
            box-shadow: 0 0 5px rgba(0,0,0,0.3);
        }

        .celda-uf strong {
            display: block;
            font-size: 12px;
        }

        .celda-uf small {
            display: block;
            font-size: 10px;
            line-height: 1.1;
        }
    