/* --- PESTAÑAS --- */
/* --- PESTAÑAS (ALINEACIÓN EXACTA) --- */
.tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* Centra los botones internamente */
    margin-bottom: 0;
    width: 100%;
    max-width: 600px;
    /* DEBE coincidir con el max-width de .elemento en el otro CSS */
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    /* Eliminamos cualquier padding que las mueva */
}

.tablink {
    background: #0f99f541;
    border: none;
    padding: 12px 15px;
    cursor: pointer;
    font-weight: bold;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    /* Quitamos el margin-right para que la última pestaña no empuje el borde */
    margin: 0 1px 2px 1px;
    flex: 1 0 auto;
    font-size: 14px;
    text-align: center;
}

/* --- CONTENEDOR DE CONTENIDO --- */
.elemento {
    display: block;
    /* Asegura que se comporte como bloque para respetar el ancho */
    padding: 15px;
    border: 1px solid #ccc;
    border-top: none;
    /* Unión visual perfecta con la pestaña activa */
    border-radius: 0 0 6px 6px;
    background: #fff;
    /* O el color que prefieras para el fondo */
    width: 100%;
    max-width: 600px;
    /* Mismo ancho que .tabs */
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.tablink.active {
    background: #15ade9ff;
    color: #fff;
    border-bottom: 2px solid white;
}



/* --- MODAL Y TABLA OVARDO (Restaurado) --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); display: none; justify-content: center; align-items: center; z-index: 1000;
}
.modal-content {
    background: white; padding: 25px; border-radius: 12px; max-width: 95%; width: 800px;
    max-height: 85vh; overflow-y: auto;
}

.table-modern { width: 100%; border-collapse: collapse; font-family: sans-serif; font-size: 14px; }
.table-modern th { background: #2c3e50; color: white; padding: 12px; text-align: left; }
.table-modern td { padding: 10px; border-bottom: 1px solid #eee; }

.status-exceso { color: #007bff; font-weight: bold; }
.status-reclamar { color: #e74c3c; font-weight: bold; }
.status-ok { color: #27ae60; font-weight: bold; }

.intro { text-align: justify; hyphens: auto; font-size: 14px; }